Skip to main content
QUICK REVIEW

[Paper Review] Deep Spatial Gradient and Temporal Depth Learning for Face Anti-spoofing

Zezheng Wang, Zitong Yu|arXiv (Cornell University)|Mar 18, 2020
Biometric Identification and SecurityComputer Science58 references21 citations
TL;DR

This paper proposes a novel deep learning framework for face anti-spoofing that leverages spatial gradient features and spatio-temporal dynamics through a Residual Spatial Gradient Block (RSGB) and Spatio-Temporal Propagation Module (STPM), combined with a Contrastive Depth Loss (CDL) for improved depth supervision. The method achieves state-of-the-art performance on five benchmark datasets, including a newly collected Double-modal Anti-spoofing Dataset (DMAD), demonstrating that actual depth maps significantly enhance monocular face anti-spoofing accuracy over generated depth.

ABSTRACT

Face anti-spoofing is critical to the security of face recognition systems. Depth supervised learning has been proven as one of the most effective methods for face anti-spoofing. Despite the great success, most previous works still formulate the problem as a single-frame multi-task one by simply augmenting the loss with depth, while neglecting the detailed fine-grained information and the interplay between facial depths and moving patterns. In contrast, we design a new approach to detect presentation attacks from multiple frames based on two insights: 1) detailed discriminative clues (e.g., spatial gradient magnitude) between living and spoofing face may be discarded through stacked vanilla convolutions, and 2) the dynamics of 3D moving faces provide important clues in detecting the spoofing faces. The proposed method is able to capture discriminative details via Residual Spatial Gradient Block (RSGB) and encode spatio-temporal information from Spatio-Temporal Propagation Module (STPM) efficiently. Moreover, a novel Contrastive Depth Loss is presented for more accurate depth supervision. To assess the efficacy of our method, we also collect a Double-modal Anti-spoofing Dataset (DMAD) which provides actual depth for each sample. The experiments demonstrate that the proposed approach achieves state-of-the-art results on five benchmark datasets including OULU-NPU, SiW, CASIA-MFSD, Replay-Attack, and the new DMAD. Codes will be available at https://github.com/clks-wzz/FAS-SGTD.

Motivation & Objective

  • To address the limitations of single-frame depth supervision in face anti-spoofing by exploiting fine-grained spatial gradients and temporal dynamics.
  • To improve discrimination between live and spoofed faces by capturing low-level, discriminative features often lost in standard convolutional layers.
  • To enhance depth supervision through a novel Contrastive Depth Loss (CDL) that models facial topography more accurately.
  • To validate the superiority of actual depth maps over synthetic or generated depth for monocular face anti-spoofing.
  • To establish a new benchmark with the Double-modal Anti-spoofing Dataset (DMAD), providing real depth maps for each sample.

Proposed method

  • The Residual Spatial Gradient Block (RSGB) integrates spatial gradient magnitude with learned convolutional features via shortcut connections, preserving fine-grained discriminative details.
  • The Spatio-Temporal Propagation Module (STPM) fuses short- and long-term motion patterns across multiple frames to enrich depth estimation and spatio-temporal representation.
  • A novel Contrastive Depth Loss (CDL) is introduced to encourage the model to learn meaningful facial topography by contrasting depth predictions across different facial keypoint relationships.
  • The framework is trained end-to-end using both RGB frames and depth supervision, with depth maps either generated or, in the case of DMAD, real measurements.
  • The model is evaluated on five benchmark datasets: OULU-NPU, SiW, CASIA-MFSD, Replay-Attack, and the newly introduced DMAD.
  • The method is designed for monocular video sequences, focusing on planar attacks such as print and replay attacks.

Experimental results

Research questions

  • RQ1Can spatial gradient magnitude, a low-level discriminative cue, be effectively integrated into deep networks to improve face anti-spoofing?
  • RQ2Does modeling temporal dynamics across multiple frames enhance depth estimation and spoof detection beyond single-frame approaches?
  • RQ3Can a contrastive loss on depth maps improve the quality of depth supervision and generalization in face anti-spoofing?
  • RQ4Is actual depth map acquisition more beneficial than synthetic or GAN-generated depth for monocular face anti-spoofing?
  • RQ5How does the proposed method generalize across diverse datasets and attack types compared to prior state-of-the-art methods?

Key findings

  • The proposed method achieves the lowest ACER of 4.55% on the DMAD dataset when using actual depth maps, significantly outperforming the generated depth baseline (ACER 6.33%).
  • On cross-database testing from CASIA-MFSD to Replay-Attack, the method reduces HTER by 38.4% compared to the previous SOTA, achieving 17.0% HTER.
  • On cross-database testing from SiW to OULU-NPU, the method reduces ACER by 2.5% on protocol 1 and 4.6% on protocol 4 compared to the Auxiliary [34] method.
  • Feature visualization using t-SNE shows that the inclusion of RSGB leads to better class separation between live and spoofed faces, indicating improved discriminative capacity.
  • The ablation study confirms that RSGB and STPM contribute significantly to performance, with RSGB particularly effective in preserving fine-grained spatial gradients.
  • The results demonstrate that actual depth maps are more effective than generated depth for monocular face anti-spoofing, validating the value of the newly collected DMAD dataset.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.