I-205Structural Tensor Analysis

Pixel Analysisimage2004

Computes structure tensor fields for local orientation and anisotropy analysis — AI-generated images often lack natural structural coherence.

Structure Tensor Field Analysis
This method computes the structure tensor (second moment matrix) at each pixel to characterize local orientation, anisotropy, and coherence for image forensics:\n\n1. Structure Tensor Computation: At each pixel (x,y), the structure tensor J is a 2×2 symmetric matrix computed from smoothed outer products of image gradients: J = Gσ * [Ix², IxIy; IxIy, Iy²], where Ix and Iy are partial derivatives and Gσ is a Gaussian smoothing kernel with integration scale σ. The eigenvalues λ₁ ≥ λ₂ of J characterize the local image structure: isotropic regions (λ₁ ≈ λ₂ ≈ 0) indicate uniform areas, edges (λ₁ >> λ₂ ≈ 0) indicate strong directional structure, and corners/junctions (λ₁ ≈ λ₂ >> 0) indicate multi-directional structure.\n\n2. Coherence and Anisotropy Mapping: The local coherence c = (λ₁ − λ₂)/(λ₁ + λ₂) measures the degree of structural orientation, ranging from 0 (isotropic) to 1 (perfectly oriented). The local orientation θ = 0.5 × arctan(2IxIy / (Ix² − Iy²)) gives the dominant edge direction. These fields form a coherence map and orientation map. In natural photographs, coherence and orientation follow scene-dependent patterns that are physically consistent across regions. AI-generated images often show coherence anomalies — regions where texture orientation changes abruptly without physical reason.\n\n3. Multi-Scale Structure Tensor: The structure tensor is computed at multiple integration scales σ ∈ {1, 2, 4, 8, 16} to capture structural information at different spatial extents. The scale at which coherence is maximized (the characteristic coherence scale) provides information about texture granularity. Natural photographs show content-dependent characteristic scales. AI-generated images may show: (a) unnaturally uniform characteristic scales across different textures, (b) missing fine-scale coherence structure, or (c) coherence patterns that don't correlate with visual content.\n\n4. Coherence Field Consistency for Forgery Detection: For manipulation detection, the method analyzes the smoothness and consistency of the coherence field across the image. In an unmanipulated photograph, the coherence field transitions smoothly between regions. Spliced regions or AI-inpainted areas create discontinuities in the coherence field at their boundaries. The method detects these discontinuities by computing the gradient of the coherence map |∇c| and identifying edges in the coherence field that don't correspond to content edges in the image.
Gradient operator: Scharr (3×3)\nIntegration scale σ: {1, 2, 4, 8, 16} pixels\nCoherence range: 0 (isotropic) to 1 (anisotropic)\nOrientation resolution: continuous (0° to 180°)\nCoherence gradient threshold: |∇c| > 0.1\nBlock size for statistics: 32×32 pixels\nMinimum image size: 64×64 pixels
78–86% accuracy for AI-generated image detection using structure tensor features. Coherence field inconsistency detects splicing with F1-score of 0.82. Multi-scale coherence analysis achieves AUC of 0.85 for GAN-generated face detection. Orientation field analysis adds 3–5% accuracy improvement. Performance depends on image content complexity.
• Structure tensor provides mathematically rigorous characterization of local structure\n• Coherence and orientation are physically meaningful features\n• Multi-scale analysis captures structures at different spatial extents\n• Coherence field analysis is robust to global illumination changes\n• Efficient computation using separable Gaussian filters
• Isotropic regions (uniform areas, noise) produce zero coherence — no discriminative information\n• Texture with random orientation naturally produces low coherence\n• AI generators with attention mechanisms produce more coherent structure fields\n• JPEG compression creates artificial coherence at block boundaries\n• Integration scale choice affects sensitivity — too large loses detail, too small is noisy
Detecting AI-generated images through structural coherence anomalies. Localizing spliced regions with inconsistent orientation/coherence fields. Texture analysis for distinguishing natural from synthetic materials. Flow and orientation field analysis for image authenticity verification.