Regularizing Nighttime Weirdness: Efficient Self-supervised Monocular Depth Estimation in the Dark

Kun Wang, Zhenyu Zhang, Zhiqiang Yan, Xiang Li, Baobei Xu, Jun Li, Jian Yang

Introduction

Self-supervised monocular depth estimation—the ability to predict 3D distance from a single 2D image without expensive LiDAR labels—is a critical component for autonomous driving. While these systems perform exceptionally well in daylight, they often fail at night, producing "weird" artifacts and massive "holes" in depth maps. This failure stems from two primary issues: low visibility in dark, textureless regions and varying illumination from flickering streetlights and moving headlights, which violate the fundamental "brightness-consistency assumption" used in self-supervised learning.

To address these challenges, researchers have introduced the RNW (Regularizing Nighttime Weirdness) framework. By leveraging daytime depth priors and brightness-consistent image enhancement, RNW stabilizes the learning process and produces smooth, accurate geometry in low-light conditions.

Methods

The RNW framework introduces three novel components designed to mitigate the specific failures of nighttime vision:

  1. Priors-Based Regularization (PBR): This module uses an adversarial training setup where a discriminator learns the distribution of "normal" depth maps from abundant daytime data. It penalizes the nighttime model if its predictions deviate into unrealistic distributions, effectively using daytime knowledge to guide nighttime learning.
  2. Mapping-Consistent Image Enhancement (MCIE): Standard image enhancement often disrupts the geometric consistency between video frames. MCIE employs a modified version of Contrast Limited Histogram Equalization (CLHE) that applies a consistent mapping function across frames, brightening the scene for the AI without breaking the underlying math required for depth estimation.
  3. Statistics-Based Mask (SBM): To prevent the model from learning from unreliable data, SBM identifies dark or featureless patches using dynamic statistics (Exponentially Weighted Moving Averages) and masks them out during training.
The RNW framework architecture featuring MCIE, SBM, and the PBR module.

Datasets and Evaluation

The framework was rigorously evaluated on two major nighttime benchmarks:

  • RobotCar-Night: A curated version of the Oxford RobotCar dataset, cleaned to remove moving objects that corrupt ground-truth data.
  • nuScenes-Night: A large-scale dataset featuring diverse urban driving scenes in Boston and Singapore.

Daytime counterparts of these datasets provided the "priors" for the PBR module, demonstrating that the model can learn general geometric characteristics without needing paired day-night images of the same scene.

Key Insights

  • Unpaired Knowledge Transfer: The model does not require perfectly aligned day/night image pairs. It learns the general properties of real-world geometry (e.g., roads are planes, the sky is distant) from daytime data and applies these constraints to nighttime scenes.
  • Consistency in Enhancement: Simply brightening an image is insufficient; the enhancement must be mathematically consistent across sequential frames to maintain the validity of the self-supervised training signal.
  • Adversarial Stability: The discriminator acts as a "safety rail," preventing the network from predicting infinite depth in black regions simply because it lacks visual features.

Key Results

The RNW framework achieves a significant quantitative and qualitative leap over previous state-of-the-art models like MonoDepth2 and PackNet. On the RobotCar-Night dataset, the framework improved the "Squared Relative Error" (Sq Rel) by 93.0% compared to the baseline.

Qualitative comparison between MonoDepth2 and the proposed RNW framework.

Visually, the results are stark. While previous models produce depth maps riddled with noise and geometric "holes," RNW generates smooth, plausible depth maps that correctly identify objects even in extreme low-light conditions. Furthermore, the model remains efficient enough for real-time robotics applications.

Limitations and Future Work

Despite its success, the framework faces challenges in extreme darkness where illumination is near zero, leading to coarser estimations. Additionally, the "static scene" assumption remains a hurdle in environments with many moving vehicles. Future research may involve extending these regularization techniques to other perception tasks, such as optical flow, to further enhance nighttime AI robustness.

Summary updated

BibTeX
@inproceedings{wang2021regularizing,
  author = {Kun Wang and Zhenyu Zhang and Zhiqiang Yan and Xiang Li and Baobei Xu and Jun Li and Jian Yang},
  title = {{Regularizing Nighttime Weirdness: Efficient Self-supervised Monocular Depth Estimation in the Dark}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01575},
}
Figure