DynaPix SLAM: A Pixel-Based Dynamic Visual SLAM Approach

Chenghao Xu, Elia Bonetto, Aamir Ahmad · DOI

Abstract

Visual Simultaneous Localization and Mapping (V-SLAM) methods achieve remarkable performance in static environments, but face challenges in dynamic scenes where moving objects severely affect their core modules. To avoid this, dynamic V-SLAM approaches often leverage semantic information, geometric constraints, or optical flow. However, these methods are limited by imprecise estimations and their reliance on the accuracy of deep-learning models. Moreover, predefined thresholds for static/dynamic classification, the a-priori selection of dynamic object classes, and the inability to recognize unknown or unexpected moving objects, often degrade their performance. To address these limitations, we introduce DynaPix, a novel semantic-free V-SLAM system based on per-pixel motion probability estimation and an improved pose optimization process. The per-pixel motion probability is estimated using a static background differencing method on image data and optical flows computed on splatted frames. With DynaPix, we fully integrate these probabilities into map point selection and apply them through weighted bundle adjustment within the tracking and optimization modules of ORB-SLAM2. We thoroughly evaluate our method using the GRADE and TUM RGB-D datasets, showing significantly lower trajectory errors and longer tracking times in both static and dynamic sequences.

Introduction

Most Visual Simultaneous Localization and Mapping (V-SLAM) algorithms operate under a "static-world assumption," assuming the camera is the only moving entity. When dynamic elements—such as walking pedestrians or moving furniture—enter the field of view, standard systems attempt to incorporate these non-stationary points into pose calculations, leading to significant trajectory drift or complete tracking failure.

Existing solutions typically rely on semantic segmentation to mask out known dynamic classes (e.g., humans or vehicles). However, these methods suffer from class limitations (inability to handle unknown moving objects), binary logic (discarding static parts of dynamic objects), and imprecise boundaries. DynaPix addresses these challenges by introducing a semantic-free, pixel-based approach that calculates motion probability rather than relying on rigid object masks.

Methodology

DynaPix shifts the focus from object-level detection to pixel-wise motion probability. The system estimates the likelihood of a pixel being dynamic through a two-stage process:

  1. Movable Region Estimation: The current frame is compared against a "static background" image generated via video inpainting, identifying regions where motion is potentially occurring.
  2. Moving Region Estimation: To identify actual motion, the system utilizes optical flow. By employing softmax splatting—reprojecting 3D points from previous frames into the current view—the system can distinguish between camera-induced perspective shifts and independent object motion.
Overview of the DynaPix SLAM pipeline, illustrating the motion probability estimation and weighted bundle adjustment modules.

The core innovation lies in the Weighted Bundle Adjustment (BA). Instead of a binary "keep or discard" filter, DynaPix assigns a continuous weight to every feature point based on its motion probability. This allows the system to retain valuable data from partially static objects and maintain robust tracking even in crowded environments.

Evaluation and Results

The system was evaluated on the TUM RGB-D dataset (office environments) and the GRADE dataset (challenging synthetic scenes with flying objects and occlusions).

Visualization of per-pixel motion probabilities on the GRADE (left) and TUM RGB-D (right) datasets. Green indicates static features, while red indicates dynamic ones.

DynaPix demonstrated significant improvements over baselines like ORB-SLAM2 and DynaSLAM:

  • Accuracy: On TUM RGB-D "walking" sequences, DynaPix achieved up to a 23x reduction in Absolute Trajectory Error (ATE) compared to ORB-SLAM2.
  • Robustness: In the GRADE dataset, DynaPix maintained a superior Tracking Rate (TR), particularly in scenarios with unknown moving objects that typically cause semantic-based methods to fail.
  • Static Performance: The algorithm maintains high performance in purely static scenes, avoiding the degradation often seen in other dynamic-handling SLAM systems.

Discussion and Conclusion

By treating motion as a per-pixel probability, DynaPix becomes "semantic-free," allowing it to ignore any moving object regardless of its class. The use of soft constraints via weighted BA prevents the excessive information loss common in binary masking approaches. Furthermore, the integration of background priors helps distinguish true motion from parallax effects.

Currently, DynaPix operates as an offline system due to the computational demands of high-fidelity optical flow and background inpainting. Future work will focus on optimizing the pipeline for real-time robotic applications and developing advanced recovery strategies for extreme clutter.

Summary updated

BibTeX
@inproceedings{xu2022dynapix,
  author = {Chenghao Xu and Elia Bonetto and Aamir Ahmad},
  title = {{DynaPix SLAM: A Pixel-Based Dynamic Visual SLAM Approach}},
  booktitle = {GCPR},
  year = {2022},
  url = {https://openreview.net/forum?id=VCGH7l5Gxt},
}
Figure