Researchers Hadi Hadizadeh and Ivan V. Bajić have introduced an end-to-end learned scalable video coding architecture designed to compress video simultaneously for automated machine analytics and human inspection. Traditional video codecs have long been optimized to preserve visual fidelity for human viewers across services like digital television, videoconferencing, and streaming platforms. However, modern automated infrastructures such as traffic monitoring and surveillance systems increasingly rely on deep neural networks to perform continuous visual tasks, including vehicle detection and tracking. In these environments, machine analytics run continuously, whereas human review is required only intermittently during emergencies or incident investigations. To reconcile these divergent demands, the researchers engineered a two-layer codec featuring an efficient base layer dedicated to machine vision and an enhancement layer that enables complete input reconstruction for human viewing.
Conventional video compression approaches struggle to accommodate both human viewing and machine analysis without introducing significant transmission inefficiencies. Transmitting isolated feature vectors directly to cloud servers reduces bandwidth when automated analytics represents the sole operational focus, but prevents human operators from reviewing footage when incidents occur. Conversely, traditional codecs like High Efficiency Video Coding and Versatile Video Coding compress entire video scenes uniformly for human eyes. When human viewing is needed only occasionally, this conventional approach proves wasteful because it expends substantial transmission capacity encoding fine textural details that are irrelevant to downstream machine vision models. Emerging standardization efforts, including MPEG Video Coding for Machines and JPEG AI, seek unified bitstreams, but often lack mechanisms to separate machine-relevant features from task-irrelevant data, creating persistent coding bottlenecks.
To provide theoretical justification for their architecture, the researchers formulated a rate-distortion analysis comparing lossy conditional coding against conventional residual coding. Traditional codecs rely heavily on residual coding, in which a motion-compensated predictor is subtracted from the target frame to produce a residual signal for transmission. While prior literature established that conditional coding achieves lower entropy in lossless scenarios, practical video codecs operate lossily, requiring formal rate-distortion verification. Applying the data processing inequality across the Markov chain of video encoding, latent representation, and computer vision inference, the authors proved that machine vision requires less mutual information than complete frame reconstruction. Furthermore, under shift-invariant distortion measures, optimal conditional coding achieves a rate-distortion bound no higher than optimal residual coding, confirming that conditioning representations on side information yields superior compression efficiency.
The resulting system comprises two tightly integrated tiers: a task-specific base layer and a conditioned enhancement layer. The base layer supports object detection using the back-end of the popular YOLOv5 deep neural network, while maintaining architectural flexibility to accommodate alternative vision back-ends such as Single Shot MultiBox Detector. Crucially, the base layer outputs a decoded three-channel red-green-blue frame alongside latent representations, ensuring plug-and-play compatibility with standard computer vision models without architectural modifications. Optical flow between the current frame and the preceding base frame is estimated using PWC-Net and compressed conditionally based on motion extrapolation vectors. A mode generator then processes the past base frame, the motion-compensated frame, and decoded flow to synthesize two adaptive weight maps that combine predictors and modulate inter-frame coding, enabling seamless transitions to zero-bit skip modes.
To circumvent the scarcity of raw uncompressed video datasets with ground-truth object annotations, the authors developed an unsupervised feature-matching training methodology. The researchers truncated a pre-trained YOLOv5 network after its first five layers to create a cloned, trainable front-end network within the base layer. During training, the decoded base frame passes through this cloned front-end to yield a latent feature tensor, which is compared against features extracted from the uncompressed original frame by the frozen original front-end. The base layer loss function balances total base bitrate—encompassing conditional motion bits, conditional signal bits, and hyper-priors—against the mean squared error between these two feature sets. This unsupervised training strategy aligns reconstructed base representations with task-relevant neural activations without requiring ground-truth object labels, preserving labeled video sequences for rigorous objective evaluation.
When human inspection is required, the system engages the enhancement layer, which builds upon the conditional contextual framework of DCVC-TCM. The enhancement layer receives both the original frame and the decoded base frame. Motion between the current frame and the previously reconstructed enhancement frame is estimated with PWC-Net and encoded into a dedicated motion bitstream. Simultaneously, a base feature extractor processes the base frame to generate two distinct feature tensors. One tensor is merged with features from the prior enhancement frame inside a two-layer convolutional fusion network. The fused features and decoded enhancement motion vectors then enter a temporal context mining module, which performs multi-scale warping across three distinct scales. A temporal prior network merges these warped contexts into a unified temporal context tensor that guides contextual frame encoding.
To maximize coding efficiency, the enhancement layer incorporates an entropy parameter estimation network enhanced by an attention mechanism. The entropy model predicts parameters of a Laplacian distribution modeling the quantized latent representations. Rather than relying solely on hyper-priors and temporal contexts, the network integrates base features from the current frame and decoded latent features from the preceding enhancement frame. These combined features pass through convolutional layers and an attention layer that dynamically identifies critical spatial regions. Visualizations demonstrate that the attention mechanism effectively suppresses static background areas, driving their variance parameter toward zero, while concentrating representational capacity around moving objects such as players and basketballs. This attention-guided multi-frame conditioning enables arithmetic coding to compress enhancement latent representations with exceptional bit efficiency.
The two-layer system was trained sequentially using the VIMEO-90K Septuplet dataset, comprising 91,701 seven-frame sequences cropped into 256 by 256 patches. The base layer was trained first for ten epochs using the Adam optimizer with a batch size of four, a learning rate of 10^-6, and four base Lagrange multipliers. To capture temporal relationships across video frames, loss functions were calculated over five consecutive frames. After freezing the trained base layer, the enhancement layer was trained using four enhancement Lagrange multipliers across fifteen epochs. For performance evaluation, the researchers tested the architecture on standard MPEG Video Coding for Machines datasets: SFU-HW-Objects-v1 across Classes B, C, and D, and the TVD dataset. Benchmarks included conventional codecs HM and VTM, alongside learned codecs DCVC, CANF-VC, and DCVC-TCM.
Evaluation on the object detection task demonstrated that the proposed base layer outperformed all competing codecs across the tested datasets. Detection performance was quantified using mean average precision and Bjøntegaard Delta Rate relative to the VTM anchor. On SFU-HW-Objects-v1, the proposed base layer delivered an average 16.8 percent bitrate reduction relative to VTM at equivalent detection accuracy, ranking first overall. HM achieved second place, followed by LCCM-VC and DCVC-TCM. Visual evaluations on the PartyScene sequence confirmed that compression artifacts in competing codecs caused YOLOv5 to misclassify items, confusing gift boxes with suitcases and bags with handbags. Conversely, the proposed base layer preserved essential semantic features, preventing classification errors at substantially lower bitrates. On the TVD dataset, short three-frame sequences restricted performance differentiation across codecs.
For input frame reconstruction intended for human viewing, the authors assessed three operational configurations: base layer alone, enhancement layer alone, and combined base plus enhancement bitrates. When evaluating peak signal-to-noise ratio in the RGB domain, VTM maintained the highest compression performance, surpassing the proposed enhancement layer by approximately 29 percent BD-Rate. The isolated base layer performed poorly on reconstruction metrics because its omission of task-irrelevant visual information required heavy bitrates to restore fine details. However, when evaluated under the structural similarity metric MS-SSIM-RGB, which aligns closely with human visual perception, the performance gap between VTM and the proposed enhancement layer decreased to just 2.8 percent. Qualitative comparisons on RaceHorses confirmed that the proposed enhancement layer successfully restored high-frequency textures that other learned codecs suppressed.
To establish operational viability in practical scenarios where continuous machine analytics pairs with occasional human viewing, the authors performed a break-even analysis against VTM. By modeling the proportion of operating time allocated to human viewing as variable phi, the authors determined the threshold where the proposed codec yields overall bit savings. Under peak signal-to-noise ratio evaluation, the break-even threshold reached 37 percent, indicating that the proposed system achieves net bandwidth savings whenever human viewing is required less than 37 percent of operational time. Under structural similarity evaluation, the break-even threshold rose to 86 percent. Given empirical industry estimates indicating that less than one percent of surveillance video is ever reviewed live by human observers, the proposed architecture offers substantial transmission savings in real-world monitoring environments.
The research team validated their design choices through targeted ablation experiments on HEVC Class B sequences. In the first test, sharing the base layer’s optical flow map with the enhancement layer degraded BD-Rate performance by approximately one percent, confirming the necessity of independent motion estimation networks. In the second test, freezing the cloned YOLOv5 front-end during base-layer training resulted in an approximate two percent loss in bitrate savings, verifying the advantage of optimizing the front-end alongside the base codec. Finally, replacing the proposed four-component attention-guided entropy estimation model with the baseline DCVC-TCM entropy architecture caused a 1.5 percent loss in enhancement-layer compression savings. These ablation findings confirm that each specialized component directly enhances system efficiency, validating conditional scalable coding as an effective framework for dual-purpose video transmission.
Subject of Research: Learned scalable video coding for machine analytics and human viewing
Article Title: Learned scalable video coding for humans and machines
Article References: Hadizadeh, H., & Bajić, I. V. (2024). Learned scalable video coding for humans and machines. EURASIP Journal on Image and Video Processing, 2024(1), Article 41. https://doi.org/10.1186/s13640-024-00657-w
Image Credits: AI Generated
DOI: 10.1186/s13640-024-00657-w
Keywords: scalable video coding, video coding for machines, conditional coding, object detection, deep neural networks, YOLOv5, rate-distortion theory, temporal context mining, motion compensation, Versatile Video Coding, High Efficiency Video Coding, optical flow, entropy modeling, Bjøntegaard delta rate, video surveillance, traffic monitoring, lossy compression
Cite Scienmag News
Elena Sutton. (November 21, 2026). Learned Scalable Video Codec Cuts Bitrates for Automated Machine Vision Tasks. Scienmag. https://scienmag.com/learned-scalable-video-codec-cuts-bitrates-for-automated-machine-vision-tasks/
Elena Sutton. "Learned Scalable Video Codec Cuts Bitrates for Automated Machine Vision Tasks." Scienmag, 21 November 2026, https://scienmag.com/learned-scalable-video-codec-cuts-bitrates-for-automated-machine-vision-tasks/. Accessed 1 December 2026.
Elena Sutton. "Learned Scalable Video Codec Cuts Bitrates for Automated Machine Vision Tasks." Scienmag. November 21, 2026. https://scienmag.com/learned-scalable-video-codec-cuts-bitrates-for-automated-machine-vision-tasks/








