CaraComp
CaraComp
Forensic-Grade AI Face Recognition for:
Get Started7-day refund guarantee**
facial-recognition

How Does Deepfake Detection Work? AI, Voice & Video Signals

That Facial Match Score Is Lying to Your Face
A facial comparison interface illustrates how does deepfake detection work by mapping faces into numerical vectors.

Here's something that should stop you cold: the best deepfake detection systems in the world still miss roughly 4 in every 100 synthetic faces. That's not a rounding error. In a high-stakes investigation involving thousands of images, those four misses aren't an acceptable margin — they're the ones that matter most. And the reason they slip through has nothing to do with how sophisticated the deepfake is. It has everything to do with a fundamental misunderstanding of what facial comparison systems are actually doing when they "analyze" a face.

They're not looking at it. Not the way you are. They're doing geometry.

TL;DR

Facial comparison systems convert every face into a string of 128 numbers, then measure the mathematical distance between those numbers — and understanding where that process breaks down is the difference between a defensible match and a catastrophic error.

Your Eye vs. The Algorithm: Two Completely Different Questions

When you look at two photos and decide they show the same person, your brain is doing something remarkably sophisticated and remarkably unreliable. It's pattern-matching on visual texture — the curve of a nose, the spacing between eyes, the particular shadow a jawline casts. You're drawing on years of evolved face-recognition instinct, and you're doing it in milliseconds. It feels certain. It almost never is.

A facial comparison algorithm isn't doing any of that. When it processes a face, it runs the image through a deep neural network — specifically one trained on millions of face pairs — and the output isn't a visual impression. It's a vector: an ordered list of numbers, typically 128 of them, that encodes the geometric relationships between facial features into a fixed-length numerical signature. Two photos of the same person should produce two very similar vectors. Two photos of different people should produce vectors that are far apart. The whole game is in how you define "similar" and "far apart."

This is the foundation of modern facial comparison, and it was formalized in Google's landmark FaceNet research, published at arXiv — a system that achieves face recognition performance using just 128 bytes per face. That paper established the blueprint that almost every serious facial comparison system today still follows.

128
numbers is all it takes to represent a human face in modern facial comparison systems
Source: FaceNet (Google Research), arXiv:1503.03832

The Pipeline: Facial Comparison Accuracy Explained

Most people — including many investigators who use facial comparison tools daily — think of a match score as something the algorithm simply "decides." It doesn't. That score is the end product of a four-step pipeline, and understanding each step is the only way to know when to trust the result. This article is part of a series — start with China Made Creating A Deepfake The Crime Not Sharing It U S .

Step one: detection. Before anything else, the system has to find the face in the image. Not as obvious as it sounds. A face at a 45-degree angle, partially behind a door frame, or lit from below challenges detection models in ways that don't affect human perception at all. If the detector crops the face incorrectly, every subsequent step processes corrupted input — and the system has no way of flagging that this happened.

Step two: landmark alignment. Once detected, the face gets geometrically normalized — rotated and scaled so key landmarks (eyes, nose tip, mouth corners) land in consistent positions. This alignment step is what makes the embedding reproducible across different photos of the same person. Skip it or get it wrong, and the vectors you produce are essentially random.

Step three: embedding. The aligned face patch passes through the neural network. Out comes your 128-number vector. Think of it as the face's address in a vast 128-dimensional space. Two photos of Alice land her address at roughly [0.23, -0.45, 0.78...]. Two photos of Bob land somewhere completely different. The network learned how to build this address space during training — by processing millions of face pairs and learning which numerical combinations reliably separate identities.

Step four: distance calculation and threshold comparison. The system computes the Euclidean distance between two embedding vectors. A distance of 0.0 means the faces are mathematically identical. A distance of 4.0 corresponds to two clearly different people. Somewhere in between sits the threshold — the line the system draws between "same person" and "different person." Cross below it: match. Cross above it: no match. That threshold number is not handed down from mathematical heaven. Someone chose it.

"Deepfake detection tools spot microscopic giveaways that generative models leave behind — unnatural pixel patterns, bizarre color shifts, and other artifacts that are completely invisible to humans." ScreenApp, on the limits of human visual inspection

Trusted by Investigators Worldwide
Run Forensic-Grade Comparisons in Seconds
Detailed facial comparison reports. Results in seconds.
Get Started
7-day refund guarantee**

The Threshold Problem: Where Investigator Intuition Goes Wrong

Here's the analogy that makes this click. Imagine face comparison like converting every person into GPS coordinates in a 128-dimensional city. Two photos of the same person drop their coordinates within a few meters of each other. Two different people live on opposite ends of town. The algorithm's job is simply to measure the distance and decide: same neighborhood, or different city?

But here's what the analogy reveals that people miss: if the GPS signal is weak — bad lighting, unusual angle, a hand partially covering the face — the coordinates get scrambled. The algorithm still produces coordinates. It still calculates a distance. It still renders a verdict. It just doesn't know the signal was corrupted. You do. If you understand what causes corruption. Previously in this series: Every Image Is Guilty Until Proven Authentic.

The most common misconception investigators carry is this: a high confidence score means a reliable result. A 95% match sounds like an A. It feels safe. It's the kind of number you'd want to show a jury. The problem is that confidence scores are local measurements — they tell you how close two specific embeddings are to each other, given the specific conditions of those two images. They say nothing about how the algorithm would perform across a database of 100,000 faces, or whether the embedding itself was generated from clean input.

Peer-reviewed research published in ScienceDirect examined FaceNet performance under real-world occlusion conditions — sunglasses, hats, hands obscuring part of the face — and the findings are genuinely alarming. At 30% and 40% facial occlusion rates, recognition accuracy fell below 40%. Below 40%. That means the algorithm was wrong more than half the time. Not slightly degraded. Functionally broken. And yet it was still producing match scores. Still rendering verdicts. Still looking confident.

This is why occlusion is the hidden failure mode that almost nobody talks about in operational briefings. Real surveillance footage is occluded. Suspects wear hats. Witnesses instinctively raise a hand. The scenarios where you most need reliable facial comparison are precisely the scenarios where the embedding pipeline is most likely to produce corrupted output.

What You Just Learned

  • 🧠 Facial comparison is geometry, not vision — the algorithm measures distance between 128-number vectors, not visual similarity between faces
  • 🔬 Thresholds are human choices, not mathematical facts — the line between "match" and "no match" was set by someone, and it can be set wrong for your specific use case
  • ⚠️ Occlusion corrupts the embedding, not just the score — a face obscured at 30-40% can drop algorithm accuracy below 40%, while the system continues producing confident-looking output
  • 💡 A confidence score is local, not global — it describes this pair of images, not the algorithm's general reliability under the conditions you're working in

How Training Determines Deepfake Detection Accuracy

One more layer worth understanding: where do those 128 numbers come from in the first place? The network didn't arrive at them by logic. It learned them through a training process called triplet loss — and the mechanics of that process explain a lot about where the system fails.

During training, the network is fed triplets: an anchor face, a positive match (same person, different photo), and a negative (different person entirely). The training objective is simple to state and brutal to execute at scale — push the anchor and positive closer together in 128-dimensional space; push the anchor and negative further apart. Do this millions of times across millions of face triplets, and the network eventually learns an embedding space where identity is encoded as proximity.

But here's what that means for deployment: the network only knows what its training data taught it. If those millions of training faces were predominantly well-lit, frontal, high-resolution images — the kind you get from a controlled dataset rather than real-world surveillance — then the embedding space it learned may be genuinely excellent in those conditions and genuinely fragile in others. At CaraComp, this is precisely the problem that drives how we think about model validation: a system that scores beautifully on benchmark datasets can behave unpredictably the moment the real world hands it conditions that weren't well-represented during training. Up next: Law Enforcement Biometrics Facial Comparison Compliance.

Modern deepfake generation, meanwhile, is getting very good at producing faces that land in exactly the right neighborhood of embedding space — close enough to a real person's vector to fool a threshold comparison, while being entirely synthetic. As Holistic News put it plainly: visual inspection is no longer a sufficient defense. The era of "spotting a deepfake by eye" isn't ending because humans are bad at it. It's ending because the synthetic faces being generated were specifically optimized to defeat human visual inspection — and increasingly, to defeat threshold comparison too.

Key Takeaway

A facial comparison match score tells you how close two embeddings are in 128-dimensional space — it does not tell you whether those embeddings were generated from clean, unoccluded input. Before you trust a score, ask what conditions produced it. The algorithm can't ask that question for you.

So here's the question that should follow you out of this article: if you're comparing a grainy surveillance still — face partially obscured by a cap brim, shot at an angle, maybe 30% of the face genuinely missing — against a clean, frontal mugshot, you will get a distance score. The math will be correct. The distance between those two vectors is real. But the embedding generated from that surveillance image? It's corrupted. The algorithm encoded a partial face, normalized it as if it were complete, and produced 128 numbers that don't reliably represent the person's actual identity. The system doesn't know that. The score doesn't show that. The only thing standing between a defensible conclusion and a catastrophic misidentification is whether the investigator reading that score understands what the pipeline actually did to produce it.

Your eye sees a face. The algorithm sees a string of 128 numbers. The question worth asking isn't which one you trust — it's whether you know enough about how those 128 numbers were generated to decide when they're worth trusting at all.

When you're deciding whether two photos show the same person, what's your current process — and at what point would you feel confident enough to defend that conclusion under cross-examination?

Digital Forensics And The Detection Pipeline Behind Deepfakes

Deepfake detection borrows heavily from older digital forensics work. Instead of measuring distance between two face embeddings, a detection pipeline built for deepfakes looks for the small traces a generative model leaves behind as it builds a face frame by frame. Those traces live in pixel-level noise patterns, compression artifacts, and inconsistencies between how light should fall on a real face versus a synthetic one.

Deepfake Detection Tools And What They Actually Measure

Deepfake detection tools generally don't ask "is this the same person." They ask "was this image or clip generated by a machine at all." Detection tools built for this task score frames for statistical irregularities — blending seams around the hairline, unnatural blinking patterns, or mismatched reflections in the eyes — and flag anything that falls outside the range a camera sensor would normally produce.

How Machine Learning Powers Modern Detection

Underneath almost every deepfake detector sits a machine learning model trained the same general way a facial comparison network is trained: on a large set of labeled examples, real footage on one side and synthetic footage on the other. The model learns which combinations of pixel-level features separate the two categories, then applies that learned boundary to new, unseen video.

AI Models And The Images They Are Trained To Judge

An AI detection model is only as good as the images it was trained to judge. If a model only ever saw one generation method during training, it can struggle badly the moment a newer generator produces images with a different artifact signature. This is one reason detection accuracy can look excellent in a lab and much weaker against fresh, real-world deepfakes.

Deepfake Detection Accuracy Across Video And Audio

Deepfake detection accuracy is not a single number. A detector tuned for still images can perform very differently on video, where it can also check for frame-to-frame consistency, and differently again on audio, where the signals being analyzed are spectral rather than visual. Treating "deepfake detection" as one uniform task hides how differently video and audio manipulation actually behave.

Why AI Detection Struggles With Compressed Video

Heavy compression is one of the most reliable ways to defeat AI detection. Compression smooths over the exact fine-grained pixel artifacts a detection model relies on, which is part of why a deepfake that gets flagged instantly in its original file can slip past the same detector once it has been re-encoded and shared across a messaging app.

Deepfake Detection Signals Investigators Should Know

Beyond blinking and blending, deepfake detection also looks at signals a person would never notice: subtle color-shift patterns across skin tones, physically implausible shadow direction, and audio-visual sync drift where a mouth movement and the sound it produces fall a few milliseconds out of step. None of these are visible at normal playback speed, which is exactly why detection tools exist.

AI Voice And Audio Analysis In Deepfake Detection

Voice cloning has pushed deepfake detection into audio analysis as its own discipline. An AI voice detector examines waveform and spectral features — breathing patterns, micro-pauses, and the natural noise floor of a real recording device — because synthetic voice generation tends to produce audio that is unnaturally clean or rhythmically too regular in ways careful analysis can catch.

Deepfake detection solutions aim to combine several of these signals rather than relying on any single one. A tool that only checks for blending artifacts will miss a deepfake generated by a method that doesn't leave that particular artifact behind, so most serious detection tools stack multiple checks and weigh them together before producing a verdict.

Media forensics as a field existed long before deepfakes did, built originally to identify manipulated photographs through metadata analysis, copy-paste detection, and lighting consistency checks. Deepfake detection extends that same forensic mindset into video and audio, adapting old techniques like error-level analysis alongside newer, purpose-built neural detection models.

Cybersecurity teams increasingly treat deepfake detection as part of their broader threat model, not a separate concern. A convincing synthetic voice or video can be used the same way a phishing email is used — to manipulate a person into acting quickly, before anyone stops to verify the source. That shift means detection tools are showing up inside identity verification and fraud-prevention systems, not just newsrooms and research labs.

Distinguishing authentic media from manipulated content is genuinely harder with audio than with video, mostly because audio carries fewer redundant signals for a detector to check. A video deepfake has to get lighting, motion, and blending right across every frame; an audio deepfake only has to convince a listener's ear for a few seconds, which narrows what detection tools have to work with.

None of this means detection tools are unreliable by design — it means accurately identifying AI-generated images and audio takes the same disciplined skepticism this article applied to facial comparison scores. A detection tool's output is a probability, not a verdict, and it deserves the same scrutiny an investigator would give a 95% facial match generated from an occluded photo.

The practical takeaway is the same one this whole piece has been building toward. Whether you're reading a facial comparison distance score or a deepfake detection confidence percentage, the number only means something once you understand the conditions that produced it — the training data, the compression, the occlusion, and the specific artifacts the underlying model was built to catch.

So how does deepfake detection work at the level of raw signal processing, before any classifier makes a decision? Every video frame, audio waveform, or image first gets broken down into features a machine learning model can actually work with — pixel gradients, frequency bands, temporal motion vectors — because a neural network can't reason about "does this look fake" the way a human does. Deepfake detection depends entirely on how well those extracted features capture the tiny mathematical fingerprints that ai-generated deepfakes leave behind, even when the video looks flawless at normal speed. This is also why detection accuracy varies so much between labs and the real world: the features that mattered most in training don't always survive compression, re-encoding, or a new generation technique.

Synthetic media detection has become its own specialty inside the broader security field because synthetic media doesn't behave like a single category of threat. A synthetic media clip built from a diffusion model leaves different statistical fingerprints than one built from an older generative adversarial network, so a detection method tuned for one can miss the other entirely. Teams building detection methods for synthetic media generally test against multiple generator families for exactly this reason, since a narrow detection method that only catches one generation technique gives a false sense of security once new technology reaches the public.

Forensic analysis of a suspected deepfake usually starts before any AI model gets involved. An analyst will check basic technical metadata, frame consistency, and compression history first, because forensic analysis at this level can rule out obvious edits without needing a trained classifier at all. Only after that manual pass does the file move into automated detection, where machine learning-based tools take over and apply the pixel-level and frequency-level checks a person can't perform by eye.

Detection methods for deepfakes generally fall into a few families: frame-level image forensics, temporal consistency checks across video, and biological-signal analysis that looks for things like natural blood-flow patterns in skin tone that generative models struggle to reproduce. Newer detection methods increasingly combine two or three of these families into a single pipeline, since relying on just one detection method leaves an obvious gap for a deepfake built specifically to evade that one check. This layered approach to detection methods is becoming the industry default precisely because no single technology has proven durable on its own.

Deepfake detection relies on a basic assumption that keeps getting tested: that generative models leave behind some trace, however small, of the fact that they built an image rather than a camera capturing it. As generation technology improves, deepfake detection relies increasingly on subtler and subtler signals — sub-pixel noise statistics, biological implausibilities, and metadata inconsistencies — rather than the obvious blending errors that used to give deepfakes away. That arms-race dynamic is exactly why security teams treat detection as an ongoing technology investment rather than a one-time tool purchase.

Understanding accurately how you can identify AI-generated images matters just as much for everyday users as it does for forensic teams. Simple checks — reverse image searches, looking at reflections and shadows, checking whether hands and ears are rendered correctly — can catch weaker deepfakes without any specialized technology at all. But as ai-powered detection tools become more common in consumer apps, more of that judgment is shifting from manual inspection to automated scoring, which makes understanding what those scores actually mean, and where the underlying ai can be wrong, more important rather than less.

Fraud teams have started treating deepfake voice and video as a security threats category in its own right, separate from traditional phishing or account takeover. A synthetic voice clone used in a fraud call exploits the same trust shortcut a phishing email exploits — a familiar voice or face lowers a person's guard faster than any technology-based warning can raise it back up. That is precisely why fraud prevention systems are starting to run deepfake detection alongside behavioral and device-based fraud signals rather than relying on either one alone against modern security threats.

Digital trust ultimately depends on the same layered thinking this entire article has walked through, whether the subject is a facial comparison score or a deepfake detection percentage. No single technology, digital signal, or ai model closes the gap by itself. The strongest defense combines forensic analysis, machine learning-based detection, and an investigator or user who understands exactly what conditions produced the number in front of them before deciding how much to trust it.

Frequently asked questions

How does deepfake detection work when comparing faces?

Facial comparison systems don't look at a face the way a person does. They run it through a neural network that converts it into a 128-number vector describing geometric relationships between features. Two photos of the same person should produce similar vectors, while different people produce vectors that are far apart, measured using Euclidean distance and compared against a threshold.

Why do deepfake detection systems make mistakes?

Even the best systems miss roughly 4 in every 100 synthetic faces, and errors often come from corrupted input rather than sophisticated fakes. Detection can fail on angled or poorly lit faces, and alignment mistakes produce essentially random vectors. Occlusion is especially damaging: at 30% and 40% facial occlusion, recognition accuracy fell below 40% while the system still confidently produced a verdict.

Does a high confidence score mean a deepfake detection result is accurate?

Not necessarily. A high match score only reflects how close two specific embeddings are under the exact conditions of those two images. It says nothing about performance across a large database or whether the underlying embedding came from clean, uncorrupted input, which is why confident-looking scores can still be wrong.

Ready for forensic-grade facial comparison?

Full forensic reports with detailed similarity scoring. Results in seconds.

Run My First Search