Bit-depth enhancement detection for compressed video

Nickolay Safonov, Dmitriy S. Vatolin

Abstract

As High Dynamic Range (HDR) displays become ubiquitous, the demand for high bit-depth (HBD) video content has increased. To meet this demand, content providers often employ bit-depth enhancement (BDE) or "debanding" algorithms to up-convert legacy 8-bit content to 10-bit or 12-bit formats. While these methods reduce visual artifacts like banding, they do not provide the fidelity of native HBD capture. This paper presents a novel detection framework designed to distinguish between native HBD video and algorithmically enhanced content. By analyzing the statistical discrepancies between different compressed frame types (I, P, and B), the proposed method identifies enhancement signatures even after the video has undergone significant compression. The system achieves high accuracy across diverse datasets and maintains robustness at bitrates typical for high-quality streaming.

Introduction

The transition to 10-bit and 12-bit video is a cornerstone of the modern viewing experience, yet a significant portion of available content remains natively 8-bit. To bridge this gap, bit-depth enhancement (BDE) is frequently used to artificially inflate bit-depth. While visually preferable to raw 8-bit files, these up-converted videos are technically inferior to native HBD content. For quality control, consumer transparency, and archival purposes, it is essential to have tools that can verify the authenticity of high bit-depth signals.

The primary technical challenge in BDE detection is the impact of video compression (e.g., H.264, H.265). Compression algorithms aggressively target the least-significant bits (LSBs)—the very region where BDE algorithms leave their statistical traces. Once a video is encoded for streaming, these traces are often masked or distorted, making traditional detection methods unreliable.

Methodology

The researchers developed a multi-stage detection pipeline that exploits the non-uniform way video compression affects different frame types.

1. Uncompressed Frame Analysis

The algorithm first examines individual frames to identify relationships between color intensity and the standard deviation of the LSBs. In native HBD content, this relationship is generally uniform. In contrast, up-converted images often exhibit non-natural patterns. The pipeline utilizes a combination of Support Vector Machines (SVM) and Gradient Boosting Machines (GBM) to generate an initial "probability of enhancement" for these frames.

2. Cross-Frame Statistical Features

Because video codecs treat I-frames (intra-coded), P-frames (predictive), and B-frames (bi-predictive) differently, the traces of BDE algorithms are preserved or distorted in distinct ways across these types. The researchers calculate several statistical signatures:

  • LSB Distribution: Mean and standard deviation of LSBs per frame type.
  • Normality Testing: Shapiro-Wilk tests are applied to check if feature distributions remain normal.
  • Comparative Analysis: Student’s t-tests are used to compare distributions between different frame pairs (e.g., I vs. P frames), identifying discrepancies caused by the compression process.

3. Final Classification

These cross-frame statistical signatures are fed into a Random Forest classifier. This model makes the final determination of whether the video was up-converted prior to the compression stage.

Experimental Setup and Datasets

The study utilized two primary datasets to evaluate the model's performance:

  • CableLabs UHD: This dataset provided high-quality 10-bit source clips. The authors generated approximately 8,000 training samples by downscaling these to 6 or 8 bits and then up-converting them using various BDE algorithms.
  • Vimeo Dataset: To test real-world applicability, 16 initial 10-bit videos were processed using 13 different enhancement methods. These included classical debanding filters like FFmpeg’s gradfun and state-of-the-art neural networks such as ALBM and BE-CNN.

Key Insights

  • Compression as a Statistical Fingerprint: The core innovation lies in recognizing that while compression hides LSB manipulation, it does not do so uniformly. The discrepancy between how an I-frame preserves LSBs and how a B-frame discards them creates a unique statistical fingerprint of the original pre-compression signal.
  • Algorithmic Generalization: The model successfully detected up-conversion from algorithms not included in the training set. This suggests that most BDE methods, whether based on simple interpolation or deep learning, leave behind similar statistical anomalies.
  • Intensity-LSB Decoupling: In natural images, LSB variance is typically tied to local intensity. BDE algorithms often break this link, creating "flat" LSB areas that entropy-based features can effectively identify.

Results and Discussion

The proposed system demonstrated high efficacy and efficiency:

  • Accuracy: On the CableLabs dataset, the model achieved an F1-score of 0.956 for 6-to-8 bit detection and 0.874 for 8-to-10 bit detection. On the Vimeo test set, it maintained a strong F1-score of approximately 0.92 for 6-to-8 bit conversion.
  • Bitrate Sensitivity: While performance naturally degrades at very low bitrates where LSB information is lost, the model remains highly reliable at bitrates above 15-20 Mbps for 4K content.
  • Computational Efficiency: The system processed video at approximately 15.34 fps on a consumer-grade CPU (i7-12700K), indicating potential for near real-time quality monitoring of Full HD streams.

Conclusion and Future Work

This research provides a robust framework for detecting bit-depth enhancement in compressed video environments. By leveraging the internal mechanics of video codecs, the method overcomes the masking effects of compression. Future research will focus on low-bitrate scenarios where statistical traces are most faint and will investigate the impact of "in-loop" filters in modern codecs like AV1 and VVC, which may introduce new complexities for BDE detection.

Summary updated

BibTeX
@inproceedings{safonov2022bit,
  author = {Nickolay Safonov and Dmitriy S. Vatolin},
  title = {{Bit-depth enhancement detection for compressed video}},
  booktitle = {MMSP},
  year = {2022},
  url = {https://openreview.net/forum?id=tQoMz-M3jHi},
}
Figure