Skip to main content
Log in

Real-time indoor localization using smartphone magnetic with LSTM networks

  • Original Article
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

Due to the pervasiveness of geomagnetic fields and independence from external infrastructure, localization with smartphone-based magnetic has attracted considerable attention. However, existing approaches are still facing the problem of localization accuracy because of their low discernibility in geomagnetic features. Due to the need to traverse the magnetic database, these approaches cannot obtain localization results in real-time, especially in large indoor localization areas. To address these problems, a novel magnetic indoor localization approach based on long short-term memory networks (LSTMs) is proposed. The magnetic indoor localization is first formulated as a recursive function approximation problem. Based on the analysis of magnetic characteristics, a double sliding window-based dimension expansion approach is designed to generate a time-series magnetic feature dataset. The LSTMs are invoked for magnetic localization on this dataset by taking advantage of its benefits in time-series prediction and characterization. To evaluate the performance of the proposed algorithm, we implement the proposed LSTMs-based magnetic localization approach on a real Android-based smartphone and compare it with fingerprint-based localization algorithms. Extensive experiment results demonstrate the accuracy, response time, and robustness of the proposed algorithm in indoor localization.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16

Similar content being viewed by others

References

  1. Sensor.TYPE\_ORIENTATION \(|\) Android Developers https://developer.android.google.cn/reference/android/hardware/Sensor.html#TYPE_ORIENTATION

  2. AL-Madani B, Orujov F, Maskeliūnas R, Damaševičius R, Venčkauskas A (2019) Fuzzy logic type-2 based wireless indoor localization system for navigation of visually impaired people in buildings. Sensors 19(9):2114

    Article  Google Scholar 

  3. Ashraf I, Hur S, Park S, Park Y (2020) Deeplocate: Smartphone based indoor localization with a deep neural network ensemble classifier. Sensors 20(1):133

    Article  Google Scholar 

  4. Baars BJ, Gage NM (2010) Chapter 1—mind and brain. In: Baars BJ, Gage NM (eds) Cognition, brain, and consciousness (second edition), cognition, brain, and consciousness (second edition), 2nd edn. Academic Press, London, pp 2–31

    Google Scholar 

  5. Bae HJ, Choi L (2019) Large-scale indoor positioning using geomagnetic field with deep neural networks. In: ICC 2019–2019 IEEE International conference on communications (ICC), pp 1–6

  6. Bahl P, Padmanabhan VN (2000) Radar: an in-building RF-based user location and tracking system. In: Proceedings IEEE INFOCOM 2000. Conference on computer communications. Nineteenth annual joint conference of the IEEE computer and communications societies, vol. 2, pp. 775–784

  7. Basso M, Galanti M, Innocenti G, Miceli D (2017) Pedestrian dead reckoning based on frequency self-synchronization and body kinematics. IEEE Sens J 17(2):534–545

    Article  Google Scholar 

  8. Chen H, Guo B, Yu Z, Han Q (2019) Crowdtracking: real-time vehicle tracking through mobile crowdsensing. IEEE Internet Things J 6(5):7570–7583

    Article  Google Scholar 

  9. Chen Z, Zou H, Yang J, Jiang H, Xie L (2020) Wifi fingerprinting indoor localization using local feature-based deep LSTM. IEEE Syst J 14(2):3001–3010

    Article  Google Scholar 

  10. Du C, Peng B, Zhang Z, Xue W, Guan M (2020) KF-KNN: Low-cost and high-accurate FM-based indoor localization model via fingerprint technology. IEEE Access 8:197523–197531

    Article  Google Scholar 

  11. Elloumi W, Latoui A, Canals R, Chetouani A, Treuillet S (2016) Indoor pedestrian localization with a smartphone: a comparison of inertial and vision-based methods. IEEE Sens J 16(13):5376–5388

    Article  Google Scholar 

  12. He S, Chan SG, Yu L, Liu N (2019) Maxlifd: Joint maximum likelihood localization fusing fingerprints and mutual distances. IEEE Trans Mob Comput 18(3):602–617

    Article  Google Scholar 

  13. Hoang MT, Zhu Y, Yuen B, Reese T, Dong X, Lu T, Westendorp R, Xie M (2018) A soft range limited k-nearest neighbors algorithm for indoor localization enhancement. IEEE Sens J 18(24):10208–10216

    Article  Google Scholar 

  14. Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural Comput 9(8):1735–1780

    Article  Google Scholar 

  15. Husen M, Lee S (2016) Indoor location sensing with invariant Wi-Fi received signal strength fingerprinting. Sensors 16(11):1898

    Article  Google Scholar 

  16. Jimenez AR, Seco F (2016) Comparing decawave and bespoon UWB location systems: Indoor/outdoor performance analysis. In: 2016 International conference on indoor positioning and indoor navigation (IPIN). IEEE, pp 1–8

  17. Kang W, Han Y (2015) SmartPDR: Smartphone-based pedestrian dead reckoning for indoor localization. IEEE Sens J 15(5):2906–2916

    Article  Google Scholar 

  18. Lau SL, Toh C, Saleem Y (2016) Wi-Fi fingerprint localisation using density-based clustering for public spaces: a case study in a shopping mall. In: 2016 6th International conference—cloud system and big data engineering (Confluence), pp 356–360

  19. Lee H, Wicke M, Kusy B, Guibas L (2008) Localization of mobile users using trajectory matching. In: Proceedings of the first ACM international workshop on mobile entity localization and tracking in GPS-less environments, MELT ’08. Association for Computing Machinery, New York, NY, USA, pp 123–128

  20. Lee N, Ahn S, Han D (2018) Amid: Accurate magnetic indoor localization using deep learning. Sensors (Basel, Switzerland) 18(5):1598

    Article  Google Scholar 

  21. Li Z, Yang Y, Pahlavan K (2016) Using iBeacon for newborns localization in hospitals. In: 2016 10th International symposium on medical information and communication technology (ISMICT), pp 1–5

  22. Ma Y, Dou Z, Jiang Q, Hou Z (2016) Basmag: An optimized hmm-based localization system using backward sequences matching algorithm exploiting geomagnetic information. IEEE Sens J 16(20):7472–7482

    Article  Google Scholar 

  23. Mohammad N, Muhammad S, Bashar A, Khan MA (2019) Formal analysis of human-assisted smart city emergency services. IEEE Access 7:60376–60388

    Article  Google Scholar 

  24. Olah C (2015) Understanding LSTM networks. GITHUB blog 27, 2015. https://colah.github.io/posts/2015-08-Understanding-LSTMs

  25. Orujov F, Maskeliūnas R, Damaševičius R, Wei W, Li Y (2018) Smartphone based intelligent indoor positioning using fuzzy logic. Future Gener Comput Syst 89:335–348

    Article  Google Scholar 

  26. Pan Z, Cui L, Wu X, Zhang Z, Li X, Chen G (2019) Deep potential geo-social relationship mining for point-of-interest recommendation. IEEE Access 7:99496–99507

    Article  Google Scholar 

  27. Poulose A, Eyobu OS, Han SD (2019) An indoor position-estimation algorithm using smartphone IMU sensor data. IEEE Access 7:11165–11177

    Google Scholar 

  28. Priyantha NB, Chakraborty A, Balakrishnan H (2000) The cricket location-support system. In: Proceedings of the 6th annual international conference on mobile computing and networking. ACM, Boston, Massachusetts, USA, pp 32–43

  29. Ruiz ARJ, Granja FS, Honorato JCP, Rosas JIG (2012) Accurate pedestrian indoor navigation by tightly coupling foot-mounted IMU and RFID measurements. IEEE Trans Instrum Meas 61(1):178–189

    Article  Google Scholar 

  30. Shu Y, Bo C, Shen G, Zhao C, Li L, Zhao F (2015) Magicol: Indoor localization using pervasive magnetic field and opportunistic wifi sensing. IEEE J Sel Areas Commun 33(7):1443–1457

    Article  Google Scholar 

  31. Subbu KP, Gozick B, Dantu R (2013) Locateme: Magnetic-fields-based indoor localization using smartphones. ACM Trans Intell Syst Technol (TIST) 4(4):73

    Google Scholar 

  32. Wang G, Wang X, Nie J, Lin L (2019) Magnetic-based indoor localization using smartphone via a fusion algorithm. IEEE Sens J 19(15):6477–6485

    Article  Google Scholar 

  33. Wang X, Gao L, Mao S, Pandey S (2017) CSI-based fingerprinting for indoor localization: a deep learning approach. IEEE Trans Veh Technol 66(1):763–776

    Google Scholar 

  34. Wang X, Yu Z, Mao S (2018) Deepml: Deep lstm for indoor localization with smartphone magnetic and light sensors. In: 2018 IEEE international conference on communications (ICC), pp. 1–6

  35. Wang Y, Tao D, Liu W (2017) Diversified shared latent structure based localization for blind persons. In: 2017 International conference on security, pattern analysis, and cybernetics (SPAC), pp 247–251

  36. Want R, Hopper A, Falcao V, Gibbons J (1992) The active badge location system. ACM Trans Inf Syst 10(1):91–102

    Article  Google Scholar 

  37. Wu C, Xu J, Yang Z, Lane ND, Yin Z (2017) Gain without pain: Accurate wifi-based localization using fingerprint spatial gradient. In: Proceedings of the ACM on interactive, mobile, wearable and ubiquitous technologies, 1(2):29

  38. Xiao C, Yang D, Chen Z, Tan G (2017) 3-D BLE indoor localization based on denoising autoencoder. IEEE Access 5:12751–12760

    Article  Google Scholar 

  39. Xie H, Gu T, Tao X, Ye H, Lu J (2016) A reliability-augmented particle filter for magnetic fingerprinting based indoor localization on smartphone. IEEE Trans Mob Comput 15(8):1877–1892

    Article  Google Scholar 

  40. Yang H, Zhang R, Bordoy J, Höflinger F, Li W, Schindelhauer C, Reindl L (2016) Smartphone-based indoor localization system using inertial sensor and acoustic transmitter/receiver. IEEE Sens J 16(22):8051–8061

    Article  Google Scholar 

  41. Yin Y, Song C, Li M, Niu Q (2019) A CSI-based indoor fingerprinting localization with model integration approach. Sensors 19(13):2998

    Article  Google Scholar 

  42. Zhang R, Hoflinger F, Reindl L (2013) Inertial sensor based indoor localization and monitoring system for emergency responders. IEEE Sens J 13(2):838–848

    Article  Google Scholar 

Download references

Acknowledgements

This work was supported in part by the National Natural Science Foundation of China under Grants 61772126, and 61972079, in part by the National Key Research and Development Program of China under Grants 2018YFC0830601, in part by the Fundamental Research Funds for the Central Universities under Grants N2016004, N2016002, and N2024005-1, in part by the joint Funds of Ministry of Education with China Mobile under Grant MCM20180203, in part by the Central Government Guided Local Science and Technology Development Fund Project under Grant 2020ZY0003, and in part by the Young and Middle-aged Scientific and Technological Innovation Talent Support Program of Shenyang under Grant RC200548.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jie Jia.

Ethics declarations

Conflict of interest

We promise that this manuscript is the authors’ original work and has not been published nor has it been submitted simultaneously elsewhere. All authors have checked the manuscript and have agreed to the submission.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Zhang, M., Jia, J., Chen, J. et al. Real-time indoor localization using smartphone magnetic with LSTM networks. Neural Comput & Applic 33, 10093–10110 (2021). https://doi.org/10.1007/s00521-021-05774-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00521-021-05774-5

Keywords

Navigation