Learning depth via leveraging semantics: Self-supervised monocular depth estimation with both implicit and explicit semantic guidance

Rui Li, Danna Xue, Shaolin Su, Xiantuo He, Qing Mao, Yu Zhu, Jinqiu Sun, Yanning Zhang

Abstract

Self-supervised monocular depth estimation is a critical task for autonomous systems, yet existing methods often struggle with object boundary "bleeding" and unusual geometries due to a reliance on purely photometric consistency. This paper introduces a dual-guidance approach that leverages semantic information both implicitly and explicitly. We propose a Semantic-aware Spatial Feature Alignment (SSFA) module to integrate category-level priors into depth features and a semantic-guided ranking loss to enforce structural consistency. To mitigate the impact of noisy pseudo-labels, a robust cross-border sampling strategy is employed. Our approach achieves state-of-the-art results on the KITTI benchmark, demonstrating superior edge preservation and robustness in complex scenes.

Introduction

Estimating 3D depth from a single 2D image is an ill-posed problem central to robotics and autonomous driving. While self-supervised methods using photometric consistency have removed the need for expensive LiDAR ground truth, they typically ignore the underlying scene semantics. This omission leads to significant artifacts, particularly at object boundaries where depth changes abruptly, and causes failures when encountering objects that deviate from standard geometric priors. This research addresses these limitations by making the depth estimation network "semantically aware," using object categories as a powerful structural prior for 3D geometry.

Methodology

The proposed framework extends the standard self-supervised depth estimation pipeline with a semantic segmentation branch. Semantic information is utilized through two primary mechanisms:

Implicit Guidance: SSFA Module

The Semantic-aware Spatial Feature Alignment (SSFA) module aligns features from the semantic branch with those in the depth branch. Rather than simple concatenation, SSFA uses semantic categories to spatially normalize and align depth features, ensuring they conform to category-specific distributions.

Explicit Guidance: Semantic-Guided Ranking Loss

A novel loss function explicitly enforces depth smoothness within a single semantic category while encouraging sharp depth jumps across semantic boundaries. This ensures that objects like cars or pedestrians maintain a consistent depth profile while being clearly separated from the background.

Overview of the proposed multi-task framework featuring the SSFA module and semantic-guided ranking loss.

Robustness to Noisy Labels

Since high-quality semantic labels are scarce, the system utilizes pseudo-labels from pre-trained models. To handle the inherent noise, the authors implement a cross-border point pair sampling strategy that uses image gradients to identify true physical edges near noisy semantic boundaries. Additionally, an uncertainty-aware weighting factor based on the segmentation network's confidence is used to discount unreliable labels.

Experimental Results

The model was evaluated on the KITTI 2015 dataset using a ResNet-50 backbone.

Quantitative Performance

The proposed method achieved an Absolute Relative error (Abs Rel) of 0.103, outperforming established models such as PackNet (0.111). With online refinement, the error further decreased to 0.095, setting a new state-of-the-art for self-supervised monocular depth estimation.

Qualitative Analysis

Qualitative results demonstrate a significant reduction in "bleeding artifacts" at object edges compared to baseline methods. The model also shows improved accuracy for unusual object categories, such as uniquely shaped trucks, which often pose challenges for purely photometric approaches.

Qualitative comparison showing the proposed method's ability to produce sharper object boundaries and handle complex geometries compared to PackNet.

Conclusion and Future Work

By integrating semantic guidance both implicitly through feature alignment and explicitly through a structured loss function, this work significantly advances the state of self-supervised monocular depth estimation. While the reliance on external segmentation models introduces some complexity, the system's robustness to noisy labels makes it a practical solution for real-world applications. Future work will explore using semantic information for post-prediction depth refinement to further enhance map sharpness and accuracy.

Summary updated

BibTeX
@article{li2021learning,
  author = {Rui Li and Danna Xue and Shaolin Su and Xiantuo He and Qing Mao and Yu Zhu and Jinqiu Sun and Yanning Zhang},
  title = {{Learning depth via leveraging semantics: Self-supervised monocular depth estimation with both implicit and explicit semantic guidance}},
  journal = {Pattern Recognition},
  year = {2021},
  doi = {10.1016/j.patcog.2022.109297},
}
Figure