Next Article in Journal
Flexible Stretchable Strain Sensor Based on LIG/PDMS for Real-Time Health Monitoring of Test Pilots
Previous Article in Journal
BED-YOLO: An Enhanced YOLOv10n-Based Tomato Leaf Disease Detection Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Novel Gain-Optimized Two-Step Fusion Filtering Method for Ranging-Based Localization Using Predicted Residuals

1
Faculty of Electronic Information Engineering, HuaiYin Institute of Technology, Huaian 223003, China
2
Faculty of Automation, HuaiYin Institute of Technology, Huaian 223003, China
3
Key Laboratory of Thermo-Fluid Science & Engineering of MOE, Xi’an Jiaotong University, Xi’an 710049, China
*
Authors to whom correspondence should be addressed.
Sensors 2025, 25(9), 2883; https://doi.org/10.3390/s25092883
Submission received: 1 April 2025 / Revised: 27 April 2025 / Accepted: 30 April 2025 / Published: 2 May 2025
(This article belongs to the Section Sensor Networks)

Abstract

A two-stage fusion filtering positioning algorithm based on prediction residuals and gain adaptation is proposed to address the problems of disturbance and modeling errors in the application of distance-based positioning algorithms in wireless sensor networks, as well as inaccurate initial filtering values leading to large estimation errors or even divergence. Firstly, based on parameterization methods, a pseudo linear equation is constructed from the time of arrival (TOA) and multipath delay. The weighted least squares (WLS) method is applied to obtain the initial value of target position resolution, and its performance approaches the Cramér–Rao lower bound (CRLB). Secondly, the exact position of the target is obtained using the reconstructed Gaussian white noise statistics and the Kalman filtering algorithm. The simulation results show that compared with other initial positioning algorithms, the average positioning accuracy of the proposed algorithm is improved by 28.57%, and it has a better filtering performance.

1. Introduction

Wireless sensor networks (WSNs) have functions such as wireless communication and information collection and processing. They can combine wireless communication and network technology to perceive, transmit data, and provide terminal services for the target object in a monitoring environment [1,2]. The prominent feature of WSNs applied to the Internet of Things (IoT) architecture is the random broadcasting and distributed computing of a large number of nodes. It is an unattainable advantage of other detection means using sensor nodes carrying signal processing devices to implement information collection and conversion, especially to complete specific tasks in inaccessible military, civilian, and commercial areas, such as positioning and tracking [3,4]. In various engineering fields, the integration of data-driven approaches represented by artificial intelligence (AI) and optimization techniques has shown significant potential for improving system performance. For example, these techniques have been used in thermal engineering [5,6,7] and renewable energy consumption [8,9]. Similarly, in wireless sensor networks (WSNs), advanced optimization and AI techniques can enhance the accuracy and robustness of localization algorithms, improving overall performance. Nodes are at the very end of WSN applications, and the location information of nodes or targets is related to the application quality requirements of the scene and the implementation of monitoring networks. The techniques for implementing position estimation mainly include distance, time, and angle measurement, as well as the collection, organization, and processing of other crucial information that can participate in positioning. In terms of positioning quality, qualitative judgment and quantitative calculation of performance indicators such as computational complexity and real-time requirements should also be considered [10]. The two-dimensional positioning application scenario has led to extensive applications in various industrial fields, such as highways, medicine, public places, and emergency rescue. The current highly studied three-dimensional location estimation can fully exploit the potential of location perception and realize position-based advanced service functions, for which the classification and fusion technology of positioning has emerged [11,12].
In the study of positioning problems in WSN, according to whether distance is measured, the positioning algorithm can be divided into two kinds: ranging-based and non-ranging. Generally, the ranging-based positioning method has a higher accuracy. Common ranging methods such as TOA (time of arrival), AOA (angle of arrival), TDOA (time difference of arrival), FOA (frequency of arrival), and RSS (received signal strength) belong to the ranging-based techniques.
TOA technology is widely used in target positioning scenarios with high-performance requirements in indoor and outdoor areas due to its accurate distance measurement. A positioning network can estimate the location of massive nodes or targets by calculating the arrival time received by at least three sensor nodes, or implement precise positioning using collaborative techniques, ranging and inertial combination, and combined spatial–temporal arrays [13,14,15]. For example, Garraffa et al. [16] proposed a control-theoretic framework for range-inertial localization, rigorously analyzing error dynamics and convergence properties—a theoretical cornerstone for our filtering approach. Complementary to this, Feng et al. [17] demonstrated a Kalman filter-based fusion of UWB and IMU data, effectively suppressing observation noise and enhancing robustness in indoor navigation. In positioning methods based on distance measurement or angle measurement, such as AOA, RSS, and FOA, high-precision experimental results can be achieved if two or three of them are used for mixed positioning. In [18], the author studied the optimal sensor placement strategy for single static target positioning using mixed RSS, AOA, and TOA in a 2D plane, derived the theoretical minimum trace of the Cramér–Rao lower bound (CRLB) using the optimal criterion, proposed the corresponding optimal sensor placement strategy, and finally verified the results through simulation examples. In [19], the authors used TOA and RSS measurements to accurately locate the target in a non-line of sight (NLOS) environment, enhancing positioning accuracy. Starting from the general approximation of the maximum likelihood (ML) estimation problem, the authors established the nonlinear weighted least squares (NLWLS) using the equilibrium parameter, then used semi-definite relaxation (SDR) technology to solve the NLWLS problem, and the numerical simulation proved that the proposed method significantly outperforms the existing methods.
To improve the positioning accuracy of the WSN network, Kalman filtering and particle filtering methods can also be used. The Kalman filtering is an efficient recursive filter capable of estimating the states of dynamic systems from a series of incomplete and noisy inclusive measurements and is particularly suitable for handling linear systems and systems with Gaussian white noise. Particle filtering can deal with nonlinear, non-Gaussian localization problems caused by environmental complexity (such as multipath effect, NLOS propagation). In practical applications, the two methods can also be combined to further improve positioning accuracy and robustness. The development of Kalman filtering series algorithms has gone through several stages, from the initial Kalman filter (KF) to the extended Kalman filter (EKF) for nonlinear systems, to the untracked Kalman filter (UKF), these algorithms have played an important role in their respective application fields.
Although the particle filter series algorithm is effective when dealing with nonlinear systems, the particle filter has the disadvantages of degradation and a large amount of computation, making it difficult to the strict requirements of limited positioning resources in WSN. Therefore, the Kalman filter series algorithm is the better method to deal with the positioning problem of nonlinear systems based on ranging [20,21]. The series algorithms of Kalman filtering have developed rapidly in recent years and have been applied in various data and information processing scenarios [22,23]. In the field of positioning, tracking, and navigation based on ranging technology, it is often seen that Kalman filtering has a superior performance in accurate estimation, which is used to reduce the process or measurement error, improve the positioning accuracy, and obtain satisfactory positioning tracking and navigation effects [24,25,26,27]. UKF is a filtering method for the nonlinear system and its core is the differential-free suboptimal algorithm of unscented transformation (UT), that is, from approaching a nonlinear function to approaching a probability distribution, so that the calculation process is optimized and the filtering effect is significantly improved. Therefore, many application scenarios have been developed [28,29,30,31].
Many factors in the system positioning process adversely affect the location estimation, and this paper mainly considers the decrease in localization accuracy caused by ranging error and colored measurement noise. Based on the above requirements of ranging problems and real-time positioning, this study mainly makes the following contributions:
  • Setting the distance measurement based on TOA as a Gaussian stochastic process, adopting the nonlinear system parametric method to derive the pseudo-linear equation with unknown multipath delay, then applying the weighted least squares (WLS) criterion and the effective analytical calculation of process parameters to obtain the approximate solution for the target primary position estimation that can approximate the CRLB based on TOA measurement estimation.
  • Realizing the optimal estimation, using the new Gaussian distributed white noise statistic to whiten the observed colored noise to eliminate the adverse effect of the colored noise on the filter localization, and update the Kalman filter parameters after obtaining the new measurement model.
  • Setting the correlation coupling matrix to realize the decoupling according to the independent conditions of process and observation error, to derive the filter decoupling measurement model, and then update the filter parameters.
  • Because of the problem of error in noise modeling, realizing self-optimization filtering estimation using predicting residual statistics, noise covariance, and gain update, and by compensating the estimation error again to accelerate localization convergence and enhance the robustness of the system. Finally, the feasibility and effectiveness of the positioning algorithm are verified by numerical simulation experiments.

2. Related Work

The scenario based on location information mainly appears in various application fields, and location estimation can make full use of the potential of position perception and realize location-based advanced service functions, so the technology and algorithm development on positioning have shown an amazing development speed. In [32], the authors proposed a robust localization algorithm based on a Gaussian mixture model and fitting polynomials for the positioning error problem in complex indoor environments. Firstly, the predicted and measured residues are clustered using the Gaussian mixture model (GMM) and the line of sight (LOS) probability and non-line of sight (NLOS) probability are calculated; then, the measured values are filtered through the Kalman filter (KF), variable parameter unscented Kalman filter (VPUKF), and variable parameter particle filter (VPPF); finally, position coordinate estimates are calculated using the maximum likelihood method. The simulation results showed that the proposed algorithm has a better localization accuracy and robustness than several other comparison algorithms. In [33], the authors proposed a new robust matrix approximation scheme using multidimensional similarity (MDS) analysis under non-line of sight (NLOS) propagation and applied the multiplier’s alternating direction method to solve the resulting nonlinear constraint optimization problem. The simulation results showed that the proposed method is superior to several existing methods. In the ranging positioning technology based on TOA, the time synchronization problem is relatively prominent, and when the asynchrony is serious, the positioning error will be too large or even result in positioning failure. Therefore, it is necessary to put forward the positioning algorithm to consider the synchronization problem [34]. In [35], the authors analyzed the strict time synchronization between the source and the base station required for TOA localization, and introduced the synchronization error into the TOA-based NLOS localization model, considering that NLOS propagation significantly reduces positioning precision.
Similarly, to solve the asynchronous positioning problem, in [36], considering the positioning and tracking in the application of autonomous underwater vehicles (AUVs), the authors first developed an asynchronous positioning algorithm to estimate the location of AUVs and designed a model-free tracking controller for AUVs to track the reference trajectory. In addition, they derived the convergence conditions and CRLB of the localization algorithm, constructed the Lyapunov function to analyze its stability, and verified its effectiveness through simulation experiments, using an optimization scheme to achieve high-precision positioning is an effective way to further reduce position errors. In [37], the authors studied the localization of multiple signal sources, proposed a self-clustering measurement combination method, using the source location estimation obtained by hyperbolic positioning algorithm as the clustering mode, defined the scatter of the patterns of different subsets of TOA measurements as the criterion function, adopted the three-step heuristic clustering algorithm to solve the TOA ambiguity, and analyzed the mean square error performance and computational complexity. In [38], the authors applied collaborative technology to achieve positioning and proposed a non-convex robust weighted least squares (RWLS) problem to locate multiple stationary target nodes. With the help of semi-definite relaxation technology, the RWLS problem is transformed into a convex semi-definite second-order cone hybrid programming problem, and both the simulation and actual experimental data verified the superior performance of the proposed method. Back to the positioning model itself, in [39], based on the single mobile station positioning system, according to the available measurement, including AOA, TOA, and FOA, the authors derived the corresponding pseudo linear equation, established the total least squares optimization model, and used the inverse iterative algorithm to solve the static target position with a theoretical derivation and rigorous proof to achieve CRLB performance.
The positioning algorithms based on single ranging or joint ranging listed above solve some problems from the perspective of different application scenarios, have certain applicability in specific environments, and provide ideas for future positioning exploration. With the change in scene time and space, it is still necessary to develop new technologies for different positioning environments and constantly innovate and improve them.
Kalman filtering methods have been widely applied in data and information processing scenarios of various dynamic systems. Kalman filtering in the field of positioning, tracking, and navigation has a superior performance and is used to reduce process or measurement error and improve positioning accuracy. The study of Gaussian white noise is relatively mature, but colored noise is widespread in actual localization systems, so it is necessary to study the latter [40]. One of the biggest challenges encountered in applying Kalman filtering in location-tracking scenarios based on ranging technology is the noise processing problem at the measurement end. This problem often shows us how to deal with the colored noise to make it white, to be suitable for Kalman filtering, and to obtain improved positioning accuracy and good robustness [41,42]. In [41], since the existence of colored noise in global navigation satellite system (GNSS) measurement will reduce the performance of fault detection and exclusion (FDE) algorithm based on KF, the authors proposed an FDE scheme based on improved KF, using the colored noise as a first-order self-regression model to improve the performance of FDE, and evaluated the performance of the proposed algorithm through real-time kinematic positioning application, obtaining good positioning results. In [42], considering state coupling and colored noise among system nodes, the authors designed a robust extended state Kalman filter estimation algorithm for nonlinear complex networks. The innovative measurement information subtraction method at adjacent moments deals with colored noise, which greatly reduces the influence of network bandwidth constraints, obtains upper bounds of error covariance, and achieves real-time gain optimization. The rationality and accuracy of the proposed estimator are verified by simulation.
It can be seen from the above studies that some effective methods have been developed for the problem of reducing the algorithm performance in the measurement process contaminated by colored noise. However, most algorithms still have the problem of the processed white noise sequence involving the coupling between the system process and the observation process. In addition, some problems such as the cumbersome algorithm design process and the increasing estimation cost with the sampling frequency are prominent. Therefore, the robustness and efficiency of the algorithm should be the focus of the next consideration.
UKF propagates statistical properties via no-trace nonlinear transformations and employs weighted statistical linear regression models to calculate the mean and covariance of random variables to obtain updates of the state estimates, especially suitable for target localization based on nonlinear ranging scenarios. In [43], the authors consider that the choice of process noise covariance matrix and measurement noise covariance matrix will directly affect the filtering accuracy of the algorithm, and propose using a hybrid algorithm including UKF and the genetic particle swarm algorithm to estimate several key states of the vehicle. The simulation and real vehicle test results show that the algorithm has a higher accuracy and less computational complexity than the traditional estimators based on UKF and traceless particle filters. In [44], the authors extended the special requirements for positioning application scenarios, designed and developed a positioning framework composed of three algorithms, proposed an improved Kalman filter positioning method based on UKF and PF positioning, and verified the robustness of the proposed algorithm through numerical simulation. The simulation results show that the proposed positioning algorithm can be used for target tracking, robot positioning, and other purposes.
The above UKF-based filtering improvement algorithm or the combined filtering positioning algorithm have achieved a good application effect in different positioning environments. However, some algorithms only provide beneficial exploration, but it is difficult to achieve in practice. With the change in scene time and space, it is still necessary to develop new technologies to continuously innovate and improve from the aspects of improving performance and stronger adaptability.
This work proposes a two-stage fusion filter positioning algorithm, which can be quickly converged based on the original algorithm performance and achieve the purpose of optimizing the performance. The techniques used in this paper include Gaussian noise modeling, the analytical method of weighted least squares criterion, derivation of the Cramér–Rao lower bound, colored noise signal processing, multi-source information fusion, and gain adaptive filtering, etc. Comprehensive application of these technologies in target positioning can obtain the precise position of the target, enhance the robustness of the system, and obtain a better positioning effect. The experimental results also demonstrate that the fusion algorithm is consistent with the theoretical derivation, the average localization accuracy improves, and the system has a better accuracy and filtering stability.

3. TOA Ranging Modeling and Initial Positioning

3.1. Location Information Modeling

If TOA ranging is used for positioning, assuming that the electromagnetic pulse is emitted at time t0, the arrival time of the receiving pulse at time ti, t i can be expressed as follows.
t i = t 0 + D i c
where D i is the distance between the transmitter and the receiver, and c is the light speed.
Considering the influence of path delay in the wireless signal transmission process, the transmission mode between any two points on the signal path is nonlinear propagation, which is usually processed mathematically as propagation along a straight line, thus forming a ranging error. Therefore, considering the integrated path delay influence, the wireless signal path observation equation based on TOA is as follows:
t i = t 0 + t y + D i c
where t y is the channel integrated path delay.
In this work, the 3D case is considered, where the position of the target node or the anchor node is represented by a column vector consisting of three coordinates. Let the set consisting of N target nodes be Ψ m = m 1 , m 2 , , m N , randomly or consciously deployed in a three-dimensional region. The true position of the target is represented as z = z x ,   z y , z z T , where z is unknown and its estimated position is represented as z ^ = z ^ x , z ^ y , z ^ z T . Moreover, assuming that M anchor nodes are already equipped with GPS or have obtained precise position by the positioning algorithm, the position of the anchor nodes can be expressed as m = m x , m y , m z T , and M anchor nodes can be expressed as Ψ a = a 1 , a 2 , , a M . Generally, there is M N , and there are at least 4 anchor nodes within the communication range of each target node.
The TOA-based measured distances between the target and the anchor nodes are modeled as
R i k = c t i k t 0 t y = z i m k + v i k
where is the norm operator, and v i k   k = 1 ,   2 ,   ,   M , modeled as the corresponding measurement noise, is a random variable following an independent Gaussian homogeneous distribution with a mean of zero.
The location of target nodes can be determined using target positioning technology and obtained as accurately as possible using R i k with noise. In this paper, we consider using the measurement information to implement the simultaneous estimation of z i and t y .

3.2. Positioning Algorithm Based on the Observed Pseudo-Linearized Analytical Solution

Based on the TOA measurement equation shown in Equation (3), assuming that the estimates of z i and t y are z ^ i and t ^ y , respectively, the square of Equation (3) is treated and adjusted, and set c t ^ y 2 z ^ i 2 = ϱ , then
c t i k c t 0 2 m k 2 + ϱ = 2 c t i k c t 0 c t ^ y 2 m k T z ^ i + 2 c t i k c t 0 c t ^ y v i k v i k 2
The matrix form of Equation (4) is given by
A c + 1 ϱ = A t θ + V v
where
A c = c t i 1 c t 0 2 m 1 2 c t M c t 0 2 m M 2 ,   1 = 1 1 , A t = 2 c c t i 1 c t 0 2 m 1 T 2 c c t M c t 0 2 m M T , V v = 2 c t i 1 c t 0 c t ^ y v i 1 v i 1 2 2 c t i M c t 0 c t ^ y v i M v i M 2
θ = t ^ y z ^ i T T is the unknown vector to be estimated, and V v is the noise vector.
For non-Gaussian noise V v , assuming its variance is σ n 2 , by setting a vector R v and using R v 1 / 2 to achieve non Gaussian noise processing, that is, by calculating R v 1 / 2 V v and obtaining standard Gaussian noise, it should be multiplied R v 1 / 2 at both ends of the Equation (5). This is a general process for handling non Gaussian noise.
Assuming E V v V v T / σ n 2 = R v , non-Gaussian noise is processed into Gaussian noise, yielding
R v 1 / 2 A c + R v 1 / 2 1 ϱ = R v 1 / 2 A t θ + R v 1 / 2 V v
Thus, the estimate of θ is
θ ^ = α + β ϱ
where
α = A t T R v 1 A t 1 A t T R v 1 A c β = A t T R v 1 A t 1 A t T R v 1          
then
R v = E V v V v T / σ n 2 = 4 z ^ i m 1 2 + 3 σ n 2 σ n 2 σ n 2 4 z ^ i m M 2 + 3 σ n 2
The initial value of R v is usually set to be the unit matrix I, and weighted least squares are applied for the R v . There is usually no prior value for σ n 2 in the actual localization, and in subsequent calculations, R v is set to
R v d i a g 4 c t i 1 c t 0 c t ^ y 2 , , 4 c t i M c t 0 c t ^ y 2
Set the estimate of ϱ as ϱ ^ , then
β T B b ϱ ^ 2 + 2 β T B α 1 ϱ ^ + α T Q α = 0
where B = 1 0 0 0 1 0 0 0 1 . Therefore, we obtain the ϱ ^ by analytical solution and can then compute θ ^ . Register 2 β T B α 1 2 4 β T B β α T Q α = γ ; then, for the case of β T B β = 0 , the solution of ϱ ^ is
ϱ ^ = α T B α 1 2 β T Q α
Thus, the localization solution is
θ ^ = t ^ y z ^ i = α + β α T B α 1 2 β T B α
If β T B β 0 and γ = 0 , there is a unique solution of ϱ ^ , and the localization solution is
θ ^ = t ^ y z ^ i = α + β 1 2 β T B α 2 β T B β
If β T B β 0 and γ > 0 , there are two different solutions of ϱ ^ , and the localization solution is
θ ^ = t ^ y z ^ i = α + β 1 2 β T B α ± 2 β T B α 1 2 4 β T B β α T B α 2 β T B β
Solving the uniqueness problem of the localization solution can be obtained using the least squares criterion based on the TOA measurement.
min t ^ y , z ^ i k = 1 M z ^ i m k c t i k + c t 0 + c t ^ y 2
In other cases, there is no effective solution, and at this time, the effective measurement value cannot be obtained, so other alternative algorithms can be sought to solve it. The details of the initial localization algorithm steps are illustrated in Algorithm 1.
Algorithm 1. The initial localization algorithm
1: Initialization, set R , calculate α , β , and ϱ .
2: If γ < 0 , then select the other algorithm as an alternative.
3: If β T B β = 0 , then have θ ^ from Equation (10).
4: If γ = 0 , then have θ ^ from Equation (11).
5: If γ > 0 , then obtain two θ ^ from Equation (12).
6: the uniqueness of the solution can be solved by Equation (13).
7: return.

4. Self-Optimized Target Filter Localization Method with Colour Noise Observation

In terms of processing strong nonlinear systems such as target positioning systems, the significant advantages of the unscented Kalman filter (UKF) algorithm are filtering accuracy, algorithm stability, and computational load. As with the basic linear filtering method, for the UKF algorithm, we also assume that the process noise and observation noise are Gaussian white noise. However, in the location tracking application, influenced by the environment and facilities, the algorithm model will include colored noise characteristics, which may usually affect the filter accuracy or directly lead to filter divergence.

4.1. Filter Localization Problem Modeling and the Basic UKF Algorithm

4.1.1. Filter Localization Problem Modeling

If a target moves in a constant straight line in a short period, the acceleration is theoretically 0. But in practice, the acceleration of the target affected by itself and the environment is abstracted as a random variable, which can be modeled as a zero-mean Gaussian white noise process at time t, namely x ¨ = t , whose mean is E t = 0 and covariance is E t τ = q t δ t τ , where δ t τ = 0 at t τ and δ t τ = 1 at t = τ ; that is, the white noise is only correlated with its current moment.
Suppose that the position coordinates and speed of the target in the 3-D system are x , y , z and v x , v y , v z , respectively, and its state vector can be expressed as X = [ X p , X v ] , where X represents the state vector of the positioning system, X p = x y z T , and X v = v x v y v z T . Then, the continuous-time equation of the state of the system is expressed as follows:
X ˙ t = A X t + B W t
where A represents the state transition matrix, B is the process noise allocation matrix, and W(t) represents the process noise, which is a mutually independent white noise vector component with a zero-mean Gaussian distribution. To facilitate digital filtering estimation, the discretized equation of state is set as
X k + 1 = f X k + W k = F X k + B W k
where F = 1 3 × 3 T 3 × 3 O 3 × 3 1 3 × 3 represents the state transition matrix from discrete time k to k + 1; k represents the discrete time; T represents the sampling time; X k + 1 represents the state vector of the system at the discrete time k + 1; B represents the process noise allocation matrix from discrete time k to k + 1; and W k represents the process noise at discrete time k, which satisfies E W k = 0 and c o v W k W j = Q k δ k j .
The measuring device can obtain the distance information from the anchor node to the target. For the TOA of the received signal at the anchor node, the distance was calculated using the equation d = c T = z i m k . Thus, the distance measurements can be modeled as
d = h x = c T = z i m k
where h x is a nonlinear function of the calculated distance information. Considering the observation error of the measurement equipment, the following observation equation can be established
Z k = h X k + V k
where f X k is the vector of nonlinear observation functions, and V k is the observation noise vector of the measurement device.

4.1.2. The Basic UKF Algorithm

The unscented transformation (UT) can directly find the mean and covariance of the target distribution, avoiding the approximation of nonlinear function, so the unscented filtering effect is next only to particle filtering, but the computational load is less, which is more suitable for low-dimensional strong nonlinear systems such as ranging positioning.
For KF class filtering, we consider only the additive noise, namely, both W k and V k are zero-mean Gaussian white noise. The process noise variance of the positioning system is
        E B k W k B k W k T = E B k W k W k T B k T = E B k k B j T = Q k δ k j
where δ j is the K r o n e c k e r δ function, taking 1 if k = j and 0 if k j . The variance of the observed noise V k is R k , which satisfies E V k V j T = R k δ k j , and assumes that W k is not correlated with V k .
In this study, a scaled UT transformation method called SUT transformation is adopted to give full play to the filtering performance. The sigma points χ k 1 0 , χ k 1 1 , , χ k 1 2 n are selected according to the selection rule using Equation (19).
χ 0 = x ¯ , χ i = x ¯ + n + λ P x i χ n + i = x ¯ n + λ P x i , , i = 1 , , n
Using Equation (20) to determine the weight value w 0 , w 1 , , w 2 n ,
w 0 ( m ) = λ / ( n + λ ) , w 0 ( c ) = λ / ( n + λ ) + ( 1 α 2 + β ) w i ( m ) = w i ( c ) = 1 / ( 2 n + 2 λ ) , , i = 1 , , 2 n
where λ = α 2 ( n + κ ) n . We set the value range of parameter α as 10 4 α < 1 , κ we usually select as 0 (state dimension N 3 ) or 3 n (state dimension N < 3 ), and we select β = 2 when the noise is a Gaussian distribution. · i represents column i of the matrix, and each sigma point constitutes each column of the sigma matrix.
The computational flow of the basic UKF algorithm is described as follows:
(1) Initialization
Step 1: Initialize the state X ^ 0 and its covariance P 0 , Q 0 , and R 0 ; X ^ 0 is the state estimation vector at the initial time (time 0); P 0 is the state covariance matrix at the initial time, Q 0 is the initial process noise variance matrix; and R 0 is the initial observation noise variance matrix. For a series of moments k, the loop proceeds from the algorithm Step (2) to Step (6).
(2) Prediction
Step 2: The sigma point nonlinear transformation is performed according to the estimated mean X ^ k 1 , the covariance matrix P k 1 , and the system dynamic model, that is
χ ^ k k 1 i = f χ k 1 i ,   i = 0 , , 2 n
Step 3: For the state mean and covariance, the predicted values are given by Equations (22) and (23), respectively.
X ^ k k 1 = i = 0 2 n w i ( m ) χ ^ k k 1 i
P k k 1 = i = 0 2 n w i ( c ) χ ^ k k 1 i X ^ k k 1 ( χ ^ k k 1 i X ^ k k 1 ) T + Q k 1  
(3) Updating
Step 4: The sigma point nonlinear transformation is performed according to the measurement model, i.e.,
Z ^ k k 1 i = h χ ^ k k 1 i ,   i = 0 , , 2 n
Step 5: Measurement predicts the mean, innovation covariance, mutual covariance between state and measurement, and filter gain as follows:
Z ^ k k 1 = i = 0 2 n w i ( m ) Z ^ k k 1 i
S k = i = 0 2 n w i ( c ) Z ^ k k 1 i Z ^ k k 1 ( Z ^ k k 1 i Z ^ k k 1 ) T + R k
C k = i = 0 2 n w i c χ ^ k k 1 i X ^ k k 1 Z ^ k k 1 i Z ^ k k 1 T  
K k = C k S k 1
Step 6: The mean and covariance matrix of the posterior state estimation at time k are given by Equations (29) and (30), respectively.
X ^ k = X ^ k k 1 + K k Z k Z ^ k k 1
P k = P k k 1 K k S k K k T

4.2. Nonlinear Filtering of the Localization System Based on the Whitening of the Colored Noise

4.2.1. Colored Noise Modeling and Whitening-Based Filtering Methods

The observed noise based on TOA measurement mainly refers to the colored noise, which can achieve the optimal estimation performance under the framework of the KF algorithm. Using a time-series analysis model, a smooth colored noise sequence can be composed of related sequences and white noise at each time, which is called an autoregressive sliding average model ARMA (p, q). In this paper, q = 0, p = 1, and colored noise are modeled as in the AR (1) model.
The output of Gaussian distributed white noise after passing the first-order linear filter is the colored noise V k , which can be expressed as
V k = ð V k 1 + ν k
where ð = 1 T / τ , ν k = ( T / τ ) θ k , ν k is the Gaussian white noise with a mean of 0 and a variance of R k = R r ( T / τ ) 2 , where R r is the variance of the Gaussian distribution θ k .
V k in the system observation model is a colored noise vector, which is whitened so that the noise condition meets the UKF application requirements to obtain a good performance.
Consider the discretized system states and the observed model as follows:
X k = F k 1 X k 1 + B k 1 W k 1
Z k = H k X k + V k
Then, the colored noise V k = Z k H k X k ; considering the colored noise V k 1 , the corresponding observation model is as follows:
Z k 1 = H k 1 X k 1 + V k 1 V k 1 = Z k 1 H k 1 X k 1
Then,
ð V k 1 = ð Z k 1 ð H k 1 X k 1
According to Equations (32)–(35), ( V k ð V k 1 ) -type Gaussian distribution white noise is reconstructed, and we can obtain the following:
v k = V k ð V k 1 = Z k H k X k ð Z k 1 ð H k 1 X k 1 = Z k ð Z k 1 X k 1 H k F k 1 ð H k 1 + H k B k 1 W k 1
Equation (36) can be abbreviated as
Z k z = H k h X k + V k v
where
Z k z = Z k ð Z k 1 H k h = H k F k 1 ð H k 1 V k v = H k B k 1 W k 1 + v k
Here, V k v is the new noise, and its mean value is
E V k v = E H k B k 1 W k 1 + v k = 0
That is, V k v is the white noise with a mean of 0, which realizes the colored noise whitening processing.
The variance of V k v is
E V k v V k v T = E H k B k 1 W k 1 + v k H j B j 1 W j 1 + v j T = δ k j H k Q k 1 H j T + R k
Therefore, after the whitening of the colored noise, the filtering parameters can be updated as shown in Equations (40)–(43).
χ ^ k k 1 i = F k 1 χ k 1 i ,   i = 0 , , 2 n
Z z ^ k k 1 i = h χ ^ k k 1 i = H k h χ k 1 i ,   i = 0 , , 2 n
Z ^ k k 1 = i = 0 2 n w i ( m ) Z z ^ k k 1 i
S k = i = 0 2 n w i c Z z ^ k k 1 i Z ^ k k 1 Z z ^ k k 1 i Z ^ k k 1 T + R k r
Here,
R k r = H k Q k 1 H j T + R k

4.2.2. Noise Decoupling Filtering Algorithm

Since UKF is based on the framework of the KF filter, after the whitening of the colored observation noise, the covariance of the process noise W k and the observation noise V k v is E W k V k v T = E W k ( H k B k W k + v k ) T 0 , and there is a coupling between the observation noise and system noise, which needs to be decoupled to continue Kalman filtering. After the whitening of the colored observation noise, the discretized system state and the observation model are shown in Equations (45) and (46).
X k = F k 1 X k 1 + B k 1 W k 1
Z k z = H k h X k 1 + V k v
For the noise coupling of the state and the observation, the new observation model is set as
Z ˘ k z = Z k z + V ˘ k v
where Z k z = H k h X k 1 + V k v .
Setting the noise coupling matrix of the state and the observation be O k 1 , then the system state is expressed as
X k = F k 1 X k 1 + B k 1 W k 1 + O k 1 V ˘ k v
and there is
Z k z = H k h X k 1 + V k v    
X k = F k 1 X k 1 + B k 1 W k 1 + O k 1 V ˘ k v
For the system process and observation model, Equations (48)–(50) are combined, and we can obtain Equation (51).
X k = F k 1 f X k 1 + O k 1 Z k z + Ε k e
where
F k 1 f = F k 1 O k 1 H k h
Ε k e = B k 1 W k 1 O k 1 V k v
The covariance matrix of the process error Ε k e and the observation error V k v is given as follows:
E B k 1 W k 1 O k 1 V k v V k v T = E B k 1 W k 1 V k v T E G k 1 V k v V k v T       = E B k 1 W k 1 V k v T G k 1 E V k v V k v T
Let E ( B k 1 W k 1 O k 1 V k v ) V k v T = 0, then the process noise and the observation noise are independent of each other, that is
O k 1 E V k v V k v T = E B k 1 W k 1 V k v T
and
O k 1 = E B k 1 W k 1 V k v T E V k v V k v T 1
The new state equation and observation equation of the decoupled system are
X k = X k 1 F k 1 O k 1 H k h + O k 1 Z k z + W k 1 w
Z k z = H k h X k 1 + V k v    
where W k 1 w = B k 1 W k 1 O k 1 V k v .
The one-step prediction state vector of the new model is
X ^ k k 1 x = F k k 1 x X ^ k 1 + O k 1 V k v
The one-step prediction covariance matrix of the state is calculated as follows:
P k k 1 p = E X k X ^ k k 1 x X k X ^ k k 1 x T = E X k X ^ k k 1 x X k T X ^ k k 1 x T = E X k X k T + X ^ k k 1 x X ^ k k 1 x T X k X ^ k k 1 x T X ^ k k 1 x X k T = F k k 1 O k 1 H k h P k 1 F k k 1 O k 1 H k h T + Q k 1 + O k 1 R k r O k 1 T N k O k 1 T O k 1 N k T
where
N k = E B k 1 W k 1 V k v T
R k r = E V k v V k v T
P k k 1 p can be abbreviated as
P k k 1 p = F P k 1 F T + Q k 1 q
where
F = F k k 1 O k 1 H k h
Q k 1 q = Q k 1 + O k 1 R k r O k 1 T N k O k 1 T O k 1 N k T
Therefore, the filtering process can be updated as follows:
K k = P k k 1 p H k h T ( H k h P k k 1 p H k h T + R k r ) 1
X ^ k k 1 x = F k k 1 x X ^ k 1 + O k 1 Z k z
P k k 1 p = F P k 1 F T + Q k 1 q
The mean and covariance matrix of the posterior state estimation at time k of the system are
X ^ k = X ^ k k 1 x + K k Z k z Z ^ k k 1
P k = P k k 1 p K k S k K k T

4.2.3. A Nonlinear Filtering Process Based on a New Measurement Model of the System

In summary, the UKF filtering algorithm process after denoising processing and removing noise correlation are as follows:
(1) The initialization state X ^ 0 and its covariance P 0 , Q 0 , and R 0 .
(2) According to the estimated mean X ^ k 1 and covariance matrix P k 1 at time k−1, the sigma points and weights are selected. After the nonlinear transformation of the sigma points, the state prediction means X ^ k k 1 and the prediction covariance P k k 1 are obtained.
(3) According to the new measurement model of the system, the nonlinear transformation of the sigma point is carried out to obtain the measurement prediction mean Z ^ k k 1 , the innovation covariance S k , the new step prediction state vector X ^ k k 1 x , the prediction covariance matrix P k k 1 p , and the filtering gain K k .
(4) Finally, the mean of state estimation X ^ k and the covariance matrix P k at time k are updated.
Considering that the initial stage of filtering is sensitive to noise, it is easy to cause large errors in the filtering results and this can even lead to filter divergence. Therefore, the above initial positioning value is used as the initial value of UKF for filtering positioning.

4.3. Self-Optimizing Parameter Filtering Algorithm Based on Prediction Residuals

The predicted residual statistic is introduced to describe the random influence of the system state. By setting the threshold parameters, the calculated value and estimated value of the covariance matrix are used to judge the prediction error, and the self-optimization parameters are set to optimize the filter gain matrix in real time to enhance the robustness of the system. Set the prediction residual statistics to be
Z = Z k z H k h X k 1
Then, the covariance matrix is as follows:
P k p = H k h P k k 1 p H k h T + R k r
The self-optimization parameter is set to μ k and T r · represents the trace operation. μ k can be determined according to the following method: when Z T Z < T r P k p , it means that the state prediction error is small, take μ k = 1 ; otherwise, the state prediction error is large, take μ k = T r P k p / Z T Z . The observation accuracy can ensure that T r P k p is not too small, so the weight of the observation value with higher accuracy will not be reduced and the filtering error will be reduced.
We use the filter gain matrix to update the parameters and the self-optimization method to filter the noise modeling error. The filter gain is shown as follows:
K k = 1 μ k P k k 1 p H k h T H k h 1 μ k P k k 1 p H k h T + R k r 1 1
where μ k is the self-optimization parameter and 0 < μ k 1 .
The diagram of the Kalman filter process based on the self-optimization parameters is shown in Figure 1.

5. Positioning Performance Evaluation

To evaluate and compare the performance of the positioning algorithm, the relevant evaluation indicators and comparison algorithm are briefly described as follows.
(1) RMSE
The commonly used evaluation indicator representing the estimated performance is the root mean square error (RMSE). If the estimated multipath delay and location are t ^ y and z ^ i , respectively, the RMSE representing the multipath delay and location estimation performance of the target node are shown in Equations (68) and (69), respectively.
R M S E t ^ y = 1 M i = 1 M E t ^ y t y 2
R M S E z ^ i = 1 M i = 1 M E z ^ i z i 2
(2) CRLB
The CRLB represents the bound of the estimated error covariance matrix of any unbiased estimate of an unknown parameter vector, which is equal to the inverse of the Fisher information matrix (FIM), and the FIM is created by the probability density function (PDF). The CRLB is briefly described below to compare algorithms.
The actual position coordinate of the target to be estimated is set to z i = z x i , z y i , z z i T , and the estimated position is marked as p i = p x i , p y i , p z i T . For non-random vector parameters, the CRLB is expressed as follows:
E p i z i ( p i z i ) T F I M 1
where the PDF of the t i k is
p t i k t y , u i = 1 2 π σ n 2 M exp k = 1 M 1 2 σ n 2 c t i k c t 0 c t y p i z k 2
The corresponding Fisher information matrix is expressed as follows:
F I M = E 2 ln p τ p 2 2 ln p τ p p x i 2 ln p τ p p y i 2 ln p τ p p z i 2 ln p p x i τ p 2 ln p p x i 2 2 ln p p x i p y i 2 ln p p x i p z i 2 ln p p y i τ p 2 ln p p z i τ p 2 ln p p y i p x i 2 ln p p z i p x i 2 ln p p y i 2 2 ln p p z i p y i 2 ln p p y i p z i 2 ln p p z i 2
Therefore, the CRLB of time delay and position error variance is shown in Equations (73) and (74), respectively.
C R L B τ p = F I M 1 1,1
C R L B p i = F I M 1 2,2 + F I M 1 3,3 + F I M 1 4,4
where F I M 1 is the inverse matrix of F I M , F I M 1 i , j is the element of the matrix F I M 1 in row i and column j, and for simplicity, we do not list the closed expression for the full CRLB here. The CRLB of multipath delay and localization performance discussed above will be used in the simulation later in this paper to compare the proposed algorithm with other existing algorithms.

6. Numerical Simulation and Analysis

6.1. Initial Positioning Simulation

This section evaluates the positioning performance of the proposed positioning algorithm through simulation. Assuming that the measurement error is an independent and identically distributed zero-mean Gaussian vector, the proposed algorithm is run on the target node on the wireless network. At the same time, it is assumed that the time of running the algorithm independently is less than the network data update time; that is, the data from the neighbor nodes are received, and the time is kept unchanged to obtain more accurate and effective positioning results.
The purpose of the simulation setup is to test the relationship between the convergence estimation performance of the proposed algorithm and the measurement error value. The simulation scenario is set as follows: the wireless network consists of nine nodes, of which one target node needs to be located, and the remaining eight anchor nodes are in the area that can normally participate in the positioning. Table 1 shows the true location of nine nodes in the wireless network, where node 6 is the target node to be located, and the remaining nodes are anchor nodes, which can achieve TOA distance measurement with the target node.
The following WLS algorithm and RLS algorithm are described for performance comparison with the algorithm in this paper.
(1) WLS algorithm
It is assumed that there are N reference nodes in the network marked as R i ( q x k , q y k , q z k ) , the measurement distance from the reference node to the unknown node U ( z x i , z y i , z z i ) is d i , and the vector to be estimated is from the reference node is denoted as θ = p x i , p y i , p z i T . The measurement equation is
d ^ i = d i + v i ,   i = 1 , 2 , , N
where d i = p i z k , and v i is the measurement error. Assuming that h is the observation and b is the observation matrix, the positioning model can be abbreviated as
h = b θ + v
Therefore, the solution of WLS is
θ ^ = b T W b 1 b T W h
where W = c o v 1 v is a weighted matrix and is required to be symmetric and positive definite. In practical applications, if the statistical characteristics of errors are unknown, W can be set as a unit matrix, and its value can be taken as W = d i a g 1 / d 1 , 1 / d 2 , 1 / d N .
(2) RLS algorithm
Let θ ^ k be the estimated value obtained by the least squares algorithm using the first k observation data. The measurement process is modeled as follows:
h k = b k θ k + v k
Using the RLS estimation algorithm with a forgetting factor, the measurement error cost function is as follows:
J θ k = 1 2 k = 1 n λ n k h k b k T θ ^ k 2
The value of θ k that minimizes the cost function is the estimated value of θ ^ k , so the recursive equation of the RLS algorithm with the forgetting factor is as follows:
θ ^ k = θ ^ k 1 + a k h k b k T θ ^ k 1
where a k is the recursive gain matrix, a k = φ k 1 b k λ I + b k T φ k 1 b k 1 , φ k is the covariance matrix φ k = I a k b k T φ k 1 / λ , and λ is the forgetting factor, λ 0 , 1 .
When the network is deployed according to Table 1, the location estimation performance of the three algorithms running on the target node 6 is as shown in Figure 2. The curves in the figure are the result obtained by taking the average value of the simulation after 500 times of independent operation.
It can be seen from Figure 2 that all algorithms can locate normally within a certain range of RMSE measurement errors based on TOA. The localization performance of the proposed algorithm is very close to that of CRLB, and better than that of the WLS algorithm and the RLS algorithm.

6.2. Filtering Simulation

6.2.1. Experimental Environment

The target is set to perform uniform linear motion in the three-dimensional plane. The starting position is set to (30, 0, 2), and the unit is m. That is, the real trajectory of the target motion is set to perform uniform linear motion. The motion speed ( v x , v y , v z ) of target is set to (15, 0, 10) and the unit is m / s . The disturbance acceleration variance ( a x , a y , a z ) of the target is ( 2 / 3 , 2 / 3 , 2 / 3 ) , the unit is ( m / s 2 ) 2 , and the sampling period is 0.1 s. The target trajectory is shown in Figure 3.
The TOA ranging error is set as the output of the Gaussian distribution white noise through the first-order linear filter, which can be regarded as the colored noise driven by the white noise. The mean value of the white noise is set to 0, and the standard deviation is 2 m/s. The sampling period is set to 0.1 s, and the total simulation time is 500 s. The standard deviation of TOA colored noise is 1 m, as shown in Figure 4.

6.2.2. Target Observation and Filtering Results

The target is set to perform uniform linear motion in the three-dimensional plane, and the starting position is set to (30, 0, 2), (unit: m). The UKF algorithm based on colored noise processing is used to estimate the trajectory of the target motion. The target and the estimated trajectory are shown in Figure 5, which clearly shows that the estimation of the target motion trajectory by the filtering algorithm in this paper is close to the actual trajectory.

6.2.3. Comparison of Filtering Results Based on White Noise and Colored Noise

The sampling period is set to 0.1 s, and the filtering estimation results of white noise and colored noise are compared. The estimation results of the two algorithms are shown in Figure 6 by the position errors in the x-axis direction, the y-axis direction, and the z-axis direction, respectively. The phase performance of filtering errors is more complex, but the overall trend shows that the filtering estimation accuracy after colored noise processing is higher. The mean and standard deviation of the errors of the two algorithms in the three directions of the rectangular coordinate axis are shown in Table 2, which shows that the filtering performance of the processed colored noise is high, and the standard deviation has been maintained at a low level.

6.2.4. Prediction Error and Filtering Error

Set the target to perform uniform linear motion. The starting position of the target is now set to (30, 0, 2), (unit: m). The simulation results show that the standard deviations of the prediction error and the filtered position error are 0.817 and 0.362, respectively, under the condition of colored noise. The position error curves in both cases are shown in Figure 7.

6.2.5. RMSE Error and Analysis Based on Colored Noise Processing

The RMSE is used to calculate the error between the target estimation and the actual position. Under the premise that the observation noise is a colored noise vector, the environmental parameters are set as the same as the previous uniform linear motion, and the basic UKF, the non-self-optimizing UKF, and the self-optimizing UKF algorithm are run, respectively. The results are shown in Figure 8.
In the total simulation time of 100 s, the mean values of RMSE of the target are 0.32 m, 0.35 m, and 0.67 m, respectively. The results of Figure 9 show that in the positioning based on TOA ranging, the observation with colored noise will seriously affect the positioning accuracy, and the basic KF algorithm has large filtering errors and a poor stability. The filtering algorithm in this paper can reduce the positioning error caused by colored noise and has a good stability. The filtering algorithm in this paper improves the filtering accuracy by 52.23% compared with the basic KF algorithm.

6.2.6. Filtering Results and Analysis Under Different Initial Positioning Conditions

In the actual ranging-based positioning system, there is always an error between the given initial state value and the optimal initial value required for filtering, which will affect the overall filtering performance. Choosing an accurate initial value of the filter can not only eliminate the adverse effects of the initial value error on the filtering process but also ensure the fast convergence of the filtering results.
The experimental environment is set as follows: the target moves in a uniform linear motion in the three-dimensional plane, and the starting position of the target is accurately estimated by the TOA measurement of the M anchor nodes received by Algorithm 1 as ( x ^ 0 , y ^ 0 , z ^ 0 ) , and other settings remain unchanged.
The definition of RMSE is used to calculate the error between the target estimation and the actual position on the x-axis and the y-axis, respectively. Under the premise that the observation noise is a colored noise vector and the parameter setting environment is the same, the self-optimized UKF algorithm based on WLS initial positioning and the self-optimized UKF algorithm based on the parameter analysis initial positioning in this paper are run, respectively, as shown in Figure 9.
It should be noted that the error of the initial positioning in the initial stage is smaller than that of other algorithms without initial positioning, and the error in the steady state is slightly smaller than that of other algorithms without initial positioning.
From the simulation results of Figure 9, in the total simulation time of 200 s, the mean values of RMSE obtained by the two algorithms are 0.051 m and 0.072 m, respectively, and the filtering accuracy is improved by 28.57%. The standard deviation of filtering is 0.418 m and 0.573 m, respectively, which shows that the algorithm in this paper not only has a high positioning accuracy, but also shows that the filtering performance of the initial positioning in this paper is high, and the standard deviation has been maintained at a low level.
The above statistical data can demonstrate that under the same conditions, the algorithm proposed in this paper selects more accurate initial filtering values that are closer to the optimal initial values required for filtering, which can simulate the negative impact of initial value errors on filtering performance. However, based on WLS positioning, there is a significant error between the initial values and the optimal filtering initial values. Therefore, the algorithm proposed in this paper can achieve a higher filtering accuracy, as evidenced by the results shown in Figure 9.

6.2.7. Computation Time

To analyze and compare the complexity of the algorithms proposed in this article, we calculated the average running time of the algorithms. The data simulation processing platform consists of a PC with the following parameters: Intel (R) Core (TM) i7-8700 CPU @ 3.20 GHz, 16.0 GB RAM, 64-bit operating system based on x64 processor, and MATLAB 2019A as the software testing environment for executing the simulation process. The simulation scenario is described in Section 6.2.6. The self-optimized UKF algorithm based on WLS initial positioning and the self-optimized UKF algorithm based on parameter analysis initial positioning in this paper are independently run 50 times each. The average positioning running time is shown in Table 3. The positioning running time of the two algorithms in the self-optimizing UKF algorithm stage is the same. In the initial positioning stage, the initial positioning algorithm proposed in this paper improves the positioning accuracy, but at the same time, it also comes at a slightly higher cost of increased running time. Therefore, under the condition of limited and enough computing power, it is worthwhile to use the algorithm proposed in this paper for higher accuracy positioning.

7. Conclusions

In this paper, a gain-adaptive two-stage fusion filtering localization algorithm based on prediction residuals is proposed. Firstly, based on the Gaussian noise observation model, the pseudo-linearization equations from TOA measurements and multipath time delays are derived using the nonlinear system parameterization method. The WLS criterion and effective analytical calculation are used to obtain an approximate analytical solution that approximates the CRLB of the target position estimation, which is used as a Kalman filter after the initial positioning input. In the final positioning stage, the colored noise measurement information is processed by reconstructing the Gaussian distribution white noise statistics, and the new measurement model is derived. Subsequently, the Kalman filtering algorithm is used to implement multi-source information fusion, and the new observation is received for filtering error correction. This study explores the construction of measurement models based on time of arrival (TOA) measurement and multipath delay to achieve localization. In order to compensate for modeling errors caused by noise, observation values are introduced to predict residual statistics, covariance matrix tracking operations, and gain matrices in self-optimizing filters to obtain the accurate position of the target, thereby enhancing the filtering performance of the localization system for time measurement errors. The positioning effect of the proposed algorithm is verified by simulation experiments. The experimental results show that compared with other initial positioning algorithms, the average positioning accuracy of the fusion algorithm in this paper is improved by 28.57%, exhibiting better accuracy and filtering stability. In this work, additive colored noise in the localization model is analyzed and whitened, enabling the system to meet the Kalman filter requirements and achieve high-precision estimation. However, non-additive (e.g., multiplicative) effects arise in practical positioning scenarios. Future work will focus on analyzing and whitening non-additive noise to further improve the Kalman filtering performance. Furthermore, extending the proposed framework to handle complex motion trajectories (e.g., circular or nonlinear patterns) represents a critical direction for real-world applications, as such trajectories inherently exist in cluttered environments. This extension will require the development of adaptive motion pattern models and corresponding uncertainty quantification methods to address dynamic constraints under non-ideal path conditions.

Author Contributions

Conceptualization, B.C. and X.Z.; methodology, B.C. and X.Z.; validation, X.Z.; writing—original draft preparation, B.C. and N.S.; writing—review and editing, N.S. and H.N.; visualization, H.N.; funding acquisition, N.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China (No. 61702228) and the Natural Science Foundation of the Jiangsu Higher Education Institutions of China (Nos. 24KJD480001, 24KJD480002, 24KJB460008).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data supporting the findings of this paper are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Isaia, C.; Michaelides, M.P. A review of wireless positioning techniques and technologies: From smart sensors to 6G. Signals 2023, 4, 90–136. [Google Scholar] [CrossRef]
  2. Oliveira, L.L.D.; Eisenkraemer, G.H.; Carara, E.A.; Martins, J.B.; Monteiro, J. Mobile Localization Techniques for Wireless Sensor Networks: Survey and Recommendations. ACM Trans. Sens. Netw. 2023, 19, 36. [Google Scholar] [CrossRef]
  3. Maruthi, S.P.; Panigrahi, T. Robust mixed source localization in WSN using swarm intelligence algorithms. Digit. Signal Process. 2020, 98, 102651. [Google Scholar] [CrossRef]
  4. Cheng, L.; Wang, Y.; Xue, M.; Bi, Y. An indoor robust localization algorithm based on data association technique. Sensors 2020, 20, 6598. [Google Scholar] [CrossRef]
  5. Sun, N.; Zhang, S.; Guo, H.; Zhao, F.; Li, N.; He, M.; Li, Z.; Ma, R.; Wang, K.; Tao, W.-Q. A parametric optimization framework for fin-and-tube heat exchangers based on response surface methodology and artificial intelligence. Appl. Therm. Eng. 2024, 253, 123775. [Google Scholar] [CrossRef]
  6. Sun, N.; Zhang, S.; Jin, P.; Li, N.; Yang, S.; Li, Z.; Wang, K.; Hao, X.; Zhao, F. An intelligent plate fin-and-tube heat exchanger design system through integration of CFD, NSGA-II, ANN and TOPSIS. Expert Syst. Appl. 2023, 233, 120926. [Google Scholar] [CrossRef]
  7. Sun, N.; Zhang, S.; Li, N.; Zhao, F.; Hao, X.; He, M.; Li, Z.; Ma, R.; Wang, K.; Tao, W.-Q. A fast design tool for compact heat exchangers tube geometry to enhance thermohydraulic performance using various AI models. Expert Syst. Appl. 2025, 271, 126635. [Google Scholar] [CrossRef]
  8. Sun, N.; Zhang, N.; Zhang, S.; Peng, T.; Jiang, W.; Ji, J.; Hao, X. An Integrated Framework Based on an Improved Gaussian Process Regression and Decomposition Technique for Hourly Solar Radiation Forecasting. Sustainability 2022, 14, 15298. [Google Scholar] [CrossRef]
  9. Sun, N.; Zhang, S.; Peng, T.; Zhou, J.; Sun, X. A Composite Uncertainty Forecasting Model for Unstable Time Series: Application of Wind Speed and Streamflow Forecasting. IEEE Access 2020, 8, 209251–209266. [Google Scholar] [CrossRef]
  10. Coluccia, A.; Fascista, A. A review of advanced localization techniques for crowdsensing wireless sensor networks. Sensors 2019, 19, 988. [Google Scholar] [CrossRef]
  11. Zafari, F.; Gkelias, A.; Leung, K.K. A survey of indoor localization systems and technologies. IEEE Commun. Surv. Tutor. 2019, 21, 2568–2599. [Google Scholar] [CrossRef]
  12. Molaei, A.M.; Ramezani-Varkani, A.; Soheilifar, M.R. A pure cumulant-based method with low computational complexity for classification and localization of multiple near and far field sources using a symmetric array. Prog. Electromagn. Res. C 2019, 96, 123–138. [Google Scholar] [CrossRef]
  13. Zhang, H.; Qi, X.; Wei, Q.; Liu, L. TOA NLOS mitigation cooperative localisation algorithm based on topological unit. IET Signal Process. 2020, 14, 765–773. [Google Scholar] [CrossRef]
  14. Shi, Q.; Zhao, S.; Cui, X.; Lu, M.; Jia, M. Anchor self-localization algorithm based on UWB ranging and inertial measurements. Tsinghua Sci. Technol. 2019, 24, 728–737. [Google Scholar] [CrossRef]
  15. Wang, Y.; Wu, Y.; Shen, Y. Joint spatiotemporal multipath mitigation in large-scale array localization. IEEE Trans. Signal Process. 2018, 67, 783–797. [Google Scholar] [CrossRef]
  16. Garraffa, G.; Sferlazza, A.; D’Ippolito, F.; Alonge, F. Localization Based on Parallel Robots Kinematics As an Alternative to Trilateration. IEEE Trans. Ind. Electron. 2022, 69, 999–1010. [Google Scholar] [CrossRef]
  17. Feng, D.; Wang, C.; He, C.; Zhuang, Y.; Xia, X.G. Kalman-Filter-Based Integration of IMU and UWB for High-Accuracy Indoor Positioning and Navigation. IEEE Internet Things J. 2020, 7, 3133–3146. [Google Scholar] [CrossRef]
  18. Xu, S. Optimal sensor placement for target localization using hybrid RSS, AOA and TOA measurements. IEEE Commun. Lett. 2020, 24, 1966–1970. [Google Scholar] [CrossRef]
  19. Katwe, M.; Ghare, P.; Sharma, P.K.; Kothari, A. NLOS error mitigation in hybrid RSS-TOA-based localization through semi-definite relaxation. IEEE Commun. Lett. 2020, 24, 2761–2765. [Google Scholar] [CrossRef]
  20. Petukhov, N.; Chugunov, A.; Zamolodchikov, V.; Tsaregorodtsev, D.; Korogodin, I. Synthesis and experimental accuracy assessment of Kalman filter algorithm for UWB ToA local positioning system. In Proceedings of the 2021 3rd International Youth Conference on Radio Electronics, Electrical and Power Engineering (REEPE), Moscow, Russia, 1 April 2021; pp. 1–4. [Google Scholar]
  21. Zhang, W.; Zhao, X.; Liu, Z.; Liu, K.; Chen, B. Converted state equation Kalman filter for nonlinear maneuvering target tracking. Signal Process. 2023, 202, 108741. [Google Scholar] [CrossRef]
  22. Fan, Y.; Qiao, S.; Wang, G.; Chen, S.; Zhang, H. A modified adaptive Kalman filtering method for maneuvering target tracking of unmanned surface vehicles. Ocean Eng. 2022, 266, 112890. [Google Scholar] [CrossRef]
  23. Lee, Y.D.; Kim, L.W.; Lee, H.K. A tightly-coupled compressed-state constraint Kalman Filter for integrated visual-inertial-Global Navigation Satellite System navigation in GNSS-Degraded environments. IET Radar Sonar Navig. 2022, 16, 1344–1363. [Google Scholar] [CrossRef]
  24. Wang, Y.; Zhao, B.; Zhang, W.; Li, K. Simulation experiment and analysis of GNSS/INS/LEO/5G integrated navigation based on federated filtering algorithm. Sensors 2022, 22, 550. [Google Scholar] [CrossRef] [PubMed]
  25. Wang, J.; Ma, Z.; Chen, X. Generalized dynamic fuzzy NN model based on multiple fading factors SCKF and its application in integrated navigation. IEEE Sens. J. 2020, 21, 3680–3693. [Google Scholar] [CrossRef]
  26. Song, R.; Fang, Y. Vehicle state estimation for INS/GPS aided by sensors fusion and SCKF-based algorithm. Mech. Syst. Signal Process. 2021, 150, 107315. [Google Scholar] [CrossRef]
  27. Zhao, S.; Zhou, Y.; Huang, T. A novel method for AI-assisted INS/GNSS navigation system based on CNN-GRU and CKF during GNSS outage. Remote Sens. 2022, 14, 4494. [Google Scholar] [CrossRef]
  28. Raeyatdoost, N.; Bongards, M.; Bäck, T.; Wolf, C. Robust state estimation of the anaerobic digestion process for municipal organic waste using an unscented Kalman filter. J. Process Control 2023, 121, 50–59. [Google Scholar] [CrossRef]
  29. Li, W.; Fu, X.; Zhang, B.; Liu, Y. Unscented Kalman filter of graph signals. Automatica 2023, 148, 110796. [Google Scholar] [CrossRef]
  30. Krishnaveni, B.V.; Reddy, K.S.; Reddy, P.R. Indoor tracking by adding IMU and UWB using Unscented Kalman filter. Wirel. Pers. Commun. 2022, 123, 3575–3596. [Google Scholar] [CrossRef]
  31. Cao, S.; Gao, H.; You, J. In-flight alignment of integrated SINS/GPS/Polarization/Geomagnetic navigation system based on federal UKF. Sensors 2022, 22, 5985. [Google Scholar] [CrossRef]
  32. Cheng, L.; Zhao, P.; Wei, D.; Wang, Y. A robust indoor localization algorithm based on polynomial fitting and Gaussian mixed model. China Commun. 2023, 20, 179–197. [Google Scholar] [CrossRef]
  33. Xiong, W.; So, H.C. TOA-based localization with NLOS mitigation via robust multidimensional similarity analysis. IEEE Signal Process. Lett. 2019, 26, 1334–1338. [Google Scholar] [CrossRef]
  34. Meyer, F.; Etzlinger, B.; Liu, Z.; Hlawatsch, F.; Win, M.Z. A scalable algorithm for network localization and synchronization. IEEE Internet Things J. 2018, 5, 4714–4727. [Google Scholar] [CrossRef]
  35. Wu, S.; Zhang, S.; Huang, D. A TOA-based localization algorithm with simultaneous NLOS mitigation and synchronization error elimination. IEEE Sens. Lett. 2019, 3, 6000504. [Google Scholar] [CrossRef]
  36. Yan, J.; Ban, H.; Luo, X.; Zhao, H.; Guan, X. Joint localization and tracking design for AUV with asynchronous clocks and state disturbances. IEEE Trans. Veh. Technol. 2019, 68, 4707–4720. [Google Scholar] [CrossRef]
  37. Guo, X.; Chen, Z.; Hu, X.; Li, X. Multi-source localization using time of arrival self-clustering method in wireless sensor networks. IEEE Access 2019, 7, 82110–82121. [Google Scholar] [CrossRef]
  38. Chen, H.; Wang, G.; Wu, X. Cooperative multiple target nodes localization using TOA in mixed LOS/NLOS environments. IEEE Sens. J. 2019, 20, 1473–1484. [Google Scholar] [CrossRef]
  39. Chen, X.; Wang, D.; Liu, R.-r.; Yin, J.-x.; Wu, Y. Structural total least squares algorithm for locating multiple disjoint sources based on AOA/TOA/FOA in the presence of system error. Front. Inf. Technol. Electron. Eng. 2018, 19, 917–936. [Google Scholar] [CrossRef]
  40. Zhang, S.; Peng, Y.; Li, H.; Xia, Y.; Zheng, W.X. Frequency domain joint-normalized stochastic gradient projection-based algorithm for widely linear quaternion-valued adaptive filtering. IEEE Trans. Signal Process. 2023, 71, 3898–3912. [Google Scholar] [CrossRef]
  41. Gao, Y.; Gao, Y.; Liu, B.; Jiang, Y. Enhanced fault detection and exclusion based on Kalman filter with colored measurement noise and application to RTK. Gps Solut. 2021, 25, 82. [Google Scholar] [CrossRef]
  42. Shi, W.; Dong, Y.; Li, Y.; He, W. Robust extended state estimation for nonlinear complex networks with colored noise. Proc. Inst. Mech. Eng. Part I J. Syst. Control Eng. 2023, 237, 3–14. [Google Scholar] [CrossRef]
  43. Liu, Y.-J.; Dou, C.-H.; Shen, F.; Sun, Q.-Y. Vehicle state estimation based on unscented Kalman filtering and a genetic-particle swarm algorithm. J. Inst. Eng. 2021, 102, 447–469. [Google Scholar] [CrossRef]
  44. Ullah, I.; Shen, Y.; Su, X.; Esposito, C.; Choi, C. A localization based on unscented Kalman filter and particle filter localization algorithms. IEEE Access 2019, 8, 2233–2246. [Google Scholar] [CrossRef]
Figure 1. The Kalman adaptive filtering process diagram.
Figure 1. The Kalman adaptive filtering process diagram.
Sensors 25 02883 g001
Figure 2. The estimation performance of the algorithm.
Figure 2. The estimation performance of the algorithm.
Sensors 25 02883 g002
Figure 3. Target motion trajectory.
Figure 3. Target motion trajectory.
Sensors 25 02883 g003
Figure 4. Colored noises caused by TOA measurement.
Figure 4. Colored noises caused by TOA measurement.
Sensors 25 02883 g004
Figure 5. Trajectory of target observation and filtering estimation.
Figure 5. Trajectory of target observation and filtering estimation.
Sensors 25 02883 g005
Figure 6. Position error of colored noise and white noise filtering. (a) Position error in the x-axis direction. (b) Position error in the y-axis direction. (c) Position error in the z-axis direction.
Figure 6. Position error of colored noise and white noise filtering. (a) Position error in the x-axis direction. (b) Position error in the y-axis direction. (c) Position error in the z-axis direction.
Sensors 25 02883 g006aSensors 25 02883 g006b
Figure 7. Position error of prediction and filtering.
Figure 7. Position error of prediction and filtering.
Sensors 25 02883 g007
Figure 8. RMSE positioning error of three filtering algorithms.
Figure 8. RMSE positioning error of three filtering algorithms.
Sensors 25 02883 g008
Figure 9. Filter positioning error of different initial positioning.
Figure 9. Filter positioning error of different initial positioning.
Sensors 25 02883 g009
Table 1. Units for magnetic properties.
Table 1. Units for magnetic properties.
Coordinates123456789
x−3000300−3000300−3000300
y300300300000−300−300−300
z−300−300300300003000−300
Table 2. The error mean and standard deviation of the two algorithms in three directions.
Table 2. The error mean and standard deviation of the two algorithms in three directions.
Performance of Error (m)Gaussian White NoiseProcessed Colored Noise
X-AxisY-AxisZ-AxisX-AxisY-AxisZ-Axis
Mean−0.38570.2352−0.6384−0.2367−0.0153−0.4231
Standard deviation0.66520.62560.61320.44280.44320.4284
Table 3. Average running time.
Table 3. Average running time.
AlgorithmWLS Initial Positioning FilterInitial Positioning Filter Proposed
Time (ms)10.7811.85
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Chang, B.; Zhang, X.; Sun, N.; Ni, H. Novel Gain-Optimized Two-Step Fusion Filtering Method for Ranging-Based Localization Using Predicted Residuals. Sensors 2025, 25, 2883. https://doi.org/10.3390/s25092883

AMA Style

Chang B, Zhang X, Sun N, Ni H. Novel Gain-Optimized Two-Step Fusion Filtering Method for Ranging-Based Localization Using Predicted Residuals. Sensors. 2025; 25(9):2883. https://doi.org/10.3390/s25092883

Chicago/Turabian Style

Chang, Bo, Xinrong Zhang, Na Sun, and Hao Ni. 2025. "Novel Gain-Optimized Two-Step Fusion Filtering Method for Ranging-Based Localization Using Predicted Residuals" Sensors 25, no. 9: 2883. https://doi.org/10.3390/s25092883

APA Style

Chang, B., Zhang, X., Sun, N., & Ni, H. (2025). Novel Gain-Optimized Two-Step Fusion Filtering Method for Ranging-Based Localization Using Predicted Residuals. Sensors, 25(9), 2883. https://doi.org/10.3390/s25092883

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop