I-223Anisotropic Diffusion Trace

Pixel Analysisimage2014

Detects residuals of Perona-Malik anisotropic diffusion filtering, an edge-preserving smoothing technique that AI pipelines frequently employ to reduce visible noise while retaining sharp boundaries. Real camera noise has isotropic (direction-independent) characteristics, whereas anisotropic diffusion leaves direction-dependent smoothing traces.

Perona-Malik Diffusion Residual Analysis
The Perona-Malik model smooths an image by solving a partial differential equation (PDE): ∂I/∂t = div(c(|∇I|)·∇I), where the diffusion coefficient c() decreases near strong gradients (edges) to preserve them while aggressively smoothing flat regions. This creates a telltale forensic signature: unnaturally uniform flat regions juxtaposed with artificially preserved edge profiles.The detector estimates the local diffusion coefficient map by computing the ratio of second-order derivatives (Laplacian) to first-order gradient magnitudes across the image. In naturally captured photos, this ratio follows a smooth, monotonic decay. In diffusion-processed images, the ratio exhibits sharp discontinuities at edges — the 'diffusion boundary artifact.' The algorithm also measures the noise variance in homogeneous regions; anisotropic diffusion reduces noise variance below the camera's native sensor floor, which is physically impossible for authentic captures.
PDE model: Perona-Malik (Type 1: c(|∇I|) = exp(-(|∇I|/κ)²))
Gradient threshold κ: estimated via noise-level estimation

Diffusion iteration estimate: 5–50 steps

Laplacian kernel: 3×3 discrete approximation

Noise floor reference: sensor-specific or estimated from image metadata
Moderate — 68-80% accuracy. Strongest on images where diffusion was applied with high iteration counts (>20 steps); weaker on subtly processed images.
• Targets a fundamental PDE-based processing operation with well-defined mathematical properties
• The 'noise floor violation' signal is particularly robust — diffusion pushes noise below physically possible sensor levels

• Can estimate the approximate number of diffusion iterations applied

• Edge-boundary artifacts are resistant to subsequent JPEG compression
• Modern non-local means denoising (NLM) and BM3D produce different artifacts not captured by this detector
• Some high-end cameras apply internal anisotropic diffusion in firmware, causing false positives

• Very few diffusion iterations (1–3) leave traces below detection threshold

• Cannot distinguish diffusion applied for legitimate noise reduction vs. forensic concealment
Detecting AI post-processing pipelines that use anisotropic diffusion to clean up generator artifacts, identifying manipulated photographs where diffusion was applied to smooth splicing boundaries, and forensic differentiation between camera denoising and post-capture smoothing.