Modeling and Interpolation of the Ambient Magnetic Field by Gaussian Processes.

Arno Solin, Manon Kok, Niklas Wahlstrom, Thomas B. Schön, Simo Särkkä · DOI

Abstract

This paper introduces a computationally efficient, physics-informed Gaussian Process (GP) model for mapping ambient indoor magnetic fields. By leveraging Maxwell's equations and a Hilbert space approximation, the authors transform a traditionally slow machine learning technique into a real-time algorithm capable of 3D magnetic field interpolation, paving the way for infrastructure-free indoor positioning.

Introduction

Reliable indoor positioning is a notoriously difficult problem. GPS signals degrade indoors, and alternatives like Wi-Fi, Bluetooth, or ultra-wideband require installing and maintaining external infrastructure. However, modern buildings are full of structural steel that distorts the Earth's magnetic field, creating unique, static magnetic "fingerprints" that can be read by the magnetometer inside any standard smartphone.

To use these magnetic anomalies for navigation, accurate maps of the magnetic field are required. Gaussian Processes (GPs) are excellent for interpolating spatial data, but they face two major challenges in this context:

  1. Computational Scaling: Standard GPs scale cubically $\mathcal{O}(n^3)$ with the number of data points. Mapping a single room can generate tens of thousands of points, making standard GPs computationally prohibitive.
  2. Physical Consistency: Most existing approaches model the $x$, $y$, and $z$ components of the magnetic field as independent variables, ignoring the fundamental laws of physics that govern 3D magnetic fields.

Methodology

The authors address these challenges with a three-pronged approach:

  • Physics-Informed Priors: In areas without free electrical currents, Maxwell's equations state that a magnetic field is "curl-free" ($\nabla \times \mathbf{H} = 0$). The authors place a GP prior on a latent scalar potential rather than the 3D field itself. This forces the model to obey physical laws and tightly couples the $x$, $y$, and $z$ predictions.
  • Reduced-Rank GP (Hilbert Space Approximation): To bypass the $\mathcal{O}(n^3)$ bottleneck, the authors use a series expansion based on the Laplace operator eigenbasis. This reduces computational complexity to linear time $\mathcal{O}(nm^2)$, making the model highly scalable.
  • Sequential and Spatio-Temporal Filtering: By reformulating the batch GP problem into a sequential Kalman filtering setup, the model can update its map on the fly. A temporal covariance function is included to track dynamic changes in the field over time.

Experimental Results

The model was evaluated on several datasets, including simulations, a controlled sensor board setup, and a large-scale university lobby mapping using an iPhone 4 (32,703 training points).

Key results include:

  • Superior Accuracy: In simulations, the scalar potential GP consistently achieved lower Root Mean Square Error (RMSE) than independent GP models.
  • Large-Scale Feasibility: In the 600 $m^2$ lobby experiment, the model successfully mapped the environment with high accuracy (component-wise RMSEs of 2.35 $\mu$T, 3.05 $\mu$T, and 2.71 $\mu$T).
  • Real-Time Dynamic Tracking: A robot experiment successfully processed 43,029 observations online, updating the map 5 times per second and tracking local anomalies in real-time.

Discussion and Conclusion

This research demonstrates that physics acts as a powerful regularizer; by forcing the GP to respect the curl-free nature of magnetic fields, the model requires significantly less data and provides lower uncertainty. The Hilbert space approximation further enables mathematically rigorous Bayesian modeling on lightweight hardware like a Raspberry Pi.

While the model assumes no free currents—a condition that may fail near active, unshielded electrical wires—it provides a robust framework for indoor mapping. Future work will focus on integrating this efficient online mapping scheme with simultaneous localization (SLAM) to provide a complete navigation solution.

Summary updated

BibTeX
@article{solin2015modeling,
  author = {Arno Solin and Manon Kok and Niklas Wahlstrom and Thomas B. Schön and Simo Särkkä},
  title = {{Modeling and Interpolation of the Ambient Magnetic Field by Gaussian Processes.}},
  journal = {IEEE Trans. Robotics2018},
  year = {2015},
  doi = {10.1109/tro.2018.2830326},
}
Figure