Abstract
Face anti-spoofing (FAS) serves as a vital security layer for facial recognition systems, distinguishing live subjects from presentation attacks like photos or video replays. This paper introduces FreqSpatialTemporalNet, a two-stream neural network designed to capture both spatial and frequency-domain features. By processing RGB/HSV data alongside spectral images, the model preserves subtle spoofing cues often lost in deep CNN layers. Furthermore, a novel frequency-domain data synthesis pipeline is proposed to address data scarcity and improve cross-dataset generalization. Evaluations on OULU-NPU, CASIA-SURF, and SiW benchmarks show that the proposed method significantly outperforms existing baselines.
Introduction
The primary challenge in face anti-spoofing is the detection of microscopic artifacts—such as moiré patterns from digital screens or printing textures—that characterize spoofing attacks. Standard deep convolutional neural networks (CNNs) are optimized for high-level semantic features, which often leads to the loss of these low-level pixel details during downsampling.
As shown in the figure above, while a replay attack might look similar to a live face in the spatial domain, its frequency response reveals distinct periodic noise and artifacts. Additionally, the field suffers from a lack of diverse training data, making it difficult for models to generalize to unseen environments or attack types.
Methodology
FreqSpatialTemporalNet Architecture
The proposed architecture utilizes two parallel streams to process a sequence of $N$ frames, ensuring both spatial structure and temporal consistency are captured.
- Spatial Stream: This stream uses a ResNet-18 backbone to process 6-channel inputs (RGB + HSV). It is supervised by a depth map loss, which encourages the network to distinguish the 3D geometry of a live face from the flat surface of a print attack.
- Frequent Stream (FreqNet): This stream operates on spectral images generated via Fourier Transform. The frequency domain provides a "shortcut" for the network to identify periodic artifacts that appear as high-frequency spikes, which are more discriminative than spatial textures alone.
- Fusion and Classification: Features from both streams are concatenated and passed through a fully connected (FC) layer. A Softmax loss is then applied to produce the final classification score.
Frequency-Domain Data Synthesis
To mitigate data scarcity, the authors developed a synthesis pipeline that generates "synthesized fakes." By converting both live and spoof images to the frequency domain and randomly swapping high-frequency spectral blocks, they create new training samples. These samples retain the identity of the live subject while incorporating the universal "spoofing noise" found in real attacks, significantly boosting the model's ability to generalize.
Experimental Results
The model was rigorously tested on major benchmarks including OULU-NPU, CASIA-SURF, and SiW.
- Intra-dataset Performance: On OULU-NPU Protocol 2, the method achieved an Average Classification Error Rate (ACER) of 1.7%, a substantial improvement over the 14.0% ACER of a depth-only baseline.
- Cross-dataset Generalization: The impact of synthesized data was most evident in cross-testing. When trained on SiW and tested on OULU, the ACER dropped from 7.28% to 0.71% upon including synthesized frequency-domain samples.
- Ablation Studies: Results confirmed that the integration of HSV color space and longer temporal sequences (up to 20 frames) further enhances detection accuracy.
Conclusion
Deep Frequent Spatial Temporal Learning effectively addresses the limitations of traditional spatial-only FAS methods. By leveraging the frequency domain, the network gains direct access to low-level spoofing cues. Coupled with a robust data synthesis strategy, this approach provides a scalable and highly accurate solution for real-world face anti-spoofing deployment. Future work will focus on optimizing the computational efficiency of the dual-stream architecture for mobile platforms.
Summary updated