Introduction
In digital forensics, identifying whether a video has undergone multiple compression cycles is a primary indicator of manipulation. When a video is edited—for instance, to create a deepfake or remove an object—it must be decompressed, modified, and subsequently recompressed. This "double compression" leaves subtle statistical traces. While well-understood in static images, detecting these traces in video is significantly more challenging due to complex inter-frame dependencies and variable bitrates.
Methodology: Exploiting GOP Misalignment
The proposed method focuses on the Group of Pictures (GOP) structure, which consists of I-frames (intra-coded) and P/B-frames (predictive). When a video is compressed a second time, the original I-frames often align with P-frames in the new sequence. Because these frames were originally coded independently, they lack the temporal redundancy typically exploited by P-frames, resulting in abnormally high prediction residuals.
As shown in the figure above, these high-residual frames appear at regular intervals corresponding to the original GOP size. The researchers introduced two major innovations to detect this pattern:
- The A Contrario Framework: Instead of relying on manually tuned "magic" thresholds, the method uses the "non-accidentalness principle." It calculates a Number of False Alarms (NFA) to determine if a periodic pattern of spikes is statistically significant or merely random noise. This allows for automatic, mathematically grounded detection.
- B-frame Adaptation: B-frames (bidirectional) complicate analysis because they look at both past and future frames. The authors developed an "indirect evaluation" strategy: if an I-frame from the first compression is recast as a B-frame in the second, its residual spike often "leaks" into the subsequent P-frame, which the algorithm can then detect.
Experimental Results
The method was evaluated using 19 standard uncompressed sequences across various bitrates (300 to 1100 kbps) and GOP sizes. The results demonstrate a significant improvement over existing state-of-the-art (SOTA) detectors, such as those by Chen et al. and Vazquez-Padin et al.
As illustrated in the Precision-Recall curves, the proposed method (both for I/P and I/P/B structures) maintains high precision even at high recall levels. Quantitatively, the method achieved an overall AUROC of 0.955, significantly higher than the next best competitor (0.914). Notably, at a strict statistical significance level, the tool achieved 100% precision and 96.9% recall on videos without B-frames. Even with the added complexity of B-frames, it maintained 100% precision while successfully retrieving over 50% of recompressed videos—a major step forward for this specific challenge.
Conclusion
By leveraging the a contrario framework, this research provides a robust, threshold-free tool for video forensics. The ability to automatically adapt to video statistics makes it far more generalizable than previous "brittle" methods that fail outside of controlled datasets. Future work will explore extending this statistical approach to the HEVC (H.265) codec and integrating deep learning techniques to further enhance sensitivity in high-motion scenes.
Summary updated