BoW3D: Bag of Words for Real-time Loop Closing in 3D LiDAR SLAM

Yunge Cui, Yinlong Zhang, Xieyuanli Chen, Jiahua Dong, Qingxiao Wu, Feng Zhu

TL;DR

This paper introduces BoW3D, a novel Bag-of-Words approach for real-time loop closing in 3D LiDAR SLAM. It leverages the LinK3D feature to efficiently recognize revisited places and, crucially, correct the full 6-DoF loop pose, significantly improving SLAM accuracy and robustness.

What Problem Does This Paper Address?

Simultaneous Localization and Mapping (SLAM) systems build a map of an environment while simultaneously tracking the robot's position within that map. A critical component for long-term SLAM is "loop closing," where the system recognizes it has returned to a previously visited location. This recognition allows the system to correct accumulated errors in its pose estimation, leading to a globally consistent map.

While Bag-of-Words (BoW) methods have been highly successful in visual SLAM for place recognition, applying them to 3D LiDAR SLAM presents unique challenges. LiDAR data is sparse, irregular, and can be difficult to represent effectively. Existing 3D LiDAR loop closing methods often struggle with real-time performance or can only correct a limited number of pose degrees of freedom (DoF), hindering accurate global map optimization. This paper aims to bridge this gap by developing a BoW-based method that is both efficient and capable of full 6-DoF loop pose correction for 3D LiDAR SLAM.

Methods

The core of BoW3D lies in its adaptation of the Bag-of-Words paradigm to 3D LiDAR data. Instead of using visual features, BoW3D utilizes the LinK3D feature [10]. LinK3D is a pose-invariant feature designed for 3D point clouds, capable of accurate point-to-point matching.

The BoW3D algorithm comprises three main parts:

  1. Feature Extraction: Raw 3D LiDAR point clouds are processed to extract LinK3D features.
  2. Place Recognition (BoW3D Database): A "bag of words" is constructed from these LinK3D features. The database uses a hash table for efficient storage and retrieval. Each "word" in the vocabulary represents a specific dimension and value from a LinK3D descriptor. The system retrieves candidate loop frames by matching words from the current scan to the database. A novel ratio-based filtering mechanism is introduced to improve retrieval efficiency and reduce false positives.
  3. Loop Correction: Once a candidate loop is identified, the system uses the accurate point-to-point matching capabilities of LinK3D features to compute the full 6-DoF loop pose. This correction is achieved using RANSAC [12] and SVD [13] methods. The corrected loop pose then provides a constraint for subsequent pose graph optimization.

The proposed method is integrated into the A-LOAM [14] LiDAR odometry system to demonstrate its practical performance.

Datasets

The experiments were conducted on the KITTI [39] dataset. This dataset is widely used for autonomous driving research and includes sequences with ground truth poses. The authors specifically selected sequences 00, 02, 05, 06, 07, and 08, which contain true loop closures. The point clouds were collected by a Velodyne HDL-64E S2 sensor.

Key Insights and Ideas

  • Adapting BoW to 3D LiDAR is Feasible and Effective: The paper demonstrates that the BoW concept, highly successful in visual SLAM, can be effectively adapted to 3D LiDAR data by leveraging suitable 3D features like LinK3D.
  • LinK3D is Key to Robustness: The pose-invariant nature of LinK3D features is crucial. It allows BoW3D to recognize loops even when the robot approaches a previously visited location from a different angle (e.g., reverse loops).
  • Full 6-DoF Correction is Essential: Unlike many prior 3D LiDAR methods that offer limited pose correction, BoW3D's ability to correct the full 6-DoF loop pose is a significant advantage, enabling more accurate global map optimization.
  • Hash Table for Real-Time Performance: The use of a hash table for the BoW3D database is a key enabler of the system's real-time performance, allowing for efficient retrieval and updates.

Key Results

  • Superior Place Recognition: BoW3D outperforms state-of-the-art LiDAR loop closure detection methods in terms of F₁ max score and Extended Precision (EP) on most KITTI sequences. For example, on sequence 08, it achieves an F₁ max score of 0.900 and EP of 0.866.
  • Effective Loop Correction: When integrated with the A-LOAM SLAM system, BoW3D significantly reduces trajectory drift compared to A-LOAM alone. Table II shows quantitative improvements in angular and translation errors, with RMSE reductions of up to 3.945 m on sequence 00.
  • Real-Time Performance: The system achieves impressive real-time performance. For instance, on KITTI 00 (which has over 4K scans), BoW3D takes an average of 48 ms to recognize and correct loops, running on a standard notebook. Figure 7 further breaks down the runtime, showing that the loop closing module is well within acceptable limits for online operation.

Limitations and Future Work

  • Hyperparameter Sensitivity: The performance of BoW3D is influenced by hyperparameters like Th_r (retrieval threshold) and Th_f (frequency threshold). While the paper analyzes their impact and suggests optimal settings (e.g., Th_r=4, Th_f=5), careful tuning might still be required for different environments.
  • Future Work: The authors suggest extending their work to address the shortcomings of current 3D LiDAR odometry systems that lack a loop closing thread. They also aim to improve relocalization, local optimization, and mapping capabilities within 3D LiDAR SLAM.

Summary updated

BibTeX
@article{cui2023bow,
  author = {Yunge Cui and Yinlong Zhang and Xieyuanli Chen and Jiahua Dong and Qingxiao Wu and Feng Zhu},
  title = {{BoW3D: Bag of Words for Real-time Loop Closing in 3D LiDAR SLAM}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2023},
  url = {https://openreview.net/forum?id=_z5K6bbiHCA},
}
Figure