Contextual Guided Segmentation Framework for Semi-supervised Video Instance Segmentation

Trung-Nghia Le, Tam V. Nguyen, Minh-Triet Tran

Abstract

Semi-supervised video instance segmentation is the challenging task of tracking and masking specific objects throughout a video sequence, given only the ground-truth mask for the initial frame. We present Contextual Guided Segmentation (CGS), a three-pass framework that adapts its segmentation strategy based on the specific properties of the target object. By moving away from standard rectangular regions of interest (ROIs) in favor of "natural-shaped" ROIs and leveraging a novel data augmentation technique called Wonderland Data, the system achieved consistent 3rd-place rankings in the DAVIS Video Segmentation Challenges from 2017 to 2019.

Introduction

Video instance segmentation is often considered a "boss level" computer vision problem due to the prevalence of fast motion, occlusions, wild deformations, and complex backgrounds. Most existing methods treat every object uniformly; however, a rigid tractor requires different tracking logic than a dancing human or a fluttering bird. Furthermore, standard deep learning models often focus on rectangular ROIs, which frequently include distracting background pixels that can confuse the segmentation process. CGS addresses these issues by prioritizing context and guided attention.

Figure 1: Examples of the CGS framework applied to rigid objects (tractors) and deformable objects (dancing humans) across multiple frames.

The CGS Framework

The CGS framework operates in three distinct passes to ensure robust tracking and high-quality masking:

  1. Preview Segmentation (The "First Look"): The system utilizes an Instance Re-Identification Flow (IRIF) to obtain a rough estimate of the object's trajectory. Crucially, it extracts "contextual properties" to determine if the object is human, rigid, or a known/unknown category.
  2. Contextual Segmentation (The "Tailored Fit"): Based on the properties identified in the first pass, the system selects a specialized tool:
  3. Humans: Employs skeleton-guided segmentation (via OpenPose) to maintain mask integrity during unusual poses.
  4. Rigid Objects: Trains Fully Convolutional Networks (FCNs) on synthesized data specific to the video.
  5. Deformable/Known Objects: Uses standard instance segmentation architectures like Mask R-CNN.
  6. Guided Segmentation (The "Fine-Tuning"): This stage introduces non-rectangular, natural-shaped ROIs created by analyzing masks in neighboring frames. This "guided attention" eliminates background noise. Additionally, bi-directional propagation—processing the video both forward and backward—allows the system to recover objects lost during fast motion or temporary occlusions.

Finally, all instance masks are merged using a "topological order" based on depth values and object interaction heuristics.

Wonderland Data Augmentation

To improve "one-shot learning," the authors introduced Wonderland Data. Unlike previous methods that used random backgrounds for synthesis, Wonderland uses a hierarchical k-means search on the Places365 dataset to find backgrounds semantically similar to the original video. This ensures the model learns to distinguish the object from realistic, similar environments rather than learning incorrect features from nonsensical pairings (e.g., a boat on a forest floor).

Key Results and Discussion

The CGS framework proved to be one of the most stable and high-performing entries in the DAVIS challenges, achieving 3rd place consistently across the 2017, 2018, and 2019 competitions. On the DAVIS 2019 set, it achieved a Global Score of 75.4%, with a Region Similarity (J) of 72.4% and Contour Accuracy (F) of 78.4%. Ablation studies demonstrated that the addition of the Guided Segmentation pass (Pass 3) alone improved the global score by 9.1% compared to using only the preview pass.

Conclusion

The CGS framework demonstrates that a multi-pass approach informed by object context is significantly more robust than single-shot attempts. Future work will focus on modeling the semantic relationships between objects (e.g., a rider and a horse) and exploring advanced architectures like Capsule Networks to further improve coordination and segmentation accuracy in complex scenes.

Summary updated

BibTeX
@article{le2022contextual,
  author = {Trung-Nghia Le and Tam V. Nguyen and Minh-Triet Tran},
  title = {{Contextual Guided Segmentation Framework for Semi-supervised Video Instance Segmentation}},
  journal = {Mach. Vis. Appl.},
  year = {2022},
  doi = {10.1007/s00138-022-01278-x},
}
Figure