A Multilayer-Based Framework for Online Background Subtraction with Freely Moving Cameras

Yizhe Zhu, Ahmed M. ElgammalICCV 2017

Introduction

Background subtraction (BGS) is a fundamental task in computer vision, essential for applications ranging from automated surveillance to traffic monitoring. While traditional BGS algorithms perform reliably with stationary cameras, they often fail when the camera itself is in motion. In such scenarios, the entire background shifts, making it difficult to distinguish between global camera motion and the independent motion of foreground objects.

Furthermore, most existing methods for moving-camera BGS simplify the problem into a binary classification: a pixel is either background or foreground. This approach frequently breaks down in complex scenes where multiple objects move independently or overlap (occlusions). In these cases, the motion estimation for one object can "pollute" the model of another, leading to inaccurate segmentation and lost tracks.

Methodology

The proposed framework addresses these challenges by treating the scene as a collection of independent layers—one for the background and one for each moving object. This "online" (real-time capable) system assigns an independent processing block to every detected layer.

The proposed multilayer framework architecture, showing the parallel processing of multiple layers and the final multilabel segmentation.

The Multilayer Pipeline

  1. Trajectory Clustering & Labeling: The system begins by tracking sparse feature points to create trajectories. A recursive "Normalized Cut" approach is used to group these trajectories into different layers based on motion inconsistency.
  2. The Processing Block: Each layer (e.g., background, car #1, pedestrian #1) runs its own dedicated pipeline. This includes Motion Estimation using Gaussian Belief Propagation (GaBP) to convert sparse data into a dense pixel-wise motion field, Model Propagation to shift previous frames forward in time, and Appearance Modeling using Kernel Density Estimation (KDE) to handle appearance changes without rigid assumptions.
  3. Multilabel Segmentation: Finally, the system aggregates probability maps from all layers. A multi-label Graph-cut algorithm decides, pixel-by-pixel, which layer a part of the image most likely belongs to, effectively resolving occlusions.

Key Insights: Divide and Conquer

The core innovation of this framework is the decoupling of motion models. By assigning "Car A" and "Car B" to their own layers, their motion estimation processes do not interfere with each other during overlaps. This "Divide and Conquer" strategy ensures that the motion field for the background remains distinct from the motion fields of foreground objects.

Layer-specific motion fields (red, blue, green) extracted from sparse trajectories to model independent object and background motion.

Additionally, the use of Gaussian Belief Propagation allows the system to generate dense motion fields from sparse tracked points, providing a more accurate and less noisy result than standard optical flow methods. The system is also adaptive; it uses a normalized cut cost threshold to automatically "spawn" new layers as objects enter the scene or "delete" them as they exit.

Results and Performance

The framework was evaluated on the Hopkins Dataset and the Complex Background Dataset (CBD), the latter of which involves significant camera rotation and challenging outdoor environments.

  • Accuracy: The proposed Multilayer Background Subtraction (MLBS) achieved an overall F-score of 83.66%, significantly outperforming the state-of-the-art GBSSP method (77.73%).
  • Complexity Handling: The performance gap between MLBS and competing methods widened in scenarios with three or more moving objects, demonstrating the framework's robustness in crowded scenes.
  • Qualitative Success: In the "people2" sequence, where two individuals cross paths, the framework maintained clean, distinct masks for both subjects and the background, whereas other methods often merged the foreground objects.

Conclusion and Future Work

While the current framework demonstrates superior accuracy in complex moving-camera scenarios, it faces some limitations. There is a brief "warm-up" period required to accumulate enough trajectories for initial clustering. Additionally, the computational cost scales linearly with the number of objects. Future work will focus on optimizing the core operations—such as matrix inversion and KDE—for GPU implementation to achieve higher frame rates and refining motion models to better handle non-rigid, articulated human motion.

Summary updated

BibTeX
@inproceedings{zhu2017multilayer,
  author = {Yizhe Zhu and Ahmed M. Elgammal},
  title = {{A Multilayer-Based Framework for Online Background Subtraction with Freely Moving Cameras}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.549},
}
Figure