I-135Hue Consistency
Analyzes hue consistency across regions to detect synthetic artifacts, anomalies, and characteristic signatures of generative AI models.
Algorithm / Model
Hue Consistency — Pixel-Level Spatial Analysis
How it works
This method analyzes hue consistency to detect image manipulation and AI generation:1. Color Space Conversion: The image is converted from RGB to HSV (Hue-Saturation-Value) color space, isolating the hue channel. The hue channel represents the dominant wavelength of light independent of brightness and saturation, following Popescu & Farid's (2005) approach to color analysis.2. Regional Hue Analysis: The image is divided into overlapping regions and per-region hue statistics are computed — mean hue, hue variance, and circular hue histogram (since hue is angular). Natural images show smooth hue transitions between adjacent regions following physical illumination constraints.3. Hue Gradient Computation: The spatial gradient of the hue channel is computed. In authentic images, hue gradients correlate with material boundaries and illumination changes. AI-generated images may show hue inconsistencies — abrupt hue shifts not explained by scene geometry or lighting, especially at object boundaries.4. Cross-Channel Hue Correlation: The relationship between hue and luminance/saturation is analyzed. Natural scenes follow physical constraints (e.g., sky hue depends on viewing angle, skin hue varies with illumination). AI models may produce hue-luminance relationships that violate these physical priors.5. Hue Coherence Scoring: A coherence score is computed measuring the overall consistency of hue across the image. Low coherence (high hue variation not explained by scene content) indicates potential manipulation. The score reflects deviations from the expected hue distribution for the detected scene type.
Technical Parameters
Analysis type: pixel
Media: image
Input: Raw pixel data / image file
Output: Confidence score (0-100)
Processing: Client-side Canvas API
Color spaces: RGB, Grayscale as applicable
Media: image
Input: Raw pixel data / image file
Output: Confidence score (0-100)
Processing: Client-side Canvas API
Color spaces: RGB, Grayscale as applicable
Accuracy & Reliability
Moderate to High — 70-90% standalone accuracy. Performance is highest on uncompressed images and may decrease with heavy JPEG compression or social media re-encoding.
Strengths
• Fast client-side processing using Canvas API
• Effective at detecting specific AI generation artifacts
• Works with common image formats (JPEG, PNG, WebP)
• Can be combined with complementary analysis methods
• Based on established image forensics research
• Effective at detecting specific AI generation artifacts
• Works with common image formats (JPEG, PNG, WebP)
• Can be combined with complementary analysis methods
• Based on established image forensics research
Limitations
• Performance may vary with image compression level
• Social media re-encoding can affect accuracy
• Best used in combination with other forensic methods
• May produce false positives on heavily processed authentic images
• Effectiveness depends on the AI generation model used
• Social media re-encoding can affect accuracy
• Best used in combination with other forensic methods
• May produce false positives on heavily processed authentic images
• Effectiveness depends on the AI generation model used
Use Case
Detection of AI-generated or manipulated images through hue consistency analysis. This method identifies patterns and artifacts that are characteristic of AI generation, contributing to a comprehensive image forensic analysis.