Source-linked AI summary

Unmasking DeepFakes with simple Features

Ricard Durall, Margret Keuper, Franz-Josef Pfreundt, Janis Keuper

arXiv:1911.00686v3cs.LGcs.CVstat.ML

TL;DR

The paper tackles automated detection of realistic AI-generated fake faces, where artifacts may be difficult to see directly. It applies frequency-domain analysis followed by simple classification and reports perfect image-dataset accuracy, with 91% accuracy on low-resolution manipulated videos.

  • Problem

    AI-generated fake faces can appear realistic, creating a need for automated methods to detect artificial image contents.

  • Method

    The method analyzes frequency-domain artifacts and feeds the resulting features to supervised or unsupervised classifiers.

  • Results

    100% accuracy was reported for high- and medium-resolution image datasets, and 91% accuracy for low-resolution video sequences.

  • Takeaways & Limitations

    The approach detects forgery across multiple resolutions and data sources using a frequency-based pipeline that does not require vast quantities of labeled data.

Abstract

from arXiv · show

Deep generative models have recently achieved impressive results for many real-world applications, successfully generating high-resolution and diverse samples from complex datasets. Due to this improvement, fake digital contents have proliferated growing concern and spreading distrust in image content, leading to an urgent need for automated ways to detect these AI-generated fake images. Despite the fact that many face editing algorithms seem to produce realistic human faces, upon closer examination, they do exhibit artifacts in certain domains which are often hidden to the naked eye. In this work, we present a simple way to detect such fake face images - so-called DeepFakes. Our method is based on a classical frequency domain analysis followed by basic classifier. Compared to previous systems, which need to be fed with large amounts of labeled data, our approach showed very good results using only a few annotated training samples and even achieved good accuracies in fully unsupervised scenarios. For the evaluation on high resolution face images, we combined several public datasets of real and fake faces into a new benchmark: Faces-HQ. Given such high-resolution images, our approach reaches a perfect classification accuracy of 100% when it is trained on as little as 20 annotated samples. In a second experiment, in the evaluation of the medium-resolution images of the CelebA dataset, our method achieves 100% accuracy supervised and 96% in an unsupervised setting. Finally, evaluating a low-resolution video sequences of the FaceForensics++ dataset, our method achieves 91% accuracy detecting manipulated videos. Source Code: https://github.com/cc-hpc-itwm/DeepFakeDetection

I. INTRODUCTION

The paper addresses AI-generated fake-face detection by combining frequency-domain analysis with a simple classifier and introduces Faces-HQ for evaluation. The approach reports strong results across high-, medium-, and low-resolution data, including 100% accuracy on image datasets and 91% on low-resolution videos.

  • AI-generated images increasingly resemble realistic faces, creating a need for automated detection of artificial image contents.
  • The proposed pipeline analyzes frequency-domain artifacts and uses a classifier to distinguish real from fake faces.The processing pipeline includes DFT-based feature extraction and classifier training after grayscale conversion.
  • The method is designed to work with few labeled samples and supports both supervised and unsupervised classification.
  • Faces-HQ is a public high-quality dataset containing real and fake faces assembled from multiple public databases.
  • 100% accuracy was achieved on high- and medium-resolution image datasets, while low-resolution videos reached 91% accuracy.

II. RELATED WORK

Related work spans traditional forensic features, neural-network detectors, and behavioral or color-space cues for identifying manipulated images and videos. The paper positions frequency-based analysis against methods that rely on deep learned representations or explicit visual artifacts.

  • Traditional image forensics targets local noise, patterns, illumination, and steganalysis features.
  • CNN-based approaches learn image-forensic features implicitly rather than specifying them explicitly.
  • GAN advances improved artificial-face quality and contributed to the emergence of DeepFake image and video manipulation.
  • Existing detection cues include missing eye blinking, unnatural head poses, and color-space features.
  • Deep-learning detectors show promising performance but may be learned by the GAN, motivating alternative forensic representations.

III. METHOD

The method uses Fourier-domain representations to expose image characteristics and compress them into robust one-dimensional features for classification. A DFT provides amplitude and phase information, while power-spectrum processing supports the feature representation.

  • A. Frequency Domain Analysis: Frequency-domain analysis represents image characteristics through the spectral decomposition of signal energy across frequencies.
  • 1) Discrete Fourier Transform: A DFT decomposes a discrete signal into sinusoidal components spanning frequencies from zero to the maximum representable frequency.
  • 1) Discrete Fourier Transform: The DFT output contains amplitude and phase information, with the amplitude spectrum defined as the square root of the power spectrum.

2) Azimuthal Average:

Azimuthal averaging converts the 2D FFT power spectrum into a robust 1D feature vector by radially averaging similar frequency components, reducing dimensionality while retaining relevant information.

  • Azimuthal averaging computes a 1D representation by gathering and averaging similar frequency components from the 2D FFT power spectrum.The resulting vector is a compressed representation of the frequency-domain image features.
  • The image is converted to grayscale before applying the Fast Fourier Transform.
  • Each 1D frequency component is the radial average of the corresponding 2D power-spectrum components.

1) Logistic Regression:

The paper describes logistic regression and SVM as classifiers for learning mappings from feature vectors to binary classes, using probability estimation or margin maximization.

  • 1) Logistic Regression: Logistic regression models a binary dependent variable with a logistic function and outputs an estimated probability for an input feature vector.Maximum likelihood estimation determines the regression coefficients until convergence or a maximum iteration limit.
  • 2) Support Vector Machines: SVM training identifies a separating hyperplane that maximizes the margin between classes.Training vectors may be mapped into a higher-dimensional space using φ.
  • 2) Support Vector Machines: The SVM formulation includes classifier parameters w and b, slack variables ξ, and a positive penalty parameter C for classification errors.

3) K-Means Clustering:

The paper evaluates unsupervised detection through clustering, using K-means to group nearby feature vectors and assign them to a user-specified number of clusters.

  • 3) K-Means Clustering: K-means clustering groups similar data points according to distances in feature space, without requiring labeled training examples.Its key assumption is that nearby feature vectors exhibit similar qualities.
  • 3) K-Means Clustering: K-means iteratively assigns features to the nearest initial centroid and reestimates the centroids.
  • 3) K-Means Clustering: The number of clusters is selected by the user and can be set to equal or exceed the number of classes for classification.

A. Faces-HQ

Faces-HQ is a high-resolution benchmark assembled from public sources to provide labeled real and fake faces for evaluating the proposed frequency-based pipeline.

  • A. Faces-HQ: 40K high-quality Faces-HQ images were collected, with half real faces and half fake faces, from four public sources.The sources include CelebA-HQ, Flickr-Faces-HQ, the 100K Faces project, and thispersondoesnotexist.com.
  • A. Faces-HQ: The dataset was created because, to the authors’ knowledge, no public dataset provided high-resolution images with annotated real and fake faces.
  • A. Faces-HQ: The preprocessing pipeline transforms 1024x1024x3 color images into 722 1D power-spectrum features using a discrete Fourier transform and azimuthal averaging.
  • A. Faces-HQ: The classifier uses 80% of transformed data for training and 20% for testing to distinguish real from fake faces with a binary classifier.

3) Method 1D Power Spectrum:

The method uses 1D Power Spectrum patterns to distinguish real and fake faces, then evaluates simple classifiers under varying data settings and frequency ranges.

  • 1D Power Spectrum: Real and fake images exhibit noticeably different high-frequency spectra, with repetitive 1D Power Spectrum patterns within each class.Real faces lack flat high-frequency regions, whereas fake faces display them.
  • 1D Power Spectrum: 4,000 images were analyzed, with 1,000 images drawn from each sub-dataset to compute basic statistics.The resulting representation is intended to simplify classification.
  • Frequency analysis: 0.86 accuracy was obtained for a frequency chunk spanning frequencies from 100 to 300.This example illustrates the frequency-range analysis.

B. CelebA

CelebA provides 202,599 medium-resolution celebrity face images with varied facial attributes and is used with generated fake images for forgery classification.

  • CelebA: CelebA contains 202,599 celebrity face images with 40 facial-attribute variations at 178x218x3 resolution.The paper treats this as medium-resolution imagery.
  • CelebA: Real CelebA images were paired with fake images generated by a trained DCGAN for classification experiments.Images were split into 162,770 training and 39,829 testing examples, then cropped and resized to 128x128x3.

3) Results:

The evaluation covers CelebA and DeepFakeDetection, applying the pipeline to medium-resolution images and low-resolution video-derived face crops.

  • CelebA: CelebA evaluation used the same procedure as earlier experiments and achieved perfect supervised classification accuracy with strong unsupervised clustering results.The supplied passage does not specify the unsupervised accuracy value.
  • DeepFakeDetection: DeepFakeDetection contains 363 original sequences from 28 actors in 16 scenes and more than 3,000 manipulated videos with binary masks.The videos contain mostly frontal, trackable faces without occlusions.
  • DeepFakeDetection: For video evaluation, frames were extracted and inner faces were cropped before applying the pipeline.Different scene content produced cropped faces with different sizes.
  • DeepFakeDetection: The spectrum was interpolated to 300 features and normalized by the 0th frequency component before classification.This additional processing block accommodates classifiers requiring fixed feature counts.

3) Method 1D Power Spectrum:

Results support high-frequency analysis for detecting manipulated faces across image and video settings, while low-resolution content remains more difficult to classify.

  • Results: Deepfake images in DeepFakeDetection show noticeably different characteristics in the analyzed statistics.The supplied passage introduces this result without stating the specific visual difference.
  • Results: The FaceForensics++ evaluation used SVM and logistic regression classifiers under different data settings and reported accuracy per video.These evaluations are represented by Tables VII and VIII.
  • Results: 100% accuracy was achieved on high- and medium-resolution deepfake images from two datasets containing material from various GANs.The conclusion reports this as evidence of robustness across source images.
  • Results: 91% accuracy was achieved for low-resolution manipulated video content in the FaceForensics++ benchmark.The paper states that low-resolution content is harder to identify because its available frequency spectrum is much smaller.
Loading 1911.00686v3…