Next Article in Journal
Eco-Environmental Effect Evaluation of Tamarix chinesis Forest on Coastal Saline-Alkali Land Based on RSEI Model
Previous Article in Journal
Estimation of Leaf Area Index with a Multi-Channel Spectral Micro-Sensor for Wireless Sensing Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Wi-Fi Fingerprint-Based Indoor Localization Method via Standard Particle Swarm Optimization

1
School of Architecture and Art, Central South University, Changsha 410083, China
2
College of Electrical and Information Engineering, Hunan University, Changsha 410082, China
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(13), 5051; https://doi.org/10.3390/s22135051
Submission received: 26 May 2022 / Revised: 25 June 2022 / Accepted: 1 July 2022 / Published: 5 July 2022
(This article belongs to the Section Internet of Things)

Abstract

:
With the continuous development and improvement in Internet-of-Things (IoT) technology, indoor localization has received considerable attention. Particularly, owing to its unique advantages, the Wi-Fi fingerprint-based indoor-localization method has been widely investigated. However, achieving high-accuracy localization remains a challenge. This study proposes an application of the standard particle swarm optimization algorithm to Wi-Fi fingerprint-based indoor localization, wherein a new two-panel fingerprint homogeneity model is adopted to characterize fingerprint similarity to achieve better performance. In addition, the performance of the localization method is experimentally verified. The proposed localization method outperforms conventional algorithms, with improvements in the localization accuracy of 15.32%, 15.91%, 32.38%, and 36.64%, compared to those of KNN, SVM, LR, and RF, respectively.

1. Introduction

In recent years, Internet-of-Things (IoT) technology, an extension of the Internet that envisions connecting all devices to the Internet for communications, is developing rapidly and is expected to radically transform education, healthcare, smart home, manufacturing, commerce, and transportation, etc. It is essential for transforming the world into a smart world, wherein localization of devices or terminals is an indispensable aspect [1,2,3]. Although the global positioning system (GPS) satisfies the wide requirements of outdoor scenes, it performs poorly and has very limited usage in indoor scenes [4]. There exist numerous requirements and challenges in the development of indoor localization.
According to the signal source, indoor-localization technologies can be divided into external and natural signal sources. External signal sources mainly include Wi-Fi [5], Bluetooth [6], ultra-wide band (UWB) [7], visible light [8], ZigBee [9], computer vision [10], and radio-frequency identification (RFID) [11]. By contrast, indoor localization technology based on natural signal sources primarily relies on the sensors of terminal devices to achieve localization, including inertial measurement units (IMU) [12] and geomagnetics [13], etc. The list of these technologies can be extended as technology develops. For example, Long Range (LoRa), originally developed for long-range communication with a high link budget, can also be employed for indoor localization [14].
Among these, UWB-based indoor-localization technology offers the advantages of high accuracy and simple localization methods; however, it relies on additional deployment devices and incurs a high cost [15]. A localization system based on vision utilizes high-precision computer vision technology, but it can only spread within the line of sight and requires high hardware cost and complex computation [10]. The main principle of RFID localization [16] is to perform non-contact communication transmission using the spatial coupling characteristics of the radio frequency. Passive RFID equipment is cheap but has a small transmission range, whereas active signals have wide coverage but high hardware costs. However, its localization accuracy is inadequate. The IMU localization system uses an accelerometer, gyroscope, magnetometer, and other sensors of the terminal equipment to perform navigation calculations; however, the localization accuracy is limited by hardware devices and inevitably produces cumulative errors [17], which require continuous calibration with external information. For the LoRa, the received signal strength (RSS) distance method, an RSS-based logarithmic path loss model, could be adopted for indoor localization. RSS values are used to calculate the location of an object according to the principle of trilateration [14]. Further, Wi-Fi, ZigBee, and Bluetooth are wireless-sensor-network technologies based on IEEE 802 standards, featuring low power consumption and low cost [18]. The ranging principle is mainly based on geometric constraints and signal-strength feature matching. Zigbee-based localization measures the distance between the unknown and reference points in advance, and the signal has a low transmission rate and a short transmission distance. Moreover, Bluetooth and Wi-Fi are supported in most terminal devices, but the range of Bluetooth signal communication is limited, and the localization accuracy is inadequate, with a large time delay. In contrast, Wi-Fi signal transmission rate is fast, its localization range is wide, and equipment deployment is easy.
In the field of indoor localization, Wi-Fi fingerprint-based localization is a current mainstream method [15]. However, it is limited by the volatility of Wi-Fi signal, which makes offline data not reliable enough, and it is difficult to achieve stable high-accuracy localization. Therefore, this study focused on the accuracy improvement of Wi-Fi fingerprint-based localization, adopting a robust localization model [19] and utilizing the standard particle swarm optimization (SPSO) algorithm [20] to determine the optimal location estimation. The main contributions of this study are as follows:
  • A two-panel fingerprint homogeneity model was adopted to characterize fingerprint similarity. In addition to considering both the real distance and direction difference of two fingerprints, this study proposes another combination, Euclidean metric and cosine distance, which was used in the system for a more robust performance.
  • An effective application of a standard particle swarm optimization (SPSO) algorithm for Wi-Fi fingerprint-based indoor localization is proposed to improve the localization accuracy.
  • Experiments on data sets and tests were conducted in a real-world environment and the results were compared with those obtained using other classical localization methods, thereby verifying the effectiveness of the proposed localization method.
The remainder of this paper is organized as follows. In Section 2, related work is briefly reviewed. Section 3 describes the proposed localization system in detail. In Section 4, the field experiments conducted to examine the proposed algorithm are described, followed by the conclusions in Section 5.

2. Related Work

Wi-Fi technology, as an important sensor in IoT, has been utilized in many areas of indoor scenes. For an interesting example, detecting motion in a room or detecting when a potential user approaches a Wi-Fi-enabled device are important applications of Wi-Fi sensing, and of interest in areas such as system wake up and environment monitoring [21]. The suitability of using Wi-Fi to sense fire, another potential application, was demonstrated in [22], which proved that there is a direct relationship between flame and channel state information (CSI) signatures. Indoor localization is also a significant application area of Wi-Fi technology.

2.1. Wi-Fi-Based Indoor Localization

Wi-Fi-based indoor-localization technology offers the advantages of wide signal coverage, relatively mature equipment, easy deployment (it needs no additional sensor equipment), low cost, strong applicability, and expansibility [23]. Therefore, indoor-localization technology based on Wi-Fi has high research value and broad application prospects. Wi-Fi-based indoor-localization technology includes the following two types:
  • Triangulation method. This method relies on the measurement of distance. Thereafter, the location estimation is obtained through geometric calculation. Classical triangulation localization methods [24] include time of arrival (TOA), time difference of arrival (TDOA), and angle of arrival (AOA). TOA is a measurement method to calculate the distance between the terminal device and the Wi-Fi access point (AP) by recording the unidirectional or bidirectional arrival time of Wi-Fi signals between the their terminals. However, it requires the precise synchronization of the time stamps at the transmitter and receiver. TDOA uses the characteristic that two focal distances on a hyperbola remain fixed. Based on the arrival time difference between the terminal device and different APs, using the hyperbolic equation, the location of the localization point can be solved. In contrast to TOA, TDOA reduces the time synchronization requirement, but accurate time measurement is a limiting factor. Moreover, it is susceptible to non-line-of-sight (NLOS) problems. AOA involves obtaining positions through azimuth angle measurements. It eliminates the need for accurate time synchronization between devices and requires a small number of base stations. However, it measures the signal transmission angle, which requires localization equipment carrying an antenna array device, thereby increasing the difficulty of its popularization.
  • Wi-Fi fingerprint-based method. This method utilizes the mapping correlation between Wi-Fi signal characteristics and physical locations. In the ideal localization environment, each physical location should have a unique and distinguishable fingerprint [23]. Generally, in this method, an indoor-location area is divided into a series of discrete grid spaces in advance to obtain the radio fingerprint map. Further, in the Offline phase, the Wi-Fi received signal strength (RSS) from different access points (APs) are collected on each reference point (RPs) of discrete grid points. Consequently, combining the physical coordinates of RPs, the fingerprint database is constructed. Thus, a received Wi-Fi fingerprint can determine the most similar fingerprint of database in the Online phase, and, subsequently, the corresponding coordinate can be estimated.
By contrast, Wi-Fi fingerprint-based indoor-localization technology is not affected by NLOS and does not require the location information of APs. It has been extensively studied since it was proposed by Bahl [25]. Moreover, many methods have been proposed, which can be divided into deterministic and probabilistic methods.
  • Deterministic methods. These algorithms directly use the one-to-one mapping relationship between Wi-Fi fingerprint and physical location and estimate the unknown position based on the closest fingerprint location in signal space. K-nearest neighbor (KNN) [25] is one such example. The method is to determine the K most similar Wi-Fi fingerprints from a database using the Euclidean distance, and then calculate the average of the K corresponding physical locations. Ma et al. [26] improved the KNN algorithm and proposed the WKNN algorithm, which used a weighted average for location estimation. Neural network (NN) algorithms [27], such as the multi-layer neural network [28], have also been applied to Wi-Fi fingerprint-based localization but with high computational cost. NN obtains the mapping relationship between a fingerprint and physical position after considerable training, then uses it to predict the unknown position. Certain other, more deterministic, algorithms such as support vector machine [29], random forests [30] and linear discriminant analysis [31] are also used in localization.
  • Probabilistic methods. Contrary to deterministic algorithms, probabilistic methods employ the probability density function, which characterizes changes in RSS. The key is to predict the possibility of relationships between real-time data and the coordinates of RPs. Horus [32] estimated the unknown position using a probabilistic model considering the signal distribution in the site. Bayesian network [33], expectation maximization [34], Gaussian process [35] and conditional random field [36] are also effective probabilistic algorithms.
In addition, some Wi-Fi fingerprint-based indoor localization frameworks have been proposed. Ref. [37] proposed a Wi-Fi localization framework via fingerprint clustering and adaptive KNN based on fusion fingerprints. They cluster offline fingerprints via the Gaussian mixture model (GMM) to divide the localization area into several subareas. In addition, a random-forest-based subarea classifier is trained by the offline data and corresponding subarea labels used for the online localization. The authors of [19] focused on indoor Wi-Fi fingerprint localization in multistory buildings and proposed a novel floor-identification module with a Wi-Fi-fingerprint-graph representation and a fingerprint graph attention mechanism, to confine the search scope to a specific floor. The two-panel fingerprint-homogeneity graph adopted is a novel mehod to gauge the similarity of Wi-Fi fingerprints robustly.

2.2. Particle Swarm Optimization

The particle swarm optimization (PSO) algorithm originated from the study of foraging behavior of birds and other social animals and is a type of biological evolutionary algorithm first proposed by Eberhart and Kennedy [38]. It is a random optimization technique in which the potential solution of the problem is represented by the position of the particles in the swarm. Specifically, a particle is an individual in a bird swarm, and the optimal solution is where the bird looks for the target food. According to the best foraging result of individual birds (historical optimal solution of each particle, pbest ) and the best foraging result of the bird swarm (historical optimal solution of the particle swarm, gbest ), every bird flies towards the best position and explores the best foraging position. This is calculated using the fitness function value of each particle, and the flight direction is determined to adjust the direction of convergence. Thus, after several iterations, the optimal foraging position (global optimal solution) can be explored by using a bird swarm (particle swarm).
In the standard particle swarm optimization (SPSO) algorithm [20], let the solution space be S with D dimensions, and the boundary of each dimension be [ x d min , x d max ] . Suppose that the number of particles is N p s and the maximum iteration is T. The rules of position updating in the SPSO algorithm are expressed as
S = { x R D | x d [ x d min , x d max ] , d = 1 , 2 , , D }
v i d t + 1 = ω v i d t + c 1 r 1 ( p b e s t i d t x i d t ) + c 2 r 2 ( g b e s t d t x i d t )
x i d t + 1 = x i d t + v i d t + 1
where i = 1 , 2 , , N p s represents the index of each particle, and v i t = [ v i 1 t , v i 2 t , , v i D t ] and x i t = [ x i 1 t , x i 2 t , , x i D t ] are the velocity and position variables of the ith particle in the tth iteration, respectively. To control the particles in space S , the velocity | v i d t | is limited to the maximum v max . Meanwhile, for the tth iteration, each particle has a historical optimal position: pbest i t = [ p b e s t i 1 t , p b e s t i 2 t , , p b e s t i D t ] , and gbest t = [ g b e s t 1 t , g b e s t 2 t , g b e s t D t ] denotes the historical optimal position of the entire particle swarm. Further, c 1 and c 2 denote the acceleration factor and r 1 and r 2 are random numbers in the range [0, 1]. In addition, ω is the inertia weight, and its initial and final values are ω i n i t and ω e n d for T max iterations, respectively, which can be defined as follows:
ω t = ω i n i t + ( ω e n d ω i n i t ) T max t T max
PSO has been applied in various fields of practical engineering owing to its advantages of fast convergence and nonlinearity. The essence of indoor localization involves determining the optimal location estimation; therefore, the SPSO algorithm is feasible for Wi-Fi indoor localization. However, few scholars have discussed the application of the PSO algorithm in Wi-Fi localization technology, such as combining the AP selection strategy [39], the wireless-signal-propagation model [40], and triangulation localization [41]. In addition, Bi et al. [42] represented the fingerprint of each particle using the inverse distance weighted algorithm to find the optimal location estimation using PSO. Li et al. [43] combined PSO and an artificial neural network (ANN) to reduce the localization error and shorten the prediction time. However, at present, the PSO algorithm has yet to be sufficiently developed and explored in the design of indoor-localization models based on Wi-Fi-fingerprint.

3. System Overview

A schematic of the proposed localization system is shown in Figure 1. A two-panel fingerprint homogeneity model was used to characterize fingerprint similarity. Subsequently, a fitness function was provided for SPSO, and the optimal solution can be obtained. This is the optimal location estimation for query data. The process is described in detail in the following sections.

3.1. Preliminary

For a clear description, certain primary notations are defined here and listed in Table 1.
Given sets of RPs RP t r a i n = { R P t r a i n 1 , R P t r a i n 2 , R P t r a i n N t r } and APs AP = { A P 1 , A P 2 , A P M } , suppose that M APs are deployed in the indoor environment, and N t r RPs are selected as signal collection points in the offline phase. Consequently, each RP has a coordinate R P t r a i n i = ( x t r a i n i , y t r a i n i ) and a Wi-Fi fingerprint F i n t r a i n i (as in Equation (5)). The entire Wi-Fi fingerprint in the offline phase is denoted by Equation (6).
F i n t r a i n i = ( R S S t r a i n i A P 1 , R S S t r a i n i A P 2 , , R S S t r a i n i A P M )
Fin t r a i n = ( F i n t r a i n 1 , F i n t r a i n 2 , , F i n t r a i n N t r ) T = R S S t r a i n 1 A P 1 R S S t r a i n 1 A P 2 R S S t r a i n 1 A P M R S S t r a i n 2 A P 1 R S S t r a i n 2 A P 2 R S S t r a i n 2 A P M R S S t r a i n N t r A P 1 R S S t r a i n N t r A P 2 R S S t r a i n N t r A P M
where R S S t r a i n i A P j is the RSS of ith RP from jth AP ( i = 1 , 2 , , N t r ; j = 1 , 2 , , M ). Similarly, in the online phase, a series of (such as N t e ) query fingerprints Fin q u e r y are collected when some users make a location request. In this study, each of these was denoted as a test fingerprint F i n t e s t i :
F i n t e s t i = ( R S S t e s t i A P 1 , R S S t e s t i A P 2 , , R S S t e s t i A P M )
Fin t e s t = ( F i n t e s t 1 , F i n t e s t 2 , , F i n t e s t N t e ) T = R S S t e s t 1 A P 1 R S S t e s t 1 A P 2 R S S t e s t 1 A P M R S S t e s t 2 A P 1 R S S t e s t 2 A P 2 R S S t e s t 2 A P M R S S t e s t N t e A P 1 R S S t e s t N t e A P 2 R S S t e s t N t e A P M
where N t e denotes the number of test fingerprints. Correspondingly, the actual coordinates are R P t e s t i = ( x t e s t i , y t e s t i ) , R P t e s t i RP t e s t = { R P t e s t 1 , R P t e s t 2 , R P t e s t N t e } , i = 1 , 2 , , N t e .

3.2. Two-Panel Fingerprint-Homogeneity Model

In Wi-Fi fingerprint-based indoor localization system, similarity characterization is essential for the test fingerprint F i n t e s t i to match the K most similar training fingerprints F i n t r a i n s i m k , ( k = 1 , 2 , , K ) in the offline database Fin t r a i n . Generally, it is expressed in terms of Euclidean distance; the closer the distance, the more similar it is to the fingerprints. Then, the location estimation can be calculated using Equation (9).
( x , y ) = ( k = 1 K x t r a i n k K , k = 1 K y t r a i n k K )
To further constrain the bias in fingerprint similarity characterization, a two-panel fingerprint-homogeneity model [19] was adopted to gauge the similarity of different fingerprints. In contrast to [19], for the first panel, Euclidean distance was used to gauge the homogeneity of different data. Further, the cosine distance was used to reflect the divergence of different vectors from a directional aspect in another panel. For vectors with the same dimension n, the two distances are denoted by Equations (10) and (11), and the similarity can be expressed as Equations (12) and (13).
d i s Euc ( v 1 , v 2 ) = v 1 v 2 2 = i = 1 n ( v 1 i v 2 i ) 2
d i s cos ( v 1 , v 2 ) = 1 v 1 · v 2 v 1 · v 2
s i m Euc ( v 1 , v 2 ) = 10 d i s Euc ( v 1 , v 2 )
s i m cos ( v 1 , v 2 ) = 10 d i s c o s ( v 1 , v 2 )
For a specific test fingerprint F i n t e s t and a specific training fingerprint F i n t r a i n , their Euclidean and cosine distances are denoted by Equations (14) and (15). Next, the corresponding location coefficients (as weights) were obtained based on the two distances, as Equations (16) and (17).
d i s Euc ( F i n t e s t , F i n t r a i n ) = j = 1 M ( R S S t e s t A P j R S S t r a i n A P j ) 2
d i s cos ( F i n t e s t , F i n t r a i n ) = 1 j = 1 M R S S t e s t A P j · R S S t r a i n A P j j = 1 M R S S t e s t A P j 2 j = 1 M R S S t r a i n A P j 2
ω Euc k = 10 ^ [ d i s Euc ( F i n t e s t , F i n t r a i n s i m Euc k ) ]
ω cos k = 10 ^ [ d i s cos ( F i n t e s t , F i n t r a i n s i m cos k ) ]
Actually, if only one panel of the two-panel fingerprint-homogeneity model or other distance metrics were used, the localization results would be affected. Different combinations will result in different performances. The details are discussed in Section 4.

3.3. SPSO Algorithm for Localization

To obtain the optimal predicted location of F i n t e s t i , the optimal value of the parameter K and the coordinate ( x , y ) must be solved. The SPSO algorithm can be used for this purpose. The target fitness function is defined by Equation (18).
f ( x , y , K ) = ( x k = 1 K ω Euc k k = 1 K ω Euc k x t r a i n s i m Euc k ) 2 + ( y k = 1 K ω Euc k k = 1 K ω Euc k y t r a i n s i m Euc k ) 2 + ( x k = 1 K ω cos k k = 1 K ω cos k x t r a i n s i m cos k ) 2 + ( y k = 1 K ω cos k k = 1 K ω cos k y t r a i n s i m cos k ) 2
At each iteration, the minimum fitness value of the particle and particle swarm were determined. Finally, the optimal location estimation was obtained. The specific procedure is summarized in Algorithm 1. In addition, the mathematical model of the algorithm can be found at the link: https://github.com/Kiron666/SPSO_2P (accessed on 30 June 2022).
Algorithm 1 The algorithm procedure of localization.
Input:
    The offline fingerprints data Fin t r a i n and the coordinates data RP t r a i n ;
    The query fingerprint Fin q u e r y ;
Output:
    The location estimation of the query fingerprint.
1:
Offline data collection, and obtain the training data Fin t r a i n , RP t r a i n ;
2:
Obtain the query data Fin q u e r y ;
3:
**Similarity calculation by two-panel fingerprint-homogeneity model**
4:
For i = 1 to N t r do
5:
  Calculate the Euclidean distance and corresponding similarity of Fin q u e r y and Fin t r a i n i according to Equations (12) and (14)
6:
  Calculate the cosine distance and corresponding similarity of Fin q u e r y and Fin t r a i n i according to Equations (13) and (15)
7:
End for
8:
Sort s i m Euc in descending order, return the index Euc ;
9:
Sort s i m cos in descending order, return the index cos ;
10:
**SPSO Initialization**
11:
Set constants N p s = 100, t = 0, T m a x = 10,000, c 1 = c 2 = 1.5, ω i n i t = 0.4, ω e n d = 0.9;
12:
Set boundary of the particle positions and velocities
13:
For each particle
14:
  Randomly initialize the particle positions x i 0 ;
15:
  Randomly initialize the particle velocities v i 0 ;
16:
  Evaluate the ith particle according to Equations (16)–(18) and set pbest i 0 = x i 0
17:
End for
18:
gbest 0 = arg min [ f ( pbest i 0 ) ]
19:
**Particle swarm update process**
20:
While t < = T m a x
21:
   t = t + 1 , ω t = ω i n i t + ( ω e n d ω i n i t ) ( T max t ) / T max
22:
  For each particle
23:
   Update v i t and x i t according to Equations (2) and (3)
24:
   Evaluate the ith particle according to Equations (16)–(18)
25:
   If f ( x i t ) < f ( pbest i t 1 )
26:
     pbest i t = x i t
27:
   Else
28:
     pbest i t = pbest i t 1
29:
   End if
30:
  End for
31:
  If min [ f ( pbest i t ) ] < f ( gbest t 1 )
32:
    gbest t = arg min [ f ( pbest i t ) ]
33:
  Else
34:
    gbest t = gbest t 1
35:
  End if
36:
End while
37:
Return gbest
38:
**Location estimation**
39:
( x p , y p ) = ( x , y ) of gbest
40:
**Error evaluation**

4. Experiments and Analysis

4.1. Experimental Setup

The experiment was conducted in a 324 m 2 one-floor building, with lengh of 27 m and width of 12 m. There are two offices, a conference room, an open office area containing five desks and several chairs, and an exhibition area containing six large robots, with relatively high but unintentional and random personnel flow. The spatial layout and indoor localization environment are shown in Figure 2 and Figure 3a, which include 10 APs deployed on the perimeter at a height of 1.2 m above the floor level. Notwithstanding, these APs are also shown, although their coordinates are not necessarily a priority condition. In addition, the data was collected by a mobile robot (product name: TurtleBot 3) with a RTL8188CUS Wi-Fi Module, as Figure 3b shows. To reflect the actual scenario, the data collection was performed in the presence of obstacles.
The localization area was divided into multiple grids of width 1.0 m. In the offline phase, 187 points were set as the RPs. At each RP, the R S S from each AP was uniquely identified by MAC address and measured 30 times (at 1 min intervals). The IEEE 802.11n with 2.4 GHz band, 40 MHz channel bandwidth and MCS 0, were used during this time. Thus, 56,100 units of R S S data were processed. The mean of each 30 measurements from the 10 APs were taken as the fingerprint of the RP. Further, the approximately uniformly distributed 52 groups of RPs with over 2.0 m spacing, and the corresponding fingerprints, constituted the training dataset, a sparse set; the remaining 135 groups constituted the test dataset and were used to test the performance of the localization system during the localization process.

4.2. Performance Metric

To evaluate the localization performance, several evaluation indices in machine learning were applied. The mean squared error (MSE), mean absolute error (MAE), root MSE (RMSE), and standard deviation (STD) were adopted as the main performance metrics. Furthermore, the mean of the Euclidean distance between the estimated location and the actual location was considered as a measure of accuracy. These metrics are defined as follows.
Error M S E = 1 N t e i = 1 N t e [ ( x p i x t e s t i ) 2 + ( y p i y t e s t i ) 2 ]
Error M A E = 1 N t e i = 1 N t e ( | x p i x t e s t i | + | y p i y t e s t i | )
Error R M S E = 1 N t e i = 1 N t e [ ( x p i x t e s t i ) 2 + ( y p i y t e s t i ) 2 ]
Error S T D = 1 N t e i = 1 N t e ( e r r i e r r ¯ ) 2 , e r r i = ( x p i x t e s t i ) 2 + ( y p i y t e s t i ) 2 , e r r ¯ = Accuracy = 1 N t e i = 1 N t e e r r i
where ( x p , y p ) is the estimated location obtained by the localization algorithm and ( x t e s t , y t e s t ) is the actual location of the RSS collection device.

4.3. Results and Discussion

4.3.1. Performance Comparison of Different Methods

To evaluate the localization performance of the proposed system, it was compared with four other classical machine-learning (ML) algorithms: (1) the K-nearest-neighbor (KNN) method [44]; (2) the support-vector-machine (SVM) method [45]; (3) the linear-regression (LR) method [46]; and (4) the random-forest (RF) method [47]. All the ML-based results were calculated on a computer with 16.0 GB of RAM, Intel(R) Core(TM) i7-10700 CPU and the program environment of Python 3.7.8.
A quantitative analysis of the localization errors was performed, as shown in Table 2. It shows that the four performance metrics of the proposed localization system were all minimum except for the STD, with MSE 6.0433 m, MAE 2.6288 m, and RMSE 2.4583 m, which is also shown in Figure 4. However, the difference in STD from the minimum was less than 0.04. Meanwhile, it is evident that it exhibited the best performance on the basis of 25/50/75% error, implying that the percentage accounted for all localization errors. In particular, the 50% error was less than 2.00 m and the 75% error was within 3.00 m. In terms of the improvement rate of RMSE, improvements by 11.25 16.28 33.56 and 36.76% compared with KNN, SVM, LR and RF, respectively, were observed. In general, the proposed method exhibited the best performance.
The CDF curve and the box plot can represent the localization performance and the distribution of the localization errors, in a visualized manner, as in Figure 5a,b, respectively. It is clear that the performance of SPSO is better than that of the other four. For LR and RF, their performances were not that different and were relatively mediocre. However, the performances of KNN and SVM were moderate. In the box plot, it is evident that, regardless of the median, maximum, minimum, upper quartile, or lower quartile, the localization error of the proposed method is the lowest, and no extreme outliers exist (outliers are shown as * in Figure 5b). Moreover, it still performs well in the presence of mild outliers.
For the accuracy, the method proposed in this study achieved 2.0817 m, which is the best out of the five localization models. Compared with the four conventional methods, the accuracy improved by 15.32%, 15.91%, 32.38%, and 36.64%, respectively. Considering the stochasticity of the SPSO algorithm, the proposed method was run 50 times with 100 particles and 10,000 iterations each time, and the above results are their average performance. The standard deviation of the accuracy over 50 runs was 0.0431 m. On the other hand, the SPSO algorithm inevitably increases the complexity of the system, conforming to the no-free-lunch theorem. A time-consumption comparison experiment was performed. For completing a single localization, all four conventional methods took less than 0.1 s, while SPSO took less than 0.05 s, which is also a real-time and acceptable result.

4.3.2. Model Analysis

It should be noted that there are three factors that determine the performance of the model in the proposed method. In this section, comparison of one panel and two-panel, impact of different distance metrics, and impact of different weight assignations are discussed and analyzed. For the one panel, the fitness function Equation (18) was replaced by Equation (23). For the distance metrics, Euclidean metric (Euc, Equation (14)) and Mahalanobis distance (Mahal, Equation (24); the covariance matrix Σ was calculated by the training fingerprints) are common for Wi-Fi fingerprint similarity characterization. The correlation metric (Cor, Equation (25)) and cosine distance (Cos, Equation (15)) were adopted in [19]. For the weight assignments, reciprocal distance (weight 1 in Table 3) and Softmax function (weight 2 in Table 3) are commonly used. Considering that, in the log-distance path-loss model, the relationship between the R S S and the distance is related to the logarithmic function of base 10 [35], ω 3 in Equation (26) (weight 3 in Table 3) was used in this study. The details are shown in Table 3.
f ( x , y , K ) = ( x k = 1 K ω k k = 1 K ω k x t r a i n s i m k ) 2 + ( y k = 1 K ω k k = 1 K ω k y t r a i n s i m k ) 2
d i s Mahal ( F i n t e s t , F i n t r a i n ) = ( F i n t e s t F i n t r a i n ) Σ 1 ( F i n t e s t F i n t r a i n ) T
d i s Cor ( F i n t e s t , F i n t r a i n ) = 1 1 M 1 j = 1 M ( R S S t e s t A P j F i n t e s t ¯ ) · ( R S S t r a i n A P j F i n t r a i n ¯ ) σ F i n t e s t · σ F i n t r a i n
in which ¯ and σ are, respectively, the mean and standard deviation of the fingerprint.
ω 1 k = 1 d k + ε k = 1 K 1 d k + ε , ω 2 k = e d k k = 1 K e d k , ω 3 k = 10 d k k = 1 K 10 d k
in which d k means the distance between F i n t e s t and F i n t r a i n s i m k , and ε is a very small value to avoid the problem of division by zero.
A. Comparison of one panel and two-panel. To further analyze the characteristics of the model, a comparative experiment on one panel and two-panel was carried out. In this study, the two-panel fingerprint-homogeneity model was used to construct the fitness function of the SPSO algorithm. Actually, Equation (18) presents the fact that its geometric meaning is to find the situation where the estimated locations of the two panels are the closest. The situation can be determined by the parameter K, i.e., a specific value of K can uniquely determine the estimated locations of the two panels. For particles, their optimal position is on the line segment where the estimated location of the two panels are the endpoints. Obviously, Equation (18) has multiple solutions. However, if only one of the two panels were used, the particles would always find the optimal position that minimizes the fitness function (to 0), no matter what the value of K is. In the same case of multiple solutions, the solutions of one panel will be more dispersed, meaning that the model is not robust enough. As shown in Table 3, No. 1–4 are the results of one panel, and No. 5–10 are those of two-panel with different distance metrics and weight assignments. Although their results were similar, since K was limited to [ 2 ,   8 ] for better results, the performance of two-panel is better than at least one panel, in general. This means that the results of two panels can constrain each other, especially in combinations involving Mahalanobis distance.
B. Impact of different distance metrics. Wi-Fi fingerprint-based indoor localization is inseparable from the comparison of similar fingerprints. It is clear that different distance-characterization methods will lead to different localization results with the two-panel fingerprint-homogeneity model. A comparative experiment was conducted to analyze their impact on localization performance. The reliable covariance matrix cannot be obtained from the sparse training set; we can see in Table 3 that the accuracy of the combination involving Mahalanobis distance performs poorly. The two-panel method using Euclidean metric and cosine distance achieved the best performance. This is why we used them for Wi-Fi fingerprint-similarity characterization in this study.
C. Impact of different weight assignments. In fact, the neighboring fingerprints can generally be found correctly through different distance metrics. However, achieving high-accuracy localization with proper weight assignment is a challenging problem, because the transformation relationship from the fingerprint domain to the physical coordinate domain is uncertain. The effects of three weight assignments (Equation (26)) were compared experimentally in this study. Obviously, weight 1 is often applied, but it is not always the best. Weight 2 and weight 3 have little difference in actual performance. For the proposed method, weight 3 performs best with the two-panel approach using Euclidean metric and cosine distance. It verified the viability of weight 3 in Wi-Fi fingerprint-based indoor localization.

5. Conclusions

Although indoor localization based on Wi-Fi is promising, achieving improved accuracy remains a difficult problem. In this study, an application method of a particle swarm optimization algorithm in Wi-Fi fingerprint location was proposed, which adopted a two-panel fingerprint-homogeneity model to express the similarity among different fingerprints with greater robustness. The experimental results showed that the average accuracy of the proposed localization system was 2.0817 m. Further, the proposed particle swarm optimization algorithm outperforms other conventional algorithms, verifying its effectiveness and feasibility for improving the accuracy of indoor localization.
Future work will focus on extending radio fingerprint maps and mitigating the effects of Wi-Fi signal volatility. In addition, fusion localization with other methods will be considered to improve the performance of the localization system by combining the advantages offered by the different sensors.

Author Contributions

All authors conceptualized the study and participated in the development of the concept and methodology; software, K.L. and X.Z.; validation, K.L. and X.Z.; formal analysis, X.Z.; investigation, K.L. and X.Z.; resources, J.Z.; data curation, K.L.; writing—original draft preparation, K.L.; writing—review and editing, K.L. and X.Z.; visualization, K.L. and X.Z.; supervision, J.Z.; project administration, J.Z.; funding acquisition, J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
ANNArtificial neural network
AOAAngle of arrival
APAccess point
GPSGlobal positioning system
IMUInertial measurement units
IoTInternet-of-Things
KNNK-nearest neighbor
LRLinear regression
MAEMean absolute error
MSEMean square error
NLOSNon-line of sight
NNNeural network
PSOParticle swarm optimization
RFRandom forests
RFIDRadio frequency identification
RMSERoot mean square error
RPReference point
RSSReceived signal strength
SPSOStandard particle swarm optimization
STDStandard deviation
SVMSupport vector machine
TDOATime difference of arrival
TOATime of arrival
UWBUltra wide band
WKNNWeighted k-nearest neighbor

References

  1. Khan, M.A.; Saboor, A.; Kim, H.C.; Park, H. A Systematic Review of Location Aware Schemes in the Internet of Things. Sensors 2021, 21, 3228. [Google Scholar] [CrossRef] [PubMed]
  2. Jagannath, J.; Polosky, N.; Jagannath, A.; Restuccia, F.; Melodia, T. Machine learning for wireless communications in the Internet of Things: A comprehensive survey. Ad Hoc Netw. 2019, 93, 101913. [Google Scholar] [CrossRef] [Green Version]
  3. Singh, N.; Choe, S.; Punmiya, R. Machine Learning Based Indoor Localization Using Wi-Fi RSSI Fingerprints: An Overview. IEEE Access 2021, 9, 127150–127174. [Google Scholar] [CrossRef]
  4. Geok, T.K.; Aung, K.Z.; Aung, M.S.; Soe, M.T.; Abdaziz, A.; Liew, C.P.; Hossain, F.; Tso, C.P.; Yong, W.H. Review of Indoor Positioning: Radio Wave Technology. Appl. Sci. 2021, 11, 279. [Google Scholar] [CrossRef]
  5. Liu, F.; Liu, J.; Yin, Y.Q.; Wang, W.H.; Hu, D.H.; Chen, P.P.; Niu, Q. Survey on WiFi-based indoor positioning techniques. IET Commun. 2020, 14, 1372–1383. [Google Scholar] [CrossRef]
  6. Tomazic, S.; Skrjanc, I. An Automated Indoor Localization System for Online Bluetooth Signal Strength Modeling Using Visual-Inertial SLAM. Sensors 2021, 21, 2857. [Google Scholar] [CrossRef]
  7. Poulose, A.; Han, D.S. UWB Indoor Localization Using Deep Learning LSTM Networks. Appl. Sci. 2020, 10, 6290. [Google Scholar] [CrossRef]
  8. Guan, W.P.; Chen, S.H.; Wen, S.S.; Tan, Z.Q.; Song, H.Z.; Hou, W.Y. High-Accuracy Robot Indoor Localization Scheme Based on Robot Operating System Using Visible Light Positioning. IEEE Photonics J. 2020, 12, 7901716. [Google Scholar] [CrossRef]
  9. Bianchi, V.; Ciampolini, P.; De Munari, I. RSSI-Based Indoor Localization and Identification for ZigBee Wireless Sensor Networks in Smart Homes. IEEE Trans. Instrum. Meas. 2019, 68, 566–575. [Google Scholar] [CrossRef]
  10. Morar, A.; Moldoveanu, A.; Mocanu, I.; Moldoveanu, F.; Radoi, I.E.; Asavei, V.; Gradinaru, A.; Butean, A. A Comprehensive Survey of Indoor Localization Methods Based on Computer Vision. Sensors 2020, 20, 2641. [Google Scholar] [CrossRef]
  11. Motroni, A.; Buffi, A.; Nepa, P. A Survey on Indoor Vehicle Localization through RFID Technology. IEEE Access 2021, 9, 17921–17942. [Google Scholar] [CrossRef]
  12. Poulose, A.; Eyobu, O.S.; Han, D.S. An Indoor Position-Estimation Algorithm Using Smartphone IMU Sensor Data. IEEE Access 2019, 7, 11165–11177. [Google Scholar] [CrossRef]
  13. Ashraf, I.; Kang, M.Y.; Hur, S.; Park, Y. MINLOC: Magnetic Field Patterns-Based Indoor Localization Using Convolutional Neural Networks. IEEE Access 2020, 8, 66213–66227. [Google Scholar] [CrossRef]
  14. Simka, M.; Polak, L. On the RSSI-Based Indoor Localization Employing LoRa in the 2.4 GHz ISM Band. Radioengineering 2022, 31, 135–143. [Google Scholar] [CrossRef]
  15. Zafari, F.; Gkelias, A.; Leung, K.K. A Survey of Indoor Localization Systems and Technologies. IEEE Commun. Surv. Tutor. 2019, 21, 2568–2599. [Google Scholar] [CrossRef] [Green Version]
  16. Holm, S. Hybrid Ultrasound-RFID Indoor Positioning: Combining the Best of Both Worlds. In Proceedings of the IEEE International Conference on RFID, Orlando, FL, USA, 27–28 April 2009; pp. 155–162. [Google Scholar]
  17. Feng, D.Q.; Wang, C.Q.; He, C.L.; Zhuang, Y.; Xia, X.G. Kalman-Filter-Based Integration of IMU and UWB for High-Accuracy Indoor Positioning and Navigation. IEEE Internet Things J. 2020, 7, 3133–3146. [Google Scholar] [CrossRef]
  18. Obeidat, H.; Shuaieb, W.; Obeidat, O.; Abd-Alhameed, R. A Review of Indoor Localization Techniques and Wireless Technologies. Wirel. Pers. Commun. 2021, 119, 289–327. [Google Scholar] [CrossRef]
  19. Zhang, X.; Sun, W.; Zheng, J.; Xue, M.; Tang, C.; Zimmermann, R. Towards Floor Identification and Pinpointing Position: A Multistory Localization Model with WiFi Fingerprint. Int. J. Control Autom. Syst. 2022, 20, 1484–1499. [Google Scholar] [CrossRef]
  20. Bratton, D.; Kennedy, J. Defining a standard for particle swarm optimization. In Proceedings of the IEEE Swarm Intelligence Symposium, Honolulu, HI, USA, 1–5 April 2007; pp. 120–127. [Google Scholar]
  21. Lomayev, A.; Da Silva, C.R.C.M.; Maltsev, A.; Cordeiro, C.; Sadrl, A.S. Passive Presence Detection Algorithm for Wi-Fi Sensing. Radioengineering 2020, 29, 540–547. [Google Scholar] [CrossRef]
  22. Li, J.; Sharma, A.; Mishra, D.; Seneviratne, A. Fire Detection Using Commodity WiFi Devices. In Proceedings of the IEEE Global Communications Conference (GLOBECOM), Madrid, Spain, 7–11 December 2021; pp. 1–6. [Google Scholar]
  23. He, S.N.; Chan, S.H.G. Wi-Fi Fingerprint-Based Indoor Positioning: Recent Advances and Comparisons. IEEE Commun. Surv. Tutor. 2016, 18, 466–490. [Google Scholar] [CrossRef]
  24. Yang, C.C.; Shao, H.R. WiFi-Based Indoor Positioning. IEEE Commun. Mag. 2015, 53, 150–157. [Google Scholar] [CrossRef]
  25. Bahl, P.; Padmanabhan, V.N. RADAR: An In-Building RF-based User Location and Tracking System. In Proceedings of the Nineteenth Annual Joint Conference of the IEEE Computer and Communications Societies (Cat. No.00CH37064), Tel Aviv, Israel, 26–30 March 2000; Volume 2, pp. 775–784. [Google Scholar]
  26. Ma, R.; Guo, Q.; Hu, C.; Xue, J. An Improved WiFi Indoor Positioning Algorithm by Weighted Fusion. Sensors 2015, 15, 21824–21843. [Google Scholar] [CrossRef] [PubMed]
  27. Wang, B.F.; Zhu, H.; Xu, M.M.; Wang, Z.M.; Song, X.D. Analysis and improvement for Fingerprinting-based Localization Algorithm based on Neural Network. In Proceedings of the 15th International Conference on Computational Intelligence and Security (CIS), Macao, China, 13–16 December 2019; pp. 82–86. [Google Scholar]
  28. Dai, H.; Ying, W.H.; Xu, J. Multi-layer neural network for received signal strength-based indoor localisation. IET Commun. 2016, 10, 717–723. [Google Scholar] [CrossRef]
  29. Chriki, A.; Touati, H.; Snoussi, H. SVM-Based Indoor Localization in Wireless Sensor Networks. In Proceedings of the 13th International Wireless Communications and Mobile Computing Conference (IWCMC), Valencia, Spain, 26–30 June 2017; pp. 1144–1149. [Google Scholar]
  30. Guo, X.S.; Ansari, N.; Li, L.; Li, H.Y. Indoor Localization by Fusing a Group of Fingerprints Based on Random Forests. IEEE Internet Things J. 2018, 5, 4686–4698. [Google Scholar] [CrossRef] [Green Version]
  31. Luo, J.; Zhang, Z.Y.; Wang, C.; Liu, C.; Xiao, D.G. Indoor Multifloor Localization Method Based on WiFi Fingerprints and LDA. IEEE Trans. Ind. Inform. 2019, 15, 5225–5234. [Google Scholar] [CrossRef]
  32. Youssef, M.A.; Agrawala, A.; Shankar, A.U. WLAN location determination via clustering and probability distributions. In Proceedings of the 1st IEEE International Conference on Pervasive Computing and Communications, Fort Worth, TX, USA, 26 March 2003; pp. 143–150. [Google Scholar]
  33. Madigan, D.; Elnahrawy, E.; Martin, R.P.; Ju, W.F.; Krishnan, P.; Krishnakumar, A.S. Bayesian indoor positioning systems. In Proceedings of the 24th Annual Joint Conference of the IEEE Computer and Communications Societies, Miami, FL, USA, 13–17 March 2005; pp. 1217–1227. [Google Scholar]
  34. Guo, X.S.; Li, L.; Xu, F.; Ansari, N. Expectation Maximization Indoor Localization Utilizing Supporting Set for Internet of Things. IEEE Internet Things J. 2019, 6, 2573–2582. [Google Scholar] [CrossRef]
  35. Sun, W.; Xue, M.; Yu, H.S.; Tang, H.W.; Lin, A.P. Augmentation of Fingerprints for Indoor WiFi Localization Based on Gaussian Process Regression. IEEE Trans. Veh. Technol. 2018, 67, 10896–10905. [Google Scholar] [CrossRef]
  36. Lee, Y.H.; Lin, C.S. WiFi Fingerprinting for Indoor Room Localization Based on CRF Prediction. In Proceedings of the 3rd International Symposium on Computer, Consumer and Control (IS3C), Xi’an, China, 4–6 July 2016; pp. 315–318. [Google Scholar]
  37. Luo, M.; Zheng, J.; Sun, W.; Zhang, X. WiFi-based Indoor Localization Using Clustering and Fusion Fingerprint. In Proceedings of the 2021 40th Chinese Control Conference (CCC), Shanghai, China, 26–28 July 2021; pp. 3480–3485. [Google Scholar]
  38. James Kennedy, R.E. Particle swarm optimization. In Proceedings of the ICNN’95—International Conference on Neural Networks, Perth, WA, Australia, 27 November–1 December 1995; Volume 4, pp. 1942–1948. [Google Scholar]
  39. Abed, A.K.; Abdel-Qader, I. Access Point Selection Using Particle Swarm Optimization in Indoor Positioning Systems. In Proceedings of the NAECON 2018—IEEE National Aerospace and Electronics Conference, Dayton, OH, USA, 23–26 July 2018; pp. 403–410. [Google Scholar]
  40. Tewolde, G.S.; Kwon, J. Efficient WiFi-Based Indoor Localization Using Particle Swarm Optimization. In Proceedings of the Advances in Swarm Intelligence, Dalian, China, 26–28 July 2011; pp. 203–211. [Google Scholar]
  41. Wang, Y. User positioning with particle swarm optimization. In Proceedings of the 2017 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Sapporo, Japan, 18–21 September 2017; pp. 1–5. [Google Scholar]
  42. Bi, J.; Cao, H.; Yao, G.; Chen, Z.; Cao, J.; Gu, X. Indoor Fingerprint Positioning Method with Standard Particle Swarm Optimization. In Proceedings of the China Satellite Navigation Conference (CSNC 2021), Jakarta, Indonesia, 24–25 October 2021; Springer: Singapore; pp. 403–412. [Google Scholar]
  43. 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. 2016, 12, 4583147. [Google Scholar] [CrossRef] [Green Version]
  44. Lu, X.M.; Qiu, Y.; Yuan, W.L.; Yang, F. An Improved Dynamic Prediction Fingerprint Localization Algorithm Based On KNN. In Proceedings of the 6th International Conference on Instrumentation and Measurement, Computer, Communication and Control (IMCCC), Harbin, China, 21–23 July 2016; pp. 289–292. [Google Scholar]
  45. Hernandez, N.; Ocana, M.; Alonso, J.M.; Kim, E. Continuous Space Estimation: Increasing WiFi-Based Indoor Localization Resolution without Increasing the Site-Survey Effort. Sensors 2017, 17, 147. [Google Scholar] [CrossRef]
  46. Hoang, M.K.; Schmalenstroeer, J.; Haeb-Umbach, R. Aligning Training Models With Smartphone Properties In Wifi Fingerprinting Based Indoor Localization. In Proceedings of the 40th IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP), South Brisbane, QLD, Australia, 19–24 April 2015; pp. 1981–1985. [Google Scholar]
  47. Lee, S.; Moon, N. Location recognition system using random forest. J. Ambient. Intell. Humaniz. Comput. 2018, 9, 1191–1196. [Google Scholar] [CrossRef]
Figure 1. Schematic of the localization system.
Figure 1. Schematic of the localization system.
Sensors 22 05051 g001
Figure 2. Layout of the experiment area (the dots represent the locations of all reference points).
Figure 2. Layout of the experiment area (the dots represent the locations of all reference points).
Sensors 22 05051 g002
Figure 3. (a) The indoor environment. (b) The data-collection device.
Figure 3. (a) The indoor environment. (b) The data-collection device.
Sensors 22 05051 g003
Figure 4. The MSE, MAE, RMSE and STD with different localization models.
Figure 4. The MSE, MAE, RMSE and STD with different localization models.
Sensors 22 05051 g004
Figure 5. Distribution of the localization error. (a) CDF curve of the different models. (b) Box plot of the localization errors.
Figure 5. Distribution of the localization error. (a) CDF curve of the different models. (b) Box plot of the localization errors.
Sensors 22 05051 g005
Table 1. The descriptions of each notation.
Table 1. The descriptions of each notation.
NotationsDescriptions
AP Set of Access Points
MNumber of Access Points
RP t r a i n , R P t r a i n i Set of Reference Points for Training and its ith Point
RP t e s t , R P t e s t i Set of Reference Points for Test and its ith Point
Fin t r a i n , F i n t r a i n i Training Fingerprints and the ith Training Fingerprint
Fin t e s t , F i n t e s t i Test Fingerprints and the ith Test Fingerprint
R S S t r a i n i A P j Received Signal Strength of ith RP from jth AP
N t r Number of Training Fingerprints
N t e Number of Test Fingerprints/Query Fingerprints
Fin q u e r y The Query Fingerprint in the Online Phase
d i s Euc , d i s cos Euclidean and Cosine Distance of Two Vectors
s i m Euc , s i m cos The Simlarity Characterization of Two Vectors according to Euclidean and Cosine Distance
KNumber of the Most Similar Training Fingerprints to Test Fingerprint
Fin t r a i n s i m k The kth Most Similar Training Fingerprint to Query Fingerprint
ω Euc k , ω cos k The Location Coefficients of Location Estimation according to Euclidean and Cosine Distance
DDimension of the Particles
N p s Size of Particle Swarm/Number of Particles
c 1 , c 2 Acceleration Factors in SPSO
ω t Inertia weight for the tth Iteration in SPSO
v i t , v i d t Velocity vector and its dth Dimension Velocity of the ith particle in the tth iteration
x i t , x i d t Position vector and its dth Dimension Position of the ith particle in the tth iteration
pbest i t , p b e s t i d t Historical Optimal Solution of Each Particle and its dth Dimension Value in the tth iteration
gbest t , g b e s t d t Historical Global Optimal Solution of Particle Swarm and its dth Dimension Value in the tth iteration
T max Maximum Iterations
Table 2. The performance metrics of different localization models.
Table 2. The performance metrics of different localization models.
Performance MetricsSPSOKNNSVMLRRF
MSE (m)6.04337.67188.622413.688515.1111
MAE (m)2.62883.13893.03703.86674.1630
RMSE (m)2.45832.76982.93643.69983.8873
STD (m)1.30761.27581.57892.05182.0777
Accuracy (m)2.08172.45852.47573.07883.2855
25% Error (m)1.01221.51041.00001.41421.4142
50% Error (m)1.83292.24512.23612.23613.1623
75% Error (m)2.78313.26393.16234.12314.2426
Improvement in RMSE/11.25%16.28%33.56%36.76%
Improvement in Accuracy/15.32%15.91%32.38%36.64%
Time Consumption (s)<0.05<0.01<0.001<0.001<0.01
Table 3. The performance comparison 1 of different distance metrics and weight assignments.
Table 3. The performance comparison 1 of different distance metrics and weight assignments.
No.Distance MetricsWeightAccuracy (m)RMSE (m)STD (m)
1Euclidean Metric12.36002.67681.2631
22.22612.63111.4026
32.35552.77701.4708
2Mahalanobis Distance14.00904.79742.6350
23.82294.56522.4952
33.68524.51752.6128
3Correlation Metric12.32502.65551.2831
22.43362.77331.3299
32.45092.81801.3909
4Cosine Distance12.20892.54441.2629
22.33782.66481.2789
32.38572.70821.2818
5Euc and Mahal12.66923.19111.7490
22.45992.93091.5934
32.49033.05611.7714
6Euc and Cor12.21772.52521.2077
22.14322.51721.3203
32.17072.54911.3364
7Euc and Cos12.25842.58921.2664
22.15162.54971.3681
32.11282.47661.2922
8Mahal and Cor12.56563.00261.5599
22.69123.15271.6422
32.69003.21571.7621
9Mahal and Cos12.54902.94191.4689
22.72423.19931.6775
32.69013.22551.7797
10Cor and Cos [19]12.25592.59881.2902
22.28312.60711.2587
32.32442.64451.2612
1 All results in this table are medians over 20 runs.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zheng, J.; Li, K.; Zhang, X. Wi-Fi Fingerprint-Based Indoor Localization Method via Standard Particle Swarm Optimization. Sensors 2022, 22, 5051. https://doi.org/10.3390/s22135051

AMA Style

Zheng J, Li K, Zhang X. Wi-Fi Fingerprint-Based Indoor Localization Method via Standard Particle Swarm Optimization. Sensors. 2022; 22(13):5051. https://doi.org/10.3390/s22135051

Chicago/Turabian Style

Zheng, Jin, Kailong Li, and Xing Zhang. 2022. "Wi-Fi Fingerprint-Based Indoor Localization Method via Standard Particle Swarm Optimization" Sensors 22, no. 13: 5051. https://doi.org/10.3390/s22135051

APA Style

Zheng, J., Li, K., & Zhang, X. (2022). Wi-Fi Fingerprint-Based Indoor Localization Method via Standard Particle Swarm Optimization. Sensors, 22(13), 5051. https://doi.org/10.3390/s22135051

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop