A non-line-of-sight underwater vehicle positioning method based on two-step Kalman filtering
Through the two-step Kalman filter and weighted least squares method, the problem of reduced positioning accuracy caused by asynchronous clock and NLOS errors in the underwater environment is solved, and high-precision and real-time positioning in the non-line-of-sight environment is achieved.
Patent Information
- Application Number
- CN202210315177.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-03-28
AI Technical Summary
In the underwater environment, asynchronous clock and NLOS errors lead to reduced positioning accuracy and positioning failure, especially in non-line-of-sight environments. It is difficult for existing technologies to effectively eliminate the impact of continuous NLOS errors, and real-time requirements cannot be met.
A non-line-of-sight underwater vehicle positioning method based on two-step Kalman filtering is adopted. By detecting the delay difference and performing Kalman filtering processing, the NLOS error is identified and eliminated in real time, and the position of the underwater vehicle is calculated using the weighted least squares method. , ensuring positioning accuracy and real-time performance.
It effectively eliminates the impact of continuous non-line-of-sight errors, improves positioning accuracy, meets real-time requirements, does not require statistical modeling and prior NLOS knowledge, and is suitable for complex and changeable underwater environments.
Smart Images

Figure CN114895246B
Abstract
Description
Technical Field
[0001] The invention relates to a non-line-of-sight underwater vehicle positioning method based on two-step Kalman filtering, and belongs to the technical field of underwater target acoustic positioning. Background Art
[0002] With the increasing demand for various marine resources and the growing awareness of the value of marine scientific research, the great advantages of the underwater Internet of Things (IoUT) in exploring the ocean have attracted more and more attention. Among them, underwater vehicles, as an important part of the underwater Internet of Things, are widely used in scientific and industrial investigations, including disaster prevention and underwater mine reconnaissance, oceanographic data collection, and offshore oil spill monitoring. In these applications, accurate estimation of the position of underwater vehicles is a very important link, because these applications can only be effective when the position information of the underwater vehicle is known. Therefore, high-precision underwater target positioning has very important research value.
[0003] Generally speaking, most of the target positioning solutions use technologies such as received signal strength (RSSI), signal arrival time (TOA), and signal arrival time difference (TDOA) to measure the distance, and accurate location information can be obtained through calculation. However, the high dynamic and strong interference characteristics of underwater acoustic channels will greatly reduce the RSSI ranging accuracy. As the main carrier of underwater communication information, sound waves have a propagation speed of only 1500m / s underwater, which is much lower than the radio channel (about 3×10 8 m / s), the large propagation delay causes the underwater clock to always be asynchronous, which will introduce additional errors to the TOA positioning method and reduce the positioning accuracy. To solve the underwater positioning problem under asynchronous clocks, TDOA positioning algorithms are often used, such as Fang's algorithm, Chan's algorithm, and Taylor series expansion method. However, in the NLOS channel environment, the performance of the TDOA-based positioning algorithm will be significantly reduced.
[0004] In fact, due to the high latency of underwater acoustic communication and the complexity and variability of underwater acoustic channels, it is very difficult to estimate the distance of the first path in the underwater acoustic channel. The main measurement error usually comes from the NLOS error caused by obstacles between the target node and the sensor. Moreover, since sound waves can only propagate in non-line-of-sight environments by reflection, refraction, etc., the propagation error of NLOS is much higher than the measurement noise, which will have a great impact on the positioning accuracy and even lead to positioning failure. Therefore, for underwater target positioning, the interference of NLOS error is an important factor that must be considered. In order to eliminate the influence of NLOS error, many methods have been proposed in recent years. They are mainly divided into the following two categories: the first is to directly suppress the influence of NLOS on position estimation by using special positioning technology. Huerta et al. used a method to eliminate the influence of NLOS by directly discarding the measurement values affected by NLOS. Wei et al. proposed a real-time robust weighted least squares (RWLS) algorithm, which reduces the influence of NLOS error by applying a smaller weight to NLOS measurements. However, discarding or weighting biased measurements is only applicable to scenarios with a large number of redundant measurements, while in most cases the number of available measurements may be limited, and NLOS measurements with small weights will also interfere with positioning accuracy. To solve this problem, the second strategy is to correct the measurements and then use the corrected measurements for positioning. Ting et al. proposed an improved robust Kalman filter algorithm, which adaptively adjusts the state noise and observation noise covariance matrix through the expectation maximization (EM) algorithm to reduce the impact of observations containing NLOS errors, and can effectively eliminate NLOS errors in general situations. However, when NLOS errors occur continuously, the filtering results drift in the direction of the error. Zhang et al. considered the situation where NLOS errors occur continuously and used the Wylie algorithm to remove continuous NLOS errors. The core of the algorithm is to remove continuous NLOS errors by translating the measurement curve. This method can prevent the filtering results from drifting in the direction of the error, but this method sacrifices the real-time nature of error elimination. Summary of the invention
[0005] In view of the shortcomings of the prior art, the present invention provides a non-line-of-sight underwater vehicle positioning method based on two-step Kalman filtering, which is used to solve the underwater target positioning problem under the constraints of asynchronous clock and NLOS error. It can effectively eliminate the influence of continuous non-line-of-sight errors, improve the continuous positioning accuracy, and meet the real-time requirements.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0007] A non-line-of-sight underwater vehicle positioning method based on two-step Kalman filtering comprises the following steps:
[0008] Step 1: Randomly deploy N hydroacoustic sensor nodes in the detection sea area, and their positions are recorded as P n (x n ,y n , z n ); P1 (x1, y1, z1) is the main sensor node, and the other sensor nodes are auxiliary sensor nodes; after the underwater vehicle to be positioned enters the detection sea area, the underwater vehicle cyclically sends initialization information to all sensor nodes at a time interval of ΔT to start the positioning process. The information contains the sending time T of the initialization information. s,s ;
[0009] Step 2: At time t s,n , the underwater sensor node receives the information sent from the underwater vehicle, and the sensor node obtains the delay τ of the signal from the underwater vehicle to the sensor node through the collected timestamp information s,n ;
[0010] Step 3: After receiving the initialization message of the underwater vehicle to be located, the secondary sensor sends a positioning information packet to the primary sensor node. The positioning information packet contains the coordinates P of the sensor node. n and the time delay τ of the sensor node receiving the positioning start information s,n When the main sensor node receives the information of all the secondary sensor nodes, the main sensor node calculates the time difference Δt between the underwater vehicle sending the initialization signal and the main and secondary sensor nodes. n,1 ;
[0011] Step 4: Use the Kalman filter algorithm to filter the time difference information obtained by the main sensor node, and compare the new information value in the Kalman filter iteration process with the threshold, so as to determine in real time whether the current measurement is interfered by the non-line-of-sight error;
[0012] Step 5: If it is determined that the current measurement value contains NLOS error, the NLOS error value is roughly estimated, and the NLOS error estimate value is subjected to a separate Kalman filter. The filtering result is used as the NLOS error correction value. The NLOS error correction value is used to remove the non-line-of-sight error in the measurement value, and then the state estimation is obtained. If it is determined that the current measurement does not contain non-line-of-sight error, the Kalman filter is directly used to obtain the state estimation.
[0013] Step 6: Calculate the position of the underwater vehicle using a two-step weighted least squares method based on the filtered value of the time difference information obtained in step 5;
[0014] Step 7: Repeat the above steps 4-6 to obtain the sequential estimation result of the underwater vehicle position.
[0015] A further improvement of the technical solution of the present invention is that the number of the hydroacoustic sensor nodes N is ≥ 4.
[0016] A further improvement of the technical solution of the present invention is that the calculation method of the time delay in step 2 is: where τ s,1 is the delay of the signal from the underwater vehicle to the main sensor node, τ s,n is the delay of the signal from the underwater vehicle to the nth secondary sensor node.
[0017] A further improvement of the technical solution of the present invention is that: the calculation method of the time difference in step 3 is Δt n,1 =(t s,n -T s,s )-(t s,1 -T s,s )=τ s,n -τ s,1 .
[0018] A further improvement of the technical solution of the present invention is that the Kalman filter algorithm described in step 4 uses the measured time difference as the filtering object, and the Kalman filter standard equation is as follows:
[0019] X(k|k-1)=FX(k-1),
[0020] P(k|k-1)=FP(k-1)F T +Q,
[0021] The above two equations are the prediction step equations of the Kalman filter, where X(k-1) is the target state at time k-1, X(k|k-1) is the state prediction at time k, F reflects the dynamic evolution of the target state at two adjacent times, P(k-1) is the prediction error covariance matrix at time k-1, P(k|k-1) is the error covariance prediction at time k, and Q is the covariance matrix of process noise;
[0022] K=P(k|k-1)H T (HP(k|k-1)H T +R) -1 ,
[0023] The above formula is the Kalman gain matrix, where H is the state measurement matrix; R is the covariance matrix of the measurement error, and its value is generally a preset constant;
[0024] X(k)=X(k|k-1)+K(Z(k)-HX(k|k-1)),
[0025] P(k)=(I-KH)P(k|k-1),
[0026] The above two equations are the update step equations of the Kalman filter, where X(k) is the target state at time k, and Z(k)-HX(k|k-1) is the measurement information, expressed as:
[0027] e(k)=Z(k)-HX(k|k-1),
[0028] In Kalman filtering, the measurement innovation is defined as the difference between the current observation value and the state prediction value. When the sensor node is in a LOS communication environment, e(k) is a zero-mean Gaussian variable. When the NLOS error is mixed into the measurement value, the measurement value Z(k) will deviate far from the true value, and the mean of the measurement innovation e(k) is no longer zero. e(k) can be used to determine whether the measurement value is disturbed by the NLOS error, which is set as the following discriminant:
[0029]
[0030] When e k When e is less than the threshold ξ, the measurement value at time k is not disturbed by the NLOS error; k When it is greater than or equal to the threshold ξ, it is judged that the measurement value is interfered by the NLOS error and the second step Kalman filtering is performed; the empirical threshold ξ is expressed as follows:
[0031]
[0032] In the above formula, λ is the maximum error allowed for ranging, and its value should be set in advance according to environmental information and positioning accuracy requirements; is the system error threshold.
[0033] A further improvement of the technical solution of the present invention is that the specific method of eliminating the NLOS error in step 5 is:
[0034] When the measurement value Z(k) contains NLOS error, the measurement value will deviate far from the true value. Compared with the measurement value Z(k), the predicted value X(k|k-1) is closer to the true value. Then, let the state estimate at time k be:
[0035]
[0036] Based on the state estimation at time k, the NLOS error at time k is estimated as:
[0037]
[0038] The further Kalman filtering process for NLOS error estimation is as follows:
[0039]
[0040]
[0041]
[0042]
[0043]
[0044] P n (k)=(IK n H n ) n (k|k-1),
[0045] in is the NLOS error estimate at time k-1, is the NLOS error correction value at time k, based on which the reconstructed measurement value at time k is obtained for:
[0046]
[0047] Under the interference of NLOS error, the reconstructed measurement value Bringing in the update step and performing Kalman filtering instead of the measured value can effectively eliminate the impact of NLOS errors.
[0048] A further improvement of the technical solution of the present invention is that the Chan algorithm is used in step 6 to solve the position of the underwater vehicle, and the algorithm expression is as follows:
[0049] ΔD n,1 =||P s -P n ||-||P s -P1||,
[0050] Where ΔD n,1 represents the difference between the distance from the underwater vehicle to the nth secondary sensor node and the actual distance to the main sensor node, P s represents the position of the underwater vehicle to be located; after considering the noise, the weighted least squares solution of the above expression is in,
[0051]
[0052] ψ is the inverse of the weight, which is defined here as ψ = c 2 BQB, where the B matrix is a diagonal matrix consisting of the actual distances from the underwater vehicle to the underwater sensor nodes;
[0053] Considering x s ,y s ,z s With D s,1 In order to eliminate the correlation between The error caused by the correlation of variables in Subtract x1, y1 and z1 from the first three elements of and square all of them, perform the second step of weighted least squares calculation, and solve the final position coordinate vector of the target as follows:
[0054]
[0055] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is:
[0056] 1. The present invention does not require statistical modeling of features under line-of-sight / non-line-of-sight (LOS / NLOS) conditions, nor does it require prior statistical knowledge of NLOS errors, and is more suitable for complex and changeable underwater environments.
[0057] 2. The present invention regards the true value of TDOA and the NLOS error as two independent parts, separates the NLOS error from the measured value by using Kalman filtering for separate estimation, and directly eliminates the non-line-of-sight error during the Kalman filtering iteration process. Based on this mechanism, continuous NLOS errors can be eliminated without the filtering result drifting in the error direction.
[0058] 3. In the present invention, NLOS error separation, NLOS error estimation and measurement value reconstruction are all completed in the Kalman iteration process, which is real-time. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 is a flow chart of the present invention;
[0060] Figure 2 a-2d are the filtering result diagrams of sensor nodes 1-4 of the present invention;
[0061] Figure 3 e-3h is a filtering result diagram of sensor nodes 5-8 of the present invention;
[0062] Figure 4 i-41 is a filtering result diagram of sensor nodes 9-12 of the present invention;
[0063] Figure 5 It is the positioning curve diagram of Chan's algorithm, Taylor series expansion method, and the algorithm proposed by the present invention;
[0064] Figure 6 It is a comparison chart of positioning errors of Chan's algorithm, Taylor series expansion method, and the algorithm proposed in the present invention. DETAILED DESCRIPTION
[0065] The present invention is further described in detail below in conjunction with embodiments:
[0066] Step 1: Randomly deploy N (N ≥ 4) hydroacoustic sensor nodes in the detection sea area, and their positions are recorded as P n (x n ,y n , z n ), where P1(x1, y1, z1) is the main sensor node and the other sensor nodes are secondary sensor nodes. After the underwater vehicle to be positioned enters the detection sea area, the underwater vehicle cyclically sends initialization information to all sensor nodes at a time interval of ΔT to start the positioning process. The information contains the sending time T of the initialization information. s,s .
[0067] Step 2: At time t s,n , the underwater sensor node receives the information sent by the underwater vehicle. The sensor node can obtain the delay τ of the signal from the underwater vehicle to the sensor node through the collected timestamp information s,n The calculation method of time delay is
[0068] where τ s,1 is the delay of the signal from the underwater vehicle to the main sensor node, τ s,n is the delay of the signal from the underwater vehicle to the nth secondary sensor node.
[0069] Step 3: After receiving the initialization message of the underwater vehicle to be located, the secondary sensor sends a positioning information packet to the primary sensor node. The positioning information packet contains the coordinates P of the sensor node. n and the time delay τ of the sensor node receiving the positioning start information s,n When the main sensor node receives information from all the sub-sensor nodes, the main sensor node calculates the time difference Δt between the underwater vehicle sending the initialization signal and the main and sub-sensor nodes. n,1 The time difference is calculated as:
[0070] Δt n,1 =(t s,n -T s,s )-(t s,1 -T s,s )=τ s,n -τ s,1 .
[0071] Step 4: Use Kalman filtering algorithm to filter the time difference information obtained by the main sensor node and identify the NLOS error. The two-step Kalman filtering process proposed in the present invention is as follows: Figure 1 shown.
[0072] The basic concept of Kalman filter is contained in the following two basic equations:
[0073] State equation: X(k) = FX(k-1) + ω(k-1),
[0074] Measurement equation: Z(k)=HX(k)+ν(k),
[0075] Where k is the discrete time, X(k) is the state vector at time k, F is the state transfer matrix, and ω(k) is the process noise. Z(k) is the measurement vector, H is the state measurement matrix, and ν(k) is the measurement error. The state equation links the state at a certain moment with the state at the next moment through the state transfer matrix F, reflecting the state transfer relationship between two adjacent moments. The measurement equation describes the relationship between the system state and the measurement quantity through the state measurement matrix H.
[0076] The change of the measured time difference is closely related to the movement of the underwater vehicle to be positioned. In the dynamic positioning problem, the position and movement speed of the underwater vehicle to be positioned are unknown. In this case, we set the state equation and measurement equation to the following form to track the dynamic changes of the time difference data:
[0077]
[0078]
[0079] Where x(k) represents the TDOA at the kth moment, and is its first and second derivatives, and dt is the sampling interval. By introducing the second-order derivative into the state vector, the TDOA curve can be tracked more effectively.
[0080] Through the state equation and measurement equation, the Kalman filter formula can be derived as follows:
[0081] Prediction step: X(k|k-1)=FX(k-1),
[0082] P(k|k-1)=FP(k-1)F T +Q,
[0083] Kalman gain: K = P(k|k-1)H T (HP(k|k-1)H T +R) -1 ,
[0084] Update step: X(k) = X(k|k-1) + K(Z(k)-HX(k|k-1)),
[0085] P(k)=(I-KH)P(k|k-1),
[0086] Where X(k-1) is the target state at time k-1, X(k|k-1) is the state prediction at time k, P(k-1) is the prediction error covariance matrix at time k-1, P(k|k-1) is the error covariance prediction at time k, Q is the covariance matrix of process noise ω(k), and R is the covariance matrix of measurement error ν(k).
[0087] In Kalman filtering, the measurement innovation is defined as the difference between the current observation value and the state prediction value, which can be expressed as:
[0088] e(k)=Z(k)-HX(k|k-1),
[0089] When the sensor node and the target node are in a LOS communication environment, e(k) is a zero-mean Gaussian variable. When the NLOS error is mixed into the measurement value, the measurement value Z(k) will deviate far from the true value, and the mean of the measurement information e(k) is no longer zero. e(k) can be used to determine whether the measurement value is interfered by the NLOS error, which is set as the following discriminant:
[0090]
[0091] When e k When e is less than the threshold ξ, the measurement value at time k is not disturbed by the NLOS error; k When it is greater than or equal to the threshold ξ, it is judged that the measurement value is interfered by the NLOS error and the second step Kalman filtering is performed. The empirical threshold ξ is expressed as follows:
[0092]
[0093] In the above formula, λ is the maximum error allowed for ranging, and its value should be set in advance according to environmental information and positioning accuracy requirements. is the system error threshold.
[0094] Step 5: If the current measurement value contains non-line-of-sight error, the NLOS error value is roughly estimated, and the NLOS error estimate is subjected to a separate Kalman filter, and the filtering result is used as the NLOS error correction value. The NLOS error correction value is used to remove the non-line-of-sight error in the measurement value, and then the state estimate at time k is obtained; if the current measurement does not contain non-line-of-sight error, the Kalman filter is directly used to obtain the state estimate at time k.
[0095] The specific method to eliminate NLOS error is: when the measurement value Z(k) contains NLOS error, the measurement value will deviate far from the true value. Compared with the measurement value Z(k), the predicted value X(k|k-1) is closer to the true value. Then, let the state estimate at time k be:
[0096]
[0097] Based on the state estimation at time k, the NLOS error at time k is estimated as:
[0098]
[0099] From the above formula, we can see that the estimated value of NLOS error at time k is The state prediction value X(k|k-1) at time k is derived from the state prediction step at time k-1. It is close to the true value but not equal to the true value. Here, it can be regarded as a Gaussian variable with the true state value as the mean. Then the estimated value of NLOS error is It is also a Gaussian variable with the true NLOS error value as the mean. Based on this, we can use the NLOS error estimate value for each moment when there is an NLOS error The measured value is Kalman filtered, and the filtering result is the NLOS error correction value, which is used to reconstruct the measured value. The further Kalman filtering process of the NLOS error estimate is as follows:
[0100]
[0101]
[0102]
[0103]
[0104]
[0105] P n (k)=(IK n H n ) n (k|k-1),
[0106] in is the NLOS error estimate at time k-1, is the NLOS error correction value at time k. Based on this, the reconstructed measurement value at time k is obtained
[0107]
[0108] Under the interference of NLOS error, the reconstructed measurement value Bringing in the update step and performing Kalman filtering instead of the measured value can effectively eliminate the impact of NLOS errors.
[0109] Step 6: Based on the filtered value of the time difference information obtained in step 5, the position of the underwater vehicle is calculated using the two-step weighted least squares method. The Chan algorithm expression is as follows:
[0110] ΔD n,1 =||P s -P n ||-||P s -P1||,
[0111] Where ΔD n,1 represents the difference between the distance from the underwater vehicle to the nth secondary sensor node and the actual distance to the main sensor node, P s Represents the position of the underwater vehicle to be located. After considering the noise, the weighted least squares solution of the above expression is in,
[0112]
[0113] ψ is the inverse of the weight, which is defined here as ψ = c 2 BQB, where the B matrix is a diagonal matrix consisting of the actual distances from the underwater vehicle to the underwater sensor nodes.
[0114] Considering x s ,y s ,z s With D s,1 In order to eliminate the correlation between The error caused by the correlation of variables in Subtract x1, y1 and z1 from the first three elements of and square all of them, perform the second step of weighted least squares calculation, and solve the final position coordinate vector of the target as follows:
[0115]
[0116] Step 7: Repeat the above steps 4-6 to obtain the sequential estimation result of the underwater vehicle position.
[0117] In order to verify the technical effect that the present invention can produce, the following simulation analysis was performed using MATLAB:
[0118] This simulation deploys a simulation environment with 13 sensor nodes in a 600m 600m 600m area. For the mobile underwater vehicle to be located, we give a constant acceleration motion model:
[0119]
[0120] Where dt represents the time interval between two time frames, X k is the target state, is the velocity vector, is the acceleration vector. This section locates the target motion trajectory of 100 time frames.
[0121] This part uses the measured value at time k = 1 as the initial value of the first step of Kalman filtering, according to the formula The obtained NLOS error estimate is used as the initial value of the second step Kalman filter, and the threshold ξ is set to 0.02. Under LOS conditions, this part mixes Gaussian noise with a standard deviation of 0.5% of the source data into the source data; under NLOS conditions, continuous NLOS noise is applied to 4 random nodes among the 12 secondary sensor nodes, and the NLOS noise is set to a random constant of 0.06-0.08s plus 3% Gaussian noise of the source data. The filtering results are shown in Figure 2 , Figure 3 , Figure 4 shown.
[0122] At the same time, this patent provides the positioning curve and positioning error comparison diagram of Chan's algorithm, Taylor series expansion method and the algorithm proposed in this patent under the above conditions, as shown respectively. Figure 5 , Figure 6 shown.
[0123] The above is only a specific embodiment of the present invention. Some processes described in the present invention can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be used to limit the embodiments described herein, but should conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A non-line-of-sight underwater vehicle positioning method based on two-step Kalman filtering, characterized in that: The steps include: Step 1: Randomly deploy N hydroacoustic sensor nodes in the detection sea area, and their positions are recorded as P n (x n ,y n , z n ); P1 (x1, y1, z1) is the main sensor node, and the other sensor nodes are auxiliary sensor nodes; after the underwater vehicle to be positioned enters the detection sea area, the underwater vehicle cyclically sends initialization information to all sensor nodes at a time interval of ΔT to start the positioning process. The information contains the sending time T of the initialization information. s,s ; Step 2: At time t s,n , the underwater sensor node receives the information sent from the underwater vehicle, and the sensor node obtains the delay τ of the signal from the underwater vehicle to the sensor node through the collected timestamp information s,n ; Step 3: After receiving the initialization message of the underwater vehicle to be located, the secondary sensor sends a positioning information packet to the primary sensor node. The positioning information packet contains the coordinates P of the sensor node. n and the time delay τ of the sensor node receiving the positioning start information s,n When the main sensor node receives the information of all the secondary sensor nodes, the main sensor node calculates the time difference Δt between the underwater vehicle sending the initialization signal and the main and secondary sensor nodes. n,1 ; Step 4: Use the Kalman filter algorithm to filter the time difference information obtained by the main sensor node, and compare the new information value in the Kalman filter iteration process with the threshold, so as to determine in real time whether the current measurement is interfered by the non-line-of-sight error; Step 5: If it is determined that the current measurement value contains NLOS error, the NLOS error value is roughly estimated, and the NLOS error estimate value is subjected to a separate Kalman filter. The filtering result is used as the NLOS error correction value. The NLOS error correction value is used to remove the non-line-of-sight error in the measurement value, and then the state estimation is obtained. If it is determined that the current measurement does not contain non-line-of-sight error, the Kalman filter is directly used to obtain the state estimation. Step 6: Calculate the position of the underwater vehicle using a two-step weighted least squares method based on the filtered value of the time difference information obtained in step 5; Step 7: Repeat the above steps 4-6 to obtain the sequential estimation result of the underwater vehicle position.
2. The method for positioning a non-line-of-sight underwater vehicle based on two-step Kalman filtering according to claim 1, characterized in that: The number of the hydroacoustic sensor nodes N is ≥4.
3. The method for positioning a non-line-of-sight underwater vehicle based on two-step Kalman filtering according to claim 1, characterized in that: The calculation method of the delay described in step 2 is: where τ s,1 is the delay of the signal from the underwater vehicle to the main sensor node, τ s,n is the delay of the signal from the underwater vehicle to the nth secondary sensor node.
4. The method for positioning a non-line-of-sight underwater vehicle based on two-step Kalman filtering according to claim 1, characterized in that: The calculation method of the time difference in step 3 is: Δt n,1 =(t s,n -T s,s )-(t s,1 -T s,s )=τ s,n -t s,1 。 5. The method for positioning a non-line-of-sight underwater vehicle based on two-step Kalman filtering according to claim 1, characterized in that: The Kalman filter algorithm described in step 4 uses the measured time difference as the filtering object, and the Kalman filter standard equation is as follows: X(k|k-1)=FX(k-1), P(k|k-1)=FP(k-1)F T +Q, The above two equations are the prediction step equations of the Kalman filter, where X(k-1) is the target state at time k-1, X(k|k-1) is the state prediction at time k, F reflects the dynamic evolution of the target state at two adjacent times, P(k-1) is the prediction error covariance matrix at time k-1, P(k|k-1) is the error covariance prediction at time k, and Q is the covariance matrix of process noise; K=P(k|k-1)H T (HP(k|k-1)H T +R) -1 , The above formula is the Kalman gain matrix, where H is the state measurement matrix; R is the covariance matrix of the measurement error, and its value is generally a preset constant; X(k)=X(k|k-1)+K(Z(k)-HX(k|k-1)), P(k)=(I-KH)P(k|k-1), The above two equations are the update step equations of the Kalman filter, where X(k) is the target state at time k, and Z(k)-HX(k|k-1) is the measurement information, expressed as: e(k)=Z(k)-HX(k|k-1), In Kalman filtering, the measurement innovation is defined as the difference between the current observation value and the state prediction value. When the sensor node is in a LOS communication environment, e(k) is a zero-mean Gaussian variable. When the NLOS error is mixed into the measurement value, the measurement value Z(k) will deviate far from the true value, and the mean of the measurement innovation e(k) is no longer zero. e(k) can be used to determine whether the measurement value is disturbed by the NLOS error, which is set as the following discriminant: When e k When e is less than the threshold ξ, the measurement value at time k is not disturbed by the NLOS error; k When it is greater than or equal to the threshold ξ, it is judged that the measurement value is interfered by the NLOS error and the second step Kalman filtering is performed; the empirical threshold ξ is expressed as follows: In the above formula, λ is the maximum error allowed for ranging, and its value should be set in advance according to environmental information and positioning accuracy requirements; is the system error threshold.
6. The method for positioning a non-line-of-sight underwater vehicle based on two-step Kalman filtering according to claim 1, characterized in that: The specific method of eliminating NLOS error in step 5 is: When the measurement value Z(k) contains NLOS error, the measurement value will deviate far from the true value. Compared with the measurement value Z(k), the predicted value X(k|k-1) is closer to the true value. Then, let the state estimate at time k be: Based on the state estimation at time k, the NLOS error at time k is estimated as: The further Kalman filtering process for NLOS error estimation is as follows: P n (k)=(I-K n H n )P n (k|k-1), in is the NLOS error estimate at time k-1, is the NLOS error correction value at time k, based on which the reconstructed measurement value at time k is obtained for: Under the interference of NLOS error, the reconstructed measurement value Bringing in the update step and performing Kalman filtering instead of the measured value can effectively eliminate the impact of NLOS errors.
7. The method for positioning a non-line-of-sight underwater vehicle based on two-step Kalman filtering according to claim 1, characterized in that: In step 6, the Chan algorithm is used to solve the position of the underwater vehicle. The algorithm expression is as follows: ΔD n,1 =||P s -P n ||-||P s -P1||, Where ΔD n,1 represents the difference between the distance from the underwater vehicle to the nth secondary sensor node and the actual distance to the main sensor node, P s Indicates the position of the underwater vehicle to be located; After taking noise into account, the weighted least squares solution of the above expression is in, ψ is the inverse of the weight, which is defined here as ψ = c 2 BQB, where the B matrix is a diagonal matrix consisting of the actual distances from the underwater vehicle to the underwater sensor nodes; Considering x s ,y s ,z s With D s,1 In order to eliminate the correlation between The error caused by the correlation of variables in Subtract x1, y1 and z1 from the first three elements of and square all of them, perform the second step of weighted least squares calculation, and solve the final position coordinate vector of the target as follows:
