I-148Laplacian Variance
Measures Laplacian variance for blur detection (Tenenbaum, 2004)
Algorithm / Model
Laplacian Variance — Pixel-Level Spatial Analysis
How it works
This method uses Laplacian variance statistics for image forensic analysis:1. Laplacian Computation: The discrete Laplacian operator (second-order derivative) is applied to the image: ∇²I = ∂²I/∂x² + ∂²I/∂y². The Laplacian highlights regions of rapid intensity change — edges, textures, and noise — while suppressing smooth regions.2. Local Variance Analysis: The local variance of the Laplacian response is computed in sliding windows across the image. This captures the spatial distribution of image detail and texture energy. Natural images show Laplacian variance patterns that follow scene content — high variance at textured regions, low variance at smooth surfaces.3. Blur Detection: The overall Laplacian variance is a classic blur metric (higher values indicate sharper images). The method computes per-region Laplacian variance to detect focus inconsistencies. Regions with different Laplacian variance than expected for their scene position (relative to the focal plane) indicate potential compositing.4. AI Generation Signature Detection: AI-generated images often show characteristic Laplacian variance patterns: (a) unnaturally uniform Laplacian variance across regions that should vary (e.g., in-focus vs. out-of-focus), (b) excessive or insufficient high-frequency content in specific regions, (c) Laplacian variance ratios between spatial scales that don't match natural image statistics.5. Comparative Scoring: The overall Laplacian variance statistics are compared against expected values for the image type and content. Deviations from natural Laplacian variance distributions — measured by moments, kurtosis, and scale ratios — contribute to the forensic score.
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 laplacian variance analysis. This method identifies patterns and artifacts that are characteristic of AI generation, contributing to a comprehensive image forensic analysis.