V-172Face Relighting Detection

Pixel Analysisvideo2021

Detects artificial face relighting applied to manipulate lighting conditions in deepfake videos — neural relighting alters shading in physically inconsistent ways.

Face Relighting Forensics Analysis
This method detects artificial face relighting, a technique used to harmonize lighting between a pasted face and the target scene or to alter the apparent illumination direction:\n\n1. Intrinsic Decomposition Analysis: The method decomposes the facial image into intrinsic components — reflectance (albedo) and shading — using a trained encoder-decoder network (Sengupta et al., 2018). In authentic faces, the shading layer varies smoothly and obeys the Lambertian reflectance model for diffuse surfaces. Neural relighting methods (e.g., Total Relighting, DPR) alter the shading component in ways that violate physical constraints: shading gradients may be too smooth (lacking micro-shadows in pores and wrinkles), shadows may lack proper penumbra transitions, or the shading may not correspond to any single directional light source.\n\n2. Spherical Harmonics Lighting Estimation: The method estimates the illumination environment using 2nd-order spherical harmonics (SH) coefficients fitted to the face surface normals and observed shading (Ramamoorthi & Hanrahan, 2001). Authentic faces under natural illumination produce SH coefficients with characteristic statistics — the DC component dominates, and higher-order coefficients follow predictable ratios. Artificially relit faces often produce SH coefficients that are inconsistent with natural illumination: the fitted SH may explain the shading poorly (high residual error), or the estimated lighting direction may conflict with environmental clues (shadows of other objects in the scene).\n\n3. Specular Highlight Consistency: Real faces exhibit specular highlights on the nose, forehead, and cheeks that are consistent with the illumination direction and the face's Fresnel reflectance properties. The specular highlight positions must align with the estimated SH lighting direction. Neural relighting methods struggle with specular highlights — they may place highlights at incorrect positions, produce highlights with wrong shape (too round, too diffuse), or fail to produce proper highlight movement during head rotation. The method detects these inconsistencies by comparing estimated specular positions with expected positions from the SH lighting model.\n\n4. Cast Shadow Physics Validation: Face relighting must produce physically consistent cast shadows — the nose shadow on the cheek, the brow shadow over the eye sockets, and the chin shadow on the neck. The method validates that: (a) shadow edges have proper penumbra width proportional to the light source angular size, (b) shadow directions are consistent across all cast shadows on the face, (c) shadow darkness follows proper ambient occlusion ratios. Neural relighting often produces shadows that are too soft, inconsistently directed, or incorrectly attenuated. In video, the method tracks shadow consistency across frames as the head moves.
Intrinsic decomposition: SfSNet architecture (Sengupta et al.)\nSH lighting order: 2nd order (9 coefficients)\nFace surface normal estimation: 3DMM fitting (BFM 2009)\nSH residual error threshold: >0.15 indicates artificial relighting\nSpecular model: Cook-Torrance BRDF with roughness 0.3–0.6\nShadow penumbra validation: expected vs. observed width ratio\nTemporal analysis window: 15 frames\nMinimum face resolution: 128×128 pixels
80–88% accuracy detecting neural face relighting. SH lighting inconsistency achieves AUC of 0.86 on DPR-relit faces. Specular highlight analysis adds 5–8% detection rate. Cast shadow validation achieves F1-score of 0.82. Performance is strongest for significant relighting changes (> 30° illumination shift).
• Targets specific physical properties — shading, specular highlights, cast shadows\n• Spherical harmonics analysis provides quantitative lighting inconsistency measurement\n• Works even when face generation quality is high — relighting introduces separate artifacts\n• Cast shadow analysis provides interpretable forensic evidence\n• Temporal tracking of lighting consistency strengthens video detection
• Flat lighting conditions produce weak forensic signals (low spectral information)\n• Outdoor faces with complex environmental illumination may produce high SH residuals naturally\n• Low-resolution faces lack sufficient detail for specular and shadow analysis\n• Artistic relighting in legitimate photography may trigger false positives\n• State-of-the-art relighting methods (NVIDIA Total Relighting) produce increasingly physical results
Detecting artificially relit faces in deepfake videos for face swap harmonization. Identifying lighting manipulation used to create convincing composite images. Forensic analysis of portrait photographs with altered lighting. Detecting neural relighting in video conferencing authentication.