Abstract
Face recognition systems are increasingly vulnerable to presentation attacks (PAs) such as high-resolution prints and video replays. While single-frame depth estimation has provided a baseline for defense, it fails to capture the dynamic relationship between 3D structure and motion. This paper proposes a robust multi-frame face anti-spoofing method that exploits spatiotemporal cues. By integrating an Optical Flow guided Feature Block (OFFB) for short-term motion and Convolutional GRUs for long-term patterns, the system distinguishes real 3D faces from flat 2D spoofs. The method achieves state-of-the-art performance on major benchmarks, including OULU-NPU and SiW, and demonstrates superior generalization in cross-dataset evaluations.
Introduction
Face recognition is ubiquitous, yet it remains susceptible to deception through various Presentation Attacks (PAs). Attackers often use high-resolution prints, video replays on tablets, or 3D masks to bypass security. Previous research utilized facial depth as a supervisory signal to distinguish 3D human faces from flat surfaces. However, most existing methods rely on single-frame analysis, ignoring the crucial evidence provided by motion. When a real 3D head moves, different facial regions move at varying relative speeds to the camera (parallax). This depth-motion relationship is fundamentally different or absent on flat surfaces, a gap this research aims to bridge.
The Geometry of Deception
The core intuition behind this work lies in the "Geometry of Deception." The authors mathematically demonstrate how "virtual depth" manifests in spoofing scenarios. In a print attack, the estimated depth consistently suggests a flat plane. In replay attacks, the motion of the playback device itself creates abnormal depth patterns that a temporal model can detect.
They define a theoretical "Perfect Spoofing Scene" (PSS) where an attacker might mimic 3D motion on a 2D screen, but highlight that for nearly all real-world attacks, temporal cues serve as a definitive differentiator.
Proposed Methodology
The proposed system utilizes a two-stage, depth-supervised architecture that processes consecutive RGB frames to extract both spatial and temporal features.
1. Single-Frame Depth Estimation
A CNN estimates a depth map from individual images using a novel Contrastive Depth Loss. Instead of focusing on absolute depth values, this loss forces the network to learn the "topography" (relative slopes and curves) of the face by comparing each pixel to its neighbors. This makes the model robust to varying lighting conditions.
2. Multi-Frame Spatiotemporal Learning
To capture motion, the architecture employs two specialized components:
- Optical Flow guided Feature Block (OFFB): This extracts short-term motion cues by encoding spatial and temporal gradients, guiding feature extraction with the logic of optical flow.
- ConvGRU (Convolutional Gated Recurrent Units): These units preserve spatial information while tracking how features evolve over longer sequences, capturing complex temporal dependencies.
3. Fusion and Classification
The system predicts a "residual" depth map from motion data, which is fused with the single-frame estimate. If the resulting map indicates a flat plane, the input is flagged as a spoof.
Experimental Results
The model was evaluated on four industry-standard datasets: OULU-NPU, SiW, CASIA-MFSD, and Replay-Attack.
- State-of-the-Art Performance: The method ranked first on three out of four OULU-NPU protocols. On the challenging Protocol 4 (unseen sensors), it achieved a significantly lower Average Classification Error Rate (ACER) of 9.2%.
- Robustness to Variation: On the SiW dataset, the method outperformed previous benchmarks in handling variations in pose and expression.
- Generalization: In cross-dataset tests (training on CASIA-MFSD and testing on Replay-Attack), the model reduced the Half Total Error Rate (HTER) by 36.6% compared to previous state-of-the-art methods, proving its effectiveness against unseen hardware.
Conclusion
By combining spatial topography with temporal motion analysis, this research provides a more comprehensive defense against face spoofing. While the current framework focuses heavily on vertical motion, future work will explore more complex non-rigid deformations, such as facial expressions, and aim to reduce sensitivity to specific camera hardware.
Summary updated