Causal graph-based video segmentation

Camille Couprie, Clément Farabet, Yann LeCun, Laurent Najman

Introduction

Video segmentation—the process of partitioning a video into spatio-temporally consistent regions—is a fundamental task in computer vision. However, most existing methods face two major hurdles: non-causality and computational complexity. Many algorithms require the entire video or a window of future frames to ensure consistency, making them unsuitable for real-time applications like autonomous driving or live robotics. Furthermore, enforcing temporal consistency often relies on expensive pre-computations like optical flow, preventing interactive speeds on standard hardware.

This paper introduces a fast, causal video segmentation method that achieves temporal consistency without needing to "look ahead" at future frames. By combining independent graph-based image segmentation with a clever graph-matching and marker-propagation strategy, the authors achieve real-time performance (10.5 FPS) on a standard CPU while improving semantic labeling accuracy by over 5%.

Methodology

The approach consists of a three-step pipeline designed for speed and causality:

  1. Independent Segmentation: Each new frame ($t+1$) is first segmented independently using the classic Felzenszwalb and Huttenlocher (FH) graph-based algorithm to produce "candidate" super-pixels ($S'_{t+1}$).
  2. Graph Matching: The algorithm matches segments from the previous frame ($S_t$) to these new candidate segments. The matching uses a similarity measure considering centroid distance, shape overlap, and color intensity differences.
  3. Final Segmentation via Minimum Spanning Forest (MSF): The matches act as "markers" or seeds. These seeds are used to compute the final segmentation ($S_{t+1}$) by solving a global optimization problem.
The causal segmentation pipeline establishes correspondences between the previous frame labels ($S_t$) and new candidate segments ($S'_{t+1}$) using a graph-based matching strategy.

To maintain high efficiency, the authors reuse the graph structure and edge sorting already performed during the independent segmentation step. By treating the final segmentation as a seeded watershed-style problem on an existing graph, they avoid redundant calculations and the need for expensive optical flow pre-computation.

Experimental Results

The researchers evaluated their method using the NYU-Scene dataset (73 frames with dense semantic labeling) and general video sequences to test robustness against moving cameras and large object displacements.

Accuracy and Speed

On the NYU-Scene task, the method achieved 76.27% pixel accuracy, outperforming both frame-by-frame independent segmentation (71.11%) and competing temporal smoothing methods. In terms of speed, the system runs at 10.5 FPS on a 2.3 GHz Intel Core i7 CPU for 320x240 images—roughly 8 times faster than competing CPU-based methods. It also scales well, processing 640x380 images in approximately 0.4 seconds.

Qualitative Performance

Qualitatively, the method successfully reduces the "flicker" common in frame-by-frame semantic labeling, producing much smoother and more stable object boundaries over time, even in complex urban environments.

A sample output demonstrating the method's ability to maintain stable semantic regions in a complex street scene.

Conclusion and Future Work

This research demonstrates that causality is a viable feature for real-time video streams. By using the previous frame's labels as markers, the system maintains high temporal consistency without the computational overhead of non-causal look-aheads. While the results are currently tethered to the quality of the initial FH segmentation, the efficiency gains on standard hardware are significant. Future work may involve GPU implementations to reach true 30+ FPS high-speed performance.

Summary updated

BibTeX
@inproceedings{couprie2013causal,
  author = {Camille Couprie and Clément Farabet and Yann LeCun and Laurent Najman},
  title = {{Causal graph-based video segmentation}},
  booktitle = {ICIP},
  year = {2013},
  url = {https://openreview.net/forum?id=wBWq1MoRnbOj},
}
Figure