Open Access Paper
24 May 2022 An improved indoor localization algorithm based on SOM and WKNN
Jiuqi Luo, Changgeng Li
Author Affiliations +
Proceedings Volume 12260, International Conference on Computer Application and Information Security (ICCAIS 2021); 1226009 (2022) https://doi.org/10.1117/12.2637408
Event: International Conference on Computer Application and Information Security (ICCAIS 2021), 2021, Wuhan, China
Abstract
This paper focuses on WiFi indoor positioning based on received signal strength, and weighed K-nearest neighbor (WKNN) algorithm is the most classic position estimation strategy. However, locating across the entire fingerprint database takes a lot of time. In this paper, a clustering algorithm based on Self-Organization Map (SOM) is proposed to shorten the positioning time. Meanwhile, an improved WKNN algorithm is proposed to further increase the positioning accuracy. The experiment results show that the positioning time is effectively cut down after clustering and the average positioning error of the proposed algorithm is 1.18 m, which can achieve high accuracy in indoor environment.

1.

INTRODUCTION

With the rise of smartphone, Location Based Service (LBS) plays an important role in daily living, such as emergency rescue, personalized information delivery, shopping navigation and logistics industry1. Mobile users desire for more adequate personal location information under certain circumstance. For instance, it can be a real-time shopping guide in an entertainment center or shopping mall2.

The wireless localization systems can be deployed for outdoor and indoor environment based on various key technologies, including satellites, Wi-Fi, RFID, bluetooth and cellular3. Mature outdoor real-time positioning application includes GPS, BeiDou, Galileo and GLONASS, which provides location services for users anywhere on the earth4.

However, compared to maturely developed outdoor localization, research on indoor localization is still in a nascent phase, and several systems widely employed in outdoor environment can’t meet the accuracy requirements of indoor localization. Localization system based on Wi-Fi, due to its low cost and convenience, is considered to be the most potential to realize LBS in indoor environment5. Wi-Fi-based indoor localization techniques can be divided into two categories: range-based (arrival-based) and fingerprint-based. The basic idea of range-based technology is to obtain and calculate the distance of the transmitter and the receiver, the time of arrival (TOA), the angle of arrival (AOA) and the time difference of arrival (TDOA) are three typical methods6. However, these methods require strict time synchronization, which will cost much in equipment configuration. Therefore, on some occasions requiring low-cost and low-complexity, fingerprint-based localization technology is more suitable7.

However, in the complex indoor environment, there exists multiple access points (APs), and it costs much time to realize localization using fingerprint-based algorithm8. To shorten the positioning time and reduce the complexity of whole process, Li et al. proposed an AP selecting strategy based on variation, and it effectively reduces the scale of fingerprint database9. While Guo et al. focused on the online positioning stage and proposed improved K-means (K-means++) algorithm10. By partitioning the whole positioning zone, the procedure of matching algorithm was simplified. Inspired by these algorithms, a clustering algorithm based on Self-Organization Map (SOM) is proposed. By realizing partition localization, the complexity of online positioning is lowered. Meanwhile, an improved Weighted K-Nearest Neighbor (WKNN) algorithm is proposed to increase the positioning accuracy.

The rest of this paper is organized as follows. Section 2 describes new localization model in detail. Section 3 presents the experiment results and analysis. Finally, Section 4 draws conclusion and outlines future work.

2.

LOCALIZATION MODEL

2.1

SOM algorithm

Traditional WKNN algorithm compares the characteristic distance between reference point (RP) and test point (TP) to find optimal nearest RPs11-12. However, it usually traverses the whole fingerprint database and costs much time. In order to lower the complexity of positioning, we choose clustering algorithm based on Self-Organization Map (SOM), which provides precise classification and effectively reduce the positioning time. The flow of SOM is depicted as Figure 1. Assuming that a set of Received Signal Strength (RSS) for one access point (AP) is R = {r1,r2,…,rm}, where m is the number of AP. The training and testing data are firstly normalized by

00177_psisdg12260_1226009_page_2_1.jpg

Figure 1.

The flow of SOM.

00177_psisdg12260_1226009_page_3_1.jpg

where max(R) and min(R) represents the maximum and minimum value of the RSS in R respectively, and ave(R) represents the average of the RSS values in R. Next the node (clustering center) information is initialized. The node number can be set as 2-5 usually, and the initial clustering center can be randomly generated with the area of RPs. On finishing initializing the clustering system, the Euclidean distance D between RP and each clustering center is calculated by

00177_psisdg12260_1226009_page_2_2.jpg

where 00177_psisdg12260_1226009_page_2_3.jpg and 00177_psisdg12260_1226009_page_2_4.jpg represents the RSS of RP and clustering center. With regard to the nearest center, it is defined as “excited node (EN)”, while others are defined as “inhibited node (IN)”. Reasonably, the EN are supposed to be more approaching to the RP, while the IN should be more remote to the RP. In other words, the RP belongs to the cluster whose node is excited. Depending on whether the node is excited or inhibited, the RSS of each node is updated, which is described by

00177_psisdg12260_1226009_page_2_5.jpg

where 00177_psisdg12260_1226009_page_2_6.jpg represents RSS of node after updating and k represents the learning rate. Here, an adaptive learning rate is adopted. It gradually reduces as the iteration lasts, which is described by

00177_psisdg12260_1226009_page_2_7.jpg

where t represents the iteration times. Once the iteration meets the end condition, the clustering produces are accomplished. The fingerprint database is divided into several parts, which can be represented by the clustering center of corresponding cluster.

2.2

Improved WKNN algorithm

WKNN algorithm is the most commonly applied algorithm in indoor positioning13-14. To further improve the positioning accuracy, an improved WKNN algorithm (AG-WKNN) is proposed. The weight of each RP is calculated and obtained by Gaussian distribution function. The flow of this algorithm is presented in Algorithm 1.

Algorithm 1: AG-WKNN

00177_psisdg12260_1226009_page_4_1.jpg

Specifically, the Gaussian distribution function can be described by

00177_psisdg12260_1226009_page_4_2.jpg

where a, b, c can be set according to different systems. wk is the normalized fk, which is depicted by

00177_psisdg12260_1226009_page_4_3.jpg

On this point, the estimated position of TPs can be obtained and the process of positioning is accomplished.

3.

THE EXPERIMENT RESULTS AND ANALYSIS

In order to verify the performance of proposed scheme, experiments were conducted on the sixth floor of Physics Building in Central South University, Changsha city, Hunan province, China. The layout of the environment is shown in Figure 2.

Figure 2.

Layout of the environment.

00177_psisdg12260_1226009_page_5_1.jpg

The environment includes a rectangular area, an east-west corridor and a south-north corridor which cover 15m×9m, 55m×2m and 30m×2m respectively. 73 RPs are 2.4m far from their neighbor and are shown in yellow. 215 TPs are chosen randomly in the area and are shown in blue.

In clustering algorithm, the value of k (the number of node) has great influence on region division. The smaller the number of clusters, the smaller the differentiation will be. However, if the number of clusters is too large, the complexity of subsequent localization will increase. In order to find the optimal k, the experimental range is set as 2-5. Figure 3 shows the clustering results of 73 RPs for this environment, with different categories represented in different colors.

Figure 3.

Clustering results under different k: (a) k = 2, (b) k = 3, (c) k = 4, (d) k = 5.

00177_psisdg12260_1226009_page_6_1.jpg

As shown in Figure 2, when k = 2 or k = 3, there are hardly any distinctions in the region of east-west corridor. When k = 5, the number of clusters is a bit of large, which may increase the complexity of positioning. Therefore, k is set to 4 in this paper.

In order to verify the performance of the proposed SOM algorithm, traditional WKNN algorithm is firstly adopted. The localization results are shown in Table 1.

Table 1.

Performance of SOM algorithm.

 TP numberError (m)Time (s)
MeanMax
Cluster 11340.986.170.0021
Cluster 2140.672.180.000399
Cluster 3130.802.160.000371
Cluster 4542.097.590.000953
All2151.237.590.003823
Before clustering2151.308.360.00704

Table 1 shows the localization results improve after clustering. Specifically, the mean error has an improvement of 5.4% and the time of positioning reduce by 45.7%, which indicates that the proposed

SOM algorithm can effectively lower the positioning error and shorten the positioning time.

To further improve the accuracy, AG-WKNN is conducted in the environment. In equation (5), a and c are set to 1 in this paper. The value of b determines the weight w directly, and impacts on positioning accuracy. lk represents the kth distance between RP and TP, b can be set near the first distance l1, which is depicted by

00177_psisdg12260_1226009_page_6_2.jpg

where n is the coefficient. In order to find the optimal n, different values are tested, and the results are shown in Figure 4. Figure 4 shows that the positioning error goes up first, and declines later on as n increases. Specially, the positioning error minimizes as n equals to 1.03, and the minimum value goes to 1.18m.

Figure 4.

The relationship between n and positioning

00177_psisdg12260_1226009_page_7_1.jpg

Table 2 lists the performance using the proposed algorithm. The mean error and max error both reduce. Furthermore, the mean error has a reduction of 5.4% and 9.2%. Figure 5 shows the cumulative distribution errors using proposed algorithm. The positioning accuracy improves when using SOM and AG-WKNN algorithm.

Figure 5.

Cumulative distribution errors of proposed error. algorithm.

00177_psisdg12260_1226009_page_7_2.jpg

Table 2.

The performance using the proposed algorithm.

AlgorithmMean error (m)Max error (m)
WKNN1.308.36
SOM+WKNN1.237.59
SOM+AG-WKNN1.185.97

To make our results more convincing, the proposed algorithm is compared with existed algorithms. Zhong et al. proposed K-means algorithm based on neighborhood density15. Guo et al. proposed a hybrid algorithm, in which used K-means++ algorithm10. The performance of these algorithms is shown in Table 3.

Table 3.

The comparison of proposed and existed algorithms.

Algorithm proposed byMean error (m)Clustering time (s)
Zhong et al.1.810.084822
Guo et al.1.700.082227
This paper1.180.081859

Table 3 shows the clustering time of three algorithms is nearly the same, but the mean error of the proposed algorithm outperforms the other two algorithms, with improvement of 34.8% and 30.6%. In conclusion, the results indicate that the proposed algorithm performs well and it will have a good prospect in real positioning scenarios.

4.

CONCLUSION

In this paper, clustering algorithm based on SOM and improved WKNN algorithm, called AG-WKNN, are proposed to increase the positioning accuracy and cut down the positioning time. The experiment results show that the positioning error and time both decline after using the proposed algorithm, and the experiments also show that the proposed algorithm has higher accuracy than existed algorithm. Better clustering algorithm is still desirable to enhance the indoor localization system and this is the future work.

REFERENCES

[1] 

Zhang, H., Liu, K., Jin, F., Feng, L., Lee, V. and Ng, J., “A scalable indoor localization algorithm based on distance fitting and fingerprint mapping in Wi-Fi environments,” Neural Computing and Applications, 32 5131 –5145 (2019). https://doi.org/10.1007/s00521-018-3961-8 Google Scholar

[2] 

Sotenga, P. Z., Djouani, K., Kurien, A. M. and Mwila, M., “Implementation of an indoor localisation algorithm for Internet of Things,” Future Generation Computer Systems, 107 1037 –1046 (2020). https://doi.org/10.1016/j.future.2018.01.056 Google Scholar

[3] 

Yang, H., Zhang, Y., Huang, Y., Fu, H. and Wang, Z., “WKNN indoor location algorithm based on zone partition by spatial features and restriction of former location,” Pervasive and Mobile Computing, 60 101085 (2019). https://doi.org/10.1016/j.pmcj.2019.101085 Google Scholar

[4] 

Li, X. and Bharanidharan, M., “RSSI fingerprinting based iphone indoor localization system without Apple API,” Wireless Personal Communications, 112 61 –74 (2019). https://doi.org/10.1007/s11277-019-07015-4 Google Scholar

[5] 

Zhao, M., Qin, D., Guo, R. and Xu, G., “Research on Crowdsourcing network indoor localization based on co-forest and Bayesian compressed sensing,” Ad Hoc Networks, 105 102176 (2020). https://doi.org/10.1016/j.adhoc.2020.102176 Google Scholar

[6] 

Zhang, C., Qin, N., Xue, Y. and Yang, L., “Received signal strength-based indoor localization using hierarchical classification,” Sensors (Basel), 20 102176 (2020). Google Scholar

[7] 

Gan, H., Khir, M. H. B. M., Djaswadi, G. W. B. and 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). https://doi.org/10.1109/ACCESS.2018.2890111 Google Scholar

[8] 

Yu, Y., Chen, R., Liu, Z., Guo, G., Ye, F. and Chen, L., “Wi-Fi fine time measurement: Data analysis and processing for indoor localization,” Journal of Navigation, 73 1106 –1128 (2020). https://doi.org/10.1017/S0373463320000193 Google Scholar

[9] 

Li, C., Huang, H. and Liao, B., “An improved fingerprint algorithm with access point selection and reference point selection strategies for indoor positioning,” Journal of Navigation, 73 1182 –1201 (2020). https://doi.org/10.1017/S0373463319000730 Google Scholar

[10] 

Guo, T., Chai, M., Xiao, J. and Li, C., “A hybrid indoor positioning algorithm for cellular and Wi-Fi networks,” Arabian Journal for Science and Engineering, (2021). https://doi.org/10.1007/s13369-021-05925-9 Google Scholar

[11] 

Hoang, M. T., Yuen, B., Dong, X., Lu, T., Westendorp, R. and Reddy, K., “Recurrent neural networks for accurate RSSI indoor localization,” IEEE Internet of Things Journal, 6 10639 –10651 (2019). https://doi.org/10.1109/JIoT.6488907 Google Scholar

[12] 

Zafari, F., Gkelias, A. and Leung, K. K., “A Survey of indoor localization systems and technologies,” IEEE Communications Surveys and Tutorials, 21 2568 –2599 (2019). https://doi.org/10.1109/COMST.9739 Google Scholar

[13] 

Zekavat, S., Buehrer, R. M., Durgin, G. D., Lovisolo, L., Wang, Z., Goh, S. T. and Ghasemi, A., “An overview on position location: Past, present, future,” International Journal of Wireless Information Networks, 28 45 –76 (2021). https://doi.org/10.1007/s10776-021-00504-z Google Scholar

[14] 

Ninh, D. B., He, J., Trung, V. T. and Huy, D. P., “An effective random statistical method for indoor positioning system using WiFi fingerprinting,” Future Generation Computer Systems, 109 238 –248 (2020). https://doi.org/10.1016/j.future.2020.03.043 Google Scholar

[15] 

Zhong, Y., Wu, F., Zhang, J. and Dong, B., “WiFi Indoor localization based on k-means,” in Inter. Conf. on Audio, Language and Image Processing, 663 –667 (2016). Google Scholar
© (2022) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Jiuqi Luo and Changgeng Li "An improved indoor localization algorithm based on SOM and WKNN", Proc. SPIE 12260, International Conference on Computer Application and Information Security (ICCAIS 2021), 1226009 (24 May 2022); https://doi.org/10.1117/12.2637408
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Received signal strength

Databases

Physics

Electronics

Global Positioning System

Receivers

Satellites

RELATED CONTENT

Comparison of VLC-based indoor positioning techniques
Proceedings of SPIE (February 04 2013)
Wide-area continuous offender monitoring
Proceedings of SPIE (February 18 1997)
GLIMPS sensor and taggant delivery systems
Proceedings of SPIE (February 21 2001)
ALADIN doppler wind lidar: recent advances
Proceedings of SPIE (October 03 2007)
Modular architecture for nanosatellites
Proceedings of SPIE (November 07 2000)

Back to Top