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

Unsupervised Learning of Monocular Depth and Ego-Motion Using Multiple Masks

Guangming Wang, Hesheng Wang, Yiling Liu, Weidong ChenICRA 2019 · DOI

Abstract

A new unsupervised learning method of depth and ego-motion using multiple masks from monocular video is proposed. The depth estimation network and the ego-motion estimation network are trained according to the constraints of depth and ego-motion without truth values. The main contribution of our method is to carefully consider the occlusion of the pixels generated when the adjacent frames are projected to each other, and the blank problem generated in the projection target imaging plane. Two fine masks are designed to solve most of the image pixel mismatch caused by the movement of the camera. In addition, some relatively rare circumstances are considered, and repeated masking is proposed. To some extent, the method is to use a geometric relationship to filter the mismatched pixels for training, making unsupervised learning more efficient and accurate.

Introduction

In autonomous driving and robotics, understanding depth and self-motion (ego-motion) from a single camera is a critical task. While supervised deep learning achieves high performance, it requires expensive ground-truth data like LiDAR scans. Unsupervised methods offer an alternative by learning to reconstruct video frames using estimated depth and motion. However, these methods struggle with occlusion—where objects disappear or new areas appear as the camera moves. Standard algorithms attempt to match these missing pixels, introducing noise into the loss function. This research addresses the pixel mismatch problem caused by occlusions, thin objects, and rapid camera motion through a novel geometric masking framework.

Methodology

The framework extends the standard SfMLearner architecture, comprising separate networks for depth and pose (ego-motion) estimation. The core innovation is the integration of multiple geometric masks into the training process to filter out unreliable pixels.

The proposed unsupervised learning framework utilizing multiple geometric masks to filter unreliable pixels during training.

Multiple Masking Strategy

The system employs three primary masks to refine the learning signal:

  • Overlap Mask ($M_{ove}$): When projecting pixels between frames, multiple 3D points may map to the same 2D pixel. This mask functions as a "Z-buffer," retaining the pixel closest to the camera and masking occluded ones.
  • Blank Mask ($M_{bla}$): This identifies "holes" in the projected image where no source pixels land, typically representing regions occluded in previous frames.
  • Edge Mask ($M_{edg}$): This ignores pixels projected outside the image boundaries.
Illustration of the Overlap Mask ($M_{ove}$) logic, where depth estimates are used to identify and mask occluded pixels.

For complex scenarios like thin objects (e.g., poles) or high-speed motion, the authors propose Repeated Masking, a recursive back-and-forth projection process that iteratively refines the valid pixel set. These masks are incorporated into the Photometric Reconstruction and Structural Similarity (SSIM) loss functions, ensuring the network learns only from valid geometric correspondences.

Results and Evaluation

The model was evaluated on the KITTI and Cityscapes datasets, as well as an uncalibrated bike video dataset to test generalization.

  • Depth Accuracy: On the KITTI Eigen split, the model achieved an Absolute Relative (Abs Rel) error of 0.154, outperforming previous unsupervised methods like GeoNet (0.164).
  • Ego-Motion: Trajectory estimation (ATE) on KITTI sequence 09 reached an error of 0.009, surpassing the classic feature-based ORB-SLAM pipeline (0.014).
  • Generalization: The model demonstrated robust performance on KITTI even when trained on low-quality, uncalibrated bike footage, proving the strength of the geometric masking approach.

Conclusion

By treating occlusion as a geometric constraint rather than an error, this framework provides a cleaner training signal for unsupervised monocular depth estimation. While the current model assumes a static world, future work will focus on integrating dynamic object handling to further improve accuracy in complex urban environments. The use of multiple masks significantly reduces the "bleeding" effect in depth maps, resulting in sharper object boundaries and more reliable ego-motion estimation.

Summary updated

BibTeX
@inproceedings{wang2019unsupervised,
  author = {Guangming Wang and Hesheng Wang and Yiling Liu and Weidong Chen},
  title = {{Unsupervised Learning of Monocular Depth and Ego-Motion Using Multiple Masks}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2019},
  doi = {10.1109/icra.2019.8793622},
}
Figure