I-232Edge Coherence Mapping
Maps edge coherence fields to detect inconsistent boundary structures typical of AI-generated content.
Algorithm / Model
Edge Coherence Field Analysis
How it works
This method analyzes the structural coherence of edges throughout an image to detect AI-generated or manipulated content:1. Edge Detection & Orientation Field: Edges are extracted using the Canny detector (σ = 1.5, dual thresholds) and the gradient orientation θ(x,y) = atan2(∂I/∂y, ∂I/∂x) is computed at each edge pixel. The result is a dense orientation field that captures how edge directions vary across the image.2. Coherence Tensor Computation: For each 8×8 block, a 2×2 structure tensor J = [Σcos²θ, Σcosθsinθ; Σcosθsinθ, Σsin²θ] is computed from edge orientations. The eigenvalues λ₁ ≥ λ₂ of J determine the local coherence: C = (λ₁ − λ₂)/(λ₁ + λ₂). Values near 1 indicate highly coherent (aligned) edges, while values near 0 indicate isotropic or incoherent edges.3. Coherence Consistency Analysis: In natural photographs, edge coherence follows predictable patterns — object boundaries are highly coherent (C > 0.7), while textured regions show moderate coherence (0.3–0.6). AI-generated images often show two characteristic anomalies: (a) unnaturally uniform coherence across large regions, and (b) sudden coherence drops at semantic boundaries where the generator transitions between objects.4. Boundary Artifact Detection: The method computes the gradient of the coherence map ∇C(x,y) and identifies anomalous boundaries where |∇C| exceeds 3σ of the global coherence gradient distribution. In authentic images, coherence transitions are smooth (following physical depth and lighting changes). AI-generated images show 2–5× more sharp coherence transitions, particularly around generated object boundaries where edge structure becomes disorganized.
Technical Parameters
Edge detection: Canny with σ = 1.5
Block size: 8×8 pixels for structure tensor
Coherence threshold: 0.5 (coherent vs. incoherent boundary)
Gradient anomaly threshold: 3σ
Minimum edge density: 5% of pixels per block
Minimum image size: 256×256 pixels
Block size: 8×8 pixels for structure tensor
Coherence threshold: 0.5 (coherent vs. incoherent boundary)
Gradient anomaly threshold: 3σ
Minimum edge density: 5% of pixels per block
Minimum image size: 256×256 pixels
Accuracy & Reliability
79–87% detection accuracy for AI-generated images. Edge coherence anomaly detection achieves 83% on GAN-generated faces (StyleGAN2, StyleGAN3). Performance reaches 85% when combined with frequency-domain analysis. False positive rate of 8% on heavily edited authentic photographs.
Strengths
• Captures structural properties of edges that AI generators struggle to reproduce consistently
• Structure tensor computation is well-established and computationally efficient
• Provides spatial localization of suspicious regions
• Effective on both GAN-generated and diffusion-generated images
• Complement to frequency-domain and noise-based forensic methods
• Structure tensor computation is well-established and computationally efficient
• Provides spatial localization of suspicious regions
• Effective on both GAN-generated and diffusion-generated images
• Complement to frequency-domain and noise-based forensic methods
Limitations
• Images with motion blur naturally have low edge coherence, causing false positives
• Out-of-focus regions produce low coherence mimicking generation artifacts
• Heavy post-processing (artistic filters, style transfer) disrupts natural edge coherence patterns
• Very high-resolution AI images (>2048px) may show more natural-looking coherence
• Requires sufficient edge content — images of clear skies, smooth surfaces yield unreliable results
• Out-of-focus regions produce low coherence mimicking generation artifacts
• Heavy post-processing (artistic filters, style transfer) disrupts natural edge coherence patterns
• Very high-resolution AI images (>2048px) may show more natural-looking coherence
• Requires sufficient edge content — images of clear skies, smooth surfaces yield unreliable results
Use Case
Detecting AI-generated images by identifying unnatural edge coherence patterns. Localizing spliced regions where edge structure is inconsistent with the surrounding image. Analyzing composite images where different sources create mismatched edge coherence fields.