Abstract
Video object segmentation (VOS) and optical flow (OF) estimation are fundamental tasks in computer vision that are inherently linked through motion and spatial structure. We present SegFlow, an end-to-end deep learning framework that jointly learns these two tasks. By employing a bi-directional architecture, SegFlow enables feature sharing between a segmentation branch and an optical flow branch. Our results demonstrate that joint training improves performance for both tasks, providing more consistent segmentation boundaries and smoother flow predictions compared to single-task baselines.
Introduction
In video analysis, Video Object Segmentation (identifying pixel-wise object masks) and Optical Flow (estimating per-pixel motion) are typically treated as independent problems. However, they are deeply intertwined: segmentation benefits from motion cues to maintain temporal consistency, while optical flow algorithms can leverage object boundaries to handle fast-moving objects and reduce noise.
Previous attempts to unify these tasks often relied on slow "online" optimization methods. SegFlow addresses this by proposing a unified, fast, and trainable neural network that allows these two tasks to "talk" to each other in real-time.
Methodology
The SegFlow architecture consists of a two-branch convolutional neural network (CNN) designed for simultaneous feature extraction and task-specific prediction.
Architecture
The framework integrates two specialized backbones:
- Segmentation Branch: Based on a fully convolutional ResNet-101, it extracts multi-scale "objectness" features.
- Optical Flow Branch: Based on the FlowNetS architecture, it captures motion between adjacent frames ($t$ and $t+1$).
Bi-directional Feature Propagation
The core innovation of SegFlow is the bi-directional connection between branches. Feature maps from the segmentation branch are up-scaled and concatenated into the flow branch, and vice versa, at multiple scales (1/8, 1/16, and 1/32 of the original resolution). This allows the flow branch to utilize spatial object boundaries and the segmentation branch to incorporate temporal motion information.
Iterative Training Strategy
A challenge in joint learning is the scarcity of datasets with ground-truth labels for both tasks. To overcome this, we employ an iterative training scheme. We alternate between freezing one branch and training the other on its respective specialized dataset (e.g., DAVIS for segmentation, Scene Flow for optical flow). This allows the model to converge by leveraging the strengths of separate, large-scale datasets.
Experiments and Results
We evaluated SegFlow on several benchmarks, including DAVIS for segmentation and MPI Sintel, Flying Chairs, and KITTI for optical flow.
Quantitative Performance
- Segmentation: On the DAVIS dataset, SegFlow achieved a J-mean of 0.748, significantly outperforming versions of the model that lacked the flow branch.
- Optical Flow: The joint model reduced the Average Endpoint Error (EPE). On the Scene Flow (Monkaa Clean) dataset, it achieved an EPE of 4.06, a notable improvement over the FlowNetS baseline of 5.60.
Qualitative Analysis
Visual results indicate that the joint learning framework produces sharper object boundaries in segmentation and more coherent motion fields in optical flow.
Efficiency
SegFlow is highly efficient, processing frames at 0.3 seconds per frame (offline) on a Titan X GPU. Even with online fine-tuning—adjusting to a specific object in the first frame—it runs at approximately 7.9 seconds per frame, which is significantly faster than previous joint optimization methods like ObjectFlow (OFL), which requires roughly 120 seconds per frame.
Discussion and Conclusion
The primary insight from SegFlow is that feature-level fusion provides a richer exchange of information than simple output-level coupling. Flow acts as a "temporal anchor" for segmentation, while segmentation serves as a "spatial guide" for flow.
While the model shows some sensitivity to smaller datasets and still benefits from first-frame fine-tuning, the bi-directional framework is a generalized approach. Future work could extend this architecture to other correlated video tasks, such as depth estimation or object detection.
Summary updated