CapsuleVOS: Semi-Supervised Video Object Segmentation Using Capsule Routing

Kevin Duarte, Yogesh Singh Rawat, Mubarak ShahICCV 2019 · DOI

Abstract

In this work we propose a capsule-based approach for semi-supervised video object segmentation. Current video object segmentation methods are frame-based and often require optical flow to capture temporal consistency across frames which can be difficult to compute. To this end, we propose a video based capsule network, CapsuleVOS, which can segment several frames at once conditioned on a reference frame and segmentation mask. This conditioning is performed through a novel routing algorithm for attention-based efficient capsule selection. We address two challenging issues in video object segmentation: 1) segmentation of small objects and 2) occlusion of objects across time. The issue of segmenting small objects is addressed with a zooming module which allows the network to process small spatial regions of the video. Apart from this, the framework utilizes a novel memory module based on recurrent networks which helps in tracking objects when they move out of frame or are occluded. The network is trained end-to-end and we demonstrate its effectiveness on two benchmark video object segmentation datasets; it outperforms current offline approaches on the Youtube-VOS dataset while having a run-time that is almost twice as fast as competing methods.

Introduction

Semi-supervised Video Object Segmentation (VOS) involves tracking and segmenting a specific object throughout a video sequence, given only its initial mask. This task is inherently difficult as it requires both precise object detection and temporal consistency. Traditional approaches typically fall into two categories: detection-based, which treats frames independently, and propagation-based, which warps masks using optical flow. However, optical flow is computationally expensive and often fails during rapid motion or occlusions. CapsuleVOS addresses these limitations by modeling temporal relationships directly within a capsule-based architecture, enabling the segmentation of multiple frames simultaneously without external motion estimation.

Methodology

CapsuleVOS utilizes Capsule Networks, where groups of neurons (capsules) represent the properties of an entity. The architecture is composed of several key modules:

  1. Two-Branch Architecture: A "Video Branch" uses (2+1)D convolutions to extract spatiotemporal features from an 8-frame clip. Simultaneously, a "Frame Branch" processes the reference frame and its segmentation mask.
  2. Attention-Based Routing: This core component adapts standard capsule routing into an attention mechanism. By treating video capsules as values and frame capsules as queries, the network effectively "conditions" the video features on the target object, selecting relevant temporal information.
  3. Zooming Module: To handle the common issue of small object degradation during downsampling, this module predicts a bounding box around the target, allowing the network to focus on high-resolution local regions.
  4. Memory Module: A recurrent ConvLSTM maintains the object's state over time, which is crucial for re-identifying objects after occlusions or when they temporarily exit the frame.
The CapsuleVOS architecture features a dual-branch design for video and reference frame processing, integrated via attention-based routing.

Results and Discussion

The model was evaluated on the YouTube-VOS and DAVIS-2017 datasets. CapsuleVOS achieved state-of-the-art performance among offline methods on YouTube-VOS with an overall score of 62.3. Notably, the zooming module contributed an 8% performance boost, underscoring the importance of spatial attention.

In terms of efficiency, CapsuleVOS operates at 13.5 FPS on a Titan X Pascal GPU. This is nearly twice as fast as many competing offline and online methods, making it a highly competitive solution for real-time applications. While it excels on YouTube-VOS, its performance on DAVIS-2017 suggests a dependency on training data diversity, as it does not perform online fine-tuning.

CapsuleVOS (Ours) demonstrates a superior balance between segmentation performance and inference speed compared to other VOS methods.

Conclusion

CapsuleVOS introduces an efficient, capsule-based framework for semi-supervised VOS. By replacing optical flow with attention-based routing and incorporating a zooming module, the system achieves high temporal consistency and robustness to small objects. Future work will explore online adaptation to improve generalization to unseen object categories.

Summary updated

BibTeX
@inproceedings{duarte2019capsulevos,
  author = {Kevin Duarte and Yogesh Singh Rawat and Mubarak Shah},
  title = {{CapsuleVOS: Semi-Supervised Video Object Segmentation Using Capsule Routing}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00857},
}
Figure