Abstract
Simultaneous Localization and Mapping (SLAM) is essential for autonomous systems navigating in human-centric environments, yet conventional systems fail when people and objects move through the scene. This paper introduces SAR-SLAM (Semantic-Aware Recognition SLAM), an RGB-D SLAM framework that robustly handles dynamic scenes containing moving people and objects using dual semantic geometric processing. First, we employ YOLOv8-based semantic segmentation to identify dynamic objects and generate initial detection masks. Second, we apply RANSAC-based Homography analysis to perform geometric motion verification, distinguishing truly moving objects from stationary ones by analyzing feature correspondence patterns. Third, an adaptive fusion mechanism combines both semantic and geometric evidence while incorporating temporal consistency and coverage constraints to maintain system stability. The system is implemented as a modular ROS2 package, enabling smooth integration with robotic systems and compatibility with existing navigation frameworks. SAR-SLAM reduces Absolute Trajectory Error by up to 96% over ORB-SLAM3 on the dynamic sequences of the TUM RGB-D benchmark, and remains competitive with state-of-the-art dynamic SLAM methods across a range of dynamic scenarios.
1. Introduction
Autonomous mobile robots are increasingly deployed in human-centric environments such as hospitals, where staff navigate corridors, manufacturing facilities where workers collaborate with machines, and public spaces where crowds move unpredictably [1,2,3]. For these robots to navigate safely and precisely, they must build accurate maps of their surroundings and determine their own position within those maps, a problem known as Simultaneous Localization and Mapping (SLAM) [4,5]. SLAM has achieved remarkable success in controlled, static environments [6]. However, real-world deployment reveals a critical weakness: the assumption that the world remains static breaks down when people, vehicles, and other objects move through the scene [4,7].
Visual SLAM systems such as ORB-SLAM3 [6] estimate camera motion by tracking visual features, distinct points such as corners and edges, across consecutive frames. When a person walks through the scene, features on their clothing or body become part of the tracking process [8]. These features move independently of the camera, violating the geometric constraints that SLAM depends upon [4], which leads to incorrect motion estimates, accumulating drift, and, in many cases, complete tracking failure [9,10].
The research community has proposed various strategies to address dynamic objects in SLAM, each with different limitations [2,4,7]. Semantic methods [8,11,12] use deep networks to identify potentially mobile objects and remove all of their features. While this prevents corruption from moving objects, it often removes excessive amounts of useful information. In texture-poor environments such as hospital corridors, removing every person can eliminate the available features and destabilize the system [13,14], and a stationary person or parked object that could serve as a stable landmark is discarded along with the genuine movers, as in DynaSLAM [8]. Geometric methods detect motion through optical flow or depth inconsistency without relying on object identity. They avoid over-removal but struggle with noise sensitivity, producing fragmented detections that miss slowly moving objects or incorrectly flag camera-induced parallax as independent motion [13,15,16]. Hybrid methods such as RED-SLAM [9], TRS-SLAM [17], and DIG-SLAM [18] combine both cues, yet most still treat dynamic detection as a binary moving/not decision taken frame by frame, ignoring how an object actually moves and applying the same processing regardless of how dynamic the scene is.
To address these challenges, we propose SAR-SLAM, an RGB-D SLAM framework that revisits the handling of dynamic objects. Rather than treating all dynamic regions semantically, it verifies actual motion geometrically, then fuses both sources of evidence with motion-aware filtering. The system employs a dual-thread architecture that separates geometric localization from semantic inference, improving robustness while avoiding unnecessary feature removal. When YOLOv8 [19] detects a person in the scene, SAR-SLAM does not immediately remove all of that person’s features. Instead, geometric verification first checks whether that person is actually moving by comparing their feature motion against the estimated camera motion using RANSAC-based Homography [20], so a feature is discarded only once its independent motion is confirmed. A stationary person contributes stable features that strengthen tracking, while features from a moving person are selectively filtered. The verification estimates the direction and magnitude of each object’s motion rather than assigning a binary moving/not label. Then, the continuous cues drive an adaptive selection that switches between semantic-only, geometric-only, and fused operation according to the measured complexity of the scene, balancing accuracy against online computational cost. The complete pipeline is realized on top of ORB-SLAM3 through ROS2 [21] without modifying the SLAM core.
The main contributions of this work are summarized as follows:
- 1.
- A verify-before-remove strategy that filters semantically detected objects only after RANSAC-based Homography confirms motion, preserving stationary instances as stable landmarks.
- 2.
- A motion characterization that recovers each object’s direction and magnitude, replacing the binary moving/not decision with a continuous cue.
- 3.
- An adaptive controller that selects semantic-only, geometric-only, or fused operation from a scene complexity score, trading accuracy against online computational cost.
- 4.
- An end-to-end integration with ORB-SLAM3 and ROS2 [21] Middleware enabling straightforward adaptation and integration with other systems.
The remainder of this paper is structured as follows. Section 2 surveys related research and positions our contributions; Section 3 presents the SAR-SLAM framework, mathematical formulation, and algorithmic details; Section 4 reports the experimental evaluation, comparisons, ablation, sensitivity, and runtime; and Section 5 concludes with insights and future directions. For more information and resources, see https://basheeraltawil.github.io/sar-slam_v0/ (accessed on 17 July 2026).
2. Related Work
Visual SLAM has evolved from assuming static worlds to explicitly handling dynamic environments [4]. Feature-based SLAM systems such as ORB-SLAM [6] perform well in static environments. It extracts orientation invariant keypoints, matches them across frames, and optimizes camera poses through bundle adjustment. However, its accuracy and robustness depend critically on the assumption that observed features remain stationary in the world frame, an assumption violated by any moving object [2,4].
Semantic SLAM methods leverage deep learning’s object recognition capabilities to identify potentially dynamic elements. DynaSLAM [8] segments people and vehicles with Mask R-CNN and removes their features, combining this with a multi-view geometry check for RGB-D input. YS-SLAM [12] uses semantic segmentation confidence as a weighting factor rather than binary masking. V3D-SLAM [22] builds semantic 3D maps alongside geometric reconstruction. The fundamental limitation of pure semantic approaches lies in their conservative nature. By removing all instances of potentially mobile classes, these systems discard valuable static information. A parked car in a parking lot or a stationary person in a waiting room provides stable, long-lived features ideal for localization, yet semantic-only methods eliminate them.
Geometric methods detect motion by analyzing inconsistencies in feature motion or depth measurements [4]. Rather than relying on semantic priors, some systems identify moving regions through geometric cues such as re-clustering and optical-flow residual analysis [13], while others use point-correlation analysis and depth-based clustering to remove dynamic features [23]. While computationally efficient, geometric-only methods face two key challenges [7]. First, they struggle with slowly moving objects or gradual motion changes, as the motion signal may be below detection thresholds. Second, they tend to produce fragmented detections, especially in texture-poor regions where feature density is low.
Recognizing the limitations of single-strategy approaches, recent systems combine semantic cues with geometric verification. RED-SLAM [9] integrates projection-ray geometric checks with selective semantic segmentation performed only when dynamic changes occur. Semantic regions are then propagated to subsequent frames to efficiently suppress dynamic points. VAR-SLAM [24] complements a lightweight semantic filter with an adaptive robust-loss formulation that automatically adjusts to both known and unknown moving objects based on residual statistics. TRS-SLAM [17] performs semantic segmentation only on keyframes and adds a geometry module that clusters the depth image and identifies unknown dynamic objects via reprojection errors, enabling real-time operation on embedded hardware. To reduce the cost of per-frame inference, NGD-SLAM [15] couples a parallel semantic thread with optical-flow mask propagation, reaching real-time performance on a CPU. However, these hybrid methods often treat dynamic detection as a binary decision, with limited modeling of motion evolution. RED-SLAM [9], for example, removes map points associated with dynamic semantic objects but does not attempt to infer motion direction or temporal behavior. DIG-SLAM [18] advances robustness through instance segmentation and geometric consistency checks, yet its dynamic-region identification remains largely frame-centric and does not explicitly exploit longer-term motion continuity. SAR-SLAM advances this line with motion-aware filtering: semantic segmentation proposes regions, and RANSAC Homography verifies real motion and characterizes its direction and magnitude, so only confirmed movers are filtered while static features are preserved for stable tracking.
3. Methodology
This section presents the SAR-SLAM framework, its core components, and the complete fusion strategy used to suppress dynamic regions in RGB-D frames prior to SLAM processing.
3.1. Overview and Problem Statement
Consider a camera moving through an environment, capturing RGB-D frames. At each time t, we receive a color image and depth image . To robustly estimate the camera trajectory and 3D map M, dynamic pixels are identified via a binary mask and filtered from the input as shown in Equation (1):
where ⊙ denotes element-wise multiplication. The filtered images and contain only static content and can be safely processed by ORB-SLAM3.
3.2. Framework Structure
The framework in Figure 1 has three stages. First, semantic detection identifies dynamic object candidates. Next, geometric verification confirms which of these objects are actually moving. Finally, a fusion and adaptive selection process integrates semantic and geometric cues, performing pixel-wise and scene-complexity analysis to conservatively fuse the sources and generate the final mask. This mask is then passed to the SLAM system for robust tracking.
Figure 1.
SAR-SLAM Framework Overview. RGB-D [25] input is first processed by the semantic detection module to identify dynamic object candidates. The geometric verification module then confirms which objects are actually moving using RANSAC-based Homography analysis. Arrows indicate the motion direction and magnitude. Finally, the Fusion and Adaptive Selection module integrates semantic and geometric cues, producing a dynamic mask that is passed to ORB-SLAM3 for robust feature tracking and map building.
3.3. Semantic Detection of Dynamic Objects
Potentially dynamic regions are identified using YOLOv8-seg [19] object detection, which provides class labels, bounding boxes, and confidence scores per instance. For each frame, YOLO produces detections
where is the object class (person, car, etc.), is the bounding box, and is the confidence score. We keep detections with .
We then classify objects as dynamic based on their class. A person, car, or bicycle might move, while a table or wall cannot.
Any detection with is marked as dynamic, creating our first semantic thread(), where all pixels inside these bounding boxes are labeled as dynamic, and all other pixels are labeled as static. This stage has very high recall but lower precision, since a potentially dynamic object, even if it is stationary, is still marked as dynamic at this stage. The pixel-level filtering uses the YOLOv8-seg instance masks, not the bounding boxes. The bounding box is retained only as the region descriptor used later to count inlier/outlier ratios during geometric verification; the region actually removed from and is the pixel-accurate segmentation mask. This distinction avoids removing static background that merely falls inside a mover’s box.
3.4. Geometric Verification of Actual Motion
Semantic detection tells us what could move, but not what is actually moving. To distinguish between stationary and moving objects, we analyze their motion within the local tracking module using classical computer vision, as shown in Figure 2.
Figure 2.
Geometric clustering mechanism. Matched keypoints between frames are filtered using Lowe’s ratio test, the global background motion is estimated with Homography (RANSAC), and a region-wise check separates inliers (static background) from outliers (independent motion).
When the camera moves, everything in the image appears to move, but static objects move in a predictable way (following the camera’s motion), while independently moving objects do not. We tackle this by: (1) tracking visual features between frames, (2) estimating the camera’s motion, and (3) identifying features that do not follow the camera’s motion, which are on moving objects.
3.4.1. Feature Tracking
We first extract ORB features [26] uniformly across the entire image, ensuring coverage of both static structures and semantically detected regions. The ORB detector is chosen for its ability to capture corners and edges that naturally occur on human shapes, clothing textures, and object contours, ensuring that dynamic regions are sufficiently represented. Features are matched between frames and t by descriptor matching, and Lowe’s ratio test [27] keeps only unambiguous matches:
where and are the best and second-best matches.
3.4.2. Estimating the Background Motion
When the camera moves, the whole static background shifts across the image in one consistent pattern. We capture this single pattern with a Homography , which maps a background point in the previous frame to its position in the current frame:
Homography is used over other matrices such as optical-flow consistency or an RGB-D rigid fit: it stays well-conditioned under the near-planar, low-parallax motion typical of indoor RGB-D frames, whereas other metrics are known to degenerate under exactly these conditions [28]. The same case where ORB-SLAM3’s own initialization [6] falls back to a Homography, while the alternatives either degenerate there, cost too much for real-time use, or depend on depth that is least reliable at a moving person’s edges. We compute using RANSAC. Since the static background fills most of the image and produces most of the matched features, RANSAC naturally locks onto the background’s motion and treats everything that does not fit it as an exception. We use only as a reference for how the background moves so that we can spot points that move differently. The camera’s position and the scene’s 3D shape come from ORB-SLAM3 and the RGB-D depth sensor. We measure how well each matched point agrees with this background pattern, using the re-projection error:
A small error ( pixels) means the point moves with the background, so it is an inlier. A large error ( pixels) means the point moves on its own, so it is an outlier that belongs to a moving object.
3.4.3. Identifying Dynamic Regions
If an object detected semantically contains many outlier features, it must be moving. For each semantic detection region , we count how many features inside it are outliers:
We classify the region as truly dynamic if , meaning more than 30% of its features do not follow the camera motion. For truly dynamic regions, we also compute their direction (), Equation (8) and magnitude (), Equation (9).
It is used to specify the characteristics of the moving dynamic objects and their behavior. We use the median instead of the mean to be robust to outliers.
The output of the geometric thread() contains only verified moving regions.
3.5. Fusion and Adaptive Selection
As shown in Figure 1, the fusion process produces the final dynamic mask passed to ORB-SLAM3. It contains two components that run together: scene complexity and pixel-wise fusion. The scene-complexity score is computed as the fraction of image pixels occupied by motion-verified mobile objects, weighted by their motion magnitude:
where denotes the pixel area of the i-th mobile-class region, is its motion magnitude, is the total image area, and is a threshold for minimum significant motion, set to 0.7 based on the observed motion variations in the TUM dataset. The score lies in and emphasizes regions with stronger independent motion, suppressing static or jittery objects. is a single scalar per frame, representing overall scene dynamic complexity rather than a per-pixel quantity. To combine this scalar with the per-pixel evidence, it is first broadcast into an image of the same size as : the single value is copied into every pixel position, giving for all , so the two can be combined pixel by pixel in the fusion step that follows.
Based on this score, adaptive selection determines which regions are processed: Low complexity (): only semantic regions are considered; geometric mask ignored. Medium complexity (): only geometric regions are considered; semantic mask ignored. High complexity (): both semantic and geometric regions are considered. The semantic and geometric masks are combined via a pixel-wise maximum, with each pixel taking a value in . Larger values indicate stronger evidence that the pixel belongs to a dynamic region.
In matrix form, the maximum operation is applied element-wise across corresponding pixels of the semantic and geometric masks. For example, given
the resulting pixel-level mask is
The final mask fuses this pixel-level evidence with the scene-complexity term, which is broadcast and acts only within the selected dynamic regions, raising confidence without adding evidence to the static background:
This ensures all dynamic evidence is retained while allowing computational savings in low-complexity scenes.
3.6. Integration with ORB-SLAM3
The filtered images and are fed directly into ORB-SLAM3 with no modifications to the SLAM system itself. This plug-and-play design has three key advantages: (1) compatibility: it works with any SLAM system expecting RGB-D input; (2) simplicity: no changes to core SLAM algorithms; (3) effectiveness: dynamic features never enter the tracking or mapping process. As shown in Figure 3, masking removes features on people and moving objects while preserving features on walls, floors, and furniture. This allows the ORB-SLAM3 backend to track reliably even in highly dynamic scenes where the original system would fail. All components (RGB, depth, mask) must be precisely synchronized. We ensure this by: (1) Using identical timestamps for all messages from the same frame. (2) Enforcing strictly monotonic timestamps: always holds. (3) Publishing all topics simultaneously using ROS2’s message synchronization for usage with ORB-SLAM3. This timing ensures the correct mask is always applied to the correct frame pair. The complete SAR-SLAM framework is summarized in Algorithm 1.
| Algorithm 1: SAR-SLAM: Dynamic Object Filtering for Robust SLAM |
|
Figure 3.
A comparison of extracted features on TUM dataset series [25] shows ORB-SLAM3 (Row1) retains features from both static and dynamic objects, while the proposed SAR-SLAM (Row2) identifies and removes dynamic features, preserving only the stable static structure of the environment.
4. Experiments and Results
This section presents an experimental evaluation of the proposed SAR-SLAM method, including the dataset used, the evaluation protocol, comparisons with state-of-the-art methods, and ablation and sensitivity analyses.
4.1. Experimental Setup
Effectiveness is demonstrated through evaluation on the TUM RGB-D benchmark [25]. It is recognized as one of the most established benchmarks for evaluating dynamic visual SLAM systems. Following established practices in dynamic SLAM research [18,29], we selected sequences representing varying levels of dynamic complexity: Highly Dynamic Sequences: fr3/walk_xyz, fr3/walk_rpy, fr3/walk_halfsphere featuring significant human motion throughout the scene. Moderately Dynamic Sequences: fr3/walk_static, fr3/sit_static with limited human movement. Static Environments: fr1/desk, fr2/xyz, and fr2/desk_person for baseline performance validation.
Evaluation uses Absolute Trajectory Error (ATE), measuring global consistency after trajectory alignment:
where N is the number of poses, and denote the ground-truth and estimated camera positions at timestamp , respectively, and S is the optimal similarity transformation obtained via trajectory alignment.
Relative Pose Error (RPE) evaluates local consistency and drift accumulation:
where
Improvement Percentage quantifies performance gains over baseline:
All experiments were conducted on a 12th Gen Intel Core i7-12700K CPU with an NVIDIA GeForce RTX 4090 GPU using ROS2 Humble. ORB-SLAM3 (Baseline) and NGD-SLAM were re-run under an identical setup and evaluation script. All SAR-SLAM variants were produced on the same machine and pipeline.
4.2. Ablation Study
Table 1 summarizes the configurations used for these experiments. Key parameters controlling the trade-offs are semantic confidence threshold which balances detection reliability, stride parameters , adjusting computational frequency and motion threshold () governing sensitivity to dynamic content.
Table 1.
Configuration parameters for SAR-SLAM variants and ablation studies.
The ablation study aims to determine how much each component of SAR-SLAM contributes independently and whether combining them is beneficial. Thus, we compare five configurations against the baseline (ORB-SLAM3): each cue employed independently (semantic-only and ROI-only), and three configurations of the full system. Among the full-system configurations, Forced Accurate (FA) mode prioritizes accuracy, Forced Efficient (FE) mode prioritizes computational efficiency, and adaptive mode dynamically balances accuracy and efficiency depending on scene complexity. The results on four TUM walking sequences are presented in Table 2.
Table 2.
Ablation study results across TUM RGB-D sequences.
Each cue possesses its own functionality. When utilized in isolation, the semantic and ROI threads each detect and remove dynamic content, thereby reducing trajectory error well below the baseline. For instance, on the fr3_walk_xyz trajectory, the ATE drops from 0.166 m to 0.035 m and 0.045 m, respectively. This finding indicates that while semantic appearance and geometric motion are each valuable, they can be improved when adaptively switching.
Combining them is helpful, but adapting is the most beneficial. Using both cues, Forced Accurate and Forced Efficient, yields better results than using either cue alone. Allowing the system to select per frame (adaptive) yields the best overall performance. The adaptive variant reports the highest average dynamic level (Avg.DynLevel) (1.98, 1.56, 1.15, and 1.07), captures the most dynamic content, the highest total dynamic points detected (DPD) on every sequence, e.g., 64k on walk_xyz and 76k on walk_rpy, masks dynamic features most densely per frame, up to 87.6, and does so with the highest mask confidence mean score, up to 0.78. Accuracy results from these diagnostic improvements: on walk_xyz, walk_static, walk_rpy, and walk_half, ATE achieves 0.015 m, 0.002 m, 0.016 m, and 0.013 m.
To characterize behavior over time qualitatively, Figure 4 shows the temporal evolution of dynamic-pixel coverage (a) and average motion magnitude (b) over the normalized sequence progress. For each approach, the solid curve is the mean across the walking sequences at each point of progress, and the shaded band is the corresponding standard deviation across sequences, indicating how consistently that approach behaves from one sequence to another. Dynamic activity varies throughout the sequences, with coverage increasing when pedestrians enter the scene and decreasing as it becomes less crowded. Across this variation, the adaptive strategy closely follows the Forced Accurate profile while keeping a comparably narrow band, indicating that its per-frame mode switching preserves stable dynamic-scene handling and does not become erratic across sequences. This shows that the controller adjusts computational effort to the scene without sacrificing dynamic coverage, consistent with the accuracy efficiency trade-off reported in Table 2.
Figure 4.
Mean temporal profiles of dynamic scene metrics. (a) Dynamic pixel ratio and (b) average motion magnitude, across all TUM RGB-D walking sequences and plotted against normalized sequence progress. Solid lines show the mean across sequences at each point of progress, and the shaded areas show standard deviation across sequences.
In summary, each component contributes, and the adaptive combination captures the most dynamic content with the highest confidence and, in turn, the best accuracy across all four motion types while avoiding the cost of always running both cues.
4.3. Comparison with State-of-the-Art Methods
We present an evaluation of SAR-SLAM against dynamic SLAM algorithms on the TUM RGB-D benchmark. The analysis focuses on three key aspects: absolute trajectory accuracy, local consistency, and the statistical distribution of errors. It provides a clear view of performance across dataset series that follow different scenarios of dynamic levels.
4.3.1. Absolute Trajectory Error Analysis
The Root Mean Square Error (RMSE) and Standard Deviation (SD) of the Absolute Trajectory Error (ATE), detailed in Table 3, serve as the primary metrics for overall trajectory accuracy. The results demonstrate SAR-SLAM’s robust performance across all environment types.
Table 3.
RMSE and SD Comparison of Absolute Trajectory Error (ATE) of SAR-SLAM and other dynamic SLAM methods on the TUM RGB-D dataset.
Dominance in High-Dynamic Sequences: SAR-SLAM delivers good performance among the compared methods in the most challenging scenarios involving significant human motion. On the fr3_walk_rpy sequence, which combines walking camera motion with aggressive rotational dynamics, SAR-SLAM achieves the lowest RMSE (0.033 m) and Standard Deviation (0.018 m). This outperforms other state-of-the-art methods such as NGD-SLAM [15], RED-SLAM [9] and DIG-SLAM [18]. This indicates not only higher accuracy but also improved estimation stability. Similarly, on fr3_walk_xyz, SAR-SLAM matches the best RMSE (0.015 m) achieved by NGD-SLAM and DIG-SLAM, but again secures the lowest SD (0.007 m), highlighting its tighter error distribution compared to RED-SLAM [9] (SD: 0.008 m).
Consistent Improvement Over Baseline: The performance gap between SAR-SLAM and the classic ORB-SLAM3 [6] is clear, especially in dynamic sequences. For instance, on fr3_walk_xyz and fr3_walk_rpy, SAR-SLAM reduces the ATE by over 96% and 93%, respectively. This improvement underscores the critical limitation of ORB-SLAM3 in dynamic environments and validates the necessity of the dynamic feature handling mechanisms integrated into SAR-SLAM.
Competitive and Consistent Performance: In less dynamic or static sequences, such as fr3_sit_static, SAR-SLAM performs comparably to other methods, including DynaSLAM [8], RED-SLAM [9], and DIG-SLAM [18] (all at 0.006 m RMSE). This demonstrates that our method does not sacrifice accuracy in static scenarios to achieve robustness in dynamic ones. Furthermore, SAR-SLAM achieves the best RMSE (0.005 m) and SD (0.002 m) on fr3_walk_static, outperforming RED-SLAM (0.007 m / 0.003 m) and indicating its ability to finely handle subtle motions and static periods within dynamic sequences.
4.3.2. Relative Pose Error Analysis
ATE captures how well the whole trajectory matches the ground truth, but it says little about how the error behaves moment to moment. For that, we turn to the Relative Pose Error (RPE), which measures local accuracy and how drift builds up over time [31]. Table 4 reports the translational (m/s) and rotational (°/s) RPE for each method. The rotational term here is the full 3D rotation error, taken as the geodesic angle of the relative rotation (Equations (15)–(17)) rather than yaw alone, and the translational term is the full 3D translation magnitude; both follow the standard TUM convention. Figure 5 shows the estimated trajectories against the ground truth for the compared methods.
Table 4.
Relative Pose Error (RPE) analysis (translational and rotational) of SAR-SLAM and other dynamic SLAM methods on TUM RGB-D Dataset.
Figure 5.
Qualitative trajectory evaluation on the TUM fr3 dataset. A comparison of the estimated 3D trajectories (red lines) against the ground truth (blue line) for SAR-SLAM (top row), NGD-SLAM (middle row), and ORB-SLAM3 (bottom row) across five sequences with varying dynamic conditions.
Translational Drift: SAR-SLAM achieves the lowest translational drift across all dynamic walking sequences. It records the best translational RPE on fr3_walk_xyz (0.015 m/s), fr3_walk_half (0.020 m/s), and fr3_walk_rpy (0.031 m/s). This represents an improvement over RED-SLAM, which shows higher drift on these sequences. These consistent results in translational RPE suggest that our semantic-geometric-temporal fusion is more effective at minimizing the accumulation of small-scale pose errors than the approach employed by other methods.
Rotational stability: SAR-SLAM also demonstrates strong rotational performance. It achieves the lowest rotational RPE on fr3_walk_half (0.605°/s) and fr3_walk_static (0.163°/s). On the challenging fr3_walk_rpy sequence, its rotational error (0.739°/s) is significantly better than RED-SLAM (for which the rotational RPE is not fully reported but is implied to be higher) and is highly competitive with the best results from NGD-SLAM and DynaSLAM.
The cumulative distribution of ATE, visualized in Figure 6, provides further statistical evidence. The fact that SAR-SLAM’s curve is consistently the leftmost and steepest across all five fr3 sequences confirms that it has both a higher probability of achieving very low errors and a more predictable, tightly clustered error distribution compared to all other methods. Moreover, the error distribution analysis in Figure 7 visually supports these findings. The sharp, narrow peak of SAR-SLAM’s probability density function concentrated near zero error contrasts with the broader distributions of ORB-SLAM3. This visualization directly confirms that SAR-SLAM’s estimates are not only more accurate on average but also more precise and reliable on a frame-to-frame basis.
Figure 6.
Cumulative distribution of Relative Pose Error (RPE). The curves show the probability (y-axis) that the trajectory error is below a given threshold (x-axis) for ORB-SLAM3, NGD-SLAM, and the proposed SAR-SLAM. SAR-SLAM’s curve is consistently leftmost and steepest, indicating both higher accuracy (lower error) and higher precision (tighter distribution) across all five sequences.
Figure 7.
Error distribution analysis. Probability density of Absolute Trajectory Errors across five sequences. The proposed SAR-SLAM shows a sharper peak concentrated near zero error, indicating more precise and stable trajectory estimation compared to ORB-SLAM3 and NGD-SLAM, which exhibit broader, flatter distributions.
4.4. Deployment and Runtime Performance
To validate real-world applicability, we deployed SAR-SLAM on a TIAGo PAL robot [32] equipped with an NVIDIA Jetson Orin and drove it around our indoor laboratory for approximately 6 min. Figure 8 illustrates the experiment: the top row shows the generated path from robot poses along all steps, and the bottom row shows sampled camera frames from the onboard RGB-D sensor. Runtime logs, summarized in Figure 9 and Table 5, show that the system sustained an average frame rate of 34.89 fps and a mean latency of 14.97 ms, with a real-time compliance rate of 92.5% against a 30 FPS deadline. The average CPU usage was 469.69% of approximately 4.7 cores of the 12-core ARM CPU, and memory usage remained stable at 761.51 MB, confirming that SAR-SLAM can operate reliably on an embedded robotic platform in dynamic indoor environments.
Figure 8.
Deployment experiment on a TIAGo PAL robot [32] with Jetson Orin. The top row shows the robot’s generated path and 3D map. The bottom row shows the captured camera frames with tracked features overlaid, from Start to End of Robot journey.
Figure 9.
Deployment runtime performance of SAR-SLAM on a TIAGo robot (with Jetson Orin) over six-minute mission. (a) Frame rate over time; (b) per-frame latency breakdown (tracking, segmentation, and I/O processing) and total latency mean; (c) CPU utilization.
Table 5.
Summary of key deployment runtime metrics for SAR-SLAM on the TIAGo PAL robot with Jetson Orin, collected during a six-minute laboratory drive.
5. Conclusions
In this paper, we presented SAR-SLAM, an RGB-D SLAM framework designed for robust localization and mapping in dynamic, human-occluded environments. The approach integrates semantic detection via YOLOv8 with geometric motion verification using RANSAC-based Homography analysis. This combination effectively distinguishes between static and truly moving objects, preventing feature corruption while preserving valuable static landmarks. The adaptive fusion strategy leverages scene complexity and pixel-level information to maintain system stability across diverse environments. Experimental results on the TUM RGB-D benchmark demonstrate that SAR-SLAM reduces trajectory errors by up to 96% compared to ORB-SLAM3 in highly dynamic sequences. It outperforms state-of-the-art methods, including NGD-SLAM, RED-SLAM, and DIG-SLAM, across both absolute and relative metrics. Ablation studies confirm the complementary strengths of the semantic and geometric components and show that the framework balances accuracy and computational efficiency. We further validated the framework on a physical TIAGo robot with a Jetson Orin, where it runs in real time during a continuous navigation mission, confirming its suitability for embedded robotic deployment. Future work will extend SAR-SLAM to monocular and stereo camera configurations and further optimize the framework for resource-constrained embedded hardware. We also plan to integrate SAR-SLAM with the NAV2 navigation stack to support socially aware navigation in dynamic, human-populated environments. This will enable deployment in hospitals, collaborative workspaces, and other human-robot interaction scenarios where dynamic elements are common.
Author Contributions
Conceptualization, B.A.-T.; methodology, B.A.-T.; validation, B.A.-T., M.J. and T.H.; investigation, B.A.-T. and A.A.-H.; resources, B.A.-T. and A.A.-H.; writing—original draft preparation, B.A.-T., M.J. and T.H.; writing—review and editing, B.A.-T. and M.J.; visualization, B.A.-T. and M.J.; supervision, A.A.-H.; project administration, B.A.-T. and A.A.-H.; funding acquisition, A.A.-H. All authors have read and agreed to the published version of the manuscript.
Funding
This research was supported by several NIT projects: in part by the Federal Ministry of Research, Technology, and Space of Germany (BMFTR) through project Edison (Grant No. 13N17576); in part by the European Regional Development Fund (ERDF) through ENABLING (Grant No. ZS/2023/12/182056); and by the ERDF as part of the project ORAKEL (Grant No. ZS/2023/12/182322), funded by the European Union and the state of Saxony-Anhalt.
Data Availability Statement
This study uses a public dataset and did not generate any new data. All datasets, materials, and sources discussed in this manuscript are publicly available in the cited references.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Malone, C.; Claxton, O.; Shames, I.; Milford, M. Adversarial Attacks and Detection in Visual Place Recognition for Safer Robot Navigation. arXiv 2025, arXiv:2506.15988. [Google Scholar]
- Al-Tawil, B.; Hempel, T.; Abdelrahman, A.; Al-Hamadi, A. A review of visual SLAM for robotics: Evolution, properties, and future applications. Front. Robot. AI 2024, 11, 1347985. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hempel, T.; Al-Hamadi, A. Pixel-wise motion segmentation for SLAM in dynamic environments. IEEE Access 2020, 8, 164521–164528. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.; Tian, Y.; Chen, J.; Xu, K.; Ding, X. A survey of visual SLAM in dynamic environment: The evolution from geometric to semantic approaches. IEEE Trans. Instrum. Meas. 2024, 73, 1–21. [Google Scholar] [CrossRef] [Scilit]
- Al-Tawil, B.; Candemir, A.; Jung, M.; Al-Hamadi, A. Mobile Robot Navigation with Enhanced 2D Mapping and Multi-Sensor Fusion. Sensors 2025, 25, 2408. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Campos, C.; Elvira, R.; Rodríguez, J.J.G.; Montiel, J.M.; Tardós, J.D. Orb-slam3: An accurate open-source library for visual, visual–inertial, and multimap slam. IEEE Trans. Robot. 2021, 37, 1874–1890. [Google Scholar] [CrossRef] [Scilit]
- Galagain, C.; Poreba, M.; Goulette, F. Is Semantic SLAM Ready for Embedded Systems? A Comparative Survey. arXiv 2025, arXiv:2505.12384. [Google Scholar]
- Bescos, B.; Fácil, J.M.; Civera, J.; Neira, J. DynaSLAM: Tracking, mapping, and inpainting in dynamic scenes. IEEE Robot. Autom. Lett. 2018, 3, 4076–4083. [Google Scholar] [CrossRef] [Scilit]
- Liu, H.; Tian, L.; Du, Q.; Duan, R. RED-SLAM: Real-time and effective RGB-D SLAM with spatial-geometric observations and fast semantic perception for dynamic environments. Meas. Sci. Technol. 2025, 36, 036303. [Google Scholar] [CrossRef] [Scilit]
- Abati, G.F.; Soares, J.C.V.; Medeiros, V.S.; Meggiolaro, M.A.; Semini, C. Panoptic-SLAM: Visual SLAM in dynamic environments using panoptic segmentation. In Proceedings of the 2024 21st International Conference on Ubiquitous Robots (UR); IEEE: Piscataway, NJ, USA, 2024; pp. 1–8. [Google Scholar]
- Li, B.; Hao, V.C.; Stuckey, P.J.; Reid, I.; Rezatofighi, H. Hier-slam++: Neuro-symbolic semantic slam with a hierarchically categorical gaussian splatting. arXiv 2025, arXiv:2502.14931. [Google Scholar]
- Li, J.; Luo, J. YS-SLAM: YOLACT++ based semantic visual SLAM for autonomous adaptation to dynamic environments of mobile robots. Complex Intell. Syst. 2024, 10, 5771–5792. [Google Scholar] [CrossRef] [Scilit]
- Qi, H.; Chen, X.; Yu, Z.; Li, C.; Shi, Y.; Zhao, Q.; Huang, Q. Semantic-Independent Dynamic SLAM Based on Geometric Re-Clustering and Optical Flow Residuals. IEEE Trans. Circuits Syst. Video Technol. 2024, 35, 2244–2259. [Google Scholar]
- Hong, J.; Choi, R.; Leonard, J.J. Learning from Feedback: Semantic Enhancement for Object SLAM Using Foundation Models. arXiv 2024, arXiv:2411.06752. [Google Scholar]
- Zhang, Y.; Bujanca, M.; Luján, M. Ngd-slam: Towards real-time dynamic slam without gpu. arXiv 2024, arXiv:2405.07392. [Google Scholar]
- Al-Tawil, B.; Jung, M.; Hempel, T.; Al-Hamadi, A. Multi-Head Attention-Based Framework with Residual Network for Human Action Recognition. Sensors 2025, 25, 2930. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ji, T.; Wang, C.; Xie, L. Towards real-time semantic rgb-d slam in dynamic environments. In Proceedings of the 2021 IEEE International Conference on Robotics and Automation (ICRA); IEEE: Piscataway, NJ, USA, 2021; pp. 11175–11181. [Google Scholar]
- Liang, R.; Yuan, J.; Kuang, B.; Liu, Q.; Guo, Z. DIG-SLAM: An accurate RGB-D SLAM based on instance segmentation and geometric clustering for dynamic indoor scenes. Meas. Sci. Technol. 2023, 35, 015401. [Google Scholar] [CrossRef] [Scilit]
- Jocher, G.; Chaurasia, A.; Qiu, J. Ultralytics YOLOv8. 2023. Available online: https://github.com/ultralytics/ultralytics (accessed on 20 October 2025).
- Fischler, M.A.; Bolles, R.C. Random sample consensus: A paradigm for model fitting with applications to image analysis and automated cartography. Commun. ACM 1981, 24, 381–395. [Google Scholar] [CrossRef] [Scilit]
- Macenski, S.; Foote, T.; Gerkey, B.; Lalancette, C.; Woodall, W. Robot Operating System 2: Design, architecture, and uses in the wild. Sci. Robot. 2022, 7, eabm6074. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Dang, T.; Nguyen, K.; Huber, M. V3D-SLAM: Robust RGB-D SLAM in Dynamic Environments with 3D Semantic Geometry Voting. In Proceedings of the 2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS); IEEE: Piscataway, NJ, USA, 2024; pp. 7847–7853. [Google Scholar]
- Wang, K.; Yao, X.; Ma, N.; Jing, X. Real-time motion removal based on point correlations for RGB-D SLAM in indoor dynamic environments. Neural Comput. Appl. 2023, 35, 8707–8722. [Google Scholar]
- Soares, J.C.V.; Abati, G.F.; Semini, C. VAR-SLAM: Visual Adaptive and Robust SLAM for Dynamic Environments. arXiv 2025, arXiv:2510.16205. [Google Scholar]
- Sturm, J.; Engelhard, N.; Endres, F.; Burgard, W.; Cremers, D. A Benchmark for the Evaluation of RGB-D SLAM Systems. In Proceedings of the International Conference on Intelligent Robot Systems (IROS), Algarve, Portugal, 7–12 October 2012. [Google Scholar]
- Rublee, E.; Rabaud, V.; Konolige, K.; Bradski, G. ORB: An efficient alternative to SIFT or SURF. In Proceedings of the 2011 International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2011; pp. 2564–2571. [Google Scholar]
- Lowe, D.G. Distinctive image features from scale-invariant keypoints. Int. J. Comput. Vis. 2004, 60, 91–110. [Google Scholar] [CrossRef] [Scilit]
- Saputra, M.R.U.; Markham, A.; Trigoni, N. Visual SLAM and structure from motion in dynamic environments: A survey. ACM Comput. Surv. CSUR 2018, 51, 1–36. [Google Scholar] [CrossRef] [Scilit]
- Liu, J.; Yao, D.; Liu, N.; Yuan, Y. Towards Biologically-Inspired Visual SLAM in Dynamic Environments: IPL-SLAM with Instance Segmentation and Point-Line Feature Fusion. Biomimetics 2025, 10, 558. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Liu, Y.; Miura, J. RDS-SLAM: Real-time dynamic SLAM using semantic segmentation methods. IEEE Access 2021, 9, 23772–23785. [Google Scholar] [CrossRef] [Scilit]
- Hu, T.; Scargill, T.; Yang, F.; Chen, Y.; Lan, G.; Gorlatova, M. SEESys: Online pose error estimation system for visual SLAM. In Proceedings of the 22nd ACM Conference on Embedded Networked Sensor Systems, Hangzhou, China, 4–7 November 2024; pp. 322–335. [Google Scholar]
- Pages, J.; Marchionni, L.; Ferro, F. Tiago: The modular robot that adapts to different research needs. In Proceedings of the International Workshop on Robot Modularity, (IROS 2016), Daejeon, Republic of Korea, 10 October 2016; Volume 290, p. 98. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.








