Artificial Intelligence Detection: Why applications fail when analyzing images

2026-05-14

Internal image: Artificial Intelligence Detection: Why applications fail when analyzing images

They say it's not AI because the app didn't detect it. That's like saying that a document is not fake because the magnifying glass found no errors.

I will repeat that to be clear, because this sentence sums up the whole problem that I'm about to put aside in this article: the argument that an image is true because a free internet application did not mark it as generated by artificial intelligence is a logical fallacy. He's got a name. It's called a demand of principle. And that's the digital equivalent of saying "this ticket's true because I look good."

During my professional career in computer forensics. I have trained forensic experts in Latin America. I have analyzed digital evidence in criminal, civil, commercial and labor trials where an image, audio or video was the central evidence. And I'll be honest: the number of times I've seen an authority -- prosecutor, public prosecutor, lawyer, legislator -- use a free AI detection application as if it were a forensic expert report has ceased to surprise me. It doesn't surprise me anymore. It worries me.

It worries me because that logic is becoming institutionalized. It is becoming the unwritten standard for how authorities "verify" whether an image is real or generated. And that standard has no technical support, has no scientific rigor and should have no evidentiary value.

This article is for the journalist investigating a case where the authenticity of an image is key and needs to understand why AI detection tools are not what they seem. For the lawyer faced with multimedia evidence whose authenticity is taken for granted without forensic verification. For the legislator who is drafting regulations on artificial intelligence without understanding how the technology he intends to regulate works. And for the citizen who saw an image on social networks, read that "it is not AI because it passed the detector," and wants to know if that means anything.

Let's anticipate: it doesn't mean what you think it means.

The fallacy: "It doesn't have an AI label, so it's real"

I will start with the most common and most dangerous argument that goes into official speeches, misstatements and journalistic notes without technical rigour.

The argument is this: "The image was not marked as generated by artificial intelligence by the platform where it was published. Therefore, the image is real."

This is begging the question. The conclusion is assumed in the premise. It is being said: the image is real because it was not detected to be fake. But the absence of detection is not evidence of authenticity. The absence of detection is, simply, absence of detection.

I'll put an analogy that anyone can understand.

A doctor checks a patient. He doesn't find anything. He says, "That's good." But his doctor just got his pressure and asked him how he felt. He did his blood tests, did his electrocardiogram, did his imaging. He found nothing because he didn't search with his tools. That doesn't mean there's nothing. That means that the examination was insufficient.

Free AI screening apps are the equivalent of taking a patient's blood pressure and declaring them healthy. It's not that they are useless. The thing is that what they do is insufficient to issue a verdict of authenticity. And the difference between "insufficient" and "definitive" is the difference between an opinion and a forensic expert report.

Journalist investigating a case where the authenticity of an image is central: When an authority tells you "we checked the image with a detection tool and did not come out as IA," the first question you have to ask is: what tool? What's his documented accuracy rate? What percentage of false negatives do you have? What generative models have been trained against? If they can't answer those questions, what they're telling you doesn't have technical sustenance. That's a statement, not a check.

The magnifying glass analogy: why the detector does not detect

Imagine that someone gives you a 500 peso bill and asks you to determine if it is counterfeit. You take out a magnifying glass. You look at it. The colors look good. The paper feels good. The letters are where they should be. You say: "The magnifying glass found no errors. The bill is real."

But the magnifying glass cannot see the watermark under ultraviolet light. The magnifying glass cannot feel the relief of the intaglio print. The magnifying glass cannot read the microtext that is only visible with specialized instruments. The magnifying glass cannot verify the chemical composition of the paper or compare the ink with the central bank specification. The magnifying glass gives you a superficial visual inspection. It doesn't give you authentication.

AI detection applications are magnifying glasses. Some are good magnifying glasses. Others are toy magnifying glasses. But even the best magnifying glass is still a magnifying glass. It is not an authentication laboratory.

And here's what's technical, because without what's technical, this remains an analogy and the analogy isn't sustained by itself.

How AI Detectors Work (and Why They Fail)

AI-generated image detectors mostly work with machine learning models trained to distinguish between "real" images (captured by a physical camera) and "generated" images (produced by a generative model such as Stable Diffusion, Midjourney, DALL-E, or any other). The model analyzes statistical patterns in the image: frequency distributions, noise patterns, compression artifacts, consistency in textures, lighting and perspective.

The problem is multiple. And each layer of the problem weakens the reliability of the result.

Problem 1: The generative model develops faster than the detector. Generative image models are constantly updated. DALL-E 2 generated images with visible artifacts in hands and fingers. DALL-E 3 corrected them. Midjourney v3 had detectable artificial textures. Midjourney v6 removed them. Stable Diffusion XL produces images with a level of realism that was unthinkable two years ago. Each new version of the generative model makes detectors trained with previous versions obsolete. It is an arms race where the attacker is always one step ahead.

Problem two: false positives. A false positive is when the detector says "this image was generated by IA" but it's actually an authentic photo. That's often alarming when the image has been edits, compressed, leaked, redimensioned or processed somehow. Instagram, WhatsApp, Facebook, Twitter -- all these platforms reward the images as they get uploaded. That reducibility alters the statistical patterns that the detector wants. The result: The detector marks as "generated by IA" an actual photo that was simply shared by WhatsApp.

For a lawyer, this is devastating. Imagine your client presented a legitimate photograph as evidence and the counterparty ran it through an AI detector that returned "probably generated." Your test was just challenged with a tool that doesn't distinguish between "generated by a model" and "compressed by WhatsApp."

Problem three: false negatives. A false negative is when the detector says "this image is true" but actually was generated by IA. That happens when the generative model that produced the image isn't at the detector's training set, when the image generated was post-processed (adding noise, altering metadata, applying camera filters), or when the generator was specifically trained to avoid detection.

False negatives are the most dangerous scenario. Because they are the ones who give the authority the false assurance that "the image passed the detector, so it is real." The empty checkbox that becomes a seal of authenticity.

Problem 4: The mixed image. What happens when someone takes a real photo and uses IA to modify a part? To change a face. To alter a text into a photo document. Add an item that did not exist. The result is an image that's partially real and partially generated. The IA detectors were not designed for this stage. They analyze the complete image and issue a binary verdict: true or false. They don't say "The image's real but the face that was generated." They don't have that granularity.

Legislator who is thinking about regulating deepfakes and artificial intelligence applied to media: That technical complexity has to be seen by its regulation. If the law says "images have to pass an IA detector to verify authenticity," the law's built on sand. The detectors aren't enough. They're not today, they're not gonna be tomorrow. Effective regulation cannot depend on tools with an unknown or unacceptable error rate for a legal process.

Legislator who is thinking about regulating deepfakes and artificial intelligence... in "Artificial Intelligence Detection: Why applications fail when analyzing images"

The empty checkbox is not a seal of authenticity

There is a trend that I am seeing with increasing frequency at the institutional level and that I need to point out as precisely as I can.

Authorities, platforms and organizations are beginning to implement image authenticity "verifications" that consist of passing the image through a detector and, if the detector does not mark it as generated, declaring it authentic. It's a checkbox. Did the image pass the filter? Yes. Then it's real.

This checkbox has no evidentiary value. It does not have scientific rigor. It has no forensic support. It is a superficial discard process disguised as verification.

I'm going to explain it in forensic terms.

In computer forensics, the authentication of an image is not done by passing it through a detector. It is done by analyzing the image in multiple layers of technical depth:

Layer 1: EXIF Metadata. Any image captured by a camera -- whether a mobile camera or a professional camera -- contains EXIF metadata: device model, date and time of capture, camera configuration (opening, ISO, shutting speed) and in many cases GPS coordinates. A picture generated by IA has no EXIF camera metadata because it was not captured by a camera. Nevertheless, this isn't final: metadata can be artificially added and can be removed from an actual image. The metadata are the starting point of the analysis, not the conclusion.

Layer 2: Residual noise analysis. Any physical camera -- every RCD or CMOS sensor that exists -- produces a unique noise pattern. It's like a fingerprint from the sensor. It's called PRNU (Photo Response Non-Uniformity). Two photographs taken with the same camera share the same PRNU pattern. If I have the device that purportedly captured the image, I can compare the PRNU of the questioned image with the sensor pattern of the device. If they agree, the image was captured by that device. If they don't match, she's been caught by that device. The images generated by A have no PRNU because they were not captured by a physical sensor. They have a different noise pattern, determined by the generative model.

Layer 3: Compression analysis. Digital images go through compression processes -- JPEG is the most common -- that leave behind specific artifacts. Every time an image is saved, shared, or uploaded to a social network, the compression artifacts are modified. A forensic expert can analyze the compression layers to determine how many times the image was recompressed and whether the compression is consistent with the normal flow of a photograph (camera -> storage -> sharing) or if there are anomalies that suggest editing or generation.

Layer 4: Internal consistency analysis. Lighting, perspective, shadows, reflections, proportion of elements. An image generated by AI may have inconsistencies that are not visible to the naked eye but that a forensic analysis detects: shadows that go in different directions, reflections that do not correspond to the light sources, textures that repeat unnaturally. This analysis is not done by an application in 3 seconds. It is done by a forensic expert with specialized tools and training in image analysis.

Layer 5: Generative model analysis. Each generative model -- Stable Diffusion, Midjourney, DALL-E, Firefly -- leaves a statistical "signature" on the images it produces. That signature is in the distribution of spatial frequencies, in the dithering patterns, in the way the model handles edges and transitions. A forensic lab with the right tools can, in many cases, not only determine that the image was generated by AI but identify which model generated it.

Those five layers are what a serious forensic analysis contemplates. What a checkbox in a free application contemplates is, at best, a simplified version of layers 2 and 5. At worst, it does not contemplate any.

Citizen who saw the news that "the image was verified and is not AI": What they probably did was put her through an app and see that she didn't sign it. That's not verification. That's a surface filter. The difference is the same as with an anti-doping at home and a certified lab analysis. They're both looking for the same thing. One has legal value. The other doesn't.

Google and Meta do not have a "magic detector"

I need to dismantle this idea because I hear it more and more frequently in forums, conferences, official statements and even in court hearings.

The idea is this: "Google would detect it." Or its variant: "If it were deepfake, Meta would have flagged it." Or the most ambitious: "The platforms already have artificial intelligence that detects artificial intelligence."

I'm going to be straight: neither Google, nor Meta, nor OpenAI, nor any technology company has an unbeatable content detector generated by IA. None. And the companies themselves have recognised them in their technical documentation, which they have been curious about.

Google has published research on deepfake detection and generative content. In these investigations, the authors themselves document the limitations: detection models have an accuracy rate that varies between 70% and 95% depending on the generative model, image resolution, level of post-processing and other factors. 95% accuracy sounds high until you understand what it means: of every 100 AI-generated images, the detector correctly identifies 95 but misses 5 as real. In a judicial context, where a single image can be the difference between a conviction and an acquittal, a 5% error is not acceptable. It's not even remotely acceptable.

Meta implemented an AI-generated content tagging system on its platforms. The system works by detecting metadata that certain generators embed in images -- such as the C2PA standards that Adobe and other companies have implemented. If the image has that metadata, tag it as "AI generated." If you don't have them, don't label it.

Now think about that for a moment. If an AI generator doesn't embed that metadata -- because it's open source, because the user removed it, because it was trained before the standard was implemented -- Meta doesn't detect it. He doesn't label it. And the absence of a label is interpreted as authenticity.

It is exactly the fallacy I talked about at the beginning. The absence of detection is not evidence of authenticity.

OpenAI developed an AI-generated text classifier. He released it publicly. Months later he withdrew it because the error rate was too high. If the company that created GPT cannot determine with certainty whether a text was generated by its own model, what confidence should we have in a free application that claims to be able to detect whether an image was generated by any model?

The answer is: no confidence that has evidentiary value.

Lawyer facing multimedia evidence whose authenticity is taken for granted: do not allow the argument "the platform did not detect them" to become evidence of authenticity. That argument was technically and logically unsustainable. If the authenticity of an image is relevant to your case, the only way to set it rigor is by means of a forensic examination that analyzes the image at all layers described above. A platform label isn't an opinion. A checkbox isn't an analysis. An automatic filter isn't forensic expert.

Lawyer facing a multimedia test whose authenticity is taken for granted, in "Artificial Intelligence Detection: Why applications fail when analyzing images"

The watermark as an illusion: why the platforms' technical solutions do not solve the problem

There is a narrative gaining traction in regulatory and legislative circles: the solution to the problem of deepfakes and generated images is to force AI generators to embed an invisible digital watermark in every image they produce. Thus, anyone could verify if the image was generated by simply looking for the watermark.

In theory it sounds reasonable. In practice, it has holes that a first semester of engineering can identify.

The watermark can be removed. Invisible digital watermarks -- steganographic watermarks -- are data embedded in image pixel values. Aggressive recompression, format conversion, resizing, or a specific watermark removal process can destroy the watermark. If the watermark disappears, the AI-generated image loses its “tag” and becomes indistinguishable from a real image to watermark-based detection systems.

Watermark can be added to real images. If the format of the water mark is known -- and eventually will be known, because safety by darkness isn't security -- an attacker can put it into an actual photo to make it appear to be generated by IA. Imagine the implications: actual photographs of actual events, discredited as someone added them the water brand "generated by IA."

Open source generators do not embed watermarks. Stable Diffusion's open source. Any person can download, modify, remove the code that intersects the water mark and generate unbranded images. Regulation may require commercial companies to embody water brands but cannot force a model that anyone can run on their personal computer.

This does not mean that watermarks are useless. They mean that they are not a complete solution. They are one more layer in a multi-layered problem. And treating them as the ultimate solution is the same mistake as treating the AI ​​detector as the ultimate verification.

Legislator who is drafting regulation on artificial intelligence and deepfakes: The Regulation that works will be the one that recognizes that there is no single and final technical solution to the problem of authenticity of digital means. The regulation that works will require that authenticity checks of an image, audio or video in a legal context require forensic analysis by forensic expert with specialized training and tools. Not an app. Not a platform label. Not a checkbox. A survey.

How Forensic Media Authentication Really Works

I'll close this article with what should be the standard -- and that in the cases I conduct at Doriva, it's the standard.

When an image, audio or video is relevant to a court case, the question "is it real or is it generated by AI?" It is not answered with an application. It is responded to with a forensic process that has defined steps, validated tools, and a reproducible methodological framework.

Step 1: Preservation

Before analyzing anything, it is preserved. A forensic copy of the image or the device containing it is generated, with SHA-256 hash that guarantees integrity. The chain of custody is documented. If the image comes from the Internet, its origin is certified with forensic archiving tools that record the URL, download date, HTTP headers, and the full content of the page.

Step 2: Metadata Analysis

All available metadata are extracted and analysed: EXIF, XMP, IPTC. It checks whether metadata are consistent with the alleged capture device. Generative model metadata are sought -- some generators embed identifiable information. Rejected, modified or inconsistent metadata are detected.

Step 3: Sensor Analysis (PRNU)

If the device that supposedly captured the image is available, the residual noise pattern of the image is compared with the sensor pattern. Positive matching: The image was captured by that device. Negative matching: lt was not caught by that device. No consistent sensor pattern: potential artificial generation.

Step 4: Analysis of compression artifacts

JPEG compression layers are analysed to determine the image processing history. How many times she was compressed. What parameters. If compression is consistent with a natural flow of capture and distribution or with anomalies.

Step 5: Visual and statistical consistency analysis

The image is reviewed to detect inconsistencies in light, perspective, shadows, reflexes, space frequencies and statistical distribution of pixel values. ALA (Error Level Analysis) techniques, analysis of frequency components and comparison with known signatures of generative models are applied.

Step 6: Opinion

The forensic expert issues an opinion documenting the findings of each layer of analysis, the tools used, the methodology applied and the substantiated conclusion. That opinion has evidentiary value. It is reproducible. It is technically questionable at hearing, which is exactly what a legal process requires: evidence that can be confronted, not a checkbox that is blindly accepted.

Journalist who is investigating a case where an image is the centerpiece: this process is what you should demand to be done before accepting any image as true or as generated. If someone tells you "we put her through a detector and she's real" or "we put her through a detector and she's fake," in both cases the right answer is: that's not enough. A detector isn't an expert. A probability percentage isn't an opinion.

Journalist who is investigating a case where an image is the centerpiece, in "Artificial Intelligence Detection: Why applications fail when analyzing images"

The conversation we need to have

Generative artificial intelligence is not going away. It's going to get better. The images generated are going to be more and more realistic, the synthetic audios are going to be more and more convincing, the videos generated are going to be more and more indistinguishable. The detectors are going to follow, always one step behind, because it is infinitely easier to generate than to detect.

That is not pessimism. It is the technical reality.

And that technical reality requires that the legal system, the mass media, authorities and citizens update their understanding of what "verify" means about the authenticity of a digital environment.

Check isn't passing a filter. To check is to have a thorough forensic analysis with specialized tools performed by a forensic expert with training and with a documented and reproducible opinion.

As long as we continue to accept that "the app didn't detect it, so it's real" as a valid argument, we are building a system where evidence is not verified -- it is assumed. And a system where evidence is assumed is a system where truth is not sought.

Authorities rely on free online detectors that don't understand how generative models operate. Lawmakers write regulations based on technical solutions that have documented holes. Lawyers accept images as authentic because "no one questioned them." Citizens share content without knowing if it was generated by a person or a model.

And amidst all that, the fundamental question -- "Is this image real?" -- remains without a reliable answer outside a forensic lab.

At Duriva, we analyze digital media with all the layers that I described in this article. Metadata, PRNU, compression, visual consistency, generative model signatures. We don't use an app and render a verdict. We do a forensic analysis and document what we find. With rigor. With methodology. With the precision that a legal process deserves.

Because the question "is it real or is it AI?" It is not answered with an app. It is answered with science. And forensic science is exactly that: science applied to the truth.

Contact
Let's talk about your case
Open contact form