Unsupervised Learning of Monocular Depth Estimation and Visual Odometry With Deep Feature Reconstruction

Huangying Zhan, Ravi Garg, Chamara Saroj Weerasekera, Kejie Li, Harsh Agarwal, Ian D. Reid

Introduction

Estimating the 3D structure of a scene (depth) and the movement of a camera (visual odometry) are foundational tasks for autonomous vehicles and robotics. Traditionally, deep learning models for these tasks required "supervised" training—massive datasets with ground-truth depth from LIDAR or precise GPS/IMU data, which are expensive and difficult to collect. This paper presents a framework for training deep neural networks to estimate depth and visual odometry (VO) from a single camera without requiring expensive ground-truth labels.

Overcoming Traditional Hurdles

Recent "unsupervised" attempts have tried to learn by minimizing photometric error: if a model predicts the correct depth and motion, it should be able to "warp" one image frame to look exactly like the next. However, these methods face two major hurdles:

  1. Scale Ambiguity: A monocular camera cannot distinguish between a small object nearby and a large object far away. Without a reference, the predicted units are arbitrary.
  2. The Lambertian Trap: Photometric loss assumes that a point's brightness remains constant regardless of the viewing angle. In real-world scenarios, reflections, shadows, and textureless surfaces break this assumption, leading to poor training signals.

The Proposed Framework

The authors propose a joint training framework consisting of two networks: $CNN_D$ (for depth) and $CNN_{VO}$ (for odometry).

Overview of the proposed joint training framework, illustrating the interaction between depth and VO networks and the feature reconstruction loss.

Stereo as a Ruler

During training, the model utilizes stereo video sequences. Because the distance between the stereo cameras (the baseline) is fixed and known, it acts as a "ruler" that constrains the networks to learn actual real-world scale. Crucially, at test time, the model only requires input from a single camera.

Deep Feature Reconstruction Loss

To address the Lambertian trap, the authors introduce a novel "deep feature reconstruction loss." Instead of comparing raw RGB pixel values between warped frames, the images are passed through a feature extractor (such as a ResNet) to compare high-level semantic features. This approach makes the model significantly more robust to lighting changes and focuses on structural context.

Key Results

The researchers evaluated their framework on the KITTI dataset, the industry standard for autonomous driving benchmarks.

  • Visual Odometry: The method significantly outperformed previous unsupervised monocular methods, such as Zhou et al. It produced results comparable to established geometric SLAM systems like ORB-SLAM in certain scenarios, despite not utilizing a global map.
  • Depth Estimation: The model achieved state-of-the-art results for unsupervised depth estimation, outperforming earlier work by a healthy margin.
Comparison of predicted trajectories on KITTI Sequence 09, showing the proposed method (red) closely following the ground truth (green).

Limitations and Future Work

While the framework shows significant promise, several challenges remain. The current method assumes a mostly static world; large moving objects can confuse the odometry. Additionally, the model struggles with occlusions—areas visible in one frame but hidden in the next. Finally, while frame-to-frame odometry is excellent, small errors accumulate over long distances (drift). Future work may involve explicitly modeling occlusions and integrating the system into a full SLAM framework with loop closure to mitigate long-term drift.

Summary updated

BibTeX
@inproceedings{zhan2018unsupervised,
  author = {Huangying Zhan and Ravi Garg and Chamara Saroj Weerasekera and Kejie Li and Harsh Agarwal and Ian D. Reid},
  title = {{Unsupervised Learning of Monocular Depth Estimation and Visual Odometry With Deep Feature Reconstruction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00043},
}
Figure