Abstract
CFP-SLAM is a real-time visual SLAM system designed to maintain high localization accuracy in dynamic environments, such as rooms with moving people. By combining YOLOv5 object detection with a "coarse-to-fine" probability filter and DBSCAN clustering, it effectively distinguishes between moving foreground objects and static background elements. Experimental results on the TUM RGB-D dataset demonstrate that CFP-SLAM outperforms state-of-the-art methods in both speed and precision, significantly reducing trajectory errors in high-dynamic scenarios while maintaining real-time performance.
Introduction
Most Visual SLAM (Simultaneous Localization and Mapping) algorithms rely on a "static world assumption," assuming that all observed features in the environment are stationary. In real-world applications, dynamic objects—such as walking pedestrians—introduce erroneous data points that lead to significant tracking errors and map artifacts.
Existing solutions typically fall into two categories: geometric methods and semantic methods. Geometric methods are computationally efficient but struggle when dynamic objects dominate the field of view. Conversely, semantic methods utilize deep learning frameworks (e.g., Mask R-CNN) to mask dynamic classes. However, these are often too computationally intensive for real-time use and can be overly aggressive, discarding valuable static background pixels within a bounding box or failing to recognize that a stationary person is effectively a static feature.
Methodology
CFP-SLAM introduces a multi-stage pipeline to address these limitations by refining the classification of dynamic and static features.
Missed Detection Compensation
While YOLOv5 provides fast object detection, it can occasionally fail to detect objects in individual frames due to motion blur or occlusion. To ensure continuity, CFP-SLAM employs an Extended Kalman Filter (EKF) and the Hungarian algorithm to predict object trajectories and maintain tracking during detector failures.
DBSCAN Clustering
Rather than treating an entire bounding box as dynamic, the system applies DBSCAN (Density-Based Spatial Clustering of Applications with Noise) to depth data. This allows the system to segment the actual moving foreground (e.g., a person) from the static background (e.g., a wall or floor) captured within the same detection box, preserving more features for tracking.
Coarse-to-Fine Static Probability
The core of the system is a two-stage probability estimation for keypoints:
- Coarse Stage: Assigns an initial "static probability" to objects based on optical flow and epipolar geometry constraints.
- Fine Stage: Refines these probabilities for individual keypoints using projection constraints. This granular approach allows the system to utilize features from partially moving objects, such as a person sitting still whose limbs may move occasionally.
Two-Stage Optimization
The camera pose is optimized in two phases. An initial optimization uses coarse weights to provide a rough estimate, followed by a second optimization using fine-tuned keypoint weights to achieve maximum localization accuracy.
Experimental Evaluation
The system was evaluated using the TUM RGB-D dataset, focusing on both low-dynamic (people sitting) and high-dynamic (people walking) sequences with various camera motions (translation, rotation, and halfsphere trajectories).
Key Results
- Accuracy: In high-dynamic scenarios (e.g.,
fr3/w/xyz), CFP-SLAM reduced the Absolute Trajectory Error (ATE) from 0.7214m (standard ORB-SLAM2) to 0.0141m, representing a massive improvement in reliability. - Performance: The system achieves approximately 23 FPS (42.7 ms per frame). A "light" version, CFP-SLAM-, reaches 40 FPS by omitting fine-grained probability calculations, making it suitable for resource-constrained hardware.
- Comparative Analysis: CFP-SLAM achieved higher localization accuracy in nearly all tested dynamic scenarios compared to other modern frameworks like Dyna-SLAM and DS-SLAM.
Conclusion and Future Work
CFP-SLAM demonstrates that combining efficient object detection with geometric refinement can match or exceed the precision of pixel-level segmentation methods while maintaining real-time speeds. A noted limitation occurs during rapid camera rotations (rpy sequences), where epipolar constraints become less reliable. Future work will focus on improving robustness during rapid rotation and extending the framework to generate "clean" static maps for autonomous robot navigation.
Summary updated