The Statistical Fingerprint of AI-Generated Images: Difference between revisions
| Line 47: | Line 47: | ||
== Image Generation Methodology == | == Image Generation Methodology == | ||
[[File:Stable_Diffusion_Pipeline.png|thumb|center|900px|Figure 5: The generative pipeline. Set B is encoded into latent space and denoised by Stable Diffusion v1.5 using an Image-to-Image workflow to create a synthetic "digital twin."]] | |||
To isolate the statistical differences between physical light transport and generative hallucination, we constructed a controlled dataset of 243 unique night-driving scenes. The dataset is divided into three aligned sets: Physical Ground Truth (Set A), Camera Simulation (Set B), and Generative AI (Set C). | To isolate the statistical differences between physical light transport and generative hallucination, we constructed a controlled dataset of 243 unique night-driving scenes. The dataset is divided into three aligned sets: Physical Ground Truth (Set A), Camera Simulation (Set B), and Generative AI (Set C). | ||
| Line 55: | Line 58: | ||
=== Set B: Camera Simulation (The Baseline) === | === Set B: Camera Simulation (The Baseline) === | ||
[[File:ISETCamSpecs.png|thumb|right|400px|Figure | [[File:ISETCamSpecs.png|thumb|right|400px|Figure 6: The ISETCam simulation pipeline. The spectral radiance from Set A is passed through a model of a triangular aperture (f/2.0) and a Bayer sensor to produce the final RGB photograph.]] | ||
To generate photorealistic baselines, we passed the spectral radiance from Set A through a virtual camera model using **ISETCam**.[[#ref4|<sup>[4]</sup>]] This stage introduces the physical imperfections inherent to optical imaging systems. | To generate photorealistic baselines, we passed the spectral radiance from Set A through a virtual camera model using **ISETCam**.[[#ref4|<sup>[4]</sup>]] This stage introduces the physical imperfections inherent to optical imaging systems. | ||
| Line 63: | Line 66: | ||
=== Set C: Generative AI (The Digital Twin) === | === Set C: Generative AI (The Digital Twin) === | ||
The final dataset consists of synthetic reconstructions of Set B generated by **Stable Diffusion v1.5**. We utilized an **Image-to-Image (Img2Img)** pipeline to ensure the AI respected the broad geometry of the original scene while hallucinating the fine-level texture and lighting details. | The final dataset consists of synthetic reconstructions of Set B generated by **Stable Diffusion v1.5**. We utilized an **Image-to-Image (Img2Img)** pipeline to ensure the AI respected the broad geometry of the original scene while hallucinating the fine-level texture and lighting details. | ||
| Line 71: | Line 73: | ||
=== Dataset Comparison === | === Dataset Comparison === | ||
[[File:scene_sample_comparison.png|thumb| | [[File:scene_sample_comparison.png|thumb|right|400px|Figure 7: Comparison of a sample scene across the three datasets. Left: The ISETCam simulation (Set B) showing distinct optical starbursts. Center: The AI generation (Set C) showing smoothed light sources. Right: The difference map, highlighting where the AI failed to replicate the physical optics.]] | ||
The resulting dataset provides 243 aligned triplets. By subtracting the AI generation (Set C) from the camera simulation (Set B), we can visualize the "radiometric gap." As shown in Figure 7, differences are most pronounced around high-intensity light sources, where the AI fails to replicate the complex diffraction spikes created by the triangular aperture, defaulting instead to generic Gaussian blooms. | The resulting dataset provides 243 aligned triplets. By subtracting the AI generation (Set C) from the camera simulation (Set B), we can visualize the "radiometric gap." As shown in Figure 7, differences are most pronounced around high-intensity light sources, where the AI fails to replicate the complex diffraction spikes created by the triangular aperture, defaulting instead to generic Gaussian blooms. | ||
Revision as of 01:48, 14 December 2025
Introduction
The Blur Between Real and Artificial

In 2023, the Sony World Photography Awards awarded a prize in the Creative category to an image titled "The Electrician". The image presented a haunting, black-and-white portrait of two women. However, the artist, Boris Eldagsen, refused the award, revealing that the work was not a photograph at all, but a synthetic creation generated by AI. This event marked a significant turning point: synthetic imagery had crossed a threshold of fidelity where even expert judges could no longer distinguish images formed by photons from artificially generated pixels.[1] This blurring of reality is compounded by the unprecedented scale of production. Recent reports indicate that in just 1.5 years, generative AI models have produced as many images as traditional photography produced in its first 150 years (approximately 15 billion images).[2] We are rapidly entering an era where a significant portion of digital visual data is artificially generated, rather than captured on a physical image sensing system.

Research Question and Project Goals
For the general public, the inability to distinguish real from synthetic raises concerns about misinformation, as well as a loss of intrinsic human creativity. However, for Image Systems Engineering, artificially generated images also provoke a serious question of engineering safety. Developers of autonomous systems, such as autonomous vehicles (AVs), are increasingly turning to generative AI to create training data for perception systems to make up for the scarcity of expensive real-world data, especially edge-case datasets, such as car accidents and severe weather. Although these digital twins may appear realistic to human observers, they often fail to behave like real sensors, lacking the correct noise, spectral, or optical properties. Thus, artificially generated data introduces a high-risk domain gap where autonomous systems are trained on hallucinations rather than physics. This poses a critical question: Can we discern the real from the artificial?
This project conducts a forensic analysis to determine whether AI-generated images can be distinguished from camera-simulated images based on radiometric statistics. In this investigation, we ignore the semantic content (whether the car looks like a car) and focus entirely on the physical statistics (how the image was formed from the radiance source). By comparing a physical radiance dataset (ISET3D physically based ray tracing[3]) and camera photograph dataset (ISETCam[4]) against an artificially generated image dataset (Stable Diffusion v1.5[5]), we aim to quantify the statistical fingerprints of the AI across four domains:
- Spatial Statistics: Texture and frequency distribution.
- Photometric Statistics: Signal-dependent noise response.
- Spectral Statistics: Inter-channel color correlation.
- Optical Statistics: Point spread function (PSF) and diffraction.
Background and Related Work
The Proliferation of Data and Machine Learning Models

To understand the challenge of distinguishing real from artificial imagery, one must first understand the mechanisms that enable modern AI generation and the forensic tools previously developed to detect them. The recent explosion in synthetic imagery is driven by two converging factors: the aggregation of massive image datasets and the development of latent diffusion models.
First, the capabilities of modern generative models are directly tied to the scale of their training data. In the last decade, the internet has become a vast repository of visual information, allowing researchers to scrape billions of image-text pairs. Foundational models like Stable Diffusion were trained on subsets of LAION-5B (Large-scale Artificial Intelligence Open Network), a dataset containing over 5.85 billion clip-filtered image-text pairs.[6] Similarly, proprietary models like Adobe Firefly rely on massive libraries of professional stock photography (estimated at 300+ million images), while OpenAI’s DALL-E 3 is estimated to use hundreds of millions of licensed and public images.[2][7] This scale allows models to learn a statistical approximation of reality by ingesting virtually every visual concept captured in the history of digital photography.

Second, the availability of this massive data was unlocked by a fundamental shift in model architecture. While early generative models struggled with high-resolution synthesis, Latent Diffusion Models (LDMs) represented a breakthrough in efficiency and fidelity. The specific model analyzed in this study, Stable Diffusion v1.5, is based on the LDM architecture proposed by Rombach et al. (2022).[5] Unlike pixel-based diffusion, which is computationally expensive, LDMs operate in a compressed latent space. The process involves two main components: first, an autoencoder compresses the input image into a lower-dimensional latent representation, reducing the computational complexity while preserving semantic details; second, in the latent space, the model is trained to reverse a gradual noising process. Gaussian noise is iteratively added to the latent vector (Forward Diffusion), and a neural network (typically a time-conditional U-Net) is trained to predict and remove this noise (Reverse Diffusion) to reconstruct the clean latent vector. The U-Net uses cross-attention layers to condition the generation on text prompts (for example, "a car on a dark road"). Once the denoising is complete, the decoder reconstructs the final pixel-space image. Because the model reconstructs the image based on learned statistical patterns rather than physical light transport, it risks hallucinating textures that look plausible to the human eye but lack physical integrity.
Past Work in Image Forensics
The field of image forensics has a long history of detecting manipulated imagery, traditionally focusing on manual edits (photoshop) and, more recently, deepfakes. While effective in their respective domains, these methods rely on assumptions that may not hold for modern generative models:
Geometric Forensics: Pioneering work by Hany Farid and colleagues focused on physical inconsistencies in manually manipulated images. Their methods analyzed geometric constraints, such as the consistency of cast shadows and lighting directions.[8] For example, if a person was inserted into a photo, the shadow they cast often failed to converge on the same light source as other objects in the scene. While effective for cheap fakes, these geometric checks are often semantic and difficult to automate at scale for subtle synthetic generations.
Frequency and Pixel Statistics: With the rise of Generative Adversarial Networks (GANs), researchers pivoted to detecting invisible artifacts. Frequency analysis revealed that GANs often leave unnatural high-frequency patterns caused by upsampling layers in the Fourier domain.[9] More recently, methods like Diffusion Reconstruction Error (DIRE) attempt to detect diffusion-generated images by checking if an image can be easily reconstructed by a pre-trained diffusion model, considering that real images tend to have higher reconstruction errors than synthetic ones.[10]
The Radiometric Gap: While existing methods detect semantic errors (shadows) or digital artifacts (frequency peaks), they rarely interrogate the radiometric formation of the image. Real photographs are created from specific physical processes: photons hitting a sensor, shot noise governed by Poisson statistics, and diffraction limited by apertures. Generative AI, however, is born from denoising a latent vector. This project fills the gap by proposing radiometric forensics: detecting AI not by what it looks like, but by how physically plausible its light statistics are compared to a camera simulation.
Image Generation Methodology

To isolate the statistical differences between physical light transport and generative hallucination, we constructed a controlled dataset of 243 unique night-driving scenes. The dataset is divided into three aligned sets: Physical Ground Truth (Set A), Camera Simulation (Set B), and Generative AI (Set C).
Set A: Physical Radiance (Ground Truth)
The foundation of the dataset is a collection of high-dynamic-range (HDR) spectral radiance maps derived from the **ISET3D** driving scene database.[3] Unlike standard RGB images, these scenes contain the full spectral energy distribution of light at every pixel, modeled via physically based ray tracing (PBRT).
For each of the 243 scenes, four independent lighting components were extracted: headlights, streetlights, other environmental lights, and skylight. To create a realistic night-driving environment, we combined these components using a specific weighting vector $[0.23, 0.012, 0.01, 0.005]$, prioritizing vehicle headlights while maintaining low-light ambient conditions. This resulting spectral radiance map ($L_{total}$) serves as the physical ground truth, representing the raw photons arriving at the camera lens before any optical or sensor degradation.
Set B: Camera Simulation (The Baseline)

To generate photorealistic baselines, we passed the spectral radiance from Set A through a virtual camera model using **ISETCam**.[4] This stage introduces the physical imperfections inherent to optical imaging systems.
- Optics: We simulated a 4mm focal length lens with a wide **f/2.0 aperture**. Crucially, the aperture was modeled with a **triangular shape** (3 sides) rather than a perfect circle. This introduces a distinct 6-point starburst diffraction pattern on bright sources (headlights), serving as a known optical "fingerprint." We also modeled lens scattering (glare) by introducing randomized dust and scratches into the aperture function.
- Sensor: The optical image was captured by a simulated **Bayer RGGB sensor** with a pixel size of $3.0\mu m$.
- Processing: The raw sensor data underwent a standard Image Signal Processor (ISP) pipeline, including demosaicing and global tone mapping $(x / (x + 0.2))$ to mimic the non-linear response of consumer photography.
Set C: Generative AI (The Digital Twin)
The final dataset consists of synthetic reconstructions of Set B generated by **Stable Diffusion v1.5**. We utilized an **Image-to-Image (Img2Img)** pipeline to ensure the AI respected the broad geometry of the original scene while hallucinating the fine-level texture and lighting details.
The model was conditioned with the text prompt: "photorealistic night driving scene, city street, car headlights, streetlights, highly detailed, 8k, cinematic lighting" and a negative prompt to suppress artifacts (e.g., "blur, noise, grain, cartoon").
We used a **Denoising Strength of 0.5**, a critical parameter that allows the model to modify approximately 50% of the pixel statistics while retaining the structural layout of the cars and roads. The generation was performed at $512 \times 512$ resolution with a Guidance Scale of 7.5, creating a "digital twin" that appears semantically identical to the camera image but is radiometrically synthetic.
Dataset Comparison

The resulting dataset provides 243 aligned triplets. By subtracting the AI generation (Set C) from the camera simulation (Set B), we can visualize the "radiometric gap." As shown in Figure 7, differences are most pronounced around high-intensity light sources, where the AI fails to replicate the complex diffraction spikes created by the triangular aperture, defaulting instead to generic Gaussian blooms.