Skip to main content
QUICK REVIEW

[Paper Review] Swapped Face Detection using Deep Learning and Subjective Assessment

Xinyi Ding, Zohreh Raziei|arXiv (Cornell University)|Sep 10, 2019
Face recognition and analysisComputer Science24 references7 citations
TL;DR

This paper proposes a deep transfer learning-based face-swapping detection model that achieves over 96% true positive rate with low false alarms, while introducing uncertainty estimation via logits difference to improve trustworthiness. It also conducts human pairwise comparisons via a custom website, showing strong correlation (r > 0.75) between model uncertainty and human perception of realism, and releases the largest public still-image swapped face dataset to date.

ABSTRACT

The tremendous success of deep learning for imaging applications has resulted in numerous beneficial advances. Unfortunately, this success has also been a catalyst for malicious uses such as photo-realistic face swapping of parties without consent. Transferring one person's face from a source image to a target image of another person, while keeping the image photo-realistic overall has become increasingly easy and automatic, even for individuals without much knowledge of image processing. In this study, we use deep transfer learning for face swapping detection, showing true positive rates >96% with very few false alarms. Distinguished from existing methods that only provide detection accuracy, we also provide uncertainty for each prediction, which is critical for trust in the deployment of such detection systems. Moreover, we provide a comparison to human subjects. To capture human recognition performance, we build a website to collect pairwise comparisons of images from human subjects. Based on these comparisons, images are ranked from most real to most fake. We compare this ranking to the outputs from our automatic model, showing good, but imperfect, correspondence with linear correlations >0.75. Overall, the results show the effectiveness of our method. As part of this study, we create a novel, publicly available dataset that is, to the best of our knowledge, the largest public swapped face dataset created using still images. Our goal of this study is to inspire more research in the field of image forensics through the creation of a public dataset and initial analysis.

Motivation & Objective

  • To develop a reliable deep learning-based face-swapping detection system with uncertainty estimation for improved trust in real-world deployment.
  • To evaluate the model's performance against human perception by collecting pairwise image comparisons from human subjects.
  • To create and release the largest publicly available dataset of still-image face-swapped faces, with 420,053 images across 86 celebrities.
  • To compare model predictions with human rankings to assess alignment with human intuition in detecting fake faces.
  • To inspire further research in image forensics by providing a benchmark dataset and comparative analysis.

Proposed method

  • Uses transfer learning with a pre-trained ResNet-50 model fine-tuned on a large face-swapped dataset for binary classification of real vs. fake faces.
  • Estimates prediction uncertainty using the logits difference (odds ratio) between the two output classes, assuming smaller differences indicate lower confidence.
  • Deploys a custom website to collect human pairwise comparisons of 400 selected images to generate a human perception ranking from most real to most fake.
  • Applies approximate ranking algorithms (Hamming-LUCB) to reduce the number of required pairwise comparisons while maintaining accuracy.
  • Uses Grad-CAM to visualize attention maps, showing the model focuses on facial regions (nose and eyes), consistent with human visual attention.
  • Compares the model's logit margin (uncertainty) with human rankings using linear and Spearman’s rank correlation to assess similarity.

Experimental results

Research questions

  • RQ1How well does a deep learning model detect swapped faces compared to human perception?
  • RQ2Can the model’s uncertainty estimation (via logits difference) correlate with human difficulty in detecting fake faces?
  • RQ3How similar is the ranking of face images from the model to the ranking derived from human pairwise comparisons?
  • RQ4What is the performance of the model in terms of true positive rate and false alarm rate on a large-scale, diverse dataset?
  • RQ5To what extent does the model’s attention focus align with human visual attention on facial features?

Key findings

  • The proposed model achieves a true positive rate exceeding 96% with very few false alarms, demonstrating high detection accuracy.
  • The model’s uncertainty estimation, based on logits difference, shows strong correlation with human perception, with linear correlation >0.75 and Spearman’s rank correlation >0.75 for both AE-GAN and Nirkin’s method-generated faces.
  • For the AE-GAN method, the linear correlation between model logit margin and human ranking is 0.8332, and for Nirkin’s method, it is 0.7896, both with p-values < 0.01.
  • Human subjects show greater difficulty detecting faces generated by Nirkin’s method, which are more photo-realistic and retain higher resolution, compared to the blurrier AE-GAN faces.
  • Grad-CAM visualization confirms the model focuses on central facial regions (nose and eyes), aligning with human gaze patterns and likely where most artifacts are located.
  • The study releases a novel, publicly available dataset of 420,053 images across 86 celebrities, the largest known public dataset of still-image face-swapped faces.

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.