A Foreground-background Parallel Compression with Residual Encoding for Surveillance Video

Lirong Wu, Kejie Huang, Haibin Shen, Lianli Gao

TL;DR

This paper introduces a novel video compression method specifically designed for surveillance videos by treating foreground and background content separately. By adaptively updating background information and using motion-based residual encoding for the foreground, the method achieves significantly higher compression ratios than conventional H.265 while maintaining comparable visual quality.

What Problem Does This Paper Address?

Surveillance videos generate a massive amount of data, making storage and transmission a significant challenge. Existing video compression standards like H.264 and H.265, while effective, don't fully exploit the unique characteristics of surveillance footage. Specifically, these videos often have a static or slowly changing background with occasional, more dynamic foreground objects (e.g., people, vehicles). Conventional methods treat all parts of the frame equally, leading to inefficient compression of the low-information-density background. This paper aims to bridge this gap by proposing a compression strategy that leverages the distinct properties of foreground and background content in surveillance videos to achieve superior compression efficiency.

Methods

The proposed method breaks down video compression into several key stages:

  • Foreground-Background Separation (S1): An adaptive Gaussian Mixture Model (GMM) is used to initially segment the frame into foreground and background. This is followed by morphological processing and bounding box refinement to obtain clean foreground masks and regions.
  • Adaptive Background Updating and Interpolation (S2): Recognizing that backgrounds, while generally static, can still experience subtle changes (lighting, weather), the system employs an adaptive approach. Instead of fixed updates, it monitors the similarity (using MS-SSIM) between a current background candidate and a stored template. If the similarity drops below a threshold, the template is updated. The frames between templates are then interpolated, either linearly or using a CNN-based method, to reconstruct the background. This adaptive strategy balances the need to capture background changes with the desire for high compression.
  • Motion Estimation (S3): For foreground compression, the paper moves away from traditional block-based motion estimation. Instead, it utilizes a lightweight DNN to estimate optical flow, which provides more accurate pixel-level motion information. This motion information is then encoded.
  • Motion Compensation (S4): A compensation network (Com-Net) uses the estimated optical flow and the previous reconstructed foreground frame to predict the current foreground frame.
  • Residual Coding (S5): The difference (residual) between the original foreground and the predicted foreground is calculated. This residual, along with the motion information, is then encoded using a DNN-based information codec.
  • Coarse-to-Fine Two-Stage Decoding (S6): At the decoder, a composite module merges the reconstructed foreground and background. This is followed by a reconstruction network (Rec-Net) that refines the composite frame, eliminating artifacts, blurring, and boundaries to produce a visually seamless and high-quality final frame.

Datasets

The paper utilizes the following datasets for training and evaluation:

  • CUHK Square Dataset: A publicly available dataset containing one hour of surveillance video.
  • EWAP Dataset: Another publicly available dataset with two ten-minute surveillance videos.
  • HEVC Dataset: Used for testing and comparison with conventional methods, specifically focusing on static background sequences (Traffic, Cactus, BasketballDrill, Vidyol, Vidyo3, Vidyo4).

The datasets were preprocessed by cropping and resizing frames to 320x240x3. For training, the videos were split into 1-minute clips, with 70% for training, 20% for validation, and 10% for testing.

Key Insights and Ideas

  • Foreground/Background Separation is Key: The core idea is that treating foreground and background differently is crucial for surveillance video compression. This allows for more efficient encoding of the static background and focused compression on the dynamic foreground.
  • Adaptive Background Management: The adaptive background updating mechanism is a significant improvement over fixed-interval updates. It intelligently decides when to update the background template, balancing compression efficiency with the ability to adapt to subtle environmental changes.
  • Optical Flow for Foreground Motion: Using optical flow for motion estimation in the foreground offers more precise motion information compared to traditional block-based methods, leading to better prediction and smaller residuals.
  • Residual Encoding for Temporal Efficiency: Compressing only the residuals of the foreground after motion compensation is a standard but effective technique for capturing temporal redundancy. The paper emphasizes the importance of this temporal information through ablation studies.
  • Two-Stage Decoding for Quality: The coarse-to-fine decoding process, first compositing and then refining, is vital for achieving visually pleasing results, especially in merging foreground and background seamlessly.

Key Results

The proposed method demonstrates significant improvements over conventional and other DNN-based video compression techniques:

  • Compression Ratio: The paper reports requiring 49.75% less bpp than H.265 to achieve the same PSNR (36 dB) on the HEVC dataset. On the CUHK Square Dataset, it achieves 71.3% and 46.5% less bpp than H.264 and H.265, respectively, for the same MS-SSIM (0.96).
  • Visual Quality: The method is shown to produce visually superior results, preserving details like hair and outlines better than H.264 and H.265. The reconstructed frames are described as visually better, with artifacts, blurring, and boundaries effectively eliminated.
  • Preference Study: In a subjective preference study, the proposed method was clearly preferred, especially at low bitrates.
  • Run Efficiency: The encoding and decoding speeds are significantly faster than other advanced end-to-end DVC methods, with decoding being particularly efficient.

Limitations and Future Work

  • Computational Complexity of Foreground: The paper notes that foreground compression is computationally more intensive than background compression, with motion compensation being the primary bottleneck. While optical flow is applied only to the foreground, it still requires significant computation.
  • Generalizability: While designed for surveillance videos, the paper acknowledges that the performance might differ for other types of video content with different foreground/background characteristics.
  • Future Directions: The authors suggest that incorporating high-level vision tasks like semantic segmentation, object classification, and object detection into image/video compression could lead to further advancements and wider application fields. They also mention the potential for neural network acceleration methods to further improve encoding and decoding speeds.

Summary updated

BibTeX
@article{wu2021foreground,
  author = {Lirong Wu and Kejie Huang and Haibin Shen and Lianli Gao},
  title = {{A Foreground-background Parallel Compression with Residual Encoding for Surveillance Video}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2021},
  url = {https://openreview.net/forum?id=shahIm72T},
}
Figure