Abstract
The localization accuracy is susceptible to the received signal strength indication (RSSI) fluctuations for RSSI-based wireless localization methods. Moreover, the maximum likelihood estimation (MLE) of the target location is nonconvex, and locating target presents a significant computational complexity. In this paper, an RSSI-based access point cluster localization (APCL) method is proposed for locating a moving target. Multiple location-constrained access points (APs) are used in the APCL method to form an AP cluster as an anchor node (AN) in the wireless sensor network (WSN), and the RSSI of the target is estimated with several RSSI samples obtained by the AN. With the estimated RSSI for each AN, the solution for the target location can be obtained quickly and accurately due to the fact that the MLE localization problem is transformed into an eigenvalue problem by constructing an eigenvalue equation. Simulation and experimental results show that the APCL method can meet the requirement of high-precision real-time localization of moving targets in WSN with higher localization accuracy and lower computational effort compared to the existing classical RSSI-based localization methods.
1. Introduction
In recent years, location-based services related to daily life and work have been launched [1]. For large indoor areas, such as factories, hospitals, and shopping malls, the ability to locate moving targets inside them in real time is necessary for purposes such as navigation, surveillance, and business model optimization [2]. The commonly employed techniques for indoor wireless localization techniques encompass Wi-Fi, radio frequency identification (RFID), ultra-wideband (UWB), long-range radio (LoRa), bluetooth low energy (BLE), and ZigBee, etc. [3,4,5,6]. The increasing density of Wi-Fi coverage and the widespread adoption of mobile devices equipped with wireless network interface controllers have significantly enhanced the ubiquity of Wi-Fi-based localization technologies, eliminating the need for additional hardware. For Wi-Fi-based localization technology, the wireless access points (APs) are used as the anchor nodes (ANs) to form a wireless sensor network (WSN), and the target is considered as the blind node. The AP measures the radio signal parameters emitted by the target for localization, such as time of arrival (TOA) [7], time difference of arrival (TDOA) [8], angle of arrival (AOA) [9], received signal strength indication (RSSI) [10], etc. Measuring the target RSSI requires neither clock synchronization nor antenna arrays, and has a lower cost, so RSSI-based localization methods are more promising for application and have received wide attention from scholars [11].
The RSSI-based localization problem consists in the need to obtain the distance information between the target and AN using the target RSSI samples measured by the ANs, and then obtain the target location estimate with the distance information. The essence of this localization problem is the obtention of the maximum likelihood estimation (MLE) of the target location [12,13]. However, this problem is a nonconvex optimization problem with multiple locally optimal solutions. Moreover, the complexity of the indoor Wi-Fi channel leads to drastic fluctuations in the RSSI measured by the ANs, which leads to a reduction in the accuracy of the traditional iterative methods for solving the target location. The search for ways in which RSSI can be effectively used to localize target with superior accuracy has become a hot issue in the field of indoor localization.
To improve the accuracy of the RSSI-based localization, it is necessary to improve the accuracy of the RSSI for the target characterized by AN. RSSI samples measured by the AN are processed, such as mean filter [14], Kalman filter [15], Gaussian filter [16], etc., to reduce the influence of random factors and improve the accuracy of the target RSSI. However, existing methods for treating RSSI do not consider the restriction on the number of RSSI samples. During real-time localization, the number of RSSI samples measured by AN is mostly limited due to the limited frequency of RSSI measurements, which leads to degraded performance of these methods.
For non-convexity of the RSSI-based localization problem, commonly used methods include the convex relaxation method [17,18,19,20,21] and objective function approximation method [22,23]. The convex relaxation method transforms a nonconvex optimization problem into a convex optimization problem by relaxing the constraints to find a globally optimal solution. Typical convex relaxation methods contain the semidefinite programming (SDP) algorithm [17], the second-order cone programming (SOCP) algorithm [20,21], etc. Despite the better accuracy, the computational complexity of the convex relaxation method is significant. The objective function approximation method approximates the original problem in order to find the global optimal solution of the approximated problem. Typical methods include weighted least squares (WLS) [22], squared range least squares (SRLS) [23], etc. Although the objective function approximation method has a relatively simple computational procedure, the approximation procedure introduces additional errors that lead to lower localization accuracy. Existing methods for solving the non-convexity of localization problems fail to balance accuracy and computational complexity at the same time, thus failing to meet the demand for high-precision real-time localization.
To address the localization error and the computational cost caused by RSSI fluctuation and non-convexity of the localization problem during real-time localization, in this paper, an RSSI-based AP cluster localization (APCL) method is proposed for high-precision real-time localization of indoor mobile targets. First, the AP cluster is proposed to form the AN in order to increase the number of RSSI samples measured by a single AN. Then, the optimal RSSI of the target is estimated from the samples measured by AN to reduce the error due to fluctuations. Finally, the MLE problem is constructed as an eigenvalue problem and the global optimal solution can be solved directly and quickly to reduce the error and computational complexity due to non-convexity. The main contributions of this paper are as follows.
- (1)
- It is proposed to construct the AN in the form of an AP cluster, and use the AP cluster to obtain multiple RSSI samples of a single AN. The proposed target RSSI estimation method is based on a limited number of RSSI samples, and the optimal RSSI estimation is beneficial to improve the target localization accuracy.
- (2)
- A method is proposed to transform the RSSI-based localization problem into an eigenvalue problem, which can well solve the nonconvex problem and obtain the global optimal solution with great accuracy and low computational complexity.
The rest of the paper is organized as follows: In Section 2, the problem studied in this paper is described. Theoretical analysis on utilizing multiple APs for establishing an AN is presented in Section 3. The method presented in Section 4 is used to estimate the optimal RSSI of a target using samples from AP cluster measurements. In Section 5, a way to transform the MLE problem into an eigenvalue problem is described. The proposed APCL method is summarized in Section 6. The Cramer–Rao lower bound (CRLB) of the localization method which utilizes the AP cluster to form the AN is analyzed in Section 7. The computational complexity of the APCL method is analyzed in Section 8. Several simulations and experimental results are discussed in Section 9 and Section 10, respectively. Finally, some conclusions are given for the paper in Section 11. Key notations are given in Table 1.
Table 1.
List of Key Notations.
2. Problem Statement
We consider a target in a WSN comprising N ANs, where each AN is composed of a cluster of K APs located in close proximity to each other, as depicted in Figure 1. The location of the nth AN within the WSN is known and represented by position vector . On the other hand, position vector indicates the unknown position of the target. Consequently, we can express the distance between the target and the nth AN as
where is the Frobenius norm. It is evident that the localization system depicted in Figure 1 conforms to a conventional WSN localization system when .
Figure 1.
Schematic diagram of AP clusters measuring target RSSI.
Performance discrepancies among APs in a WSN can be rectified through device calibration during the initial setup, thereby ensuring uniform performance across all APs within the network. The received RSSI of a target detected by the kth AP in the nth AN is denoted as . Based on the log-normal model for RSSI measurements [24], can be mathematically expressed as
where represents the RSSI of the target, which is measured by the AP at a distance of 1 m in an ideal environment. The symbol denotes the path loss exponent in the localization environment. Additionally, signifies the shadow fading term for the kth AP in the nth AN. Significantly, these shadow fading terms at different APs are commonly modeled as independent and identically distributed Gaussian random variables with zero mean and variance [17,18,19,20].
For the nth AN, the K APs within it are capable of obtaining K RSSI measurements from the target, which collectively form the set of RSSI samples measured by this AN:
Using the samples in , an appropriate method can be employed to obtain the optimal estimate of the target RSSI for the nth AN. By substituting into Equation (2), it is possible to estimate the distance between the nth AN and the target
Based on the optimal estimates of the target RSSI for N ANs, the likelihood function regarding the target location can be derived from the model presented in Equation (2):
By utilizing Equations (4) and (5), it can be further simplified as
According to Equation (1), it can be inferred that is a function of . Therefore, the maximization of the likelihood function presented in Equation (6) is equivalent to the minimization the cost function with respect to :
For the purpose of enhancing the subsequent cost function minimization, we opt for over due to its superior convenience. Evidently, the target location estimation can be achieved by efficiently minimizing :
As observed from the aforementioned analysis, there are three issues that need to be addressed in order to acquire the location estimate of the target: first, constructing an AP cluster in which multiple APs function collectively as a unified AN; second, determining the optimal RSSI estimate of the target based on ; finally, minimizing the cost function to obtain the maximum likelihood estimate of the target location.
3. Establishing an AN with Multiple APs
The K APs comprising an AN are assumed to be positioned in a circular arrangement with a radius of R, centered at the location of AN, as shown in Figure 2. In the graph, the position vector of the kth AP is , and represents the distance between the target and the kth AP. It can be seen from the geometric relationship in the graph that for any two and , there exists
Figure 2.
Schematic diagram of the formation of an AP cluster in AN.
The equality in Equation (9) holds when the k1th and k2th APs are positioned on the straight line connecting AN and the target, with separate circles on both sides of AN. The current layout of the two APs is evidently the worst. Assuming , the RSSI from both APs satisfies . Disregarding noise, Equation (2) can be utilized to derive this relationship:
The measurement accuracy of RSSI by AP in practical is typically 1 dBm. Therefore, the two APs are considered to belong to the same AN when the difference between the theoretical measurements of and is less than 1 dBm. Hence,
It can be obtained from Equation (11) that
The value of the maximum radius of the smallest circle surrounding the AP cluster is evidently influenced by both distance between the target and AN and environmental parameter . The constraint on the radius of the AP cluster is relatively relaxed for targets located at a distance. The layout of WSN in indoor positioning applications typically exceeds 10 m, and the distance between the target and the sensor is seldom less than 1 m. Hence, in Equation (12) may have a value of 1 m. The value range of environmental parameter was analyzed and provided in [25]. Under the condition of natural logarithm, . Consequently, Equation (12) yields cm.
The antennas of the multiple APs that constitute the AP cluster should be strategically positioned in a circular arrangement with a radius not exceeding . The center of the circle corresponds to the AN position.
4. Estimating the Optimal RSSI of a Target
According to the log-normal model presented in Equation (2), there exists an approximate logarithmic relationship between the RSSI measurement error and the ranging error, resulting in a wider range of variation in the ranging errors compared to RSSI measurement errors. To enhance target localization accuracy, the primary task is to improve the precision of RSSI used for ranging by preprocessing AN-measured RSSI samples to obtain the optimal RSSI estimate of target [26].
Since the shadow fading term, which is responsible for RSSI fluctuations, follows a zero-mean Gaussian distribution, the optimal estimate of the target RSSI for the nth AN can be obtained by the following equation:
Then, the solution of Equation (13) is the sample mean of :
Obviously, the accuracy of is closely related to K. When K reaches a certain threshold, highly accurate results for can be yielded from Equation (14). However, due to cost considerations, typically only two or three APs are deployed by a single AN at a time. In such cases, the use of sample mean as can lead to significant error, and it thus necessitates the development of a new method for determining .
Replacing in Equation (4) with the sample in yields the corresponding distance estimate . It is evident that a more reliable estimate can be obtained by utilizing a larger resulting in a smaller . Therefore, employing the distance estimates to define weights
where represents the estimated distance obtained by substituting in Equation (4) with the sample mean . By incorporating the weights illustrated in Equations (15), Equations (14) can be adjusted as
where is utilized for weight normalization, representing the cumulative sum of weights assigned to all APs within the nth AN, denoted as .
5. Revising the MLE for Determining the Location of the Target
Performing a first-order Taylor expansion of in the cost function at yields
Substituting Equation (17) and Equation (1) into Equation (7), we obtain the following expression:
It can be observed that cost function is a weighted aggregation of the error functions of the ANs where serves as the weight factor. The process of weight normalization is executed:
where is utilized for weight normalization. Subsequently, the cost function can be updated as
Minimizing is equivalent to determining that yields a first-order derivative of equal to zero, thereby solving the following equation:
Assuming , represents the weighted location vector of N AN’s coordinates. Relocating the coordinate origin to yields
Therefore, we have . By substituting Equation (22) into Equation (21), we obtain
Consequently, we have
where
and
where is the second-order identity matrix.
From Equation (25), it is evident that holds, thus enabling the possibility of performing an eigenvalue decomposition on :
where is a diagonal matrix composed of the eigenvalues obtained from , is a unitary matrix consisting of the eigenvectors derived from . Considering and , we can deduce and accordingly. By substituting , , and Equation (27) into Equation (24), followed by pre-multiplying with , we obtain
By further performing the Hadamard product of Equation (28) with , we obtain
where ⊙ denotes the Hadamard product operation, and denotes the transformation of a column vector into a diagonal matrix. Therefore, we obtain
where 1 denotes a two-dimensional column vector consisting of all elements equal to one.
By integrating Equations (28)–(30), a matrix is formulated:
where , and is a 5 × 5 matrix that can be represented as
where is a matrix of size , consisting entirely of zero elements, is the eigenvector of , and corresponds to the eigenvalue associated with . As per Equation (30), we can infer that equals the sum of the first two elements in .
The eigenvalue decomposition of yields
where is a diagonal matrix composed of , which represent the eigenvalues of , is the matrix consisting of , which are the corresponding eigenvectors of and are normalized. However, since the sum of the first two elements in each row of does not equal to , it cannot be directly used to extract . Therefore, scaling with and adjusting for the sum of its first two elements is necessary before extracting the third and fourth elements as an estimate for :
where . Based on this, it is possible to derive an estimate of the potential target location:
With varying , distinct can be obtained and subsequently substituted into Equation (20) to compute the values of the cost function . The that minimizes is then selected as the estimate for the target location.
6. APCL Method
As mentioned above, the APCL method proposed in this paper comprises two relatively independent components: one aims to achieve the optimal RSSI estimation of the target by utilizing the RSSI measurements obtained from each AP in the AN, and the other focuses on solving the maximum likelihood estimate of the target location within the WSN.
The algorithm for estimating the optimal RSSI from an AN to a target is known as the relative distance weighting (RDW) algorithm, which is summarized in Algorithm Section 6. For the nth AN, the RDW algorithm first uses all the RSSI samples measured by this AN and the sample mean to calculate the corresponding distance estimates and based on the log-normal model. Then, weights are assigned to each sample according to their respective distances. Finally, the optimal estimate of target RSSI is obtained by normalizing the weighted sum of all RSSI samples, as demonstrated in Equation (16). By traversing all ANs, we can obtain .
| Algorithm 1 Relative distance weighting for estimating the optimal RSSI of the target. |
| Input: and , parameters of the log-normal model, and , a set of RSSI samples measured by each AN |
| Output: , a set of optimal estimates of the target RSSI for each AN |
| 1: for do |
| 2: Calculate the sample mean and its corresponding distance estimate for the n-th AN; |
| 3: Refine the distance estimates for samples in the nth AN; |
| 4: The weights corresponding to all APs within the nth AN can be obtained by substituting and into Equation (15); |
| 5: Calculate the sum of to obtain ; |
| 6: Substitute , and into Equation (16) to obtain the optimal estimate of the target RSSI for the nth AN. |
| 7: end for |
| 8: return |
After obtaining the optimal RSSI estimate of the target for each AN, an eigenvector-based target localization (ETL) algorithm is proposed in this paper to obtain the maximum likelihood estimate of the target location. The algorithm is summarized in Algorithm Section 6. The first two steps of the ETL algorithm constitute the initialization phase. According to , the distance estimates between each AN and the target can be calculated in order to obtain the normalized weights for each AN. Steps 3 to 8 represent the second phase of the ETL algorithm, with its main objective being the construction of data matrix . To simplify the process of minimizing cost function as depicted in Equation (20), a weighted location vector is employed. By translating the coordinate system, we transform the problem of minimizing into that shown in Equation (24). Subsequently, we perform variable substitution on Equation (24) using to obtain Equation (28). Based on Equations (28), Equation (31) is constructed using the Hadamard product. The data matrix is constructed with the eigenvalues matrix and the vector as in Equation (32). The final phase of the ETL algorithm involves obtaining the corresponding eigenvalue matrix and the eigenvector matrix through the eigenvalue decomposition of . Each pair of eigenvalue and eigenvector can be used to derive a potential target location estimate . The that minimizes is selected as the estimated target location .
| Algorithm 2 Eigenvector-based target localization algorithm. |
| Input: and , parameters of the log-normal model, , a set of location vectors for each AN, and , a set of optimal target RSSI estimates for each AN |
| Output: , the maximum likelihood estimate of the target location |
| Initialization |
| 1: Substitute into Equation (4) to calculate the estimated distance between each AN and the target; |
| 2: Sum to obtain w, and then calculate the normalized weights for all ANs from Equation (19); |
| Constructing the data matrix |
| 3: Calculate the weighted location vector of N ANs; |
| 4: Based on vector , the new location vector of each AN can be obtained from Equation (22) after translating the coordinate system; |
| 5: Construct the matrix and the vector according to Equations (25) and (26), respectively; |
| 6: Perform the eigenvalue decomposition of matrix to obtain the diagonal matrix consisting of its eigenvalues and the unitary matrix composed of its eigenvectors; |
| 7: Transform the vector to the vector by using ; |
| 8: Substitute and into Equation (32) to construct the data matrix ; |
| Estimation of target location using eigenvalues |
| 9: Perform the eigenvalue decomposition of to obtain the diagonal matrix consisting of the eigenvalues and the matrix composed of the corresponding eigenvectors ; |
| 10: Apply Equation (34) to scale using , and then use Equation (35) to calculate the estimated potential location of the target, denoted as ; |
| 11: By substituting into Equation (20) to calculating the cost function , the that minimizes is utilized as the estimate for the target location, denoted by . |
| 12: return |
Hence, the APCL method initially employs the RDW algorithm to estimate the optimal RSSIs of the target for all ANs based on the set of RSSI samples . Subsequently, it utilizes the ETL algorithm to derive the maximum likelihood estimate of the target location by integrating the location vector information of multiple ANs.
The source codes are available for download from: https://blog.csdn.net/weixin_42428226/article/details/132175267?spm=1001.2014.3001.5501 (accessed on 9 August 2023).
7. Analysis of Cramer–Rao Lower Bound
For a WSN comprising N ANs, each containing K APs, based on the log-normal model presented in Equation (2), the likelihood function for estimating the target location is
where S is the amalgamation of the RSSI sample sets obtained from each AN, i.e., .
To facilitate the subsequent derivation of the CRLB, it is necessary to define
Obviously, represents a standard Gaussian random variable, and the independence of holds for different n and k. If denotes the log-likelihood function, then
The element of the Fisher matrix in the i-h row and the jth column is
where denotes the mathematical operation of calculating the expected value, , and . Then, we have
where is a constant. The second derivative of with respect to x is
The second term on the right side of Equation (42) represents a weighted sum of zero mean Gaussian random variables, thereby making it a zero mean Gaussian random variable as well. Hence,
Similarly, we can acquire
By combining Equations (43)–(45), we can establish the relationship , which links the elements of to :
Generally, the deviation is used to characterize the localization error in the WSNs, encompassing errors in both x and y directions. Therefore, the CRLB of the localization system can be determined:
As depicted in Equation (47), the CRLB of the localization system exhibits an inverse proportionality to the arithmetic square root of the number of APs within each AN. In other words, as K increases, the CRLB decreases accordingly. Therefore, leveraging AP clusters can effectively enhance the localization performance of the system.
8. Complexity Analysis
In addition to localization accuracy, the computational complexity should also be considered as the performance of localization methods. The increase in computational complexity not only results in higher energy consumption, but also leads to longer time consumption for localization, which subsequently affects the accuracy of tracking and localizing moving targets. In the following, we analyze the asymptotic complexity of the APCL method in its worst-case scenario. As the APCL method is composed of both RDW and ETL algorithms, their computational complexities can be calculated separately to obtain that of the entire APCL method.
The operations in the algorithm can be categorized into two groups: numerical and matrix operations. Numerical operations encompass addition, subtraction, multiplication, division, exponentiation, and comparison, while matrix operations involve matrix multiplication, inversion, eigenvalue decomposition, assignment and scalar multiplication. The computational complexity of the numerical operations is evidently . denotes a dimensional matrix. If and hold, then the multiplication of and exhibits a computational complexity of . In case holds, either inversion or eigenvalue decomposition for demonstrates a computational complexity of , while assignment or scalar multiplication of has a computational complexity of .
In the RDW algorithm, it can be found that each of the N ANs involved in localization performs operations from Step 2 to Step 6, as depicted in Algorithm Section 6. The operations executed at each step of the RDW algorithm and their corresponding complexities are presented in Table 2, the sum of the complexities of Steps 2 to 6 is . Considering that all N ANs need to perform these operations, the computational complexity of the RDW algorithm is .
Table 2.
Operations and complexities associated with the RDW algorithm.
The ETL algorithm, in contrast to the RDW algorithm, incorporates not only numerical operations but also matrix operations. The specific operations executed at each step of the ETL algorithm and their corresponding complexities are presented in Table 3. In summary, the complexity of the ETL algorithm is .
Table 3.
Operations and complexities associated with the ETL algorithm.
Therefore, the computational complexity of the RDW algorithm and the ETL algorithm combined is . To analyze the growth trend of the computational complexity of the APCL method on K and N, we consider only the highest-order term and ignore its constant coefficient, resulting in an asymptotic computational complexity of for the APCL method.
9. Simulation Results
9.1. Simulation Setup
In this section, the performance of the APCL method is evaluated through Monte Carlo simulation experiments, utilizing MATLAB R2018b. It is assumed that the RSSI measured by each AP follows the log-normal model, represented by Equation (2). In this model, parameter is a constant determined by the performance of both transmitting and receiving devices in the system. Typically, this parameter is estimated by fitting a logarithmic curve to actual measured values, such as the reference value of dBm mentioned in [24]. It should be noted that is measured prior to conducting experiments and not during online experimentation. Therefore, for simulation purposes, it may be appropriate to set dBm. The path loss exponent, denoted as , is assigned based on obstructed scenarios in [25]. represents the standard deviation of the shadow fading term and serves as a variable due to its relation to the fluctuation degree of RSSI. The range of is considered from 1 dBm to 6 dBm. The simulation includes multiple ANs, each consisting of a cluster of K APs. As mentioned in Section 3, these APs are distributed in a circular pattern centered around the AN, with a maximum radius of . By substituting into Equation (12), we can determine that is equal to 4.16 cm.
As the APCL method comprises a cascade of RDW and ETL algorithms, each algorithm is analyzed separately. Whether for estimating the target RSSI or localizing the target, the corresponding estimation accuracy is dependent on the location of the target in the scene. The performance of the algorithm cannot be described by its performance at a single location alone; it must be evaluated using estimation results from a sufficient number of points in the scene. Therefore, the total root mean square error (TRMSE) is defined as
where is the number of distinct experimental locations for the target in the simulation scene, and denotes the RMSE obtained at each location. Therefore, TRMSE can serve as a reliable metric to assess algorithmic performance in estimating the entire scene.
9.2. Comparison of RSSI Estimation Algorithms for Target
To assess the accuracy of the RDW algorithm in estimating the RSSI of the target, a comparative analysis was conducted with conventional algorithms, including mean filter [14], Kalman filter [15], and Gaussian filter [16]. The value of was set to 6 dBm in order to represent a more severe fluctuation in RSSI. The location vector of AN is , and the K APs constituting AN were distributed in a circular pattern centered around with a radius of 4 cm. The target was deployed at intervals of 1 m within a distance range of 1 m to 30 m from this AN location on the x-axis. To estimate the target RSSI for ranging, 1000 Monte Carlo experiments were conducted at each deployment location. The RMSE of ranging was calculated for each location. By combining the RMSE values obtained from all 30 deployment locations using Equation (48), the TRMSE was determined. The curves in Figure 3 illustrate the variation of TRMSE across different values of K for various RSSI estimation algorithms.
Figure 3.
RSSI-based ranging error trend of different RSSI estimation algorithms with K.
As depicted in Figure 3, at , all algorithms exhibit equivalent TRMSEs since they degrade to RSSI estimation using a single sample. At , the TRMSEs of all algorithms decrease with an increase in K, with exceptional performance observed for the RDW algorithm and the mean filter. Specifically, the RDW algorithm outperforms the mean filter for a small sample size (i.e., or 3). As the number of samples increases, the mean filter gradually demonstrates its advantages while exhibiting performance comparable to that of the RDW algorithm. The analysis of Figure 3 reveals that as K increases, the diminishing trend of TRMSEs for different algorithms gradually attenuates, indicating a reduced impact of K on enhancing ranging accuracy. Considering limitations in cost and space, it is advisable to opt for or 3.
9.3. Evaluation of Localization Algorithms
To assess the efficacy of the ETL algorithm and the APCL method, which comprises the ETL algorithm and the RDW algorithm, in estimating target location, they were compared with conventional localization algorithms including [17], SOCP1 [20], WLS [22], and SRLS [23]. Both the algorithm and the SOCP1 algorithm utilized the MATLAB package CVX with SeDuMi [27] as a solver to solve convex optimization problems.
The simulation localization scene is defined as a 20 m × 20 m area, with the lower left corner serving as the origin and arranging ANs at , , , and , respectively. Each AN is a cluster consisting of APs, and the K APs that make up AN are distributed in a circular pattern centered around the AN with a radius of 4 cm. In the simulation scenario, the target is deployed at intervals of 2 m × 2 m; then, the target can be deployed at most 121 different locations in the scenario, i.e., in Equation (48). The RMSE at each location is calculated by performing 50 Monte Carlo localization experiments, and the corresponding algorithm’s TRMSE is computed using Equation (48). Total Cramer–Rao lower-bound (TCRLB) can also be defined as
The trend of TRMSE for different localization algorithms with is illustrated in Figure 4.
Figure 4.
Localization error trend of different localization algorithms with .
As shown in Figure 4, the TRMSEs of various algorithms exhibit an upward trend with increasing standard deviation of shadow fading increases. In terms of the same , both the WLS algorithm and the SRLS algorithm demonstrate higher TRMSEs compared to other algorithms. Furthermore, as increases, there is a significant increase in the TRMSEs for both the WLS and SRLS algorithms. Obviously, the inclusion of additional error components resulting from the approximation of the MLE problem by both the WLS and SRLS algorithms leads to a reduction in target localization accuracy. At lower , the TRMSEs of the ETL, , and SOCP1 algorithms are nearly identical. However, as increases, there is an increasing divergence in TRMSEs among these three algorithms, with the SOCP1 algorithm exhibiting superior performance while the algorithm performs relatively worse. Therefore, the localization accuracy of the ETL algorithm is comparable to that of the convex relaxation method, disregarding the optimization of the target RSSI estimation. From Figure 4, it can be observed that the APCL method, which integrates the ETL algorithm with the RDW algorithm, exhibits superior localization accuracy. Since the APCL method yields a biased estimate of the target location, its TRMSE may be lower than the TCRLB when encountering higher-standard deviation of shadow fading . Similar findings have been documented in other studies, e.g., [13,17,20]. TCRLB represents the minimum achievable TRMSE for any unbiased estimator, while the APCL method exhibits a lower TRMSE than the TCRLB. This indicates that the target localization accuracy of the APCL method surpasses that of any unbiased estimator.
9.4. Comparison of Computational Complexity
The asymptotic computational complexity of the APCL method and several other typical target localization algorithms are presented in Table 4. It is evident that the WLS and SRLS algorithms exhibit significantly lower computational complexity compared to the and SOCP1 algorithms. Furthermore, the computational complexity of the APCL method is dependent not only on the number of ANs but also on the number of APs within an AP cluster. For the purpose of cost efficiency, the AP cluster typically consists of only 2 or 3 APs (i.e., or 3). In such cases, the computational complexity of the APCL method is comparable to that of WLS and SRLS algorithms.
Table 4.
Comparison of asymptotic computational complexity.
To provide a more intuitive comparison of the computational complexity among different algorithms, we calculate the trend of the average running time with respect to N for each algorithm. The localization scenario used in simulation remains a 20 m × 20 m area with the target located at , which is situated at the center of this area. Each AN utilized for localization comprises an AP cluster consisting of K APs, where . The simulation environmental parameters are configured to dBm, and dBm. To analyze the average running time for target localization with varying numbers of ANs, 50 random layouts are performed in the simulation area for a given N. Different algorithms with different AN layouts are utilized to localize the target, and the average running time of each algorithm is calculated as shown in Figure 5.
Figure 5.
Average running time vs. number of ANs on an intel core i5-8300 H 2.30 GHz processor manufactured by Intel (Santa Clara, CA, USA).
As shown in Figure 5, the average running time for individual localization of and SOCP1 algorithms exhibits a significantly higher value compared to other methods. When or 3, the average localization time for the APCL method is marginally lower than those of the WLS and SRLS algorithms. The mean localization durations of APCL, WLS and SRLS algorithms remain relatively stable as N increases without any substantial changes, consistently within the millisecond range. These algorithms exhibit a lower computational complexity and are better suited for localization of moving targets.
10. Experimental Results
10.1. Experimental Setup
To further assess the performance of the APCL method, we conduct localization experiments in a real indoor environment. The experiment utilizes the Wi-Fi probe as an AP and a personal computer as the target. The Wi-Fi probes used are the DS006S and DS006N models manufactured by Chengdu Data Sky Technology Co., Ltd. (Chengdu, China). Both DS006S and DS006N have identical functional parameters, with the only distinction being that DS006S has external antennas while DS006N has internal antennas. The personal computer employed is the Lenovo Legion Y7000 notebook manufactured by Lenovo (Beijing, China), with the Windows 10 operating system. The carrier frequency for communication between APs and target is 2.4 GHz. During the data measurement, the APs monitor probe request frames broadcasted by the target, extracting MAC address and RSSI from these frames. The collected data from each AP are transmitted to the system processing center using the TCP protocol and processed for localization. The APs measure RSSI and transmit the data to the system processing center at a frequency of 1 Hz.
The experimental scene is a room with dimensions of 11 m × 8.5 m × 3 m, where eight APs are deployed as depicted in Figure 6. Each pair of APs forms an AP cluster, constituting an AN, resulting in a total of four ANs. All APs are positioned on a 1.25 m high experimental table, and the target’s movement also takes place at a height of 1.25 m for the two-dimensional localization experiments. The RSSI samples of the target at various distances are premeasured within the scene, and the log-normal model parameters dBm and in the environment are obtained through curve fitting functions in MATLAB. According to Equation (12), cm can be obtained. In the subsequent experiment, we position each pair of APs comprising the AN in a circular pattern centered around the AN with a radius of 4 cm.
Figure 6.
Indoor measurements environment.
The position vectors of the four ANs are , , and respectively, while the position vectors of each AP are , , , , , , and . The floor plan of our experimental setting is depicted in Figure 7, where the target follows a dashed trajectory from Point 1 to Point 30. Its position is recorded at every interval of 0.5 m along the track. There are a total of 30 sample points on the track, and Points 1 through 7 fall within the enclosed area formed by four ANs, as illustrated in Figure 7. The target RSSI is measured 50 times at each sample point by each AP, resulting in a test set of 3000 RSSI samples.
Figure 7.
Floor plan of the experimental scene.
10.2. Localization Results
To mitigate the impact of stochastic factors, a total of 50 localizations was conducted according to the samples in the test set for each sample point on the trajectory depicted in Figure 7. The resulting localization outcomes were utilized to calculate the RMSEs at various locations, as illustrated in Figure 8. Considering the inadequate precision exhibited by both the WLS and SRLS algorithms, as indicated in Figure 4, only the and SOCP1 algorithms are employed in Figure 8 for comparative analysis with the APCL method.
Figure 8.
Localization error at different sample points of different localization algorithms.
As shown in Figure 8, the RMSEs of the APCL method and the SOCP1 algorithm are comparable for the first seven points. However, for subsequent points, the RMSE of the SOCP1 algorithm is significantly higher than that of APCL method, indicating that APCL’s localization accuracy is less affected by the AN layout. Furthermore, at all points, the APCL method outperforms the algorithm in terms of RMSE.
The results in Table 5 demonstrate that the APCL method outperforms the and SOCP1 algorithms in terms of TRMSE, with a significantly lower value. Additionally, the APCL method exhibits a much shorter average running time compared to both and SOCP1 algorithms.
Table 5.
TRMSE and running time of different algorithms on an intel core i5-8300 H 2.30 GHz processor manufactured by Intel (Santa Clara, CA, USA).
10.3. Localization Experiments Based on Public Datasets
The localization performance of the APCL method in more complex scenes is further examined through experiments conducted using the public dataset [28]. Figure 9 illustrates the scene plan schematic of the public dataset, which has a size of 21 m × 16 m. The scene consists of six ANs, and the target follows a dashed trajectory from Point 1 to Point 122. The AN in the public dataset is composed of individual AP, whereas in this paper, the AN is composed of K APs. As discussed in Section 3, it is evident that the K APs forming the AN can be considered equivalent to a single AP with K samples. Hence, if each K sample of the AN in the public dataset is treated as a singular measurement, it can be regarded as composed of K APs.
Figure 9.
Floor plan of the experimental scene for the public dataset.
The 122 sample points in Figure 9 were individually localized 25 times according to the public dataset, and subsequently, the RMSEs were computed for each point based on the localization results, as illustrated in Figure 10.
Figure 10.
Localization errors on public dataset.
The target is in close proximity to several ANs from Point 1 to Point 31, as depicted in Figure 10. Both the APCL method and the SOCP1 algorithm exhibit small RMSEs during this interval. From Point 31 to Point 61, the target initially approaches AN5 and then moves away from it, while also becoming more distant from other ANs. Consequently, the RMSEs of various methods show a decreasing trend followed by an increasing trend. The results from Point 61 to Point 93 exhibit a similar trend as those from Point 31 to Point 61. Moving from Point 93 to Point 122, the target gradually shifts towards an area with dense ANs, leading to a gradual decrease in the RMSEs of different methods. Across various locations, the APCL method consistently demonstrates lower RMSEs compared to the and SOCP1 algorithms. The TRMSEs of the APCL, , and SOCP1 are 3.9438 m, 5.4709 m, and 4.8937 m, respectively. Consequently, it can be concluded that the APCL method exhibits superior localization accuracy compared to the other two algorithms.
11. Conclusions
The APCL method proposed in this paper is a technique for achieving active target localization using a WSN constructed by the AP clusters. The APCL method comprises the RDW algorithm for estimating RSSI of the target, followed by the ETL algorithm for localization. The RDW algorithm utilizes target RSSI samples acquired from the AP cluster to estimate the optimal RSSI of the target. In scenarios with limited sample sizes, the RDW algorithm exhibits superior advantages and achieves significantly higher accuracy in estimating the target RSSI compared to mean filter, Kalman filter, and Gaussian filter. The ETL algorithm transforms the MLE problem into an eigenvalue problem by constructing the eigenvalue equation using the estimated RSSI of each AN. The approach enables fast and accurate estimation of the target position. The positioning accuracy of the ETL algorithm is comparable to that of convex relaxation method while surpassing WLS and SRLS algorithms. The APCL method, consisting of the RDW and ETL algorithms, exhibits superior positioning accuracy, minimal positioning time, and low computational complexity. In the actual indoor positioning scenarios, the APCL method demonstrates more stable performance. Consequently, when compared to classical localization algorithms, the APCL method demonstrates significantly superior performance in terms of both positioning accuracy and average positioning time. Its high precision and efficient localization make it particularly suitable for indoor mobile target tracking.
The proposed method effectively reduces the computational effort of localization and achieves high accuracy. However, it necessitates prior knowledge of the parameters in the log-normal model for the localization scene. Further research is warranted to explore how to extend this paper’s method to target localization when environmental parameters are unknown. In addition, the proposed method assumes that all APs within the AP cluster possess identical hardware parameters. However, further research is required to address device heterogeneity and enhance the applicability of this approach.
Author Contributions
Conceptualization, Z.S.; methodology, Z.S.; software, Z.T. and J.H.; validation, Z.S. and J.H.; formal analysis, Z.S. and Z.T.; investigation, Z.T. and J.H.; resources, Z.S.; data curation, Z.T.; writing—original draft preparation, Z.S. and Z.T.; writing—review and editing, Z.S. and J.H.; supervision, Z.S.; project administration, Z.S.; funding acquisition, Z.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Fundamental Research Funds for the Central Universities under Grant No. 3122017111.
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.
Abbreviations
The following abbreviations are used in this manuscript:
| RFID | Radio frequency identification |
| UWB | Ultra-wideband |
| LoRa | Long-range radio |
| BLE | Bluetooth low energy |
| TOA | Time of arrival |
| TDOA | Time difference of arrival |
| AOA | Angle of arrival |
| RSSI | Received signal strength indication |
| MLE | Maximum-likelihood estimation |
| APCL | Access point clusters localization |
| AP | Access point |
| WSN | Wireless sensor network |
| AN | Anchor node |
| SDP | Semidefinite programming |
| SOCP | Second-order cone programming |
| WLS | Weighted least squares |
| SRLS | Squared range least squares |
| RDW | Relative distance weighting |
| ETL | Eigenvector-based target localization |
| TCRLB | Total Cramer–Rao lower bound |
| TRMSE | Total root mean square error |
References
- Hayward, S.J.; van Lopik, K.; Hinde, C.; West, A.A. A Survey of Indoor Location Technologies, Techniques and Applications in Industry. Internet Things 2022, 20, 100608. [Google Scholar] [CrossRef]
- Farahsari, P.S.; Farahzadi, A.; Rezazadeh, J.; Bagheri, A. A Survey on Indoor Positioning Systems for IoT-Based Applications. IEEE Internet Things J. 2022, 9, 7680–7699. [Google Scholar] [CrossRef]
- 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]
- 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]
- Botta, M.; Simek, M. Adaptive Distance Estimation Based on RSSI in 802.15.4 Network. Radioengineering 2013, 22, 1162–1168. [Google Scholar]
- Polak, L.; Rozum, S.; Slanina, M.; Bravenec, T.; Fryza, T.; Pikrakis, A. Received Signal Strength Fingerprinting-Based Indoor Location Estimation Employing Machine Learning. Sensors 2021, 21, 4605. [Google Scholar] [CrossRef]
- Zhao, S.; Zhang, X.P.; Cui, X.; Lu, M. A New TOA Localization and Synchronization System with Virtually Synchronized Periodic Asymmetric Ranging Network. IEEE Internet Things J. 2021, 8, 9030–9044. [Google Scholar] [CrossRef]
- Zou, Y.; Liu, H. Semidefinite Programming Methods for Alleviating Clock Synchronization Bias and Sensor Position Errors in TDOA Localization. IEEE Signal Process Lett. 2020, 27, 241–245. [Google Scholar] [CrossRef]
- Chang, S.; Zheng, Y.; An, P.; Bao, J.; Li, J. 3-D RSS-AOA Based Target Localization Method in Wireless Sensor Networks Using Convex Relaxation. IEEE Access 2020, 8, 106901–106909. [Google Scholar] [CrossRef]
- Booranawong, A.; Sengchuai, K.; Buranapanichkit, D.; Jindapetch, N.; Saito, H. RSSI-Based Indoor Localization Using Multi-Lateration With Zone Selection and Virtual Position-Based Compensation Methods. IEEE Access 2021, 9, 46223–46239. [Google Scholar] [CrossRef]
- Liu, Y.; Han, G.; Wang, Y.; Xue, Z.; Chen, J.; Liu, C. Received Signal Strength-Based Wireless Source Localization With In-accurate Anchor Positions. IEEE Sens. J. 2022, 22, 23539–23551. [Google Scholar] [CrossRef]
- Mukhopadhyay, B.; Srirangarajan, S.; Kar, S. Invex Relaxation Based Cooperative Localization Using RSS Measurements. IEEE Trans. Commun. 2022, 70, 5482–5497. [Google Scholar] [CrossRef]
- Najarro, L.A.C.; Song, I.; Kim, K. Differential Evolution With Opposition and Redirection for Source Localization Using RSS Measurements in Wireless Sensor Networks. IEEE Trans. Autom. Sci. Eng. 2020, 17, 1736–1747. [Google Scholar] [CrossRef]
- Booranawong, A.; Sengchuai, K.; Jindapetch, N. Implementation and test of an RSSI-based indoor target localization system: Human movement effects on the accuracy. Measurement 2019, 133, 370–382. [Google Scholar] [CrossRef]
- Zhang, K.; Zhang, Y.; Wan, S. Research of RSSI indoor ranging algorithm based on Gaussian-Kalman linear filtering. In Proceedings of the 2016 IEEE Advanced Information Management, Communicates, Electronic and Automation Control Conference (IMCEC), Xi’an, China, 3–5 October 2016; pp. 1628–1632. [Google Scholar]
- Dong, Z.Y.; Xu, W.M.; Zhuang, H. Research on ZigBee indoor technology positioning based on RSSI. Procedia Comput. Sci. 2019, 154, 424–429. [Google Scholar] [CrossRef]
- Ouyang, R.W.; Wong, A.K.S.; Lea, C.T. Received Signal Strength-Based Wireless Localization via Semidefinite Programming: Noncooperative and Cooperative Schemes. IEEE Trans. Veh. Technol. 2010, 59, 1307–1318. [Google Scholar] [CrossRef]
- Biswas, P.; Liang, T.C.; Toh, K.C.; Ye, Y.; Wang, T.C. Semidefinite Programming Approaches for Sensor Network Localization with Noisy Distance Measurements. IEEE Trans. Autom. Sci. Eng. 2006, 3, 360–371. [Google Scholar] [CrossRef]
- Vaghefi, R.M.; Gholami, M.R.; Buehrer, R.M.; Strom, E.G. Cooperative Received Signal Strength-Based Sensor Localization with Unknown Transmit Powers. IEEE Trans. Signal Process. 2012, 61, 1389–1403. [Google Scholar] [CrossRef]
- Tomic, S.; Beko, M.; Dinis, R. RSS-Based Localization in Wireless Sensor Networks Using Convex Relaxation: Noncooperative and Cooperative Schemes. IEEE Trans. Veh. Technol. 2014, 64, 2037–2050. [Google Scholar] [CrossRef]
- Chang, S.; Li, Y.; Wang, H.; Hu, W.; Wu, Y. RSS-Based Cooperative Localization in Wireless Sensor Networks via Second-Order Cone Relaxation. IEEE Access 2018, 6, 54097–54105. [Google Scholar] [CrossRef]
- Wang, G.; Yang, K. A New Approach to Sensor Node Localization Using RSS Measurements in Wireless Sensor Networks. IEEE Trans. Wirel. Commun. 2011, 10, 1389–1395. [Google Scholar] [CrossRef]
- Beck, A.; Stoica, P.; Li, J. Exact and Approximate Solutions of Source Localization Problems. IEEE Trans. Signal Process. 2008, 56, 1770–1778. [Google Scholar] [CrossRef]
- Miao, Q.; Huang, B.; Jia, B. Estimating distances via received signal strength and connectivity in wireless sensor networks. Wireless. Netw. 2020, 26, 971–982. [Google Scholar] [CrossRef]
- Dharmadhikari, V.; Pusalkar, N.; Ghare, P. Path Loss Exponent Estimation for Wireless Sensor Node Positioning: Practical Approach. In Proceedings of the 2018 IEEE International Conference on Advanced Networks and Telecommunications Systems (ANTS), Indore, India, 16–19 December 2018; pp. 1–4. [Google Scholar]
- Huang, C.H.; Lee, L.H.; Ho, C.C.; Wu, L.L.; Lai, Z.H. Real-Time RFID Indoor Positioning System Based on Kalman-Filter Drift Removal and Heron-Bilateration Location Estimation. IEEE Trans. Instrum. Meas. 2015, 64, 728–739. [Google Scholar] [CrossRef]
- Addendum to the SeDuMi User Guide Version 1.1. Available online: http://sedumi.ie.lehigh.edu/?page_id=58 (accessed on 23 March 2023).
- 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. 2019, 6, 10639–10651. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 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 (https://creativecommons.org/licenses/by/4.0/).