An Online Adaptation Method for Robust Depth Estimation and Visual Odometry in the Open World

Xingwu Ji, Haochen Niu, Dexin Duan, Rendong Ying, Fei Wen, Peilin Liu

TL;DR

This paper introduces a self-supervised online adaptation framework that allows monocular visual odometry (VO) and depth estimation networks to continuously adapt to novel, unseen environments on the fly. By integrating lightweight, low-rank refiners (similar to LoRA) into a depth estimation network and establishing a closed-loop feedback system with a pseudo RGB-D SLAM system, the framework achieves rapid environment generalization without catastrophic forgetting or heavy computational overhead.

What Problem Does This Paper Address?

Deep learning has significantly advanced monocular depth estimation and Visual Odometry (VO). However, these models suffer from a major Achilles' heel: domain shift. A network trained on clean, outdoor daytime driving data (like KITTI) often fails catastrophically when deployed indoors, under different camera intrinsics, or in dynamic environments with moving objects.

Existing methods try to fix this via test-time fine-tuning, but they face two main hurdles:

  1. Catastrophic Forgetting: Fine-tuning the entire network causes it to lose its previously acquired knowledge.
  2. High Computational Cost: Updating millions of parameters online ruins real-time performance, which is critical for robotics.

Furthermore, most existing methods treat depth estimation and SLAM as separate modules rather than leveraging the natural synergy between geometric SLAM and learning-based depth prediction.

Methods

The authors propose a closed-loop system where a monocular depth network (R-DepthNet) and a Pseudo RGB-D SLAM system continuously reinforce each other.

Fig. 2: Overview of our online adaptation framework. In this system, the depth estimation module R-DepthNet and the pseudo RGB-D SLAM reinforce each other in an online manner, and output the refined depth maps and camera poses, respectively. S: object regions, M: consistency masks and Dd: densified depths.

The framework consists of two main stages:

1. Monocular R-DepthNet & Parameter-Efficient Adaptation

Instead of fine-tuning the entire depth network, the authors freeze the pre-trained weights ($W_0$) and insert lightweight refiner modules—low-rank adapters where the weight update is decomposed into two low-rank matrices ($B \cdot A$). Only these adapters (representing about 5% of the total parameters) are optimized online, which drastically reduces memory and prevents overfitting to noisy online data.

2. Closed-Loop Pseudo RGB-D SLAM

The system uses an adapted version of ORB-SLAM3. R-DepthNet predicts a pseudo-depth map for each incoming frame, which the SLAM system uses for map initialization and tracking instead of relying on fragile multi-view triangulation.

To provide self-supervised feedback to the depth network, the authors introduce two key modules:

  • Sparse Depth Densification (SDD): Takes the highly accurate but sparse 3D points generated by the SLAM system and uses a semantic segmentation network (SegNet) to propagate these depth values across local image grids. This creates a dense pseudo-ground-truth depth map to supervise R-DepthNet.
  • Dynamic Consistency Enhancement (DCE): To prevent moving objects (like cars or pedestrians) from corrupting the geometric optimization, this module projects segmentation masks between adjacent frames using SLAM-derived camera poses, creating a consistency mask ($M$) that filters out dynamic regions.
Fig. 4: Illustration of the sparse depth densification.

Datasets

The framework's generalization capability was evaluated by pre-training on one domain and testing on completely different ones:

  • Pre-training: DDAD (Dense Dilemma Autonomous Driving dataset), featuring urban street scenes.
  • Evaluation:
  • KITTI: Real-world outdoor traffic scenes with significant dynamic motion.
  • TUM: An indoor dataset captured with a handheld RGB-D camera, presenting a massive domain shift from the outdoor pre-training data.
  • Mobile Robot Platform: A custom-built outdoor ground vehicle benchmark used to validate real-world deployment.

Key Insights and Ideas

  • The Geometry-Learning Synergy: Geometric SLAM provides excellent sparse depth and pose constraints but struggles with textureless regions. Deep networks excel at dense estimation but drift across domains. By using SLAM to generate dense pseudo-labels (via SDD) and using the network's depth to initialize SLAM, the two paradigms cover each other's weaknesses.
  • Low-Rank Regularization as a Safeguard: Restricting online learning to low-rank adapters doesn't just save compute; it acts as a regularizer. Because the network can only change a small fraction of its representations, it is inherently protected against overfitting to erroneous or noisy online pseudo-labels.
  • Scale-Insensitive Optimization: Online depth estimation often suffers from scale drift. By explicitly factoring a scale variable ($s$) into the local Bundle Adjustment (BA) optimization of the SLAM pipeline, the system becomes highly resilient to scale fluctuations from the neural network.

Key Results

The proposed method demonstrated superior accuracy and robustness across both indoor and outdoor environments compared to state-of-the-art self-supervised and online adaptation methods.

Fig. 1: An example of our proposed method on TUM dataset.
  • Visual Odometry Performance (KITTI): The method achieved a mean translation error ($t_{rel}$) of 2.64%, outperforming other online adaptation methods like CoVIO (2.80%) and CL-SLAM (4.90%), and performing comparably to geometry-heavy VINS-Mono.
  • Robustness to Domain Shift (TUM): Despite being pre-trained exclusively on outdoor driving data (DDAD), the online adaptation allowed the system to successfully track indoor sequences where baseline methods completely lost tracking.
  • Computational Efficiency: The refiner module converged within 200 steps (compared to >300 steps for full fine-tuning) and maintained a low average runtime of 432ms per learning step.

Limitations and Future Work

  • Dependency on Segmentation Quality: The Sparse Depth Densification (SDD) module assumes that pixels within the same semantic boundary share continuous depth values. If the semantic segmentation network fails or produces highly inaccurate boundaries, the densified depth maps will introduce errors.
  • Future Directions: The authors plan to explore active learning strategies to let the navigation system autonomously decide when and what to learn, further optimizing the efficiency of the online adaptation loop in completely unknown environments.

Summary updated

BibTeX
@article{ji2025online,
  author = {Xingwu Ji and Haochen Niu and Dexin Duan and Rendong Ying and Fei Wen and Peilin Liu},
  title = {{An Online Adaptation Method for Robust Depth Estimation and Visual Odometry in the Open World}},
  journal = {IEEE Trans. Instrumentation \& Measurement},
  year = {2025},
  doi = {10.1109/tim.2025.3602581},
}
Figure