A Face Preprocessing Approach for Improved DeepFake Detection

Polychronis Charitidis, Giorgos Kordopatis-Zilos, Symeon Papadopoulos, Ioannis Kompatsiaris

Abstract

Recent advances in content generation technologies (widely known as DeepFakes) along with the online proliferation of manipulated media content render the detection of such manipulations a task of increasing importance. Even though there are many DeepFake detection methods, only a few focus on the impact of dataset preprocessing and the aggregation of frame-level to video-level prediction on model performance. In this paper, we propose a pre-processing step to improve the training data quality and examine its effect on the performance of DeepFake detection. We also propose and evaluate the effect of video-level prediction aggregation approaches. Experimental results show that the proposed pre-processing approach leads to considerable improvements in the performance of detection models, and the proposed prediction aggregation scheme further boosts the detection efficiency in cases where there are multiple faces in a video.

Introduction

DeepFake detection is often framed as a high-stakes arms race between generative models and discriminative classifiers. While much of the research focuses on designing deeper, more complex neural networks, a fundamental bottleneck often goes overlooked: the quality of data pre-processing. Standard detection pipelines are frequently compromised by "noise"—false positive face detections that introduce irrelevant signals into the training and inference phases.

The Challenge of Noisy Face Detection

Most DeepFake detection pipelines follow a standard sequence: extract frames, run a face detector, crop the faces, and feed them into a Convolutional Neural Network (CNN). However, face detectors are not infallible. They frequently trigger on non-face objects, such as background textures, furniture, or hands moving across a subject's face.

Examples of noise in face detection, including background textures and hands misidentified as faces.

When these false positives enter the training set, they create a noisy signal that can mislead the model. During inference, if a model makes a prediction on a "face" that is actually a background element, the final video-level score becomes unreliable. This "garbage in, garbage out" problem necessitates a more robust method for ensuring only consistent, high-quality facial data reaches the model.

Proposed Methodology: Face Graph Filtering

To address this, we propose a two-pronged improvement to the standard pipeline: Face Graph Filtering and Face-Aware Aggregation.

Face Graph Filtering

Instead of treating every detected bounding box as a valid face, the system computes a 512-dimensional embedding for every detection using a face recognition model. It then constructs a "face graph" where nodes represent individual detections and edges represent high similarity (cosine similarity > 0.8).

The Face Graph Filtering process, where high-similarity embeddings form connected components representing consistent subjects.

The logic is based on temporal consistency: real faces appear consistently across many frames, forming large "connected components" (clusters) in the graph. Conversely, transient false positives appear sporadically and do not form strong clusters. By discarding small clusters, we mathematically prune away the noise that plagues standard detectors.

Face-Aware Prediction Aggregation

Standard systems often average the scores of every frame to produce a video-level result. However, in videos containing multiple people where only one might be "faked," simple averaging dilutes the detection signal. Our "Face" aggregation scheme calculates the average score for each unique face cluster identified in the graph and then takes the maximum (most suspicious) score among those clusters.

Experimental Results

The approach was evaluated on three major benchmarks: Celeb-DF, FaceForensics++ (FF++), and the DeepFake Detection Challenge (DFDC). The results demonstrate that the pre-processing improvements are model-agnostic, providing gains across various architectures including MesoInception-4, XceptionNet, and EfficientNet-B4.

On the DFDC dataset, the proposed pre-processing reduced Log Loss from 0.198 to 0.173 for the EfficientNet-B4 model. Across all datasets, accuracy improved by approximately 2% simply by cleaning the input data. The combination of EfficientNet-B4 with Face-Aware aggregation achieved an F1 score of 96.5% on the DFDC test set.

Conclusion

This research highlights that improving the quality of the input data through temporal consistency filtering is as crucial as the choice of neural network architecture. By leveraging facial embeddings to cluster detections, we can significantly reduce the impact of false positives and improve the reliability of video-level DeepFake detection, especially in complex, multi-subject scenarios.

Summary updated

BibTeX
@inproceedings{charitidis2020face,
  author = {Polychronis Charitidis and Giorgos Kordopatis-Zilos and Symeon Papadopoulos and Ioannis Kompatsiaris},
  title = {{A Face Preprocessing Approach for Improved DeepFake Detection}},
  booktitle = {TTO},
  year = {2020},
  url = {https://openreview.net/forum?id=mr0ft1SVpmK},
}
Figure