# Neighborhood Kalman Estimation for Distributed Localization in Wireless Sensor Networks

Authors: Xiaochu Wang; Ting Sun; Chunshi Fan
Journal: Mathematical Problems in Engineering
 (2016)

---

## Abstract

Accurate location information plays an important role in the performance of wireless sensor networks since many mission applications depend on it. This paper proposes a fully distributed localization algorithm based on the concept of data fusion, allowing the full intranodes information including the correlations among estimates to take part in the algorithm. By properly constructing and updating the estimates as well as the corresponding covariance matrices, the algorithm can fuse intranodes information to generate more accurate estimates on the sensor locations with a fast speed. Finally, numerical simulations are given as examples to demonstrate the effectiveness of the algorithm.


---

## Body

## 1. Introduction

Wireless sensor networks (WSNs) have attracted considerable attention since large numbers of simple sensor nodes working cooperatively can achieve much more complex tasks, such as environmental monitoring, target tracking, and synthetic aperture. With recent advances in the rapid development of small-sized and low-cost smart sensor nodes, large-scale deployed WSNs have become viable and promising.Sensor node localization is crucial in most of the above-mentioned cooperative tasks, because the location information plays an important role in the coordinated performance. Generally, localization techniques can be classified into centralized approaches and distributed approaches, and the latter approaches are believed to be more efficient and flexible in large-scale networks. Although the existing algorithms can give solutions to the localization problem, there is still a great potential to research more on it.In this paper, we depend on the perspective of data fusion and propose a distributed localization algorithm, namely, the constructed neighborhood Kalman filter (CNKF). It is a fully distributed algorithm where each sensor node only cooperates with its neighboring sensor nodes to get the localization with noisy distance measurements. The algorithm is easily implementable for large-scale networks and can make full use of the intranetwork information.The rest of this paper is organized as follows. Preliminaries are given in Section2. Related works are reviewed in Section 3. The CNKF algorithm is proposed in detail in Section 4. Simulations are given and discussed in Section 5. Finally, conclusions are remarked in Section 6.


## 2. Preliminaries

### 2.1. The Kalman Filter

We will review in this section the principal equations for the extended Kalman filter in order to introduce the necessary notation for the following sections. The Kalman filter is a real-time estimation algorithm, which can estimate the “state” (state means the variable desired to be estimated) by predicting and correcting it at discrete moments.The main preconditions of the Kalman filter are twofold. Firstly, the change of the state should be predictable. That is, an equation describing how the state is changing with time is necessary. Such an equation is named “state equation.” Secondly, the measurement and the state should be quantitatively related. That is, a functional equation between the measurement and the state is desired. Such an equation is named “measurement equation.”At each moment, the summary of procedure of the Kalman filter is known as follows. (a) State prediction, according to the state equation, predicts the theoretical value of the state based on the estimated value at the previous moment. (b) Measurement prediction, according to the measurement equation, predicts the theoretical value of the measurement based on the predicted value of the state. (c) Measurement observation is observing the actual value of the measurement. (d) State correction finds the difference between the predicted value and actual value of the measurement and compensates for the predicted value of the state. Since steps (b), (c), and (d) as a whole can refine the predicted value of the state, they can also be called “state filtering.”The formulas of the Kalman filter are reviewed as follows, acting as a basic framework. These formulas were proposed under strict derivation, which can be found in [1] and hence detailed derivation is omitted in this paper.Without loss of generality, assume that the state equation may be written as(1)Xk=Φk/k-1Xk-1+Γk/k-1Wk-1.Similarly, assume that the measurement equation may be written as(2)Z~k=hXk+Vk,where t=k is the time stamp to distinguish variables at different moments, Φ and Γ are state-transition matrices, and X is the state vector. W and V (the process noise and measurement noise, resp.) are Gaussian white-noise processes whose mean and covariance function are given by(3)EW=0,EV=0,EWWT=Q,EVVT=R,where symbol E denotes the expectation and T matrix transpose, respectively.Assume that the initial guesses of the mean and covariance of the state vector at timet=0 are given by(4)EX0≡X^0,EX0-X^0X0-X^0T≡P0.After being initialized, the Kalman filter will enter the iterative procedure.State Prediction. At each moment k, the state at time t=k can be predicted based on the estimated state at time t=k-1 according to (1). The predicted state can be obtained as(5)X^k/k-1=Φk/k-1X^k-1,Pk/k-1=Φk/k-1Pk-1Φk/k-1T+Γk/k-1Qk-1Γk/k-1T.State Filtering. Once the state has been predicted, the theoretical measurement at time t=k can be predicted according to (2)(6)Z^k/k-1=hX^k/k-1and the minimum variance estimate of the state immediately following the measurement is given by(7)X^k=X^k/k-1+KkZ~k-Z^k/k-1,where the Kalman gain matrix is given by(8)Kk=Pk/k-1HkTHkPk/k-1HkT+Rk-1and the measurement sensitivity matrix is given by(9)Hk=∂hX∂XX^k/k-1.It is worthwhile to note that (7) is the optimal way to correct the predicted state, so that the estimated state can achieve the minimum variance. Following the estimated state, the covariance matrix of the estimate is given by(10)Pk=I-KkHkPk/k-1I-KkHkT+KkRkKkT.The above is the formulaic framework of the Kalman filter. One may also see some more literature for closer understanding on how it works in many applications (see, e.g., [2, 3]).


### 2.2. The Covariance Intersection Fusion

The necessity and principal equations of the fusion of correlated estimates will be reviewed in this subsection.When following the Kalman filtering scheme, the estimates to be fused must satisfy the assumption that they are independent. However, in many conditions where estimates are highly correlated but the degree of the correlation is not known exactly, applying the Kalman filter might lead to overconfidence in the accuracy of the fused estimate and result in divergent iterations. In this case, the covariance intersection algorithm is suitable for providing a conservative confidence fusion for these correlated estimates [4].Given two estimatesX^a,Pa and X^b,Pb, the covariance intersection algorithm can be summarized as(11)Pc-1=ωPa-1+1-ωPb-1,Pc-1X^c=ωPa-1X^a+1-ωPb-1X^b,where ω∈0,1 is the weight. The weight can be further optimized with respect to different performance criteria such as minimising the trace or the determinant of Pc.


### 2.3. Definitions

In this paper, all the sensor nodes in the network being studied are assumed to be equipped with the same wireless communication modules and computation modules. Sensor nodes are divided into two types, the ordinary nodes and the anchor nodes.Definition 1 (ordinary nodes).
The ordinary nodes refer to the sensor nodes that do not know their locations. We denote byO the set of the ordinary nodes in the network.Definition 2 (anchor nodes).
The anchor nodes refer to the sensor nodes that are aware of their locations with respect to a given coordinate frame. We denote byA the set of the ordinary nodes in the network.Definition 3 (neighbors).
If two sensor nodes can communicate with each other in short distances, they are called neighbors. It is assumed that the distance information between a pair of neighbors can be measured. If the actual distance between nodesi and j is dij, then the distance measurement is given by(12)d~ij=dij+ɛij,where ɛij is the measurement noise (see, e.g., [5]) following ɛij~N0,σɛij2 and σɛij is influenced by the distance and the noise ratio Y, simulated by(13)σɛij=dij∗Y100.Problem Statement. Suppose that there exists a static WSN consisting of n ordinary nodes and m anchor nodes, and the neighboring distance measurements among the nodes are available but noisy. After giving an initial guess on the localization as the starting condition, the problem is how to achieve a much better localization fast and accurately.


## 2.1. The Kalman Filter

We will review in this section the principal equations for the extended Kalman filter in order to introduce the necessary notation for the following sections. The Kalman filter is a real-time estimation algorithm, which can estimate the “state” (state means the variable desired to be estimated) by predicting and correcting it at discrete moments.The main preconditions of the Kalman filter are twofold. Firstly, the change of the state should be predictable. That is, an equation describing how the state is changing with time is necessary. Such an equation is named “state equation.” Secondly, the measurement and the state should be quantitatively related. That is, a functional equation between the measurement and the state is desired. Such an equation is named “measurement equation.”At each moment, the summary of procedure of the Kalman filter is known as follows. (a) State prediction, according to the state equation, predicts the theoretical value of the state based on the estimated value at the previous moment. (b) Measurement prediction, according to the measurement equation, predicts the theoretical value of the measurement based on the predicted value of the state. (c) Measurement observation is observing the actual value of the measurement. (d) State correction finds the difference between the predicted value and actual value of the measurement and compensates for the predicted value of the state. Since steps (b), (c), and (d) as a whole can refine the predicted value of the state, they can also be called “state filtering.”The formulas of the Kalman filter are reviewed as follows, acting as a basic framework. These formulas were proposed under strict derivation, which can be found in [1] and hence detailed derivation is omitted in this paper.Without loss of generality, assume that the state equation may be written as(1)Xk=Φk/k-1Xk-1+Γk/k-1Wk-1.Similarly, assume that the measurement equation may be written as(2)Z~k=hXk+Vk,where t=k is the time stamp to distinguish variables at different moments, Φ and Γ are state-transition matrices, and X is the state vector. W and V (the process noise and measurement noise, resp.) are Gaussian white-noise processes whose mean and covariance function are given by(3)EW=0,EV=0,EWWT=Q,EVVT=R,where symbol E denotes the expectation and T matrix transpose, respectively.Assume that the initial guesses of the mean and covariance of the state vector at timet=0 are given by(4)EX0≡X^0,EX0-X^0X0-X^0T≡P0.After being initialized, the Kalman filter will enter the iterative procedure.State Prediction. At each moment k, the state at time t=k can be predicted based on the estimated state at time t=k-1 according to (1). The predicted state can be obtained as(5)X^k/k-1=Φk/k-1X^k-1,Pk/k-1=Φk/k-1Pk-1Φk/k-1T+Γk/k-1Qk-1Γk/k-1T.State Filtering. Once the state has been predicted, the theoretical measurement at time t=k can be predicted according to (2)(6)Z^k/k-1=hX^k/k-1and the minimum variance estimate of the state immediately following the measurement is given by(7)X^k=X^k/k-1+KkZ~k-Z^k/k-1,where the Kalman gain matrix is given by(8)Kk=Pk/k-1HkTHkPk/k-1HkT+Rk-1and the measurement sensitivity matrix is given by(9)Hk=∂hX∂XX^k/k-1.It is worthwhile to note that (7) is the optimal way to correct the predicted state, so that the estimated state can achieve the minimum variance. Following the estimated state, the covariance matrix of the estimate is given by(10)Pk=I-KkHkPk/k-1I-KkHkT+KkRkKkT.The above is the formulaic framework of the Kalman filter. One may also see some more literature for closer understanding on how it works in many applications (see, e.g., [2, 3]).


## 2.2. The Covariance Intersection Fusion

The necessity and principal equations of the fusion of correlated estimates will be reviewed in this subsection.When following the Kalman filtering scheme, the estimates to be fused must satisfy the assumption that they are independent. However, in many conditions where estimates are highly correlated but the degree of the correlation is not known exactly, applying the Kalman filter might lead to overconfidence in the accuracy of the fused estimate and result in divergent iterations. In this case, the covariance intersection algorithm is suitable for providing a conservative confidence fusion for these correlated estimates [4].Given two estimatesX^a,Pa and X^b,Pb, the covariance intersection algorithm can be summarized as(11)Pc-1=ωPa-1+1-ωPb-1,Pc-1X^c=ωPa-1X^a+1-ωPb-1X^b,where ω∈0,1 is the weight. The weight can be further optimized with respect to different performance criteria such as minimising the trace or the determinant of Pc.


## 2.3. Definitions

In this paper, all the sensor nodes in the network being studied are assumed to be equipped with the same wireless communication modules and computation modules. Sensor nodes are divided into two types, the ordinary nodes and the anchor nodes.Definition 1 (ordinary nodes).
The ordinary nodes refer to the sensor nodes that do not know their locations. We denote byO the set of the ordinary nodes in the network.Definition 2 (anchor nodes).
The anchor nodes refer to the sensor nodes that are aware of their locations with respect to a given coordinate frame. We denote byA the set of the ordinary nodes in the network.Definition 3 (neighbors).
If two sensor nodes can communicate with each other in short distances, they are called neighbors. It is assumed that the distance information between a pair of neighbors can be measured. If the actual distance between nodesi and j is dij, then the distance measurement is given by(12)d~ij=dij+ɛij,where ɛij is the measurement noise (see, e.g., [5]) following ɛij~N0,σɛij2 and σɛij is influenced by the distance and the noise ratio Y, simulated by(13)σɛij=dij∗Y100.Problem Statement. Suppose that there exists a static WSN consisting of n ordinary nodes and m anchor nodes, and the neighboring distance measurements among the nodes are available but noisy. After giving an initial guess on the localization as the starting condition, the problem is how to achieve a much better localization fast and accurately.


## 3. Related Works

General overviews of localization approaches for WSNs can be found in lots of literatures (see, e.g., [6–10]). Localization approaches can be simply classified into the centralized type and the distributed type, and the latter is widely believed to be more efficient than the former for large-scale networks because communication with only the neighboring sensor nodes is much easier than with all the sensor nodes in the network [11]. In distributed approaches, incremental algorithms and concurrent algorithms are two fundamental thoughts. Incremental algorithms determine the location information node by node increasingly. That is, in each moment, the incremental algorithms start with three (or more) neighboring anchor nodes to solve the location information of a fourth node that is located inside the overlapped area, and then the fourth node will serve as a new anchor node in the next moment as soon as it knows its location (see, e.g., [12–14]). The main drawback of the incremental algorithms is that errors may accumulate and increase as the propagation spreading [8, 15]. Some assistant strategies can be adopted in order to improve the localization accuracy of the incremental algorithms, such as using more stable anchor nodes [16] and utilizing the local geometrical constraint [17]. Unlike incremental algorithms, concurrent algorithms determine the location information of all the sensor nodes simultaneously, where all the sensor nodes behave indistinctively and update the location information in parallel without interference, and then the global localization result of the whole network will be achieved asymptotically by neighboring cooperation as the time goes on (see, e.g., [15, 18–20]). Among concurrent algorithms, the mass-spring relaxation is the most popular algorithm, which treats location estimates and distance measurements as masses and springs, respectively, in an imaginary mass-spring system. By relaxing the masses and letting them move under spring forces, the final location estimates will be gotten when the system achieves the equilibrium [15]. There are also some algorithms considering the statistical characteristics such as [21–23] from which it can be seen that the location estimates can be further refined by statistical approaches under certain conditions such as linear assumptions and a priori knowledge. Recently, a so-called distributed Kalman filter has been studied (see, e.g., [24, 25]), which focuses on the problem of overlapping estimation. Overlapping estimation means that different separate objects are interested in an overlapped common state and estimate on it cooperatively. The distributed Kalman filter requires all the objects (i.e., sensor nodes) to be able to observe the overlapped common state, and therefore, it cannot be applied in the localization problem. Nevertheless, the thought of the distributed Kalman filter brings much inspiration to researchers.


## 4. Constructed Neighborhood Kalman Filter

We will propose the constructed neighborhood Kalman filter for distributed localization in this section. Overall speaking, the main idea of the CNKF can be summarized into four points. (a) Construct a proper form of the state containing not only the ego’s location but also the neighbors’ locations. By doing this, the states of any two neighboring ordinary nodes would contain an overlapped part, and this provides each ordinary node with the feasibility of cooperating with the neighbors. (b) Use the static nature of static sensor networks well. Note that the state constructed by each ordinary node contains the neighbors’ locations, so the state would be very hard to predict if the neighbors were able to move. Fortunately, the nodes in static sensor networks are known to be static, or in other words, the change of the state should be zero. Therefore, the state equation (14) is suitable for predicting the state. (c) Use the Kalman filter to locally refine the state, and use the covariance intersection algorithm to cooperatively refine the overlapped part of the state. (d) Reconstruct the state by neighboring cooperation properly, and reconstruct the covariance approximately satisfying both the positive definiteness (in order to guarantee the consecutive iterations) and the near-minimum variance (in order to achieve the optimal estimation). In detail, the procedures and formulas of the CNKF are shown as follows.State Establishment. For each sensor node i, all its neighbors can be categorized into two disjoint lists, which are the list of ordinary neighbors Ni and the list of anchor neighbors Mi, respectively. The total numbers of the ordinary neighbors and the anchor neighbors are denoted by lNi and lMi (lengths of the two lists). For convenience, refer to kth ordinary neighbor and kth anchor neighbor as Nik and Mik for sensor node i, with k∈1,lNi, k∈1,lMi. Denote the actual location of sensor node i by ri, and then the state Xi is established by the location vectors of both node i and all its neighbors(14)Xi=riT,rNi1T,…,rNilNiTTwhose dimension is 2∗(1+lNi). Write the estimated location vector of the sensor node j which is estimated by sensor node i as r^i↦j, and then the estimated state X^i can be written as(15)X^i=r^i→iT,r^i→Ni1T,…,r^i→NilNiTT.Denote the covariance of the state vector byPi and the subblock matrix covariance corresponding to r^j by Pij. It is clear that r^j by Pij is a main diagonal block of Pi(16)diag⁡Pii,PiNi1,…,PiNilNi≡diag⁡Pi.Because the sensor nodes being studied are static, the following differential equation is suitable for describing the change of the state(17)X˙i=0T,0T,…,0TT.State Prediction. By (17), the prediction of the state and covariance at time t=k can be given by(18)X^ik/k-1=X^ik-1,Pik/k-1=Pik-1+Qi.Local Filtering. At the time stamp t=k, the measurement vector is formed by all the neighboring distance measurements(19)Z~ik=d~iNi1,…,d~iNilNi,d~iMi1,…,d~iMilMiTwhose dimension is lNi+lMi.Similar to the Kalman filter, the local minimum variance estimate of the state immediately following the measurement can be obtained as(20)Xik-0.5=Xik/k-1+KikZ~ik-Z^ik/k-1.The covariance matrix associated with the local minimum variance estimate can be obtained as(21)Pik-0.5=I-KikHikPik/k-1I-KikHikT+KikRiKikT,where the Kalman gain matrix is given by(22)Kik=Pik/k-1HikHikPik/k-1HikT+Rik--1.Note that the relationship equation between the noise-free measurement and the state vector is(23)Zi=hiXi=ri-rNi1,…,ri-rNilNi,ri-rMi1,…,ri-rMilMi.Therefore, the measurement sensitivity matrix Hik in (21) and (22) can be determined as(24)Hik=∂hiXi∂XiXi=X^ik/k-1=r^i↦iT-r^i↦Ni1Tr^i↦i-r^i↦Ni1-r^i↦iT-r^i↦Ni1Tr^i↦i-r^i↦Ni1r^i↦iT-r^i↦Ni2Tr^i↦i-r^i↦Ni2-r^i↦iT-r^i↦Ni2Tr^i↦i-r^i↦Ni2⋮⋱r^i↦iT-r^i↦NilNiTr^i↦i-r^i↦NilNi-r^i↦iT-r^i↦NilNiTr^i↦i-r^i↦NilNir^i↦iT-r^i↦Mi1Tr^i↦i-r^i↦Mi1⋮r^i↦iT-r^i↦MilMiTr^i↦i-r^i↦MilMi.Neighborhood Block Fusion. In this stage, each ordinary node fuses the block of the estimated state with its neighbors. Without loss of generality, the average fusion is considered. The average weight is determined by the number of the neighbors, following(25)ωi=11+lNi.The ego’s location is fused following(26)r^i→ik,block=Piik,block∑j∈i∪NiωiPjik-0.5-1r^j→ik-0.5and the corresponding subblock covariance is fused following(27)Piik,block-1=∑j∈i∪NiωiPjik-0.5-1.State and Covariance Reconstruction. In this stage, each ordinary node reconstructs the state estimate and the covariance by combining the fused blocks. The reconstructed state is given by(28)X^ik=r^i→iTk,block,r^Ni1→Ni1Tk,block,…,r^NilNi→NilNiTk,blockTand the main diagonal block of the reconstructed covariance matrix is given by(29)Pijk=Pjjk,block.From the definition of the state, it is easy to see that the nondiagonal block of the state covariance has little correlation with those of the neighbors. Therefore, the reconstructed covariance is approximately given by(30)Pik=diag⁡Piik,block,PNi1Ni1k,block,…,PNilNiNilNik,block.It is worthwhile to note that since all the diagonal blocks ofPik are determined by the intersection covariance algorithm they are approximately optimized. Because all the diagonal blocks of Pik are independent, the overall reconstructed covariance Pik is also the near-minimum. Furthermore, the positive definiteness of the reconstructed covariance matrix would guarantee the consecutive iterations of the CNKF.It is also worthwhile to note that the CNKF is sensitive to the initial guess of the state. The reason is twofold. Firstly, the distance measurement is not a linear projection of the location but a highly nonlinear and nonconvex one. So, the solution might fall into the ambiguous or wrong optimum if the start point is not “close” enough to the true value. Secondly, The CNKF uses the first-order approximation to model the nonlinear measurement as shown in (24). So, the iterations may be hard to converge if the error of initial guess is large. Fortunately, some works (see, e.g., [26]) that focus on finding a good initial guess of the localization can be helpful. Therefore, using other algorithms first to find a good initial guess and then using CNKF to achieve much more accurate localization should be the best.


## 5. Simulation Result

In the experiments, we run CNKF algorithm on the WSNs with random topologies by numerical simulations. In the simulations, one hundred ordinary nodes are placed randomly inside a 100 m by 100 m square area, and another four anchor nodes are placed at the four corners of the square, respectively. As an instantiation, Figure1 shows a distribution example of all the sensor nodes with the communication radius RC=25m. In the graph, red stars represent the anchor nodes, yellow circles represent the ordinary nodes, and the grey lines among nodes indicate the communication relationships.Figure 1
An instantiation of a wireless sensor network with a random topology. Red stars at the four corners represent the four anchor nodes, yellow circles inside the 100 m by 100 m square area represent the one hundred ordinary nodes, and grey lines indicate the communication relationships among nodes (RC=25m).As a contrast algorithm, a well-known algorithm AFL by [15] is borrowed. The reason of comparing with the AFL is twofold. Firstly, the AFL is known to be able to achieve a relatively high accuracy localization compared with many other algorithms. Secondly, the AFL is also a fully simultaneous distributed algorithm just like the CNKF, while many other algorithms are not fully distributed or simultaneous just as reviewed in Section 3.The principle updating equation of the AFL comes from the mass-spring relaxation model, which can be given by(31)r^ik=r^ik-1+∑j∈Ni∪Miα·n→ijk-1d^ijk-1-d~ijk,∀i∈O,where d^ij=r^i-r^j denotes the distance estimate between nodes i and j,  n→ij=-r^i-r^j/d^ij denotes the unit vector from node i to node j, and α is a convergence coefficient (usually small in order to guarantee the convergence) influencing the converging speed and accuracy.In the simulations, rough initial location estimates are given to all the ordinary sensors, whose errors are about 1 meter on each axis. Accordingly, the covariance matrices{Pi} are all initialized to the identity matrix. The distance measurements are corrupted by Gaussian noises as in (12), in which the noise ratio Y=3. The processing noise matrices {Qi} are set to diagonal matrices, whose diagonal elements are positive and very small, because the nodes in the network are static. The measurement noise matrices {Ri} are also constructed to the diagonal matrices, whose diagonal elements are σ^ɛij2∣j∈Ni∪Mi given by(32)σ^ɛij=d^ij∗Y100.Figure2 shows the overall performance of the CNKF, where the curves represent the estimate errors of all the ordinary nodes in both the x- and y-axes. It can be seen that the estimate errors decrease gradually with the increase of the iteration times, implying that CNKF is effective in reducing the errors and refining the location estimates. In order to show more detailed results, two metrics are borrowed as follows to evaluate the accuracy performance of localization algorithms.Figure 2
CNKF algorithm estimate errors of the one hundred ordinary nodes with different curves corresponding to different sensor nodes (RC=25m).Performance Metric 1 (mean localization error). The mean localization error (MLE) is used to indicate the individual localization error of all the ordinary nodes, given by(33)MLE=1n∑i=1nr^i↦i-ri.Performance Metric 2  (global energy ratio). The global energy ratio (GER) is used to indicate the structural error of the localization of the network, given by(34)GER=2nn-1∑1≤i<j≤nr^i↦i-r^j↦j-dijdij2.First of all, a common case is simulated to help see the improvement of the CNKF, and simulation conditions are set to be the same for both CNKF and AFL withRC=25m and α=0.03. Figures 3 and 4 show the comparison results of the estimate errors of the two algorithms (during the first 60 iterations). The metrics of MLE and GER both decrease more rapidly and more sharply by using the CNKF, implying that the CNKF can quickly achieve the convergence with high accuracy in this case.Figure 3
The mean localization errors for the CNKF and AFL algorithms (RC=25m).Figure 4
The global energy ratios for the CNKF and AFL algorithms (RC=25m).Furthermore, in order to see the steady-state performance of the CNKF, plenty more experiments under various cases are also simulated. We record the data after 2000 iterations as the steady-state results, and then we calculate the metrics of MLE and GER by averaging the data of the repeated experiments. Table1 shows the corresponding comparison results. It can be seen from Table 1 that both the metrics of the MLE and GER are enhanced by at least 57%, which means that the CNKF can achieve a much smaller estimate error in comparison with the AFL or, in other words, the localization accuracy of the CNKF is significantly high. The reason behind the result mainly lies in the full use of the intranodes information, which treats the estimate as a distribution instead of a simple point following the data-fusion perspective, so that it allows the correlated estimates to make a much better refinement after fusion. It is worthwhile to note that the performance of the CNKF is more insensitive to the average connectivity of the network, which is of benefit in the applications of flexible and large-scale networks.Table 1
Comparison results of accuracy for the CNKF and AFL algorithms.
Conditions
MLE (m)
GER (%)
R
C (m)
A
C
AFL
CNKF
Enhanced
AFL
CNKF
Enhanced
15
≈7
0.040
0.020
50%
0.15
0.05
67%
20
≈10
0.035
0.015
57%
0.15
0.05
67%
25
≈15
0.035
0.015
57%
0.15
0.05
67%
30
≈20
0.040
0.015
63%
0.20
0.05
75%
35
≈27
0.045
0.015
67%
0.25
0.05
80%
40
≈35
0.050
0.015
70%
0.25
0.05
80%
R
C: communication radius.
A
C: average connectivity.It is also necessary to point out that CNKF would probably diverge and fail to achieve the localization when the initial guess of the locations has a large deviation. So, in the experiments, we have assumed that a good guess (whose error is no more than 1 meter) is already available. As previously noted in Section4, some initial algorithms or practical means could be used to provide such an initial guess.


## 6. Conclusion

This paper deals with the localization problems of WSNs and proposes a fully distributed localization algorithm named CNKF. The CNKF is based on the concept of data fusion, allowing all the intranodes information to take part in the estimating process, and it has the capacity of estimating sensor locations in a fast speed and a high accuracy. The key points of the algorithm are fourfold. The first point is the constructing way to establish the appropriate form of the states, so that neighboring nodes can work under a collaborative mechanism. The second point is the use of the static nature of the network to predict the states. The third point is the filtering and fusing way to refine the estimated states both locally and cooperatively. The fourth point is the reconstructing way to update the states and the corresponding covariance matrices, so that the optima and consecution of the iterative estimation can be guaranteed. Finally, in order to validate the algorithm, a series of experiments including the comparison are performed by the simulations. The results show that the proposed algorithm is effective and suitable for the wireless sensor networks.



---

*Source: 2510903-2016-02-11.xml*