Deep Fake Detection
Deep Fake Detection
Deep Fake Detection: Using a web Based Convolutional Neural Network System
Saurabh Jain 1, Praveen Kumar Tiwari2, Kalash Sharma3 Kolla Charvi 4 ,Lalit Kumar Yadav 5
Praddyumn Raj Singh 6
1
Guide Of Department of Computer Science Engineering, Babu Banarsi Das Institute of Technology and
Management, Lucknow
2
Bachelor of Technology in Computer Science Engineering, Babu Banarsi Das Institute of Technology and
Management, Lucknow
3
Bachelor of Technology in Computer Science Engineering, Babu Banarsi Das Institute of Technology and
Management, Lucknow
4
Bachelor of Technology in Computer Science Engineering, Babu Banarsi Das Institute of Technology and
Management, Lucknow
5
Bachelor of Technology in Computer Science Engineering, Babu Banarsi Das Institute of Technology and
Management, Lucknow
6
Bachelor of Technology in Computer Science Engineering, Babu Banarsi Das Institute of Technology and
Management, Lucknow
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract – The rapid proliferation of deepfake 1.INTRODUCTION :
technology poses significant challenges to digital media
authenticity, necessitating robust detection mechanisms. This Deepfakes, synthetic media generated by
This paper presents a web-based deepfake detection artificial intelligence, have emerged as a dual-edged
system developed using Flask, sword—offering creative potential while threatening
TensorFlow, and OpenCV, designed to classify misinformation and trust in visual content. With
uploaded videos as "REAL" or "FAKE" based on a pre- advancements in generative adversarial networks
trained convolutional neural network (CNN) model. The (GANs), detecting manipulated videos has become a
system preprocesses video frames to a standardized critical research area. Traditional detection methods rely
on manual analysis or desktop-based tools, limiting
(None, 128, 128, 3) input shape, leveraging a single-
accessibility. This project introduces a web-based
frame analysis approach for real-time classification. Key solution that integrates a pre-trained CNN model into a
challenges, including model compatibility, input shape user-friendly interface, enabling non-experts to upload
mismatches, and prediction biases, were addressed and analyze videos via a browser.
during development. Preliminary results indicate
successful deployment on a local server, though 2. Methodology :
limitations in model generalization were observed, with
The development of the deepfake detection system
all test videos classified as "FAKE." This work
followed a structured approach, combining frontend
highlights the feasibility of web-integrated deepfake
design, backend processing, and machine learning
detection and identifies areas for future enhancement
integration.
Deepfake detection has evolved alongside generative
3.1 System Architecture :
technologies. Early methods relied on visual artifacts,
while modern approaches leverage deep learning. Li et
Frontend: An HTML interface (index.html) with
al. proposed CNN-based detection using frame-level
JavaScript for asynchronous file uploads via the Fetch
features, achieving high accuracy on datasets like Face
API, styled with CSS (style.css).
Forensics++. Rossler et al. introduced the Face
Backend: Flask (app.py) serves the webpage, handles
Forensics++ dataset, pairing real and manipulated
video uploads, and processes predictions, saving files to
videos, with Caption models expecting (128, 128, 3)
static/uploads/.
inputs—similar to our system’s model.
Model: A pre-trained CNN (deepfake_model.h5)
expecting (None, 128, 128, 3) input, loaded with
TensorFlow/Keras.
Key Words: Synthetic Media , Video Manipulation
3.2 Video Preprocessing:
Detection Deep Fake , AI- generated Content , Deep
Neural Network Frame Extraction: OpenCV’s cv2.VideoCapture extracts
a single frame from the uploaded video.