[Paper Review] A realistic approach to generate masked faces applied on two novel masked face recognition data sets
This paper proposes a realistic method to generate synthetic masked faces using SparkAR Studio, enhancing the CASIA-WebFace and CelebA datasets with 640,446 masked face samples. The approach significantly improves masked face recognition performance, with models trained on the enhanced data outperforming those trained on original or less realistic masked data, especially on real-world masked benchmarks.
The COVID-19 pandemic raises the problem of adapting face recognition systems to the new reality, where people may wear surgical masks to cover their noses and mouths. Traditional data sets (e.g., CelebA, CASIA-WebFace) used for training these systems were released before the pandemic, so they now seem unsuited due to the lack of examples of people wearing masks. We propose a method for enhancing data sets containing faces without masks by creating synthetic masks and overlaying them on faces in the original images. Our method relies on SparkAR Studio, a developer program made by Facebook that is used to create Instagram face filters. In our approach, we use 9 masks of different colors, shapes and fabrics. We employ our method to generate a number of 445,446 (90%) samples of masks for the CASIA-WebFace data set and 196,254 (96.8%) masks for the CelebA data set, releasing the mask images at https://github.com/securifai/masked_faces. We show that our method produces significantly more realistic training examples of masks overlaid on faces by asking volunteers to qualitatively compare it to other methods or data sets designed for the same task. We also demonstrate the usefulness of our method by evaluating state-of-the-art face recognition systems (FaceNet, VGG-face, ArcFace) trained on our enhanced data sets and showing that they outperform equivalent systems trained on original data sets (containing faces without masks) or competing data sets (containing masks generated by related methods), when the test benchmarks contain masked faces.
Motivation & Objective
- Address the lack of realistic, large-scale masked face data for training robust face recognition systems.
- Overcome the distribution shift caused by widespread mask-wearing during the COVID-19 pandemic.
- Develop a scalable, automated method to synthesize realistic masks on unmasked faces using accessible tools.
- Improve the performance of state-of-the-art face recognition models on masked face recognition tasks.
- Demonstrate that mask realism directly impacts model generalization and recognition accuracy.
Proposed method
- Leverage SparkAR Studio, a Facebook-developed tool for Instagram filters, to generate synthetic masks with realistic textures, colors, and shapes.
- Apply 9 distinct mask types—varying in color, shape, and fabric—onto unmasked faces from existing datasets.
- Use Dlib-ml and ColorMatcher for accurate facial landmark detection and color consistency during mask overlay.
- Automate the mask generation pipeline with custom verification scripts to ensure alignment and realism.
- Release the enhanced datasets at https://github.com/securifai/masked_faces with full preprocessing scripts.
- Train and evaluate state-of-the-art face recognition models (FaceNet, VGG-face, ArcFace) on both original and enhanced datasets.
Experimental results
Research questions
- RQ1Can synthetic mask generation using consumer-grade tools like SparkAR Studio produce more realistic masked face images than existing methods?
- RQ2Does training face recognition models on synthetically masked data improve performance on real masked face benchmarks?
- RQ3How does the realism of synthetic masks affect the generalization capability of face recognition systems?
- RQ4Can enhanced datasets with realistic masks outperform baselines using blacked-out masks or less realistic synthetic masks?
- RQ5To what extent does mask realism correlate with recognition accuracy on real-world masked face data?
Key findings
- The proposed method generated 445,446 masked faces (90%) from CASIA-WebFace and 196,254 (96.8%) from CelebA, significantly expanding training data.
- Human evaluation confirmed that masks generated with SparkAR Studio appear significantly more realistic than those from competing methods.
- Face recognition models trained on the enhanced datasets achieved 96.22% accuracy on the MFR2 real masked face benchmark, outperforming models trained on blacked-out masks (93.04%) and MaskTheFace (95.16%).
- On the CASIA-WebFace test set with synthetic masks, models trained on our data achieved 91.47% accuracy with ArcFace, compared to 87.95% on original data.
- The performance gap between models trained on realistic masks and blacked-out masks was ~3%, indicating that mask shape and texture provide useful facial cues.
- A binary classifier based on MobileNetV2 achieved 99.44% accuracy in distinguishing masked from unmasked faces, enabling dynamic system switching.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.