The weighted K-nearest neighbor (WKNN) algorithm is the most commonly used algorithm for indoor localization. Traditional WKNN algorithms adopt received signal strength (RSS) spatial distance (usually Euclidean distance and Manhattan distance) to select reference points (RPs) for position determination. It may lead to inaccurate position estimation because the relationship of received signal strength and distance is exponential. To improve the position accuracy, this paper proposes an improved weighted K-nearest neighbor algorithm. The spatial distance and physical distance of RSS are used for RP selection, and a fusion weighted algorithm based on these two distances is used for position calculation. The experimental results demonstrate that the proposed algorithm outperforms traditional algorithms, such as K-nearest neighbor (KNN), Euclidean distance-based WKNN (E-WKNN), and physical distance-based WKNN (P-WKNN). Compared with the KNN, E-WKNN, and P-WKNN algorithms, the positioning accuracy of the proposed method is improved by about 29.4%, 23.5%, and 20.7%, respectively. Compared with some recently improved WKNN algorithms, our proposed algorithm can also obtain a better positioning performance.
14 December 2020 in Measurement Science and Technology
Fingerprinting localization based on Wi-Fi received signal strength (RSS) is the most widely used indoor localization method. It typically includes offline training and online matching phases. The selection of the RSS characteristic value is a key step. The weighted K nearest neighbor (WKNN) algorithm is the most commonly used position-determination algorithm. The mean value of the RSS data collected over a time interval is usually taken as its characteristic value. However, the RSS measurements contain Gaussian and non-Gaussian noise, which cannot be filtered out effectively by the mean value method. The traditional WKNN algorithm adopts a fixed . However, reference points far away from the test point (TP) may be selected as the nearest neighbors to participate in the position calculation, which may result in accuracy degradation. This paper proposes the weighted dynamic K nearest neighbor algorithm (WDKNN-HF), which utilizes a hybrid of particle filtering and Kalman filtering to extract the RSS characteristic value. In the online matching phase, a dynamic K matching algorithm based on Euclidean distances is developed to determine the coordinates of TPs. Two experiments are conducted in two different indoor scenes. Experimental results demonstrate that the proposed algorithm can obtain better positioning accuracy than existing algorithms, such as KNN, WKNN, enhanced-WKNN (EWKNN) and self-adaptive weighted K nearest neighbor (SAWKNN).