Exploring Spatial-Temporal Features for Deepfake Detection and Localization

Haiwei Wu, Jiantao Zhou, Shile Zhang, Jinyu TianarXiv 2022 · DOI

TL;DR

This paper introduces ST-DDL, a novel network for detecting and precisely localizing deepfake manipulations in videos. It achieves this by uniquely combining spatial and temporal features, with a new Anchor-Mesh Motion (AMM) algorithm to capture subtle facial movements, and a Fusion Attention (FA) module to effectively integrate these features. The authors also release a new, diverse deepfake dataset called ManualFake to advance research in this critical area.

What Problem Does This Paper Address?

Deepfakes, synthetically generated media, pose a growing threat, enabling malicious activities like identity theft and misinformation. While existing methods can often classify videos as real or fake, they struggle with pinpointing the exact manipulated regions (localization). This is crucial for forensic analysis and understanding the extent of manipulation. Current approaches often focus on either spatial (image-level) or temporal (motion-level) cues, but rarely integrate them effectively. Furthermore, existing datasets may lack diversity in manipulation techniques, limiting the generalization of detection models.

Methods

The core of this work is the Spatial-Temporal Deepfake Detection and Localization (ST-DDL) network. It comprises several key components:

  • Anchor-Mesh Motion (AMM) Algorithm: This is a novel approach to extract temporal features. Instead of relying on traditional optical flow methods that are better suited for large object movements, AMM focuses on the precise geometric movements of facial micro-expressions. It achieves this by:
  • Calibrating facial landmarks as anchors.
  • Triangularizing the face into meshes using these anchors.
  • Modeling the transformation between corresponding triangles in consecutive frames using affine transformations. This allows for capturing subtle, localized facial movements.
  • Spatial and Temporal Encoders: Standard encoders (like HRNet) are used to extract features from both the RGB (spatial) domain and the motion (temporal) domain derived from AMM.
  • Fusion Attention (FA) Module: This module, inspired by Transformer architectures, is designed to effectively fuse the spatial and temporal features. It uses a self-attention mechanism to allow features from one domain to attend to features from the other, enabling a richer interaction and better exploitation of complementary information.
  • Decoder and Classifier: A decoder is used for pixel-level localization, and a multi-layer perceptron (MLP) acts as a classifier for video-level detection.

Datasets

The authors utilized existing datasets and introduced a new one:

  • FF++ (FaceForensics++): Used for training.
  • DFD (Deepfake Detection) and FFIW (Face Forensics In The Wild): Used for evaluation.
  • ManualFake Dataset: A newly constructed dataset of 6000 videos. It stands out by including forgeries created using:
  • Latest learning-based methods (DFL, FSGAN, SimSwap).
  • Widely-used commercial software (Adobe After Effects, Reface).
  • Versions transmitted through popular social media platforms (Facebook, Whatsapp, Tiktok, Wechat), simulating real-world scenarios.
  • It also includes pixel-level segmentation masks for localization.

Key Insights and Ideas

  • Subtle Motion is Key: Traditional motion extraction methods are insufficient for deepfake detection because they miss the fine-grained, localized movements characteristic of manipulated faces. AMM's focus on facial micro-expressions is a crucial innovation.
  • Fusion is More Than Concatenation: Simply concatenating spatial and temporal features is not optimal. The Fusion Attention module, leveraging self-attention, allows for a more sophisticated interaction between these feature modalities, leading to significant performance gains.
  • Real-World Scenarios Matter: The inclusion of commercial software-generated deepfakes and OSN-transmitted versions in ManualFake is vital for developing models that generalize to the diverse and evolving landscape of deepfake creation and dissemination.
  • Localization is Harder: The paper highlights that while video-level detection is challenging, pixel-level localization is even more so, requiring more robust feature extraction and fusion.

Key Results

  • Improved Detection and Localization: The ST-DDL network achieved state-of-the-art performance, surpassing competitors by up to 8.9% in video-level F1 score and 4.1% in pixel-level IoU.
  • ManualFake Dataset Performance: The ManualFake dataset itself demonstrates high quality, with the authors' method achieving the highest scores on face recognition metrics (EQFace and FaceQnet) compared to other datasets.
  • Robustness to OSN Transmission: While OSN transmission degrades performance across all methods, ST-DDL shows resilience, particularly on platforms like Whatsapp.
  • Ablation Studies: The AMM algorithm significantly outperforms using RAFT motion alone, and the Fusion Attention module provides a further substantial gain over simple concatenation.

Limitations and Future Work

  • Interpolated Frames: The AMM algorithm may struggle with videos containing interpolated frames, as it relies on direct motion between consecutive frames. The authors suggest that incorporating more video sequences during training or using adversarial training could mitigate this.
  • Generalization: While the new dataset aims to improve generalization, continuous evolution of deepfake techniques will require ongoing research.
  • Ethical Considerations: The authors emphasize that their work is intended to advance forensic research and combat malicious deepfake use, and that their dataset is ethically sourced.

The paper opens avenues for further research in developing more robust and generalizable deepfake detection and localization methods, particularly by exploring more sophisticated temporal feature extraction and fusion techniques.

Summary updated

BibTeX
@misc{wu2022exploring,
  author = {Haiwei Wu and Jiantao Zhou and Shile Zhang and Jinyu Tian},
  title = {{Exploring Spatial-Temporal Features for Deepfake Detection and Localization}},
  year = {2022},
  eprint = {2210.15872},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.15872},
}
Figure