Abstract
Localization is a key issue for wireless sensor network. The traditional localization methods achieve high location accuracy using received signal strength (RSS) in line of sight (LOS) environment. But the localization accuracy degrades significantly in nonline of sight (NLOS) environment. So the localization in NLOS environment is one of the most challenging for wireless sensor network. In this paper, we propose an RSS based localization algorithm in NLOS environment. A NLOS identification algorithm is firstly proposed. This algorithm does not need the parameters of the NLOS in prior. Then we correct the NLOS measurements by subtracting the mean of NLOS errors. Finally, the Kalman filter is employed to mitigate the process noise. In simulations, we demonstrate that the proposed algorithm achieves higher localization accuracy compared with other methods.
1. Introduction
The advancement in low-power circuit design, efficient wireless communication, and low cost sensor have made the wireless sensor network (WSN) an appropriate solution for many application requirements [1]. WSN has been developed for many applications such as battle field surveillance, environmental monitoring, and target tracking. The localization problem is one of the most key technologies for WSN [2].
In the sensor network, the beacon nodes have the knowledge of their own location information through global positioning systems (GPS) or human intervention. The remaining nodes (called unknown nodes) have to determine their positions based on anchor nodes. The unknown node localization can be realized by estimating the distance/angle between the beacon node and unknown node. The most common methods of measurement are received signal strength (RSS) [3], time of arrival (TOA) [4], angle of arrival (AOA) [5], and time difference of arrival (TDOA) [6]. TDOA and AOA methods are energy consuming resolution and they require extra hardware. TOA needs the high precision clock to achieve clock synchronization. So the above three methods are not suitable for low configured sensor node. As an inexpensive approach, RSS has established the mathematical model on the basis of path loss attenuation with distance, and it requires relatively lower configuration and energy. So we exploit the RSS method to measure the distance between the beacon node and unknown node. Most of the methods require that the signal travels through the line of sight (LOS) path. If the LOS path cannot be obtained, that is, in the nonline of sight (NLOS) condition, a large localization error is achieved. The NLOS propagation has been known as the major source of localization errors.
The NLOS localization problem can be categorized into two branches: NLOS identification and NLOS mitigation. The principle of the NLOS identification methods attempts to detect the propagation condition of the sensor node. Borras et al. propose a binary hypothesis test method [7] to identify the NLOS measurements. An iterative minimum residual (IMR) method which identifies the NLOS nodes has been proposed [8]. This method can significantly improve the location estimation performance in NLOS environment. Since the IMR method needs a lot of calculation for NLOS identification, a low complexity NLOS identification method which uses minimum subset is proposed [9]. A confidence criterion as the zero mean Gaussian assumption of the innovation is defined in this method in [10]. The pseudo-measured position will satisfy the confidence criterion if it is calculated from LOS environment. Otherwise, the pseudo-measured position is calculated from NLOS environment. Least squares support vector machine classifier [11] is employed to distinguish LOS/NLOS propagation and further mitigate the ranging errors in NLOS conditions. In [12], the propagation delay and signal strength measurements are firstly used to identify the LOS and objective-relative NLOS (strong NLOS). Then the constrained expectation maximum algorithm is employed to identify the LOS and sea-related NLOS (soft NLOS).
When the propagation condition has been identified, the next step is to mitigate the NLOS error and improve the localization accuracy. In [13], a novel linear programming approach is proposed to mitigate the NLOS error for sensor node localization. The LOS measurements are used to define the objective function and the NLOS measurements are used to restrict the feasible region for the linear program. And it shows that the NLOS measurements can be used to improve the localization accuracy without incurring performance degradation due to bias errors. Two iterative algorithms are developed based on expectation maximization criterion and joint maximum a posteriori maximum likelihood estimator [14]. These two algorithms approximate the ideal maximum likelihood estimation of the unknown parameters with low computational complexity. In [15], the expectation of NLOS error is estimated to correct the measurement. The NLOS error is removed by subtracting the expectation of NLOS errors. A redesigned form of the classical multidimensional scaling (MDS) algorithm [16] is proposed to handle the NLOS localization problem. A modified kernel matrix in MDS algorithm is used to allow for both distance and angle information to be processed algebraically and simultaneously. A robust multilateration algorithm [17] is introduced in NLOS environment. This algorithm is robust in comparison with traditional least squares multilateration. However, the performance of this method is severely affected by the number of NLOS measurements.
In this paper, we propose a novel RSS based localization algorithm in NLOS condition for wireless sensor network. A selective residual test based NLOS identification algorithm is firstly proposed. Then the NLOS measurements are corrected and the position of unknown node is localized. Finally the Kalman filter method is used to mitigate the process noise when the unknown node is moving in the field.
This paper is organized as follows. In Section 2 we introduce range estimation model. The proposed algorithm is presented in Section 3. Some simulation results are presented in Section 4. The conclusions are given in Section 5.
2. Ranging Model
We consider a two-dimensional sensor field, where N beacon nodes and one unknown node exist. The position of beacon nodes is
In this paper, we employ the log-normal shadowing model to describe the relationship between the RSS and distance [18, 19]. The beacon node transmits the radio signal to the unknown node. The unknown node measures the RSS. The measured RSS
From (1), the estimated range between the nth beacon node and unknown node can be expressed as
We can approximately obtain that [16]
So the estimated range can be rewritten as
3. The Proposed Algorithm
In this section, we describe the proposed algorithm in detail. The running processing of the network is as follows. The beacon nodes emit the radio signal in sequence, and the unknown node receives the signal and measures the received signal strength (RSS). The RSS is converted into distance. Then the unknown node identifies the propagation condition. The measurements which contain the NLOS error will be corrected. The unknown node estimates its position using the least square method.
As shown in Figure 1, the propagation condition identification algorithm is proposed. This algorithm consists of two steps: grouping the measurements, Gauss-Newton algorithm based initial estimation, and selective residual test based NLOS identification algorithm. The Gauss-Newton algorithm is used to estimate the initial position of each group. The residual test is employed to identify the propagation condition of beacon node. Then we correct the NLOS measurements and localize the position of unknown node using the least square method. Finally, the Kalman filter method is employed to discard the large process error.

The flowchart of the proposed algorithm.
3.1. Grouping the Measurements
Since the localization in two-dimensional fields needs at least 3 measurements, so measurements are divided into several subgroups. We have
3.2. Gauss-Newton Algorithm Based Initial Estimation
For each subgroup, we employ the Gauss-Newton algorithm based localization method to estimate the initial results. We assume that the measurements are obtained in LOS environment. According to (4), the objective function for initial estimation is established for any subgroup as follows:
The likelihood function can be expressed as
The negative log-likelihood function of (5) can be written as
We can obtain the maximum likelihood parameter estimation of θ by minimizing
The steps of this algorithm are defined as follows.
Step 1.
Choose an initial solution
Step 2.
Compute the search direction according to (8).
Step 3.
Compute
Step 4.
After the iteration, initial estimation for each subgroup can be obtained.
3.3. Selective Residual Test Based NLOS Identification Algorithm
If the propagation condition can be accurately identified, the localization accuracy can be improved significantly. In this subsection, we introduce the selective residual test based NLOS identification algorithm. This algorithm is independent of the statistical model of NLOS error. We assume that more than half of the measurements are obtained in LOS environment. Without loss of generality, we consider a common scenario, where 7 (
We can obtain 99 (
The square of the normalized residuals is defined as follows:
In order to compute
Since the true position θ is unknown, we replace
Since
According to [22], we set the threshold
We set number of
3.3.1. Identify If
We construct 7-measurement set
Step 1.
If
Step 2.
If
3.3.2. Identify if
Since 2 propagation conditions have been identified in the 7 measurements, then we identify if
Repeat these steps until all the propagation conditions of the measurements are identified. The flowchart of the selective residual test based NLOS identification algorithm is described in Figure 2.

The flowchart of the selective residual test based NLOS identification algorithm.
3.4. Measurements Correction and Least Square Localization
After identifying the propagation conditions, we can obtain the LOS measurements set
We establish the following equation set:
The linear equation
The estimated position of robot can be obtained as follows:
3.5. Kalman Filter
The state equation can be expressed as follows [23, 24]:
The measurement equation can be expressed as follows:
We can obtain the predicted state and prediction covariance as follows:
Then we can obtain the updated state estimate and updated estimate covariance as follows:
The estimated position of unknown node in Kalman filter at time k is expressed as
4. Simulation Results
In this section, we discuss the performance of the proposed NLOS identification based localization algorithm (NILA). Simulation results were obtained using MATLAB v7.1. Let us consider a scenario consisting of N beacon nodes deployed in an 80 m × 80 m space. And the obstacles are randomly deployed. The measurement noise is modeled as Gaussian distribution random variables. We compared the proposed method with the traditional Kalman filter (KF) and particle filter (PF). Table 1 presents the default parameter values in the experiments. In order to evaluate the localization accuracy of the localization methods, the following equation is used as the rule of accuracy:
Default parameter values.
Figure 3 shows the localization results in one trial. It can be observed that the proposed algorithm could localize the unknown accuracy in LOS/NLOS mixed environments. In Figure 4, the detailed localization errors in each sample point are given. We can see that the proposed method has better performance in comparison with KF and PF methods in most of the sample points.

Example of the localization results in one trial.

The localization errors in each sample point.
Figure 5 shows the relationship between the localization error and the standard variance of LOS noise. It is obvious that the localization error increases with the increment of standard variance of LOS noise. The NILA has higher localization accuracy than KF and PF, about 45.66% and 19.07%, respectively. So the localization accuracy of NILA is improved significantly in comparison with the other two methods.

The localization errors versus the standard variance of LOS noise.
Figure 6 shows the impact of mean of NLOS noise on the localization error. The results show that the mean of NLOS noise has a significant impact on KF and PF methods. The proposed NILA method has 31.35% higher localization accuracy than PF. Figure 7 shows the relationship between the localization error and the standard variance of NLOS noise. It is observed that the localization errors of all methods increase as the value of standard variance increases. And the proposed NILA owns the best performance in localization error when compared with other methods.

The localization errors versus the mean of NLOS noise.

The localization errors versus the standard variance of NLOS noise.
As shown in Figure 8, the localization accuracy will be greatly improved with the increasing number of beacon nodes. The localization errors of KF and PF decrease rapidly as the number of beacon nodes increases. On the whole, the proposed NILA owns higher localization accuracy than other compared methods.

The localization errors versus the number of beacon nodes.
5. Conclusion
In this paper, we proposed a RSS based localization algorithm to handle the problem of simultaneously localizing the unknown node in LOS/NLOS environments. The proposed method could identify the propagation conditions of the beacon nodes. And the measurements which contain the NLOS error are corrected. Finally, the Kalman filter is used to mitigate the process noise. We compared the proposed algorithm with traditional Kalman filter and particle filter. The simulation results show that the proposed algorithm achieves higher localization accuracy and outperforms other methods.
Footnotes
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
This work was supported by the Fundamental Research Funds for the Central Universities of China (N130323002 and N130323004) and Scientific Research Fund of Hebei Provincial Education Department (Z2014078).
