An efficient coding method for coding Region-of-Interest locations in AVS2

Mingliang Chen, Weiyao Lin, Xiaozhen Zheng

TL;DR

This paper introduces an efficient method for encoding Region-of-Interest (ROI) location data directly into the AVS2 video coding standard bitstream. By leveraging temporal correlations and object detection predictions, the proposed differential and reconstructed coding schemes significantly reduce the bitrate overhead of transmitting ROI coordinates, making it highly practical for surveillance and video conferencing applications.

What Problem Does This Paper Address?

In video compression, Region-of-Interest (ROI) coding is a popular technique used to allocate more bits—and thus higher visual quality—to important parts of a frame, like a person's face or a moving car. However, while encoders use ROI data to adjust compression parameters, they rarely encode the actual location coordinates of these ROIs into the final video bitstream.

The authors argue that ROI location data is incredibly valuable on the decoding side for downstream tasks like video content analysis and tracking object trajectories (especially in surveillance). The challenge is that simply appending raw bounding box coordinates for dozens of objects in every single frame adds a massive, unacceptable overhead to the video's file size. This paper tackles how to compress and embed this metadata efficiently.

Methods

The authors propose three distinct schemes for encoding ROI locations (defined by top-left coordinates, width, height, and an object label):

  1. Direct-Coding Scheme (The Baseline): Encodes the raw parameters of every ROI independently for each frame. It is simple but highly inefficient when a frame contains many ROIs.
  2. Differential-Coding Scheme: Borrows the core idea of video compression—temporal redundancy. Since objects usually don't move much between consecutive frames, this scheme only encodes the difference in coordinates between an ROI in the current frame and its position in the previous frame. It also introduces specific flags to handle ROIs that newly appear or disappear.
  3. Reconstructed-Coding Scheme (The Extended Approach): This is the most novel approach. Both the encoder and the decoder run an identical object detection algorithm on the previously reconstructed frame to predict where the ROIs will be in the current frame. The encoder then only needs to transmit the difference between the algorithm's predicted location and the actual location. If the detector is highly accurate, the required data to transmit approaches zero.

Note: The direct and differential schemes were adopted into the AVS2 surveillance profile standard, while the reconstructed scheme is presented as an extended proposal.

Datasets

The methods were evaluated using the AVS2 surveillance profile's common test sequences (including BQquare, Traffic, Crossroad, Office, and Intersection). These sequences come with pre-defined ROIs for testing. The sequences vary in resolution (from 176x144 up to 2560x1600) and ROI density (from 2 to 63 ROIs per frame).

Key Insights and Ideas

  • Metadata needs compression too: As video analytics become more common, metadata (like bounding boxes) becomes a significant part of the payload. Treating metadata with the same temporal compression philosophies used for pixel data is highly effective.
  • AI as a compression mechanism: The reconstructed-coding scheme brilliantly turns a computer vision task (object detection) into a data compression tool. By having the decoder "guess" the bounding boxes using a shared algorithm, you only have to transmit the errors in the guess.
  • The Quality/Prediction Trade-off: The "smart" reconstructed-coding scheme is highly sensitive to the video's Quantization Parameter (QP). If the video is heavily compressed (high QP), the reconstructed frames are blurry or artifact-heavy. This causes the object detector to fail, making the prediction-based compression perform worse than simple temporal differential coding.

Key Results

  • Direct coding is too heavy: For sequences with many ROIs (e.g., 30-60 per frame), direct coding adds noticeable bloat to the bitrate.
  • Differential coding is a reliable workhorse: Compared to direct coding, the differential scheme achieved an average bitrate reduction of 2.5%, and up to 6% in the best cases, simply by encoding coordinate deltas.
  • Reconstructed coding is high-risk, high-reward: When the object detection algorithm is accurate and the video quality is high, this scheme outperforms differential coding. However, its performance degrades rapidly as the QP increases (video quality drops).

Limitations and Future Work

The authors acknowledge a primary limitation with the reconstructed-coding scheme: its performance is bottlenecked by the quality of the decoded video. Because higher QP values degrade the reconstructed frames, the object detection algorithm struggles to make accurate predictions, which in turn increases the bitrate needed to correct those predictions.

For future work, the authors suggest combining the differential-coding and reconstructed-coding schemes into a hybrid model. This would likely allow the encoder to dynamically choose the most efficient method on a per-frame or per-object basis, ensuring optimal compression regardless of the video's compression level or the object detector's accuracy.

Summary updated

BibTeX
@inproceedings{chen2014efficient,
  author = {Mingliang Chen and Weiyao Lin and Xiaozhen Zheng},
  title = {{An efficient coding method for coding Region-of-Interest locations in AVS2}},
  booktitle = {Workshops @ ICME},
  year = {2014},
  doi = {10.1109/icmew.2014.6890688},
}
Figure