WiFi-based Global Localization in Large-Scale Environments Leveraging Structural Priors from osmAG

Xu Ma, Jiajie Zhang, Fujing Xie, Sören SchwertfegerarXiv 2025 · DOI

Abstract

This paper introduces a physics-informed localization framework that utilizes structural information from OpenStreetMap Area Graphs (osmAG) to solve the "kidnapped robot" problem in indoor environments. By explicitly modeling how walls attenuate WiFi signals, the system achieves high-accuracy global localization (3.12m–3.83m error) across large-scale, multi-floor environments while requiring 215x less storage than traditional fingerprinting methods.

Introduction

Global localization—the ability of a robot to determine its precise coordinates within a pre-existing map—is a fundamental requirement for autonomous navigation. While GPS provides a robust solution for outdoor environments, indoor spaces remain "GPS-denied." Traditional indoor solutions, such as LiDAR or vision-based SLAM, are computationally intensive and often struggle when a robot is "kidnapped" (placed in an unknown location without a prior pose).

WiFi-based localization has emerged as a popular alternative due to its reliance on existing infrastructure. However, standard "fingerprinting" techniques—which involve creating a dense heatmap of signal strengths—are labor-intensive, sensitive to environmental changes, and fail in areas where no prior data was collected. This research bridges the gap by leveraging the geometric layout of a building (walls, doors, corridors) to predict signal behavior rather than simply memorizing it.

Methodology: The osmAG Framework

The proposed system is anchored by the osmAG (OpenStreetMap Area Graph), a representation that stores the semantic and topological structure of a building alongside its coordinates.

The osmAG data structure stores geometric-topological nodes and ways, including semantic tags for rooms and WiFi Access Points.

The framework operates in two distinct phases:

  1. Offline Phase (AP Localization): Rather than manually surveying every WiFi Access Point (AP), the system uses a small set of "seed" data to estimate signal propagation parameters. It employs a physics-informed signal model (log-distance path loss) that accounts for wall attenuation. An iterative optimization algorithm calculates the 3D coordinates of detectable APs by analyzing which signal paths are obstructed by walls defined in the osmAG map.
  2. Online Phase (Robot Localization): During deployment, the robot performs real-time WiFi scans and queries the augmented osmAG map. It calculates an initial position via trilateration and refines it through "wall intersection tests," adjusting distance estimates based on the number and type of walls between its hypothesized position and known AP locations.

Experimental Setup and Datasets

The framework was validated in a massive real-world setting at ShanghaiTech University, covering 11,025 $m^2$ across two buildings (SIST and SEM). The environment included diverse multi-floor layouts such as classrooms, labs, and offices with varying wall materials (concrete, drywall, glass).

Data was collected using an Agilex Hunter SE mobile platform equipped with an EDUP WiFi receiver. Ground truth for robot trajectories was generated via a Hesai 64-channel LiDAR using LIO-SAM, while 48 AP locations were manually surveyed for validation.

Key Insights: Structure as a Prior

The core innovation of this approach is treating building geometry as a known variable rather than an unknown source of interference. By knowing the exact location of walls, the system can effectively "undo" the signal attenuation that typically degrades WiFi localization accuracy.

Visual comparison showing how accounting for wall attenuation (right) significantly pulls the localization result (red star) closer to the ground truth (green star) compared to wall-unaware methods.

This physics-based model offers two major advantages:

  • Generalization: Unlike fingerprinting, which is a lookup table, this model extrapolates. It performs nearly as well in areas where the robot has never been before as it does in calibration zones.
  • Storage Efficiency: By storing only AP coordinates and a few signal parameters instead of a dense grid of signal strengths, the map size is reduced by a factor of 215, making it ideal for robots with limited memory.

Results and Performance

The system demonstrated significant improvements over traditional methods:

  • AP Localization: The iterative optimization localized APs with a mean error of 3.79m, a 35.3% improvement over standard trilateration.
  • Robot Localization (Non-Fingerprinted Areas): In areas without prior data, traditional KNN fingerprinting error ballooned to 20.21m. In contrast, the proposed method maintained a mean error of 3.83m—an 81% improvement.
  • Reliability: The 95th percentile error in non-fingerprinted areas was only 4.72m, indicating high reliability even in "blind" spots.

Conclusion

By integrating structural priors from osmAG with physics-informed signal modeling, this framework provides a robust, storage-efficient solution for global indoor localization. Future work will focus on fully "blind" calibration to eliminate the need for initial seed data and integrating this WiFi-based system as a coarse prior for high-precision LiDAR localization stacks.

Summary updated

Abstract

Global localization is essential for autonomous robotics, especially in indoor environments where the GPS signal is denied. We propose a novel WiFi-based localization framework that leverages ubiquitous wireless infrastructure and the OpenStreetMap Area Graph (osmAG) for large-scale indoor environments. Our approach integrates signal propagation modeling with osmAG's geometric and topological priors. In the offline phase, an iterative optimization algorithm localizes WiFi Access Points (APs) by modeling wall attenuation, achieving a mean localization error of 3.79 m (35.3\% improvement over trilateration). In the online phase, real-time robot localization uses the augmented osmAG map, yielding a mean error of 3.12 m in fingerprinted areas (8.77\% improvement over KNN fingerprinting) and 3.83 m in non-fingerprinted areas (81.05\% improvement). Comparison with a fingerprint-based method shows that our approach is much more space efficient and achieves superior localization accuracy, especially for positions where no fingerprint data are available. Validated across a complex 11,025 &m^2& multi-floor environment, this framework offers a scalable, cost-effective solution for indoor robotic localization, solving the kidnapped robot problem. The code and dataset are available at https://github.com/XuMa369/osmag-wifi-localization.
BibTeX
@misc{ma2025wifi,
  author = {Xu Ma and Jiajie Zhang and Fujing Xie and Sören Schwertfeger},
  title = {{WiFi-based Global Localization in Large-Scale Environments Leveraging Structural Priors from osmAG}},
  year = {2025},
  eprint = {2508.10144},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.10144},
}
Figure