I-254Texture Regularity Index

Statistical Analysisimage2015

Computes texture regularity indices to detect unnaturally repetitive or over-regular textures generated by AI models.

Texture Regularity Scoring
This method quantifies the regularity and repetitiveness of image textures to distinguish natural from AI-generated content:1. Local Binary Pattern (LBP) Regularity: The method computes multi-scale Local Binary Patterns (LBP) across the image using radii r ∈ {1, 2, 4} with 8, 16, and 24 neighbors respectively (Ojala et al., 2002). For each scale, the LBP histogram is computed over local 64×64 blocks. A regularity index is derived from the entropy of the LBP histogram: R_LBP = 1 − H(LBP)/H_max, where H_max is the maximum possible entropy. Natural textures show moderate regularity (R_LBP ∈ [0.2, 0.6]), while AI-generated textures tend toward extremes — either over-regular (R_LBP > 0.7) from tiling artifacts or under-regular (R_LBP < 0.1) from random noise masquerading as texture.2. Autocorrelation Periodicity Analysis: The 2D autocorrelation function of texture patches reveals periodic structure. Natural textures (wood grain, fabric weave) show content-dependent periodicity that varies across the image. AI-synthesized textures often show: (a) suspiciously perfect periodicity with identical repeat units, (b) periodicity that abruptly changes at patch boundaries, or (c) absence of expected periodicity in structured materials. The method measures the peak-to-sidelobe ratio (PSR) of the autocorrelation and the consistency of periodicity across regions.3. Gray-Level Co-Occurrence Matrix (GLCM) Feature Consistency: GLCM features — contrast, correlation, energy, and homogeneity (Haralick et al., 1973) — are computed at four orientations (0°, 45°, 90°, 135°) and multiple displacements d ∈ {1, 2, 4, 8}. In natural photographs, GLCM features vary smoothly across regions and reflect physical surface properties. The method computes a regularity score based on the coefficient of variation of GLCM features: unnaturally uniform features across an image suggest AI generation, while unnaturally high variance within a single texture region suggests texture synthesis artifacts.4. Scale-Dependent Texture Complexity: Natural textures exhibit scale-dependent complexity following power-law relationships — coarser scales show simpler structure, finer scales show proportionally more detail. The method measures texture complexity (Kolmogorov complexity approximated by GZIP compression ratio) at multiple scales obtained by Gaussian pyramid decomposition. The exponent of the complexity-vs-scale power law is compared against ranges observed in natural textures. AI-generated textures frequently violate this scaling law by either maintaining constant complexity across scales or showing non-monotonic complexity changes.
LBP radii: {1, 2, 4} pixels
LBP neighbors: {8, 16, 24}

Block size: 64×64 pixels

GLCM orientations: {0°, 45°, 90°, 135°}

GLCM displacements: {1, 2, 4, 8} pixels

GLCM quantization levels: 32

Autocorrelation PSR threshold: > 8 for periodic textures

Gaussian pyramid levels: 4

Minimum image size: 128×128 pixels
76–84% accuracy distinguishing natural from AI-generated textures. GLCM consistency analysis achieves AUC of 0.83 for GAN-generated image detection. LBP regularity index is most effective for detecting tiling artifacts (F1 = 0.85). Scale-dependent complexity analysis adds 4–6% accuracy improvement when combined with LBP.
• Multi-scale LBP captures texture regularities at different spatial extents
• GLCM features are well-established and interpretable

• Autocorrelation analysis detects periodic artifacts invisible to human observers

• Scale-dependent analysis reveals violations of natural scaling laws

• Computational efficiency — all features computed in single pass per scale
• Highly regular natural textures (brick walls, tile floors) can produce false positives
• AI models with texture-aware discriminators produce more realistic regularity

• Small image patches may not contain enough texture samples for reliable statistics

• Compression artifacts can alter texture regularity measurements

• Different texture types require different regularity baselines — no universal threshold
Detecting AI-generated images with synthetic textures. Identifying texture transfer artifacts in neural style transfer. Forensic analysis of image regions with suspiciously regular patterns. Quality assessment of AI texture synthesis models.