I-039Autocorrelation Regularity
Detects the presence of hidden periodic structures in pixel data that betray computational resampling or AI upsampling. When a real camera captures an image, the raw pixel values are essentially random within textured areas—each pixel is an independent sample of light. However, when an image is mathematically resampled (resized, rotated) or when an AI upscaler synthesizes new pixels through interpolation, it introduces predictable, repeating correlations between neighboring pixels at fixed intervals. This autocorrelation fingerprint is invisible to the human eye but is a mathematically undeniable signal of computational manipulation.
Algorithm / Model
Spatial Autocorrelation Peak Detection via Lag Analysis
How it works
The algorithm sweeps through the image in overlapping 128×128 pixel blocks. For each block, it computes the normalized autocorrelation function (ACF) along both horizontal and vertical axes at multiple lag distances (1 to 32 pixels). In a natural, untampered image, the ACF decays monotonically as lag increases—distant pixels become steadily less correlated. However, resampled or AI-upscaled images exhibit characteristic periodic peaks in the ACF at regular intervals (e.g., every 2nd or 3rd lag), corresponding to the interpolation kernel's footprint. The algorithm measures the height and periodicity of these peaks across all blocks and flags images where statistically significant periodic autocorrelation is detected.
Technical Parameters
Analysis: Normalized Autocorrelation Function (ACF) over sliding blocks
Metrics: Peak Height at Periodic Lags, Periodicity Strength Index
Output: 0-100 Resampling Artifact Detection Score
Metrics: Peak Height at Periodic Lags, Periodicity Strength Index
Output: 0-100 Resampling Artifact Detection Score
Accuracy & Reliability
Moderate — 65-78% standalone. Best used in combination with spectral analysis methods for a combined accuracy boost to 80-88%.
Strengths
• Detects resampling artifacts that are completely invisible to the human eye, operating at a purely mathematical level.
• Computationally lightweight—operates on local pixel blocks without neural networks.
• Has a strong mathematical foundation in classical signal processing theory.
• Highly complementary to spectral (Fourier) analysis methods.
• Computationally lightweight—operates on local pixel blocks without neural networks.
• Has a strong mathematical foundation in classical signal processing theory.
• Highly complementary to spectral (Fourier) analysis methods.
Limitations
• Sensitivity drops sharply with heavy JPEG compression, which introduces its own periodic artifacts that mask resampling signatures.
• Natural textures with inherent periodicity (brick walls, fabric weaves, fences) can produce false positive peaks.
• Requires sufficient image size; small images or thumbnails may not contain enough data for reliable detection.
• Some modern AI models generate images natively at the target resolution, bypassing resampling entirely.
• Natural textures with inherent periodicity (brick walls, fabric weaves, fences) can produce false positive peaks.
• Requires sufficient image size; small images or thumbnails may not contain enough data for reliable detection.
• Some modern AI models generate images natively at the target resolution, bypassing resampling entirely.
Use Case
Primary weapon for detecting AI-upscaled images, computationally resized photographs, and images that have been geometrically transformed (rotation, perspective correction) after initial capture.