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 has become a critical task as manipulation technologies advance. While many models exist, performance is often bottlenecked by the quality of training data and the methods used to aggregate frame-level predictions into video-level decisions. This paper addresses the "garbage in, garbage out" problem in DeepFake detection pipelines.
The standard workflow—extracting frames, detecting faces, and training a Convolutional Neural Network (CNN)—suffers from two main issues:
- Noisy Training Data: Face detectors frequently produce false positives, identifying hands, clothing, or background textures as faces. These errors act as noise that degrades the model's ability to learn actual manipulation artifacts.
- Naive Aggregation: Simple averaging of frame scores often fails in multi-person videos where only one subject is manipulated, as the "fake" signal is diluted by "real" faces.
Methodology
The authors propose a refined pipeline that incorporates a robust pre-processing step and a person-specific aggregation scheme to improve detection accuracy.
Similarity-Based Pre-processing
To filter out false-positive detections, the authors utilize a face recognition model (FaceNet) to generate 512-dimensional embeddings for every detected region. These regions are then organized into a "face graph."
Nodes are connected if their cosine similarity exceeds a threshold ($\theta = 0.8$). Real human faces appearing consistently throughout a video form large, dense clusters, while sporadic noise forms small, isolated components. By discarding clusters below a size threshold (e.g., less than half the number of sampled frames), the dataset is effectively "scrubbed" of non-face noise.
Person-Specific Prediction Aggregation
For video-level scoring, the authors move beyond simple averaging (Avg). Using the clusters identified during pre-processing, they calculate a score for each "person" (cluster) by averaging their specific frame-level predictions. The final video score is the maximum score among all detected people (Face). This ensures that if even one person in a multi-person video is a DeepFake, the entire video is flagged.
Experimental Setup and Datasets
The method was evaluated on three major benchmarks:
- Celeb-DF: High-quality face swaps of celebrities.
- FaceForensics++: A large-scale dataset featuring four different automated manipulation techniques.
- DFDC (DeepFake Detection Challenge): A massive, diverse dataset featuring various lighting conditions, backgrounds, and multiple subjects per video.
Results and Key Insights
The proposed pre-processing led to a 12-13% improvement in Log Loss scores for models like EfficientNet-B4 and XceptionNet. On the DFDC test set, EfficientNet-B4 accuracy increased from 93.8% to 96.3% when using both pre-processing and Face aggregation.
Key insights include:
- Clustering as a Filter: Turning a computer vision weakness (false positives) into a graph problem significantly improves dataset purity.
- The Multi-Face Trap: In multi-subject videos, focusing on the most likely manipulated subject (
Faceaggregation) prevents the "fake" signal from being diluted by surrounding real faces. - Threshold Sensitivity: A similarity threshold of 0.8 was found to be optimal; higher values fragment real face sequences, while lower values allow noise to persist.
Conclusion and Future Work
This research highlights the importance of data quality in DeepFake detection. While the proposed methods offer significant gains, limitations remain regarding "micro-manipulations" that appear only briefly. Future work should focus on improving model generalization to unseen manipulation types and enhancing the explainability of forensic tools.
Summary updated