Spatiotemporal Graph Neural Network based Mask Reconstruction for Video Object Segmentation

Daizong Liu, Shuangjie Xu, Xiao-Yang Liu, Zichuan Xu, Wei Wei, Pan Zhou

Abstract

Semi-supervised Video Object Segmentation (VOS) typically relies on detection-based methods that employ greedy search strategies to select the single best object proposal per frame. However, such approaches often discard valuable local details present in sub-optimal proposals and struggle with occlusions. This paper introduces the Spatiotemporal Graph Neural Network (STG-Net), a novel framework that treats object proposals as nodes in a graph to aggregate "the wisdom of the crowd." By constructing spatial graphs to reconstruct masks from multiple proposals and temporal graphs to leverage historical memory, STG-Net achieves state-of-the-art performance on major benchmarks like DAVIS and YouTube-VOS without requiring slow online fine-tuning.

Introduction

Video Object Segmentation (VOS) in a semi-supervised setting involves tracking and segmenting a specific object throughout a video, given only the mask of the first frame. Current "detection-based" methods usually generate many potential bounding box proposals for an object in each frame and then use a greedy search to pick the "best" one. The problem with this approach is that if the chosen proposal is slightly off or missing a part (e.g., a limb or a wheel), those local details are lost forever. Furthermore, these methods struggle when objects are occluded or temporarily disappear.

Comparison between greedy search and the proposed graph-based reconstruction in an occlusion scenario.

STG-Net addresses these issues by arguing that instead of discarding "sub-optimal" proposals, they should be treated as a collection of local patches that, when combined, reconstruct a much more accurate mask. This shift from selection to aggregation allows the model to recover fine-grained details that other methods miss, particularly in challenging scenarios like the carousel occlusion shown above.

Methodology

The STG-Net architecture consists of three primary stages: proposal generation, spatial graph construction, and temporal graph construction.

Overview of the STG-Net pipeline, from input video to final mask result.

Spatial Graph Construction

For a single frame, the model treats every object proposal as a node in a graph. It uses a clever edge-weighting strategy—combining visual feature similarity and spatial overlap (IoU)—to determine how much information to share between nodes. By updating these nodes through the graph, the model aggregates local details scattered across different proposals to reconstruct a superior mask.

Temporal Graph Construction

To handle the temporal dimension, the model maintains a memory of masks from previous frames. It treats the current reconstructed mask and historical masks as nodes in a temporal graph. By retrieving relevant "mask memories," the network can refine the current frame's output, which is especially helpful for maintaining consistency during long-term occlusions.

Motion Model & Mask Selection

To keep the graph organized, a motion model predicts where the object should be based on its average velocity. This helps group proposals belonging to the same object. Finally, a specialized score function selects the best-reconstructed mask from the spatial graph to pass into the temporal refinement stage. The entire pipeline is end-to-end trainable using a composite loss function that balances mask accuracy with the reliability of the selection process.

Experiments and Results

The model was evaluated on four major VOS benchmarks: DAVIS 2016 & 2017, YouTube-VOS, SegTrack-v2, and YouTube-Objects. STG-Net achieved state-of-the-art results among methods not using online learning:

  • DAVIS 2017: On the difficult test-dev set, it reached a global mean score ($G_M$) of 63.1, outperforming the previous best (FEEL) by a significant 5.3%.
  • YouTube-VOS: It achieved a $G_M$ of 73.0, setting a new benchmark for efficiency and accuracy.
  • Efficiency: The model runs at approximately 6 FPS, which is significantly faster than methods requiring online fine-tuning (which often run at <0.1 FPS).

Qualitatively, visual results show the model successfully "re-finding" objects after they pass behind obstacles and maintaining much sharper boundaries on complex shapes compared to matching-based or greedy detection methods.

Discussion and Conclusion

The core innovation of STG-Net is the use of GNNs to aggregate information rather than a greedy search to select it. This allows the model to leverage "bad" proposals that contain "good" local details. While the model is efficient due to its offline processing nature, it still depends on the quality of initial proposals from an offline detector like Mask R-CNN. If the detector fails to find any proposals for an object at all, the spatial graph has nothing to work with. Future directions include integrating proposal generation and the spatiotemporal graph into a more unified, single-stage architecture to further improve both speed and accuracy.

Summary updated

BibTeX
@inproceedings{liu2021spatiotemporal,
  author = {Daizong Liu and Shuangjie Xu and Xiao-Yang Liu and Zichuan Xu and Wei Wei and Pan Zhou},
  title = {{Spatiotemporal Graph Neural Network based Mask Reconstruction for Video Object Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i3.16307},
}
Figure