Skip to main content

Deepfake Forensics Workflow for Image Analysis

Reading time: 8 min

Analyzing suspected deepfakes requires more than detection alone. This post explains a forensically sound workflow for image and video analysis that helps investigators produce findings that are explainable, reproducible, and defensible.

Deepfake forensics workflow for image analysis

The research community developed several tools for detecting and analyzing deepfakes under various circumstances. But where should a practitioner begin when an image is suspected of being a deepfake?

In this post, we outline a scientific workflow and the underlying reasoning required to analyze an image or video. This workflow is based on a forensically sound methodology designed not just to detect manipulation, but to produce evidence through an approach that is explainable, reproducible, and defensible. Before starting: note that this post is written for forensic practitioners who are already familiar with the fundamentals of digital imaging and core forensic approaches.

The analysis generally starts from the “naive” question: “Is it a deepfake?”
However, to a forensic expert, the technical interpretation is much broader.
For this specific talk, we will consider the detection of generated images and natural images modified through AI technologies, i.e., the image is “contaminated” in some way with AI-based editing techniques.

Key Takeaways

  • Deepfake analysis should follow a forensically sound workflow, not a single-tool detection approach.
  • The goal is to identify possible manipulation and to produce findings that are explainable, reproducible, and defensible.
  • A robust workflow combines AI-based triage, metadata inspection, format analysis, geometric checks, and pixel-level analysis.
  • AI detection alone is not evidential and should be treated as a starting point for further forensic examination.
  • Scientific image and video analysis depends on methodology, validation, and consistency, especially when results may need to support an investigation or legal process.
  • A structured forensic workflow helps analysts turn an initial AI flag into documented, corroborated, and defensible findings.

Watch the Podcast Episode: Beyond the Deepfake Detection Button

Want to go deeper into the reasoning behind this workflow?

In this episode of the Amped Podcast, “Deepfake Forensics: Beyond the Deepfake Detection Button”, we discuss why suspected AI-generated or AI-manipulated media cannot be assessed with a single detector alone.

The conversation explores how forensic practitioners can combine AI-based triage with metadata, format, compression, geometric, and pixel-level analysis to build explainable and defensible findings.

How to Analyze a Suspected Deepfake: A Forensically Sound Workflow

A forensically sound deepfake analysis should follow a structured process. In practice, the workflow can include these stages:

  1. AI-based triage (non-evidential)
    Use AI tools as an initial screening step to flag possible signs of manipulation. These results can help prioritize analysis, but they should not be treated as evidence on their own.
  2. Metadata and container inspection
    Examine file metadata, codec information, timestamps, software markers, and container structure to identify inconsistencies, processing history, or signs of re-encoding.
  3. Compression analysis
    Assess whether the image has been compressed twice or exposes local compression inconsistencies.
  4. Geometric consistency checks
    Evaluate whether spatial relationships in the image or video are physically plausible, including perspective, proportions, facial alignment, lighting direction, and scene geometry.
  5. Image-domain forensic checks
    Analyze pixel-level and signal-level characteristics such as noise patterns, compression traces, local artifacts, resampling indicators, and other statistical anomalies.
  6. Cross-validation of findings
    Compare results across methods rather than relying on a single indicator. A defensible conclusion should be supported by converging evidence from multiple forensic techniques.
  7. Documentation and reproducibility
    Record each analytical step, tool, assumption, and result so that the examination can be explained, reproduced, and defended if challenged.

Why AI-based Detection Should Be Used for Triage, Not Evidence

The first single-shot weapon in our arsenal is “using AI to fight AI”. AI-based tools are excellent for triage but are not forensically reliable as standalone evidence due to limited explainability (see our related post for why).

They are particularly useful when processing large datasets: In front of a massive amount of images, the manual inspection of each piece of media can be unfeasible. The batch analysis of the data, instead, can make the selection of relevant content easier and faster. In this case, a tool that automatically flags synthetic-generation clues can be a game-changer for the analyst in terms of processing time.  

In practice, they act as an initial filter, helping analysts prioritize which content requires deeper forensic inspection.

AI-generated image of a girl

In the example above, the Authenticate Diffusion Model Detection filter triggers a red flag! This suggests the image was likely generated by an AI tool. However, while this filter has a low false-alarm rate on photorealistic images, AI-based results alone cannot stand up in court.

Metadata Analysis in Deepfake Forensics

Another check that can lead to a “quick win” is the analysis of metadata and file format information. In certain instances, the traces of a generative system are stored directly within the textual metadata. See, for instance, the following examples:

Screenshot of metadata fields showing “Item0When” with the timestamp “2023-11-24T16:21:06Z” and “Item0Description” labeled as “AI Generated Image.”

Screenshot of metadata fields showing “Claim_generator” set to “Microsoft Responsible AI/1.0” and “Claim_Generator_InfoName” set to “Microsoft Responsible AI Image Provenance.”

Screenshot of metadata fields showing “Credit” set to “Edited with Google AI” and “DateCreated” listed as “2025:09:25 09:42:52+00:00.”

In a few cases, when the image is generated through a text2image method, the prompt can be found in the metadata, like the following example.

Evidence Image Value:  A bustling street market in Marrakech, Morocco, filled with colorful spices and textiles..Steps: 20, Sampler: DPM++ 2M, Schedule type: Karras, CFG scale: 5, Seed: 739955706, Size: 512×512, Model hash: 6ce0161689, Model: v1-5-pruned-emaonly, Version: v1.9.4“.

While this would be an open-and-shut case, metadata is rarely this useful. In most investigations, relevant metadata is stripped or “scrambled” by social media processing (e.g., WhatsApp, X, or Instagram).

Format Analysis: JPEG vs Non-JPEG

Then, the practitioner is required to go deeper with the analysis. The first major crossroad in the workflow is given by the image format. JPEG or Non-JPEG, that is the question.

Indeed, if the image is a JPEG, the state of the art provides an extensive arsenal of tools designed to characterize compression traces. By analyzing JPEG inconsistencies, we can determine if an image has been globally recompressed or locally manipulated. For instance, in the following example, a small AI-based “inpainting” edit is exposed through the analysis of local inconsistency in the compression level, detectable via Authenticate ADJPEG filter.

View across the River Thames toward the London skyline, featuring The Shard skyscraper under a cloudy sky, with partially flooded riverside steps and handrails in the foreground.
High-contrast green-tinted processed image of the London skyline with The Shard faintly visible in the background, flooded riverside steps and railing in the foreground, and a small highlighted red area near the lower right side of the image.

Although the technique cannot exactly determine how the red portion has been modified, it can definitely prove that something is wrong with the image. Furthermore, an inconsistency at the JPEG level is strongly explainable and has a solid scientific foundation. You can definitely go into the courtroom with these results.

Note, furthermore, that in this specific case, the image is hardly recognized as AI-generated because a very small part is modified! The JPEG analysis made the difference.

In the case we saw at the beginning, unfortunately, the image we are analyzing is in PNG format, and no relevant metadata or discriminative format characteristics are available.
Is there something else we can do?

Using Geometric Analysis to Detect Inconsistencies

Luckily for us, the image includes reflections! Mathematical models are clearly defined and can be used to assess if the reflections are consistent within a real image1.

Photo of a young woman with long wavy hair sitting beside a window, with her reflection circled in red and an annotation pointing to it labeled “Consistent Reflections?” to highlight reflection analysis in image authenticity evaluation.

Authenticate’s Reflections Filter can do the job and the results are clear: reflections are inconsistent (the details on how the reflection analysis works can be found here).

Screenshot from Amped Authenticate showing a young woman sitting beside a window with her reflection visible in the glass. Pink guideline overlays compare facial alignment between the subject and reflection, while a panel labeled “Reflections Constraints” appears on the right. Large text at the bottom reads “Current System State: System Unfeasible,” indicating inconsistent reflection geometry.

This geometric inconsistency verification cannot characterize the generation/manipulation process. However, it is a forensically sound way to prove that the image is unreliable. The method is also clearly explainable, making it valuable for expert testimony.

Depending on the image content, various geometric-based features can be checked in the image, like shadows and perspective. These features are very robust to compression and should be strongly considered when the image has a limited resolution or is strongly compressed.

Note that even when geometric features cannot be used, the analysis of the inconsistencies at a local level can be performed through a series of algorithms developed by Image Forensics researchers. Authenticate implements the most relevant to expose unexpected correlation patterns left by an AI-based local manipulation.

For instance, in the following example, the error analysis of DCT coefficients highlights traces of inpainting: in the central part of the image, Authenticate’s Correlation Map filter highlights a noise pattern that is completely uncorrelated with the content.

Warmly lit restaurant or wine bar interior with arched stone ceilings, where a man plays an upright piano while another man stands nearby holding a child. Tables, chairs, bottles, and soft ambient lighting create an intimate atmosphere.
Processed grayscale correlation map of a restaurant interior, where the central area displays a dense speckled noise pattern that appears visually uncorrelated with the underlying scene content, while faint outlines of furniture and people remain visible around the edges.

In summary, a proper workflow for deepfake detection should include the combined analysis of different image domains (metadata, container, codec, pixel statistics, geometric properties). This is because generation and manipulation processes can leave a number of forensic traces in various image domains.

In the considered example of the “reflected girl”, for instance, the combination of deepfake detection and reflection filters proves that the image is unreliable (with an explainable methodology) and it is likely to be generated with an AI-based method.

Conclusion

The above analysis highlights that answering the simple question “is it fake?” requires much more than a single click on a deepfake detector. Investigation skills and deep knowledge of image encoding and compression are needed to fully examine a piece of media under investigation.


FAQ: Deepfake Forensics Workflow

What is Deepfake Forensics?

Deepfake Forensics is the forensic analysis of suspected synthetic or manipulated media using multiple methods. Instead of relying on a single detector, it combines the analysis of various image domains (metadata, format, compression levels, geometry, and pixel-level analysis to assess authenticity) in a way that is explainable and reproducible.

Can AI alone prove that an image or video is fake?

No. AI can be valuable for triage and prioritization, but AI-only outputs are not enough on their own for a defensible forensic conclusion. Additional forensic methods and expert interpretation should support a reliable assessment.

Why is metadata analysis important in deepfake investigations?

Metadata and container analysis can reveal useful clues about file history, software used, timestamps, encoding, and structural inconsistencies. While metadata alone is rarely conclusive, it can provide important context and help guide the rest of the forensic examination.

Why does JPEG vs non-JPEG matter in forensic analysis?

Different file formats preserve and alter information in different ways. JPEG compression can introduce artifacts and affect what an analyst can reliably observe, while non-JPEG formats may retain different traces. Format-aware analysis helps ensure that findings are interpreted correctly.

What are geometric inconsistencies in a suspected deepfake?

Geometric inconsistencies are mismatches in spatial or physical relationships within an image or video, such as implausible shadows, reflections, perspective, proportions, or facial alignment. These checks are useful because they can provide more explainable evidence than a black-box detector alone.

What makes a deepfake analysis workflow forensically sound?

A forensically sound workflow is systematic, documented, reproducible, and based on multiple converging indicators. It avoids overreliance on one tool or one method and instead builds conclusions from corroborated findings that can be explained and reviewed.

Can Amped Authenticate support deepfake forensic analysis?

Yes. Amped Authenticate includes AI-based deepfake detection filters as well as tools for broader forensic analysis, including metadata and file-structure inspection, visual artifact analysis, and geometric analysis. That supports the article’s core point: deepfake analysis should be treated as a forensic workflow, not just a detection task.


  1. Bianchi, Stefano, et al. “Assessing shadows and reflections consistency in AI-generated images.” 2024 IEEE International Workshop on Information Forensics and Security (WIFS). IEEE, 2024. ↩︎


 Massimo Iuliani

Massimo Iuliani has been a member of the Amped Software team as a Forensic Analyst and Trainer since September 2023. In 2017, Massimo achieved a Ph.D. in Mathematics focused on image and video authentication topics. Before coming to Amped, he had worked for ten years within the Dept. of Information Engineering of the University of Florence, on research projects funded by the European Commission and DARPA. All projects were related to the authentication and reverse engineering of multimedia content. He co-authored over 20 papers in peer-reviewed journals and conferences on multimedia forensics topics. He has also provided testimony in court as an expert witness in Italy for the analysis and interpretation of image, video, and audio evidence. Outside the forensic environment, Massimo is a music lover and producer. He is always looking for new links between sounds and feelings. He supports musicians and songwriters in finding their true sound and bringing their music to light.

Subscribe to our Blog

Receive an email notification when a new blog post is published and don’t miss out on our latest updates, how-tos, case studies and much more content!