Abstract
Face anti-spoofing is a critical component of secure biometric systems, yet current methods often struggle with fine-grained detail loss and static depth estimation. This paper introduces a robust framework that combines a Residual Spatial Gradient Block (RSGB), a Spatio-Temporal Propagation Module (STPM), and a novel Contrastive Depth Loss (CDL). By focusing on spatial gradients and the dynamic relationship between facial motion and 3D depth, the proposed model achieves state-of-the-art results across five major benchmarks. Additionally, the authors present the Double-modal Anti-spoofing Dataset (DMAD), which features real-world depth data to improve model training and evaluation.
Introduction
As face recognition systems become ubiquitous, they face increasing threats from Presentation Attacks (PAs), including high-quality printed photos, video replays, and 3D masks. Standard deep learning approaches often fail to capture the subtle texture cues and 3D structural dynamics that distinguish a live face from a spoof. This research addresses these vulnerabilities by explicitly modeling spatial gradients to preserve fine-grained details and utilizing temporal depth cues to verify 3D facial structure.
Methodology
The proposed end-to-end spatio-temporal network incorporates three key innovations designed to enhance discriminative power and generalization.
Residual Spatial Gradient Block (RSGB)
Traditional CNNs tend to extract high-level semantic features while discarding low-level details. The RSGB explicitly calculates spatial gradient magnitudes using Sobel operators and integrates them back into the feature maps via residual connections. This ensures the network retains the fine-grained texture clues—such as moiré patterns or specific reflective properties—necessary for detecting spoofs.
Spatio-Temporal Propagation Module (STPM)
To move beyond static frame analysis, the STPM processes multiple frames to capture motion dynamics. It utilizes Short-term Spatio-Temporal Blocks (STSTB) to fuse features from adjacent frames and a ConvGRU to model long-range temporal dependencies. This allows the system to detect if the "moving" parts of a face behave like a 3D object or a flat surface, providing a powerful cue against planar attacks.
Contrastive Depth Loss (CDL)
Standard depth supervision often relies on simple pixel-wise Euclidean distance. CDL improves upon this by supervising the topography of the facial surface. By using contrastive convolution kernels, the loss function ensures the relationship between neighboring depth pixels is learned accurately, making the model more robust to varying environmental conditions.
Datasets and Evaluation
The researchers evaluated their model on four established benchmarks: OULU-NPU, SiW, CASIA-MFSD, and Replay-Attack. A significant contribution of this work is the introduction of the Double-modal Anti-spoofing Dataset (DMAD). Unlike existing datasets that use synthetic "pseudo-depth," DMAD provides actual depth maps captured by a RealSense SR300 camera, including 2,700 samples from 300 subjects.
Key Results
- State-of-the-Art Performance: The method ranked first across all four protocols of the OULU-NPU benchmark and achieved SOTA results on SiW.
- Superior Generalization: In cross-database testing (e.g., training on CASIA-MFSD and testing on Replay-Attack), the model reduced the Half Total Error Rate (HTER) by up to 38.4% compared to previous best methods.
- Ablation Validation: Experiments confirmed that removing any single component (RSGB, STPM, or CDL) resulted in a measurable drop in performance, highlighting the importance of both spatial and temporal features.
Conclusion
By integrating spatial gradient learning with temporal depth propagation, this framework offers a highly effective defense against common face spoofing techniques. While future work may focus on optimizing for real-time mobile performance and addressing sophisticated 3D silicone masks, the current approach significantly advances the state of the art in biometric security.
Summary updated