Deepfake Detection by Exploiting Surface Anomalies: The Surfake Approach

Andrea Ciamarra, Roberto Caldelli, Federico Becattini, Lorenzo Seidenari, Alberto Del Bimbo

Abstract

As generative models for deepfake creation become increasingly sophisticated, traditional detection methods focusing on visual artifacts are losing efficacy. This paper introduces SurFake, a novel detection framework that identifies synthetic manipulations by analyzing the underlying geometry of a scene. By estimating surface normals to create a Global Surface Descriptor (GSD), SurFake exposes geometric inconsistencies—"surface anomalies"—that are often imperceptible to the human eye but inherent to the deepfake generation process.

Introduction

The rapid advancement of Generative Adversarial Networks (GANs) and Diffusion Models has made it possible to create highly realistic deepfakes. Most current detection techniques rely on identifying pixel-level glitches, frequency domain anomalies, or biological inconsistencies like irregular eye-blinking. However, as these visual "tells" are engineered out of newer models, a more robust forensic signal is required.

The SurFake approach posits that while a deepfake may achieve visual perfection in the RGB space, it frequently violates the physical laws of geometry. When a face is "swapped" or "reenacted," the resulting 3D surface often fails to maintain mathematical consistency with the original lighting and camera orientation.

The SurFake Methodology

The SurFake pipeline operates in three distinct stages:

  1. Face Extraction: Faces are detected and cropped from video frames using the dlib library, then normalized to a 224x224 resolution.
  2. Surface Estimation: The core innovation involves passing these crops through UpRightNet. Originally designed for estimating camera orientation in indoor environments, UpRightNet is here repurposed to estimate facial surface normals. This process generates a 3-channel Global Surface Descriptor (GSD).
  3. Classification: The GSD is treated as an image and fed into standard convolutional neural network (CNN) architectures, including ResNet50, MobileNetV2, EfficientNet-B0, and Xception.
Visualizing the SurFake pipeline: RGB input, the resulting Global Surface Descriptor (GSD), and the highlighted geometric anomalies.

The authors also explored a "fusion" model, which combines the 3-channel RGB data with the 3-channel GSD data to leverage both visual and geometric features.

Experimental Results

The approach was validated using the FaceForensics++ (FF++) dataset, covering five manipulation types: DeepFakes (DF), Face2Face (F2F), FaceSwap (FS), FaceShifter (FSH), and NeuralTextures (NT).

Geometry as a Forensic Signal

Experiments demonstrated that the GSD alone is a powerful indicator of forgery. Models using only geometric data achieved an average accuracy of 75-76%. Visual analysis of the GSD (often enhanced via logarithmic scaling) reveals "halos" or "grid" patterns around manipulated facial landmarks, acting as a geometric fingerprint of the forgery.

Performance and Robustness

When RGB and GSD features were fused, detection performance improved significantly. For instance, MobileNetV2 achieved an average accuracy of 98.5% across the FF++ dataset. Notably, the inclusion of GSD provided a critical performance boost in detecting NeuralTextures (NT), a challenging category where only the mouth region is manipulated.

Conclusion and Future Work

SurFake demonstrates that the physical geometry of an image provides a robust, complementary signal for deepfake detection. While the current implementation focuses on "Global" surface descriptors and tight face crops, future research will investigate "Local" surface geometry—such as micro-variations in skin texture—and the use of larger crops to incorporate broader scene context. This shift from pixel-level analysis to physical-consistency checking represents a promising frontier in digital forensics.

Summary updated

BibTeX
@inproceedings{ciamarra2024deepfake,
  author = {Andrea Ciamarra and Roberto Caldelli and Federico Becattini and Lorenzo Seidenari and Alberto Del Bimbo},
  title = {{Deepfake Detection by Exploiting Surface Anomalies: The Surfake Approach}},
  booktitle = {Workshops @ WACV},
  year = {2024},
  doi = {10.1109/wacvw60836.2024.00112},
}
Figure