NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Self-supervised Monocular Depth Estimation: Solving the Dynamic Object Problem by Semantic Guidance

Marvin Klingner, Jan-Aike Termöhlen, Jonas Mikolajczyk, Tim Fingscheidt

Abstract

Self-supervised monocular depth estimation is a promising approach for autonomous driving, enabling models to learn 3D structure from video sequences without expensive LiDAR labels. However, standard models often fail when encountering moving objects because they rely on a "static-world assumption." We introduce SGDepth, a method that utilizes semantic segmentation to identify and mask moving objects during training. By intelligently learning geometry from static examples of dynamic classes, SGDepth achieves state-of-the-art results on the KITTI benchmark, producing significantly sharper depth maps and more accurate object boundaries.

Introduction

The core mechanism of self-supervised depth estimation involves "warping" one video frame into another based on predicted depth and camera motion. If the depth is accurate, the warped image should match the target image, minimizing the "photometric error." This logic breaks down for dynamic-class (DC) objects like moving cars or pedestrians. For instance, a car moving at the same speed as the observer appears stationary in the video, leading the model to incorrectly predict infinite depth. These errors contaminate the loss function, resulting in blurry boundaries and inaccurate geometry.

Methodology

SGDepth addresses the dynamic object problem through three primary innovations:

Cross-Domain Multi-Task Learning

The architecture employs a shared ResNet18 encoder with two specialized heads: one for depth estimation and one for semantic segmentation. The segmentation head is trained with supervision on the Cityscapes dataset, while the depth head is trained self-supervised on KITTI. This multi-task approach allows the model to leverage semantic information to guide geometric learning.

High-level architecture of SGDepth showing cross-task guidance between depth and segmentation domains.

Semantic Masking and DC Object Handling

To prevent moving objects from corrupting the depth training, SGDepth uses predicted semantic masks to identify DC objects. However, masking all cars would prevent the model from ever learning their 3D shape. To solve this, the authors implement an Intersection-over-Union (IoU) check between the current segmentation mask and a projected mask from the adjacent frame. If the masks align well, the object is deemed static (e.g., a parked car) and its depth is learned. If they do not align, the object is masked out of the photometric loss calculation.

Visualization of the semantic masking process, showing how dynamic-class objects are identified and masked to prevent photometric errors.

Gradient Scaling

To ensure that neither task dominates the shared encoder, a gradient scaling factor (λ) is applied during backpropagation. This ensures that the learned features remain beneficial for both semantic understanding and geometric estimation, helping the model bridge the domain shift between different datasets.

Results and Discussion

SGDepth achieves state-of-the-art performance on the KITTI Eigen split, reaching an Absolute Relative Error (Abs Rel) of 0.107 at a resolution of 1280x384. Qualitatively, the model produces depth maps with significantly sharper boundaries for small objects like traffic signs and clearer silhouettes for pedestrians compared to previous baselines like Monodepth2.

The results demonstrate a mutual benefit between tasks: semantic segmentation provides structural edges for depth, while the depth task helps the segmentation model generalize across different domains by providing structural context. Interestingly, the method even outperformed some approaches that utilize stereo pairs for training, despite SGDepth only requiring monocular video.

Conclusion

SGDepth effectively solves the dynamic object problem in self-supervised depth estimation by filtering training data to maintain the static-world assumption. By focusing on static instances of dynamic classes, the model learns accurate geometry without the need for complex 3D motion modeling. Future work may involve optimizing the balance between depth and pose estimation to further enhance performance and exploring scenarios where dynamic classes lack static examples.

Summary updated

BibTeX
@inproceedings{klingner2020self,
  author = {Marvin Klingner and Jan-Aike Termöhlen and Jonas Mikolajczyk and Tim Fingscheidt},
  title = {{Self-supervised Monocular Depth Estimation: Solving the Dynamic Object Problem by Semantic Guidance}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58565-5\_35},
}
Figure