# How AI Image Detectors Actually Work

Canonical: https://synthavio.com/blog/how-ai-image-detectors-work

How modern AI image detectors really work — frequency analysis, PRNU, sensor noise, perplexity-style features, and why their verdicts disagree.

Author: Tim Geithner
Published: 2026-04-15
Updated: 2026-11-21

AI image detectors look magical from the outside — drop an image, get a percentage, ship the verdict. Inside, they are an assembly of brittle statistical signals stacked on top of each other, each capable of being right, wrong, or actively misleading. This is the long, honest version: what the signals actually are, why they disagree, and where the field is heading in 2026.

## The fundamental asymmetry

Generative models produce images that are statistically *plausible* but not statistically *natural*. A photograph carries decades of physical baggage — sensor read noise, demosaicing artifacts, lens vignetting, JPEG quantization done by a specific camera firmware. A diffusion sample carries none of that by default. It carries a different baggage: training-distribution priors, decoder upsampling artifacts, and a uniform high-frequency signature.

Every detector exploits this gap. The interesting question is *which* part of the gap.

## Signal 1 — Frequency-domain fingerprints

If you take the 2D Fourier transform of a real photograph and compare it to a diffusion output, you can often spot the difference with the naked eye. Real images decay smoothly toward higher frequencies because optics low-pass them, and demosaicing introduces a characteristic cross pattern. Diffusion outputs frequently have a near-uniform high-frequency floor because the decoder upsamples from a low-resolution latent.

This shows up as:

- An unnaturally flat **radial spectrum** above ~0.4 Nyquist
- Faint **grid artifacts** at the latent grid (typically 8× or 16×)
- Missing or compressed **demosaicing kernels** in the corners

A naive FFT detector flags any image with a too-flat radial spectrum. The problem: bicubic upscalers, AI-enhanced "HDR" filters in modern phones, and even aggressive Lightroom sharpening reproduce the same flatness on perfectly real images.

> Frequency cues can be useful on raw diffusion outputs, but re-encoding changes them and can reduce detection performance. It does not reliably remove every spectral or learned classifier signal.

## Signal 2 — JPEG re-encoding artifacts

JPEG quantizes 8×8 DCT blocks. When you re-save a JPEG, the new quantization grid usually does not align with the previous one, leaving a faint "double-quantization" trace. Real photos taken on a phone have *one* generation of JPEG. Photos that were generated, exported as PNG, and then re-uploaded to a JPEG-only platform have *one* JPEG. AI images that were generated, edited in Photoshop, and exported as JPEG again often have *two or three*.

A double-JPEG detector looks at the histogram of the first DCT coefficients of each 8×8 block. A bimodal histogram is a strong tell. This is fast (it runs on the compressed stream without decoding) and surprisingly reliable on social-media downloads — but it tells you nothing about whether the *content* is AI-generated. It only tells you the file has been re-encoded.

## Signal 3 — PRNU and sensor noise

Photo Response Non-Uniformity (PRNU) is the per-pixel noise pattern unique to each physical sensor. Two iPhone 15 Pros leave subtly different PRNU patterns on every shot. Generated images have *no* PRNU — they have whatever noise the decoder hallucinated, which is uniform and channel-correlated in ways real sensors are not.

PRNU analysis is primarily used for sensor identification and linking images to a known camera. Without a suitable reference pattern, arbitrary synthetic noise is not proof of a physical capture. Related noise analysis can ask:

- Does noise variance scale with luminance, as shot noise would?
- Are spatial and inter-channel correlations consistent with a plausible capture pipeline?
- Does the residual survive compression in a plausible way?

These cues can contribute to a forensic assessment, but the presence of a generated PRNU-like pattern alone does not establish authenticity.

### AI Image Detector

Free AI-image detector — no upload, no login. Scan any image in your browser.

[Run AI Image Detector](https://synthavio.com/ai-image-detector)

## Signal 4 — Learned classifiers (the CNN/ViT layer)

The classic approach — train a ResNet or ViT on `(real, fake)` pairs — works beautifully on the distribution it was trained on and falls off a cliff outside it. A classifier trained on Stable Diffusion 1.5 routinely scores below 60% on Midjourney v6 outputs. A classifier trained on 2023 GAN faces is essentially blind to 2025 transformer-based portrait models.

Many current approaches use pretrained vision or vision-language backbones such as CLIP with a detection head trained on real and generated examples. This can improve generalization, but performance still depends on the generators, content and post-processing represented in training and evaluation.

## Signal 5 — Perplexity-style patch statistics

Borrowed from text detection: ask whether each local patch of the image is *too predictable* given its neighbors. Real photos have surprising patches — a sudden rim light, a smudged background, a chromatic aberration on a high-contrast edge. Generated images tend to be *too coherent* — every patch is exactly what the surrounding context predicts.

This is implemented as either:

- **Block variance ratios** — variance of each 32×32 patch divided by the variance of its surroundings. A flat ratio across the image is suspicious.
- **Auto-encoder reconstruction residuals** — pass the image through a VAE and measure where the reconstruction is suspiciously good. Generated images tend to reconstruct *too well* because they live near the manifold the VAE was trained on.

## Signal 6 — Metadata and provenance

The least sexy signal and often the most decisive. A fresh shot from a phone carries:

- **EXIF**: camera make, model, ISO, shutter speed, GPS, lens focal length
- **MakerNote**: vendor-specific binary blob with white balance presets, image processor version
- **Color profile**: sRGB vs. Display P3 with embedded ICC profile
- **Thumbnail**: a 160×120 JPEG embedded in the EXIF that should match the main image

Diffusion outputs typically carry none of this — or worse, they carry generator metadata (`Software: Stable Diffusion XL 1.0`). A metadata-aware detector that finds an image *without* EXIF, *without* a thumbnail, and *with* a perfectly square aspect ratio common to generators is going to flag it as suspect even if every pixel signal is clean.

> Metadata is trivially strippable or editable. Generated EXIF can make fields internally consistent, but it is not verified provenance. Missing EXIF is also common after legitimate editing and social-media uploads, so its absence is not reliable evidence of generation.

## Signal 7 — Watermarking (the SynthID question)

Some providers ship invisible watermarks designed to survive ordinary editing. Google describes [SynthID](https://deepmind.google/blog/identifying-ai-generated-images-with-synthid/) as a pixel watermark that can remain detectable after filters, colour changes and lossy compression. Exact mechanisms and coverage vary by provider and product.

A validated watermark can be high-precision evidence about a supported generator, but it is not universal: unwatermarked generators produce no such signal, and robustness against deliberate attacks is a separate empirical question. A negative result therefore cannot establish that an image is real.

Watermark detection can run alongside statistical classifiers as an additional signal rather than being inferred from EXIF or visible quality.

## Why detectors disagree

The 2025 review [*"Methods and Trends in Detecting AI-Generated Images"*](https://arxiv.org/abs/2502.15176) groups the field into spatial, frequency, fingerprint, patch, training-free, multimodal and commercial approaches and emphasizes cross-generator, cross-category and cross-scene evaluation. It does not establish a universal agreement rate between public detectors. Disagreement has several practical causes:

1. **Different signal mix.** A frequency-only detector and a learned-classifier detector are looking at different artifacts of the same image.
2. **Different training distributions.** A 2023-trained model has never seen 2025 generators.
3. **Different thresholds.** Two detectors with identical scoring can return opposite verdicts depending on where the operator drew the line.
4. **Different pre-processing.** Resizing to 224×224 vs. 512×512 vs. native resolution materially changes every frequency-domain signal.

This is why services like Originality, Hive, and Sightengine produce divergent verdicts — and why you should never treat any single detector's output as ground truth.

## The post-processing problem

Many forensic and learned signals can change or become less reliable when an image is:

- Re-encoded as JPEG
- Resized
- Screenshotted
- Color-graded
- Posted through Instagram, X, or WhatsApp

A 2026 CISPA-led evaluation of four research detectors reported average AUROC falling from 87.5% on clean inputs to 66.6% under its strongest tested degradation protocol. The same study also found that targeted adversarial perturbations could transfer to commercial detection, while robust CLIP features improved resistance. These results are specific to the paper's datasets and attacks, not a universal screenshot penalty. ([Study](https://arxiv.org/abs/2410.01574))

[Our own Photo Detector](https://synthavio.com/ai-image-detector) deliberately surfaces this uncertainty — instead of a single percentage, it shows the contributing signals and a confidence band, so you can see *why* the verdict came out the way it did.

## What's coming next

Three trends to watch in 2026:

- **Provenance-first** standards (C2PA / Content Credentials) shifting the burden from "detect after the fact" to "verify cryptographically signed origin." Adobe, Sony, Leica and Nikon now ship cameras that sign captures at the sensor level.
- **Foundation-model detectors** — large multi-modal models that look at semantics ("does this scene make physical sense?") in addition to pixel statistics.
- **Adversarially-trained humanizers** that explicitly optimize against published detector ensembles. We expect this arms race to dominate the next 18 months.

## Bottom line

AI image detection in 2026 is a **probabilistic sport**, not a forensic certainty. Every detector is a stack of signals, each with known failure modes, combined into a number that hides more than it reveals. Use them for triage, not for adjudication — and when the stakes are high, look at the *signals*, not just the verdict.

If you build with detectors, expose the underlying signals and evaluation limits to your users. If you write about them, report the dataset, generator mix and post-processing alongside every percentage. A [photo-processing pipeline](https://synthavio.com/photo-humanizer) can change selected forensic signals, but external detector and platform outcomes still need separate verification.

## Frequently asked questions

### Can AI image detectors be 100% accurate?

No. Every detector has false-positive and false-negative rates that depend on its training data, threshold and input distribution. Results on clean benchmark images do not necessarily transfer to new generators or to recompressed, resized or screenshotted files.

### Why do two different detectors give different verdicts on the same image?

They look at different signals. One may rely on JPEG block artifacts, another on FFT high-frequency energy, a third on a learned classifier trained on Stable Diffusion 1.5 outputs. Each signal can be present, absent, or misleading on a given image.

### Does humanizing an image always defeat detectors?

Not reliably. Re-introducing camera-style noise, re-encoding JPEG and changing frequency fingerprints can alter some forensic signals, but learned classifiers and watermark checks can still identify the image. A current external benchmark is necessary before claiming a pass rate.

## Related articles

- [which-ai-images-are-easiest-to-detect](https://synthavio.com/blog/which-ai-images-are-easiest-to-detect)
- [prnu-fft-sensor-noise](https://synthavio.com/blog/prnu-fft-sensor-noise)
- [is-this-photo-ai](https://synthavio.com/blog/is-this-photo-ai)
- [why-real-photo-flagged-ai](https://synthavio.com/blog/why-real-photo-flagged-ai)
