This project focuses on detecting deepfake videos using deep learning techniques, particularly in biometric systems where facial recognition is critical for security. We implemented a solution using the XceptionNet architecture to identify manipulated facial data from real and fake video datasets.
- Celeb-DF-v2: 42,000+ real and fake facial images.
- FaceForensics++: 57,000+ real and fake facial images.
- Hybrid Dataset: Combined version for better generalization (99,000+ images).
Example training batch combining Celeb-DF-v2 and FaceForensics++
- Face detection and alignment using Dlib (68 landmark points).
- Images resized to 128×128 pixels and converted to tensors.
- Visual difference maps calculated between raw and normalized images.
Dlib facial landmark detection example
Preprocessing: subject face examples with difference maps
- XceptionNet with depthwise separable convolutions.
- Optimized using Binary Cross-Entropy Loss and Adam Optimizer.
XceptionNet architectural flow (Entry → Middle → Exit Flow)
Feature maps from XceptionNet’s Entry Flow (Layers 1–10)
Feature maps from XceptionNet’s Exit Flow (final classification layer)
System architecture overview for end-to-end detection
Training and validation curves (20 epochs)
Training and validation curves (100 epochs)
Confusion matrices: 20 epochs / 100 epochs / Unseen data
Predictions on hybrid dataset (100 epochs, seen data)
Predictions on hybrid dataset (unseen data)
Example batch from unseen test data
- Built a high-performance deepfake detection system using state-of-the-art CNN techniques.
- Successfully evaluated model generalizability with unseen test data.
- Visualized preprocessing and internal feature extraction layers to understand the learning process.
- Ensuring generalization to unseen deepfake manipulations.
- Balancing between accuracy and computational efficiency.
- Limited dataset diversity in real-world-like scenarios.
- Explore transformer-based and real-time detection architectures.
- Extend dataset diversity through ethical data collection.
- Integrate model into real-time biometric security pipelines.
- A. Rössler et al., “FaceForensics++,” ICCV, 2019.
- Y. Li et al., “Celeb-DF,” CVPR, 2020.
- Y. Mirsky and W. Lee, ACM Computing Surveys, 2021.
- B. Dolhansky et al., “DFDC Dataset,” 2020.
- M. S. Rana et al., IEEE Access, 2022.
- B. Zi et al., “WildDeepfake,” ACM Multimedia, 2020.
- A. Heidari et al., Wiley Reviews, 2023.
- M.-H. Maras and A. Alexandrou, The Int. J. of Evidence & Proof, 2019.
- S. Hussain et al., WACV, 2021.
- L. Floridi, Philosophy & Technology, 2018.