V-212Light Source Tracking

Pixel Analysisvideo2020

Tracks estimated light source positions over time — AI video often shows inconsistent or jumping light directions.

Temporal Light Source Consistency Analysis
This method detects AI-generated or manipulated video by tracking the estimated light source direction across frames and validating temporal consistency:1. Per-Frame Light Direction Estimation: For each frame, the method estimates the dominant light source direction using multiple complementary cues: (a) shading analysis on faces — fitting 2nd-order spherical harmonics (SH) to the face surface using estimated 3D normals from a 3DMM fit (Ramamoorthi & Hanrahan, 2001), (b) specular highlight localization — detecting bright highlights on glossy surfaces and computing the reflection angle to infer light direction, (c) shadow direction analysis — detecting cast shadows and computing the shadow-casting angle. Each cue provides an independent estimate of the light source direction as a 3D unit vector (azimuth, elevation). These estimates are fused using weighted averaging based on confidence scores.2. Light Direction Temporal Coherence: In authentic video, light source direction changes smoothly and predictably — indoor lighting is typically static (zero angular velocity), outdoor sunlight changes imperceptibly (0.25°/minute), and moving light sources follow smooth trajectories. The method tracks the estimated light direction over time and computes: (a) angular velocity — frame-to-frame change in light direction, (b) angular acceleration — rate of change of angular velocity. Authentic video shows angular velocity < 2°/second for static scenes and smooth acceleration for scenes with moving lights. AI-generated video frequently shows light direction that jumps between frames (angular velocity > 10°/second), oscillates without physical cause, or drifts inconsistently.3. Multi-Object Lighting Consistency: In a physical scene, all objects are illuminated by the same light sources. The method estimates light direction independently from multiple objects (faces, shiny objects, shadows) in each frame and validates that all estimates agree within a tolerance (< 15° angular difference). Manipulated video — where objects are composited from different sources or AI-generated with per-object illumination — shows inconsistent light directions between objects. The method computes the angular variance across all per-object light estimates; authentic scenes produce variance < 10°, while manipulated scenes show variance > 25°.4. Light-Shadow-Specular Triangle Validation: Physical lighting creates a consistent triangle of relationships: the light direction (L), shadow direction (S), and specular highlight position (H) are geometrically linked — S is the projection of L onto the ground plane, and H is the reflection of L about the surface normal. The method validates this geometric consistency: (a) shadow direction must be the horizontal projection of the estimated light direction, (b) specular highlight position must satisfy the reflection law relative to the estimated surface normal and light direction, (c) all three estimates must be temporally consistent (changing together). AI-generated content often breaks this triangle — shadows may not match specular highlights, or one cue may be inconsistent while others are plausible.
SH lighting estimation: 2nd order (9 coefficients) on face surfaces
Specular highlight detection: intensity threshold > 0.95 of dynamic range

Shadow detection: intensity ratio < 0.3 with edge analysis

Angular velocity threshold: < 2°/second for static indoor scenes

Multi-object consistency tolerance: < 15° angular difference

Angular variance threshold: < 10° for authentic scenes

Light-shadow angle tolerance: < 10°

Temporal analysis window: 30 frames

Minimum objects for multi-object analysis: 2

Minimum face resolution: 96×96 pixels
82–90% accuracy detecting AI-generated video via light source tracking. Temporal light coherence achieves AUC of 0.87 for frame-by-frame generated video. Multi-object consistency provides F1-score of 0.85 for composited scenes. Light-shadow-specular triangle validation achieves AUC of 0.89 when all three cues are available. Performance is weakest for uniformly lit scenes (diffuse/overcast lighting).
• Based on fundamental physics — all objects must share the same illumination
• Multiple independent cues (shading, specular, shadow) provide robust estimation

• Temporal tracking reveals frame-to-frame generation inconsistency

• Multi-object analysis detects compositing from different environments

• Light-shadow-specular triangle provides definitive geometric constraint
• Diffuse/overcast lighting produces weak directional signals
• Single-object scenes limit multi-object consistency analysis

• Non-Lambertian surfaces complicate SH lighting estimation

• Indoor multi-light environments create complex lighting fields

• Advanced generators with consistent lighting models may pass temporal checks
Detecting AI-generated video through temporal lighting inconsistency. Identifying composite video where elements are from different lighting environments. Forensic analysis of video evidence for authenticity. Detecting face relighting manipulation in deepfake video.