Summary
Wireless sensor network (WSN) is formed with numerous communication nodes, which plays an important role in the Internet of Things (IoT). Location‐based service is critically important for WSN; however, the nonline of sight (NLOS) condition can deteriorate the positioning precision significantly. In this paper, a robust localization algorithm based on the range measurements to deal with the mixed line of sight (LOS)/NLOS environment is proposed. Firstly, a hypothesis testing based on the data deviation is used to detect the transmission condition. For the identified LOS propagation, the measured data are processed by Gaussian mixture model (GMM) to calculate the mean and standard deviation, which can update the likelihood probability and residual by data fusion. Moreover, for the identified NLOS propagation data, the mean of every Gaussian component is processed by gray Kalman filter (GKF) to discard large outliers. Finally, maximum likelihood (ML) is adopted to derive final coordinates. The simulation results have shown that the proposed algorithm has great advantages in dealing with severe NLOS interference and has higher accuracy compared with existing classic algorithms.