DFIC: Towards a balanced facial image dataset for automatic ICAO compliance verification

Nuno Gonçalves, Diogo Nunes, Carla Guerra, João Marcos

TL;DR

The authors introduce DFIC (Diverse Face Images - Coimbra), a massive, demographically balanced dataset of over 58,000 images designed to automate the verification of ICAO passport photo standards. Alongside the data, they propose a novel deep learning architecture using spatial attention that achieves state-of-the-art accuracy while significantly reducing demographic bias compared to existing models.

What Problem Does This Paper Address?

If you’ve ever applied for a passport, you know the drill: look straight ahead, neutral expression, no hair over the eyes, and a plain background. These are the ICAO (International Civil Aviation Organization) standards. While they seem simple, verifying them manually at scale (like in busy airports or enrollment offices) is a major bottleneck.

Existing automated systems struggle because they are trained on "data deserts." Current public datasets for ICAO compliance are often small, lack demographic diversity (skewing heavily toward younger, white subjects), and don't cover the full spectrum of non-compliant scenarios (like "frames too heavy" or "ink marked"). This leads to systems that are either inaccurate or, worse, biased against specific age groups or ethnicities.

Methods

The researchers didn't just build a dataset; they built a better "checker." Their proposed method uses a two-branch deep learning architecture based on DeepLabV3:

  1. Segmentation Branch: This branch identifies eight specific regions of the face (eyes, mouth, hair, etc.).
  2. ICAO Prediction Branch: This is the "brain." It uses Mask-specific Spatial Attention Mechanisms (MsSAMs). Essentially, the model "attends" to the relevant part of the face for each requirement—for example, it looks specifically at the eye region to check for "eyes closed" or "dark tinted lenses."

By combining these spatial features with Squeeze-and-Excitation (SE) modules for channel attention, the model learns to ignore irrelevant background noise and focus on the fine details that determine compliance.

Datasets

The star of the show is the DFIC dataset:

  • Scale: 58,633 images and 2,706 short videos from 1,016 subjects.
  • Diversity: It includes five age groups (from toddlers to seniors) and three broad origin groups (Caucasian, African, Asian).
  • Quality: Half the images were taken with high-end DSLRs, and the other half with smartphones (iPhone 6, Samsung S7) to simulate real-world variability.
  • Annotations: Over 2 million individual annotations covering 26 ICAO requirements.
  • Comparison: It is an order of magnitude larger than the previous standard (BioLab-ICAO) and far more balanced than the FRGC or CelebAMask-HQ datasets.

Key Insights and Ideas

  • Balance is a Feature, Not a Bonus: The authors created a "Balanced" partition of the dataset where demographic groups are nearly uniformly distributed. They proved that training on this balanced data significantly reduces the "Bias Index" of the resulting model without a massive sacrifice in overall accuracy.
  • Attention Matters: By forcing the model to look at specific face regions (via MsSAMs), the system becomes more robust. It doesn't just guess if a photo is "bad"; it learns where to look to find the violation.
  • The "Senior" Challenge: The paper identifies that the 66+ age group remains the hardest to classify correctly across all models. This is due to physical factors like lowered eyelids or different postures, which can confuse models trained primarily on younger faces.

Key Results

  • State-of-the-Art Performance: On the DFIC test set, the proposed model achieved an average Equal Error Rate (EER) of 0.020, outperforming the previous best (ICAONet at 0.072 and OFIQ at 0.104).
  • Generalization: When tested on the synthetic TONO+ONOT dataset (which the model had never seen), it still achieved the lowest EER (0.036), proving it isn't just memorizing the DFIC dataset.
  • Bias Reduction: The "Ours - Bal" model achieved a Bias Index of 0.038, the lowest in the study. For comparison, the original ICAONet had a bias index of 0.174—nearly five times higher.

Limitations and Future Work

While DFIC is a huge step forward, the authors acknowledge that the Senior (66+) age group still shows higher error rates, suggesting a need for even more data targeting this demographic. Additionally, the "African" origin group showed higher error rates in some models due to lower contrast in certain lighting conditions.

Future work involves submitting the method to the FvC-Ongoing benchmark for independent validation and expanding the dataset to include more older female subjects from African and Asian origins to achieve a truly "fully balanced" representation. They also plan to leverage the 2,700+ videos to develop temporal verification methods (e.g., checking if a person can actually open/close their mouth to verify "mouth open" requirements).

Summary updated

Abstract

Ensuring compliance with ISO/IEC and ICAO standards for facial images in machine-readable travel documents (MRTDs) is essential for reliable identity verification, but current manual inspection methods are inefficient in high-demand environments. This paper introduces the DFIC dataset, a novel comprehensive facial image dataset comprising around 58,000 annotated images and 2706 videos of more than 1000 subjects, that cover a broad range of non-compliant conditions, in addition to compliant portraits. Our dataset provides a more balanced demographic distribution than the existing public datasets, with one partition that is nearly uniformly distributed, facilitating the development of automated ICAO compliance verification methods. Using DFIC, we fine-tuned a novel method that heavily relies on spatial attention mechanisms for the automatic validation of ICAO compliance requirements, and we have compared it with the state-of-the-art aimed at ICAO compliance verification, demonstrating improved results. DFIC dataset is now made public (https://github.com/visteam-isr-uc/DFIC) for the training and validation of new models, offering an unprecedented diversity of faces, that will improve both robustness and adaptability to the intrinsically diverse combinations of faces and props that can be presented to the validation system. These results emphasize the potential of DFIC to enhance automated ICAO compliance methods but it can also be used in many other applications that aim to improve the security, privacy, and fairness of facial recognition systems.
BibTeX
@misc{goncalves2026dfic,
  author = {Nuno Gonçalves and Diogo Nunes and Carla Guerra and João Marcos},
  title = {{DFIC: Towards a balanced facial image dataset for automatic ICAO compliance verification}},
  year = {2026},
  eprint = {2602.10985},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.10985},
}
Figure