I-010Color Filter Array (CFA) Pattern Detection

Sensor Forensicsimage2005

Searches for structural Bayer Color Filter Array demosaicing artifacts intrinsically left by real camera sensors. This algorithmic fingerprint is a dominant indicator of real photography captured through physical optics and silicon, and is natively absent in images generated entirely by AI or heavily synthesized from scratch.

Bayer CFA Demosaicing Trace & Interpolation Matrix Verification
The algorithm calculates the 2D periodic autocorrelation of the image's color channels (primarily the green channel). In actual digital cameras, light passes through a physical Bayer filter array, meaning only one absolute color value is captured per sensor pixel. The missing colors are mathematically interpolated ('demosaiced'), leaving a distinct, measurable 2x2 periodic interpolation trace across the entire image. Because Generative AI models synthesize fully-formed RGB pixels directly from latent mathematical space without simulating a physical sensor grid, they completely lack this fundamental hardware fingerprint.
Analysis: 2D spectral autocorrelation of RGB channels, Expected Target: 2x2 periodic variance matrix, Tolerance Matrix: Probability mapping
High (80-92%) - Exceptionally strong baseline for detecting authentic hardware origin, though subject to degradation through extreme social media compression.
• Deeply anchored in immutable, foundational physical optics and sensor manufacturing physics.
• Excessively computationally and fundamentally difficult for AI generators to purposefully simulate or accurately forge.

• Produces an incredibly low false positive rate when analyzing genuine, raw or softly-processed camera images.

• Can reliably identify exactly where a forgery occurred in locally spliced/photoshopped images by mapping CFA discontinuity.
• Only confirms the binary presence or absence of generic CFA traces; it cannot identify the exact specific camera model.
• Modern smartphone computational photography (Night mode, HDR) applies destructive multi-frame blending that inadvertently masks the pristine CFA pattern.

• Massive geometric resizing, heavy downsampling, or brutal JPEG compression permanently obliterates these delicate micro-traces.

• Produces invalid results on images captured with specialized sensors that lack traditional Bayer arrays (e.g., Foveon X3 or native Leica monochromes).
Verifying authentic camera hardware origin, exposing pure AI-generated scenes, and detecting local image splicing where the organic CFA pattern continuity is abruptly broken.