Published in: International Journal of Scientific Research in Engineering and Management (IJSREM), Vol. 09, Issue 05, May 2025.
Abstract
This paper details the design and implementation of a deepfake detection system capable of distinguishing authentic images from those involving facial manipulation. By identifying manipulated faces, the system aims to mitigate the harmful effects of deepfake technology. With the rapid advancement of generative technologies, the spread of manipulated images has become a serious concern across social media and national security. Traditional verification methods are often inadequate against modern, sophisticated forgeries.
Introduction
As generative adversarial networks (GANs) and sophisticated image-editing tools become more accessible, the barrier to creating highly realistic "deepfakes" has plummeted. These forgeries pose significant risks, including political misinformation, financial blackmail, and the creation of non-consensual explicit content.
Modern deepfakes are generated at the pixel level, making manual verification unreliable and unscalable. This research proposes an automated, high-accuracy system capable of real-time detection by analyzing both spatial and temporal inconsistencies that are imperceptible to the human eye.
Methodology
The proposed framework utilizes a hybrid "spatial-temporal" approach. Rather than analyzing isolated frames, the system evaluates sequences of frames to identify discrepancies in motion and texture.
1. Preprocessing
The system first detects and crops faces from video frames. To optimize computational efficiency, the model processes the first 150 frames of each video, resized to a standard resolution of 112x112 pixels.
2. Spatial Feature Extraction (ResNext)
The model employs a pre-trained ResNext-50 (32x4d) architecture. ResNext improves upon standard ResNet designs by using parallel paths (cardinality) to enhance accuracy without a significant increase in parameter count. This stage extracts a 2048-dimensional feature vector from each individual frame, capturing high-level spatial details.
3. Temporal Analysis (LSTM)
These feature vectors are passed into a Long Short-Term Memory (LSTM) layer with 2048 hidden units. While the CNN identifies spatial features, the LSTM analyzes how these features change over time. This is critical for detecting deepfakes, which often exhibit subtle "jitter" or unnatural transitions between frames that static analysis might miss.
4. Classification
A final SoftMax layer provides a confidence score, classifying the input as either "Real" or "Fake."
Datasets
To ensure a robust and unbiased model, the researchers curated a balanced dataset of 6,000 videos (3,000 real and 3,000 fake). This dataset was compiled from three major industry benchmarks:
- FaceForensics++ (FF): A standard for forensic analysis of manipulated faces.
- Deepfake Detection Challenge (DFDC): A large-scale dataset created by Meta/Facebook.
- Celeb-DF: A high-quality dataset featuring celebrity deepfakes with reduced visual artifacts.
The DFDC dataset was specifically filtered to remove audio-only deepfakes, ensuring the model remains focused exclusively on visual manipulation.
Key Results and Discussion
The research resulted in a functional prototype featuring a web-based interface for video analysis. Key findings include:
- Confidence Scoring: The system provides a percentage-based confidence score (e.g., "REAL: 81.3%"), which is essential for forensic applications requiring human oversight.
- Efficiency: The model can process 1 second of video (at 10 fps) with high accuracy, demonstrating potential for real-time application.
- Validation: Using a 70/30 train-test split (4,200 training vs. 1,800 test samples), the model demonstrated a strong ability to generalize to unseen data.
Conclusion and Future Work
While the current system is effective for 2D static images and videos, the authors identify several avenues for future research. Current limitations include a lack of support for 3D-based deepfakes and high resource requirements for mobile deployment. Future iterations may integrate object detection models like YOLOv8 to localize specific areas of manipulation within a frame and further refine the detection of complex temporal discrepancies as GAN technology continues to evolve.
Summary updated