Semantic Flow-guided Motion Removal Method for Robust Mapping

Xudong Lv, Boya Wang, Dong Ye, Shuo WangarXiv 2020

Abstract: Moving objects in scenes are still a severe challenge for the SLAM system. Many efforts have tried to remove the motion regions in the images by detecting moving objects. In this way, the keypoints belonging to motion regions will be ignored in the later calculations. In this paper, we proposed a novel motion removal method, leveraging semantic information and optical flow to extract motion regions. Different from previous works, we don't predict moving objects or motion regions directly from image sequences. We computed rigid optical flow, synthesized by the depth and pose, and compared it against the estimated optical flow to obtain initial motion regions. Then, we utilized K-means to finetune the motion region masks with instance segmentation masks. The ORB-SLAM2 integrated with the proposed motion removal method achieved the best performance in both indoor and outdoor dynamic environments.

Introduction

Most SLAM (Simultaneous Localization and Mapping) algorithms operate on a "static world" assumption, presuming that any change in pixel position between frames is caused solely by the camera's movement. In real-world scenarios, however, scenes are often dynamic, filled with walking people and driving cars.

Existing solutions generally fall into two categories: geometry-based methods and semantic-based methods. Geometry-based methods use mathematical outliers to find motion but often fail when the camera is moving or when dynamic objects dominate the frame. Semantic-based methods use deep learning to mask out categories like "car" or "person." However, these often suffer from "over-cleansing"—for instance, a parked car is a perfect static landmark, but a purely semantic system would delete it, losing valuable geometric data. This paper proposes a system that bridges this gap by removing only objects confirmed to be in motion.

Methodology

The proposed framework utilizes four parallel Convolutional Neural Networks (CNNs) to process adjacent frames and intelligently distinguish between static and dynamic objects.

Architecture of the proposed motion removal framework featuring four parallel networks for Depth, Pose, Flow, and Segmentation.

The Multi-Network Pipeline

  • Depth & Pose Networks: These predict the 3D structure of the scene and the camera's movement. By combining these, the system synthesizes Rigid Flow—a map of how every pixel should move if the entire scene were static.
  • Flow Network: This predicts the Full Optical Flow—how pixels are actually moving in the video sequence.
  • Segmentation Network: This generates instance masks (using Mask R-CNN) to identify individual objects.

Motion Detection via Flow Residuals

The system calculates the "residual" (the difference) between the synthesized Rigid Flow and the predicted Full Optical Flow. If the difference is high, the pixel is likely moving. To mitigate noise, the authors apply K-means clustering within each semantic instance mask. If the ratio of moving pixels within an object exceeds a threshold (0.5), the entire instance is flagged as dynamic, and its keypoints are excluded from the SLAM calculation.

Visual demonstration of the motion removal process on the KITTI dataset: (a) input, (b) depth, (c) rigid flow, (d) optical flow, (e) initial motion mask, (f) refined mask, (g) original keypoints, (h) filtered keypoints.

Evaluation and Results

The method was integrated into ORB-SLAM2 and evaluated on the TUM RGB-D (indoor) and KITTI Odometry (outdoor) datasets. The networks were pre-trained on standard datasets like COCO and Cityscapes to demonstrate generalization without specific fine-tuning.

Key Findings

  • Indoor Performance: In high-dynamic "walking" sequences, the method significantly reduced Absolute Pose Error (APE). In the fr3/w/xyz sequence, error dropped from 55.76 cm (baseline ORB-SLAM2) to 1.59 cm.
  • Outdoor Performance: On KITTI sequence 03, the translation error was reduced to 0.55%, outperforming both the baseline (0.71%) and coarse-semantic methods that remove all cars regardless of motion.
  • Preservation of Static Landmarks: By identifying that objects like parked cars are static via flow residuals, the system maintains high accuracy in low-dynamic scenes where semantic-only methods often fail due to over-cleansing.

Conclusion

By combining geometric constraints (flow residuals) with semantic instance segmentation, this method provides a robust solution for SLAM in dynamic environments. It successfully preserves static "movable" objects as landmarks while effectively filtering out actual motion. Future work will focus on computational optimization and integrating these semantic flow-guided masks into loop closure detection to prevent false matches in long-term mapping.

Summary updated

BibTeX
@misc{lv2020semantic,
  author = {Xudong Lv and Boya Wang and Dong Ye and Shuo Wang},
  title = {{Semantic Flow-guided Motion Removal Method for Robust Mapping}},
  year = {2020},
  eprint = {2010.06876},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.06876},
}
Figure