I-251RAW Conversion Trace

Sensor Forensicsimage2015

Detects traces of RAW-to-JPEG conversion pipeline — authentic photos carry ISP processing signatures absent in AI images.

RAW Pipeline Detection
This method detects signature traces of the RAW-to-JPEG image signal processing (ISP) pipeline to distinguish authentic photographs from AI-generated content:1. Demosaicing Artifact Detection: Digital cameras capture RAW images through a Color Filter Array (CFA), typically the Bayer pattern (RGGB). The ISP interpolates missing color values through demosaicing, leaving characteristic inter-pixel correlations. The method analyzes the frequency spectrum for demosaicing artifacts: bilinear interpolation produces peaks at (π, π) in the green channel spectra; adaptive algorithms (AHD, VNG, LMMSE) produce subtler but detectable correlation patterns. The presence and type of demosaicing trace identifies the camera's ISP and confirms photographic origin.2. Gamma Correction and Tone Curve Detection: Camera ISPs apply a non-linear tone curve to convert linear RAW sensor values to perceptually uniform output. The method estimates the applied gamma/tone curve by analyzing the distribution of pixel intensities. Standard sRGB gamma (γ ≈ 2.2) produces a characteristic histogram shape. The method detects deviations from standard gamma curves and identifies manufacturer-specific tone curves (Canon's highlight handling, Nikon's Active D-Lighting, etc.).3. White Balance and Color Matrix Traces: The ISP applies a 3×3 color correction matrix (CCM) and white balance gains to map sensor-specific spectral responses to standard color spaces (sRGB, Adobe RGB). The method estimates the applied CCM from inter-channel relationships and compares against known camera CCMs. Each camera model has a characteristic CCM determined by its sensor's spectral sensitivity and IR-cut filter. AI-generated images lack these camera-specific color transforms.4. Noise Reduction and Sharpening Signatures: Camera ISPs apply noise reduction (typically in the chroma domain) and sharpening (typically unsharp mask or deconvolution). The method detects these operations by analyzing: (a) the ratio of luminance noise to chrominance noise (cameras reduce chroma noise more aggressively), (b) the presence of sharpening halos at high-contrast edges, and (c) the correlation between noise level and ISO setting. AI-generated images either lack these ISP-specific processing signatures or show inconsistent noise/sharpening patterns.
CFA pattern: Bayer RGGB (also supports RGBW, X-Trans)
Demosaicing detection: frequency analysis at (π, π)

Gamma estimation: histogram-based inverse mapping

Color matrix comparison: database of 300+ camera CCMs

Noise analysis: luminance/chrominance ratio

Sharpening halo detection: 2nd derivative at edges

Minimum image size: 256×256 pixels
86–93% accuracy for distinguishing camera-processed from AI-generated images. Demosaicing trace detection achieves 91% accuracy for CFA confirmation. Camera ISP identification (matching to manufacturer): 84% accuracy. Combined ISP signature analysis achieves AUC of 0.94. Performance is best on minimally post-processed JPEG images.
• ISP processing creates multiple independent detectable signatures
• Demosaicing traces are extremely difficult for AI generators to replicate

• Camera-specific CCM and tone curves provide manufacturer identification

• Multiple ISP stage analysis provides robust authentication

• Works on standard JPEG images without requiring the original RAW file
• Heavy post-processing (Photoshop, Lightroom) can alter or destroy ISP traces
• Computational photography (HDR+, Night mode) uses non-standard ISP pipelines

• Some AI generators are trained to mimic ISP artifacts (though imperfectly)

• Image resizing disrupts demosaicing frequency patterns

• RAW converters (DxO, Capture One) replace the camera's native ISP traces
Verifying that images have undergone authentic camera ISP processing. Detecting AI-generated images lacking RAW conversion signatures. Identifying the camera pipeline from ISP processing traces. Authenticating photographs through demosaicing and tone curve analysis.