Foreground-Background Parallel Compression With Residual Encoding for Surveillance Video

Lirong Wu, Kejie Huang, Haibin Shen, Lianli Gao

Introduction

Video content accounts for over 90% of network traffic, with surveillance footage being a primary contributor. Despite its volume, surveillance video often exhibits low information density, characterized by static backgrounds and localized foreground activity. Traditional video codecs like H.264 and H.265 treat all pixels with equal priority, failing to exploit this specific spatial and temporal redundancy. This paper proposes a deep learning-based parallel compression framework that separates foreground and background layers to optimize storage and transmission efficiency.

Proposed Framework

The core of the proposed method is a parallel compression scheme that processes foreground and background components independently using specialized strategies.

Overview of the proposed foreground-background parallel compression framework.

The architecture consists of four primary stages:

  1. Foreground-Background Separation: An adaptive Gaussian Mixture Model (GMM) and morphological operations extract a foreground mask, identifying high-priority moving regions.
  2. Adaptive Background Updating (ABTU): Background frames are updated based on a Multi-Scale Structural Similarity Index (MS-SSIM) threshold. This allows the system to react to environmental changes (e.g., lighting shifts) while using linear interpolation for intermediate frames to save bits.
  3. Motion-Based Foreground Encoding: Optical flow estimates motion between foreground regions. The system encodes only the motion residuals, significantly reducing the data required compared to raw pixel encoding.
  4. Coarse-to-Fine Decoding: The decoder reconstructs the frame by compositing the foreground onto the background. A dedicated Reconstruction Network (Rec-Net) then refines the image.

Reconstruction and Quality Enhancement

A significant challenge in layer-based compression is the presence of visual artifacts at the boundaries where foreground and background meet. To address this, the authors developed a two-stage reconstruction process.

The composite module and reconstruction network (Rec-Net) for generating high-quality final frames.

The Composite Module performs an initial "coarse" merge by pasting the decoded foreground onto the background. Subsequently, the Reconstruction Network (Rec-Net)—comprising convolutional and residual blocks—learns to smooth these boundaries and eliminate blurring or blocking artifacts. This post-processing step is vital for maintaining high visual quality, especially at low bitrates where traditional codecs often fail.

Experimental Results

The model was evaluated on the CUHK Square, EWAP, and HEVC datasets. Key findings include:

  • Efficiency: The proposed method achieves a 49.75% reduction in bitrate (bpp) compared to the H.265 standard for a target PSNR of 36 dB on HEVC sequences.
  • Visual Quality: Subjective tests indicated a preference for the proposed model's output over traditional codecs, which often suffer from heavy blocking artifacts in low-bandwidth scenarios.
  • Computational Performance: By focusing motion estimation only on foreground regions, the framework maintains higher encoding speeds than many end-to-end deep neural network compressors.

Conclusion

This research demonstrates that a specialized parallel compression approach can significantly outperform general-purpose codecs for surveillance applications. By treating the background as a template and the foreground as a residual, the system minimizes redundancy. Future work involves extending the model to handle non-stationary cameras and integrating high-level vision tasks like object detection directly into the compression pipeline.

Summary updated

BibTeX
@article{wu2021foreground,
  author = {Lirong Wu and Kejie Huang and Haibin Shen and Lianli Gao},
  title = {{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