Deepfake Detection System This repository contains the source code and documentation for the Deepfake Detection System, a project developed for Tech Savishkaar 4.0 at the Vasavi College of Engineering. Our system is designed to combat digital misinformation by identifying manipulated facial regions in video content.
The rapid advancement of AI has made it increasingly difficult to distinguish between authentic and manipulated media. This system addresses the growing threat of deepfakes used in cybercrime, digital forensics, and the spread of misinformation across social media platforms.
Facial Focus: The system prioritizes analysis on facial regions where most digital manipulations occur.
Dual-Layer Detection: It identifies subtle visual (spatial) and frequency-based inconsistencies that are often invisible to the human eye.
Temporal Consistency: Multiple frames are analyzed (at 3–5 FPS) and aggregated to prevent errors that might occur from analyzing a single image.
Confidence Reporting: Provides a final "REAL" or "FAKE" prediction accompanied by a confidence score.
The system follows a three-stage processing flow:
Input and Preprocessing: Video upload, frame extraction, and face detection/alignment.
Frame Level Analysis: Parallel spatial analysis (CNN) and frequency analysis (FFT + CNN) are combined into ensemble scores.
Aggregation and Output: Results are aggregated across frames to produce the final prediction and user review.
Language: Python.
Deep Learning: PyTorch, EfficientNet, CNN, LSTM, and rPPG.
Video Processing: OpenCV and MediaPipe.
Signal Processing: FFT (Fast Fourier Transform).
Backend: FastAPI and Uvicorn.
Frontend: React.js, Chart.js (for confidence visualization), and Vercel.
cd backend
python api_wrapper.pyWait for "Model loaded successfully" and "Uvicorn running on http://127.0.0.1:8000".
cd frontend
npm run devAccess the application at http://localhost:5173/
backend/: FastAPI server and AI inference logic.frontend/: React application (Vite-based).requirements.txt: Python dependencies for the backend.
Team Leader: Thallapali Suhaas Rao (IT, 3rd Year).
Team Member 1: Pramod Kumar Potturu (IT, 3rd Year).
Team Member 2: Srikrishna Kasivajhula (IT, 3rd Year).
Team Member 3: Thrilochan Chidurala (IT, 3rd Year).