Abstract
We leverage unsupervised learning of depth, egomotion, and camera intrinsics to improve the performance of single-image semantic segmentation, by enforcing 3D-geometric and temporal consistency of segmentation masks across video frames. The predicted depth, egomotion, and camera intrinsics are used to provide an additional supervision signal to the segmentation model, significantly enhancing its quality, or, alternatively, reducing the number of labels the segmentation model needs. Our experiments were performed on the ScanNet dataset.
Introduction
Training deep learning models for semantic segmentation—assigning a class label to every pixel in an image—typically requires massive datasets with expensive, pixel-perfect human annotations. While video streams offer a natural solution, as objects exhibit temporal coherency and obey 3D geometric constraints across frames, exploiting these cues usually requires specialized video-segmentation architectures or RGB-D sensors.
This paper introduces a method to improve standard single-image semantic segmentation by enforcing spatio-temporal (4D) consistency across video frames during training. By leveraging off-the-shelf unsupervised models for depth and camera motion, the authors create a self-supervisory signal that reduces the need for manually labeled data by up to a factor of four, while significantly boosting performance on rare object classes.
Methodology
The authors propose a semi-supervised training pipeline that is entirely architecture-agnostic. They utilize three models: one for semantic segmentation, one for depth estimation, and one for camera egomotion. Crucially, the depth and motion models are trained in a completely unsupervised manner.
During training on consecutive video frames ($I_t$ and $I_{t+1}$):
- The system predicts the depth of the first frame and the camera motion between the two frames.
- Using these 3D geometric estimates, it mathematically "warps" the segmentation prediction (logits) from frame $t$ to frame $t+1$.
- A consistency loss is applied to penalize differences between this warped prediction and the actual prediction generated for frame $t+1$.
To make this loss robust, the authors use a weighted combination of three priors: a Uniform prior for standard average difference, a Label Prior to penalize inconsistencies in classes the model believes are present, and a Pixel Prior to focus on object edges using a 2D edge detector.
Experimental Setup
The method was evaluated on the ScanNet dataset, which contains 2.5 million views across 1,500 indoor RGB-D video sequences annotated with 21 semantic classes. To test the semi-supervised approach, the authors artificially restricted available training labels to tiny fractions (0.1% to 4%) of the dataset, using the remaining unlabeled video frames to enforce the spatio-temporal consistency loss.
Key Results and Insights
The proposed method demonstrates that 3D geometry and temporal continuity act as excellent self-supervisory signals. By forcing a model to understand that an object in one frame is the same object in the next, the model learns better object boundaries and permanence without needing additional human labels.
- Data Efficiency: The method achieved a 4x reduction in required labels. A model trained with only 0.5% labeled data and consistency loss matched the performance (approx. 49% MIOU) of a baseline model requiring 2.0% labeled data.
- Low-Supervision Boost: At an extreme 0.1% supervision regime, the consistency loss improved the baseline MIOU from 39.8% to 43.3%.
- Rare Class Performance: The consistency loss is disproportionately beneficial for rare classes (e.g., "door" or "picture"). By propagating labels across frames, it effectively multiplies training examples for infrequent objects.
Qualitatively, the consistency-trained model produced smoother predictions with fewer fragmentation artifacts and successfully identified rare objects that baseline models missed.
Limitations and Future Work
The current approach assumes a static scene, as the motion model only estimates camera egomotion and does not account for independently moving objects. Additionally, the authors observed diminishing returns at high supervision levels (above 4%), likely due to strong visual correlations in the ScanNet dataset.
Future directions include extending the framework to dynamic scenes by estimating 3D object motion and "closing the loop" by allowing the improved segmentation model to provide feedback to the depth and motion models.
Summary updated