Next Article in Journal
Video Detection Method Based on Temporal and Spatial Foundations for Accurate Verification of Authenticity
Previous Article in Journal
Developing Different Test Conditions to Verify the Robustness and Versatility of Robotic Arms Controlled by Evolutionary Algorithms
Previous Article in Special Issue
Optimizing the Timeliness of Hybrid OFDMA-NOMA Sensor Networks with Stability Constraints
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Accurate Cooperative Localization Algorithm Based on RSS Model and Error Correction in Wireless Sensor Networks

1
Faculty of Electronic Engineering, Huaiyin Institute of Technology, Huaian 223003, China
2
Faculty of Automation, Huaiyin Institute of Technology, Huaian 223003, China
*
Author to whom correspondence should be addressed.
Electronics 2024, 13(11), 2131; https://doi.org/10.3390/electronics13112131
Submission received: 27 April 2024 / Revised: 21 May 2024 / Accepted: 28 May 2024 / Published: 30 May 2024
(This article belongs to the Special Issue Featured Advances in Real-Time Networks)

Abstract

:
Aiming at the problem that there is a big contradiction between accuracy and calculation and cost based on the RSSI positioning algorithm, an accurate and effective cooperative positioning algorithm is proposed in combination with error correction and refinement measures in each stage of positioning. At the ranging stage, the RSSI measurement value is converted to distance by wireless channel modeling and the dynamic acquisition of the power attenuation factor. Then, the ranging correction is carried out by using the known anchor node ranging error information. The Taylor series expansion least-square iterative refinement algorithm is implemented in the position optimization stage, and satisfactory positioning accuracy is obtained. The idea of cooperative positioning is introduced to upgrade the nodes that meet the requirements and are upgraded to anchor nodes and participate in the positioning of other nodes to improve the positioning coverage and positioning accuracy. The experimental results show that the localization effect of this algorithm is close to that of the Taylor series expansion algorithm based on coordinates but far higher than that of the basic least-squares localization algorithm. The positioning accuracy can be improved rapidly with the decrease in the distance measurement error.

1. Introduction

A wireless sensor network (WSN) is an advanced information data processing platform, which relies on the sensor nodes to realize the data acquisition, processing, and wireless transmission in the monitoring area and can complete complex, large-scale monitoring and target tracking and other tasks [1,2,3,4]. The location information of sensor nodes is the first condition to realize the above tasks, so location research is one of the important fields in wireless sensor network applications [5,6]. As a part of the Internet of Vehicles technology, the node positioning technology provides more advanced functions and services for the vehicles. For example, through the communication between vehicles, vehicles can share status information, such as position and driving speed in real time, so as to judge the road traffic flow, realize collaborative driving between vehicles, and avoid collision. Vehicle manufacturers may offer optional schemes to vehicles that support Internet of Vehicles and node location technology as a higher level of options. Many scholars have carried out a lot of research on the key technologies of the Internet of Vehicles [7,8,9].
The location algorithm can be divided into range-based and range-free according to ranging or not ranging [10,11]. According to the topology information of sensor nodes such as network structure and connectivity, the range-free location algorithm estimates the absolute coordinate or relative coordinate of node position, which is coarse granularity location, and the error is often large. The range-based location algorithm obtains node-position information based on the distance or angle measurement between nodes that is generally more accurate. Generally, four ranging techniques belong to the category of range-based algorithms, such as Time of Arrival (TOA) [12,13], Time Difference of Arrival (TDOA) [14,15], Angle-of-Arrival (AOA) [16,17], and Received Signal Strength Indication (RSSI) [18,19,20], but TOA/TDOA and AOA need additional measuring equipment, and higher cost and communication overhead.
According to the numerical relationship between the power attenuation and propagation distance of the wireless signal, RSSI can realize low-cost ranging without adding measuring equipment based on wireless channel modeling. Because the RSSI ranging is greatly affected by wireless signal propagation, especially in the indoor environments, nonlinear modeling and parameter estimation must be carried out [21]. However, when more information is known, the measurement redundancy reduces the position error, and the satisfactory positioning effect can be obtained by combining multiple measurements and cyclic tracking [22].

2. Related Work

Wireless propagation modeling and parameter estimation are the basis of RSSI ranging. Since most localization algorithms based on RSSI tend to ignore the inherent uncertainty of network topology, and the location information of anchor nodes is usually assumed to be precisely known, for the problems caused by the above two cases, the solution has been given in [23]. The algorithm in [23] is based on the SPEAR localization framework and simultaneously estimates the location of the source node and the uncertain anchor node; using the Cramer–Rao information inequality, the source localization performance is improved from the basic lower limit of the SPEAR, thus providing a more reliable anchor node location estimation.
In [24], the authors first explained the principle of positioning using AOA, TDOA, and RSSI and then used the beacon nodes and arrival distance for sensor positioning. The simulation results showed that the system obtains a lower average estimation error when using RSSI localization. In [25], the authors analyzed and evaluated the RSSI-based ranging and adaptive techniques in outdoor WSN to improve the ranging quality. The authors highlighted the impact of the path loss index estimation error and temperature variation on RSSI-based ranging and proposed an RSSI-based adaptive ranging algorithm to improve the ranging quality under changing outdoor conditions. This algorithm includes link RSSI estimation, temperature compensation, PLE estimation, and inter-node distance estimation.
The disadvantage of the Bayesian estimation method is the existence of a large communication and computational overhead, and particle filtering (PF) technology often has problems of particle degradation and dilution [26], leading to the degradation of the WSN node-positioning performance, and it is even difficult to implement the positioning. The non-Bayes estimation method treats the position coordinates of unknown nodes as determined unknown parameters and then uses methods such as the least squares (LS) estimation [27] and maximum likelihood (ML) estimation [28] to obtain the localization solution.
In order to improve the positioning accuracy, many scholars have studied the cooperative positioning algorithm in recent years. Cooperative technology usually refers when nodes in the network that can realize communication pass messages or exchange information; implement distributional calculation, communicate, and storage operations; coordinate processing; and complete tasks such as event monitoring. Using cooperative ideas and technologies in WSN positioning is cooperative positioning. The information source of the positioning estimation data can not only come from the ranging between the unknown node and the anchor node, but also from the observation information between the anchor nodes and the ranging between the unknown nodes; therefore, the redundant data obtained can be used to optimize the positioning solution.
The algorithm in [29] studied the least squares (LS) cooperative positioning problem under arbitrary non-line-of-sight (NLOS) ranging deviation and proposed the network position error bound (PEB). Based on the Cramer–Rao lower limit (CRLB), quantified LS and distance square LS, by obtaining the positioning accuracy deviation of square distance weighted least squares (WLS), the authors proposed a simple LS distributed algorithm, which combined squared distance relaxation with Gaussian differential information to implement cooperative localization. The algorithm in [30] proposed a hybrid co-location scheme based on distance and angle measurement; that is, by modifying the linear least squares (LLS) hybrid scheme based on TOA-AOA and AOA-RSS, the authors proposed an optimized LLS estimate scheme. The simulation results showed that this algorithm is superior to the non-cooperative algorithm and iterative nonlinear least-squares algorithm based on the mixed signal.
On the basis of the RSS distance measurement, Katwe et al. [31] and Z. F. Wang et al. [19] proposed an estimation algorithm based on semi-definite planning and achieved a good positioning effect. Using RSS ranging technology, Zhou et al. [32] proposed a synchronous localization and tracking algorithm, made a detailed analysis of the error propagation of localization and tracking, and proved that the algorithm has a good estimation effect. In [32], by using TOA and RSS ranging, the authors accurately located targets under non-line-of-sight (NLOS) environments. In this algorithm, the author started from the general approximation of the maximum likelihood (ML) estimation problem, established the nonlinear weighted least squares (NLWLS) using the equilibrium parameters, and then used the semidefinite relaxation (SDR) technique to solve the NLWLS problem and verified that the proposed method significantly outperforms the existing methods. Although the above algorithms of model parameter estimation and location algorithm based on the RSS ranging improve the positioning accuracy and achieve the specific results, the communication cost and technical complexity of the algorithm are high, which is not easy to be implemented in large-scale low-power WSN positioning applications.
In this paper, aiming at the key stage of positioning estimation, we deeply study the idea of RSSI ranging and the requirements of the positioning system and then obtain the distance between nodes via wireless propagation modeling and using the close relationship between RSSI measured value and the distance between nodes. Finally, we use the relative distance error of the anchor node to correct the ranging, use the optimal anchor nodes to participate in the coordinate estimation, and implement the position coordinate optimization. The algorithm proposed in this paper has low computational complexity, small storage space, and communication overhead. Moreover, it can give full play to the advantages of cooperative positioning, upgrade the located nodes that meet the error requirements to anchor nodes to participate in the positioning of other unknown nodes, and effectively improve the positioning accuracy.

3. Distance Estimation Techniques

3.1. Calculating the Distance between Nodes

Depending on wireless communication function, the sensor nodes in the network can be measured with RSSI when data are received without additional equipment. Because of the influence of channel attenuation on RSSI ranging accuracy when radio signal propagates, considering factors such as multipath and obstacle occlusion in the environment, we use lognormal modeling in this paper. Assuming that the value of RSSI is Pr(d), we have the following:
P r d = P t + G a P l d
where P t is the transmit power of node, G a is the antenna gain of node, and P l d is the signal emission power loss after the propagation distance of d. Since
P l d = P l d 0 + 10 n l g d d 0
we then have
P r d = P r d 0 10 n l g d d 0 + D σ
where d0 is the reference range, the general value is 1 m, P l d 0 is the power loss through the transmission distance of d0, n is the path damping factor, and P r d 0 is power strength of the received signal at d0 apart from the launch node. Dσ is the Gaussian random variable, the mean of which is zero.
The power loss Pl(d0) of the wireless signal after the transmission distance of d0 is:
P l d 0 = 10 l g G t G r λ 2 4 π 2 d 0 2 L
where Gt is the transmit antenna gain of a node, Gr is the receiving antenna gain, the unit of Gt and Gr is dBi, L is the damping coefficient of wireless propagation, and λ is the signal wavelength (unit: m). Then, we get
  P r d 0 = P t + G a P l d 0
Considering that the sensor nodes are deployed in the monitoring area randomly and uniformly, and the communication radius is the same, the communication range of the nodes can be roughly regarded as a circular region. By (3), if d0 is 1 m, we can obtain
P r d = P r 1 10 n l g d + D σ
Assuming that more nodes are deployed within the communication range of the sensor nodes, according to the relationship between d and Pr(d), we may consider the maximum value of the distance, d, corresponding to the minimum in the received signal strength, P r d . Then, we have the following:
P r m i n = P r 1 10 n l g d m a x + D σ
and we have
n = P r 1 P r m i n 10 l g d m a x
where dmax approximates the communication radius, r.
Among the multiple RSSI values obtained by unknown nodes, the smallest RSSI values are marked as   P r m i n , which corresponds to   d m a x = r , and then the value of d from unknown node to anchor node can be obtained. The search method of P r m i n is to put all the RSSI values received by the node to be located together with all the RSSI values received by its neighbor node, sort from large to small, and take the smallest RSSI value as P r m i n .

3.2. Measurement Distance Correction

Distance data between nodes are the basis of location calculation, and the ranging error can directly affect the positioning accuracy. The solution is to preprocess the distance value obtained by RSSI measurement and reduce the data errors. The usual preprocessing methods have algorithms such as multiple measurement loop correction and iterative refinement.
The steps of the cyclic correction algorithm are as follows: Firstly, the Euclidean distance between the anchor node and other anchor nodes in the communication range is calculated according to the coordinates of the anchor node, and then through wireless propagation modeling, the measurement distance is obtained by measuring the corresponding RSSI value. Finally, the difference between the measurement distance and the actual distance is the RSSI value measurement error. Therefore, to obtain the range value between the sensor node of an unknown location and its anchor node, we consider correcting this RSSI measurement error to overcome the unfavorable factors of the environment and improve the ranging accuracy.
Considering the two-dimensional conditions, an anchor node in a network is marked as N0 (x0, y0), the other anchor node in its communication range is marked as Nj (xj, yj), j = 1, 2, …, M, where M is the number of neighbor anchor nodes of N0. The actual distance from N0 (x0, y0) to Nj (xj, yj) is marked as rj, j = 1, 2, …, M. The distance obtained by RSSI measurement is marked as dj, j = 1, 2, …, M. Then, the relative error from RSSI ranging can be represented as follows:
μ j = r j d j d j
The relative error correction coefficient of weighted ranging for the anchor node, Nj (xj, yj), is recorded as follows:
μ w = j = 1 M r j d j d j 2 j = 1 M 1 d j  
μ w reflects the RSSI range error of the anchor node. The larger the distance between nodes, the larger the ranging error caused by RSSI measurement and the less the weight in the correction factor. The error correction distance based on the anchor node is represented as follows:
d u j c = d u j 1 + μ j
where d u j c is the correction distance between the anchor node, Nj, and the unknown position node; and duj is the measurement distance between the anchor node, Nj, and the unknown position node.

4. Distributed Collaborative Localization Algorithm

Distributed optimization collaborative localization usually includes two algorithm-implementation steps: node self-localization and information fusion collaboration. The process of information fusion collaborative positioning is based on the basis that observation information measurement between nodes has been implemented in each node in the network, and the unknown nodes that have realized the location receive the location information and observation information of the neighbor nodes, by fusion information and information interaction with the neighbor nodes, and then a certain collaborative location algorithm is implemented to obtain more accurate location information of the unknown nodes. The distributed optimization and collaborative localization process is shown in Figure 1.
According to the RSSI measurement distance from the unknown location node to its three neighbor anchor nodes, we use the triangulation method to calculate the position coordinates of the unknown node in the positioning process of the WSN node. Considering only from the spatial geometric position of the anchor node, the relevant research shows that there are two cases of positioning coordinate error. That is, the positioning coordinate error is the largest when the three anchor nodes are in the collinear state, while the positioning coordinate error is the smallest when the triangles surrounded by the three anchor nodes are equilateral triangles. Therefore, to improve the coordinate accuracy of unknown nodes, it is necessary to optimize the selection of anchor nodes.
Suppose there are m neighbor anchor nodes in a wireless network; then, the C m 3 combinations of anchor nodes are formed. The optimization method of the anchor node is as follows. Firstly, choose any of the C m 3 combinations of anchor nodes; calculate the radians of the three angles of the triangle formed by three anchor nodes; and then find the maximum and minimum values marked as, respectively, α m a x = m a x α A , α B , α C and α m i n = m i n α A , α B , α C , finally, limiting angle so that the triangle formed by the anchor node is close to the regular triangle.
α m a x < π 2 , α m i n > π 6

4.1. Location Estimate

The RSSI ranging algorithm shows that, the larger the RSSI value is, the closer the distance between nodes is. Similarly, the closer the distance from an unknown node to anchor node is, the higher the credibility of the RSSI value is. So, the smaller the ranging error is, the better the accuracy of the location algorithm based on range is. To reflect the contribution of different RSSI ranges, we consider weighting different RSSI values, that is, using a weighted ranging localization algorithm to implement position estimation.
Considering that there is an unknown node marked as U in the network, three anchor nodes, marked as N1, N2, and N3, respectively, suppose that the RSSI values of the node U to the three anchor nodes are marked as RSSI1, RSSI2, and RSSI3, in turn. Supposing s1, s2, and s3 are the measured distances from U to node N1, N2, and N3 obtained from wireless propagation signal model, respectively, a1, a2, and a3 are the weighted coefficients, a 1 = 1 / s 1 , a 2 = 1 / s 2 , and a 3 = 1 / s 3 , and let the coordinates of the unknown position monitoring node, U, is (x, y). Then, we have the following:
x = a 1 k x 1 + a 2 k x 2 + a 3 k x 3 a 1 k + a 2 k + a 3 k y = a 1 k y 1 + a 2 k y 2 + a 3 k y 3 a 1 k + a 2 k + a 3 k
where k is a weighted adjustment factor. During the implementation of the algorithm, the positioning parameters are adjusted experimentally for different application environments; changing the weighted factor, k, can adjust the positioning performance and improve the positioning accuracy. In addition, considering the angle information of the anchor node, the error can be further reduced. For each combination of the C n 3 combinations of anchor nodes, its confidence level is CABC(i), and we have the following:
C A B C i = 1 α m a x α m i n α A + α B + α C
where α A , α B , a n d α C are the three angles of the triangle formed by three anchor nodes, and then
α m a x = m a x α A , α B , α C   α m i n = m i n α A , α B , α C
If we consider the angle weighting of anchor nodes, the estimated coordinates x ^ , y ^ of the unknown node, U, are as follows:
x ^ = C A B C i x C A B C i y ^ = C A B C i y C A B C i
The correction coefficient, μ w , can improve the accuracy of anchor node RSSI ranging, but it is powerless to interfere with the random error in the environment during the positioning process. Therefore, we consider making full use of the known position information of the anchor node to correct the positioning error further. Firstly, we calculate the actual distance between anchor nodes by using the known coordinate position information of anchor nodes, and then we estimate the coordinates of anchor nodes using a positioning algorithm. The difference between the estimated coordinate and the actual coordinate is the coordinate error of the anchor node. In the positioning process, it can effectively suppress all kinds of cumulative errors and improve the positioning accuracy using the coordinate error of the anchor node to correct the unknown coordinate estimation value.
Through RSSI ranging, the anchor node, N 0 x 0 , y 0 , can estimate its position coordinate, N c 0 x c 0 , y c 0 , by the actual coordinate of its neighbor anchor node, N j x j , y j . The difference between the actual coordinates and estimated coordinates of anchor nodes is the coordinate error, and the coordinate error of the anchor node is marked as E e x 0 , e y 0 , where e x 0 = x 0 x c 0 , and e y 0 = y 0 y c 0 . Then, the normal form of the coordinate error of the jth anchor node is as follows:
e x j = x j x c j e y j = y i y c j
Thus, the weighted coordinate error for the positioning area is as follows:
e w x = j = 1 M e x j d j c j = 1 N 1 d j c   e w y = j = 1 M e y i d j c j = 1 N 1 d j c
where M represents the number of anchor nodes participating in the network positioning error calculation, and d j c represents the correction distance of the jth anchor node.
The weighted coordinate errors, e w x and e w y , are the weighted values of the anchor node coordinate error and reflect the regional positioning ability of the algorithm. Therefore, after error correction, the coordinates of the node to be positioned are marked as (x, y):
x = x e + e w x y = y e + e w y
where (xe, ye) are the coordinate values of the node to be positioned estimated by the localization algorithm.

4.2. Location Optimization

The purpose of position optimization is to further reduce the error of estimating coordinates, take the previously determined coordinate value as the initial value, and use the Taylor series least-squares method to optimize the position. Based on the RSSI ranging modeling, it is as follows:
d j = x x j 2 + y y j 2
Suppose that the initial coordinates of the target are A ( x 0 , y 0 ) and set function f x , y = d j . At point A ( x 0 , y 0 ) , the Taylor series expansion of Equation (23) is carried out, and the second-order and above components are ignored, so we have the following:
f x , y = f x 0 , y 0 + f x x 0 ,   y 0 x + f y x 0 ,   y 0 y
It can also be written as follows:
d ^ l = d ^ l 0 + a x x + a y y
where
d ^ l = x x j 2 + y y j 2   d ^ l 0 = x 0 x j 2 + y 0 y j 2   a x = f x x 0 , y 0 a y = f y x 0 , y 0
We consider the error, and Formula (22) can be abbreviated as follows:
b = H + v
where
b = d ^ 1 d ^ 10 , , d ^ N d ^ N 0 T H = x 0 x 1 d ^ 10 y 0 y 1 d ^ 10 x 0 x N d ^ N 0 y 0 y N d ^ N 0 = x y T
Using the weighted least-squares algorithm (WLS) for Formula (23), the estimates of Δ are as follows:
= H b
where H = H T W H 1 H T W is a Moore–Penrose pseudo-inverse, and W is the covariance matrix of measurement error. Then, the updated position parameter vectors are as follows:
θ k + 1 = θ k + ε

4.3. Implementation of Collaborative Positioning

By introducing the idea of cooperative positioning, making full use of various measurement information between network nodes to implement data fusion, the energy consumed by a single node is reduced by cooperative signal and information processing between sensors. Thus, as much measurement information is obtained as possible, and, finally, we improve the positioning accuracy and robustness. For the unknown nodes that are accurately located, if they meet certain conditions, they are upgraded to anchor nodes to participate in the subsequent positioning calculation. The upgraded node, regarded as an anchor node, is called a pseudo-anchor node. In addition, we should consider the requirements of anchor node positioning; that is, compared with the anchor node, the pseudo-anchor node has a relatively stable positioning capability in an RSSI ranging environment. According to Formulas (6)–(8), we calculate the path loss factor between the anchor node and the pseudo-anchor node in the communication range and take the mean value for these path loss factors. The mean value should be equivalent to the mean of the path loss factor between the other anchor node and the nearest anchor node in the communication range. Therefore, in addition to accurate positioning, the upgrade node must satisfy the following conditions:
1 K k = 1 K n U k 1 L l = 1 L n A l < n
where n U k is the path loss factor between K anchor nodes and the upgrade node, U, in the communication range of the upgrade node, U; n A l is the path loss factor between the nodes U and L and other anchor nodes within the nearest anchor node communication range from the node U; and n is the path loss factor threshold for node upgrading.

4.4. Algorithm Implementation

Based on the RSSI location, we list the proposed algorithm as follows:
(1)
For the RSSI ranging model, according to Formulas (1)–(8), perform ranging.
(2)
In the estimated ranging phase, according to Formulas (9)–(11), perform ranging correction.
(3)
According to Formula (12), perform anchor selection optimization.
(4)
In the ranging phase, according to Formulas (17)–(19), perform computing node coordinates.
(5)
According to Formulas (20)–(25), perform position iterative optimization.
(6)
The estimated location node of the satisfying Formula (26) is upgraded to an anchor node to participate in the subsequent node location calculation.

5. Simulation and Performance Evaluation

5.1. Simulation Model

We established a MATLAB 2020a simulation platform to verify and evaluate the positioning performance of this algorithm. The sensor nodes in the network are randomly distributed in a square region of 100 m × 100 m. The communication radius of the sensor nodes is 20 m, and other network parameters, such as the network size, the total number of nodes in the network, and the number of anchor nodes, are set according to the requirements of the experimental content. In order to effectively verify the performance of the algorithm, the same experimental content is realized after each reset of the network topology. Then, the average value of the results of 100 simulation experiments is used as the results.
We use root mean square error (RMSE) to evaluate the performance of the localization algorithm. The positioning error RSME can be expressed as follows:
R M S E = 1 M j = 1 M | | p j z j | | 2
where M is the number of nodes to be positioned in the sensor network; p j = p x j p y j T is the estimated position vector of the node j; and z j = z x j z y j T is the actual position vector of the node j. The smaller the value of RMSE is, the higher the accuracy of the positioning algorithm is. To compare the localization effect with other algorithms, we implement the least-squares localization algorithm using Taylor series expansion for the actual position and the common least-squares algorithm under the same experimental conditions.
In order to describe and study the relationship between the communication radius of sensor nodes, the number and density of reference nodes, and the accuracy of localization algorithms, the average positioning accuracy of network nodes was used in the localization experiment to comprehensively evaluate the algorithm performance. The average positioning accuracy of network nodes is denoted as E a :
E a = j = 1 M p j z j 2 M R
where R indicates the communication radius. From Equations (27) and (28), E a reflects the positioning accuracy and also reflects the relation to the communication radius. The smaller the value of E a is, the higher the positioning accuracy is.
The proposed algorithm in this paper is based on the RSSI model and error correction, which is called the proposed collaborative positioning algorithm (CLA) in order to compare the performance with other algorithms. The Taylor Series Expansion algorithm based on actual coordinates is simply called TSEA. In this section, we compare the proposed algorithm with the LS algorithm and TSEA algorithm. The LS algorithm is simple and intuitive, computationally efficient, and suitable for multiple scenarios, but it is sensitive to noise.

5.2. Relation between the Number of Anchor Nodes and the Positioning Accuracy

We set the total number of nodes in the network to 100; set the communication radius of nodes to 20 m; set the variance of ranging error σ 2 to 7; and set the number of anchor nodes to 5, 6, 7, 8, 9, 10, 11, and 12 in turn. The comparison of RMSE results obtained from the three algorithms is shown in Figure 2.
The smaller RMSE value indicates the higher localization accuracy. It can be seen from the changing trend of the above curves that the positioning accuracy of the three algorithms is increasing with the increase in the number of anchor nodes, which is because the increase in the number of anchor nodes increases the dimension of ranging observation value and more measurement redundancy information will improve positioning performance. It is shown in Figure 2 that the positioning precision of the proposed algorithm is close to that of TSEA algorithm and higher than that of LS algorithm at the same number of anchor nodes, and the positioning error decreases rapidly. It indicates that the proposed algorithm increases the number of valid anchor nodes after optimizing anchor nodes, and the positioning precision has been improved greatly.

5.3. Relation between Measurement Error and Algorithm Positioning Accuracy

The experiment environment is set up as follows: 100 nodes randomly are deployed in the network location area, including 20 anchor nodes; the communication radius of nodes is set to 20 m; and the variance of the ranging error, σ 2 , increases from 3 to 10. The comparison of the RMSE results obtained from the three algorithms are shown in Figure 3.
From the changing trend of the above positioning error curve, with the increase in σ 2 , the positioning error of the three algorithms increases. The curve shows that the ranging error has the greatest influence on LS algorithm; that is, with the increasing of σ 2 , the positioning error increases faster. Though the positioning error of the proposed algorithm also increases with   σ 2 , it is always lower than LS algorithm, so it is not very sensitive to the distance measurement error. The reason is that the proposed algorithm takes RSSI distance error correction measures in the ranging stage and reduces the measurement error, so the positioning accuracy is improved.

5.4. Relation between Distance-Measuring Error and Positioning Precision

Then, we study the relation between the distance-measuring error and the positioning precision of the algorithm when the number of anchor nodes is different. The total number of nodes in the network is still 100. The communication radius of nodes is set to 20 m; the variance of ranging error, σ 2 , increases from 3 to 10; and the number of anchor nodes is set to 6, 7, and 8, respectively. The results of RMSE obtained from the proposed algorithm are shown in Figure 4.
From the trend of three positioning error curves in Figure 4, we can see that, with the increase in the number of anchor nodes, the positioning error of the proposed algorithm decreases continuously, and the positioning effect is getting better. The reason is that the increase in the number of anchor nodes makes the information involved in positioning increase, and the result of the localization algorithm is closer to the actual value. As the variance of ranging error increases gradually in each curve, the positioning error of the proposed algorithm increases continuously. We can also see that the positioning error rises fastest when the number of anchor nodes is 6, and the positioning error rises slowly when the number of anchor nodes is 8. Therefore, the position information provided by anchor nodes is of great significance to improve the positioning accuracy; when conditions permit, increasing anchor nodes can improve positioning accuracy.

5.5. Relation between Node Communication Radius and Positioning Precision

Finally, we study the relationship between node communication radius and positioning accuracy. The total number of nodes in the network is still 100; the number of anchor nodes is 7; the variance of the ranging error is set to 6; and the node communication radius is set to 10 m, 15 m, 20 m, 25 m, 30 m, 35 m, and 40 m, respectively. The results of the RMSE of the three algorithms are shown in Figure 5.
From Figure 5, we can see that, with the increase in the communication radius of the nodes, the positioning error of the three algorithms decreases, which is due to the increase in the communication radius; the increase in the anchor nodes involved in the positioning promotes the improvement of the positioning precision. However, the precision of the LS algorithm improved slowly, the proposed algorithm was close to the TSEA algorithm, and the positioning precision improved rapidly, and the proposed algorithm is always better than the LS algorithm at the same communication radius. The reason is that the RSSI distance error correction is carried out to the proposed algorithm, the ranging error is reduced, and the anchor node selection measure is implemented; hence, the positioning precision is higher than that of LS algorithm.

6. Conclusions

The algorithm proposed in this paper adopts a feasible scheme and gives full play to the advantages of RSS ranging technology based on the analysis of the characteristics of each stage of the positioning process. The proposed algorithm uses the error correction method to suppress the accumulated error in the distance measurement process, obtains the ranging value with high accuracy, and obtains a better positioning effect. Through the simulation platform, we verified the effectiveness of the proposed algorithm, and compared with the LS algorithm, the proposed algorithm has a better localization effect. The core of the algorithm is to introduce cooperative positioning, that is, upgrading the located nodes to anchor nodes and participating in other unknown positioning processes, which not only improves the location coverage but also has a better adaptability to the positioning environment.
Since the TSEA algorithm is a least-squares algorithm after the Taylor series expansion of the actual position, its localization accuracy must be optimal. The experimental results showed that the localization performance of the proposed algorithm is close to that of the Taylor series expansion algorithm based on the actual coordinates and much higher than that of the basic LS localization algorithm when other conditions of the network remain unchanged. The essential reason for reducing the positioning error is that the optimal selection of anchor nodes is involved during the positioning process, and the node location is optimized by an iterative refinement positioning algorithm.
The next step will be to make the effective use of observation information to reduce the positioning calculation error, and the direct ranging between each node to participate in the cooperative positioning, so as to improve the positioning accuracy and robustness. The positioning algorithm in WSN is one of the important fields of wireless sensor network research. With the rapid development of the Internet of Things, the smart city, and industrial automation, higher requirements are put forward for the accuracy and reliability of the WSN positioning algorithm. The positioning algorithm in WSN is also a research field full of challenges and opportunities. In the future, we will further study the positioning algorithm from three aspects. Firstly, we will use advanced signal-processing technology, multi-source information fusion technology, and an optimization algorithm and other means to further study the high-precision positioning algorithm. Secondly, we will study the energy-saving positioning algorithm by optimizing the working mode of nodes, reducing the communication frequency, and adopting the measurement method of energy saving. Thirdly, we will study the distributed positioning algorithm to achieve efficient and accurate positioning through the collaboration and information sharing between nodes, the communication protocol between nodes, the data fusion strategy, and the optimization of positioning accuracy. In conclusion, in future research, we will need to continuously explore new technologies and methods to meet the needs of various application scenarios or solve some practical problems, such as hardware constraints, communication protocols, and scalability for large-scale networks, for example, LoRa, NB-IoT, etc.

Author Contributions

Conceptualization, methodology, software, and writing—original draft, B.C.; data curation, formal analysis, and investigation, X.Z.; writing—review and editing, and funding acquisition, H.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 62205120.

Data Availability Statement

Data is contained within the article.

Acknowledgments

We would like to thank the faculty of electronic engineering of Huaiyin institute of technology for providing us with the experimental site. We are also grateful to thank the lab teachers from the internet of things laboratory of Huaiyin Institute of technology for their help.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Isaiaand, C.; Michaelides, M.P. A Review of Wireless Positioning Techniques and Technologies: From Smart Sensors to 6G. Signals 2023, 4, 90–136. [Google Scholar]
  2. Maruthi, S.P.; Panigrahi, T. Robust mixed source localization in WSN using swarm intelligence algorithms. Digit. Signal Process. 2020, 98, 102651. [Google Scholar] [CrossRef]
  3. Cheng, S.; Wang, S.; Guan, W.; Xu, H.; Li, P. 3DLRA: An RFID 3D indoor localization method based on deep learning. Sensors 2020, 20, 2731. [Google Scholar] [CrossRef] [PubMed]
  4. Cheng, L.; Wang, Y.; Xue, M.; Bi, Y. An indoor robust localization algorithm based on data association technique. Sensors 2020, 20, 6598. [Google Scholar] [CrossRef] [PubMed]
  5. Ma, F.; Liu, Z.-M.; Yang, L.; Guo, F. Source localization in large-scale asynchronous sensor networks. Digit. Signal Process. 2021, 109, 102920. [Google Scholar] [CrossRef]
  6. Yaro, A.S.; Maly, F.; Prazak, P. A Survey of the Performance-Limiting Factors of a 2-Dimensional RSS Fingerprinting-Based Indoor Wireless Localization System. Sensors 2023, 23, 2545. [Google Scholar] [CrossRef] [PubMed]
  7. Wu, Q.; Shi, S.; Wan, Z.; Fan, Q.; Fan, P.; Zhang, C. Towards V2I Age-aware Fairness Access: A DQN Based Intelligent Vehicular Node Training and Test Method. Chin. J. Electron. 2023, 32, 1230–1244. [Google Scholar]
  8. Wu, Q.; Wang, S.; Ge, H.; Fan, P.; Fan, Q.; Letaief, K.B. Delay-sensitive Task Offloading in Vehicular Fog Computing-Assisted Platoons. IEEE Trans. Netw. Serv. Manag. 2024, 21, 2012–2026. [Google Scholar] [CrossRef]
  9. Wu, Q.; Wang, W.; Fan, P.; Fan, Q.; Wang, J.; Letaief, K.B. URLLC-Awared Resource Allocation for Heterogeneous Vehicular Edge Computing. IEEE Trans. Veh. Technol. 2024, 1–16. [Google Scholar] [CrossRef]
  10. Gui, L.; Yang, M.; Fang, P.; Yang, S. Rss-based indoor localization using multiplicative distance-correction factor. IET Wirel. Sens. Syst. 2017, 7, 98–104. [Google Scholar] [CrossRef]
  11. Yan, J.; Li, X.; Luo, X.; Gong, Y.; Guan, X. Joint localisation and tracking for autonomous underwater vehicle: A reinforcement learning-based approach. Control Theory Appl. IET 2019, 13, 2856–2865. [Google Scholar] [CrossRef]
  12. Zhang, H.; Qi, X.; Wei, Q.; Liu, L. TOA NLOS mitigation cooperative localization algorithm based on topological unit. IET Signal Process. 2021, 14, 765–773. [Google Scholar] [CrossRef]
  13. Xiong, W.; So, H.C. TOA-based localization with NLOS mitigation via robust multidimensional similarity analysis. IEEE Signal Process. Lett. 2019, 26, 1334–1338. [Google Scholar] [CrossRef]
  14. Bottigliero, S.; Milanesio, D.; Saccani, M.; Maggiora, R. A low-cost indoor real-time locating system based on TDOA estimation of UWB pulse sequences. IEEE Trans. Instrum. Meas. 2021, 70, 1–11. [Google Scholar] [CrossRef]
  15. Zou, Y.; Liu, H. TDOA localization with unknown signal propagation speed and sensor position errors. IEEE Commun. Lett. 2020, 24, 1024–1027. [Google Scholar] [CrossRef]
  16. Xu, S. Optimal sensor placement for target localization using hybrid RSS, AOA and TOA measurements. IEEE Commun. Lett. 2020, 24, 1966–1970. [Google Scholar] [CrossRef]
  17. Chang, S.M.; Li, Y.M.; Yang, X.J.; Wang, H.; Hu, W.F.; Wu, Y.Q. A Novel Localization Method Based on RSS-AOA Combined Measurements by Using Polarized Identity. IEEE Sens. J. 2019, 16, 1463–1470. [Google Scholar] [CrossRef]
  18. Kwon, Y.; Kwon, K. RSS Ranging based indoor localization in ultra-low power wireless network. AEU-Int. J. Electron. Commun. 2019, 104, 108–118. [Google Scholar] [CrossRef]
  19. Wang, Z.F.; Zhang, H.; Lu, T.T.; Gulliver, T.A. Cooperative RSS-Based Localization in Wireless Sensor Networks Using Relative Error Estimation and Semidefinite Programming. IEEE Trans. Veh. Technol. 2019, 68, 483–497. [Google Scholar] [CrossRef]
  20. Li, H.; Trocan, M.; Galayko, D. Virtual fingerprint and two-way ranging-based Bluetooth 3D indoor positioning with RSSI difference and distance ratio. J. Electromagn. Waves Appl. 2019, 33, 2155–2174. [Google Scholar] [CrossRef]
  21. Wang, W.; Liu, X.; Li, M.; Wang, Z.; Wang, C. Optimizing node localization in wireless sensor networks based on received signal strength indicator. IEEE Access 2019, 7, 73880–73889. [Google Scholar] [CrossRef]
  22. Wang, Z.; Liu, H.; Xu, S.; Bu, X.; An, J. Bayesian Device-Free Localization and Tracking in a Binary RF Sensor Network. Sensors 2017, 17, 969. [Google Scholar] [CrossRef] [PubMed]
  23. Liu, Y.; Guo, F.; Yang, L.; Jiang, W. An Improved Algebraic Solution for TDOA Localization with Sensor Position Errors. IEEE Commun. Lett. 2015, 19, 2218–2221. [Google Scholar] [CrossRef]
  24. Sathish, K.; Chinthaginjala, R.; Kim, W.; Rajesh, A.; Corchado, J.M.; Abbas, M. Underwater Wireless Sensor Networks with RSSI-Based Advanced Efficiency-Driven Localization and Unprecedented Accuracy. Sensors 2023, 23, 6973. [Google Scholar] [CrossRef] [PubMed]
  25. Luomala, J.; Hakala, I. Analysis and evaluation of adaptive rssi-based ranging in outdoor wireless sensor networks. Ad Hoc Netw. 2019, 87, 100–112. [Google Scholar] [CrossRef]
  26. Ullah, I.; Shen, Y.; Su, X.; Esposito, C.; Choi, C. A Localization Based on Unscented Kalman Filter and Particle Filter Localization Algorithms. IEEE Access 2020, 8, 2233–2246. [Google Scholar] [CrossRef]
  27. Aziz, M.A.E. Source localization using TDOA and FDOA measurements based on modified cuckoo search algorithm. Wirel. Netw. 2017, 23, 487–495. [Google Scholar] [CrossRef]
  28. Nguyen, H.D.; Wood, I.A. A Block Successive Lower-Bound Maximization Algorithm for the Maximum pseudo-likelihood estimation of fully visible Boltzmann Machines. Neural Comput. 2016, 28, 485–492. [Google Scholar] [CrossRef] [PubMed]
  29. Van Nguyen, T.; Jeong, Y.; Shin, H.; Win, M.Z. Least-Square Cooperative Localization. IEEE Trans. Veh. Technol. 2015, 64, 1318–1330. [Google Scholar] [CrossRef]
  30. Khan, M.W.; Salman, N.; Kemp, A.H. Optimised hybrid localisation with cooperation in wireless sensor networks. IET Signal Process. 2017, 11, 341–348. [Google Scholar] [CrossRef]
  31. Katwe, M.; Ghare, P.; Sharma, P.K.; Kothari, A. NLOS error mitigation in hybrid RSS-TOA-based localization through semi-definite relax-atio. IEEE Commun. Lett. 2020, 24, 2761–2765. [Google Scholar] [CrossRef]
  32. Zhou, B.; Chen, Q.; Xiao, P. The Error Propagation Analysis of the Received Signal Strength-Based Simultaneous Localization and Tracking in Wireless Sensor Networks. IEEE Trans. Inf. Theory 2017, 63, 3983–4007. [Google Scholar] [CrossRef]
Figure 1. The flowchart of distributed optimization cooperative positioning.
Figure 1. The flowchart of distributed optimization cooperative positioning.
Electronics 13 02131 g001
Figure 2. RMSE values of the three algorithms.
Figure 2. RMSE values of the three algorithms.
Electronics 13 02131 g002
Figure 3. Influence of σ 2 on the RMSE.
Figure 3. Influence of σ 2 on the RMSE.
Electronics 13 02131 g003
Figure 4. Influence of the number of anchor nodes on the RSME.
Figure 4. Influence of the number of anchor nodes on the RSME.
Electronics 13 02131 g004
Figure 5. Influence of communication radius on positioning accuracy.
Figure 5. Influence of communication radius on positioning accuracy.
Electronics 13 02131 g005
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.

Share and Cite

MDPI and ACS Style

Chang, B.; Zhang, X.; Bian, H. An Accurate Cooperative Localization Algorithm Based on RSS Model and Error Correction in Wireless Sensor Networks. Electronics 2024, 13, 2131. https://doi.org/10.3390/electronics13112131

AMA Style

Chang B, Zhang X, Bian H. An Accurate Cooperative Localization Algorithm Based on RSS Model and Error Correction in Wireless Sensor Networks. Electronics. 2024; 13(11):2131. https://doi.org/10.3390/electronics13112131

Chicago/Turabian Style

Chang, Bo, Xinrong Zhang, and Haiyi Bian. 2024. "An Accurate Cooperative Localization Algorithm Based on RSS Model and Error Correction in Wireless Sensor Networks" Electronics 13, no. 11: 2131. https://doi.org/10.3390/electronics13112131

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