Back to paper library
FG 2017Face anti-spoofingPaper notes

OULU-NPU

Four Challenges

Original paper

OULU-NPU: A Mobile Face Presentation Attack Database with Real-World Variations

Paper authors

Zinelabinde Boulkenafet · Jukka Komulainen · Lei Li · Xiaoyi Feng · Abdenour Hadid

Publication
FG 2017Conference
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@inproceedings{faceantispoofingoulunpu2017,
  title = {{OULU-NPU: A Mobile Face Presentation Attack Database with Real-World Variations}},
  author = {Zinelabinde Boulkenafet and Jukka Komulainen and Lei Li and Xiaoyi Feng and Abdenour Hadid},
  year = {2017},
  booktitle = {FG},
  url = {https://doi.org/10.1109/fg.2017.77},
  doi = {10.1109/fg.2017.77}
}
On this page

Face recognition systems are the first-line biometric systems facing users.

Many phones offer face unlock, although sensors and anti-spoofing designs vary by product.

Defining the Problem

Physical presence requires a separate liveness check.

Past research has found that by simply downloading a target's photo from social media, six major systems at the time (Face Unlock, Facelock Pro, Visidon, etc.) could easily be bypassed with just a photo. Even liveness detection designs that ask for blinking eyes or head turns could be fooled using video recordings.

While there are several publicly available datasets for PAD (Presentation Attack Detection) benchmarking, the evaluation methods of these datasets are somewhat "idealized." Common within-dataset evaluations do not necessarily require unseen devices, environments, or attack tools at test time.

Additionally, the recording conditions of these datasets do not align with typical mobile phone use, as some use fixed webcams or DSLRs rather than the handheld capture typical of phone authentication.

The authors believe that a new dataset is needed to address this "generalization failure" problem.

Solving the Problem

This paper aims to solve the dataset issue.

To address the problem of "over-idealized datasets that cannot generalize to real-world mobile scenarios," the authors focus on three sources of variations (covariates) in their dataset design:

  1. Unknown environmental conditions (lighting and background)
  2. Different photographic devices
  3. Attack tools PAI (print and replay types)

The authors collected videos of 55 participants (15 female, 40 male) in three different scenarios, resulting in a total of 5940 video clips.

These three scenarios vary in lighting and background to simulate different "lighting conditions" users face in everyday mobile phone use:

  • Session 1: Open office, windows in the back, lights on, natural light.
  • Session 2: Conference room, only indoor lights, no natural light.
  • Session 3: Small office, windows in front, both indoor lights and natural light.

As shown in the image below:

Each participant recorded two video clips per session (registration + authentication), holding the supplied test phones to capture themselves. Each video was limited to 5 seconds, simulating a real unlocking process.

The videos were recorded using 6 mobile phones with "decent" front-facing camera quality:

  • Samsung Galaxy S6 edge (5MP)
  • HTC Desire EYE (13MP)
  • MEIZU X5 (5MP)
  • ASUS Zenfone Selfie (13MP)
  • Sony XPERIA C5 Ultra Dual (13MP)
  • OPPO N3 (16MP rotating camera)

All videos were recorded in Full HD (1920×1080) using a standardized camera app. Although several phones claimed to have the same 13MP camera, the video quality differences were still significant (yes, we all know that camera specifications alone aren’t trustworthy).

The video quality across different phones is shown in the image below:


Attack samples must be difficult to make the challenge meaningful. Therefore, the authors used the rear camera to capture high-resolution still photos and videos of participants, which were then printed or played back to create two types of attacks:

  • Print Attack: A3 glossy paper, using two printers (Canon C6011 & PIXMA iX6550)
  • Replay Attack: Played back on two screens (19-inch Dell UltraSharp + MacBook Retina)

The attack setup is shown below:

The video recording process is also carefully controlled:

  • Print attacks were carried out by hand-holding the photo with slight shaking, mimicking real movements.
  • Replay attacks were conducted with the setup fixed, ensuring the screen edges were not visible to avoid cheating features.

This makes the attacks harder by reducing obvious shortcuts such as screen borders; it does not eliminate every possible dataset bias.


Finally, the authors designed four systematic protocols to test generalization ability:

  1. Protocol I – Environmental Generalization: Test whether the system can still differentiate between genuine and fake faces under different lighting and backgrounds.
  2. Protocol II – Attack Tool Generalization: Train using one printer or display and test with a completely new one to see if the model breaks down.
  3. Protocol III – Device Generalization (Leave-One-Camera-Out): In each round, exclude one phone from the model's training, and see if it can correctly distinguish fake and real videos from a new phone.
  4. Protocol IV – The Ultimate Challenge: Change the environment, attack tool, and device all at once to simulate real-world variations, testing all factors together.

All protocols split the 55 participants into training, validation, and testing groups (20/15/20 participants), keeping subject identities disjoint. Model selection and threshold tuning must still respect the development/test split.

The dataset’s configuration is shown in the table below:

The imported table above is from the old site. Its Protocol I test-set count differs from the final paper's Table II: the final version lists 240 genuine and 960 attack videos, or 1,200 test videos in total, rather than the image's 600.

Discussion

The authors used a baseline model to test the four protocols, aiming to see if current mainstream PAD methods can survive in the real world.

The paper uses the PAD error rates APCER and BPCER, together with their average, ACER. The three should not all be described as independent metrics specified by the standard:

  • APCER: The proportion of attacks of a given presentation attack instrument category classified as bona fide. Overall APCER in this paper is the highest rate across attack categories.

  • BPCER: The proportion of bona fide presentations classified as attacks.

  • ACER: The average of APCER and BPCER.

    ACER=APCER+BPCER2\text{ACER} = \frac{\text{APCER} + \text{BPCER}}{2}

The test-set decision threshold is first chosen at the development-set EER operating point.

For the model, the authors use LBP as the baseline, but instead of grayscale images, features are directly extracted from the HSV and YCbCr color spaces.

The process is as follows:

  1. Detect face → crop → normalize to 64×64 small images.
  2. Use LBP(8,1)u2LBP^{u2}_{(8,1)} to extract texture features from each color channel.
  3. Feed into a Softmax classifier for training and prediction.

Let’s now look at how well this baseline method generalizes in each scenario.

Protocol I: The Impact of Lighting Changes

This is the simplest protocol.

First, the model is trained using Session 3 data and then tested using Session 3 data:

ACER is 2.7%, excellent performance.

Next, the model is trained using Session 1 and 2 data and tested on Session 3:

ACER jumps from 2.7% to 13.5%.

This indicates that once lighting changes, the recognition accuracy falls apart.

The overall BPCER rises from 2.4% to 21.3%, showing that the environmental shift mainly makes genuine presentations look like attacks. The paper treats this as a generalization problem for texture-based PAD.

Protocol II: The Impact of Attack Tool Variations

In the second round, the authors trained the model using Printer 1 + Display 1 and then tested it using Printer 2 + Display 2. For comparison, the control used Printer 2 + Display 2 for training, development and testing.

The results were as follows:

  • When the attack tool stayed the same, the ACER was 7.2%.
  • After changing the tool, ACER became 14.2%.

The change has a larger effect on print attacks: their ACER rises from 6.1% to 14.2%, while replay-attack ACER rises from 7.2% to 9.2%.

Protocol III: The Impact of Camera Device Variations

In the third round, the LOCO Protocol (Leave-One-Camera-Out) was used.

In each round, 5 phones were used for training, and the 6th phone’s recognition ability was tested.

Without changing phones, mean ACER is 6.3%. Under LOCO, it rises to 12.1%, with substantial differences between phone folds.

In other words:

Changing a phone is like entering a different world.

The color, clarity, and lens characteristics of the images all differ, presenting a major challenge for models based on "color texture."

Protocol IV: The Hellish Three-in-One Challenge

The fourth round, the most difficult challenge: Lighting + Attack Tool + Camera Device are all changed!

Mean ACER across the six phones reaches 27.2%, compared with 12.1% when only the phone changes. Earlier rounds looked more promising, but combining all three variations causes a much larger PAD error.

For Phone 6, print-attack APCER reaches 100%: every print-attack video in that test fold is classified as bona fide. This is a PAD result, not a failure to detect the faces themselves.

This confirms that generalization under a single variable is not equivalent to real-world generalization.

Conclusion

In this paper, the authors conducted structured protocol testing on three major sources of variation (environment, device, and attack method). The protocols offer a consistent way to assess generalization; cross-dataset research did not begin with this paper.

Although this dataset is still in its early stages regarding attack types (only print and replay), it advanced systematic evaluation of domain shift and robustness across scenarios in FAS, and it influenced the subsequent design of large dataset evaluations.

The authors' final words in the paper:

We invite the research community to consider this new database.

For us today, this is no longer just an invitation, but a classic and essential step.