I-121Linear Pattern Detection
Detects unnatural linear patterns in image
Algorithm / Model
Linear Pattern Detection — Pixel-Level Spatial Analysis
How it works
This method detects linear patterns for image forensic analysis using features inspired by Fridrich & Kodovsky (2012):1. Linear Structure Detection: The image is analyzed for linear structures using directional filtering (oriented Gabor filters, Hough transform, or Radon transform). Lines, edges, and linear patterns are extracted with their orientation, length, and intensity.2. Linear Pattern Regularity Analysis: The regularity and periodicity of linear patterns are analyzed. Natural images contain some linear structures (architecture, horizon lines) but AI-generated images may show: (a) excessive linear regularity, (b) line patterns from the generator's convolutional grid structure, (c) artificial straight lines where natural curves should exist.3. Orientation Histogram: The distribution of linear pattern orientations is computed. Natural scenes show orientation distributions related to scene geometry (many horizontal/vertical lines in architectural scenes, random orientations in natural scenes). AI generators may produce orientation biases from their training data or architecture.4. Subpixel Line Analysis: Lines in authentic images, when analyzed at subpixel precision, show characteristics of the optical imaging process: anti-aliasing from the lens, CFA interpolation effects, edge softening. AI-generated lines may show different subpixel profiles — too sharp, too smooth, or with incorrect anti-aliasing patterns.5. Linear Coherence Scoring: The overall coherence of linear patterns is scored. Anomalies include: linear patterns that don't follow perspective geometry, line segments that terminate abruptly without physical justification, and linear structures with non-physical optical characteristics. The score quantifies deviation from expected linear pattern statistics.
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 linear pattern detection analysis. This method identifies patterns and artifacts that are characteristic of AI generation, contributing to a comprehensive image forensic analysis.