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%.
Similar content being viewed by others
References
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)
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)
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)
Li, X.; Bharanidharan, M.: RSSI fingerprinting based iPhone indoor localization system without Apple API. Wireless Pers. Commun. 112, 61–74 (2019)
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)
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
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)
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)
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)
Oh, J.; Kim, J.: Adaptive K-nearest neighbour algorithm for WiFi fingerprint positioning. ICT Express 4, 91–94 (2018)
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
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)
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)
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
Zhou, R.; Yang, Y.; Chen, P.: An RSS transform-based WKNN for indoor positioning. Sensors (Basel) (2021). https://doi.org/10.3390/s21175685
Li, C.T.; Cheng, J.C.P.; Chen, K.: Top 10 technologies for indoor positioning on construction sites. Autom. Constr. 118, 103309 (2020)
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)
Zafari, F.; Gkelias, A.; Leung, K.K.: A survey of indoor localization systems and technologies. IEEE Commun. Surv. Tutor. 21, 2568–2599 (2019)
Chai, M.; Li, C.; Huang, H.: A new indoor positioning algorithm of cellular and Wi-Fi networks. J. Navig. 73, 509–529 (2019)
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)
Oussalah, M.; Alakhras, M.; Hussein, M.I.: Multivariable fuzzy inference system for fingerprinting indoor localization. Fuzzy Sets Syst. 269, 65–89 (2015)
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)
Li, C.; Qiu, Z.; Liu, C.: An improved weighted K-nearest neighbor algorithm for indoor positioning. Wireless Pers. Commun. 96, 2239–2251 (2017)
Huang, Z.; Li, Y.: Missing value filling method based on fuzzy C-means algorithm. J. Jishou Univ. 41, 23–26 (2020) Natural Sciences Edition
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)
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)
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)
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)
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
Yu, D.; Li, C.: An accurate WiFi indoor positioning algorithm for complex pedestrian environments. IEEE Sens. J. 21, 24440–24452 (2021)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
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
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s13369-022-06596-w