- Research
- Open Access

# Robust time-of-arrival source localization employing error covariance of sample mean and sample median in line-of-sight/non-line-of-sight mixture environments

- Chee-Hyun Park
^{1}and - Joon-Hyuk Chang
^{2}Email author

**2016**:89

https://doi.org/10.1186/s13634-016-0385-4

© The Author(s) 2016

**Received:**4 January 2016**Accepted:**29 July 2016**Published:**17 August 2016

## Abstract

We propose a line-of-sight (LOS)/non-line-of-sight (NLOS) mixture source localization algorithm that utilizes the weighted least squares (WLS) method in LOS/NLOS mixture environments, where the weight matrix is determined in the algebraic form. Unless the contamination ratio exceeds 50 %, the asymptotic variance of the sample median can be approximately related to that of the sample mean. Based on this observation, we use the error covariance matrix for the sample mean and median to minimize the weighted squared error (WSE) loss function. The WSE loss function based on the sample median is utilized when statistical testing supports the LOS/NLOS state, while the WSE function using the sample mean is employed when statistical testing indicates that the sensor is in the LOS state. To testify the superiority of the proposed methods, the mean square error (MSE) performances are compared via simulation.

## Keywords

- Adaptive selection
- Loss function
- Sample mean
- Sample median
- Statistical testing
- Error variance

## 1 Introduction

The aim of the source localization system is to find a geometrical point of intersection using the measurements from each receiver, such as the time difference of arrival (TDOA), time of arrival (TOA), or received signal strength (RSS). Localizing a point source in which passive and stationary sensors are used has been a repeated and popular research issue in the areas of radar, sonar, global positioning system, video conferencing, and telecommunication. Even though location estimation problems have been investigated extensively in the existing literature [1–6], there are still some unresolved problems. One of the key challenges of the localization problem is to estimate the position of the source in dense cluttered non-line-of-sight (NLOS) environments [7, 8]. NLOS scenarios occur when there is an obstruction between transmitters and receivers located in indoor environments and outdoor situations such as urban areas. In general, the research fields of localization for the LOS/NLOS mixture problem can be categorized into two parts: (1) the constrained least squares (LS) method using optimization such as the semidefinite relaxation and second-order cone relaxation [9–12] and (2) localization using robust statistics. While localization using the optimization method has comparatively high accuracy, the computational load is higher than that of the analytical solution. Therefore, we concentrate on localization using robust statistics. The existing robust LOS/NLOS mixture position estimators are usually based on the concept of the median, e.g., least median squares (LMedS) [13, 14], *M*-estimator [15, 16], and the Hodges-Lehmann estimator [17]. The sample mean is an efficient estimator under the normal distribution; thus, it outperforms the accuracy of the sample median in the normal distribution. However, the accuracy of the sample mean is severely degraded when outliers exist in the heavy-tailed distribution, e.g., *t* distribution or double exponential distribution. On the other hand, the sample median is robust to outliers if the contamination ratio is smaller than 50 % but is inferior to the sample mean when outlier does not exist, i.e., the asymptotic variance of the sample mean approximately amounts to 64 % of variance for the sample median when the number of samples is large and the noise distribution follows the normal distribution [18]. Accordingly, the weighted squared error (WSE) loss function based on the sample mean is utilized in the line-of-sight (LOS) condition, where the sensor state is determined by the classical statistical testing [19, 20]. In contrast, when statistical testing indicates that the sensor in the LOS/NLOS state is valid, the WSE loss function using the sample median is adopted. Then, the source position is determined by minimizing the sum of WSE loss functions based on the sample mean of the sensor expected to be in the LOS condition and sample median of the sensor determined to be in the LOS/NLOS state. The motivation of this paper is as follows. The weighted least squares (WLS) estimator utilizes the weight matrix whose diagonal components amount to the inverse of the error variances of independent noisy measurements. However, the algorithm that utilizes the covariance information of the sample median and mean in the LOS/NLOS mixture state has not yet been reported; that is, the WLS in the LOS/NLOS mixture situation, in which the weight matrix is derived in the algebraic form, has not yet been developed. Thus, we employ the WLS algorithm for the LOS/NLOS mixture state, which is extended from the LOS state, and the diagonal elements of the weight matrix amount to the inverse of asymptotic variances for the sample mean and median. The proposed robust position estimation algorithms differ from the existing two-step WLS algorithm for the LOS conditions, because the proposed methods employ the error variance for the sample median, and this error variance has not been applied to the two-step WLS estimator. The proposed robust localization methods are divided into the iteration method and closed-form algorithm. The Taylor series expansion is utilized in the iteration method, and the two-step WLS algorithm is adopted in the closed-form method. The proposed methods exhibit the superior mean square error (MSE) performances when compared to that of existing methods. Moreover, the performance of the proposed closed-form LOS/NLOS mixture localization method using the two-step WLS method is similar to that of the Taylor series-based iteration method, with the advantages of low computational complexity and avoidance of the divergence problem of the solution. When solution diverges, it can reach a solution, which is far from the true solution, or sometimes it fails to produce a solution when the initial value is not appropriately chosen. The LOS/NLOS mixture localization method for multiple sample case has the advantage that all sensors can be utilized compared to the single sample-based LOS/NLOS mixture localization method if the contamination ratio (a measure of how many outliers exist) for the samples in each sensor is lower than the breakdown point (in most cases, when the contamination ratio is less than 10 %, the breakdown point of the sample median is 50 % [18]).

The organization of this paper is listed as follows. Section 2 explains the LOS/NLOS mixture source localization problem to be solved in this paper. In Section 3, the details of the existing localization methods using the sample median are addressed. The proposed localization methods using error variances of the sample mean and sample median are addressed in Section 4. The estimation performances of the proposed methods are evaluated via simulation results in Section 5, comparing them with those of the existing algorithms. Finally, the conclusion is presented in Section 6.

## 2 Problem formulation

where \(n_{i,j} \sim (1-\epsilon) N\left (0,{\sigma _{1}^{2}}\right) + \epsilon N\left (\mu _{2},{\sigma _{2}^{2}}\right), ~i=1,2,\ldots,M,~j=1,2,\ldots,P\) with *M* and *P* denoting the number of sensors and samples in the *i*th sensor, respectively [21–23]. Also, *r*
_{
i,j
} is the measured distance between the source and the *i*th sensor at the *j*th sampling and *d*
_{
i
} is the range (distance) model between the source and *i*th sensor. The measurement noise *n*
_{
i,j
} is modeled as a Gaussian mixture distribution in which the LOS noise is distributed according to \(N\left (0,{\sigma _{1}^{2}}\right)\) with a probability (1−*ε*) and the NLOS noise distributed by \(N\left (\mu _{2},{\sigma _{2}^{2}}\right)\) with a probability of *ε*. It is assumed that while the statistics of the inlier can be obtained, the mean and variance of the outlier distribution are unknown. Here, *ε* (0≤*ε*≤1) is the contamination ratio (i.e., fraction of contamination) which is a small number (typically smaller than 0.1) [21–23]. Also, [*x*
*y*]^{
T
} is the true source position and [*x*
_{
i
}
*y*
_{
i
}]^{
T
} is the position of the *i*th sensor. Note that, throughout this paper, a lowercase boldface letter denotes a vector, an uppercase boldface letter indicates a matrix, and the superscript *T* signifies the vector/matrix transpose. The purpose of this paper is to determine the source position for which the MSE of the position estimate is minimized.

## 3 Review of the existing LOS/NLOS mixture TOA localization methods

In general, the LS and Gauss-Newton methods have been widely used as localization methods. The two methods are discussed briefly in this section in terms of the formulation of the LOS/NLOS mixture source localization.

### 3.1 LS method using the sample median

**q**

_{ j }=[

*m*

_{1,j },⋯,

*m*

_{ M,j }]

^{ T },

**x**=[

*x*

*y*

*R*]

^{ T },

*r*

_{ i,j }(

*i*=1,2,⋯,

*M*,

*j*=1,2,⋯,

*P*) result in severely degraded performance, the median is taken to prevent the adverse effects of outliers. The LS location estimate is then obtained by minimizing the squared error sum as given by

where med(**b**
_{1:P
}) is [med(*b*
_{1,1:P
}),⋯,med(*b*
_{
M,1:P
})]^{
T
} and med is the abbreviation for the median. Here, (4) differs from the classical LS estimator in which the squared error sum between all samples from each sensor and parametric model is minimized, because (4) minimizes the squared error sum between the median value from each sensor and signal model. The median is the centered value of the ascending ordered sample set. Let us assume the ascending ordered *N* components of {*a*
_{(1)},⋯,*a*
_{(N)}}. The median is defined as *a*
_{((N+1)/2)} if *N* is odd, or {*a*
_{(N/2)}+*a*
_{(N/2+1)}}/2 if *N* is even. Also, *b*
_{
i,1:P
} includes measurements from the first to the *P*th of the *i*th sensor. The reason why the median is used to merge the measurements of each sensor is to counteract the effects of outliers.

### 3.2 Gauss-Newton method using the sample median

**x**

_{o}using the Taylor series method as follows:

**G**is the gradient vector of one of the components of

**f**(

**x**). The vector

**x**

_{o}could be an estimate of

**x**determined from the previous iteration. The source position is then obtained using the same procedure in [1] as follows:

where **x**
^{(k)} is the estimate of **x** in the *k*th iteration (the superscript (*k*) denotes the iteration number) and med(**r**
_{1:P
})=[med(*r*
_{1,1:P
}),⋯,med(*r*
_{
M,1:P
})]^{
T
}.

## 4 Proposed adaptive LOS/NLOS mixture TOA source localization method using the WSE loss function

In this paper, the LOS/NLOS mixture state is divided into the LOS and LOS/NLOS states. The LOS state denotes the case where the contamination ratio is zero (*ε*=0) and the LOS/NLOS state is the condition in which 0<*ε*≤1. The WSE based on the sample median is robust to outliers as the loss function when the sensor is in the LOS/NLOS state but is less efficient than the WSE loss function using the sample mean when the sensor is in the LOS condition. Hence, it is adequate to adaptively select the loss function by investigating whether the corresponding sensor is in the LOS or LOS/NLOS condition. To determine whether outliers exist among measurements of the sensor, some testing rules to be explained later are used.

### 4.1 Adaptive LOS/NLOS mixture localization using the WSE loss function

*π*≃0.64 when the number of samples is large [18]. That is, the WSE loss function based on the sample mean is more efficient than that using the sample median when no outlier exists. Thus, the proposed adaptive method utilizes the WSE based on the sample mean as the loss function if the testing result that the sensor is in the LOS condition is supported. To select the proper loss function according to the state of each sensor, discrimination between the LOS and LOS/NLOS sensor must be performed. When no outlier exists, the difference between the sample mean and range measurements of the

*i*th sensor would not be inflated by outliers; thus, the difference between the sample mean and range measurements of the

*i*th sensor when the outlier does not exist would be smaller than that in the case that the outlier exists. Hence, the following statistical testing is reasonable to determine whether an outlier exists or not

*i*th LOS sensor), the following WSE loss function based on the sample mean is used since the judgment that the

*i*th sensor is in the LOS condition is supported

*i*th row of

**G**, represented as \(\left [{\frac {\partial f_{i}}{\partial x}}|_{\mathbf {x}=\mathbf {x}_{\mathrm {o}}}\; {\frac {\partial f_{i}}{\partial y}}|_{x=\mathbf {x}_{\mathrm {o}}}\right ],\sigma _{i,\text {SE}}^{2}\) is the variance of the sample mean of the measurements in the

*i*th LOS sensor and is found by \(\frac {\sigma _{i,\textrm {LOS}}^{2}}{P}\). This WSE loss function is extended to the multiple sensor case as follows:

*Λ*denotes the sensor index set that belongs to the LOS sensors. On the contrary, when the left-hand side of (8) is larger than

*σ*

*i*,LOS2, the WSE using the sample median is utilized as the loss function because the

*q*th sensor is assumed to be in the LOS/NLOS condition and can be extended to the multiple sensor case as given below:

*Λ*

^{ c }is the sensor index set belonging to the LOS/NLOS sensors and

*σ*

*q*,SA2 is the variance of the sample median for the measurements in the

*q*th LOS/NLOS sensor. When the contamination ratio does not exceed 50 %,

*σ*

*q*,SA2 can be approximated by \(\frac {\pi }{2}\frac {\sigma _{{q},\textrm {LOS}}^{2}}{{P}} \) (

*σ*

*q*,LOS2 is the variance of the single LOS sample of the

*q*th LOS/NLOS sensor) [25]. Then, the source location parameter is determined by minimizing the sum of (10) and (11) as follows:

### 4.2 Adaptive LOS/NLOS mixture two-step WLS localization using the WSE loss function

*r*

_{ i,1:P }into

*r*

_{ i }if the testing result that the sensor belongs to the LOS sensor is valid or replaces the sample median of

*r*

_{ i,1:P }inside

*r*

_{ i }when the sensor is determined to be the LOS/NLOS sensor as follows:

*r*

_{ q,SA}=med(

*r*

_{ q,1:P }). The covariance matrix (weight matrix) of \(\widehat {\mathbf {b}}=[\widehat {b}_{1},\cdots,\widehat {b}_{{M}}]^{{T}}\) should be determined to derive the WLS estimator. Since \(\frac {1}{{P}} \sum _{{j}=1}^{{P}} {r}_{{i},{j}}={d}_{{i}}+\frac {1}{{P}} \sum _{{j}=1}^{{P}} {n}_{{i},{j}}\), the error statistics of \(\widehat {b}_{{i}}\) (defined as \(\Delta \widehat {b}_{{i}}\)) is found from (14) as follows:

*r*

_{ i,SE}was substituted into

*d*

_{ i }because

*d*

_{ i }is the unknown value. Then, \(\sigma _{\widehat {b}_{{i}}}^{2}\) is found as \(\frac {{r}_{{i},\text {SE}}^{2} \sigma _{{i}}^{2}}{P} \) for the sensors determined to be LOS sensor. Meanwhile, when

*r*

_{ q,SA}=med(

*r*

_{ q,1:P })=

*d*

_{ q }+med(

*n*

_{ q,1:P }), the noise of \(\widehat {b}_{{q}}\) (\(\Delta \widehat {b}_{{q}}\)) for the sensors predicted to be the LOS/NLOS sensor is obtained from (14) as follows:

*r*

_{ q,SA}was substituted instead of

*d*

_{ q }and a sufficiently small LOS noise condition was assumed. As in the previously proposed methods, \(\sigma _{\widehat {b}_{{q}}}^{2}\) can be approximated as \(\frac {\pi }{2}\frac {{r}_{{q},\text {SA}}^{2}\sigma _{{q}}^{2}}{{P}}\) when the contamination ratio does not exceed 50 %. The first-step WLS estimator is then obtained by minimizing the sum of WSE loss functions based on the sample mean and sample median as follows:

*i*th row of

**A**. Then, the first-step WLS estimator is obtained as shown below:

_{ k }means the

*k*th element of [·], and

*x*,

*y*are substituted as [

**x**

_{1}]

_{1},[

**x**

_{1}]

_{2}in the computation of \(\mathbf {C}_{\widehat {\mathbf {h}}}\). Namely, the localization performance can be improved using the second-step solution since it adopts the error distribution of the first-step estimate. The final closed-form two-step WLS source location estimate is found as follows:

where sgn(·) denotes the sign function.

### 4.3 The ATWLS algorithm in the presence of sensor position error

*i*th sensor and the erroneous sensor positions are represented as \({x}_{{i}}={x}_{{i}}^{\mathrm {o}}+\Delta {{x}_{{i}}}, {y}_{{i}}={y}_{{i}}^{\mathrm {o}}+\Delta {{y}_{{i}}}\), [

*Δ*

*x*

_{ i },

*Δ*

*y*

_{ i }]

^{ T }denote the sensor position error of the

*i*th sensor. Squaring (21) and substituting \({x}_{{i}}^{\mathrm {o}}={x}_{{i}}-\Delta {x}_{{i}}, {y}_{{i}}^{\mathrm {o}}={y}_{{i}}-\Delta {y}_{{i}}\) yield the following [26]:

**e**

_{ j }=[

*e*

_{1,j },⋯,

*e*

_{ M,j }]

^{ T },

*e*

_{ i,j }= (

*x*

_{ i }−

*x*)

*Δ*

*x*

_{ i }+ (

*y*

_{ i }−

*y*)

*Δ*

*y*

_{ i }−

*d*

_{ i }

*n*

_{ i,j },

**x**=[

*x*

*y*

*R*]

^{ T },

*i*∈

*Λ*, \(\widehat {t}_{{q}}= 0.5\left ({{x}_{{q}}}^{2}+{{y}_{{q}}}^{2}-\left ({r}_{{q},\text {SA}}\right)^{2}\right)\), if

*q*∈

*Λ*

^{ c }and \(\sigma ^{2}_{\Delta {s}}\) is the variance of the sensor position error. In (24), we substitute the sample mean and median value into

*d*

_{ i }(

*i*=1,⋯,

*M*) because the true distance values are unknown. It is assumed that

*σ*

*Δ*

*x*

_{ i }2=

*σ*

*Δ*

*y*

_{ i }2=

*σ*

*Δ*

*s*2 and

*Δ*

*x*

_{ i },

*Δ*

*y*

_{ i }and

*n*

_{ i,j }are uncorrelated in the derivation of (24), where

*σ*

*Δ*

*x*

_{ i }2,

*σ*

*Δ*

*y*

_{ i }2 are the variances of

*x*,

*y*position error of the

*i*th sensor. The algorithms used in this paper are summarized in Table 1 as follows.

Summary of the localization algorithms

Algorithm | Solution |
---|---|

LS (median) | ( |

ANLOS | \(\mathbf {x}^{({k}+1)}=\mathbf {x}^{({k})}+ \left (\sum _{{i}\in \Lambda } \frac {1}{\sigma _{{i},\text {SE}}^{2}}\left \{{\mathbf {g}_{{i}}^{({k})}}{\mathbf {g}_{{i}}^{({k})}}^{{T}}\right \}\right.\) |

\( \qquad \qquad \left. +\sum _{{q}\in \Lambda ^{c}} \frac {1}{\sigma _{{q},\text {SA}}^{2}}\left \{{\mathbf {g}_{{q}}^{({k})}}{\mathbf {g}_{{q}}^{({k})}}^{{T}}\right \}\right)^{-1}\) | |

\(\,\qquad \qquad \times \left (\sum _{{i}\in \Lambda } {\mathbf {g}_{{i}}^{({k})}}\frac {1}{\sigma _{{i},\text {SE}}^{2}}({r}_{{i},\text {SE}} -{f}_{{i}}(\mathbf {x}^{({k})})) \right. \) | |

\(\quad \qquad \quad \left. +\sum _{{q}\in \Lambda ^{c}} {\mathbf {g}_{{q}}^{({k})}}\frac {1}{\sigma _{{q},\text {SA}}^{2}}(\text {med}(\mathbf {r}_{{q},1:{P}}) -{f}_{{q}}(\mathbf {x}^{({k})}))\right)\) | |

ATLS | \((\mathbf {A}^{{T}}\mathbf {A})^{-1}\mathbf {A}^{{T}}\widehat {\mathbf {b}}\) |

Gauss-Newton (median) | \(\mathbf {x}^{({k}+1)}=\mathbf {x}^{({k})}+ \left (\sum _{{q}=1}^{{M}} \frac {1}{\sigma _{{q},\text {SA}}^{2}}\left \{{\mathbf {g}_{{q}}^{({k})}}{\mathbf {g}_{{q}}^{({k})}}^{{T}}\right \}\right)^{-1}\) |

\(\times \left (\sum _{{q}=1}^{{M}} {\mathbf {g}_{{q}}^{({k})}}\frac {1}{\sigma _{{q},\text {SA}}^{2}}(\text {med}(\mathbf {r}_{{q},1:{P}}) -{f}_{{q}}(\mathbf {x}^{({k})}))\right)\) | |

M-estimator | \(\text {min}_{\mathbf {x}} \bigg \{\sum _{{i}=1}^{{M}} \rho ({r}_{{i}}(\mathbf {x}))\bigg \}\) |

| |

| |

| |

ATWLS | \((\mathbf {A}^{{T}}{\mathbf {C}_{\widehat {\mathbf {b}}}}^{-1}\mathbf {A})^{-1} \mathbf {A}^{{T}}{\mathbf {C}_{\widehat {\mathbf {b}}}}^{-1}\widehat {\mathbf {b}}\) |

LMedS | (1) Calculate the m subsets of three measurements. |

(2) For each subset S, compute a location by trilateration | |

in closed-form LS solution (\([\widehat {{x}}_{\text {LS}}, \widehat {{y}}_{\text {LS}}]^{{T}}\)). | |

(3) For each solution, the residues | |

obtained as \(\mathbf {R}_{s}=[({r}_{1}-\widehat {r}_{1})^{2}, ({r}_{2}-\widehat {r}_{2})^{2},\cdots, ({r}_{{M}}-\widehat {r}_{{M}})^{2}]^{{T}}\) | |

where \(\widehat {{r}}_{{i}}=\sqrt {(\widehat {{x}}_{\text {LS}}-{x}_{{i}})^{2}+(\widehat {{y}}_{\text {LS}}-{y}_{{i}})^{2}}\;\; ({i}=1,\cdots,{M})\) | |

and the median of the residues is obtained. | |

(4) Find the minimum median of the residues. |

## 5 Simulation results

*M*-estimator [16] and LMedS estimator [28]. In this simulation settings, the source was assumed to be located within a 400- m

^{2}region to determine the performance over the entire area. Note that the number of sensors used in this experiment was seven. Next, ten different source locations were generated with a uniform distribution and sensors fixed, as shown in Fig. 1. Two hundred Monte-Carlo simulations were performed for each given standard deviation of the NLOS noise. The standard deviation of the LOS noise of all of the sensors was assumed to be identical. In addition, the single and omni-directional source was assumed to be in the stationary state. The MSE average was calculated as follows:

where \(\widehat {{x}}^{{\,k}}({i}), \; \widehat {{y}}^{{\,k}}({i})\) is the estimated position of the source in the *i*th position set and *k*th iteration and *x*(*i*) and *y*(*i*) indicate the *i*th true position of the source.

*ε*) was 20 %, the standard deviation of the LOS noise (

*σ*

_{1}) was 0.25 m, the bias of the NLOS noise (

*μ*

_{2}) was 1 m, sensor 3 was the LOS/NLOS sensor, and the remaining sensors were LOS sensors at which the number of measurements in each sensor was ten. It is clear that the MSE averages of the proposed methods, the ANLOS and ATWLS algorithms, are lower than those of the non-adaptive LS, adaptive two-step LS (ATLS), adaptive one-step WLS (AWLS (one-step)), Gauss-Newton methods using the sample median and

*M*-estimator. In Fig. 2b, the contamination ratio was 30 %, the standard deviation of the LOS noise is 0.75 m, and the remaining conditions are the same as those in Fig. 2 a. Figure 2 b shows that the MSE average performances of the proposed methods are much superior to those of the other methods. The weight matrix for the ATWLS algorithms performs the role of reducing the MSE average of the ATLS method and the MSE average performances of the proposed methods are nearly the same as can be seen from Fig. 2. Figures 3 and 4 assume the same condition as that in Fig. 2, with the exception that sensors 3 and 7 are the LOS/NLOS sensors in Fig. 3 and sensors 3, 6, and 7 are the LOS/NLOS sensors in Fig. 4. Again, the proposed adaptive methods using the WSE loss function outperformed the other existing methods from the results shown in Figs. 3 and 4. Figures 5, 6, 7, and 8 show the variation of the MSE average when the NLOS bias and contamination ratio is varied. The MSE average was larger as the contamination ratio and NLOS bias increased. The localization performance of the ATWLS method was superior to the existing methods excluding Fig. 8. In particular, when the contamination ratio was 50 %, the MSE average drastically increased because the contamination ratio amounts to the breakdown point of median (50 %). Figure 9 shows the MSE average as a function of the standard deviation of LOS noise (

*σ*

_{1}). The MSE average increased as the standard deviation of LOS noise increased and the ATWLS method outperformed the other existing algorithms. Figure 10 shows the MSE average as a function of the number of samples. The MSE average decreased as the number of samples increased excluding the LMedS method and the proposed ATWLS method was superior to the other existing algorithms. Figure 11 shows the MSE average of the proposed algorithms as a function of the number of sensors. In this case, the number of sensors increases from 5 to 9 and the number of LOS/NLOS sensors is fixed to three and the number of LOS sensors is increased. The standard deviation of the LOS noise was 0.75 m, that of the NLOS noise was 10 m, the bias was 1 m, and the contamination ratio was 30 %. We can see that the MSE averages of the localization decrease as the number of sensors increases. Meanwhile, Fig. 12 shows the MSE averages of the proposed methods as a function of the number of sensors when the number of the LOS/NLOS sensors increases. The number of the LOS/NLOS sensors is one when the number of sensors is five and then increases in parallel with the number of sensors. The MSE averages of the proposed methods decrease as the number of LOS/NLOS sensors increases and the decreasing rate of the MSE averages is lower compared to the case in which the number of LOS sensors increases. Figure 13 shows the MSE averages as a function of the radius of the sensor network and the MSE averages decrease as the radius of the sensor network increases. The results of Figs. 11, 12, and 13 are consistent with that of [29]; that is, as the number of sensors are larger, the geometric dilution of precision (GDOP) is lower, on the other hand, as the number of sensors is smaller, the GDOP gets higher. The GDOP metric has been used as the indicator of the localization accuracy for given deployment of GPS systems and the localization accuracy is higher as the GDOP is lower. Also, the GDOP is low when the sensors are far apart; on the contrary, the GDOP is high when the sensors are close together. Figure 14 shows the MSE averages in the presence of the sensor position error. The variance of the sensor position error was 0.5 m

^{2}, the standard deviation of the LOS noise was 0.25 m, the bias was 1 m, the contamination ratio was 30 %, and sensors 3, 6, and 7 were the LOS/NLOS sensors. The localization performance of the ATWLS algorithm with the correction for the sensor position error described in Section 4.3 is superior to the ATWLS method without the correction for the sensor position error. Furthermore, the averaged computational time of the robust localization methods is shown in Table 2 to testify whether the proposed closed-form ATWLS algorithm is more efficient than the other algorithms with respect to the computational complexity.

The computational time was averaged for 200 iterations. We can see that the averaged computational time of the ATWLS algorithm is lower than that of the other robust localization methods.

## 6 Conclusions

Robust LOS/NLOS mixture TOA source localization methods for multiple measurements using the error covariance of the sample mean and sample median were proposed. The proposed adaptive methods utilized the loss function as the WSE in which the sample mean was used when the sensor was identified as the LOS sensor, while the WSE loss function based on the sample median was employed when the testing result that the sensor is in the LOS/NLOS state is valid. The proposed estimators showed superior MSE average performances compared to those of the other localization methods using only the sample median, ATLS, and AWLS (one-step) estimators when the contamination ratio was moderate. In particular, the closed-form ATWLS method had similar MSE average performance to that of the proposed iteration-based method, preserving the advantages of low computational complexity and avoidance of the divergence problem of the solution. In addition, the proposed method was superior to the *M*-estimator and LMedS estimator.

## Declarations

### Acknowledgements

This research was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Science, ICT and Future Planning (NRF-2014R1A2A1A10049735). This research was supported by the MSIP (Ministry of Science, ICT and Future Planning), Korea, under the ITRC (Information Technology Research Center) support program (IITP-2016-H8501-16-1016) supervised by the IITP (Institute for Information and communications Technology Promotion).

### Competing interests

The authors declare that they have no competing interests.

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License(http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## Authors’ Affiliations

## References

- DJ Torrieri, Statistical theory of passive location systems. IEEE Trans. Aerosp. Electron. Syst.
**20**(2), 183–198 (1983).Google Scholar - YT Chan, KC Ho, A simple and efficient estimator for hyperbolic location. IEEE Trans. Signal Process.
**42**(8), 1905–1915 (1994).MathSciNetView ArticleGoogle Scholar - HC So, L Lin, Linear least squares approach for accurate received signal strength based source localization. IEEE Trans. Signal Process.
**59**(8), 4035–4040 (2011).MathSciNetView ArticleGoogle Scholar - C Park, J-H Chang, Shrinkage estimation-based source localization with minimum mean squared error criterion and minimum bias criterion. Digital Signal Process.
**29:**, 100–106 (2014).MathSciNetView ArticleGoogle Scholar - JA Belloch, A Gonzalez, AM Vidal, M Cobos, On the performance of multi-GPU-based expert systems for acoustic localization involving massive microphone arrays. Expert Syst. Appl.
**42:**, 5607–5620 (2015).View ArticleGoogle Scholar - A Chatterjee, F Matsunog, A Geese PSO tuned fuzzy supervisor for EKF based solutions of simultaneous localization and mapping (SLAM) problems in mobile robots. Expert Syst. Appl.
**37:**, 5542–5548 (2010).View ArticleGoogle Scholar - I Guvenc, C Chong, A survey on TOA based wireless localization and NLOS mitigation techniques. IEEE Commun. Surv. Tutor.
**11**(3), 107–124 (2009).View ArticleGoogle Scholar - AM Zoubir, V Koivunen, Y Chakhchoukh, M Muma, Robust estimation in signal processing: a tutorial-style treatment of fundamental concepts. IEEE Signal Process. Mag.
**29**(4), 61–80 (2012).View ArticleGoogle Scholar - S Zhang, S Gao, G Wang, Robust NLOS error mitigation method for TOA-based localization via second-order cone relaxation. IEEE Commun. Lett.
**19**(12), 2210–2213 (2015).View ArticleGoogle Scholar - G Wang, H Chen, Y Li, N Ansari, NLOS error mitigation for TOA-based localization via convex relaxation. IEEE Trans. Wireless Commun.
**13**(8), 4119–4131 (2014).View ArticleGoogle Scholar - RM Vaghefi, J Schloemann, RM Buehrer, in
*Proc. Positioning Navigation and Communication*. NLOS mitigation in TOA-based localization using semidefinite programming (WPNCDresden, 2013), pp. 1–6.Google Scholar - RM Vaghefi, RM Buehrer, Cooperative localization in NLOS environments using semidefinite programming. IEEE Commun. Lett.
**19**(8), 1382–1385 (2015).View ArticleGoogle Scholar - PJ Rousseeuw, AM Leroy,
*Robust Regression and Outlier Detection*(Wiley, Hoboken, 1987).View ArticleMATHGoogle Scholar - Z Li, W Trappe, Y Zhang, B Nath, in
*Proc. IEEE Int. Symp. Information Processing in Sensor Networks*. Robust statistical methods for securing wireless localization in sensor networks (IPSNLos Angeles, 2005), pp. 91–98.Google Scholar - P Huber, Robust Statistics, (Hoboken, 1981).Google Scholar
- X-W Chang, Y Guo, Huber’s
*M*-estimation in relative GPS positioning: computational aspects. J. Geodesy.**79**(6–7), 351–362 (2005).View ArticleMATHGoogle Scholar - JL Hodges, EL Lehmann, Estimates of location based on rank tests. Ann. Math. Stat.
**34:**, 598–611 (1963).MathSciNetView ArticleMATHGoogle Scholar - FR Hampel, EM Ronchetti, PJ Rousseeuw, WA Stahel,
*Robust statistics: The approach based on influence functions*(Wiley, New York, 1986).MATHGoogle Scholar - J Schroeder, S Galler, K Kyamakya, K Jobmann, in
*Proc. 4th Workshop on Positioning, Navigation and Communication*. NLOS detection algorithms for ultra-wideband localization (WPNCHannover, 2007).Google Scholar - S Kay,
*Fundamentals of statistical signal processing, Vol. II: Detection Theory*(Prentice Hall, Upper Saddle River, 1998).Google Scholar - F Gustafsson, F Gunnarsson, Mobile positioning using wireless networks. IEEE Signal Process. Mag.
**22:**, 41–53 (2005).View ArticleGoogle Scholar - U Hammes, E Wolsztynski, AM Zoubir, Robust tracking and geolocation for wireless networks in NLOS environments. IEEE J. Sel. Top. Signal Process.
**3**(5), 889–901 (2009).View ArticleGoogle Scholar - Y Feng, C Fritsche, F Gustafsson, AM Zoubir, TOA-based robust wireless geolocation and Cramer-Rao lower bound analysis in harsh LOS/NLOS environments. IEEE Trans. Signal Process.
**61**(9), 2243–2255 (2013).View ArticleGoogle Scholar - S Bartoletti, W Dai, A Conti, MZ Win, A mathematical model for wideband ranging. IEEE J. Sel. Topics Signal Process.
**9**(2), 216–228 (2015).View ArticleGoogle Scholar - P Rider, Variance of the median of small samples from several special populations. J. Am. Stat. Assoc.
**55**(289), 148–150 (1960).MathSciNetView ArticleMATHGoogle Scholar - M Sun, L Yang, KC Ho, Accurate sequential self-localization of sensor nodes in closed-form. Signal Process.
**92**(12), 2940–2951 (2012).View ArticleGoogle Scholar - KC Ho, X Lu, L Kovavisaruch, Source localization using TDOA and FDOA measurements in the presence of receiver location errors: analysis and solution. IEEE Trans. Signal Process.
**55**(2), 684–696 (2007).MathSciNetView ArticleGoogle Scholar - R Casas, A Marco, JJ Guerrero, J Falco, Robust estimator for non-line-of-sight error mitigation in indoor localization. Eurasip J. Adv. Signal Process.
**2006**(43429), 1–8 (2006).View ArticleGoogle Scholar - H Godrich, AM Haimovich, RS Blum, Target localization accuracy gain in MIMO radar based system. IEEE Trans. Inf. Theory.
**56**(6), 2783–2803 (2010).MathSciNetView ArticleGoogle Scholar