Abstract
Keywords
Introduction
Location information is one of the most important attributes of an object. Many important areas of human civilization, such as transportation, military, logistics, security, resource exploration, and natural environment protection, have a strong demand for the exact location information of the target. With global positioning system (GPS) as a representative, the rapid development of satellite-based positioning technology has played an important role in promoting location-based services in the outdoor environment. However, in indoor environments, such as buildings, mines, and tunnels, satellite-based positioning techniques are not available because the reference satellite signal energy is severely weakened by the building material or ground shield to the receiving threshold. 1 Thus, the target localization in indoor environments requires a solution to nonsatellite-based positioning technology.
Wireless localization technologies are effective indoor positioning methods. It can be widely used in the military, security, firefighting, process industry, health care, intelligent home, and other fields. Commonly used wireless positioning technologies include received signal strength (RSS), time of arrival (TOA), time different of arrival (TDOA), and angle of arrival (AOA). Among these methods, TOA which is based on the ultra-wide band (UWB) communication has drawn much attention due to its high ranging accuracy.
Similar to the other wireless indoor positioning technologies, TOA also suffers from nonline of sight (NLOS), which is considered to be the most important factor affecting the ranging and positioning accuracy. Therefore, the ranging and positioning accuracy improvement in NLOS condition has been the most popular research topic in TOA-based indoor positioning. The improvement in NLOS distance measurement can be classified as identification and mitigation. NLOS identification typically employs the characteristics of ranging and other measurable radio frequency (RF) signal parameters, to distinguish LOS and NLOS conditions.2–4 Previous studies have shown that the accuracy of LOS/NLOS identification can achieve up to 92%.
3
The most used RF chips with TOA measurement ability in industries are DW1000 chips, which are released by Decawave, and NanoLOC chips, which are released by Nanotron. Both these two RF chips provided the measurement of some RF signal parameters for LOS/NLOS identification, such as RSS and
The localization algorithm is another important factor that affects the positioning accuracy. The basic indoor TOA positioning algorithms include Taylor series–based estimation,11,12 geometric relations–based algorithm,13,14 maximum likelihood estimation,14,15 and least square (LS).16–19 Some improved localization algorithms, which are based on these basic ones, were proposed in the existing literatures to reduce the effect of large ranging error caused by NLOS. LS is one of the most popular algorithms adopted TOA-based indoor positioning due to its low computational complexity. Park and Chang 16 proposed an LOS/NLOS TOA source localization algorithm that utilizes the weighted least squares (WLS). However, the exact choice of the weighted value directly affects the positioning accuracy, and the exact weighting value is difficult to obtain. Wang et al. 19 proposed an optimizing reference selection criterion for the hybrid TOA/RSS LLS localization technique, which considers the measured ranges and the information on their coarse variances. With the incensement of the data dimension, the complexity of the algorithm becomes an important challenge, and the LS localization algorithm is the most commonly used algorithm in three-dimensional (3D) TOA localization. 20 The assumptions of the mean value and equal variances must be satisfied to apply LS. 21 However, in the realistic indoor environment, the distribution of distance measurement error cannot satisfy zero mean value and equal variances because of the effect of multipath and NLOS. 22 Therefore, the LS algorithm cannot obtain the optimal estimation result. Consequently, the localization system cannot achieve the highest accuracy based on LS square and the original measured distances. However, to the best of our knowledge, this mismatch was not considered in most of the existing literature of TOA-based indoor positioning.
In this article, an optimization algorithm based on nonlinear programming (NLP) is presented to optimize the distance estimation and tune the ranging error distribution to satisfy zero mean value and equal variance, thereby solving the mismatch problem. The proposed algorithm organized the key parameters of the NLP based on the features of TOA-based indoor positioning, including TOA ranging error model, NLOS identification, and geometric constraint (GC). Then, we applied the optimized distances to improve the localization accuracy of LS in 3D positioning. The performance of the distance optimization and localization is verified by simulation and field testing. The results show that the optimized ranging error successfully satisfied zero mean value and equal variances. Furthermore, the ranging and localization accuracies are significantly improved.
The remainder of this article is presented as follows: section “Problem analysis” provides the mismatch problem analysis. Section “Nonlinear programming model for measured distance optimization” introduces the nonlinear programming model of TOA distance measurement value optimization. Section “Localization algorithm” elaborates the overall solution of the localization algorithm. Section “Simulation” introduces the performance evaluation based on simulation. In section “Field testing,” optimization algorithm was validated with experimental data and analysis. Section “Conclusion” concludes this article.
Problem analysis
LS and its premise hypothesis
Gauss–Markov theorem reveals that the best unbiased linear estimator of the regression coefficient is the minimum variance estimate in the linear regression model in the zero mean value and equation variance condition.
Assuming that the target node measures distance with
After the simplification of the equation, these nonlinear equations can be transformed into a linear equation, as follows
where
These equations indicate that localization based on distances can be defined as a linear regression problem. Therefore, if the ranging error satisfies zero mean and equal variance, the optimal unbiased estimator is the LS estimator. Then, the results of the LS localization algorithm can be obtained by the following formula
where
Characteristics of indoor TOA ranging error
TOA is a method that estimates the distance by measuring the propagation time of wireless signal. The principle of TOA ranging is shown in Figure 1.4,5
where

Principle of TOA ranging. 7
TOA ranging error is derived from two different sources, as follows: pulse detection error caused by the hardware (
Multipath error (
UDP error (

LOS and NLOS scenarios. 7
According to the above analysis, indoor TOA ranging error can be divided into two cases
where
Previous studies have shown
Challenges in indoor TOA localization based on LS
Challenge 1
The mismatch between the distribution of ranging error and the Gauss–Markov hypothesis:
The analysis in section “LS and its premise hypothesis” shows that the LS localization algorithm is the best unbiased estimation only if the TOA ranging errors are zero mean and equal variance. However, according to formulas (6) and (7), the distribution of the actual TOA ranging error cannot satisfy the following assumptions: In the LOS or the NLOS scenario, the mean of the ranging error is greater than 0; thus, it does not satisfy the zero mean assumption. The ranging error cannot easily satisfy the equal variance assumption given the difference between the variances of LOS and NLOS ranging errors.
Challenge 2
The analysis in section “Characteristics of indoor TOA ranging error” shows that the large ranging error of TOA measurement is mainly caused by NLOS, which frequently appears in indoor areas. Evidently, NLOS is the main challenge to achieve high localization accuracy in TOA-based indoor positioning. It is also a challenge of the LS-based localization algorithm.
Nonlinear programming model for measured distance optimization
This article proposes a new algorithm based on multiconstrained nonlinear programming to optimize the original distances and solve the mismatch problem. The optimization process of nonlinear programming is to approach the objective function by iterating from the initial value under the constrained condition until the convergence condition is satisfied. Except the optimization algorithm, the key factors that affect the performance of nonlinear programming include the following: (1) initial value, (2) constrained conditions, and (3) objective function. The initial value specifies the starting point of the iteration. Thus, the initial value should be set to be close to the true value but not as a random value. The objective function specifies the optimum solution and determines the iterative direction of the optimization algorithm. It should be set according to the problem. Typically, nonlinear LS optimization objective function is used for indoor positioning. Therefore, the definition of initial value, constrained condition, and objective function can be regarded as modeling the nonlinear programming problem. Thus, we provide the definition of initial value, constrained condition, and objective function according to the features of TOA-based indoor positioning.
Initial value
The distributions of LOS and NLOS ranging errors can be defined as follows
According to equation (8),
We name the actual distance between the target and the base station as
where
where
Assuming that
Objective function
The objective function is selected as the nonlinear LS optimization objective function. The optimization error is defined as follows
where
Constrained conditions
The constrained conditions include the interval of distance, the Cayley–Menger determinant, and the law of tetrahedron:
1.
Therefore, the interval of the true distance
Further converted to
The interval constrain of
The
2.
Definition
In the
where
Theorem
If
It means that the distance between the
where
where
3. Tetrahedral constraints.
Theorem
As shown in Figure 3, the necessary and sufficient conditions of six edges to form a tetrahedron 24 is

Sketch map of tetrahedron.
In 3D positioning system, the target node and any three base stations can form a tetrahedron. Assuming
When formula (6) is introduced into the upper formula, the tetrahedron constraint can be obtained
Similarly, we can obtain the tetrahedral constraints
Localization algorithm
The entire solution of the localization algorithm is shown in Figure 4, including the following three steps:

Schematic diagram of the localization algorithm.
Simulation
Performances
The distribution of the ranging and localization errors is evaluated by simulation to verify whether the proposed algorithm can solve the problem of distribution mismatch and improve the ranging and localization accuracies. The performance of the proposed algorithm is compared with the other algorithm to show the improvement. For the validation of ranging accuracy, the distribution of the proposed algorithm, which is named as NLP with geometric constrain and LOS/NLOS detection (LND; NLP with GC and LND in Figure 6), was compared with the original ranging error (measured data in Figure 6), the ranging error of NLP with the GC (NLP with GC in Figure 6), the ranging error of NLOS mitigation algorithms proposed in Heidari et al. 3 (NLOS mitigation 1 in Figure 6) and Marano et al. 25 (NLOS mitigation 2 in Figure 6). For validation of localization accuracy, the distribution of localization error of the proposed algorithm (LS + NLP with GC and LND in Figure 7) was compared with LS, LS and NLP with GC (LS + NLP with GC in Figure 7), Taylor series estimation (Taylor in Figure 7), LS based on NLOS mitigation (LS + NLOS mitigation 1 in Figure 7).
Simulation settings
The simulation setting of this article includes the realization of the positioning algorithm, the distance measurement error model, and distance measurement scenarios. In the realization of localization algorithm, LOS/NLOS recognition algorithm based on RSS, which is proposed in Wann and Chin, 4 and the sequential quadratic programming (SQP) are used to implement the LND and nonlinear programming, respectively. 26 In the aspect of distance measurement error, this article adopts a typical range error model proposed in Alavi and Pahlavan, 27 with the bandwidth of 500 MHz. The model is based on the statistical data obtained in the actual office environment and has a high similarity with the ranging error distribution of the actual system. In addition, given that the RSS parameter is used in the LOS/NLOS recognition algorithm, an RSS value is generated for each set of ranging values through the IEEE802.15.4a standard UWB channel model. 28 For the simulation of measurement scenario, 100 m × 100 m × 100 m space is selected. In total, four base stations with the coordinates of (0, 0, 0), (100, 100, 0), (100, 0, 100), and (0, 100, 100) are established. The coordinates of the target nodes in the positioning are randomly generated, and a total of 1000 positioning experiments are performed, including a total of 4000 ranging values. The probability of NLOS is 32%. 28
Results and analysis

Distance error probability distribution comparison in simulation.

Comparison of cumulative error probability distribution curves in simulation.
Comparison of mean and variance of range error in simulation.
NLP: nonlinear programming; NLOS: nonline of sight; GC: geometric constraint.

Comparison of cumulative probability distribution curves in simulation.
Comparison of mean and variance of positioning error in simulation.
LS: least square; NLP: nonlinear programming; NLOS: nonline of sight; GC: geometric constraint.
According to the comparisons of ranging error and localization error, the NLOS mitigation–based algorithm and the proposed solution achieved much higher accuracy than the others. It is mainly because of that both these two kinds of algorithms can significantly improve the ranging accuracy and also make the distance measurement error to satisfy the distribution characteristics of zero mean and same variance.
Field testing
Settings
Filed testing was performed with a realistic UWB-TOA-based indoor positioning system, which is developed based on DW1000. The testing scenario is shown in Figure 8. In total, four base stations were deployed in a hall (10 m × 17 m × 4 m) located in the office building of School of Computer and Communication Engineering, University of Science and Technology Beijing. In this test, the NLOS condition was mainly caused by the human body and the pillar between the target node and the base stations. A total of 1549 localization cases were conducted. A total of 6196 measured distances and 1549 measured coordinates were obtained for the statistic of ranging accuracy and localization accuracy, respectively.

Measurement scenario of field testing.
Results and analysis
Similar to the result of simulation, the range error distribution of the proposed algorithm fits the Gaussian distribution effectively, and the mean values are mostly equal to 0, as shown in Figure 9(c). The other two algorithms are evidently unable to satisfy the assumption of zero mean and the same variance, as shown in Figure 9(a) and (b). Figure 10 shows the comparison of cumulative distribution of these five ranging errors. Table 3 compares the means and variances of the ranging errors. Figure 11 and Table 4 show the comparison between the performances of the localization errors. Similar to the simulation, the proposed solution still achieves the best accuracy in all the comparisons of field testing. However, the performance of NLOS mitigation–based solution in field testing is significantly lower than that in the simulation because the distribution of realistic ranging error is much more complex than that of simulation. Thus, the NLOS mitigation algorithms cannot estimate the ranging error accurately. The performance of the proposed algorithm in field testing is still close to that in the simulation because of the comprehensive effect of NLP algorithm and the appropriate setting of initial value, objective function, and constrained conditions. The performance comparison of field testing further indicates the necessity of matching the distribution of ranging error to Gauss–Markov theorem for LS-based indoor positioning.

Distance error probability distribution comparison in field testing.

Comparison of cumulative error probability distribution curves in field testing.

Comparison of cumulative probability distribution curves in field testing.
Comparison of mean and variance of range error in field testing.
NLP: nonlinear programming; NLOS: nonline of sight; GC: geometric constraint.
Comparison of mean and variance of positioning error in field testing.
LS: least square; NLP: nonlinear programming; NLOS: nonline of sight; GC: geometric constraint.
Conclusion
The LS algorithm is one of the commonly used algorithms in the 3D indoor TOA positioning. The biggest challenge of applying the LS algorithm in the indoor TOA positioning is that ranging error cannot satisfy the Gauss–Markov theorem, the prerequisite of which is the optimal unbiased estimation.
A range value optimization algorithm based on nonlinear programming is proposed to solve the problem on ranging error distribution that does not satisfy the zero mean and equal variance and further improve the ranging accuracy. The distance optimization is defined as an NLP problem by setting the initial value, objective function, and constrained condition according to the feature of TOA-based indoor 3D localization. Finally, the overall solution of 3D indoor TOA positioning based on the LS and nonlinear program is determined. Simulation results and field testing show that through the proposed optimization algorithm, the mismatch problem of ranging error can be successfully solved. Furthermore, the ranging and the positioning accuracies are significantly improved. The proposed method can also be applied to two-dimensional (2D) localization scenarios.
