Human-in-the-Loop SLAM

Samer B. Nashed, Joydeep Biswas

Abstract

Building large-scale, globally consistent maps is a challenging problem, made more difficult in environments with limited access, sparse features, or when using data collected by novice users. For such scenarios, where state-of-the-art mapping algorithms produce globally inconsistent maps, we introduce a systematic approach to incorporating sparse human corrections, which we term Human-in-the-Loop Simultaneous Localization and Mapping (HitL-SLAM). Given an initial factor graph for pose graph SLAM, HitL-SLAM accepts approximate, potentially erroneous, and rank-deficient human input, infers the intended correction via expectation maximization (EM), back-propagates the extracted corrections over the pose graph, and finally jointly optimizes the factor graph including the human inputs as human correction factor terms, to yield globally consistent large-scale maps. We present empirical results showing the effectiveness of HitL-SLAM at generating globally accurate and consistent maps even when given poor initial estimates of the map.

The Challenge: When SLAM Drifts

Simultaneous Localization and Mapping (SLAM) is the "bread and butter" of mobile robotics, but it is far from perfect. In environments with sparse features (like long, featureless hallways), limited sensor range, or when data is collected by non-experts, standard SLAM algorithms often suffer from massive "drift." This results in maps where hallways are bent, rooms do not line up, and the global consistency of the environment is lost.

While autonomous "loop closure" is the standard solution, it often fails in challenging real-world scenarios. HitL-SLAM addresses the need for a post-hoc, interactive way to fix metric mapping errors using human intuition about geometry, treating the human as a high-level sensor capable of recognizing global topological truths that robots might miss.

The HitL-SLAM Pipeline

The core of the HitL-SLAM approach is a three-stage pipeline designed to integrate human "hints" into the mapping process:

  1. Human Input Interpretation (EM Algorithm): A user interacts with a messy initial map by indicating geometric relationships (e.g., clicking and dragging line segments). Because human clicks are imprecise, the system uses an Expectation-Maximization (EM) approach to treat the "intended" correction as a latent variable, automatically associating rough human input with actual noisy sensor observations.
  2. Error Backpropagation (COP-SLAM): Once a correction is defined, the system resolves resulting discontinuities in the robot's trajectory using Closed-Form Online Pose-Chain SLAM (COP-SLAM) to provide a smooth initial guess for final optimization.
  3. Hybrid Factor Graph Optimization: The system performs a joint non-linear least-squares optimization using a factor graph that combines standard robot factors (odometry and laser scans) with new "human factors" representing constraints like colocation, collinearity, perpendicularity, and parallelism.
The HitL-SLAM pipeline, showing how human input is refined via EM and integrated into a joint optimization framework.

Key Insights: Humans as High-Level Sensors

A critical innovation in HitL-SLAM is the support for rank-deficient constraints. Unlike standard loop closures that require a full 3-DOF (x, y, theta) match, HitL-SLAM allows a user to provide partial information—for example, stating that two walls are parallel without knowing their exact distance. By adding these human factors to the information matrix, the system introduces global "stiffness" to the map, preventing local errors from warping the entire structure.

Results and Impact

The researchers evaluated HitL-SLAM using several indoor datasets, including the large-scale "BIG MAP" featuring over 3,000 poses across interconnected buildings.

Comparison of a drifted map (a) with human-provided geometric constraints and the resulting corrected, globally consistent map (b).
  • Massive Error Reduction: In the "BIG MAP" and LGRC datasets, HitL-SLAM reduced map inconsistency by an average of 91%.
  • Metric Accuracy: In a "Lost Poses" test with artificially limited sensor range, the system corrected a room width error from 5.97m to 6.31m, nearing the 6.33m ground truth.
  • Efficiency: Even for the largest maps, a human was able to restore global consistency in under 15 minutes, with negligible computational overhead.

Conclusion

HitL-SLAM demonstrates that sparse, high-level geometric corrections from a human user can turn globally inconsistent trajectories into professional-grade maps. While current work focuses on 2D metric mapping, future research may extend these principles to 3D environments and further automate the human-input process to reduce manual effort.

Summary updated

BibTeX
@inproceedings{nashed2018human,
  author = {Samer B. Nashed and Joydeep Biswas},
  title = {{Human-in-the-Loop SLAM}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11495},
}
Figure