DytanVO: Joint Refinement of Visual Odometry and Motion Segmentation in Dynamic Environments

Shihao Shen, Yilin Cai, Wenshan Wang, Sebastian Scherer

TL;DR

This paper introduces DytanVO, the first supervised learning-based visual odometry (VO) system designed to handle dynamic environments. By jointly refining camera ego-motion and motion segmentation in an iterative process, DytanVO significantly outperforms existing VO methods and achieves competitive results with more complex SLAM systems, even on unseen dynamic scenes.

What Problem Does This Paper Address?

Traditional visual odometry (VO) systems excel in static environments but struggle when faced with dynamic elements like moving people or vehicles. These dynamic objects can cause unpredictable changes in lighting and occlusions, leading to inaccurate pose estimations. While semantic segmentation can help by identifying and discarding dynamic objects, it often relies on appearance-based cues, leading to false negatives for unseen object categories and difficulty distinguishing truly moving objects from static ones. This paper tackles the challenge of robustly estimating camera motion in dynamic environments by exploiting the inherent interdependence between ego-motion estimation and motion segmentation.

Methods

DytanVO employs a novel, iterative, learning-based framework that jointly refines camera ego-motion and motion segmentation. The core architecture consists of three sub-modules:

  • Matching Network: This network estimates dense optical flow between consecutive frames, similar to existing methods like PWC-Net.
  • Pose Network: This network, based on ResNet50, estimates the relative camera motion (rotation and translation) using optical flow, a motion segmentation mask, and camera intrinsics.
  • Motion Segmentation Network: This network, based on a U-Net architecture, takes the estimated camera motion, optical flow, and input frames to predict a probability map of dynamic pixels.

The key innovation lies in the iterative refinement process. In the first iteration, a random segmentation mask is used. Subsequent iterations refine both the motion segmentation mask and the camera pose. Specifically, the optical flow is masked to exclude regions identified as dynamic, and this refined flow, along with the segmentation mask, is fed back into the pose network. This mutual dependence allows both components to improve iteratively. The process stops when the change in estimated camera motion between iterations falls below a predefined threshold.

Datasets

  • Training:
    • TartanAir: A large synthetic dataset containing over 400,000 frames with ground truth for optical flow and camera pose in static environments.
  • SceneFlow: A dataset with 39,000 frames in highly dynamic environments, providing ground truth for disparity and optical flow. The authors derive motion segmentation ground truth from this dataset.
  • Evaluation:
    • AirDOS-Shibuya Dataset: Used for evaluating performance on real-world dynamic scenes.
  • KITTI Odometry Dataset: Another benchmark for evaluating performance on dynamic sequences.

Key Insights and Ideas

  • Mutual Dependence: The paper highlights that accurate motion segmentation and ego-motion estimation are mutually dependent in dynamic scenes. Neither can be perfectly achieved without the other, making a joint refinement approach crucial.
  • Robustness to False Positives: The pose network is designed to be robust to initial inaccuracies or false positives in the motion segmentation mask, allowing the iterative process to converge effectively.
  • Iterative Refinement: The iterative nature of DytanVO allows for a gradual improvement of both motion segmentation and ego-motion estimation, leading to more accurate results than a single-pass approach.
  • Generalizability: Training on diverse synthetic datasets (TartanAir and SceneFlow) enables DytanVO to generalize well to unseen real-world dynamic environments, outperforming methods trained on specific datasets like KITTI.

Key Results

  • State-of-the-Art VO Performance: DytanVO achieves an average improvement of 27.7% in Absolute Trajectory Error (ATE) over state-of-the-art VO solutions on real-world dynamic environments.
  • Competitive with SLAM: The method performs competitively with dynamic visual SLAM systems that utilize backend optimization for trajectory refinement, despite DytanVO not employing such optimization.
  • AirDOS-Shibuya: Outperforms other VO baselines and is competitive with SLAM methods on this challenging dataset, particularly in sequences with significant dynamic objects. For instance, on RoadCrossing V, DytanVO is the only VO baseline that maintains track.
  • KITTI Odometry: Achieves the best ATE on 6 out of 8 dynamic sequences, demonstrating strong performance even without fine-tuning on KITTI data.
  • Runtime: Inference takes approximately 160ms for 3 iterations on an NVIDIA RTX 2080 GPU, making it suitable for real-time applications.

Limitations and Future Work

  • Failure in Fully Dynamic Scenes: The paper acknowledges that DytanVO can fail when all foreground objects are moving, leaving only textureless backgrounds. In such cases, the motion segmentation can mask out too much, leading to divergence.
  • Zero-Motion Scenarios: The method may perform worse in scenarios with very little or no camera motion, potentially due to biases in the training data.
  • Future Work Suggestions:
    • Incorporate dynamic object-awareness into the framework.
  • Utilize dynamic cues more effectively rather than simply masking them out.
  • Explore training strategies that better handle zero-motion inputs and frame skipping.

Summary updated

Abstract

Learning-based visual odometry (VO) algorithms achieve remarkable performance on common static scenes, benefiting from high-capacity models and massive annotated data, but tend to fail in dynamic, populated environments. Semantic segmentation is largely used to discard dynamic associations before estimating camera motions but at the cost of discarding static features and is hard to scale up to unseen categories. In this paper, we leverage the mutual dependence between camera ego-motion and motion segmentation and show that both can be jointly refined in a single learning-based framework. In particular, we present DytanVO, the first supervised learning-based VO method that deals with dynamic environments. It takes two consecutive monocular frames in real-time and predicts camera ego-motion in an iterative fashion. Our method achieves an average improvement of 27.7% in ATE over state-of-the-art VO solutions in real-world dynamic environments, and even performs competitively among dynamic visual SLAM systems which optimize the trajectory on the backend. Experiments on plentiful unseen environments also demonstrate our method's generalizability.
BibTeX
@misc{shen2022dytanvo,
  author = {Shihao Shen and Yilin Cai and Wenshan Wang and Sebastian Scherer},
  title = {{DytanVO: Joint Refinement of Visual Odometry and Motion Segmentation in Dynamic Environments}},
  year = {2022},
  eprint = {2209.08430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.08430},
}
Figure