Semantical video coding: Instill static-dynamic clues into structured bitstream for AI tasks

Xin Jin, Ruoyu Feng, Simeng Sun, Runsen Feng, Tianyu He, Zhibo Chen

TL;DR

Traditional video codecs are designed for human eyes, forcing AI models to wait for full decompression before they can "see" anything. This paper introduces Semantically Structured Video Coding (SSVC), a framework that embeds high-level object data and motion clues directly into the bitstream. This allows AI tasks like object detection and action recognition to run on partially decoded data, drastically reducing computational overhead and bandwidth.

What Problem Does This Paper Address?

We are living in an era of "Video Coding for Machines" (VCM). While Netflix cares about how a movie looks to you, a self-driving car or a city surveillance system cares about identifying objects and actions.

Current standards (like H.264/AVC or H.265/HEVC) produce "semantic-unknown" binary streams. To perform an intelligent task, an edge device must fully decompress the video into raw pixels and then run a heavy deep-learning model to extract features. This "decode-then-analyze" pipeline is redundant, slow, and power-hungry. The authors aim to bridge this gap by creating a Semantically Structured Bitstream (SSB) that is natively "readable" by both humans and machines.

Comparison between traditional video coding (a) and the proposed semantically structured approach (b).

Methods

The SSVC framework extends previous work on image coding (SSIC) by adding temporal "dynamic clues." It splits the coding process into two modes:

  1. Intra-mode (I-frames): The encoder uses an integrated CenterNet model to parse the frame. It extracts "high-level features" (object IDs and bounding boxes) which are stored in the bitstream header as lightweight overhead. "Low-level features" (the actual visual content) are compressed using a VAE-based autoencoder.
  2. Inter-mode (P-frames): To handle motion, the system uses PWC-Net to estimate optical flow. This motion information, along with the residual content (the difference between frames), is reorganized into the SSB.
Detailed architecture of the SSVC framework showing the processing of I-frames and P-frames to generate a structured bitstream.

The "magic" happens in the Bitstream Generation phase. Because the bitstream is structured hierarchically, a machine can choose to only decode the "person" objects for a pose estimation task or only the "optical flow" for action recognition, skipping the background and irrelevant data entirely.

Datasets

The authors used a robust mix of datasets for training and evaluation:

  • Training: A subset of ImageNet for I-frame models and the Vimeo-90k septuplets dataset for video motion models.
  • Compression Evaluation: The UVG (Ultra Video Group) dataset and HEVC Common Test Sequences (Classes B, C, D, and E).
  • AI Task Evaluation:
    • COCO2014 for object detection and pose estimation.
  • UCF-101 for video action recognition.
  • DAVIS-16 for video object segmentation.

Key Insights and Ideas

  • Partial Decoding is the Future: The most significant insight is that for many AI tasks, 90% of the video data (like a static background) is "noise." By structuring the bitstream by object, SSVC allows machines to ignore that noise at the bitstream level.
  • Static-Dynamic Synergy: By combining static object locations (from I-frames) with continuous motion clues (optical flow in P-frames), the framework provides a complete toolkit for temporal AI tasks like action recognition without ever reconstructing a full RGB video.
  • Interpretability: Unlike standard bitstreams, which are just opaque zeros and ones, the SSB header provides immediate, human-readable metadata about what is in the scene.

Key Results

  • Superior Compression: SSVC outperforms H.264 and H.265 in terms of rate-distortion performance (measured by MS-SSIM). It even shows competitive results against the newer H.266 (VVC) standard.
  • Massive Bandwidth Savings for AI: For action recognition on the UCF-101 dataset, SSVC achieved an average of over 40% BD-rate saving compared to traditional codecs.
  • Efficiency: In object detection and pose estimation, the framework achieved high accuracy (mAP and PCK) at significantly lower bitrates because the core features were already present in the structured bitstream, requiring zero or minimal pixel reconstruction.

Limitations and Future Work

While SSVC is a major step forward, the authors note a few areas for improvement:

  • Backbone Evolution: The underlying learning-based compression backbone is still a rapidly developing field. As "standard" neural video codecs improve, SSVC can be upgraded to be even more efficient.
  • Optical Flow Optimization: The current estimation of optical flow is optimized for reconstruction; the authors suggest that optimizing it specifically for the R-D (Rate-Distortion) objective of the AI task could yield even better results.
  • Encoding Complexity: While decoding is faster and lighter, the encoding side requires running models like CenterNet and PWC-Net, which may be more demanding than simple traditional motion estimation on low-power capture devices.

Summary updated

BibTeX
@article{jin2023semantical,
  author = {Xin Jin and Ruoyu Feng and Simeng Sun and Runsen Feng and Tianyu He and Zhibo Chen},
  title = {{Semantical video coding: Instill static-dynamic clues into structured bitstream for AI tasks}},
  journal = {J. Vis. Commun. Image Represent.},
  year = {2023},
  doi = {10.1016/j.jvcir.2023.103816},
}
Figure