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

Depth: Self-Supervised Depth Estimation with Dynamic Mask in Dynamic Scenes

Siyu Chen, Hong Liu, Wenhao Li, Ying Zhu, Guoquan Wang, Jianbing WuarXiv 2024

Abstract

Depth estimation is a crucial technology in robotics. Recently, self-supervised depth estimation methods have demonstrated great potential as they can efficiently leverage large amounts of unlabelled real-world data. However, most existing methods are designed under the assumption of static scenes, which hinders their adaptability in dynamic environments. To address this issue, we present D$^3$epth, a novel method for self-supervised depth estimation in dynamic scenes. It tackles the challenge of dynamic objects from two key perspectives. First, within the self-supervised framework, we design a reprojection constraint to identify regions likely to contain dynamic objects, allowing the construction of a dynamic mask that mitigates their impact at the loss level. Second, for multi-frame depth estimation, we introduce a cost volume auto-masking strategy that leverages adjacent frames to identify regions associated with dynamic objects and generate corresponding masks. Furthermore, we propose a spectral entropy uncertainty module that incorporates spectral entropy to guide uncertainty estimation during depth fusion, effectively addressing issues arising from cost volume computation in dynamic environments. Extensive experiments on KITTI and Cityscapes datasets demonstrate that the proposed method consistently outperforms existing self-supervised monocular depth estimation baselines.

Introduction: The Challenge of Dynamic Scenes

Most self-supervised depth estimation (SSDE) models rely on a "static world" assumption. They learn by attempting to "reproject" one video frame onto another; if the world is static and the camera moves, the geometric consistency holds perfectly. However, real-world environments, particularly urban roads, are filled with dynamic objects like moving vehicles and pedestrians.

When an object moves independently of the camera, the photometric consistency assumption breaks. Standard models like Monodepth2 attempt to mitigate this using a "Minimum Reprojection Loss," which selects the best-matching adjacent frame. However, this strategy fails when an object creates high errors in both adjacent frames or when occlusions are complex. Existing solutions often require expensive extras like semantic segmentation or optical flow, which increase computational overhead and slow down inference.

Comparison of $D^3epth$ with Monodepth2. The lower half shows a scenario where Monodepth2 fails because the moving car causes high loss in both frames, while the Dynamic Mask (DM) correctly identifies and ignores the region.

Methodology

The $D^3epth$ framework introduces three key innovations to handle dynamic scenes effectively:

  1. Dynamic Mask (DM): This operates at the loss level during training. The model calculates reprojection errors from two source images. If a region shows high loss in both cases, it is flagged as a dynamic object or an occlusion. The DM then masks these regions out, preventing the model from learning from "garbage" data. Instead of using a hard threshold, the DM uses a $p$-th quantile, making the masking adaptive to specific lighting and texture conditions.
  2. Cost Volume Auto-Masking (CAM): In multi-frame depth estimation, cost volumes are built to match features across frames. $D^3epth$ identifies pixels that remain stationary relative to the camera and masks them before cost volume construction, reducing noise from the start.
  3. Spectral Entropy Uncertainty (SEU) Module: This module quantifies uncertainty in depth predictions by moving the cost probability tensor into the frequency domain using a Fast Fourier Transform (FFT). By calculating "spectral entropy," the model can identify "noisy" areas. This uncertainty value is then used to intelligently fuse single-frame and multi-frame depth estimates.
The DepthNet framework in $D^3epth$, showing how the SEU module and Cost Volume Auto-Masking integrate into the pipeline.

Experiments and Results

The model was evaluated on two primary benchmarks:

  • KITTI: A classic outdoor driving dataset. While widely used, it is relatively static, with only ~0.34% of pixels being dynamic. $D^3epth$ reached state-of-the-art performance levels here, though improvements were naturally more marginal than on dynamic datasets.
  • Cityscapes: A more challenging dataset with a high prevalence of moving objects. Here, $D^3epth$ demonstrated significant gains, reducing the Absolute Relative Error (AbsRel) to 0.097, a substantial improvement over Monodepth2’s 0.129.

Qualitatively, the model produces much sharper depth maps for moving objects. It provides precise delineation of fine details like pedestrians and road signs that are often blurred or missed by baseline models. Importantly, because these modules are integrated efficiently, the model achieves this accuracy with zero extra computational cost during inference.

Conclusion

$D^3epth$ presents a robust solution for self-supervised depth estimation in dynamic environments. By addressing dynamic objects at both the loss level (Dynamic Mask) and the architectural level (CAM and SEU), it achieves superior accuracy without the "inference tax" usually paid for dynamic scene handling. Future work will focus on further refining the distinction between high-loss areas caused by motion versus complex geometry.

Code is available at: https://github.com/Csyunling/D3epth

Summary updated

BibTeX
@misc{chen2024depth,
  author = {Siyu Chen and Hong Liu and Wenhao Li and Ying Zhu and Guoquan Wang and Jianbing Wu},
  title = {{Depth: Self-Supervised Depth Estimation with Dynamic Mask in Dynamic Scenes}},
  year = {2024},
  eprint = {2411.04826},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.04826},
}
Figure