TL;DR
This paper introduces TransRPPG, a novel transformer-based framework for detecting 3D mask presentation attacks in face recognition systems. By leveraging remote photoplethysmography (rPPG) signals from both facial and background regions, TransRPPG efficiently learns intrinsic liveness cues, achieving state-of-the-art performance with a lightweight architecture suitable for mobile applications.
What Problem Does This Paper Address?
Face recognition systems are increasingly vulnerable to sophisticated presentation attacks (PAs), particularly 3D masks, which can mimic real faces with high fidelity. While traditional PAD methods often rely on static appearance cues, these struggle against advanced masks. Emerging techniques utilize remote photoplethysmography (rPPG) – the detection of physiological signals from skin color changes – as a more robust liveness clue, as these signals are absent in masked faces. However, existing rPPG-based methods for 3D mask PAD often require manual feature engineering, limiting their adaptability and efficiency in the era of deep learning. This paper aims to address this by proposing a data-driven, transformer-based approach to automatically learn effective rPPG features for 3D mask PAD.
Methods
The core of TransRPPG is a transformer architecture designed to process rPPG signals. The process begins with generating Multi-scale Spatial-Temporal Maps (MSTmaps). These maps are constructed from two sources: the facial skin regions (where rPPG signals originate) and the background regions. The facial MSTmap captures subtle color variations indicative of pulse, while the background MSTmap is hypothesized to provide complementary environmental clues and act as a contrast.
These MSTmaps are then fed into a two-branch vision transformer. Each branch (face and background) processes its respective MSTmap using a shared transformer encoder. This encoder, inspired by the Vision Transformer (ViT), breaks down the MSTmaps into patches, embeds them, and uses multi-head self-attention (MSA) to capture long-range dependencies. Crucially, the paper introduces overlapping patches during this sequentialization process, which helps preserve discriminative information that might be lost with non-overlapping patches.
Finally, the features from both branches are combined and further refined by an additional transformer layer for a unified liveness prediction. The model is trained using a hierarchical supervision strategy with three Binary Cross-Entropy (BCE) losses: one for the facial branch, one for the background branch, and one for the combined output. This disentangled learning approach, where facial and background information is processed separately before integration, is a key aspect of their method.
Datasets
The paper evaluates TransRPPG on two public datasets:
- 3DMAD [17]: Contains 255 videos from 17 subjects with low-fidelity 3D masks.
- HKBU-MARsV2 [4]: Consists of 1008 videos from 12 subjects with both low- and high-fidelity 3D masks.
The authors also perform intra-dataset testing (leave-one-subject-out cross-validation) and cross-dataset testing (training on one dataset, testing on the other) to assess generalization capabilities.
Key Insights and Ideas
- rPPG is a powerful intrinsic liveness cue for 3D mask PAD: The paper reinforces that rPPG signals are inherently absent in 3D masks, making them a robust indicator of liveness, independent of mask appearance.
- Background MSTmaps offer complementary information: Surprisingly, incorporating background MSTmaps alongside facial ones significantly improves performance. This suggests that environmental noise or patterns in the background can provide useful contrast or context for distinguishing real faces from masks.
- Overlapping patches are crucial for MSTmap processing: The use of overlapping patches in the transformer's input processing helps retain finer details and local relationships within the MSTmaps, leading to better feature extraction.
- Disentangled two-branch learning is superior: Processing facial and background MSTmaps in separate branches before combining their features yields better results than simply concatenating them into a single input. This indicates that the distinct nature of facial rPPG signals and background patterns benefits from specialized processing.
- Transformer's global attention is effective for rPPG: The transformer architecture's ability to model long-range dependencies is well-suited for capturing the periodic nature of rPPG signals across spatial and temporal dimensions.
Key Results
- State-of-the-art performance: TransRPPG achieves superior or on-par performance compared to existing rPPG-based and appearance-based methods on both intra- and cross-dataset tests. For instance, on the combined dataset, it achieves an AUC of 98.77% and an EER of 2.38%.
- Lightweight and efficient: The proposed TransRPPG is remarkably efficient, boasting only 547K parameters and 763M FLOPs, making it suitable for mobile-level applications.
- Impact of video length: The model performs well even with shorter video clips (around 7 seconds), demonstrating efficiency in temporal processing.
- Color space and patch size optimization: Ablation studies show that raw RGB channels are optimal for MSTmap construction, and a patch size of 3x30 with overlapping sampling (1x15) provides the best performance.
Limitations and Future Work
- Cross-dataset generalization: While TransRPPG generalizes well from MARsV2 to 3DMAD, it suffers performance drops when trained on 3DMAD and tested on MARsV2. This is attributed to the smaller training data size in 3DMAD and the importance of spectrum representation (which TransRPPG currently lacks).
- Future Directions: The authors plan to explore TransRPPG for detecting other PA types (print, replay, makeup) and for various rPPG-based applications like heart rate and stress estimation. They also suggest that incorporating frequency-domain representations could further enhance performance.
Summary updated