V-190Face Edge Frequency Analysis

Frequency Analysisvideo2021

Analyzes frequency content along face boundary edges for blending artifact detection — face swap deepfakes create frequency discontinuities at the blending boundary.

Face Boundary Frequency Analysis
This method detects face manipulation by analyzing the frequency spectrum along the boundary where a manipulated face region meets the original background:\n\n1. Face Boundary Extraction: The method detects the face region using a face segmentation network and extracts the boundary contour — the curve separating the inner face (potentially manipulated) from the outer region (neck, hair, background). Narrow strips (16 pixels wide) are sampled along both sides of this boundary. In authentic images, there should be no spectral discontinuity across the face boundary — the frequency content transitions smoothly from face to background. Face swap deepfakes introduce a blending boundary where the pasted face meets the original image.\n\n2. Cross-Boundary Spectral Analysis: For each sample strip perpendicular to the boundary, the method computes the 1D power spectrum on both the inner (face) and outer (background) sides. In authentic images, the spectral characteristics (energy distribution, spectral slope) are continuous across the boundary. Deepfake face swaps create spectral discontinuities because: (a) the face was generated at a different effective resolution than the background, (b) blending algorithms (Poisson blending, alpha blending) alter high-frequency content at the boundary, (c) post-processing (Gaussian blur applied to the blending mask) selectively attenuates high frequencies near the edge. The method quantifies the spectral discontinuity as the L2 distance between inner and outer spectral profiles.\n\n3. Blending Mask Detection via Frequency Attenuation: Deepfake face blending typically uses a soft mask — a Gaussian-smoothed binary mask that defines how the face region is composited with the background (Li & Lyu, 2019). This soft mask causes characteristic frequency attenuation: high-frequency details are suppressed near the blending boundary while low frequencies are unaffected. The method detects this by computing the ratio of high-frequency energy (> Nyquist/4) to low-frequency energy (< Nyquist/4) as a function of distance from the boundary. A dip in this ratio near the boundary indicates the presence of a blending mask.\n\n4. Temporal Frequency Boundary Stability: In video, the face boundary frequency profile should be consistent across frames if the face is authentic (same person, same camera, continuous footage). The method tracks the spectral discontinuity metric across frames and measures its temporal variance. Deepfake face swaps show higher temporal variance in boundary frequency because the face alignment, blending, and post-processing vary slightly frame-to-frame, creating flickering frequency artifacts at the boundary that are invisible to the eye but detectable spectrally.
Face segmentation: BiSeNet / face parsing network\nBoundary strip width: 16 pixels (8 inner + 8 outer)\nSpectral analysis: 1D FFT per strip\nFrequency bands: low (< Nyquist/4) and high (> Nyquist/4)\nSpectral discontinuity metric: L2 distance of normalized power spectra\nBlending mask detection sensitivity: dip > 20% in HF/LF ratio\nSampling points along boundary: every 4 pixels\nTemporal analysis window: 10 frames\nMinimum face size: 64×64 pixels
82–90% accuracy detecting face swap blending boundaries. Spectral discontinuity analysis achieves AUC of 0.88 for DeepFaceLab and FaceSwap detection. Blending mask detection provides F1-score of 0.85. Temporal frequency stability adds 3–5% improvement for video. Performance decreases for high-quality blending with large feathering radius.
• Directly targets the physical mechanism of face swapping — the blending boundary\n• Spectral analysis reveals artifacts invisible at pixel level\n• Blending mask detection specifically identifies the soft mask used in compositing\n• Temporal analysis provides video-specific detection signal\n• Works independently of the face generation method — targets the compositing step
• Full-face generation (StyleGAN, diffusion) has no blending boundary — method not applicable\n• Very wide blending masks (> 50 pixels) produce gradual spectral transitions harder to detect\n• JPEG compression introduces its own spectral discontinuities at block boundaries\n• Hair and ear regions naturally have spectral transitions that may trigger false positives\n• Advanced blending techniques (deep image blending) produce fewer spectral artifacts
Detecting face swap deepfakes through blending boundary analysis. Localizing the exact boundary of face manipulation. Forensic analysis of composite images for evidence authentication. Quality assessment of face compositing techniques.