Home/Blog/Deepfake & Media Integrity
Deepfake & Media Integrity

How Deepfake Detection Actually Works: A Technical Deep-Dive

In 2024, a financial institution in Hong Kong lost $25 million to a deepfake video call. This isn't science fiction anymore — it's enterprise risk. We break down the three most effective detection paradigms.

Deepfake Detection: How AI Fights AI in the Era of Synthetic Media

In 2024, a multinational firm's Hong Kong branch lost $25 million after an employee was deceived during a deepfake video conference. The employee believed they were speaking with the company's Chief Financial Officer and several other colleagues. In reality, every participant on the call—except the victim—was a digitally generated clone.

This incident marked a major turning point. Deepfakes are no longer just research demonstrations or political propaganda tools. They have become a powerful weapon for corporate espionage, social engineering, identity theft, and financial fraud.

To defend against these threats, security teams can no longer rely solely on human judgment. In this technical deep dive, we explore the three primary machine learning approaches used to detect synthetic media, the biological and digital signals they analyze, and the architecture behind a real-time deepfake detection pipeline.

The Two Sides of the Coin: Generation vs. Detection

To understand how deepfakes are detected, we first need to understand how they are created.

Most modern deepfakes are generated using one of two techniques:

Generative Adversarial Networks (GANs) – A generator network creates synthetic images while a discriminator network attempts to distinguish fake images from real ones. Through millions of training iterations, the generator learns to produce increasingly realistic faces. Diffusion Models – These models begin with random noise and gradually refine it into highly detailed images or video frames. They currently represent the state of the art in generative AI systems such as Sora and Midjourney.

Deepfake detection models exploit the subtle artifacts, biological inconsistencies, and mathematical signatures left behind during this generation process.

Paradigm 1: Biological and Spatial Anomalies

Generative models are optimized to create images that look convincing to humans, but they often fail to reproduce underlying biological and physical characteristics.

Eye Blinking and Corneal Reflections

Early deepfake models rarely generated natural blinking because training datasets contained mostly photographs with open eyes. Although modern models have largely solved this issue, they still struggle with corneal reflections.

In real human eyes, light reflects consistently across both corneas. Deepfake models often process each eye independently, resulting in:

Mismatched reflection patterns Different pupil shapes Reflections that do not match the surrounding environment

These subtle inconsistencies can reveal synthetic content.

Photoplethysmography (PPG) and Blood Flow

One of the strongest biological indicators is remote photoplethysmography (rPPG).

As the heart pumps blood, tiny changes occur in facial skin color. These variations are invisible to humans but detectable by camera sensors.

By analyzing rPPG signals across multiple facial regions, detection systems estimate whether natural blood circulation is present.

Real human faces:

Consistent heartbeat signals across all facial regions.

Deepfake videos:

Weak, inconsistent, or completely absent heartbeat patterns because current generative models do not simulate blood flow. Paradigm 2: Frequency Domain Analysis

Instead of analyzing pixels directly, frequency-domain methods examine the mathematical structure of an image.

This is where generative models often leave their strongest digital fingerprints.

Upsampling Artifacts

GANs and diffusion models generate high-resolution images by enlarging lower-resolution feature maps through a process called upsampling.

During this process, subtle periodic patterns known as checkerboard artifacts are introduced.

Using transforms such as:

Discrete Cosine Transform (DCT) Fast Fourier Transform (FFT)

the image can be converted into the frequency domain.

In this representation:

Real camera images contain natural sensor noise. AI-generated images often exhibit regular geometric patterns and abnormal high-frequency spikes.

These mathematical signatures are difficult to detect visually but are highly effective for machine learning models.

Paradigm 3: Temporal Consistency (Video Only)

A single deepfake frame can appear almost perfect.

Maintaining realism across 30 or more frames every second is significantly more difficult.

Optical Flow Analysis

Optical flow measures how pixels move between consecutive video frames.

Small alignment errors between the generated face and the underlying actor often create:

Micro-jitter Ghosting around facial boundaries Texture sliding across the skin

These inconsistencies become visible when optical flow data is analyzed using models such as:

Recurrent Neural Networks (RNNs) Temporal Convolutional Networks (TCNs) Blendshape Consistency

Human facial movements follow predictable muscle patterns described by the Facial Action Coding System (FACS).

Detection systems extract 3D blendshapes, numerical values representing facial movements such as:

Eyebrow raises Jaw movement Lip motion

Deepfake videos frequently violate these natural relationships.

For example, the mouth shape may correspond to a "P" sound while the accompanying audio represents an "S" sound.

This mismatch between audio and facial movement is a strong indicator of synthetic media.

Building a Real-Time Detection Pipeline

At ProgmaticAI, our proprietary deepfake detection system uses a hybrid architecture optimized for real-time IVR and live video streams.

1. Face Tracking and Alignment

A lightweight MTCNN or MediaPipe pipeline detects, aligns, and normalizes facial regions.

2. Audio and Video Feature Extraction

Visual Features

ResNet-based backbone DCT frequency analysis rPPG extraction for heartbeat detection

Audio Features

Wav2Vec2 embeddings Detection of synthetic voice-cloning artifacts and voice tract inconsistencies 3. Temporal Fusion

An LSTM or Transformer analyzes temporal relationships between audio and visual features using a sliding time window.

4. Classification

The final classifier outputs a probability score between 0 and 1, estimating the likelihood that the media has been synthetically manipulated, with latency below 300 milliseconds.

The Road Ahead: Active Liveness and C2PA

As generative AI continues to improve, passive detection alone will become increasingly difficult.

The cybersecurity industry is therefore shifting toward proactive verification methods.

Active Liveness

Users are asked to perform unpredictable actions during live sessions, such as:

Look over your left shoulder. Blink twice. Repeat a randomly generated phrase.

Because current real-time deepfake systems typically introduce 200–500 milliseconds of latency, they often fail to respond naturally to these unpredictable prompts.

Cryptographic Provenance (C2PA)

The Coalition for Content Provenance and Authenticity (C2PA) is an industry standard supported by organizations including Adobe and Microsoft.

It embeds cryptographic signatures directly into photos and videos at the moment they are captured.

If any pixel data is modified by editing software or AI tools, the cryptographic signature becomes invalid, allowing viewers to verify whether the content has been altered.

Conclusion

Deepfake detection is no longer just an academic research topic—it has become a critical component of modern cybersecurity.

By combining biological signal analysis, frequency-domain detection, temporal consistency modeling, and cryptographic verification, organizations can better protect financial assets, digital identities, and public trust in an era where synthetic media is becoming increasingly indistinguishable from reality.

← Back to all insights
How Deepfake Detection Actually Works: A Technical Deep-Dive – ProgmaticAI Insights