NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Specular- and Diffuse-reflection-based Face Spoofing Detection for Mobile Devices

Akinori F. Ebihara, Kazuyuki Sakurai, Hitoshi Imaoka

TL;DR

This paper introduces SpecDiff, an efficient face presentation attack detection (PAD) algorithm for mobile devices that uses a single camera and flash. By analyzing specular reflections from the iris and diffuse reflections from the face, SpecDiff achieves high accuracy comparable to deep learning models but is significantly faster and requires less computational resources.

What Problem Does This Paper Address?

Biometric authentication systems, particularly those using facial recognition, offer convenience but are vulnerable to "spoofing attacks." These attacks involve presenting a fake face (e.g., a printed photo or a video replay) to trick the system into granting unauthorized access. While deep learning has advanced face recognition, these models often demand substantial computational power, making them unsuitable for resource-constrained devices like smartphones. The paper addresses the critical need for an efficient, accurate, and hardware-light PAD solution that can be deployed on mobile devices without relying on external servers.

Methods

The core of the proposed method, SpecDiff, lies in its novel descriptor that leverages two types of light reflection captured by taking two photos: one with a flash and one without.

  • Specular Reflection (Dspec): This component focuses on the iris region. When a flash hits a live human eye, it creates a distinct specular reflection (a bright spot) due to the eye's curved surface. This reflection's intensity and distribution differ significantly from what's observed on a flat printed photo or a screen. The algorithm extracts the iris regions, calculates the difference in intensity between the flashed and unflashed images, and normalizes it. To enhance robustness against slight positional shifts of the reflection, the descriptor elements are sorted.
  • Diffuse Reflection (Ddiff): This component analyzes the entire face region. Live faces have a 3D structure that affects how light diffuses across their surface. Spoofing attacks, especially 2D ones, present a flat surface. Ddiff captures this difference by analyzing the intensity variations in the face region between the flashed and unflashed images. This descriptor is designed to be color-invariant, addressing potential issues with varying skin tones.
  • SpecDiff Descriptor: The final descriptor, SpecDiff, is formed by concatenating the Dspec and Ddiff descriptors. This combined descriptor is then fed into standard classifiers like Support Vector Machines (SVMs) or neural networks.

The preprocessing steps include face detection, feature extraction, cropping, Gaussian filtering for invariance, and resizing, all designed to be computationally efficient.

Datasets

The authors utilized a combination of their own collected data and publicly available datasets:

  • In-house Database: Collected by the authors, consisting of 1176 live and 1660 spoof face image pairs from 20 subjects. This dataset was captured under various conditions (lighting, accessories, expressions) and included different types of spoof attacks (flat papers, bent papers, displays).
  • Public Databases:
    • NUAA (photo attacks)
    • Replay-Attack (photo and replay attacks)
    • SiW (Spoofing in the Wild) (photo and replay attacks)

The public databases were used exclusively for testing to evaluate the generalizability of the proposed method.

Key Insights and Ideas

  • Leveraging Flash for Liveness: The paper effectively demonstrates that the subtle differences in how a flash interacts with a live face (iris specular reflection, face diffuse reflection) can be powerful indicators of liveness, even with a single camera.
  • Complementary Descriptors: Combining specular (iris) and diffuse (face) reflection analysis provides a more robust detection mechanism. Dspec handles the direct reflection from the eye, while Ddiff accounts for the overall surface structure and color variations.
  • Efficiency on Mobile Devices: The core insight is that a computationally efficient descriptor, rather than a complex end-to-end deep network, can achieve competitive accuracy on resource-constrained devices. This opens doors for practical on-device PAD.
  • Minimal Hardware Requirements: The reliance on a single visible-light camera and a flash (or a screen simulating a flash) makes the system highly accessible and deployable on most modern smartphones.

Key Results

  • High Accuracy: The SpecDiff descriptor with an SVM classifier achieved the highest classification accuracy on average across both the in-house and public databases.
  • Superior to Deep Learning: SpecDiff demonstrated statistically significantly better accuracy than an end-to-end ResNet4 deep neural network classifier.
  • Speed Advantage: The proposed algorithm was approximately six times faster than ResNet4 on mobile devices (iPhone 7, iPhone XR, iPad Pro) for descriptor calculation and classification.
  • Small Database Requirement: The algorithm can be trained effectively with a relatively small database of approximately 1K image pairs per class.
  • Robustness: The method showed good performance across different spoofing attack types (photo, display) and was not significantly affected by lighting variations.

Limitations and Future Work

  • 3D Mask Attacks: The paper explicitly states that it does not consider 3D mask attacks due to their higher production cost. This remains an area for future research.
  • Generalizability to All Devices: While tested on specific iPhone and iPad models, further validation on a wider range of mobile hardware might be beneficial.
  • Exploration of Other Classifiers: While SVM was used effectively, exploring other lightweight classifiers or optimized deep learning architectures for the SpecDiff descriptor could potentially yield further improvements.
  • Real-world Deployment Challenges: While the paper demonstrates speed and accuracy, real-world deployment might involve challenges related to varying ambient lighting conditions, camera quality, and user interaction nuances that could be further investigated.

Summary updated

BibTeX
@inproceedings{ebihara2020specular,
  author = {Akinori F. Ebihara and Kazuyuki Sakurai and Hitoshi Imaoka},
  title = {{Specular- and Diffuse-reflection-based Face Spoofing Detection for Mobile Devices}},
  booktitle = {IJCB},
  year = {2020},
  url = {https://openreview.net/forum?id=yg7_oDqVlop},
}
Figure