JA-POLS: A Moving-Camera Background Model via Joint Alignment and Partially-Overlapping Local Subspaces

Irit Chelly, Vlad Winter, Dor Litvak, David Rosen, Oren Freifeld

Abstract

Background models are widely used in computer vision. While successful Static-camera Background (SCB) models exist, Moving-camera Background (MCB) models are limited. Seemingly, there is a straightforward solution: 1) align the video frames; 2) learn an SCB model; 3) warp either original or previously-unseen frames toward the model. This approach, however, has drawbacks, especially when the accumulative camera motion is large and/or the video is long. Here we propose a purely-2D unsupervised modular method that systematically eliminates those issues. First, to estimate warps in the original video, we solve a joint-alignment problem while leveraging a certifiably-correct initialization. Next, we learn both multiple partially-overlapping local subspaces and how to predict alignments. Lastly, in test time, we warp a previously-unseen frame, based on the prediction, and project it on a subset of those subspaces to obtain a background/foreground separation. We show the method handles even large scenes with a relatively-free camera motion (provided the camera-to-scene distance does not change much) and that it not only yields State-of-the-Art results on the original video but also generalizes gracefully to previously-unseen videos of the same scene.

Introduction

Background modeling—the process of distinguishing moving foreground objects from a static or slowly changing environment—is a fundamental task in computer vision. While Static-camera Background (SCB) models have reached a high level of maturity, Moving-camera Background (MCB) models continue to face significant challenges. A common approach involves aligning video frames to a reference coordinate system and then applying SCB techniques. However, this strategy often fails in practice due to three primary hurdles:

  1. Accumulative Error (Drift): Sequential frame-to-frame alignment leads to error propagation, causing the background model to degrade over time.
  2. Scalability: Creating a single global panoramic model for long videos or large scenes requires immense memory, often exceeding hardware capabilities.
  3. Generalization: Most existing MCB models are transductive, meaning they are tied to the specific training video and cannot easily process new, unaligned footage of the same scene.

JA-POLS addresses these issues through a purely 2D unsupervised modular framework that utilizes joint alignment and a decentralized "patchwork" of local subspaces.

Methodology

The JA-POLS framework is structured into three distinct phases, designed to ensure robust alignment and efficient background representation.

Overview of the JA-POLS three-phase framework: Joint Alignment, Learning POLS, and Test Time Inference.

Phase 1: Joint Alignment

To avoid the drift associated with sequential alignment, JA-POLS solves a joint alignment problem across the entire video sequence. The process begins with a "certifiably correct" initialization using SE-Sync, ensuring the optimization does not converge to poor local minima. This initialization is then refined using a Spatial Transformer Network (STN) to account for affine transformations, including rotation, translation, and moderate scaling.

Phase 2: Learning Partially-Overlapping Local Subspaces (POLS)

The core innovation of JA-POLS is the rejection of a monolithic global scene model. Instead, the scene is decomposed into multiple Partially-overlapping Local Subspaces (POLS). Each subspace is a low-dimensional representation of a small, overlapping rectangular region of the environment. This decentralized approach allows the model to scale to arbitrarily large scenes and remain robust to missing data (occlusions or parts of the scene not visible in all frames). Simultaneously, a deep regression network (based on GoogLeNet) is trained to predict the alignment parameters for any given frame based on its visual content.

Phase 3: Test Time Inference

During inference, the trained regression network predicts the alignment for a previously unseen test frame. The frame is warped according to this prediction and projected onto the relevant subset of local subspaces. The foreground is then extracted by calculating the residual difference between the warped frame and its subspace projections.

Experiments and Results

The authors evaluated JA-POLS on a comprehensive suite of benchmarks, including 9 videos from the DAVIS, Freiburg-Berkeley, and CDNet 2014 datasets, as well as 5 new real-world sequences designed to test specific challenges like jitter and wide scenes.

Background/Foreground separation results on the 'Tennis' sequence showing the original observation, estimated background, and estimated foreground.

Performance and Scalability

JA-POLS consistently achieves state-of-the-art results, outperforming established methods such as PRPCA and DECOLOR in terms of F-measure. A key advantage is its scalability; while competing global models often crash due to memory limitations on wide-scene datasets (even with 256GB RAM), JA-POLS processes them efficiently. Once trained, the system is highly efficient, processing new frames in under two seconds.

Robustness to Scene Changes

The model demonstrates robustness to "static changes"—such as a chair being moved in the background—which are often incorrectly flagged as foreground by purely motion-based methods. By learning the subspace of the background, JA-POLS can distinguish between transient foreground motion and permanent shifts in the environment.

Conclusion

JA-POLS provides a robust, scalable solution for background modeling in moving-camera scenarios. By leveraging joint alignment and local subspaces, it overcomes the drift and memory constraints of traditional global models. While the current implementation relies on a relatively stable camera-to-scene distance, future work aims to incorporate homographic transformations to better handle extreme perspective distortions and integrate lightweight 3D cues for enhanced robustness in highly dynamic environments.

Summary updated

BibTeX
@inproceedings{chelly2020ja,
  author = {Irit Chelly and Vlad Winter and Dor Litvak and David Rosen and Oren Freifeld},
  title = {{JA-POLS: A Moving-Camera Background Model via Joint Alignment and Partially-Overlapping Local Subspaces}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=jR3xj1Kxf9},
}
Figure