Abstract
Segmenting primary objects in a video is an important yet challenging problem in computer vision, as it exhibits various levels of foreground/background ambiguities. To reduce such ambiguities, we propose a novel formulation via exploiting foreground and background context as well as their complementary constraint. Under this formulation, a unified objective function is further defined to encode each cue. For implementation, we design a Complementary Segmentation Network (CSNet) with two separate branches, which can simultaneously encode the foreground and background information along with joint spatial constraints. The CSNet is trained on massive images with manually annotated salient objects in an end-to-end manner. By applying CSNet on each video frame, the spatial foreground and background maps can be initialized. To enforce temporal consistency effectively and efficiently, we divide each frame into superpixels and construct neighborhood reversible flow that reflects the most reliable temporal correspondences between superpixels in far-away frames. With such flow, the initialized foregroundness and backgroundness can be propagated along the temporal dimension so that primary video objects gradually pop-out and distractors are well suppressed. Extensive experimental results on three video datasets show that the proposed approach achieves impressive performance in comparisons with 18 state-of-the-art models.
Introduction
Identifying and segmenting the "primary" object in a video—the one that is most salient and appears consistently—is a core challenge in computer vision. The difficulty lies in inherent ambiguity: motion blur, occlusions, cluttered backgrounds, and "distractor" objects can easily confuse a model. Most existing approaches focus heavily on foreground features, often ignoring the rich information contained in the background. Furthermore, ensuring temporal consistency usually relies on pixel-level optical flow between adjacent frames, which is prone to drift and errors during sudden motion or temporary occlusion.
Methodology
The proposed framework, termed CSP, addresses these challenges through a two-stage approach consisting of a spatial module and a temporal module.
1. The Spatial Module: CSNet
Instead of a single output, the Complementary Segmentation Network (CSNet) uses a shared ResNet-50 backbone that splits into two separate branches: one to predict the foreground and one for the background. The core innovation is a novel objective function that incorporates intersection and union losses. These force the two branches to be mutually exclusive (minimizing overlap) and collectively exhaustive (covering the relevant areas), effectively using the background context to sharpen foreground boundaries.
2. The Temporal Module: Neighborhood Reversible Flow (NRF)
To ensure temporal consistency, the framework moves away from brittle adjacent-frame optical flow. Frames are divided into superpixels, and correspondences are established between a frame and several "key frames" further away in time. A correspondence is only considered reliable if it is "reversible" (e.g., superpixel A in frame 1 points to superpixel B in frame 10, and B points back to A). This flow is used to propagate foreground/background scores across the video via a quadratic optimization problem with an analytic solution, ensuring high efficiency.
Experimental Results
The model was evaluated on three diverse benchmarks: SegTrack V2 (irregular motion), Youtube-Objects (semantic categories), and VOS (human eye-tracking data). CSNet was pre-trained on massive image-based saliency datasets to learn robust spatial features before being applied to video sequences.
As shown in the quantitative results, the proposed CSP model achieved state-of-the-art performance across multiple metrics. It achieved the highest Mean IoU (mIoU) and F-measure on the Youtube-Objects (mIoU: 0.675) and VOS (mIoU: 0.747) datasets. On SegTrack V2, it ranked second, only slightly behind NLC, which relies on specific motion assumptions that are less robust in complex, daily video scenarios.
Beyond accuracy, CSP is significantly faster than other video-based models. It processes frames at approximately 0.20s/frame, whereas high-performing models like NLC can take up to 19.0s/frame. This efficiency makes the framework viable for large-scale video processing.
Conclusion
By treating the background as a symbiotic constraint to the foreground and utilizing non-local temporal consistency through reversible flows, this research provides a robust and efficient solution for primary video object segmentation. Future work will explore fully end-to-end spatiotemporal models incorporating recursive mechanisms and semantic tags to further resolve high-level category ambiguities.
Summary updated