Classifying, Segmenting, and Tracking Object Instances in Video with Mask Propagation

Gedas Bertasius, Lorenzo Torresani

Abstract

We introduce a method for simultaneously classifying, segmenting and tracking object instances in a video sequence. Our method, named MaskProp, adapts the popular Mask R-CNN to video by adding a mask propagation branch that propagates frame-level object instance masks from each video frame to all the other frames in a video clip. This allows our system to predict clip-level instance tracks with respect to the object instances segmented in the middle frame of the clip. Clip-level instance tracks generated densely for each frame in the sequence are finally aggregated to produce video-level object instance segmentation and classification. Our experiments demonstrate that our clip-level instance segmentation makes our approach robust to motion blur and object occlusions in video. MaskProp achieves the best reported accuracy on the YouTube-VIS dataset, outperforming the ICCV 2019 video instance segmentation challenge winner despite being much simpler and using orders of magnitude less labeled data (1.3M vs 1B images and 860K vs 14M bounding boxes).

Introduction: The Challenge of Video Instance Segmentation

Video Instance Segmentation (VIS) is a demanding computer vision task that requires simultaneously classifying, segmenting, and tracking every object instance across a video sequence. The core challenge lies in the tension between spatial resolution and temporal context. Precise segmentation requires high-resolution input, which consumes significant GPU memory and often limits training to single frames. However, effective tracking—especially through occlusions or motion blur—requires the model to integrate information across multiple frames.

Prior approaches generally fell into two categories:

  1. Simple but weak: Unified models that were easy to train but struggled with tracking accuracy.
  2. Complex but strong: Multi-stage pipelines that decoupled detection, classification, segmentation, and tracking. These required tuning multiple independent models and massive amounts of pre-training data (e.g., 1 billion images), making them cumbersome and costly.

Methods: The MaskProp Framework

MaskProp builds on the popular Mask R-CNN architecture by adding a dedicated mask propagation branch. This allows the model to leverage temporal context while maintaining a unified, end-to-end trainable structure.

High-level overview of the MaskProp framework showing the generation of clip-level instance tracks.

The process works in three high-level steps:

  1. Instance-Specific Feature Computation: For a detected object in a "center" frame, the model masks the frame's feature map using the predicted instance mask. This isolates the features belonging specifically to that object, preventing background noise from interfering with propagation.
  2. Temporal Propagation: These isolated features are propagated to other frames in a temporal window (a "clip") using deformable convolutions. Instead of using fixed optical flow, the model learns to predict motion offsets to warp features from the center frame to target frames.
  3. Segmenting Propagated Instances: The warped features are combined with the target frame's original features. An instance-agnostic attention map filters out background noise, and a final mask is predicted for that specific instance in the new frame.
Detailed architecture of the three-step mask propagation process including deformable convolutions and attention mechanisms.

Finally, the model generates "clip-level" tracks for every frame in the video. These overlapping clips are aggregated into a single, coherent video-level segmentation using a matching score based on a "soft" Intersection over Union (IoU).

Datasets and Evaluation

MaskProp was primarily evaluated on the YouTube-VIS dataset, containing 2,238 training and 302 validation videos across 40 object categories. For pre-training, the model uses standard datasets including ImageNet (1.3M images) and COCO (860K bounding boxes). Notably, it achieves superior results using orders of magnitude less data than previous leaders who utilized up to 1B images and 14M boxes.

Key Insights and Results

  • Masks as Superior Anchors: Propagating features conditioned on a precise mask provides a cleaner signal for tracking than bounding boxes, which often include background clutter.
  • Unified Architecture: By training the propagation branch end-to-end with detection and segmentation heads, the model learns features specifically optimized for the intertwined tasks of tracking and segmenting.
  • Robustness to Nuisances: Because the model aggregates predictions from multiple overlapping clips, it is naturally robust to temporary occlusions and motion blur. If an object is blurred in one frame, propagated features from adjacent frames can help recover the correct mask.
  • State-of-the-Art Performance: MaskProp achieved 46.6 mAP on the YouTube-VIS validation set, outperforming the 2019 challenge winner (44.8 mAP) and improving upon the MaskTrack R-CNN baseline by 16.3% absolute mAP.
  • Ablation Success: Replacing the mask propagation branch with standard optical flow (FlowNet2) caused mAP to drop from 46.6 to 31.4, highlighting the effectiveness of the learned deformable convolution approach.

Limitations and Future Work

The current training process requires expensive per-pixel mask annotations; the authors suggest exploring versions that can be trained using only bounding box annotations. Additionally, while simpler than an ensemble, the propagation branch adds computational cost during inference. Future work may apply this mask propagation logic to other temporal tasks, such as human pose tracking.

Summary updated

BibTeX
@inproceedings{bertasius2020classifying,
  author = {Gedas Bertasius and Lorenzo Torresani},
  title = {{Classifying, Segmenting, and Tracking Object Instances in Video with Mask Propagation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=wxsbABPoIX},
}
Figure