I-237Geometric Distortion Field

Pixel Analysisimage2016

Estimates local geometric distortion fields to detect warping artifacts from face manipulation and AI generation.

Distortion Field Estimation
This method estimates pixel-level geometric displacement fields to detect local warping caused by face manipulation, AI generation, or image compositing:1. Lens Distortion Model: Real camera lenses introduce radial and tangential distortion following the Brown-Conrady model: x' = x(1 + k₁r² + k₂r⁴) + 2p₁xy + p₂(r² + 2x²). The method estimates the distortion parameters (k₁, k₂, p₁, p₂) from straight-line features in the image using the Hough transform. Authentic photographs show a single consistent distortion field, while composited images show mismatched distortion between pasted regions.2. Local Affine Estimation: The image is divided into overlapping 64×64 blocks, and the local affine transformation (6-parameter model: scale, rotation, shear, translation) is estimated for each block relative to its neighbors using optical flow (Lucas-Kanade). Smooth, globally consistent affine fields indicate authentic perspective. Discontinuities in the affine field — sudden changes in local scale or rotation — indicate manipulation boundaries.3. Face Geometry Verification: For portrait images, facial landmarks (68-point model) are detected and the geometric relationships between landmarks are verified against anthropometric priors. AI-generated faces frequently show subtle geometric distortions: asymmetric eye spacing, non-parallel ear alignment, or inconsistent perspective between face and background.4. Resampling Artifact Detection: Geometric manipulation (scaling, rotation, warping) requires pixel resampling, which leaves periodic artifacts in the second derivative of pixel intensities. The method applies the technique of Popescu & Farid (2005) to detect resampling traces: computing the EM-estimated periodic signal in the p-map (probability of each pixel being interpolated). Peaks in the Fourier transform of the p-map reveal the resampling factor and direction.
Block size: 64×64 pixels for affine estimation
Lens model: Brown-Conrady with k₁, k₂, p₁, p₂

Facial landmarks: 68-point cascade model

Resampling detection: EM algorithm with 50 iterations

Affine discontinuity threshold: >15% change between adjacent blocks

Minimum image size: 256×256 pixels
80–89% detection accuracy for geometrically manipulated images. Resampling detection achieves 92% on scaled/rotated forgeries. Face geometry verification reaches 85% on AI-generated portraits. Lens distortion consistency achieves 88% for composite detection. Performance drops to 74% on images with strong lens distortion correction already applied.
• Resampling detection is highly sensitive to even single scaling/rotation operations
• Lens distortion consistency provides physics-based authentication

• Face geometry verification targets the most common manipulation subject

• Local affine analysis provides precise spatial localization of manipulated regions

• Multiple independent geometric checks provide high confidence results
• Images intentionally shot with wide-angle lenses show extreme distortion that complicates analysis
• Lens distortion correction in modern cameras/smartphones already removes distortion traces

• Very small geometric manipulations (<2% scale) may fall below detection threshold

• AI models with perspective-aware generation may produce geometrically consistent faces

• Ground truth geometric information (camera/lens model) is not always available
Detecting face manipulation (FaceApp, deepfake face swaps) through geometric inconsistencies. Identifying composited images where different source regions have mismatched lens distortion. Verifying AI-generated portraits for geometric plausibility against anthropometric standards.