Deepfake Detection Algorithm Based on Dual-Branch Data Augmentation and Modified Attention Mechanism
Open Access
- 18 July 2023
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 13 (14) , 8313
Abstract
Mainstream deepfake detection algorithms generally fail to fully extract forgery traces and have low accuracy when detecting forged images with natural corruptions or human damage. On this basis, a new algorithm based on an adversarial dual-branch data augmentation framework and a modified attention mechanism is proposed in this paper to improve the robustness of detection models. First, this paper combines the traditional random sampling augmentation method with the adversarial sample idea to enhance and expand the forged images in data preprocessing. Then, we obtain training samples with diversity and hardness uniformity. Meanwhile, a new attention mechanism is modified and added to the ResNet50 model. The improved model serves as the backbone, effectively increasing the weight of forged traces in the multi-scale feature maps. The Jensen–Shannon divergence loss and cosine annealing algorithms are introduced into the training process to improve the model’s accuracy and convergence speed. The proposed algorithm is validated on standard and corrupted datasets. The experiments show that the algorithm proposed in this paper significantly improves effectiveness and robustness, with accuracies of 4.16%, 7.37%, and 3.87% better than the baseline model on DeepFakes, FaceSwap, and FaceShifer, respectively. Most importantly, its detection performance on the corrupted datasets DeepFakes-C, FaceSwap-C, and FaceShifer-C is much higher than that of mainstream methods.Keywords
Funding Information
- Double First-Class Innovation Research Project for People’s Public Security University of China (2023SYL07)
This publication has 20 references indexed in Scilit:
- Capsule-forensics: Using Capsule Networks to Detect Forged Images and Videos2019
- MesoNet: a Compact Facial Video Forgery Detection Network2018
- Deepfake Video Detection Using Recurrent Neural Networks2018
- Squeeze-and-Excitation Networks2018
- Trojaning Attack on Neural Networks2018
- Fast Face-Swap Using Convolutional Neural Networks2017
- Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization2017
- Two-Stream Neural Networks for Tampered Face Detection2017
- Xception: Deep Learning with Depthwise Separable Convolutions2017
- Deep Residual Learning for Image Recognition2016