Swin-Fake: A Consistency Learning Transformer-Based Deepfake Video Detector
Open Access
- 1 August 2024
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 13 (15) , 3045
Abstract
Deepfake has become an emerging technology affecting cyber-security with its illegal applications in recent years. Most deepfake detectors utilize CNN-based models such as the Xception Network to distinguish real or fake media; however, their performance on cross-datasets is not ideal because they suffer from over-fitting in the current stage. Therefore, this paper proposed a spatial consistency learning method to relieve this issue in three aspects. Firstly, we increased the selections of data augmentation methods to 5, which is more than our previous study’s data augmentation methods. Specifically, we captured several equal video frames of one video and randomly selected five different data augmentations to obtain different data views to enrich the input variety. Secondly, we chose Swin Transformer as the feature extractor instead of a CNN-based backbone, which means that our approach did not utilize it for downstream tasks, and could encode these data using an end-to-end Swin Transformer, aiming to learn the correlation between different image patches. Finally, this was combined with consistency learning in our study, and consistency learning was able to determine more data relationships than supervised classification. We explored the consistency of video frames’ features by calculating their cosine distance and applied traditional cross-entropy loss to regulate this classification loss. Extensive in-dataset and cross-dataset experiments demonstrated that Swin-Fake could produce relatively good results on some open-source deepfake datasets, including FaceForensics++, DFDC, Celeb-DF and FaceShifter. By comparing our model with several benchmark models, our approach shows relatively strong robustness in detecting deepfake media.Keywords
This publication has 22 references indexed in Scilit:
- AVFakeNet: A unified end-to-end Dense Swin Transformer deep learning model for audio–visual deepfakes detectionApplied Soft Computing, 2023
- ISTVT: Interpretable Spatial-Temporal Video Transformer for Deepfake DetectionIEEE Transactions on Information Forensics and Security, 2023
- Dual Contrastive Learning for General Face Forgery DetectionProceedings of the AAAI Conference on Artificial Intelligence, 2022
- DFDT: An End-to-End DeepFake Detection Framework Using Vision TransformerApplied Sciences, 2022
- Generative adversarial networksCommunications of the ACM, 2020
- DeepfakeStack: A Deep Ensemble-based Learning Technique for Deepfake Detection2020
- Celeb-DF: A Large-Scale Challenging Dataset for DeepFake Forensics2020
- A Style-Based Generator Architecture for Generative Adversarial Networks2019
- Xception: Deep Learning with Depthwise Separable Convolutions2017
- Deep Residual Learning for Image Recognition2016