Giter VIP home page Giter VIP logo

deepfakes-detection-thesis's Introduction

Deepfakes Detection using 3D Biometric Characteristics


This repository contains methods used for deepfakes detection that utilizes 3D biometric characteristics extracted from the face. In order not to use original 3D data, 3DMMs were used. In the presented methods temporal features were taken into account. To achieve this, the frames of the videos that are used on the methods are firstly converted into parameters that express the 3DMMs. Features that help identify deepfakes are also extracted from facial landmarks. Such features hold information about how open or close the eyes and the mouth are, as well as specific angles of the face.

The methods are divided into two categories, One Class Classifiers and Binary Classifiers.The first case includes VAEs and Gans,two for each category, and the second case a deep convolutional network , EfficientNetv2. It was observed that GANs show relatively good results in recognizing deepfakes, results that outperform those of VAE. However, the Binary Classifier presented the best results. Also, the features proposed in this work improved the performance of the Binary Classifier and are, therefore, considered capable of helping to identify deepfakes.

Two Datasets were used to test and train the models, VoxCeleb2 and FaceForensics++. The One Class Classifier models were trained on VoxCeleb2 and tested on FaceForesics++ while the EfficientNet was trained using both datasets.

The One Class Classifier models that are implemented are:

  • Variational Autoencoder implemented using a Dense architecture and thus named DenseVAE
  • VQVAE
  • GAN using convolutional layers
  • OCGAN

The architecture of each model and the training method that were used are described in detail in the provided deepfakes_detection_thesis.pdf file.

Overview


To transform the input videos into the features that are used to train the models, the steps described in Dataset_Preprocessing folder should be followed. The One_Class_Classifiers folder includes the 4 One Class Classifier models alongside the scripts used for their training and testing. File test_trained_one_class_classifier_models.py can be used to test all One Class Classifier models. Moreover, Binary_Classifier folder includes the EfficientNetV2 model and the training/testing scripts.

The provided code is part of my Thesis Detecting deepfakes by imprinting face’s 3D biometric characteristics conducted during my final year studying at the Electrical & Computer Engineering School of Aristotle University of Thessaloniki.

deepfakes-detection-thesis's People

Contributors

giorgosv12 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

papageeleni

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.