Introduction
Autonomous vehicles and robotic systems rely heavily on monocular depth estimation (MDE) to perceive their surroundings. While RGB cameras provide high-resolution textural information, they are notoriously unreliable in adverse conditions such as night, heavy rain, or fog. To mitigate these weaknesses, modern sensor suites often include Near-Infrared (NIR) and Thermal (THR) cameras. However, integrating these diverse spectral bands into a single, efficient depth estimation framework remains a significant challenge.
Existing approaches typically fall into two categories: modality-specific models, which are optimized for a single sensor type, and multi-spectral fusion models, which require all sensors to be active simultaneously. The former is memory-intensive to deploy, while the latter is brittle; if a single sensor fails, the entire depth estimation pipeline often collapses. This paper introduces the "Align-and-Fuse" strategy, a framework designed to bridge the gap between spectral-wise and multi-spectral depth estimation through geometry-guided contrastive learning.
The Challenge: Domain Gaps and System Flexibility
Two primary hurdles prevent the seamless integration of multi-spectral data in MDE:
- The Domain Gap: RGB, NIR, and Thermal images represent different physical properties. RGB captures reflected visible light, NIR captures longer wavelengths often less affected by haze, and Thermal captures emitted heat. Bridging these different "languages" of light into a unified representation of depth is difficult because the structural details present in one (e.g., RGB texture) may be entirely absent in another (e.g., Thermal).
- Efficiency vs. Robustness: Running separate models for each sensor is computationally expensive. Conversely, standard fusion models are often "all-or-nothing." There is a need for a system that can operate on individual sensors when necessary but can also leverage multiple sensors for enhanced robustness when they are available.
Methodology: The Align-and-Fuse Framework
The proposed framework operates in two distinct stages: the Align Stage for generalization across modalities and the Fuse Stage for multi-spectral robustness.
1. The Align Stage (Generalization)
The goal of the Align stage is to enable a single backbone network to process any spectral input. To achieve this, the authors split the feature channels of the network into two components: spectral-shared features (capturing universal geometric structures) and spectral-specific features (capturing modality-unique details).
To synchronize these features, the authors employ Geometry-Guided Contrastive Learning. Recognizing that different cameras have varying fields of view and resolutions, they use geometric cues—specifically intrinsic and extrinsic matrices—to spatially warp features into alignment. They then apply a contrastive loss (InfoNCE) to "pull" shared features from different spectra together in the latent space while "pushing" specific features apart. This process effectively distills the high-level structural knowledge from pre-trained RGB backbones into the NIR and Thermal domains.
2. The Fuse Stage (Robustness)
Once the backbone is capable of handling individual modalities, an attachable feature fusion module is introduced. This module does not require modifying the base architecture, making it highly compatible with existing off-the-shelf MDE models.
- Thermal as the Anchor: Because thermal sensors are generally the most reliable in adverse weather or total darkness, the system uses them as a reference.
- Selective Aggregation: Instead of simple averaging, the model uses an attention mask to calculate consistency between NIR/RGB features and Thermal features. If the RGB features are inconsistent with the Thermal features (e.g., due to glare or motion blur), the model automatically down-weights the RGB contribution.
- Transformer-based Fusion: A Swin Transformer block aggregates these weighted features to produce a final, robust depth map.
Experimental Evaluation
The researchers evaluated their framework using the Multi-Spectral Stereo ($MS^2$) dataset, which includes 162,000 data pairs across RGB, NIR, and Thermal modalities, paired with LiDAR ground truth. The dataset covers diverse environments (city, campus, residential) and weather conditions (day, night, rain).
Quantitative Results
The "Align-and-Fuse" strategy demonstrated superior performance over single-modality baselines and standard joint-training approaches:
- RMSE Improvement: The proposed method achieved a Root Mean Square Error (RMSE) of 3.591, significantly lower than the MiDaS baseline of 4.008.
- Accuracy: The $\delta < 1.25$ accuracy metric, which measures the percentage of pixels where the predicted depth is within a specific factor of the ground truth, improved from 0.868 to 0.902.
Qualitative Insights
In challenging scenarios like nighttime driving or rainy conditions, the fused model successfully ignored sensor-specific artifacts. For instance, while RGB sensors often suffer from light blooming (glare from streetlights), the Align-and-Fuse model leveraged Thermal and NIR data to maintain sharp, accurate depth boundaries that single-modality models failed to capture.
Conclusion and Future Work
The Align-and-Fuse framework provides a flexible and robust solution for multi-spectral depth estimation. By using geometry-guided contrastive learning to create a shared latent space, the model can operate as a single-modality estimator or a high-performance fused system without requiring architectural overhauls.
While the current system relies heavily on accurate camera calibration for the "Align" stage, future work may explore ways to handle calibration drift in real-world deployments. Additionally, the authors suggest that this philosophy could be extended to other modalities, such as LiDAR or Radar, potentially leading to a universal perception backbone for autonomous systems.
Summary updated