Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Jan 30;23(3):1514.
doi: 10.3390/s23031514.

Magnetic-Field-Based Indoor Positioning Using Temporal Convolutional Networks

Affiliations

Magnetic-Field-Based Indoor Positioning Using Temporal Convolutional Networks

Guanglie Ouyang et al. Sensors (Basel). .

Abstract

Traditional magnetic-field positioning methods collect magnetic-field information from each spatial point to construct a magnetic-field fingerprint database. During the positioning phase, real-time magnetic-field measurements are matched to a magnetic-field map to predict the user's location. However, this approach requires a significant amount of time to traverse the entire magnetic-field fingerprint database and does not effectively leverage the magnetic-field sequence's unique patterns to improve the accuracy and robustness of the positioning system. In recent years, the application of deep learning for the indoor positioning of magnetic fields has grown rapidly, especially by using the magnetic-field sequence as a time series and a trained long short-term memory (LSTM) model to predict the position, directly avoiding the time-consuming matching process. However, the training of LSTM is time-consuming, and the degradation problem occurs as the stack of layers increases. This article proposes a temporal convolutional network (TCN)-based magnetic-field positioning system that extracts magnetic-field sequence features by preprocessing them with coordinate transformation, smoothing filtering, and first-order differencing. The proposed method is seamlessly applicable to heterogeneous smartphones. The trained TCN models are compared with the LSTM and gated recurrent unit (GRU) models, showing the high accuracy and robustness of the proposed algorithm.

Keywords: heterogenous smartphones; indoor positioning; magnetic field; magnetic trajectories; temporal convolutional networks.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
Magnetic field measurements of heterogeneous smartphones in the same corridor. (a) iPhone 12 Mini forward; (b) iPhone 12 Mini backward; (c) iPhone Xs Max forward; (d) iPhone Xs Max backward; (e) Redmi Note 7 forward; (f) Redmi Note 7 backward.
Figure 1
Figure 1
Magnetic field measurements of heterogeneous smartphones in the same corridor. (a) iPhone 12 Mini forward; (b) iPhone 12 Mini backward; (c) iPhone Xs Max forward; (d) iPhone Xs Max backward; (e) Redmi Note 7 forward; (f) Redmi Note 7 backward.
Figure 2
Figure 2
Magnetic field measurement with coordinate transformation in the same corridor. (a) iPhone 12 Mini transformed data forward; (b) iPhone 12 Mini transformed data backward; (c) iPhone Xs Max transformed data forward; (d) iPhone Xs Max transformed data backward; (e) Redmi Note 7 transformed forward; (f) Redmi Note 7 transformed data backward.
Figure 2
Figure 2
Magnetic field measurement with coordinate transformation in the same corridor. (a) iPhone 12 Mini transformed data forward; (b) iPhone 12 Mini transformed data backward; (c) iPhone Xs Max transformed data forward; (d) iPhone Xs Max transformed data backward; (e) Redmi Note 7 transformed forward; (f) Redmi Note 7 transformed data backward.
Figure 3
Figure 3
Visualization of a stack of causal convolutional layers.
Figure 4
Figure 4
Visualization of a stack of dilated causal convolutional layers.
Figure 5
Figure 5
Structure of proposed temporal convolutional networks. (a) Residual learning block; (b) TCN residual block; (c) example of residual connection in a TCN.
Figure 6
Figure 6
Scheme of the indoor magnetic trajectory classification based on a temporal convolutional network.
Figure 7
Figure 7
Designed corridors in Polytech Galilee.
Figure 8
Figure 8
Test trajectory predictions.
Figure 9
Figure 9
Confusion matrix trained and untrained smartphone. (a) Aggregation of three trained smartphones (accuracy: 99.80%); (b) Samsung Galaxy S20 (accuracy: 95.20%); (c) Samsung Galaxy S9 (accuracy: 88.23%); (d) OnePlus 7T Pro (accuracy: 84.27%).

References

    1. Schiller J., Voisard A. Location-Based Services. Elsevier; Amsterdam, The Netherlands: 2004.
    1. Basiri A., Lohan E.S., Moore T., Winstanley A., Peltola P., Hill C., Amirian P., e Silva P.F. Indoor location based services challenges, requirements and usability of current solutions. Comput. Sci. Rev. 2017;24:1–12. doi: 10.1016/j.cosrev.2017.03.002. - DOI
    1. Ali M.U., Hur S., Park S., Park Y. Harvesting indoor positioning accuracy by exploring multiple features from received signal strength vector. IEEE Access. 2019;7:52110–52121. doi: 10.1109/ACCESS.2019.2911601. - DOI
    1. Alarifi A., Al-Salman A., Alsaleh M., Alnafessah A., Al-Hadhrami S., Al-Ammar M.A., Al-Khalifa H.S. Ultra wideband indoor positioning technologies: Analysis and recent advances. Sensors. 2016;16:707. doi: 10.3390/s16050707. - DOI - PMC - PubMed
    1. Yao C.Y., Hsia W.C. An indoor positioning system based on the dual-channel passive RFID technology. IEEE Sens. J. 2018;18:4654–4663. doi: 10.1109/JSEN.2018.2828044. - DOI

LinkOut - more resources