Improving Monocular Visual Odometry Using Learned Depth

Libo Sun, Wei Yin, Enze Xie, Zhengrong Li, Changming Sun, Chunhua Shen

This paper, published in IEEE Transactions on Robotics, presents a robust framework for enhancing monocular visual odometry (VO) by integrating deep-learned depth estimation. The authors bridge the gap between traditional geometry-based methods and modern deep learning to create a system that generalizes well to new, unseen environments.

TL;DR

The authors propose a dual-mode depth estimation module that improves monocular visual odometry by providing robust relative depth for outlier removal and scale-consistent dense depth for mapping. By focusing on affine-invariant depth learning, the system achieves superior generalization across diverse indoor and outdoor scenes, significantly boosting the performance of existing frameworks like ORB-SLAM and DSO.

What Problem Does This Paper Address?

Monocular Visual Odometry (VO)—estimating a camera's path and surroundings from a single video stream—is a fundamental challenge in robotics. It suffers from two main issues:

  1. Scale Ambiguity: A single camera cannot inherently determine the absolute size of objects or the distance traveled.
  2. Generalization: While deep learning has improved depth estimation, most models are "brittle." A model trained on outdoor driving data (like KITTI) typically fails when brought indoors (like NYU-V2) because it tries to learn absolute metric distances that don't translate across domains.

Traditional geometry-based VO (e.g., ORB-SLAM) is precise but produces sparse maps and can be derailed by incorrect feature matches. Conversely, end-to-end learning-based VO often fails to handle complex camera motions or generalize to new environments (zero-shot testing).

Methods

The core of the framework is a monocular depth estimation network (based on a ResNeXt-50 backbone) designed to work in two distinct modes:

  • Mode 1: Relative Depth (RGB Input): The network predicts an "affine-invariant" depth map. It doesn't care about absolute meters; it cares about the shape and order of objects. This is used for a Near-far Consistency Constraint. As shown in Fig. 2, the system projects 3D map points onto the image plane and compares their depth order with the network's prediction. If the geometry says point A is behind point B, but the network says the opposite, point A is flagged as an outlier and removed.
  • Mode 2: Scale-Consistent Depth (RGB + Sparse Depth Input): When sparse depth points are available from the VO system, the network uses them as a "prior" to recover the absolute scale and generate a dense, scale-consistent depth map for 3D reconstruction.
Fig. 2: Near-far consistency constraint. Points in the local map are projected onto an image plane to output Φ which contains the near- far relations of these points. The monocular depth estimation network takes the RGB image and generates a dense depth map, which can construct another near-far relation set Φ′. The points with different near-far weights in Φ and Φ′ compose the outlier set Φ∗.

The authors also employed a multi-curriculum learning strategy, training on a massive, diverse collection of datasets and ranking training samples by difficulty to ensure the model learns robust features rather than just memorizing specific scene types.

Datasets

  • Training: A diverse mix including Taskonomy (indoor), DIML (indoor/outdoor), ApolloScape (outdoor), DiverseDepth, and RedWeb.
  • Evaluation (Zero-shot): To prove generalization, they tested on datasets the model never saw during training: NYU-V2, KITTI, ScanNet, ETH3D, and RobotCar.

Key Insights and Ideas

  • Affine-Invariance for Generalization: By training the network to learn depth up to an affine transformation (scale and shift), the model focuses on the geometric structure of the scene. This allows a single model to work effectively in both a narrow hallway and a wide-open highway.
  • Geometry + Learning Synergy: Rather than replacing the VO system with a "black box" neural network, they use the network to "clean" the geometry (Mode 1) and the geometry to "anchor" the network's scale (Mode 2).
  • Robustness to Distribution: The network is trained using a FAST corner detector to sample sparse points, making it robust to the non-uniform distribution of points typically produced by feature-based VO systems.

Key Results

The framework demonstrates significant improvements over baseline geometry methods and SOTA learning methods:

  • Zero-Shot Accuracy: As shown in Table II, their "Ours-RGB+sdepth" mode achieved an Abs-Rel error of just 3.31% on NYU and 5.84% on KITTI, outperforming specialized models that were often trained directly on those datasets.
  • VO Performance: Integrating the module into ORB-SLAM reduced the Absolute Trajectory Error (ATE) across multiple KITTI sequences. For sequence 02, the error dropped from 41.00m to 28.79m.
  • Dense Mapping: The framework enables feature-based VO (which usually only sees "dots") to generate high-quality dense 3D maps, as illustrated in the comparison between sparse ORB-SLAM and their dense reconstruction in Fig. 6.
Table II
TABLE III: The illustration of the robustness of ‘RGB and sparse depth’ input mode. The Abs-Rel (%) metric is used for the com- parison. Depth in meters is used for calculation. We illustrate the performance of our method with different sparse depth maps. ‘-’ represents that there is no available models for the evaluation. Our method can obtain satisfactory performances with different sampling ratios and distributions of sparse depths.

Limitations and Future Work

The primary limitation is computational overhead. The ResNeXt-50 backbone is heavy; the authors note that the depth inference accounts for over 90% of the total processing time (~0.42s per keyframe for the CNN alone).

Future work will likely focus on:

  • Implementing lighter architectures (like ResNet-18).
  • Applying neural network compression or knowledge distillation to make the system run in real-time on power-constrained platforms like drones or mobile robots.

Summary updated

BibTeX
@article{sun2022improving,
  author = {Libo Sun and Wei Yin and Enze Xie and Zhengrong Li and Changming Sun and Chunhua Shen},
  title = {{Improving Monocular Visual Odometry Using Learned Depth}},
  journal = {IEEE Trans. Robotics},
  year = {2022},
  url = {https://openreview.net/forum?id=KZJkccpEY5},
}
Figure