V-181Temporal DCT Analysis
Applies DCT analysis along the temporal axis to detect non-natural frequency signatures in video sequences.
Algorithm / Model
Temporal Discrete Cosine Transform Forensics
How it works
This method detects AI-generated or manipulated video by analyzing the Discrete Cosine Transform (DCT) coefficients along the temporal axis — revealing frequency-domain signatures that distinguish authentic from synthetic temporal evolution:\n\n1. Temporal DCT Computation: For each pixel position (x, y), the method extracts the intensity time series I(x, y, t) across N consecutive frames and computes its 1D DCT: C(k) = Σ I(t) × cos(π(2t+1)k / 2N), for k = 0, 1, ..., N-1. This transforms the temporal evolution of each pixel from the time domain to the temporal frequency domain. The DC component C(0) represents the average luminance, while higher-frequency components capture temporal variation. The method computes this for a dense grid of pixels to create a 3D tensor of temporal DCT coefficients. For computational efficiency, the analysis uses blocks of 8×8 pixels (borrowing from the MPEG-2/H.264 block structure), computing the temporal DCT for each block's average intensity.\n\n2. DCT Coefficient Distribution Analysis: Authentic video captured by real cameras exhibits characteristic DCT coefficient distributions. The key findings from forensic research (Stamm & Liu, 2010) are: (a) the magnitude of temporal DCT coefficients follows a Laplacian distribution: p(C) = (1/2b) × exp(-|C|/b), where b varies by frequency but the distribution shape is consistent, (b) the energy ratio between adjacent frequency components follows a predictable decay — typically exponential with decay rate dependent on scene motion, (c) even-frequency and odd-frequency components should have similar energy distribution (no systematic asymmetry). AI-generated video often violates these distributions: GAN-generated video shows heavier tails at high temporal frequencies (more temporal 'noise'), while interpolation-based generation shows characteristic zeros at specific temporal frequencies.\n\n3. Compression History Detection: Video compression (H.264, H.265) operates on 8×8 DCT blocks in the spatial domain, and the GOP (Group of Pictures) structure imposes temporal periodicity. The method detects compression history by analyzing: (a) I-frame periodicity — I-frames have higher energy than P/B-frames, creating periodic peaks in temporal energy at the GOP frequency (typically every 15–30 frames), (b) quantization artifacts — compressed video shows quantized DCT coefficients that cluster around multiples of the quantization step, (c) double compression — if video has been recompressed (common in manipulation), the temporal DCT shows characteristic 'beating' frequencies that are the difference between the two GOP periods. AI-generated video lacks native compression artifacts (unless deliberately added as post-processing), and its temporal DCT coefficients show smooth, unquantized distributions.\n\n4. Temporal Frequency Anomaly Map: The method constructs a spatial map of temporal frequency anomalies. For each spatial block, it computes: (a) the deviation of the DCT coefficient distribution from the expected Laplacian model (using KL divergence), (b) the energy ratio between high-frequency (k > N/2) and low-frequency (k ≤ N/2) temporal components, (c) the presence or absence of GOP-related periodicity. The anomaly map highlights regions where the temporal frequency structure deviates from natural video. In manipulated video, the anomaly map often shows clear boundaries between authentic and manipulated regions. In fully AI-generated video, the anomaly map shows uniform deviation from natural statistics across the entire frame.
Technical Parameters
DCT block size: 8×8 pixels spatial\nTemporal window: 64 frames\nLaplacian distribution fit: KL divergence < 0.1 (authentic)\nEnergy decay rate: exponential fit\nHigh/low frequency ratio: k > N/2 vs k ≤ N/2\nGOP detection: autocorrelation of temporal energy\nTypical GOP period: 15–30 frames\nQuantization detection: histogram binning analysis\nMinimum analysis length: 64 frames\nSpatial grid: 8×8 pixel blocks
Accuracy & Reliability
82–90% accuracy detecting AI-generated or double-compressed video. Laplacian distribution deviation achieves AUC of 0.88. Compression history detection provides F1-score of 0.91 for double-compression. Performance robust to moderate spatial resolution but requires at least 64 consecutive frames for reliable temporal analysis.
Strengths
• DCT analysis is computationally efficient and well-understood\n• Laplacian distribution provides a principled statistical model\n• Compression history detection is highly reliable\n• Temporal frequency analysis captures artifacts invisible in spatial domain\n• Compatible with existing video codec analysis tools
Limitations
• Requires sufficient temporal length (≥ 64 frames) for reliable DCT\n• Very low frame rate video produces few temporal frequency components\n• Uncompressed or losslessly compressed video lacks compression artifacts\n• Post-processing (noise addition, resampling) can mask frequency signatures\n• Some AI generators that mimic H.264 artifacts may evade compression checks
Use Case
Detecting AI-generated video through temporal frequency anomalies. Forensic double-compression detection for video manipulation. Identifying frame insertion or deletion in edited video. Validating video compression history for authentication.