An Adaptive Weighted KNN Positioning Method Based on Omnidirectional Fingerprint Database and Twice Affinity Propagation Clustering
Abstract
:1. Introduction
2. The Proposed Indoor Localization Method
2.1. Overall Structure of the Proposed Indoor Localization Method
2.2. The Omnidirectional Fingerprint Database (OFPD)
2.3. Affinity Propagation Clustering
2.3.1. The Similarity Based on Signal-Domain and Position-Domain Distances
2.3.2. Clustering by Affinity Propagation Algorithm
- the responsibility r(i, j): sent from the RPi to candidate cluster center RPj, which reflects the accumulated evidence for how well-suited the RPj is to serve as the cluster center for the RPi;
- the availability a(i, j): sent from the candidate cluster center RPj to the RPi, which reflects the accumulated evidence for how appropriate it would be for the RPi to choose the RPj as its cluster center.
- updating all responsibilities given the availabilities,
- updating all availabilities given the responsibilities,
- combining responsibilities and availabilities to determine when the algorithm should be terminated.
2.4. Adjusting Cluster Based on Transition Region
Algorithm 1: The algorithm to adjust clusters based on transition region |
1. Input: OFPD after clustering by affinity propagation |
2. Output: IOFPD |
3. Ncls = Num(C), C denotes clusters in OFPD, dint is a fixed constant value; |
4. for j = 1 to Ncls − 1 do |
5. N1 = Num(Cj), N2 = Num(Cj+1), Cj and Cj+1 are two adjacent clusters, N1 and N2 are the number of RPs in Cj and Cj+1, respectively; |
6. temp = []; |
7. for k = 1 to N1 do |
8. temp = find(Cj+1.x == Cj,k.x & Cj+1.y == Cj,k.y), Cj,k denotes the kth RP in Cj, Cj,k.x denotes the x coordinate of the kth RP in Cj, Cj+1.x, Cj+1.y and Cj,k.y are in similar way, temp denotes the indexes of RPs in Cj+1 with same coordinates of the kth RP in Cj; |
9. idx1 = [idx1; temp], idx1 denotes the indexes of selected RPs in Cj+1; |
10. end for |
11. temp = []; |
12. for l = 1 to N2 do |
13. temp = find(Cj.x == Cj+1,l.x & Cj.y == Cj+1,l.y); |
14. idx2 = [idx2; temp], idx2 denotes the indexes of selected RPs in Cj; |
15. end for |
16. Ntr1 = Num(idx1), Ctr1 = Cj+1,idx1, Ntr2 = Num(idx2), Ctr2 = Cj,idx2, Ctr1 denotes the corresponding RPs of idx1 in Cj+1, Ntr1 denotes the number of Ctr1, Ntr2 and Ctr2 are in similar way; |
17. temp = []; |
18. for m = 1 to Ntr1 do |
19. temp = find(dist(Ctr1,m, Cj+1) ≤ dint), dist(Ctr1,m, Cj+1) denotes distances between the mth RP in Ctr1 and all RPs in Cj+1, temp denotes the indexes of RPs dint away from the mth RP in Ctr1 in Cj+1; |
20. id1 = [id1; temp], id1 denotes the indexes of RPs within the range of dint in Cj+1; |
21. end for |
22. Cadj1 = Cj+1,id1, denotes that RPs within the range of dint in Cj+1 for Ctr1 are selected; |
23. temp = []; |
24. for n = 1 to Ntr2 do |
25. temp = find(dist(Ctr2,n , Cj) ≤ dint) |
26. id2 = [id2; temp]; |
27. end for |
28. Cadj2 = Cj,id1; |
29. Cj = unique(Cj + Ctr1 + Cadj1), Cj+1 = unique(Cj+1 + Ctr2 + Cadj2); |
30. update cluster centers of Cj and Cj+1; |
31. end for |
2.5. The Adaptive Weighted K-Nearest Neighbor Localization
Algorithm 2: The proposed AWKNN localization algorithm |
1. Input: the online RSS readings r, selected cluster (Cs) after cluster matching, K, the number of RPs in selected cluster (n) |
2. Output: weighted average coordinates |
3. if n < 10 then |
4. K = n |
5. else |
6. K = 10 |
7. end if |
8. for i = 0 to n do |
9. calculate signal-domain distances (dsig) between each RP in Cs and r by Equation (3) |
10. end for |
11. obtain K initial RPs with K top smallest dsig |
12. divide these K initial RPs into several sub-clusters by affinity propagation clustering, the number of sub-clusters is denoted as Nc |
13. if Nc == 1 then |
14. calculate coordinates with K initial RPs by Equation (12) |
15. else if Nc ≥ K-3 then |
16. calculate coordinates with 3 RPs that have top smallest dsig by Equation (12) |
17. else |
18. obtain the number of RPs in each sub-cluster, denoted as NRP |
19. sort(NRP) in descending order |
20. select 2 sub-clusters (Csub,1 and Csub,2) with 2 top biggest NRP, that is, NRP1 and NRP2, and the dsig of sub-cluster centers are d1 and d2, respectively1 |
21. Ndiff = NRP1 − NRP2 |
22. if Ndiff ≥ 3 then |
23. calculate coordinates with the sub-cluster Csub,1, of which the number is NRP1 |
24. else |
25. if d1 ≦ d2 then |
26. calculate coordinates with the Csub,1 by Equation (12) |
27. else |
28. calculate coordinates with the Csub,2 by Equation (12) |
29. end if |
30. end if |
31. end if |
3. Experiment and Results
3.1. Experimental Setup
3.2. Clustering Results
3.3. Positioning Results
4. Discussion
5. Conclusions
Author Contributions
Funding
Acknowledgments
Conflicts of Interest
References
- Santo, H.; Maekawa, T.; Matsushita, Y. Device-free and privacy preserving indoor positioning using infrared retro-reflection imaging. In Proceedings of the IEEE International Conference on Pervasive Computing and Communications, Kona, HI, USA, 13–17 March 2017; pp. 141–152. [Google Scholar]
- Qi, J.; Liu, G.P. A Robust High-Accuracy Ultrasound Indoor Positioning System Based on a Wireless Sensor Network. Sensors 2017, 17, 2554. [Google Scholar] [CrossRef] [PubMed]
- Huang, W.; Xiong, Y.; Li, X.Y.; Lin, H.; Mao, X.; Yang, P.; Liu, Y.; Wang, X. Swadloon: Direction Finding and Indoor Localization Using Acoustic Signal by Shaking Smartphones. IEEE Trans. Mobile Comput. 2015, 14, 2145–2157. [Google Scholar] [CrossRef]
- Ni, L.M.; Liu, Y.; Lau, Y.C.; Patil, A.P. LANDMARC: Indoor location sensing using active RFID. In Proceedings of the IEEE International Conference on Pervasive Computing and Communications, Fort Worth, TX, USA, 26 March 2003; p. 407. [Google Scholar]
- Xi, L.; Jiang, M.Y.; Liao, C.Z. Indoor Positioning System Based on RFID. Appl. Mech. Mater. 2014, 543–547, 2627–2631. [Google Scholar] [CrossRef]
- Fang, S.H.; Wang, C.H.; Huang, T.Y.; Yang, C.H.; Chen, Y.S. An Enhanced ZigBee Indoor Positioning System with an Ensemble Approach. IEEE Commun. Lett. 2012, 16, 564–567. [Google Scholar] [CrossRef]
- Bahl, P.; Padmanabhan, V.N. RADAR: An In-Building RF-based User Location and Tracking System. In Proceedings of the INFOCOM 2000, Nineteenth Joint Conference of the IEEE Computer and Communications Societies, Tel Aviv, Israel, 26–30 March 2000; Volume 2, pp. 775–784. [Google Scholar]
- Walters, C. Characterization of Smart Phone Received Signal Strength Indication for WLAN Indoor Positioning Accuracy Improvement. J. Netw. 2014, 9, 1061–1065. [Google Scholar]
- Li, H. Low-Cost 3D Bluetooth Indoor Positioning with Least Square. Wirel. Pers. Commun. 2014, 78, 1331–1344. [Google Scholar] [CrossRef]
- Zheng, L.; Zhou, W.; Tang, W.; Zheng, X.; Peng, A.; Zheng, H. A 3D indoor positioning system based on low-cost MEMS sensors. Simul. Model. Pract. Theory 2016, 65, 45–56. [Google Scholar] [CrossRef]
- García, E.; Poudereux, P.; Hernández, Á.; Ureña, J.; Gualda, D. A robust UWB indoor positioning system for highly complex environments. In Proceedings of the IEEE International Conference on Industrial Technology, Seville, Spain, 17–19 March 2015; pp. 3386–3391. [Google Scholar]
- IndoorAtlas, L. Ambient Magnetic Field-Based Indoor Location Technology: Bringing the Compass to the Next Level. Available online: http://web.indooratlas.com/web/WhitePaper.pdf (accessed on 29 July 2018).
- Xie, H.; Gu, T.; Tao, X.; Ye, H.; Lv, J. MaLoc: A practical magnetic fingerprinting approach to indoor localization using smartphones. In Proceedings of the ACM International Joint Conference on Pervasive and Ubiquitous Computing, Seattle, WA, USA, 13–17 September 2014; pp. 243–253. [Google Scholar]
- Hassan, N.U.; Naeem, A.; Pasha, M.A.; Jadoon, T.; Yuen, C. Indoor Positioning Using Visible LED Lights: A Survey. ACM Comput. Surv. 2015, 48, 20. [Google Scholar] [CrossRef]
- Sevrin, L.; Noury, N.; Abouchi, N.; Jumel, F.; Massot, B.; Saraydaryan, J. Characterization of a multi-user indoor positioning system based on low cost depth vision (Kinect) for monitoring human activity in a smart home. In Proceedings of the 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Milan, Italy, 25–29 August 2015; pp. 5003–5007. [Google Scholar]
- Fujii, K.; Yonezawa, R.; Sakamoto, Y.; Schmitz, A.; Sugano, S. A combined approach of Doppler and carrier-based hyperbolic positioning with a multi-channel GPS-pseudolite for indoor localization of robots. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Alcala de Henares, Spain, 4–7 October 2016; pp. 1–7. [Google Scholar]
- Youssef, M.; Agrawala, A. The Horus WLAN location determination system. In Proceedings of the 3rd International Conference on Mobile Systems, Applications, and Services, Seattle, WA, USA, 6–8 June 2005; pp. 205–218. [Google Scholar]
- Kushki, A.; Plataniotis, K.N.; Venetsanopoulos, A.N. Kernel-based positioning in wireless local area networks. IEEE Trans. Mobile Comput. 2007, 6, 689–705. [Google Scholar] [CrossRef]
- Altintas, B.; Serif, T. Improving RSS-based indoor positioning algorithm via k-means clustering. In Proceedings of the 17th European Wireless Conference 2011—Sustainable Wireless Technologies, Vienna, Austria, 27–29 April 2011; pp. 1–5. [Google Scholar]
- Zhou, H.; Van, N.N. Indoor fingerprint localization based on fuzzy c-means clustering. In Proceedings of the 2014 Sixth International Conference on Measuring Technology and Mechatronics Automation (ICMTMA), Zhangjiajie, China, 10–11 January 2014; pp. 337–340. [Google Scholar]
- Tian, Z.; Tang, X.; Zhou, M.; Tan, Z. Fingerprint indoor positioning algorithm based on affinity propagation clustering. EURASIP J. Wirel. Commun. Netw. 2013, 2013, 272. [Google Scholar] [CrossRef] [Green Version]
- Lee, C.-W.; Lin, T.-N.; Fang, S.-H.; Chou, Y.-C. A novel clustering-based approach of indoor location fingerprinting. In Proceedings of the IEEE 24th International Symposium on Personal Indoor and Mobile Radio Communications (PIMRC), London, UK, 8–11 September 2013; pp. 3191–3196. [Google Scholar]
- Rai, A.; Chintalapudi, K.K.; Padmanabhan, V.N.; Sen, R. Zee: Zero-Effort Crowdsourcing for Indoor Localization. In Proceedings of the 18th Annual International Conference on Mobile Computing and Networking, Istanbul, Turkey, 22–26 August 2012; pp. 293–304. [Google Scholar]
- Wu, C.; Yang, Z.; Liu, Y. Smartphones Based Crowdsourcing for Indoor Localization. IEEE Trans. Mobile Comput. 2015, 14, 444–457. [Google Scholar] [CrossRef]
- Alshami, I.H.; Ahmad, N.A.; Sahibuddin, S.; Firdaus, F. Adaptive Indoor Positioning Model Based on WLAN-Fingerprinting for Dynamic and Multi-Floor Environments. Sensors 2017, 17, 1789. [Google Scholar] [CrossRef] [PubMed]
- Luo, R.C.; Hsiao, T.J. Dynamic Wireless Indoor Localization Incorporate with Autonomous Mobile Robot Based on Adaptive Signal Model Fingerprinting Approach. IEEE Trans. Ind. Electron. 2018, 99. [Google Scholar] [CrossRef]
- Eisa, S.; Peixoto, J.; Meneses, F.; Moreira, A. Removing useless APs and fingerprints from WiFi indoor positioning radio maps. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Montbeliard-Belfort, France, 28–31 October 2013; pp. 1–7. [Google Scholar]
- Xiao, X.; Jing, X.; You, S.; Zeng, J. An environmental-adaptive RSSI based indoor positioning approach using RFID. In Proceedings of the International Conference on Advanced Intelligence and Awarenss Internet, Beijing, China, 23–25 October 2010; pp. 127–130. [Google Scholar]
- Li, X.; Wang, J.; Liu, C.; Zhang, L.; Li, Z. Integrated WiFi/PDR/Smartphone Using an Adaptive System Noise Extended Kalman Filter Algorithm for Indoor Localization. ISPRS Int. J. Geo-Inf. 2016, 5, 8. [Google Scholar] [CrossRef]
- Shin, B.; Lee, J.H.; Lee, T.; Kim, H.S. Enhanced weighted K-nearest neighbor algorithm for indoor Wi-Fi positioning systems. In Proceedings of the International Conference on Computing Technology and Information Management, Seoul, Korea, 24–26 April 2012; pp. 574–577. [Google Scholar]
- Frey, B.J.; Dueck, D. Clustering by passing messages between data points. Science 2007, 315, 972–976. [Google Scholar] [CrossRef] [PubMed]
id | pid | x (m) | Y (m) | Orientation (°) | MAC | RSS(dBm) |
---|---|---|---|---|---|---|
1 | 1 | 0.0 | 0.0 | 23.5 | 6c:e8:73:91:96:d0 | −68 |
2 | 1 | 0.0 | 0.0 | 23.5 | 6c:e8:73:91:96:a1 | −47 |
15 | 1 | 0.0 | 0.0 | 23.5 | 6c:e8:73:90:97:d5 | −63 |
28 | 2 | 0.0 | 0.0 | 115 | 6c:e8:73:91:96:d0 | −75 |
Methods | ME | EM | RMSE |
---|---|---|---|
CFPD_WKNN (K = 6) | 14.304 | 2.785 | 2.427 |
CFPD_AWKNN | 11.718 | 2.845 | 2.317 |
IOFPD_WKNN (K = 9) | 13.966 | 2.478 | 1.946 |
IOFPD_AWKNN | 6.877 | 2.215 | 1.509 |
© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Bi, J.; Wang, Y.; Li, X.; Qi, H.; Cao, H.; Xu, S. An Adaptive Weighted KNN Positioning Method Based on Omnidirectional Fingerprint Database and Twice Affinity Propagation Clustering. Sensors 2018, 18, 2502. https://doi.org/10.3390/s18082502
Bi J, Wang Y, Li X, Qi H, Cao H, Xu S. An Adaptive Weighted KNN Positioning Method Based on Omnidirectional Fingerprint Database and Twice Affinity Propagation Clustering. Sensors. 2018; 18(8):2502. https://doi.org/10.3390/s18082502
Chicago/Turabian StyleBi, Jingxue, Yunjia Wang, Xin Li, Hongxia Qi, Hongji Cao, and Shenglei Xu. 2018. "An Adaptive Weighted KNN Positioning Method Based on Omnidirectional Fingerprint Database and Twice Affinity Propagation Clustering" Sensors 18, no. 8: 2502. https://doi.org/10.3390/s18082502
APA StyleBi, J., Wang, Y., Li, X., Qi, H., Cao, H., & Xu, S. (2018). An Adaptive Weighted KNN Positioning Method Based on Omnidirectional Fingerprint Database and Twice Affinity Propagation Clustering. Sensors, 18(8), 2502. https://doi.org/10.3390/s18082502