 Research
 Open Access
 Published:
Localization based on twostage treatment for dealing with noisy and biased distance measurements
EURASIP Journal on Advances in Signal Processing volume 2012, Article number: 164 (2012)
Abstract
Localization can be performed by trilateration in which the coordinates of a target are calculated by using the coordinates of reference points and the distances between each reference point and the target. Because the distances are measured on the basis of the timeofflight of various kinds of signals, they contain errors which are the noise and bias. The presence of bias can become a major problem because its magnitude is generally unknown. In this article, we propose an algorithm that combines the Kalman filter (KF) and the least square (LS) algorithm to treat noisy and biased distances measured by chirp spread spectrum ranging defined in IEEE 802.15.4a. By using the KF, we remove the noise in the measured distance; hence, the noiseeliminated distance, which still contains bias, is obtained. The next step consists of the calculation of the target coordinates by using the weighted LS algorithm. This algorithm uses the noiseeliminated distance obtained by using the KF, and the weighting parameters of the algorithm are determined to reduce the effects of bias. To confirm the accuracy of the proposed algorithm, we present the results of indoor localization experiments.
Introduction
Trilateration is a method used to calculate the coordinates of a target[1]. For twodimensional localization, it requires at least three reference points whose coordinates are known in advance and involves the determination of the distance between the target and the individual reference points. Geometrically, there is only one point of intersection of all the circles whose radius and center coordinates are equal to the distances and the coordinates of the reference points, respectively. The coordinates of the intersection are those of the target.
In practice, since all the distances are mostly measured on the basis of the timeofflight of various kinds of signals, namely, laser, ultrasonic and electromagnetic signals, these are only approximately equal to the true distance.[2–5]. Furthermore, it is often the case that not all circles intersect with each other because of the errors in the measured distances. As a consequence, the least square (LS) algorithm and the extended Kalman filter (EKF) have been applied to the trilateration method[6–9].
In the vast majority of studies, it is assumed that errors in the measured distance are caused by zeromean white Gaussian noise. In this case, the LS algorithm and EKF gives the optimal solution[10]. However, in actual situations, the measured distances are not only corrupted by noise but also deteriorated by bias, which is caused by nonlineofsight and multiple paths of ranging signal[11]. When only zeromean noise is added to the measured distance, the expected value of the measured distance is equal to the true distance. On the other hand, when bias exists, the expected value will not be equal to the true distance. The combination of noise and bias can be regarded as nonzero mean noise with unknown mean value. Therefore, the bias can result in errors, even if the LS algorithm and EKF are used.
The use of the Kalman filter (KF) for the bias has been extensively studied[12, 13]. In these studies, the bias is regarded as additional states to be estimated and the augmented state vector is defined as the combination of the original states and the bias. The general KF estimates the augmented state vector[13]. The twostage KF, which consists of a biasfree and a bias filter, separately estimates the augmented state vector[13]. The estimates of the twostage KF is the same as those of the general KF, but the former has a numerical advantage[13]. Furthermore, a twostage EKF, which is a KF used for estimating the state vector of nonlinear state space (SS) equations, has been developed[14, 15].
However, the EKF cannot deal with the bias of the trilateration model due to the observability problem. When the SS equations which model the trilateration are unobservable, the estimated value does not converge to a meaningful solution due to lack of measurement information[16]. The observability of the equations can be investigated by using the Fisher information matrix[17, 18]. According to our study the equations are unobservable, and it means that most conventional approaches such as the EKF cannot accurately estimate all of the original states and the biases.
In this article, therefore, we propose an algorithm for treating both noise and bias in distances measured by chirp spread spectrum (CSS) ranging. The CSS is defined in IEEE 802.15.4a as an alternative physical layer, and we can measure distances by the CSS ranging[8, 9, 19–21]. However, the CSS ranging is biased, so a localization algorithm to solve the bias problem has been proposed[9]. The algorithm uses an approximated bias model of CSS ranging, and applies the model to the EKF[9]. Therefore when the model is modified, the equations of the algorithm have to be changed. On the other hand, the proposed algorithm is divided into two stages. In the first stage, the noise in the distance measurement is eliminated by using the KF. In the second stage, the target coordinates are calculated on the basis of the noiseeliminated distances obtained in the first stage. For this calculation, we use a weighted least square (WLS) algorithm and the weighting parameters have an important rule to reducing the effect of bias. Therefore, when the characteristic of the bias is reconsidered, we only change the equation for determining weighting parameters. To confirm the accuracy of the proposed algorithm, we present the results of indoor localization experiments, which are based on CSS ranging.
This article is organized as follows. In Section “Conventional algorithms for trilateration”, we provide an introduction to trilateration and conventional methods used for solving trilateration problems. In Section “Biased distance model and its observability”, we describe the EKF algorithm used for biased measurements. We also argue that the EKF algorithm is not suitable for treating the bias in the case of trilateration because of the observability problem. In Section “Proposed algorithm”, we present the proposed algorithm. In Section “Experimental results”, we present the results of indoor localization experiments based on the CSS ranging. Lastly, in Section “Conclusion”, we conclude our study.
Conventional algorithms for trilateration
Mathematical expression for trilateration
On a 2Dplane, four reference points are symmetrically located as shown in Figure1. The coordinates of reference points 1, 2, 3, and 4 are [A A]^{T}, [−A A]^{T}, [−A−A]^{T}, and [A−A]^{T}in vector form, respectively. At the time instant t, when a target is positioned at x(t) = [x_{1}(t) x_{2}(t)]^{T}, the distances between this target and each reference point denoted as y_{1}(t), y_{2}(t), y_{3}(t), and y_{4}(t) are given by the following expressions:
where v_{1}(t), v_{2}(t), v_{3}(t), and v_{4}(t) are the noises in the measurements of these four distances which are generally assumed to be zeromean white Gaussian. The first terms on the right side of each equation correspond to the true distances. These equations can be more simply expressed as a vector form,
where
and
Here, y(t), v(t), and h(x(t)) are the vectors of the measured distances, the measurement noises, and the true distances. The true distance vector h(x(t)) is a function of the vector x(t) of the target coordinates.
LS algorithms for trilateration
The ordinary LS algorithm is one of methods for calculating the coordinates of a specific target by using equations of (1)–(4). To transform the equations into linear equations, the terms corresponding to the measurement noises are neglected and the equations are rearranged, then we obtain[7, 22]:
After subtracting (9)–(11) from (12), we obtain:
These equations can be rewritten in matrix and vector form as follows:
where
and
The exact solution of the linear Equation (16), i.e. x(t) does not exist because of the presence of noise. Instead of an exact solution, the LS solution$\widehat{\mathbf{x}}\left(t\right)$ is calculated by using the ordinary LS algorithm[7, 22]:
As a different approach, the nonlinear LS algorithm can be utilized. The nonlinear LS algorithm does not need the rearrangement of the Equation (5) and is based on the following minimization criterion[23]:
where r(x(t)) = y(t)−h(x(t))which is the residual vector. To obtain the solution that satisfies this minimization criterion, the nonlinear LS problem needs to be solved using the Gauss–Newton method, which is a recursive algorithm used to solve nonlinear LS problems[23]. The Gauss–Newton method is expressed based on the given vector y(t) of the measured distances and the initial value of${\widehat{\mathbf{x}}}_{0}\left(t\right)$,
where
and α is stepsize and meets the condition 0 < α ≤ 1. The vector${\widehat{\mathbf{x}}}_{i}\left(t\right)$ is the nonlinear LS solution of x(t) at ith iteration. Here, the matrix J_{ i }(t) is the Jacobian matrix of h(x) defined as
EKF for trilateration
The EKF is a state estimator of nonlinear SS equations. When the measured distance vector y(t) is successively measured over time, the EKF can be applied to solve the trilateration problem. For the EKF, the nonlinear SS equations for trilateration model are defined as follows:
The measurement Equation (26) is the same as (5). In this article, we deal with twodimensional localization of a fixed object. As shown in the process Equation (25), the coordinate vector x(t) is not changed over time which means that the target object is stationary. Also, in the SS equations, the coordinate vector is called the state vector. The correlation matrix of v(t) is defined as R(t) and is assumed as known. With initial values of$\widehat{\mathbf{x}}\left(0\right)$ and P(0), the EKF is given by the following equations:
where
Here, I is the identity matrix with appropriate dimensions, and P(t) is the estimation error covariance matrix. The estimated state vector at time instant t is denoted as$\widehat{\mathbf{x}}\left(t\right)$ that is the estimator based on the measured distance vectors y(1),y(2),…,y(t). With the application of the EKF algorithm, a new y(t) is continuously required at every time instant t, whereas the LS algorithms require a measured distance vector y(t) for obtaining a LS solution.
Biased distance model and its observability
Biased model
In (5), the noises are assumed as the zeromean, but they are not always zeromean especially in actual situations. In this article, the nonzeromean value of the noises are denoted as the bias. The biased model is expressed as follows:
where b(t) = b_{1}(i)b_{2}(i)b_{3}(i)b_{4}(i)]^{T} is the bias vector that is added to the vector of the true distances similarly to the vector of the measurement noise. However the bias vector is a deterministic error source, whereas the noise vector is stochastic[10]. Also the bias can be assumed as constant, because the variation of the bias is much slower than the random variation of the noise[10]. If the bias vector is known in advance, the effect caused by the bias vector can be easily eliminated by subtracting the bias vector from the measured distance vector. However the bias vector is unknown in practical situations, so it becomes a major problem.
EKF for biased distance model
In this section, we describe the SS equations of the biased distances. First, we can rewrite the nonlinear SS equations of trilateration with the biased distance measurements (32) as:
As the bias vector must be estimated in order to eliminate its effects, an augmented state vector is defined as follows:
In this definition, the biases are regarded as states, as well as the original state vector x(t). Subsequently, the nonlinear SS equations can be rewritten using z(t) as:
where
As mentioned, the bias vector b(t) is assumed as constant, so we can express that b(t + 1) = b(t). Therefore the augmented state vector z(t) is not changed over time in (36). Also, g(z(t)) is defined as the summation of the true distance vector and the bias vector, and is referred to as the biased true distance vector.
In general, the augmented state vector can be estimated using various algorithms including the twostage EKF algorithms[14, 15]. However, these approaches are not applicable in case of trilateration because of the observability problem.
Observability of biased distance model
When SS equations are unobservable, the meaningful estimation cannot be derived due to lack of measurement information[16]. In this section, we will investigate the observability of the SS Equations (36) and (37) by using the Fisher information matrix (FIM). In the SS equations, which are the trilateration model with biases, only y(t) is the given measurement information available for estimating z(t), because the process Equation (36) does not contain any measurement information. Therefore, based on (37), the FIM of the trilateration model is given by[18]
where
for 1 ≤ j ≤ 4 and 1 ≤ k ≤ 6. Here, the FIM is denoted as F, and the covariance matrix of the measurement noise v(t) is written as R. For convenience, we abbreviate the time instant t such as z(t)= z and R(t) = R. The inverse of the FIM means the CramérRao lower bound of any unbiased estimator[17]. Further if the FIM is singular, i.e. the FIM is not invertible, the model is unobservable[18].
Based on this knowledge we can judge that the SS model is unobservable if F is singular matrix. To test the singularity of F, we investigate the rank of F. If the rank of F is not full rank, the matrix is not invertible that means the matrix is singular. Through (35) and (38), we can know that
and
Here, we use nonsymmetrical reference points for the generality of our derivation. The coordinates of them are denoted as A_{ pq } for 1 ≤ p ≤ 4 and 1 ≤ q ≤ 2. By the definitions, ∇_{ z }g(z) is given by
where
In (50), the parameters a_{ mn }for m = 1,2,3,4 and n = 1,2 are used for simplifying (49). If we suppose$\mathbf{R}={\sigma}_{v}^{2}\mathbf{I}$ under the assumption that v(t) is white, the FIM is expressed as (55).
Subsequently, we execute the following row reductions:

(1)
Multiply each of 3, 4, 5, and 6th rows of F by a _{11}, a _{21}, a _{31}, and a _{41}, respectively, and then subtract each of them from the first row.

(2)
Multiply each of 3, 4, 5, and 6th rows of F by a _{12}, a _{22}, a _{32}, and a _{42}, respectively, and then subtract each of them from the second row.
Through these successive row reductions, we can obtain the rowreduced matrix (56) and know that the rank of F is at most 4 regardless of z. This means that F is not full rank matrix, because the dimension of F is 6×6. Hence F is singular and the SS model is unobservable[18]. To conclude, we cannot guarantee the accuracy of the estimated state vector by the EKF.
Proposed algorithm
Concept of separation for treatments of noise and bias
In this section, we explain the causes of deterioration of the distance measurements, namely of the noise and bias. The noise is generally assumed to be zeromean white Gaussian, and the bias is an unknown quantity which remains approximately constant. However, both bias and noise cannot be treated by using only the EKF because of because of the observability problem. Therefore, in this article, we algorithm which combines the KF with the WLS algorithm for estimating the position of a specific target when the distance measurements are noisy and biased.
The proposed method is divided into two stages: noise elimination and bias reduction. In the first stage, the noise in the distance measurements is removed with the use of the KF, and then noiseeliminated distances are obtained. In the second stage, the coordinates of the target are calculated by using the WLS algorithm. For this purpose, we use the noiseeliminated distances obtained in the first stage. Subsequently, we propose a method to derive the weighting parameters for the WLS algorithm. As the noise has already been removed in the first stage, these parameters are determined based only on the characteristics of the bias. It should be noted that the weighting parameters affect the estimation of the target coordinates with the use of the WLS algorithm.
In the following sections, we explain the proposed algorithm in three steps: noise elimination, target coordinates calculation, and determination of the weighting parameters.
Measurement noise elimination by KF
To remove the noise from the distance measurements, we define new SS equations as
where g(t) is equal to the biased true distance vector g(z(t)) in (37). In this SS equations, however, we regard g(t) as a state vector, because the purpose of the first stage is not estimating z(t), but is estimating the biased true distance vector g(t) itself. Also, we can know that the expression of constant g(t) in (57) is valid, since g(t) only depend on z(t) which is constant as shown in (36).
The SS Equations (57) and (58) are linear, so estimating g(t) is readily executed by the KF, and not by the EKF. The KF as a constant parameter estimator is ideal for the noise elimination, because the KF is optimal estimator and robust against the noise. With initial value of$\widehat{\mathbf{g}}\left(0\right)$ and P(0), the KF for estimating g(t) are given by the following equations:
where$\widehat{\mathbf{g}}\left(t\right)$ is the estimated biased true distance vector. In other word,$\widehat{\mathbf{g}}\left(t\right)$ is the estimated noiseeliminated distance vector. If we have no a priori information on initialization, P(0) can be set to infinite matrix. In this case, the KF becomes[24]
Equation (63) is the same as the recursive average, and$\widehat{\mathbf{g}}\left(t\right)$ can be estimated by using (63). The vector$\widehat{\mathbf{g}}\left(t\right)$ is used for the WLS algorithm in the next stage of calculating the coordinates of a specific target.
Target coordinate calculation by using nonlinear WLS algorithm
In the second stage, the coordinates of a target are calculated based on the noiseeliminated distances obtained with the use of the KF in the first stage. Based on the relationship in (39), the nonlinear equation for the second stage is given by
where b(t) is regarded as the error source. In (64), the true value of g(t) is actually unknown. Instead of using g(t), therefore, the estimated value obtained in the first stage is used, and then we define the residual vector as
By using (65), the criterion of the WLS algorithm is given by
where W(t) is the matrix of the weighting parameters or differently, the weight matrix. Unlike the conventional LS problem, the bias vector is not a zeromean noise, so the weight matrix must be selected differently. We will consider the assignment of the weight matrix in the following section.
The solution of (66) is obtained by using the Gauss–Newton method which has already been mentioned in Section “Conventional algorithms for trilateration”. With the given noiseeliminated distance vector$\widehat{\mathbf{g}}\left(t\right)$ and initial value of${\widehat{\mathbf{x}}}_{0}\left(t\right)$, the algorithm is expressed as the following recursive equations:
where
0 < α ≤ 1, and ${\widehat{\mathbf{x}}}_{i}\left(t\right)$ is the nonlinear LS solution of x(t) at ith iteration. Here, the matrix J _{ i }(t) is Jacobian matrix of h, i.e.
While the Gauss–Newton algorithm is running, the new$\widehat{\mathbf{g}}\left(t\right)$ is being recursively estimated by the KF. In other words, while the Gauss–Newton algorithm is recursively updating${\widehat{\mathbf{x}}}_{i}\left(t\right)$, the previous noiseeliminated distance vector$\widehat{\mathbf{g}}\left(t\right)$ is continuously replaced by a new one, i.e.$\widehat{\mathbf{g}}(t+1)$. Replacing$\widehat{\mathbf{g}}\left(t\right)$ to$\widehat{\mathbf{g}}(t+1)$ can alter the minimum point of (66), so the Gauss–Newton algorithm tries to track the new minimum point, which is x(t + 1). Therefore the coordinates estimated by the Gauss–Newton algorithm will also vary as a result of the changes that the noiseeliminated distance vector undergoes. However, based on the assumption of the bias remains approximately constant, we can argue that the noiseeliminated distance vector which is estimated by the KF is not changing rapidly. Even though the bias may change slightly, it varies much slower than the Gauss–Newton algorithm converges. This implies that the Gauss–Newton algorithm is not required to converge fast. According to this observation, the Gauss–Newton algorithm can be synchronized with the iteration of the KF. Consequently, we remove the number of iterations i in the Gauss–Newton algorithm and rewrite the algorithm recursive with respect to the time instant t. Hence, with the given noiseeliminated distance vector by the first stage and initial value of$\widehat{\mathbf{x}}\left(0\right)$, the second stage of the proposed algorithm is expressed as
where
0 < α ≤ 1, and $\widehat{\mathbf{x}}\left(t\right)$ is the nonlinear LS solution at time instant t. Here, the matrix J(t) is Jacobian matrix of h,
Determining weight matrix
Unlike the conventional LS problem, the bias vector is not zeromean noise. Therefore, we must derive a proper weight matrix W for the bias vector, when (64) is applied to the WLS algorithm.
First, we review the weight matrix for the conventional LS problem. Let image the linear equation
In the conventional LS algorithm, the cause of error is the zeromean white Gaussian noise v. In this case, according to the WLS algorithm theory, the correlation matrix of the estimation error is expressed as[25]
where
When$\mathbf{W}={\mathbf{R}}_{v}^{1}$, the correlation matrix is minimized, i.e.[25]
In (64), however, the cause of error is not noise, but bias. In light of this, the weight matrix cannot be determined similarly to other conventional algorithms. It must be assigned according to the property of bias. By using the firstorder approximation of the Taylor series, (64) is linearized around x^{∗} as follows:
where
This equation can be rearranged as
where
The WLS solution of the linearized equation is
The estimation error, i.e.,$\widehat{\mathbf{x}}\left(t\right)\mathbf{x}\left(t\right)$, is approximately equal to
Therefore, the correlation matrix for the estimation error is written as follows:
where
In (91), the approximation is reasonable under the assumption of the constant bias. To minimize the correlation matrix for the estimation error, the weight matrix W(t) has to be determined as the inverse matrix of R_{ b }. However, it is not possible to calculate R_{ b }because the bias vector is still unknown. To solve this problem, we have considered the following situation. Under the assumption that the measurements are carried out in a homogeneous environment, the bias for two pairs of nodes placed at different positions is considered the same as long as the actual distance between each member of the two pairs is identical. In addition, the bias to the distance measured between node pairs is never greater than the bias to the distance measured between two nodes that are placed further apart in the same homogeneous environment. In summary, the bias is proportional to the true distance. Multiple paths and nonlineofsight of signal propagation can be the cause of the bias, because they make the signal travel longer distance than the signal that passes through the direct path[11]. Therefore the longer length between a node pair is, the greater bias can be caused especially at indoor in which a number of obstacles exist. Based on this observation, we model the bias vector as
where β is the proportionality constant and x(t) is the true coordinate. Therefore, h(x(t)) is the true distance vector. By h(x(t)) = g(t)−b(t), we can rewrite (92)
where$\gamma =\frac{\beta}{1+\beta}$. The direction of b(t) is equal to that of g(t) due to the proportionality, so the normalized b(t) and g(t) are the same, i.e.
where ∥·∥_{2} is the 2norm operator. Through (94), we can know that b(t) can be expressed as
and γ is given by$\frac{\parallel \mathbf{b}\left(t\right){\parallel}_{2}}{\parallel \mathbf{g}\left(t\right){\parallel}_{2}}$. To calculate the right hand side of (95), we use$\mathbf{r}\left(\widehat{\mathbf{x}}(t1)\right)$ and$\widehat{\mathbf{g}}\left(t\right)$ instead of b(t) and g(t), respectively. Hence, the estimated bias vector can be derived as
where$\widehat{\mathbf{b}}\left(t\right)$ is the estimated bias vector. If$\widehat{\mathbf{x}}(t1)$ is equal to the true coordinate, the bias vector is just the same as$\mathbf{r}\left(\widehat{\mathbf{x}}(t1)\right)$. In actual situations, however,$\widehat{\mathbf{x}}(t1)$ is not equal to the true coordinate, so we cannot guarantee the equality between$\mathbf{r}\left(\widehat{\mathbf{x}}(t1)\right)$ and the bias vector. Therefore we only use the magnitude of$\mathbf{r}\left(\widehat{\mathbf{x}}(t1)\right)$ for calculating the estimated bias vector. By the proportionality assumption, the direction of the estimated bias vector is given by the direction of$\widehat{\mathbf{g}}\left(t\right)$ as shown in (96).
Finally, the weight matrix is estimated as
where ε is a small scalar value which has been inserted to solve mathematical problem of the matrix inversion, because$\widehat{\mathbf{b}}\left(t\right){\widehat{\mathbf{b}}}^{T}\left(t\right)$ is singular matrix.
The proposed algorithm is summarized in Algorithm 1 and the block diagram of the proposed algorithm is represented in Figure2.
Algorithm 1 Summary of the proposed algorithm
Initial values:$\widehat{\mathbf{x}}\left(0\right)$,$\widehat{\mathbf{g}}\left(0\right)$, and P(0).
Given parameters: ε, α, and R(t).
For t = 1,2,3,…
When y(t) is obtained by ranging
//START First Stage  Noise elimination
$\mathbf{e}\left(t\right)=\mathbf{y}\left(t\right)\widehat{\mathbf{g}}(t1)$
K(t)=P(t−1)[P(t−1) + R(t)]^{−1}
$\widehat{\mathbf{g}}\left(t\right)=\widehat{\mathbf{g}}(t1)+\mathbf{K}\left(t\right)\mathbf{e}\left(t\right)$
P(t) = [I−K(t)]P(t − 1)
//END First Stage  Noise elimination
//START Second Stage
$\mathbf{r}\left(\widehat{\mathbf{x}}(t1)\right)=\widehat{\mathbf{g}}\left(t\right)\mathbf{h}\left(\widehat{\mathbf{x}}(t1)\right)$
//START Determination of the weight matrix
$\widehat{\gamma}=\frac{\parallel \mathbf{r}\left(\widehat{\mathbf{x}}(t1)\right){\parallel}_{2}}{\parallel \widehat{\mathbf{g}}\left(t\right){\parallel}_{2}}$
$\widehat{\mathbf{b}}\left(t\right)=\widehat{\gamma}\widehat{\mathbf{g}}\left(t\right)$
$\mathbf{W}\left(t\right)={\left(\widehat{\mathbf{b}}\left(t\right){\widehat{\mathbf{b}}}^{T}\left(t\right)+\epsilon \mathbf{I}\right)}^{1}$
//END Determination of the weight matrix
//START Calculation of the target coordinates
$\mathbf{J}\left(t\right)=\frac{\partial \mathbf{h}\left(\mathbf{x}\right)}{\partial \mathbf{x}}{}_{\mathbf{x}=\widehat{\mathbf{x}}(t1)}$
p(t) = −(J(t)^{T}W(t)J(t))^{−1}J(t)^{T}W(t)
$\widehat{\mathbf{x}}\left(t\right)=\widehat{\mathbf{x}}(t1)+\alpha \mathbf{p}\left(t\right)\mathbf{r}\left(\widehat{\mathbf{x}}(t1)\right)$
//END Calculation of the target coordinates
//END Second Stage
End
Experimental results
Noise elimination by using KF
First, we present the results obtained with the use of the KF for noise elimination, and show the relationship between the true distance and the bias. Under assumption that the measurement noise is uncorrelated, the offdiagonal terms of R(t) were set to zeros. The diagonal terms of R(t) were set to 0.0346 which was calculated from a number of measurements. Accordingly, R(t) was given by 0.0346 × I. We also set the initial value$\widehat{\mathbf{g}}\left(0\right)$ to the distance vector measured at the first iteration. P(0) was set to the identity matrix. In this experiment, we arranged four pairs of CSS nodes which were labeled pair 1, 2, 3, and 4 at indoor. The actual distances between pair 1, 2, 3, and 4 were set to 2.1, 4.2, 6.3, and 8.4 meters, respectively. We successively measured the distances by using the CSS ranging, and the measured distances were fed into the KF.
The dashdotted lines in Figures3,4,5, and6 correspond to the successively measured distances between pair 1, 2, 3, and 4, respectively. The measured distances vary considerably because of the presence of noise. The solid lines correspond to the noiseeliminated distances which were calculated with the use of the KF, and they converge to the averages of the measured distances denoted as the dashed lines. The averages of the measured distances were calculated by averaging the 600 measured distances. As result, we can conclude that the KF accurately estimates the biased true distance vector g(t) in (57) and (58). Also the variation of the noiseeliminated distances after removing the noise v(t) by the KF is much smaller than that of the measured distances. By these results we can confirm our assumption of constant bias.
Moreover, the difference between the true distance and average of measured distances can be regarded as the bias. Through the graphes, we can see that the relationship between the bias and the true distance. Although the bias is not perfectly proportional to the true distance, there is a trend that the bias becomes higher when the true distance is long. Therefore the proportionality assumption can model the bias approximately. If the mismatch between the actual and modeled bias becomes considerable, the localization error of the proposed algorithm can become higher. However, the proposed algorithm can reduce the effect of the bias as long as the trend continues.
Coordinates calculation by using LS algorithm
To confirm the accuracy of the target coordinates estimated with the use of the proposed algorithm, our next step was to compare them with the coordinates estimated by using only the EKF. The solely use of the EKF for trilateration has already been discussed in Section “Conventional algorithms for trilateration”. The EKF does not consider the effect of bias.
In our localization experiments, we assigned a twodimensional Cartesian coordinate system and installed four CSS nodes at [4.5 4.5]^{T}, [−4.5 4.5]^{T}, [−4.5 −4.5]^{T}, and [4.5 −4.5]^{T}and numbered as reference position 1, 2, 3, and 4, respectively. They are also the vertices of 9×9 square plane. The unit of measurement of all these values is meters. The target CSS node was fixed at four different positions: these were [2.25 2.25]^{T}, [−2.25 2.25]^{T}, [−2.25 −2.25]^{T}, and [2.25−2.25]^{T}. The target CSS node begins ranging with each CSS node at the four reference points. After all four distances were measured, the proposed algorithm can calculate the coordinates of the target node. The ranging operations are iteratively performed and the proposed algorithm is executed at every iteration. It should also be noted that the localization experiment at each position was independently executed. The initial value P(0) was set equal to the identity matrix. The initial state vector$\widehat{\mathbf{x}}\left(0\right)$ was set equal to the LS solution of (19) which was obtained by using the firstly measured distances. The initial value$\widehat{\mathbf{g}}\left(0\right)$ equal to the distance vector measured at the first iteration.
With different combinations of parameters α and ε, the errors in the estimation of the target coordinates are shown in Figures7,8,9, and10. These errors are the calculated Euclidean distance between the true position and the estimated position. In the graphs below, all of results obtained with the used of the proposed algorithm are more accurate than the results of the EKF. When both α and ε are set to 0.1, the algorithm proposed in this article ensures errors in the estimation of the target position less than about 0.2 m. On the other hand, the errors in the estimation of the target position with the use of the EKF seem to differ from case to case.
In the proposed algorithm, parameter α affects the convergence rate of the algorithm, because α plays a role of stepsize. If α decreases to zero, the convergence rate of the proposed algorithm decreases. Reversely, if α increases to one, the convergence rate of the proposed algorithm increases. Another parameter ε is originally adopted for only solving the mathematical problem of matrix inversion, but it also affects the accuracy of the proposed algorithm in the steady state. To minimize its effect, parameter ε must be selected as small as possible. In some cases, however, a large ε could give better results, because the parameter ε accidentally corrects the error of the estimated bias.
According to experimental results, we can suppose that the proposed algorithm can be used for ubiquitous applications such as navigation, contextaware services, warehouse management, and mobile robots, because the position is significant information for implementing these ubiquitous applications[8].
Conclusion
In this article, we proposed a localization algorithm by using the KF and the WLS algorithm. The proposed algorithm consists of two stages: noise elimination by using the KF and calculation of the target coordinates by the WLS algorithm. More specifically, the KF estimates a noiseeliminated distance vector, which is subsequently used for the calculation of the target coordinates as well as for the determination of the weight matrix. The results of localization experiments demonstrate the accuracy of the proposed algorithm.
References
 1.
Navidi W, Murphy WS, Hereman W: Statical methods in surveying by trilateration. Comput. Stat. Data Anal 1998, 27(2):209227. 10.1016/S01679473(97)000534
 2.
Larsson U, Forsberg J, Wernersson A: Mobile robot localization: integrating measurements from a timeofflight laser. IEEE Trans. Ind. Electron 1996, 43(3):422431. 10.1109/41.499815
 3.
GutierrezOsuna R, Janet JA, Luo RC: Modeling of ultrasonic range sensors for localization of autonomous mobile robots. IEEE Trans. Ind. Electron 1998, 45(4):654662. 10.1109/41.704895
 4.
Lee JM, Lee DH, An H, Huh N, Kim MK, Lee MH: Ultrosonic satellite system for the positioning of mobile robots. Proceedings of 30th Annual Conference of IEEE Industrial Electronics Society (IECON 2004) 2–6 Nov 2004, 448453.
 5.
Bahillo A, Mazuelas S, Lorenzo RM, Fernández P, Prieto J, Durán RJ, Abril EJ: Hybrid RSSRTT localization scheme for indoor wireless networks. EURASIP J. Adv. Signal Process 2010, 2010: 112.
 6.
Zhou Y: An efficient leastsquares trilateration algorithm for mobile robot localization. Proceedings of International Conference on Intelligent Robots and Systems (IROS 2009) 10–15 Oct 2009, 34743479.
 7.
Yim J, Jeong S, Gwon K, Joo J: Improvement of Kalman filter for WLAN based indoor tracking. Expert Syst. Appl 2010, 37: 426433. 10.1016/j.eswa.2009.05.047
 8.
Cho H, Lee CW, Ban SJ, Kim SW: An enhanced positioning scheme for chirp spread spectrum ranging. Expert Syst. Appl 2010, 37(8):57285735. 10.1016/j.eswa.2010.02.037
 9.
Cho H, Kim SW: Mobile robot localization using biased chirp spread spectrum ranging. IEEE Trans. Ind. Electron 2010, 57(8):28262835.
 10.
Drócourt JP, Madsen H: Bias aware Kalman filters: comparison and improvements. Adv. Water Res. 2006, 29(5):707718. 10.1016/j.advwatres.2005.07.006
 11.
Güvenç I, Chong CC, Watanabe F, Inamura H: NLOS identification and weighted leastsquare localization for UWB systems using mulipath channel statistics. EURASIP J. Adv. Signal Process 2008, 2008: 114.
 12.
Friedland B: Treatment of bias in recursive filtering. IEEE Trans. Automat. Control 1969, AC14(4):359367.
 13.
Ignagni MB: An alternate derivation extension of Friendland’s twostage Kalman estimator. IEEE Trans. Automat. Control 1981, AC26(3):746750.
 14.
Caglayan AK, Lancraft RE: A separated bias identification and state estimation algorithm for nonlinear systems. Automatica 1983, 19(5):561570. 10.1016/00051098(83)900122
 15.
Kim KH, Lee JG, Park CG: Adaptive twostage extended Kalman filter for a faulttolerant INSGPS loosely coupled system. IEEE Trans. Aerospace Electron. Syst 2009, 45: 125137.
 16.
Southall B, Buxton BF, Marchant JA: Controllability and Observability: tools for Kalman filter design. In Proceedings of 9th British Machine Vision Conference: 14–17 September 1998. UK: University of Southampton; 1998:164173.
 17.
Jauffret C: Observability and Fisher information matrix in nonlinear regression. IEEE Trans. Aerospace Electron. Syst 2007, 43(2):756759.
 18.
Wang Z, Dissanayake G: Observability analysis of SLAM uisng Fisher information matrix. Proceedings of 10th International Conference on Control, Automation, Robotics and Vision 17–20 Dec 2008, 12421247.
 19.
Lee KH, Cho SH: CSS based localization system using kalman filter for multicell environment. Proceedings of International Conference on Advanced Technologies for Communications (ATC 2008) 6–9 Oct 2008, 293296.
 20.
Spieker A, Röhrig C: Localization of pallets in warehouse using Wireless Sensor Networks. Proceedings of 16th Mediterranean Conference on Control and Automation: 2527 June 2008; Ajaccio 2008, 18331838.
 21.
Röhrig C, Müller M: Indoor location tracking in nonlineofsight environments using a IEEE 802.15.4a wireless network. Proceedings of International Conference on Intelligent Robots and Systems (IROS 2009) 10–15 Oct 2009, 552557.
 22.
Langendoen K, Reijers N: Distributed localization in wireless sensor network: a quantitative comparison. Comput. Netw 2003, 43(4):499518. 10.1016/S13891286(03)003566
 23.
Izquierdo F, Ciurana M, Barcelo F, Paradells J, Zola E: Performance evaluation of a TOAbased trilateration method to locate terminals in WLAN. Proceedings of 1st International Symposium on Wireless Pervasive Computing 16–18 Jan 2006, 16.
 24.
Zarchan P, Musoff H: Fundamentals of Kalman Filtering: A Practical Approach. 2005.
 25.
Kailath T, Sayed AH, Hassibi B: Linear Estimation. 2000.
Acknowledgements
This research was supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education, Science and Technology (20110004145). This work was supported by the Brain Korea 21 Project in 2012.
Author information
Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
About this article
Cite this article
Cho, H., Lee, J., Kim, D. et al. Localization based on twostage treatment for dealing with noisy and biased distance measurements. EURASIP J. Adv. Signal Process. 2012, 164 (2012). https://doi.org/10.1186/168761802012164
Received:
Accepted:
Published:
Keywords
 Kalman Filter
 Extended Kalman Filter
 Distance Vector
 Fisher Information Matrix
 Newton Algorithm