Built to order

Deepfake Image Detection using Deep Learning

A forensic AI system that distinguishes real photos from AI-manipulated faces using a CNN with frequency-domain features. The web app gives a real/fake verdict with confidence and Grad-CAM heatmaps showing suspicious regions — a cutting-edge cybersecurity-AI project examiners love.

Deepfake detection project thumbnail showing a face image analysis result with a real/fake verdict and suspicious-region heatmap overlay.
More project photos (2)

The problem

The Deepfake Image Detection system is a forensic-AI final-year project that answers one of the defining questions of the AI era: is this face real? Built with a convolutional neural network trained on the FaceForensics++ benchmark dataset, the system detects AI-manipulated faces — face swaps, reenactments and GAN-generated portraits — by combining spatial deep-learning features with frequency-domain artifacts that generative models leave behind.
The accompanying FakeSpot web app accepts an image upload, runs face detection and alignment, and returns a real/fake verdict with a confidence score plus Grad-CAM heatmaps that highlight the exact facial regions (eyes, mouth edges, blending boundaries) the model found suspicious — so the verdict is explainable, not a black box.
This is a built-to-order software project: the code, trained model weights and full documentation are prepared fresh for you, with the complete viva kit (report, PPT, Q&A) included.

How it works

  1. You upload a photo (or video frames) to the FakeSpot web app.
  2. The face detector locates and aligns every face in the image.
  3. Each face crop is fed to the trained CNN (Xception/EfficientNet-style backbone), which scores spatial deep-learning features.
  4. In parallel, the system computes the image's frequency spectrum (FFT/DCT) — generative models leave distinctive upsampling and blending artifacts that this branch flags.
  5. The fused score produces a real/fake verdict with confidence; Grad-CAM back-projects the decision onto the face so you can show the examiner exactly which regions triggered the detection.

Project features

  • Real/fake binary classification of faces with calibrated confidence score
  • Dual-stream detection: spatial CNN features + frequency-domain (DCT/FFT) artifact analysis
  • Grad-CAM explainability heatmaps that highlight manipulated facial regions
  • Automatic face detection, cropping and alignment (OpenCV / MTCNN pipeline)
  • FakeSpot web app — drag-and-drop image analysis in the browser
  • Batch mode: scan a folder of images and export a results CSV
  • Trained on the FaceForensics++ dataset (1,000+ videos across 4 manipulation methods)
  • Training notebooks with loss/accuracy curves and confusion matrix included
  • Viva-ready evaluation report: accuracy, precision, recall, F1 and AUC

What is included

  • Complete source code (training, evaluation and inference, well-commented)
  • Trained model weights (.pth) — demo works without a GPU
  • FaceForensics++ data preparation and training scripts
  • Project report PDF (problem statement, literature survey, architecture, results)
  • PPT presentation for final review
  • Viva Q&A preparation document (deepfake types, CNN layers, frequency artifacts, Grad-CAM, metrics)
  • Setup guide (environment, dependencies, how to run training vs. inference)
Components & software requirements
  • Python 3.10, PyTorch (model training and inference)
  • OpenCV + MTCNN/Dlib (face detection, alignment, cropping)
  • NumPy, scikit-learn, Matplotlib/Seaborn (metrics and plots)
  • Flask web app with HTML/CSS/JS frontend (FakeSpot)
  • FaceForensics++ benchmark dataset (training/evaluation)
  • Trained weights shipped as .pth checkpoint (no GPU required at demo time)

Download abstract (PDF)

Related guides

All guides
Illustration of object tracking showing video frames with bounding boxes and persistent ID labels following people and vehicles, comparing motion prediction and appearance matching.B.E./B.Tech Computer Science and Electronics students building video analytics projects — people counting, vehicle tracking, sports analysis — who have detection working and need

Object Tracking: DeepSORT and ByteTrack Explained

Detection finds objects per frame; tracking keeps their identities across frames. This guide explains tracking-by-detection, Kalman motion models, DeepSORT's appearance embeddings vs ByteTrack's low-confidence box recovery, tracking metrics (HOTA, IDF1, ID switches), and the tuning parameters that determine real-world quality.

Read guide
Illustration of image segmentation showing U-Net's U-shaped encoder-decoder with skip connections producing pixel masks, alongside Mask R-CNN detecting instances with masks.B.E./B.Tech Computer Science and AI/ML students moving from image classification or detection to pixel-level understanding — medical imaging, defect detection, autonomous driving

Image Segmentation: U-Net and Mask R-CNN

When projects need pixel-level answers, segmentation delivers. This guide explains semantic vs instance vs panoptic segmentation, U-Net's encoder-decoder with skip connections, Mask R-CNN's parallel mask head, Dice and IoU evaluation, paired augmentation, and how to choose the right architecture for your data and question.

Read guide
Illustration of Whisper speech-to-text showing sound waves flowing into a neural network and emerging as transcribed text with timestamps and speaker labels.B.E./B.Tech Computer Science and AI/ML students adding speech-to-text to projects — voice assistants, meeting transcription, accessibility tools

Whisper for Speech-to-Text in Student Projects

Whisper transcribes speech in dozens of languages with no training required. This guide covers how it works, choosing among model sizes, running it locally with faster-whisper, handling hour-long audio, timestamps and speaker diarization, multilingual quirks, and honest evaluation with word error rate.

Read guide
Get a quotation