Three Ways To Improve Semantic Segmentation With Self-Supervised Depth Estimation

Lukas Hoyer, Dengxin Dai, Yuhua Chen, Adrian Köring, Suman Saha, Luc Van Gool

Abstract

Training deep networks for semantic segmentation requires large amounts of labeled training data, which presents a major challenge in practice, as labeling segmentation masks is a highly labor-intensive process. To address this issue, we present a framework for semi-supervised semantic segmentation, which is enhanced by self-supervised monocular depth estimation from unlabeled image sequences. In particular, we propose three key contributions: (1) We transfer knowledge from features learned during self-supervised depth estimation to semantic segmentation, (2) we implement a strong data augmentation by blending images and labels using the geometry of the scene, and (3) we utilize the depth feature diversity as well as the level of difficulty of learning depth in a student-teacher framework to select the most useful samples to be annotated for semantic segmentation. We validate the proposed model on the Cityscapes dataset, where all three modules demonstrate significant performance gains, and we achieve state-of-the-art results for semi-supervised semantic segmentation.

Introduction

Semantic segmentation—the task of assigning a category label to every pixel in an image—is notoriously expensive to train. Annotating a single image from the popular Cityscapes dataset takes a human roughly 1.5 hours. While semi-supervised learning (using a small amount of labeled data and a large amount of unlabeled data) helps, it often struggles to capture the complex geometric structures of a scene.

This paper demonstrates how to significantly boost semi-supervised semantic segmentation by leveraging "free" geometric information from self-supervised monocular depth estimation (SDE). By using depth to guide feature learning, data augmentation, and sample selection, the proposed framework achieves 92% of the performance of a fully supervised model using only 1/30th of the manual labels.

Methodology

The authors propose a threefold framework to integrate SDE into the segmentation pipeline:

1. Cross-Task Representation Learning

The model uses a shared encoder for both depth and segmentation tasks. It is first pre-trained on the SDE task using unlabeled video. Then, it is trained in a multi-task setup where depth estimation acts as an auxiliary task, helping the encoder maintain a "geometric awareness" that benefits pixel-level classification. Depth estimation forces the network to learn about object boundaries and spatial relationships, which are critical features for clean semantic segmentation.

Overview of the proposed multi-task architecture integrating self-supervised depth estimation (SDE) and semantic segmentation.

2. DepthMix Augmentation

Standard data augmentation techniques like ClassMix blend parts of two images together but often create "unphysical" artifacts, such as a car floating in the sky. DepthMix uses predicted depth maps to ensure that when pixels are pasted from one image to another, they respect the scene's geometry (e.g., closer objects correctly occlude distant ones). By simply checking if Depth_A < Depth_B, the model creates synthetic training images that are much more realistic, preventing the network from learning impossible spatial configurations.

Comparison between ClassMix (baseline) and the proposed DepthMix, which utilizes depth information to maintain geometric consistency during data augmentation.

3. Automatic Data Selection

Instead of manual active learning, the authors use SDE as a proxy oracle. They select images based on diversity (using depth features to ensure a wide variety of scenes) and uncertainty (selecting images where a "student" depth model struggles to match a "teacher" SDE model). This removes the human-in-the-loop requirement for data selection, as a model's difficulty in learning depth for a specific image is a strong signal that it will also find segmentation difficult.

Results

The proposed method sets a new state-of-the-art for semi-supervised semantic segmentation on the Cityscapes dataset:

  • Extreme Data Scarcity: With only 100 labeled images (1/30th), the model achieves 62.09 mIoU, a massive +13.3% improvement over the baseline.
  • Efficiency: Using only 372 labels (1/8th), the model reaches 68.01 mIoU, which actually outperforms the baseline model trained on the entire dataset of 2,975 labels.
  • Qualitative Gains: Resulting segmentations show much sharper boundaries around thin or complex objects like poles, traffic signs, and pedestrians compared to previous methods.

Conclusion

By leveraging the inherent link between depth and semantics, this framework significantly improves segmentation performance in data-constrained environments. While the method relies on unlabeled video sequences for SDE, the resulting geometric regularizer and realistic data augmentation provide substantial benefits. Future work could extend this depth-aware approach to other tasks like object detection or instance segmentation where 3D spatial reasoning is critical.

Summary updated

BibTeX
@inproceedings{hoyer2021three,
  author = {Lukas Hoyer and Dengxin Dai and Yuhua Chen and Adrian Köring and Suman Saha and Luc Van Gool},
  title = {{Three Ways To Improve Semantic Segmentation With Self-Supervised Depth Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=quf6RDNYs5},
}
Figure