Skip to main content
Log in

An Improved WKNN Algorithm Based on Flexible K Selection Strategy and Distance Compensation for Indoor Localization

  • Research Article-Electrical Engineering
  • Published:
Arabian Journal for Science and Engineering Aims and scope Submit manuscript

Abstract

Weighted K-nearest neighbor algorithm (WKNN) is the most commonly used algorithm based on Wi-Fi. However, the accuracy of traditional algorithm is not very high due to the inflexible strategy and the ignorance of distance corresponding relationship. In this paper, an improved WKNN algorithm using fingerprint method for indoor positioning called DC-WKNN is proposed, which based on flexible K selection strategy and distance compensation. The fingerprint database is filled by fuzzy C-Means (FCM) in the offline training stage, and the online positioning stage consists of two positioning phases named coarse positioning and fine positioning. An improved K selection strategy based on relative density is firstly proposed to choose the value of K flexibly according to different test point in coarse positioning phase. Then, an WKNN algorithm based on distance compensation (DC) for adjusting the characteristic distance and realizing fine positioning is proposed. The experimental results show that the average positioning error of proposed algorithm is less than 1.1m, which reduce by 11.1%, 10% and 6.5%.

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

Similar content being viewed by others

References

  1. Zhang, H.; Liu, K.; Jin, F.; Feng, L.; Lee, V.; Ng, J.: A scalable indoor localization algorithm bas4ed on distance fitting and fingerprint mapping in Wi-Fi environments. Neural Comput. Appl. 32, 5131–5145 (2019)

    Article  Google Scholar 

  2. Sotenga, P.Z.; Djouani, K.; Kurien, A.M.; Mwila, M.: Implementation of an indoor localisation algorithm for Internet of Things. Futur. Gener. Comput. Syst. 107, 1037–1046 (2020)

    Article  Google Scholar 

  3. Yang, H.; Zhang, Y.; Huang, Y.; Fu, H.; Wang, Z.: WKNN indoor location algorithm based on zone partition by spatial features and restriction of former location. Pervasive Mob. Comput. 60, 101085 (2019)

    Article  Google Scholar 

  4. Li, X.; Bharanidharan, M.: RSSI fingerprinting based iPhone indoor localization system without Apple API. Wireless Pers. Commun. 112, 61–74 (2019)

    Article  Google Scholar 

  5. Zhao, M.; Qin, D.; Guo, R.; Xu, G.: Research on crowdsourcing network indoor localization based on co-forest and Bayesian compressed sensing. Ad Hoc Netw. 105, 102176 (2020)

    Article  Google Scholar 

  6. Zhang, C.; Qin, N.; Xue, Y.; Yang, L.: Received signal strength-based indoor localization using hierarchical classification. Sensors (Basel) (2020). https://doi.org/10.3390/s20041067

    Article  Google Scholar 

  7. Gan, H.; Khir, M.H.B.M.; Djaswadi Bin, W.B.; Ramli, N.: A hybrid model based on constraint OSELM, adaptive weighted SRC and KNN for large-scale indoor localization. IEEE Access 7, 6971–6989 (2019)

    Article  Google Scholar 

  8. Yu, Y.; Chen, R.; Liu, Z.; Guo, G.; Ye, F.; Chen, L.: Wi-Fi fine time measurement: data analysis and processing for indoor localisation. J. Navig. 73, 1106–1128 (2020)

    Article  Google Scholar 

  9. Jun, J.; He, L.; Gu, Y.; Jiang, W.; Kushwaha, G.; Vipin, A.; Cheng, L.; Liu, C.; Zhu, T.: Low-overhead WiFi fingerprinting. IEEE Trans. Mob. Comput. 17, 590–603 (2018)

    Article  Google Scholar 

  10. Oh, J.; Kim, J.: Adaptive K-nearest neighbour algorithm for WiFi fingerprint positioning. ICT Express 4, 91–94 (2018)

    Article  Google Scholar 

  11. Wang, B.; Liu, X.; Yu, B.; Jia, R.; Gan, X.: An improved WiFi positioning method based on fingerprint clustering and signal weighted Euclidean distance. Sensors (Basel) (2019). https://doi.org/10.3390/s19102300

    Article  Google Scholar 

  12. Wang, B.; Liu, X.; Yu, B.; Jia, R.; Gan, X.: A WiFi RSSI ranking fingerprint positioning system and its application to indoor activities of daily living recognition. Int. J. Distrib. Sens. Netw. 15, 155014771983791 (2019)

    Article  Google Scholar 

  13. Li, C.; Huang, H.; Liao, B.: An improved fingerprint algorithm with access point selection and reference point selection strategies for indoor positioning. J. Navig. 73, 1182–1201 (2020)

    Article  Google Scholar 

  14. Ferreira, D.; Souza, R.; Carvalho, C.: QA-kNN: indoor localization based on quartile analysis and the kNN classifier for wireless networks. Sensors (Basel) (2020). https://doi.org/10.3390/s20174714

    Article  Google Scholar 

  15. Zhou, R.; Yang, Y.; Chen, P.: An RSS transform-based WKNN for indoor positioning. Sensors (Basel) (2021). https://doi.org/10.3390/s21175685

    Article  Google Scholar 

  16. Li, C.T.; Cheng, J.C.P.; Chen, K.: Top 10 technologies for indoor positioning on construction sites. Autom. Constr. 118, 103309 (2020)

    Article  Google Scholar 

  17. Hoang, M.T.; Yuen, B.; Dong, X.; Lu, T.; Westendorp, R.; Reddy, K.: Recurrent neural networks for accurate RSSI indoor localization. IEEE Internet Things J. 6, 10639–10651 (2019)

    Article  Google Scholar 

  18. Zafari, F.; Gkelias, A.; Leung, K.K.: A survey of indoor localization systems and technologies. IEEE Commun. Surv. Tutor. 21, 2568–2599 (2019)

    Article  Google Scholar 

  19. Chai, M.; Li, C.; Huang, H.: A new indoor positioning algorithm of cellular and Wi-Fi networks. J. Navig. 73, 509–529 (2019)

    Article  Google Scholar 

  20. Zekavat, S.; Buehrer, R.M.; Durgin, G.D.; Lovisolo, L.; Wang, Z.; Goh, S.T.; Ghasemi, A.: An overview on position location: past, present, future. Int. J. Wireless Inf. Networks 28, 45–76 (2021)

    Article  Google Scholar 

  21. Oussalah, M.; Alakhras, M.; Hussein, M.I.: Multivariable fuzzy inference system for fingerprinting indoor localization. Fuzzy Sets Syst. 269, 65–89 (2015)

    Article  MathSciNet  Google Scholar 

  22. Afousi, M.B., Zoghi, M.R.: Wi-Fi RSS indoor positioning system using online layer clustering and weighted DCP-KNN. 2018 Iranian Conference on Electrical Engineering, ICEE (2018)

  23. Li, C.; Qiu, Z.; Liu, C.: An improved weighted K-nearest neighbor algorithm for indoor positioning. Wireless Pers. Commun. 96, 2239–2251 (2017)

    Article  Google Scholar 

  24. Huang, Z.; Li, Y.: Missing value filling method based on fuzzy C-means algorithm. J. Jishou Univ. 41, 23–26 (2020) Natural Sciences Edition

    Google Scholar 

  25. Havens, T.C.; Bezdek, J.C.; Leckie, C.; Hall, L.O.; Palaniswami, M.: Fuzzy c-means algorithms for very large data. IEEE Trans. Fuzzy Syst. 20, 1130–1146 (2012)

    Article  Google Scholar 

  26. Li, N.; Chen, J.; Yuan, Y.; Tian, X.; Han, Y.; Xia, M.: A Wi-Fi indoor localization strategy using particle swarm optimization based artificial neural networks. Int. J. Distrib. Sens. Netw. 12, 4583147 (2016)

    Article  Google Scholar 

  27. Luo, J.; Zhang, Z.; Wang, C.; Liu, C.; Xiao, D.: Indoor multifloor localization method based on WiFi fingerprints and LDA. IEEE Trans. Industr. Inf. 15, 5225–5234 (2019)

    Article  Google Scholar 

  28. Ninh, D.B.; He, J.; Trung, V.T.; Huy, D.P.: An effective random statistical method for Indoor Positioning System using WiFi fingerprinting. Futur. Gener. Comput. Syst. 109, 238–248 (2020)

    Article  Google Scholar 

  29. Guo, T.; Chai, M.; Xiao, J.; Li, C.: A hybrid indoor positioning algorithm for cellular and Wi-Fi networks. Arab. J. Sci. Eng. (2021). https://doi.org/10.1007/s13369-021-05925-9

    Article  Google Scholar 

  30. Yu, D.; Li, C.: An accurate WiFi indoor positioning algorithm for complex pedestrian environments. IEEE Sens. J. 21, 24440–24452 (2021)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Changgeng Li.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Luo, J., Xiao, J. & Li, C. An Improved WKNN Algorithm Based on Flexible K Selection Strategy and Distance Compensation for Indoor Localization. Arab J Sci Eng 47, 13917–13925 (2022). https://doi.org/10.1007/s13369-022-06596-w

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s13369-022-06596-w

Keywords

Navigation