Skip to content

The purpose of this project is to develop an AI-powered system capable of detecting deepfake facial data in biometric systems. By leveraging machine learning, specifically XceptionNet architecture, the project aims to classify facial data as real or fake with high accuracy and reliability.

License

Notifications You must be signed in to change notification settings

utkuatasoy/AI-Powered-Deepfake-Detection

Repository files navigation

AI-Powered Deepfake Detection in Biometric Systems

Description

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.


🧠 Features

📁 Datasets Used

  • 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++


🔧 Preprocessing

  • 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


🧱 Model Architecture

  • XceptionNet with depthwise separable convolutions.
  • Optimized using Binary Cross-Entropy Loss and Adam Optimizer.


XceptionNet architectural flow (Entry → Middle → Exit Flow)


🔍 Feature Extraction


Feature maps from XceptionNet’s Entry Flow (Layers 1–10)


Feature maps from XceptionNet’s Exit Flow (final classification layer)


🖥️ System Pipeline


System architecture overview for end-to-end detection


📈 Performance Evaluation

Training Curves


Training and validation curves (20 epochs)


Training and validation curves (100 epochs)

Confusion Matrices


Confusion matrices: 20 epochs / 100 epochs / Unseen data


Prediction Examples


Predictions on hybrid dataset (100 epochs, seen data)


Predictions on hybrid dataset (unseen data)


Example batch from unseen test data


✅ Achievements

  • 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.

❗ Challenges

  • Ensuring generalization to unseen deepfake manipulations.
  • Balancing between accuracy and computational efficiency.
  • Limited dataset diversity in real-world-like scenarios.

🚀 Future Work

  • Explore transformer-based and real-time detection architectures.
  • Extend dataset diversity through ethical data collection.
  • Integrate model into real-time biometric security pipelines.

📚 References

  1. A. Rössler et al., “FaceForensics++,” ICCV, 2019.
  2. Y. Li et al., “Celeb-DF,” CVPR, 2020.
  3. Y. Mirsky and W. Lee, ACM Computing Surveys, 2021.
  4. B. Dolhansky et al., “DFDC Dataset,” 2020.
  5. M. S. Rana et al., IEEE Access, 2022.
  6. B. Zi et al., “WildDeepfake,” ACM Multimedia, 2020.
  7. A. Heidari et al., Wiley Reviews, 2023.
  8. M.-H. Maras and A. Alexandrou, The Int. J. of Evidence & Proof, 2019.
  9. S. Hussain et al., WACV, 2021.
  10. L. Floridi, Philosophy & Technology, 2018.

About

The purpose of this project is to develop an AI-powered system capable of detecting deepfake facial data in biometric systems. By leveraging machine learning, specifically XceptionNet architecture, the project aims to classify facial data as real or fake with high accuracy and reliability.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published