Learning To Segment Dominant Object Motion From Watching Videos

Sahir Shrestha, Mohammad Ali Armin, Hongdong Li, Nick Barnes

Abstract

Video Object Segmentation (VOS) typically relies on extensive human-annotated datasets. This paper introduces LayerSegNet, a fully unsupervised framework that learns to segment moving objects by watching raw RGB video pairs. By leveraging a differentiable layered image synthesis module and affine motion models, the network learns to group pixels based on motion homogeneity. LayerSegNet achieves performance competitive with state-of-the-art supervised methods on real-world benchmarks without requiring any manual labels during training.

Introduction: The Challenge of Unsupervised VOS

Identifying and masking the dominant moving object in a video—Video Object Segmentation—is a fundamental computer vision task. While many "unsupervised" methods exist, they often rely on "proxy" supervision, such as pre-trained optical flow or saliency models that were themselves trained on human-annotated data. The core challenge remains: how can a machine learn the concept of an "object" purely from the physics of motion?

LayerSegNet addresses this by proposing that objects are regions that move together (the Gestalt principle of common fate). By constraining the network to explain scene changes through simple, rigid-body motion models, it learns to distinguish foreground objects from the background without human intervention.

Methodology: LayerSegNet and LDIS

The architecture centers on a Layered Differentiable Image Synthesis (LDIS) module. Unlike standard approaches that predict dense pixel-wise flow, LayerSegNet decomposes the scene into layers governed by parametric motion.

The Layered Differentiable Image Synthesis (LDIS) pipeline within LayerSegNet.

The process involves several key steps:

  1. Motion Estimation: The network estimates two sets of affine parametric motion models ($W_1, W_2$) representing the foreground and background.
  2. Layer Decomposition: An "alpha map" (segmentation mask) is predicted to assign each pixel to a motion layer.
  3. Differentiable Warping: Frame 1 is separated into layers, warped according to the estimated affine motions, and re-composed to synthesize Frame 2.
  4. Photometric Loss: The primary training signal is the reconstruction error between the synthesized and actual Frame 2.

A critical technical innovation is the Leaky Double-Rectified Linear Unit (Leaky DoReLU). This activation function caps values between 0 and 1 to facilitate binary mask generation while maintaining small "leaky" gradients to ensure stable optimization.

Experimental Results

The model was evaluated on several datasets, including RoamingSeg (synthetic), MovingObjects (rigid translations), and MovingCars (real-world handheld footage).

Qualitative results on the MovingCars dataset comparing Frame 1, Ground Truth (GT), and LayerSegNet predictions.

On the MovingCars benchmark, LayerSegNet achieved a mean Jaccard Index ($\mathcal{J}$) of 0.70, rivaling supervised models like AnchorDiff-VOS (0.73) and COSNet (0.68). Ablation studies highlighted the importance of the Leaky DoReLU, which provided a 67.5% performance boost over standard activation functions on the MovingObjects test set. Furthermore, the model demonstrated strong zero-shot generalization, performing well on real-world street scenes after being trained only on synthetic data.

Discussion and Limitations

While LayerSegNet effectively segments dominant motion, it currently assumes affine motion (translation, rotation, scaling). This can lead to failures during complex non-rigid deformations, such as a person walking, or when objects move directly toward the camera. Additionally, the current two-motion limit prevents the segmentation of scenes with multiple independent moving objects. Future work will focus on expanding the framework to support multiple layers and more complex, non-affine motion models.

Summary updated

BibTeX
@inproceedings{shrestha2021learning,
  author = {Sahir Shrestha and Mohammad Ali Armin and Hongdong Li and Nick Barnes},
  title = {{Learning To Segment Dominant Object Motion From Watching Videos}},
  booktitle = {DICTA},
  year = {2021},
  doi = {10.1109/dicta52665.2021.9647227},
}
Figure