DeepFake Video Detection is a web application that uses deep learning techniques, specifically ResNext and LSTM models, to determine whether a given video is authentic (real) or manipulated (fake). The goal of this application is to identify videos that have been altered using deepfake technology, which refers to the use of artificial intelligence to create highly realistic fake videos.
- The combination of powerful backend capabilities of Flask and React allowed us to build a web application that seamlessly integrates the deepfake video detection functionality with a user-friendly frontend experience.
-
The application employs a combination of two deep learning models: ResNext and LSTM. ResNext is a convolutional neural network architecture that is commonly used for image classification tasks. It is designed to extract meaningful features from images and has been adapted for video analysis by considering frames of the video as individual images.
-
The LSTM (Long Short-Term Memory) model is a type of recurrent neural network that can analyze sequential data, such as video frames, by capturing dependencies and patterns over time.
-
The DeepFake Video Detection web application takes a video as input and processes it frame by frame. Each frame is analyzed by the ResNext model to extract relevant visual features.
-
The output of the application is a prediction of whether the video is real or fake, along with a confidence ratio. The confidence ratio indicates the level of certainty the model has in its prediction.
- Execute the .ipynb files in [detect-deepfake] on Google Colab and link the Google Drive account.
- Trained Model (checkpint.pt).
-
Clone this project into local machine.
-
Execute 'pip install -r requirements.txt' in terminal.
-
In two different terminals, 'cd detect-deepfake'
-
'cd DFD'
-
In 1st terminal, run Command'python server.py'
-
In the 2nd one, run Command 'npm start'
-
You've succesfully executed the Project.
Note : In the root folder(detect-deepfake), create a new folder called "models" and add the model file in it.
- Training and Validation Accuracy Graph:
- Training and Validation Loss Graph:
- Confusion Matrix:
- True positive = 63
- False positive = 8
- False negative = 12
- True negative = 57
4) Accuracy of the Model:
Calculated Accuracy 85.71428571428571