Multiscale Transformer and Attention Mechanism for Magnetic Spatiotemporal Sequence Localization
Qu Wang, Liying Wang, Meixia Fu, Qu Wang, Lei Sun, Rong Huang, Xianda Li, Zhuqing Jiang, Haiyong Luo
Abstract
Location-based service (LBS) is the core of internet of things (IoTs), which serves tracking, navigation and monitoring. The ubiquitous magnetic signals are temporally stable and spatially distinguishable, and can achieve high-precision and ubiquitous positioning results without additional infrastructure, which is favored by researchers and has become a major research hotspot. Although there has been extensive research in the field of indoor magnetic positioning, there is still room for optimization in terms of positioning accuracy and robustness. Aiming at the problem that the magnetometer is offset and susceptible to environmental interference, we propose an online magnetometer calibration algorithm without user perception. Aiming at the inconsistency of magnetic data spatial scale problem caused by differences in device sampling frequency and user walking speed, we leverage different scales to segment the magnetic data, extract the magnetic sequence features of the corresponding scales through Transformer, utilize the attention mechanism to score the weights of the different scale features, and finally fuse the multiple scale features for positioning. We conduct extensive and well-designed experiments on public datasets and self-collected datasets. The experimental results indicate that the proposed method effectively solves the magnetic spatial scale problem and improves indoor magnetic positioning accuracy.