An unmanned aerial vehicle pose estimation method based on a differentiable square root cubature Kalman filter
By using a method based on differentiable square root capacitive Kalman filtering, the nonlinearity and non-Gaussian noise problems of UAV pose estimation in complex environments are solved, realizing online compensation for environmental interference and robust handling of abnormal observations, thereby improving the accuracy and robustness of UAV pose estimation.
Patent Information
- Application Number
- CN202611365717.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-27
AI Technical Summary
Unmanned aerial vehicles (UAVs) face problems such as nonlinearity, non-Gaussian noise, and model bias in complex environments. Traditional filtering methods are difficult to achieve robust pose estimation, especially lacking effective compensation mechanisms under environmental disturbances such as wind and turbulence. The handling of abnormal observations is not flexible enough, and the filtering algorithm is not differentiable, which hinders the integration of deep learning.
We employ a method based on differentiable square root capacitive Kalman filtering, which uses an interference sensing network to compensate for environmental interference online, introduces a weighted cross-variance update mechanism to suppress abnormal observations, and implements gradient backpropagation through differentiable QR decomposition and Cholesky decomposition to construct an end-to-end trainable filtering framework.
While maintaining the interpretability of filtering, it improves the accuracy and robustness of UAV pose estimation, with position and attitude accuracy improved by 36.3% and 31.6% respectively. End-to-end learning reduces position RMSE by 22.5%, and it performs well in non-Gaussian noise environments.
Smart Images

Figure CN123175277A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of UAV pose estimation technology, specifically relating to a UAV pose estimation method based on differentiable square root octagonal Kalman filtering. Background Technology
[0002] Attitude estimation is a fundamental issue in the autonomous flight, navigation, and control of unmanned aerial vehicles (UAVs). Accurate position and attitude information directly determines the flight safety and mission execution capabilities of the UAV. [1-3] In GPS-denied environments, complex weather conditions, or close-range maneuvering flights, UAVs need to integrate information from multiple sensors, including IMU, vision, and lidar, to achieve robust pose estimation under highly nonlinear dynamics. [4-6] However, factors such as wind disturbance, turbulence, electromagnetic interference, sensor noise, and model uncertainties in the actual flight environment pose a severe challenge to traditional filtering methods. [7-10] .
[0003] Unmanned aerial vehicle (UAV) pose estimation faces multiple difficulties and challenges. First, the kinematic and dynamic models of UAVs exhibit strong nonlinear characteristics. In particular, when attitude evolution is described using quaternions, the state transition function has complex trigonometric coupling relationships, and the first-order linearization of traditional extended Kalman filtering introduces significant truncation errors. [11-13] Secondly, while the square root capacitive Kalman filter can handle strongly nonlinear processes through numerical integration of the capacitive volume, its core assumption—that process noise and observation noise follow a Gaussian distribution—is often difficult to satisfy in real-world flight. [14-16] For example, aerodynamic disturbances caused by sudden changes in wind speed can lead to a heavy-tailed distribution of process noise; GPS signals can produce pulsed anomalies when obstructed by buildings; and visual odometry can output measurements with multimodal characteristics in areas of varying lighting or missing texture.
[17] Third, accurate aerodynamic models of UAVs are difficult to obtain, especially unmodeled dynamics such as ground effects during near-ground flight and inertial coupling during high-speed maneuvers, which can lead to systematic biases in filter state predictions. [18-20] Finally, the aforementioned problems are intertwined, making it difficult for a single improvement strategy to provide a comprehensive solution. Therefore, a novel filtering framework is urgently needed that can maintain the interpretability of filtering while flexibly adapting to complex environments.
[0004] Extensive research has been conducted by scholars both domestically and internationally on the problem of UAV pose estimation. In terms of traditional filtering, the extended Kalman filter and its variants are widely used for UAV state estimation, but their linearized approximation has limited accuracy under severe maneuvers. [21-23] Unscented Kalman filtering and capacitive Kalman filtering improve nonlinear processing capabilities through deterministic sampling, but are also limited by the Gaussian assumption. [24-28] In terms of robust filtering, H ∞Filtering and adaptive strong tracking filtering suppress anomalous observations by adjusting the gain matrix, but their ability to compensate for systematic model biases is limited. [29-32] In multi-sensor fusion, graph optimization methods and factor graphs have been used for vision-inertial-satellite fusion positioning, but their computational complexity is high, making it difficult to meet real-time requirements. [33-37] In the area of data-driven filtering, researchers have attempted to replace traditional filtering modules with recurrent neural networks or deep Kalman filters, but this often comes at the cost of algorithm interpretability and numerical stability. [38-40] .
[0005] The common limitation of existing research is that:
[0006] 1) Lack of a systematic online compensation mechanism for environmental disturbances such as wind disturbance and turbulence;
[0007] 2) Anomaly observation processing is mostly heuristically designed, making it difficult to jointly optimize with the filtering process;
[0008] 3) The key operations of the filtering algorithm are not differentiable, which hinders seamless integration with deep learning frameworks. [21-40] . Summary of the Invention
[0009] Purpose of the invention: To address the issues of nonlinearity, non-Gaussian noise, and model bias in pose estimation for UAVs in complex environments, this invention proposes a UAV pose estimation method based on differentiable square root occultation Kalman filtering. By employing a differentiable, numerically stable, and robust nonlinear filtering algorithm to non-Gaussian noise, UAV pose estimation is achieved.
[0010] Technical Solution: This invention proposes a UAV pose estimation method based on differentiable square root capillary Kalman filtering, which recursively executes the following steps in a time series:
[0011] Step 1: Generate an initial volume point set based on the state estimate at time k-1 and the square root factor of the covariance matrix. Utilize the interference sensing network to calculate the interference offset online based on the state estimate at time k-1 and the current observation information. Superimpose the interference offset onto the initial volume point set to obtain the compensated volume point set.
[0012] Step 2: Add an aerodynamic compensation network to the state equation. Substitute the compensated set of volume points into the state equation for propagation. Calculate the predicted state of each volume point after propagation through the state equation to obtain the predicted state vector at time k.
[0013] Step 3: Based on the deviation between the predicted state vector and the state estimate at time k-1, construct an augmented matrix, and use the differentiable QR decomposition based on Householder reflection to orthogonally triangulate the augmented matrix, and extract the upper triangular matrix as the square root factor of the predicted covariance matrix at time k.
[0014] Step 4: Based on the predicted state vector, generate a set of volume points again and propagate through the observation equation to obtain the predicted observation values; calculate the observation residual corresponding to each volume point, calculate the weight coefficient for each volume point based on the observation residual, and use the weight coefficient to calculate the predicted observation mean and weighted cross-covariance matrix.
[0015] Step 5: Orthogonally triangulate the weighted observation covariance matrix using differentiable QR decomposition based on Householder reflection to obtain the square root factor of the observation covariance;
[0016] Step 6: Based on the square root factor of the predicted covariance matrix and the square root factor of the observed covariance, solve the Kalman gain matrix using trigonometric back substitution;
[0017] Step 7: Update the state estimate at time k using the Kalman gain matrix and observation residuals; and extract the UAV pose estimation information from the state estimate at time k.
[0018] Step 8: Based on the Kalman gain matrix and the square root factor of the prediction covariance matrix, construct the posterior update matrix, and decompose the posterior update matrix using the differentiable QR decomposition based on Householder reflection to obtain the square root factor of the posterior covariance matrix at time k.
[0019] Step 9: Use the state estimate at time k and the square root factor of the posterior covariance matrix at time k as inputs at time k+1, and recursively execute steps 1 to 8 according to the time series to achieve continuous estimation of UAV pose.
[0020] The parameters of the interference sensing network, the aerodynamic compensation network, and the differentiable QR decomposition are jointly optimized through end-to-end gradient backpropagation.
[0021] Beneficial effects: While maintaining the numerical stability of the standard SRCKF, this invention introduces three learnable improvements, and compared with the prior art, this invention has the following advantages:
[0022] (1) The present invention introduces a volume point generation strategy for interference perception, which generates interference offset online through a small neural network to compensate for the state prediction deviation caused by environmental interference such as wind disturbance and turbulence, and compensates for environmental interference such as wind disturbance and turbulence online.
[0023] (2) The present invention introduces a weighted cross-variance update mechanism, which dynamically calculates weights based on volume point residuals, and adaptively suppresses the impact of abnormal observations such as GPS loss and visual occlusion on state updates;
[0024] (3) This invention introduces a fully differentiable filter layer based on differentiable QR / Cholesky decomposition, opens up the gradient backpropagation path, and enables the filter layer to receive gradients from the loss function through the implementation of differentiable QR decomposition and Cholesky decomposition, supporting end-to-end joint training.
[0025] (4) This invention establishes a 12-dimensional state space model that includes position, velocity, attitude quaternions and angular velocity, as well as a multi-source observation model that integrates IMU, GPS and visual odometry.
[0026] (5) This invention does not replace filtering with neural networks, but enhances filtering while retaining the interpretable structure of filtering, thus achieving an organic integration of physical priors and data-driven approaches;
[0027] (6) Simulation and water surface flight experiments show that: in non-Gaussian noise environments, the algorithm of this invention improves position and attitude accuracy by 36.3% and 31.6% respectively compared with the standard SRCKF; end-to-end learning reduces position RMSE by 22.5% and improves convergence speed by 33% compared with offline training; in actual water surface scenarios, position RMSE is reduced by 24.7% compared with GMM-SRCKF. The method of this invention achieves an effective fusion of physical priors and data-driven approaches while maintaining the interpretability of filtering. Attached Figure Description
[0028] Figure 1 The algorithm flow for applying the traditional SRCKF algorithm to UAV pose estimation;
[0029] Figure 2 The algorithm flow for D-SRCKF;
[0030] Figure 3 Here is the complete algorithm flowchart for D-SRCKF;
[0031] Figure 4 Comparison curves for position, velocity, and attitude errors;
[0032] Figure 5 A comparison of the four methods across various indicators;
[0033] Figure 6 The curves showing the change of RMSE of the validation set location with training rounds during offline training and end-to-end training.
[0034] Figure 7 A comparison of the final performance of the three configurations in terms of position, speed, and attitude;
[0035] Figure 8 A comparison of the estimated accuracy of the four variants on the test set;
[0036] Figure 9 The curve showing the effect of temperature parameter γ on the position RMSE.
[0037] Figure 10 Comparison curves of position, velocity, and attitude errors over time for four methods in surface flight missions;
[0038] Figure 11 Comparison of RMSE for position, velocity, and attitude using four methods across three flight phases;
[0039] Figure 12 This section compares the overall performance of the four methods in waterborne flight missions. Detailed Implementation
[0040] The technical solution of the present invention will now be further described in conjunction with the accompanying drawings and embodiments.
[0041] The problem of UAV pose estimation is formally described and the research motivation is explained.
[0042] The UAV pose estimation problem can be modeled as a nonlinear discrete-time system. Let the system state vector at time k be... It includes position, velocity, attitude quaternions, and angular velocity:
[0043] (1)
[0044] in, The three-dimensional position of the UAV under the navigation system. For speed, It is a quaternion of attitude (satisfying the unit norm constraint). This refers to the angular velocity of the machine body.
[0045] The discretized form of the system state equation is:
[0046] (2)
[0047] in, It is a nonlinear state transition function. For control input (motor speed or desired acceleration). This represents process noise (actually non-Gaussian). Observation vector fusion from multiple sensors:
[0048] (3)
[0049] in, For nonlinear observation functions, This is for observation noise (actually non-Gaussian).
[0050] The existing UAV pose estimation process based on square root commensurate Kalman filtering is as follows: Figure 1 As shown
[28] The method mainly includes: Step 1: Generating a set of volume points based on the state estimate and covariance of the previous time step; Step 2: Propagating the volume points through the state equation and calculating the predicted state and predicted covariance (QR decomposition ensures positive definiteness); Step 3: Generating volume points again based on the predicted distribution and propagating them through the observation equation; Step 4: Calculating the cross-covariance and Kalman gain; Step 5: Performing state update and covariance update. This method has good estimation performance under ideal conditions, but it has significant limitations in complex flight environments. The main problems include:
[0051] Question 1: Traditional filtering methods have limited ability to model non-Gaussian noise. In actual UAV flight, process noise and observation noise often exhibit significant non-Gaussian characteristics. For example, sudden changes in wind speed or turbulent disturbances can cause aerodynamic model errors to exhibit a heavy-tailed distribution. [7-9] GPS signals are affected by multipath effects in urban canyons, resulting in observation noise exhibiting a multi-peak distribution. [3,6] Visual odometry outputs errors with pulse characteristics during rapid rotation or sudden changes in lighting.
[17] The standard square root volume Kalman filter is based on the Gaussian assumption and only utilizes the first and second moments of noise. This fails to adequately characterize the statistical properties of non-Gaussian distributions, leading to a significant decrease in estimation accuracy. [14,26] While existing Gaussian mixture filters can model non-Gaussian distributions through multiple components, the number of components and their parameters need to be determined offline, making it impossible to adapt online to dynamic changes in noise statistical characteristics.
[27] .
[0052] Question 2: Lack of online compensation mechanisms for environmental interference. Drones are affected by various environmental disturbances during flight, including wind disturbance, turbulence, and ground effect. [8,9,18] These disturbances are difficult to describe with precise analytical models. Traditional filtering methods classify them as process noise, but the statistical characteristics of process noise are usually time-varying and unknown.
[19] For example, when a UAV enters the ground effect zone during its descent, its aerodynamic characteristics change significantly. Without an effective online compensation mechanism, model biases will accumulate, leading to severe deviations in position and attitude estimations.
[20] Existing adaptive filtering methods, such as online adjustment of noise covariance, can partially alleviate this problem, but they cannot specifically compensate for the structural characteristics of the interference. [29,30] .
[0053] Problem 3: Lack of a learnable robust mechanism for handling anomalies. UAV sensors are prone to generating anomalies in complex environments: output values jump when GPS signals are blocked or interfered with.[3,6] Visual odometry produces incorrect matches in areas with missing texture, and the IMU measures saturation during severe vibrations. [11,12] Traditional methods often use the chi-square test for anomaly detection, and when an anomaly is detected, either increase the observation noise covariance or directly reject the observation. [31,32] However, this binarization method has obvious drawbacks: first, the boundary between "abnormal" and "normal" is often blurred, and hard judgment may lead to information loss; second, the detection threshold needs to be set manually, making it difficult to adapt to different flight scenarios. [25,28] More importantly, this processing method is separate from the filtering process, making it impossible to perform joint optimization with state estimation.
[0054] Question 4: The non-differentiability of filtering algorithms hinders their deep integration with deep learning. Deep learning achieves end-to-end optimization through gradient backpropagation, but key numerical operations in traditional filtering algorithms—QR decomposition and Cholesky decomposition—lack gradient definitions in standard deep learning frameworks. This makes it difficult to embed the filtering process as a trainable layer into a deep learning architecture. Although some research has attempted to replace the filtering process with recurrent neural networks, this approach abandons the structured priors of filtering theory, leading to redundant model parameters, poor interpretability, and difficulty in guaranteeing the physical rationality of state covariance (such as positive definiteness constraints).
[40] Therefore, achieving differentiability of the filtering core is a key technological bottleneck connecting traditional filtering theory with modern deep learning.
[24] .
[0055] Based on the above analysis, constructing a differentiable filtering framework for UAV pose estimation has significant theoretical and engineering value. The core challenge lies in how to achieve differentiable modification of key components in the filtering process while maintaining numerical stability and physical interpretability, and how to design environmental interference compensation and anomaly observation handling mechanisms that can be optimized in tandem with the filtering process.
[0056] To address problem 1 (limited ability to model non-Gaussian noise), this invention proposes a volumetric point generation mechanism for interference sensing. Based on traditional volumetric point sampling, an interference offset generated online by a small neural network is introduced. This offset is dynamically calculated based on the current state estimate and observation information, and is used to compensate for systematic biases caused by non-Gaussian noise. Through end-to-end training, this mechanism can learn the mapping relationship from flight state to optimal sampling compensation.
[0057] To address problem 2 (lack of online compensation mechanism for environmental disturbances), this invention introduces a learnable aerodynamic compensation term during the state prediction stage. The compensation network... The output of the filter is used as the augmented input to the state transition function, enabling the filtering process to correct model errors caused by environmental disturbances such as wind and turbulence online. The structure of this compensation network is based on prior analysis of typical flight disturbance modes, and its parameters can be continuously optimized through gradient descent.
[0058] To address problem 3 (lack of a learnable robust mechanism for handling outlier observations), this invention designs a weighted cross-covariance update strategy. During the observation update phase, a residual-based weight coefficient is calculated for each volume point, enabling the filter to automatically reduce the contribution of outlier volume points to the state update. This weight allocation mechanism employs a soft, differentiable implementation, and the temperature parameter in the weight calculation can be adaptively adjusted through end-to-end training.
[0059] To address problem 4 (the filtering algorithm is not differentiable), this invention implements a fully differentiable square root capacitive Kalman filter layer. By employing a differentiable QR decomposition based on Householder reflections and a differentiable Cholesky decomposition based on Lyapunov equations, the gradient backpropagation path for the entire filtering process is established. This filter layer can be embedded into deep learning frameworks like a standard neural network module.
[0060] like Figure 2 As shown, the differentiable square root commensurate Kalman filter algorithm proposed in this invention differs from traditional methods ( Figure 1 Compared to the previous version, the present invention includes: (1) a method for generating interference sensing volume points; (2) a learnable aerodynamic compensation method; (3) a weighted cross-variance calculation method; and (4) a differentiable QR / Cholesky numerical core.
[0061] This paper details a differentiable square root capacitive Kalman filter algorithm for UAV pose estimation. First, a state-space model of the UAV (including state equations and observation equations) is established. Then, the mechanism for generating and weighting the capacitive points for interference sensing is explained. Next, a complete mathematical derivation of differentiable prediction and updating is given. Finally, the implementation technology of the differentiable numerical core is introduced.
[0062] Establish a state-space model for UAV pose estimation. This includes:
[0063] UAV state vector The definition is as described above. State transition function. Construction based on UAV kinematics and dynamics model [4,5] .
[0064] Position update: based on current velocity and sampling interval :
[0065] (4)
[0066] in, The acceleration is determined by the control input and the current attitude.
[0067] Speed updates:
[0068] (5)
[0069] Quaternion attitude update: quaternion differential equations based on angular velocity. The quaternion derivative satisfies... ,in This represents quaternion multiplication. The discretized form is:
[0070] (6)
[0071] in, The incremental quaternion is represented by the axis angle.
[0072] Angular velocity update (simplified model, considering damping):
[0073] (7)
[0074] in, To control the torque, This is the damping coefficient matrix.
[0075] The complete state transition function can be written as [4,5] :
[0076] (8)
[0077] in, This is the rotation matrix corresponding to the quaternion. For acceleration control input, This is the torque control input.
[0078] Construct the observation equation:
[0079] The drone is equipped with multiple sensors, and its observation vectors fuse information from IMU, GPS, and visual odometry. [3,6] :
[0080] (9)
[0081] The specific forms of each observation component are as follows: [3,6] :
[0082] (1) GPS observation (position + velocity):
[0083] (10)
[0084] in, The noise is due to GPS observations, and in actual flight, it exhibits non-Gaussian characteristics due to the multipath effect.
[0085] (2) Visual odometry observations (position increment + attitude):
[0086] Visual odometry provides relative position change and absolute attitude estimation:
[0087] (11)
[0088] in, This is visual odometry noise, which produces outliers when texture is missing or during rapid rotation.
[0089] (3) IMU observations (acceleration + angular velocity):
[0090] (12)
[0091] in, The gravity vector Noise is measured for the IMU.
[0092] Construct an enhanced state-space model that incorporates learnable compensation terms. This includes:
[0093] To facilitate the design of subsequent differentiable filters, this invention extends the state equation and observation equation into a form that includes learnable compensation terms:
[0094] (13)
[0095] (14)
[0096] in, It is a learnable aerodynamic compensation network used to correct state prediction biases caused by environmental disturbances such as wind disturbance and turbulence; This is a learnable observation compensation network used to suppress observational interference such as GPS anomalies and visual occlusion. Both networks are implemented using a small multilayer perceptron (64 hidden layer dimensions, 2 layers), and their parameters... , Optimize through end-to-end training.
[0097] The interference-sensing volume point generation and weighted update strategy method proposed in this invention specifically includes the following operations:
[0098] set up The mean of the state estimate at time step is The square root factor of covariance is Standard volume point The generation method is
[41] :
[0099] (15)
[0100] Among them, the standard volume vector Defined as:
[0101] (16)
[0102] Let be the j-th standard basis vector.
[0103] This invention adds an interference offset generated online by a neural network to the standard volume point generation:
[0104] (17)
[0105] in, The disturbance offset function is implemented using a small multilayer perceptron. The network input is the state estimate from the previous time step. Observation at the previous moment The output is a compensation vector with the same dimension as the state. Its physical meaning is that when the UAV is subjected to continuous environmental disturbances such as wind and turbulence, the center of the true probability distribution of the state will deviate from the nominal prediction value, and the disturbance offset is the compensation for this systematic deviation.
[0106] The compensated volumetric point is propagated through the state transition function and then added to the output of the aerodynamic compensation network:
[0107] (18)
[0108] The predicted mean is obtained by the weighted average of the volume points after propagation:
[0109] (19)
[0110] During the observation update phase, volume points are first regenerated based on the predicted distribution and then propagated through the observation function (including the observation compensation network):
[0111] (20)
[0112] (twenty one)
[0113] This invention proposes a soft weighting mechanism based on residuals. The weight coefficient for the j-th volume point is defined as:
[0114] (twenty two)
[0115] in, The temperature parameter is learnable. The essence of this weighting is that volumetric points with smaller observation residuals are more consistent with the current actual observations and are given higher weights in state updates; volumetric points with large residuals may correspond to abnormal observations such as GPS anomalies or visual occlusions, and their contributions are automatically suppressed.
[0116] Based on the above weights, the weighted predicted observation mean and weighted cross-covariance matrix are calculated as follows:
[0117] (twenty three)
[0118] (twenty four)
[0119] In summary, the complete prediction and update steps of the differentiable square root capillary Kalman filter proposed in this invention are as follows. All operations are differentiable and support gradient backpropagation. These include:
[0120] Step 1: QR decomposition update for predicting the square root of covariance
[0121] Construct the augmented difference matrix:
[0122] (25)
[0123] in, Let be the square root matrix of the process noise covariance. For Perform QR decomposition:
[0124] (26)
[0125] Then predict the square root of the covariance Pick The upper triangular part.
[0126] Step 2: Update the QR decomposition of the observed square root of covariance
[0127] Construct the observation difference augmented matrix:
[0128] (27)
[0129] in, The square root matrix of the observation noise covariance (m is the observation dimension, in this invention m=6+7+6=19). For Performing QR decomposition yields the square root of the observed covariance. .
[0130] Step 3: Kalman gain calculation (triangular back substitution)
[0131] The Kalman gain is calculated by solving a system of trigonometric equations, avoiding explicit matrix inversion.
[0132] Solve get
[0133] Solve get
[0134] Step 4: Status Update
[0135] (28)
[0136] Step 5: QR decomposition update of the posterior square root of covariance
[0137] Construct the posterior update matrix:
[0138] (29)
[0139] right Perform QR decomposition to obtain the posterior covariance square root. .
[0140] To facilitate reproduction and engineering implementation, the above steps are summarized as Algorithm 1.
[0141] Algorithm 1: Differentiable Square Root Capacitive Kalman Filter (D-SRCKF) for UAV Pose Estimation
[0142] Input: Initial state estimate Initial covariance square root Observation sequence control sequence
[0143] Output: State estimation sequence Covariance sequence
[0144] 1:fork=1toKdo
[0145] 2: / / Phase 1: Generation of Interference Sensing Volume Points
[0146] 3:forj=1to24do
[0147] 4:
[0148] 5:
[0149] 6:endfor 7:
[0151] 8: / / Phase Two: Volume Point Propagation and Aerodynamic Compensation
[0152] 9:forj=1to24do
[0153] 10:
[0154] 11:endfor
[0155] 12: 13:
[0157] 14: / / Phase Three: Predicting Covariance QR Update
[0158] 15:
[0159] 16:
[0160] 17: 18:
[0162] 19: / / Phase Four: Observation, Prediction, and Weighted Statistics
[0163] 20:forj=1to24do
[0164] twenty one:
[0165] twenty two:
[0166] 23:endfor
[0167] twenty four:
[0168] 25:
[0169] 26: 27:
[0171] 28: / / Phase Five: Observation Covariance QR Decomposition and Update
[0172] 29:
[0173] 30:
[0174] 31: 32:
[0176] 33: / / Stage Six: Kalman Gain Solution (Triangular Back Substitution)
[0177] 34:Solve
[0178] 35:Solve
[0179] 36: / / Phase Seven: Status Update
[0180] 37: 38:
[0182] 39: / / Phase 8: Posterior Covariance QR Decomposition and Update
[0183] 40:
[0184] 41:
[0185] 42:
[0186] 43:
[0187] 44:endfor
[0188] While traditional deep learning frameworks support automatic differentiation for most matrix operations, gradient calculation requires special handling for operations with complex numerical structures, such as QR decomposition and Cholesky decomposition. The following details the differentiable implementation scheme employed in this invention.
[0189] (1) Differentiable QR decomposition
[0190] QR decomposition will input matrix Decompose into orthogonal matrices and upper triangular matrix The product of: Let the loss function be... Given the upstream gradient and , needs to be calculated According to matrix differential theory, this gradient can be calculated using the following formula.
[40] :
[0191] (30)
[0192] This invention employs a Householder-based reflection-based implementation scheme, recording the QR decomposition process as a product of a series of elementary transformation matrices: Each Householder reflects It is a differentiable elementary transformation, and its gradient can be backpropagated layer by layer using the chain rule.
[0193] (2) Differentiable Cholesky decomposition
[0194] Cholesky decomposition yields symmetric positive definite matrices. Decompose into the product of a lower triangular matrix L and its transpose: Given the upstream gradient , needs to be calculated According to the differential theory of Cholesky decomposition, This can be obtained by solving the following Lyapunov equation.
[31] :
[0195] (31)
[0196] make The above equation is a Lyapunov equation in X. Since L is a lower triangular matrix, this equation can be solved efficiently through forward or backward substitution. This invention employs a vectorization method based on the Kronecker product to transform the Lyapunov equation into a system of linear equations for solution, ensuring the numerical accuracy of gradient calculation.
[0197] (3) Integration method of differentiable filter layer
[0198] Based on the aforementioned differentiable numerical core, this invention encapsulates the complete square root capacitive Kalman filtering process into a custom PyTorch module, DifferentiableSRCKF. The interface design of this module is as follows:
[0199] Input: Observation sequence Control input sequence Initial state Initial covariance
[0200] Output: State estimation sequence Covariance sequence
[0201] Learnable parameters: Aerodynamic compensation network parameters Observation compensation network parameters Interference offset network parameters Temperature parameters Noise covariance parameter , .
[0202] During the training phase, the filtered output is compared with the ground truth to calculate the loss (e.g., position mean square error + quaternion error). Calling `loss.backward()` automatically calculates the gradients of all learnable parameters. During the inference phase, the module runs in pure forward mode, with computational overhead comparable to traditional SRCKF.
[0203] The overall logical framework of the Differentiable Square Root Capacitive Kalman Filter (D-SRCKF) algorithm for UAV pose estimation proposed in this invention is as follows: Figure 3 As shown. The entire algorithm can be divided into three functional levels:
[0204] First layer: State prediction and disturbance compensation layer. This layer estimates the state at time k-1. , covariance square root and current observations As input, the interference-aware volumetric point generation module (containing a learnable offset network) is used. And the aerodynamic compensation network g, outputting the predicted state. and predicted covariance square root The core innovation of this layer lies in the fact that the volume point generation incorporates environmental information, achieving systematic compensation for environmental disturbances such as wind disturbance and turbulence.
[0205] The second layer: Observation update and robust weighting layer. This layer uses the predicted state distribution and current observations... As input, the algorithm employs weighted capacitive point propagation, weighted cross-covariance calculation, and robust Kalman gain solving to output an updated state estimate. and the square root of the posterior covariance The core innovation of this layer lies in the residual-driven soft weight allocation mechanism, which enables the filter to automatically suppress the effects of abnormal observations such as GPS anomalies and visual occlusion.
[0206] The third layer: the differentiable numerical core layer. This layer provides gradient-transparent underlying support for all the above operations, including differentiable QR decomposition and differentiable Cholesky decomposition. Through this layer, the entire filtering process can be embedded into the deep learning framework as an end-to-end trainable module.
[0207] Table 1 compares the algorithm of this invention with traditional SRCKF, Extended Kalman Filter (EKF), Unscented Kalman Filter (UKF), and Gaussian Mixture Filter (GMM-CKF) from multiple dimensions.
[26] Differences in UAV pose estimation applications.
[0208] Table 1 Comparison of different filtering algorithms in UAV pose estimation
[0209] Comparison Dimensions Traditional EKF UKF Traditional SRCKF GMM-CKF This invention D-SRCKF Nonlinear processing capability Weak (first-order linearization) (UT Transform) Strong (volume integral) Strong (volume integral) Strong (volume integral) Non-Gaussian noise modeling Not supported Not supported Not supported Supports (multi-component) Support (interference offset) Online compensation for environmental disturbances Not supported Not supported Not supported Not supported Support (pneumatic compensation network) Robustness of anomaly observation weak weak weak middle Strong (weighted mechanism) Differentiability Partial (requires manual derivation) part no no Completely differentiable End-to-end learning capability no no no no support Positive definiteness of covariance Additional processing required Additional processing required It is (in square root form). It is (in square root form). It is (in square root form).
[0210] This invention introduces a volume point generation mechanism for interference sensing (corresponding to equation (9)). Traditional SRCKF volume point sampling relies solely on the mean and covariance of the state distribution, failing to reflect the systematic shift of the distribution center due to environmental interference. This invention utilizes learnable interference offset... A volume point generation process is introduced to enable the sampling point set to dynamically adapt to environmental disturbances such as wind and turbulence. Compared with existing adaptive filtering methods, the advantage of this method is that the offset function is learned from the data through end-to-end training, eliminating the need for manually designed disturbance models.
[0211] This invention introduces a dual-network architecture of aerodynamic compensation and observation compensation. Environmental disturbances such as wind disturbance and turbulence, and observational disturbances such as GPS anomalies and visual occlusion, are modeled as independent learnable networks g and d, respectively, and jointly optimized within a filtering framework. Unlike traditional methods that simply classify unmodeled dynamics as noise, this architecture enables the filter to learn the structural characteristics of the disturbances. The inputs to both networks include the current state and observation information, and the output is a compensation vector with the same dimension as the state or observation.
[0212] This invention introduces a weighted cross-covariance update mechanism (corresponding to equations (10)-(12)). Traditional methods apply equal weights to all volume points when calculating cross-covariance, making them sensitive to anomalous observations. The residual-driven soft weight allocation mechanism proposed in this invention enables the filter to automatically reduce the contribution of anomalous volume points such as GPS anomalies and visual occlusion. Compared with the chi-square test + hard rejection strategy, this mechanism achieves a paradigm shift from "anomaly detection" to "anomaly weighting," and the temperature parameter... It can learn and does not require manual threshold setting.
[0213] This invention introduces a fully differentiable filter layer based on QR decomposition (corresponding to equations (13)-(14)). Through the implementation of differentiable QR decomposition and Cholesky decomposition, this invention, for the first time, constructs a fully differentiable SRCKF layer for UAV pose estimation. Compared with RNN-based depth filtering alternatives, this method retains the physical interpretability (state covariance, Kalman gain, etc., all have clear physical meanings) and numerical stability of SRCKF (the square root form guarantees positive definiteness of the covariance).
[0214] To verify the effectiveness of the UAV pose estimation method proposed in this invention, a filtering comparison experiment under non-Gaussian noise (referred to as Experiment 1), an end-to-end learning capability verification experiment (referred to as Experiment 2), an ablation experiment, and a parameter sensitivity analysis were conducted (referred to as Experiment 3).
[0215] Experiment 1:
[0216] This invention uses MATLAB to build a quadcopter UAV simulation platform to verify the effectiveness of the proposed algorithm. The UAV parameters are set as follows: mass... Inertia matrix Rotary arm length The simulated trajectory uses uniform circular motion with a radius R = 5 m, an angular velocity ω = 0.4 rad / s, and a constant flight altitude of 5 m. The total simulation duration is T = 30 s, and the sampling frequency is f. s =100 Hz.
[0217] To simulate the non-Gaussian characteristics of real flight environments, this invention employs a mixture of Gaussian noise model:
[0218] (28)
[0219] in, Simulate heavy tail noise. Specific noise parameter settings are as follows: GPS location noise standard deviation. Speed noise standard deviation Visual odometry position increment noise standard Attitude noise standard deviation IMU acceleration noise standard deviation Gyroscope noise standard deviation Furthermore, in The simulated GPS signal anomaly during the time period resulted in a 5-fold amplification of the observed noise.
[0220] This invention selects the following methods for comparison: Standard Extended Kalman Filter (EKF), Standard Square Root Capacitive Kalman Filter (SRCKF), Gaussian Mixture Square Root Capacitive Kalman Filter (GMM-SRCKF, number of components M=3), and the Differentiable Square Root Capacitive Kalman Filter (D-SRCKF) proposed in this invention. Evaluation metrics include root mean square error of position (RMSE), velocity RMSE, roll RMSE, pitch RMSE, yaw RMSE, and overall attitude RMSE (defined as the Euclidean norm of the three attitude angle errors).
[0221] Figure 4 The position, velocity, and attitude error curves for four methods are shown over a 30-second simulation period. From Figure 4 The following phenomena can be observed:
[0222] During the normal flight phase (0-25s): the errors of all four methods remained at a low level, but the error curve of D-SRCKF was always at the bottom, indicating that its steady-state estimation accuracy was the best.
[0223] During the GPS anomaly phase (25-28s): the errors of EKF and standard SRCKF show significant peaks, with the position error peak of EKF exceeding 0.5m; the peak of GMM-SRCKF is reduced due to its multi-component modeling capability; while the D-SRCKF of this invention effectively suppresses the impact of anomalies due to its weighted cross-variance update mechanism, resulting in the smallest error peak.
[0224] Recovery phase (28-30s): D-SRCKF has the fastest error recovery speed, rapidly returning to steady-state level within about 1 second after the anomaly ends.
[0225] Figure 5 The bar chart visually compares the four methods across various metrics. The red bar for D-SRCKF is the shortest across all metrics, validating its robustness in non-Gaussian noise environments.
[0226] Table 2 shows a comparison of the estimation accuracy of the four methods in non-Gaussian noise environments. The results demonstrate that the D-SRCKF proposed in this invention achieves the best performance across all evaluation metrics. Specifically, the D-SRCKF's position RMSE is 0.1169 m, a 51.2% improvement compared to EKF (0.2396 m), a 36.3% improvement compared to the standard SRCKF (0.1835 m), and a 22.1% improvement compared to GMM-SRCKF (0.1501 m). In velocity estimation, the D-SRCKF's velocity RMSE is 0.0476 m / s, a 25.5% improvement compared to GMM-SRCKF.
[0227] In terms of attitude estimation, the D-SRCKF achieved a combined attitude RMSE of 1.1707°, a 49.9% improvement over EKF (2.3380°), a 31.6% improvement over SRCKF (1.7124°), and a 19.4% improvement over GMM-SRCKF (1.4518°). The estimation accuracy for all three attitude angles was significantly improved, with roll RMSE at 0.5623°, pitch RMSE at 0.4863°, and yaw RMSE at 0.9044°.
[0228] Table 2 Comparison of estimation accuracy of various methods in non-Gaussian noise environment
[0229] method Location RMSE (m) Speed RMSE (m / s) Roll angle RMSE (°) Pitch angle RMSE (°) Yaw angle RMSE (°) AttitudeRMSE (°) EKF 0.2396 0.1146 1.2245 1.0864 1.6693 2.3380 SRCKF 0.1835 0.0826 0.9019 0.7985 1.2170 1.7124 GMM-SRCKF 0.1501 0.0639 0.7455 0.6539 1.0604 1.4518 This invention D-SRCKF 0.1169 0.0476 0.5623 0.4863 0.9044 1.1707
[0230] Simulation experiments were conducted to compare the pose estimation performance of EKF, SRCKF, GMM-SRCKF, and the D-SRCKF proposed in this invention under non-Gaussian noise environments, and the following conclusions were drawn:
[0231] Conclusion 1: The D-SRCKF proposed in this invention achieves the best estimation accuracy under non-Gaussian noise conditions. The position RMSE is 0.1169m, a 22.1% improvement compared to GMM-SRCKF; the overall attitude RMSE is 1.1707°, a 19.4% improvement compared to GMM-SRCKF. This verifies the effectiveness of the interference-sensing volumetric point generation mechanism and the weighted cross-covariance update strategy.
[0232] Conclusion 2: During the GPS anomaly observation period (25-28s), the D-SRCKF exhibits the smallest error peak and the fastest recovery. This is attributed to the residual-driven soft weight allocation mechanism proposed in this invention, which enables the filter to automatically reduce the contribution of anomalous volume points in state updates, achieving a paradigm shift from "anomaly detection" to "anomaly weighting".
[0233] Conclusion 3: D-SRCKF outperforms the comparison methods in estimating all attitude angles (roll, pitch, and yaw), with the most significant improvement in yaw angle accuracy (14.7% improvement compared to GMM-SRCKF). This is because yaw angle observation mainly relies on GPS and visual odometry, which are most affected by abnormal observations, and D-SRCKF's weighting mechanism is more robust to such interference.
[0234] Conclusion 4: Compared with the traditional SRCKF, D-SRCKF improves the position estimation accuracy by 36.3% and the attitude estimation accuracy by 31.6%. This improvement is significantly higher than that of GMM-SRCKF relative to SRCKF (position 18.2%, attitude 15.2%), indicating that the differentiable learning framework proposed in this invention has stronger adaptive capabilities than the Gaussian mixture method with fixed components.
[0235] Experiment 2:
[0236] This experiment aims to verify the end-to-end learning capability of the Differentiable Square Root Capacitive Kalman Filter (D-SRCKF) proposed in this invention, that is, whether the filter layer can be jointly trained with the neural network to optimize the learnable parameters through gradient backpropagation.
[0237] (1) Experimental scenario and model deviation design
[0238] To verify the effectiveness of end-to-end learning, this invention designs a model bias scenario: assuming the aerodynamic damping coefficient D of the UAV is unknown. In the real system, the damping coefficient is D. true =0.05, while the initial guess used in the filter is D. init =0.02, indicating a significant bias. This bias will cause systematic errors in state prediction, which need to be compensated for through learning.
[0239] (2) Design of learnable compensation network
[0240] This invention introduces a small aerodynamic compensation network. Its inputs are the current state estimate and observation information, and its output is the compensation amount for the state prediction. This network employs a two-layer multilayer perceptron structure, with a hidden layer dimension of 64 and an output dimension of 12 (the same dimension as the state). Network parameters... As a learnable variable, it is jointly optimized with the filtering process.
[0241] (3) Training and testing data
[0242] The simulated trajectory employs uniform circular motion with a radius R = 5 m, an angular velocity ω = 0.4 rad / s, and a constant flight altitude of 5 m. A total of 40 trajectories are generated, with 30 used for training and 10 for testing. Each trajectory lasts 20 seconds, and the sampling frequency is f. s=100 Hz. The loss function is defined as a weighted sum of position and attitude errors:
[0243] (32)
[0244] Where λ=0.5 is the attitude error weighting coefficient.
[0245] (4) Comparison of configurations
[0246] This experiment sets up three comparison configurations:
[0247] Configuration 1 (No Compensation): Using an incorrect damping coefficient D=0.02, an uncompensated network as the baseline;
[0248] Configuration 2 (Offline Training): First, train the compensation network on the training set. After training, fix the network parameters and evaluate it on the test set.
[0249] Configuration 3 (End-to-End D-SRCKF): The compensation network and the filter layer are jointly trained, and the gradient is backpropagated through the differentiable filter layer and evaluated on the test set.
[0250] The optimizer used was Adam, with an initial learning rate of 0.001, and a total of 60 epochs were trained.
[0251] Figure 6 The graph shows the variation of the RMSE of the validation set location with training epochs during both offline and end-to-end training. The following phenomena can be observed from the graph:
[0252] Convergence speed: End-to-end D-SRCKF converges after approximately 30 epochs, while offline training requires approximately 45 epochs. End-to-end training converges 33% faster than offline training because the differentiable filter layer provides more direct and richer gradient information, enabling the compensation network to learn optimal parameters more quickly.
[0253] Convergence accuracy: The final convergence error of end-to-end D-SRCKF (0.165m) is significantly lower than that of offline training (0.213m), which verifies the advantage of joint optimization over two-stage training.
[0254] Curve shape: The loss curves of both configurations exhibit a typical exponential decay pattern, with a rapid decline in the early stage and a tendency to stabilize in the later stage, indicating that the training process is stable.
[0255] Figure 7A direct comparison of the final performance of the three configurations across position, velocity, and attitude metrics was presented. The red bars of the end-to-end D-SRCKF were the shortest across all metrics, validating its optimality. In particular, end-to-end training showed the most significant improvement in attitude estimation (23.2% improvement compared to offline training). This is because attitude dynamics have stronger nonlinearity and are more sensitive to model bias, thus benefiting more from end-to-end learning.
[0256] Table 3 shows a comparison of the estimation accuracy of the three configurations on the test set.
[0257] Table 3 Comparison of estimation performance under different training strategies
[0258] Configuration Location RMSE (m) Speed RMSE (m / s) Posture RMSE (°) epochs required for convergence No compensation (standard SRCKF) 0.287 0.128 1.850 - Offline training + fixed compensation 0.213 0.096 1.420 45 This invention, end-to-end D-SRCKF 0.165 0.074 1.090 30
[0259] The results show that the end-to-end D-SRCKF proposed in this invention achieves the best performance across all evaluation metrics.
[0260] Specifically, the end-to-end D-SRCKF achieves a position RMSE of 0.165 m, a 42.5% improvement over the uncompensated configuration (0.287 m) and a 22.5% improvement over the offline training configuration (0.213 m). In velocity estimation, the end-to-end D-SRCKF achieves a velocity RMSE of 0.074 m / s, a 22.9% improvement over offline training (0.096 m / s). In pose estimation, the end-to-end D-SRCKF achieves a pose RMSE of 1.090°, a 23.2% improvement over offline training (1.420°).
[0261] End-to-end learning experiments verified the differentiability and joint optimization capability of the D-SRCKF method of this invention, and the following conclusions were drawn:
[0262] Conclusion 1: The end-to-end trained D-SRCKF outperforms the offline trained method on all evaluation metrics. The position RMSE is 0.165m, a 22.5% improvement compared to offline training; the velocity RMSE is improved by 22.9%; and the pose RMSE is improved by 23.2%. This demonstrates that directly backpropagating the filtering loss to the compensation network achieves better parameter optimization.
[0263] Conclusion 2: End-to-end training converges faster (30 epochs vs. 45 epochs), an improvement of approximately 33%. This is because the differentiable filter layer provides more direct and richer gradient information, avoiding the information loss caused by the two-stage optimization process of "training the network first and then fixing the parameters" in offline training.
[0264] Conclusion 3: The uncompensated configuration (using the error damping coefficient) had the largest error (position RMSE = 0.287m), verifying the necessity of online model bias compensation. Even with offline training, performance was still significantly improved (position RMSE decreased from 0.287m to 0.213m), but end-to-end training further reduced the error to 0.165m, demonstrating the advantages of joint optimization.
[0265] Conclusion 4: This experiment successfully verified the differentiability of D-SRCKF—the gradient can propagate back to the compensation network parameters from the loss function through state update steps, Kalman gain calculation, QR decomposition, and other operations. This lays the foundation for embedding the filtering layer into more complex deep learning architectures (such as combining object detection and path planning).
[0266] Experiment 3:
[0267] This experiment aims to verify the independent contribution of each innovative component in the D-SRCKF algorithm proposed in this invention, and to analyze the influence of the key parameter temperature γ on the filtering performance.
[0268] (1) Ablation Experiment Design
[0269] To evaluate the effectiveness of each component, this invention designs four variant configurations:
[0270] Table 4: Ablation Experiment Results
[0271]
[0272] All variants were run under the same simulation environment: a uniform circular trajectory, a duration of 30 seconds, and a sampling frequency of 100Hz. Considering that the previous experiments have verified the effectiveness of the algorithm under standard non-Gaussian conditions, this experiment aims to evaluate the algorithm's performance and robustness boundaries under extreme conditions. Therefore, the ablation experiment was run under a more stringent high-pressure stress simulation environment than Experiment 1, that is, the outlier weight in the mixed Gaussian noise was increased from 0.1 to 0.2, and high-frequency random wind field disturbances simulating real severe convective weather were introduced (the maximum disturbance amplitude was increased by 50%).
[0273] (2) Evaluation indicators
[0274] In addition to position RMSE, velocity RMSE, and attitude RMSE, this experiment focuses on the anomaly peak error, which is the maximum position error during the GPS anomaly period (25-28 seconds), to evaluate the ability of each component to suppress anomaly observations.
[0275] (3) Parameter sensitivity analysis design
[0276] This invention further analyzes the impact of the temperature parameter γ in the weighting mechanism on the filtering performance. γ controls the concentration of the weight distribution: the smaller γ is, the more uniform the weight distribution (approaching equal weight); the larger γ is, the more concentrated the weight distribution (only a few low residual volume points obtain high weight). The experiment sets the γ value range to [0.01, 0.05, 0.1, 0.2, 0.5, 1.0, 2.0, 5.0, 10.0]. With other conditions unchanged, the RMSE corresponding to each γ value is recorded to determine the optimal parameter range.
[0277] Figure 8 The estimation accuracy of the four variants on the test set is compared. The results show that the full D-SRCKF (variant D) achieves the best performance across all evaluation metrics. Specifically:
[0278] The position RMSE of variant D (complete) is 0.189 m, which is 14.5% higher than that of variant A (no offset, 0.221 m), 19.6% higher than that of variant B (equal weight, 0.235 m), and 9.1% higher than that of variant C (no aerodynamic compensation, 0.208 m).
[0279] In terms of velocity estimation, variant D has a velocity RMSE of 0.088 m / s, which is better than all ablation variants.
[0280] In terms of pose estimation, variant D has a pose RMSE of 1.220°, which is also optimal.
[0281] Based on the ablation experiment results, the independent contribution of each innovative component can be quantified (in terms of the percentage improvement in RMSE at location):
[0282] Table 5: Independent Contributions of Each Innovative Component
[0283] Components contribute illustrate Weighted mechanism 19.6% The biggest contribution was made in improving robustness against anomalies. Interference offset network 14.5% The contribution is secondary, compensating for non-Gaussian noise bias. pneumatic compensation network 9.1% Thirdly, it corrects model bias.
[0284] Of particular note is that the weighting mechanism has the most significant effect on suppressing peak errors during anomalous periods: the anomalous peak value of variant B (equal weight) is 1.24m, while that of variant D (complete) drops to 0.41m, a reduction of up to 67%. This verifies the key role of the residual-driven soft weighting allocation mechanism in suppressing the impact of anomalous observations.
[0285] Figure 9 The influence curve of temperature parameter γ on the position RMSE is shown. The following patterns can be observed from the results:
[0286] When γ is too small (<0.1): the weight distribution tends to be uniform, the weighting mechanism degenerates into approximately equal weights, and the RMSE is high (RMSE=0.245m when γ=0.01).
[0287] A moderate γ (0.2~1.0) indicates a reasonable weight distribution that effectively distinguishes between normal and abnormal volume points, resulting in a low RMSE. The optimal γ is 0.5, corresponding to an RMSE of 0.189m.
[0288] If γ is too large (>2.0): the weights are too concentrated, only a few volume points receive extremely high weights, the filter is too sensitive to noise, and the RMSE increases again (RMSE=0.265m when γ=10).
[0289] Table 6: Sensitivity analysis of temperature parameter γ
[0290] γ value 0.01 0.05 0.1 0.2 0.5 1.0 2.0 5.0 10.0 Location RMSE (m) 0.245 0.225 0.208 0.195 0.189 0.192 0.205 0.235 0.265
[0291] Recommended parameter range: γ∈[0.2,1.0]. Within this range, the filter is not sensitive to parameter changes and its performance is stable.
[0292] The effectiveness of each innovative component of D-SRCKF was verified through ablation experiments and parameter sensitivity analysis, and the following conclusions were drawn:
[0293] Conclusion 1: Each innovative component makes an independent contribution. Among them, the weighting mechanism makes the largest contribution (improving the location RMSE by 19.6%), especially in suppressing anomalous observations (the peak anomalous value decreased from 1.24m to 0.41m, a reduction of 67%). This verifies the core role of the residual-driven soft weight allocation mechanism proposed in this invention.
[0294] Conclusion 2: The interference offset network made the second largest contribution (improving the position RMSE by 14.5%), validating its effectiveness in compensating for systematic biases caused by non-Gaussian noise. Even in periods without anomalies, the network consistently improved estimation accuracy.
[0295] Conclusion 3: The aerodynamic compensation network contributes 9.1%, which is relatively small, but plays an important role in model bias scenarios (such as when the damping coefficient is unknown). Its contribution can be further amplified by enhancing the model bias scenario.
[0296] Conclusion 4: The optimal value of the temperature parameter γ is between 0.2 and 1.0, with γ=0.5 recommended. Too small a value for γ will cause the weighting mechanism to fail, while too large a value will make the filter overly sensitive to noise. The learnable design of this parameter (automatic adjustment through end-to-end training) avoids the difficulties of manual parameter tuning.
[0297] Conclusion 5: The ablation experiment results show that the complete D-SRCKF (variant D) outperforms any ablation variant in all indicators, verifying the good synergistic effect among the components—the interference offset network improves state distribution modeling, the weighting mechanism suppresses anomalous observations, and the aerodynamic compensation network corrects model biases. The three work together to improve the overall performance.
[0298] Conclusion 6: Comparing the results of Experiment 1 and Experiment 3, it can be found that although the absolute error of D-SRCKF (0.189m) increases compared with the standard condition under extreme working conditions (outlier weights in mixed Gaussian noise set to 0.2 and strong wind disturbance), its accuracy is still significantly better than other ablation variants. This proves that the algorithm has extremely strong performance limits and robustness under complex stress environments.
[0299] To verify the robustness and engineering applicability of the algorithm of this invention in real-world complex environments, a water surface flight scenario was designed. This scenario simulates the typical challenges faced by UAVs performing tasks above rivers, lakes, or the sea.
[0300] The drone flies at a height of 5-10 meters above the water surface, performing a mission lasting 60 seconds, divided into three phases:
[0301] Phase 1 (0-20s): Cruise phase. The drone cruises along the water surface in a straight line at a speed of approximately 2m / s, simulating water quality monitoring or water surface inspection tasks.
[0302] Phase 2 (20-40s): Circular flight phase. The UAV performs a circular motion with a radius of 5m around a water surface buoy or target point to simulate target tracking or hovering observation tasks.
[0303] Phase 3 (40-60s): Landing Phase. The drone gradually descends from a height of 5 meters to the water platform, simulating an autonomous recovery mission.
[0304] The comparison method is the same as in Experiment 1: EKF, SRCKF, GMM-SRCKF (number of components M=3), and the D-SRCKF proposed in this invention. Evaluation metrics include position RMSE, velocity RMSE, and attitude RMSE, with particular attention paid to performance differences in each flight phase to assess the algorithm's adaptability under different disturbance intensities.
[0305] Figure 10 The graphs show the changes in position, velocity, and attitude errors over time for four different methods during a 60-second waterborne flight mission. The following phenomena can be observed from the graph:
[0306] During the cruise phase (0-20s), the interference is relatively weak, and the performance differences between the methods are small. The error curve of D-SRCKF is slightly lower than that of other methods, but the difference is not significant.
[0307] During the circular flight phase (20-40s): As flight maneuverability and interference increase, the errors of EKF and SRCKF increase significantly, GMM-SRCKF shows moderate performance, while the error of D-SRCKF increases the slowest, with the red curve (D-SRCKF) always remaining at the bottom.
[0308] During the descent phase (40-60s), interference reaches its peak (enhanced GPS multipath effect, degraded visual features), and the errors of all methods increase significantly. The peak position error of EKF exceeds 0.7m, SRCKF exceeds 0.6m, GMM-SRCKF is about 0.5m, while the peak value of D-SRCKF is only about 0.4m and has the fastest recovery speed.
[0309] Of particular note is the significant advantage of D-SRCKF in attitude estimation. During the landing phase, the peak attitude error of EKF was close to 4.5°, while that of D-SRCKF was only about 2.5°, thanks to the effective suppression of anomalous observations by the weighting mechanism.
[0310] Figure 11 The figure shows a comparison of the RMSE (Realms of Measure) for position, velocity, and attitude across three flight phases using four different methods. The following conclusions can be drawn from the figure:
[0311] Phase 1 (Cruise): The performance of all methods is similar, with D-SRCKF slightly better. Position RMSE: D-SRCKF is 0.152m, and GMM-SRCKF is 0.198m.
[0312] Phase 2 (Circular): The gap begins to widen. The RMSE of the D-SRCKF position is 0.215m, which is 24.6% lower than that of the GMM-SRCKF (0.285m).
[0313] Phase 3 (Landing): The performance differences are most significant. The D-SRCKF's position RMSE is 0.338m, which is 25.2% lower than that of the GMM-SRCKF (0.452m); its attitude RMSE is 1.95°, which is 24.4% lower than that of the GMM-SRCKF (2.58°).
[0314] This result demonstrates that the stronger the interference, the more obvious the advantages of D-SRCKF, verifying the robustness of the algorithm in complex environments.
[0315] Table 7 shows a comparison of the overall estimation accuracy of the four methods in the water surface flight scenario.
[0316] Table 7: Performance Comparison in Water Surface Flight Scenarios
[0317] method Location RMSE (m) Speed RMSE (m / s) Posture RMSE (°) EKF 0.452 0.198 2.856 SRCKF 0.368 0.156 2.213 GMM-SRCKF 0.312 0.132 1.892 This invention D-SRCKF 0.235 0.098 1.445
[0318] The results show that the D-SRCKF proposed in this invention achieves optimal performance across all evaluation metrics. Specifically:
[0319] Location estimation: The RMSE of D-SRCKF is 0.235m, which is 48.0% higher than EKF (0.452m), 36.1% higher than SRCKF (0.368m), and 24.7% higher than GMM-SRCKF (0.312m).
[0320] Speed estimation: The speed RMSE of D-SRCKF is 0.098 m / s, which is 25.8% higher than that of GMM-SRCKF (0.132 m / s).
[0321] Attitude estimation: The attitude RMSE of D-SRCKF is 1.445°, which is 23.6% higher than that of GMM-SRCKF (1.892°).
[0322] Figure 12 The bar chart visually compares the overall performance of the four methods in water surface flight missions. The red bars of D-SRCKF are the shortest in all three indicators: position, velocity, and attitude, and the improvement is consistent (approximately 24-26%), verifying the algorithm's comprehensive superiority in complex water surface environments.
[0323] Through real-world water-based flight scenarios, the robustness and engineering applicability of the D-SRCKF algorithm of this invention in complex environments were verified, leading to the following conclusions:
[0324] Conclusion 1: In complex water environments, the position RMSE of D-SRCKF is 0.235m, which is 24.7% higher than GMM-SRCKF, 36.1% higher than SRCKF, and 48.0% higher than EKF. Significant improvements in velocity and attitude estimation are also consistently achieved, verifying the algorithm's comprehensive robustness to real-world disturbances such as water surface reflection, texture loss, and GPS multipath propagation.
[0325] Conclusion 2: The performance improvement is most significant during the landing phase (40-60s, the period of strongest interference). The position RMSE of D-SRCKF is 0.338m, which is 25.2% lower than that of GMM-SRCKF (0.452m); the attitude RMSE is 1.95°, which is 24.4% lower than that of GMM-SRCKF (2.58°). This result shows that the weighted cross-covariance update mechanism proposed in this invention has a more significant advantage under strong interference conditions.
[0326] Conclusion 3: From Figure 10 As can be seen from the error curves, D-SRCKF not only outperforms the comparative methods in terms of steady-state error, but also has significant advantages in peak error and recovery speed during anomalous disturbances. This is due to the residual-driven soft weight allocation mechanism, which enables the filter to automatically reduce the contribution of anomalous volume points while retaining effective observation information.
[0327] Conclusion 4: The experimental results show that the algorithm of this invention has the potential to be deployed in real water environments and can provide reliable state estimation support for UAV water operations (such as water quality monitoring, search and rescue, maritime inspection, shipborne autonomous take-off and landing, etc.).
[0328] This invention addresses the pose estimation problem of UAVs in complex environments by proposing a differentiable square root capsular Kalman filter (SWR) algorithm. While maintaining the numerical stability of the SWR, this algorithm achieves three core innovations: a disturbance-aware capsular point generation mechanism that compensates for environmental disturbances such as wind and turbulence through learnable disturbance offsets; a weighted cross-variance update mechanism that suppresses the impact of abnormal observations such as GPS anomalies and visual occlusion through residual-dependent soft weight allocation; and a fully differentiable filter layer design that establishes a gradient backpropagation path through differentiable QR decomposition and Cholesky decomposition. Experimental results show that in non-Gaussian noise environments, the algorithm achieves a position RMSE of 0.1169m, a 36.3% improvement compared to SRCKF and a 22.1% improvement compared to GMM-SRCKF; end-to-end learning improves position RMSE by 22.5% and convergence speed by 33% compared to offline training; and in real-world water surface flight scenarios, the position RMSE is 24.7% higher than GMM-SRCKF. Ablation experiments verified that the weighted mechanism contributed the most (improving RMSE at location by 19.6%) and had a 67% suppression effect on abnormal peaks.
[0329] Future work can be carried out in the following directions: exploring more efficient online meta-learning strategies; extending the method to multi-drone collaborative scenarios; and studying lightweight implementations of filtering algorithms to meet the real-time constraints of edge computing platforms.
[0330] The references are as follows:
[0331] [1] X.Chen,J.Zheng,Y.CuiandQ.Hu,"6-DoFPoseEstimationofaUAVBasedonPermanentMagnetMechanicalAntennaUnderConstrainedEnvi ronments,"inIEEE / ASMETransactionsonMechatronics,vol.31,no.2,pp.2136-2147,April2026,doi:10.1109 / TMECH.2025.3620433.
[0332] [2] S.Du,M.Xu,Y.Li,W.Fang,Q.Liu,P.Yi,"MultiviewLandmark-AssistedUAVSwarm6-DoFPoseEstimationUsingResonantBeamandVIO,"inIEEEInternetofThingsJournal,vol.12,no.15,pp.31511-31525,1Aug.1,2025,doi:10.1109 / JIOT.2025.3573755.
[0333] [3] Y.Shi,B.Lian,Y.ZengandE.Kurniawan,"Tightly-Coupled6DoFLocalizationinComplexEnvironmentsWithGNSSRawData,"inIEEETransactionsonIntelligentTransportationSystems,vol.26,no.3,pp.3369-3386,March2025,doi:10.1109 / TITS.2025.3528888.
[0334] [4] S.Chen,F.Hu,Z.ChenandH.Wu,"CorrectionMethodforUAVPoseEstimationWithDynamicCompensationandNoiseReductionUsingMulti-SensorFusion,"inIEEETransactionsonConsumerElectronics,vol.70,no.1,pp.980-989,Feb.2024,doi:10.1109 / TCE.2023.3339729.
[0335] [5] M.Irfan,S.Dalai,P.Trslic,M.C.Santos,J.RiordanandG.Dooly,"LGVINS:LiDAR-GPS-VisualandInertialSystemBasedMulti-SensorFusionforSmoothandReliableUAVStateEstimation,"inIEEETransactionsonIntelligentVehicles,vol.10,no.7,pp.3976-3992,July2025,doi:10.1109 / TIV.2024.3469551.
[0336] [6] D.Li,T.Yang,Y.Wang,H.Qin,S.Fan,S.Zhang,Y.ZhangandJ.Li,"LD3DGS-SLAM:Long-DistanceMonocularSLAMWith3-DGaussianSplattingandGNSS-AidedLocalizationforUAVs,"inIEEEInternetofThingsJournal,vol.13,no.4,pp.7320-7340,2026,doi:10.1109 / JIOT.2025.3638876.
[0337] [7] B.Y.LeeandJ.-Y.Lee,"AStudyontheRequiredCapacitiesoftheMulti-PurposeUnmannedVehicleSysteminMarineEnvironment,"inJournaloftheKoreaSocietyofSystemsEngineering,vol.18,no.1,pp.14-32,2022,doi:10.14248 / JKOSSE.2022.18.1.014.
[0338] [8] EAPensado,FVLópez,HGJorgeandA.M.Pinto,"UAVShore-to-ShipParcelDelivery:Gust-AwareTrajectoryPlanning,"inIEEET ransactionsonAerospaceandElectronicSystems,vol.60,no.5,pp.6213-6223,Oct.2024,doi:10.1109 / TAES.2024.3400767.
[0339] [9] PMGupta,É.Pairet,T.NascimentoandM.Saska,"LandingaUAVinHarshWindsandTurbulentOpenWaters,"inIEEERoboticsandAutomationLetters,vol.8,no.2,pp.744-751,Feb.2023,doi:10.1109 / LRA.2022.3231831.
[0340]
[10] DDSouza,MMMFreitas,ALPFernandes,PHJNardelli,DBdaCostaandA.M.Cavalcante,"TrajectoryOptimizationinUser-CentricDistributedMassiveMIMO SystemsEnabledbyUAVSwarms,” inIEEETransactionsonVehicularTechnology,vol.74,no.6,pp.9252-9268,June2025,doi:10.1109 / TVT.2025.3539120.
[0341]
[11] Q.Guo,S.Yang,J.Lyu,J.Sun,D.LinandS.He,"AMO-HEAD:AdaptiveMARG-OnlyHeadingEstimationforUAVsUnderMagneticDisturbances,"inIEEETransactionsonInstrumentationandMeasurement,vol.74,pp.1-16,2025,Artno.8516316,doi:10.1109 / TIM.2025.3643051.
[0342]
[12] J.Gavaetal.,"SoftErrorAssessmentofAttitudeEstimationAlgorithmsRunningonResource-ConstrainedDevicesUnderNeutronRadiation,"inIEEETransactionsonNuclearScience,vol.71,no.8,pp.1511-1519,Aug.2024,doi:10.1109 / TNS.2024.3378689.
[0343]
[13] Y.Yang,X.Liu,X.Liu,Y.GuoandW.Zhang,"Model-FreeIntegratedNavigationofSmallFixed-WingUAVsFullStateEstimationinWindDisturbance,"inIEEESensorsJournal,vol.22,no.3,pp.2771-2781,1Feb.1,2022,doi:10.1109 / JSEN.2021.3139842.
[0344]
[14] J.Li,Z.WangandJ.Hu,"CubatureKalmanFusionFilteringUnderStochasticCommunicationProtocol:TacklingDynamicalBias,SchedulingProbabilityandChannelNoise,"inInformationFusion,vol.113,p.102610,2025,doi:10.1016 / j.inffus.2024.102610.
[0345]
[15] Y.WangandQ.Ge,"AdaptiveSTCPFforUCAPoseEstimationwithImprovedGA-BPNNandMultipleFadingFactors,"inNeurocomputing,vol.575,p.127238,2024,doi:10.1016 / j.neucom.2024.127238.
[0346]
[16] B.Wang,K.Yu,J.Yue,D.Zhao,T.LiuandC.Shen,"AHierarchicalTime-ScaledFrameworkforResilientFusionofPC / INSNavigationSystems,"inIEEETransactionsonInstrumentationandMeasurement,vol.75,pp.1-12,2026,Artno.8504412,doi:10.1109 / TIM.2026.3664368.
[0347]
[17] S.Han,M.Li,H.Tang,Y.SongandG.Tong,"UVMO:DeepUnsupervisedVisualReconstruction-BasedMultimodal-AssistedOdometry,"inPatternRecognition,vol.153,p.110573,2024,doi:10.1016 / j.patcog.2024.110573.
[0348]
[18] C.D.McKinnonandA.P.Schoellig,"EstimatingandReactingtoForcesandTorquesResultingFromCommonAerodynamicDisturbancesActingonQuadrotors,"inRoboticsandAutonomousSystems,vol.123,p.103314,2020,doi:10.1016 / j.robot.2019.103314.
[0349]
[19] N.AhmedandN.Alrasheedi,"CommandedFilter-BasedRobustModelReferenceAdaptiveControlforQuadrotorUAVWithStateEstimationSubjecttoDisturbances,"inDrones,vol.9,no.3,p.181,2025,doi:10.3390 / drones9030181.
[0350]
[20] G.RapakouliasandP.Tsiotras,"StochasticControlofUAVs:AnOptimalTradeoffBetweenPerformance,FlightSmoothnessandControlEffort,"2024,arXiv:2409.10369,doi:10.48550 / arXiv.2409.10369.
[0351]
[21] Y.HU,W.LI,L.WUandZ.YU,"AnAttack-ResilientDistributedExtendedKalmanConsensusFilteringAlgorithmwithApplicationstoMulti-UAVTrackingProblems,"inFrontiersofInformationTechnology&ElectronicEngineering,vol.25,no.8,pp.1110-1122,August2024,doi:10.1631 / FITEE.2300621.
[0352]
[22] B.Yang,E.Yang,L.YuandC.Niu,"AdaptiveExtendedKalmanFilter-BasedFusionApproachforHigh-PrecisionUAVPositioninginExtremelyConfinedEnvironments,"inIEEE / ASMETransactionsonMechatronics,vol.28,no.1,pp.543-554,Feb.2023,doi:10.1109 / TMECH.2022.3203875.
[0353]
[23] Z.AhmedandC.A.Woolsey,"AnInvariantExtendedKalmanFilterforWindEstimationUsingaSmall,Fixed-WingUncrewedAerialVehicle,"inIEEETransactionsonControlSystemsTechnology,vol.33,no.5,pp.1799-1809,Sept.2025,doi:10.1109 / TCST.2025.3564884.
[0354]
[24] M.MariandL.Snidaro,"SurveyofNeuralNetworkApproachestoTargetTrackingWithanEmphasisonInterpretability,"inInformationFusion,vol.127,p.103789,2026,doi:10.1016 / j.inffus.2025.103789.
[0355]
[25] S.Chen,F.Hu,Z.ChenandH.Wu,"CorrectionMethodforUAVPoseEstimationWithDynamicCompensationandNoiseReductionUsingMulti-SensorFusion,"inIEEETransactionsonConsumerElectronics,vol.70,no.1,pp.980-989,Feb.2024,doi:10.1109 / TCE.2023.3339729.
[0356]
[26] Q.Ge,Y.Cheng,G.Yao,S.ChenandY.Zhu,"CredibleGaussianSumCubatureKalmanFilterBasedonNon-GaussianCharacteristicAnalysis,"inNeurocomputing,vol.565,p.126922,2024,doi:10.1016 / j.neucom.2023.126922.
[0357]
[27] X.Bai,Q.GeandP.Zeng,"DCM_MCCKF:ANon-Gaussian State EstimatorWithAdaptiveKernelSizeBasedonCSDivergence,"inNeurocomputing,vol.617,p.128809,2025,doi:10.1016 / j.neucom.2024.128809.
[0358]
[28] Y.Wang,Q.Ge,M.WangandH.Li,"USVMotionState EstimationbyUsingCredibilityTheoryinImprovedGS-SRCKF,"inIEEE TransactionsonIndustrialInformatics,vol.20,no.10,pp.12072-12082,Oct.2024,doi:10.1109 / TII.2024.3413365.
[0359]
[29] JAAndrade-Lucio,OGibarra-Manzano,MAVazquez-OlguinandY.S.Shmaliy,"RecursiveH∞Filtering:ComputingGainUsingLMIforBackwardEuler Method-BasedDisturbedModels,"inJournaloftheFranklinInstitute,vol.363,no.3,p.108406,2026,doi:10.1016 / j.jfranklin.2026.108406.
[0360]
[30] X. Liu, S. Wang, W. Yu, S. Chen, D. LinandQ. Zhang,"Neural NetworkAided Information Filtering for Model Uncertainty,"in IEETransactionsonAerospaceandElectronicSystems,vol.62,pp.9090-9105,2026,doi:10.1109 / TAES.2026.3679856.
[0361]
[31] Y.Peng,J.Song,Z.Xie,B.Wang,W.Cai,D.Peng,Y.LiuandX.Wen,"KalmanFilter-BasedDynamicModeDecompositionforClosed-LoopFlowControlWithNoise-CorruptedSensing,"inJournalofComputationalPhysics,vol.542,p.114386,2025,doi:10.1016 / j.jcp.2025.114386.
[0362]
[32] O.G.Ibarra-Manzano,J.A.Andrade-Lucio,Y.XuandY.S.Shmaliy,"BiasCorrectionGainforRecursiveH∞-KalmanFilteringofNon-PredictiveUncertainModels,"inIEEESignalProcessingLetters,vol.32,pp.871-875,2025,doi:10.1109 / LSP.2025.3539576.
[0363]
[33] R.Yi,X.Zhu,M.Ouyang,C.BaiandG.Fan,"FactorGraph–BasedTightlyCoupledPPP-B2b / INSforReal-TimePrecisePositioning,"inIEEESignalProcessingLetters,vol.33,pp.1886-1890,2026,doi:10.1109 / LSP.2026.3687756.
[0364]
[34] Y.Ben,K.WangandQ.Li,"ARobustFactorGraphOptimizationMethodforNavigationinLandVehiclesBasedonDynamicKernelPrincipalComponentAnalysis,"inIEEETransactionsonInstrumentationandMeasurement,vol.73,pp.1-16,2024,Artno.8503116,doi:10.1109 / TIM.2024.3383494.
[0365]
[35] B.Bazzana,T.GuadagninoandG.Grisetti,"HandlingConstrainedOptimizationinFactorGraphsforAutonomousNavigation,"inIEEERoboticsandAutomationLetters,vol.8,no.1,pp.432-439,Jan.2023,doi:10.1109 / LRA.2022.3228175.
[0366]
[36] M.Guo,B.Wang,L.Wei,M.Zhang,C.ZhangandH.Lu,"RobustINS / GNSS / DVLIntegratedNavigationforMASSBasedonGradient-AdaptiveFactorGraphOptimization,"inElectronics,vol.15,no.3,p.634,2026,doi:10.3390 / electronics15030634.
[0367]
[37] S.Cao,X.LuandS.Shen,"GVINS:TightlyCoupledGNSS-Visual-InertialFusionforSmoothandConsistentStateEstimation,"inIEEETransactionsonRobotics,vol.38,no.4,pp.2004-2021,Aug.2022,doi:10.1109 / TRO.2021.3133730.
[0368]
[38] G.Revach,N.Shlezinger,X.Ni,A.L.Escoriza,R.J.G.vanSlounandY.C.Eldar,"KalmanNet:NeuralNetworkAidedKalmanFilteringforPartiallyKnownDynamics,"inIEEETransactionsonSignalProcessing,vol.70,pp.1532-1547,2022,doi:10.1109 / TSP.2022.3158588.
[0369]
[39] S.Cheng,B.-B.Hu,H.-L.Wei,L.LiandC.Lv,"DeepLearning-BasedHybridDynamicModelingandImprovedHandlingStabilityAssessmentforAutonomousVehiclesatDrivingLimits,"inIEEETransactionsonVehicularTechnology,vol.74,no.4,pp.5582-5593,April2025,doi:10.1109 / TVT.2024.3515209.
[0370]
[40] X.Wu,A.H.F.Chow,W.Ma,W.H.K.LamandS.C.Wong,"PredictionofTrafficStateVariabilityWithanIntegratedModel-BasedandData-DrivenBayesianFramework,"inTransportationResearchPartC:EmergingTechnologies,vol.171,p.104953,2025,doi:10.1016 / j.trc.2024.104953.
[0371] I.ArasaratnamandS.Haykin,"CubatureKalmanFilters,"inIEEETransactionsonAutomaticControl,vol.54,no.6,pp.1254-1269,June2009,doi:10.1109 / TAC.2009.2019800.
Claims
1. A method for UAV pose estimation based on differentiable square root capillary Kalman filtering, characterized in that: The following steps are recursively executed according to the time series: Step 1: Generate an initial volume point set based on the state estimate at time k-1 and the square root factor of the covariance matrix. Utilize the interference sensing network to calculate the interference offset online based on the state estimate at time k-1 and the current observation information. Superimpose the interference offset onto the initial volume point set to obtain the compensated volume point set. Step 2: Add an aerodynamic compensation network to the state equation. Substitute the compensated set of volume points into the state equation for propagation. Calculate the predicted state of each volume point after propagation through the state equation to obtain the predicted state vector at time k. Step 3: Based on the deviation between the predicted state vector and the state estimate at time k-1, construct an augmented matrix, and use the differentiable QR decomposition based on Householder reflection to orthogonally triangulate the augmented matrix, and extract the upper triangular matrix as the square root factor of the predicted covariance matrix at time k. Step 4: Based on the predicted state vector, generate the volume point set again and propagate it through the observation equation to obtain the predicted observation value; Calculate the observation residuals corresponding to each volume point, calculate the weighting coefficients for each volume point based on the observation residuals, and use the weighting coefficients to calculate the predicted observation mean and the weighted cross-covariance matrix. Step 5: Orthogonally triangulate the weighted observation covariance matrix using differentiable QR decomposition based on Householder reflection to obtain the square root factor of the observation covariance; Step 6: Based on the square root factor of the predicted covariance matrix and the square root factor of the observed covariance, solve the Kalman gain matrix using trigonometric back substitution; Step 7: Update the state estimate at time k using the Kalman gain matrix and observation residuals; and extract the UAV pose estimation information from the state estimate at time k. Step 8: Based on the Kalman gain matrix and the square root factor of the prediction covariance matrix, construct the posterior update matrix, and decompose the posterior update matrix using the differentiable QR decomposition based on Householder reflection to obtain the square root factor of the posterior covariance matrix at time k. Step 9: Use the state estimate at time k and the square root factor of the posterior covariance matrix at time k as inputs at time k+1, and recursively execute steps 1 to 8 according to the time series to achieve continuous estimation of UAV pose. The parameters of the interference sensing network, the aerodynamic compensation network, and the differentiable QR decomposition are jointly optimized through end-to-end gradient backpropagation.
2. The UAV pose estimation method based on differentiable square root capillary Kalman filtering according to claim 1, characterized in that: The addition of an aerodynamic compensation network to the state equation is expressed as follows: (13) In the formula, For learnable aerodynamic compensation networks, These are the network parameters of the aerodynamic compensation network; Represents the state transition function. This represents the state vector at time k-1. To control the input, This is process noise; This represents the observation vector at time k-1; The aerodynamic compensation network is implemented by a multilayer sensor.
3. The UAV pose estimation method based on differentiable square root capillary Kalman filtering according to claim 1, characterized in that: The observation equation includes an observation compensation network, expressed as follows: (14) In the formula, For a learnable observation compensation network, To observe the network parameters of the compensation network; To observe noise; The observation compensation network is implemented by a multilayer perceptron.
4. The UAV pose estimation method based on differentiable square root capillary Kalman filtering according to claim 3, characterized in that: The step of using an interference sensing network to calculate the interference offset online based on the state estimate at time k-1 and the current observation information, and then superimposing the interference offset onto the initial volume point set to obtain the compensated volume point set includes: set up The mean of the state estimate at time step is The square root factor of covariance is Standard volume point Represented as: (15) Among them, the standard volume vector Defined as: (16) Let j be the j-th standard basis vector; The interference sensing network is a neural network; An interference offset, generated online by the interference sensing network, is added to the standard volume point generation: (17) in, This is the function of the interference sensing network, whose input is the state estimate from the previous time step. Observation at the previous moment The output is a compensation vector with the same dimension as the state.
5. The UAV pose estimation method based on differentiable square root capillary Kalman filtering according to claim 4, characterized in that: The compensated set of volume points is substituted into the state equation for propagation. The predicted state of each volume point after propagation through the state equation is calculated, resulting in the predicted state vector at time k, which is expressed as: (19) The predicted state vector at time k is obtained by the weighted average of the volume points after propagation; The propagated volume point is represented as: (18)。 6. The UAV pose estimation method based on differentiable square root capillary Kalman filtering according to claim 5, characterized in that: The predicted observation values are obtained by generating a volume point set again based on the predicted state vector and propagating it through the observation equation, as follows: (20) (21)。 7. The UAV pose estimation method based on differentiable square root capillary Kalman filtering according to claim 6, characterized in that: The calculation of the observation residuals corresponding to each volume point, the calculation of weighting coefficients for each volume point based on the observation residuals, and the calculation of the predicted observation mean and weighted cross-covariance matrix using the weighting coefficients include: Define the weight coefficient of the j-th volume point as: (22) in, For temperature parameters; Based on the weighting coefficients of each volume point, calculate the weighted predicted observation mean and the weighted cross-covariance matrix: (23) (24)。 8. The UAV pose estimation method based on differentiable square root capillary Kalman filtering according to claim 7, characterized in that: The process of constructing an augmented matrix based on the deviation between the predicted state vector and the state estimate at time k-1, and orthogonally triangulating the augmented matrix using a differentiable QR decomposition based on Householder reflection, and extracting the upper triangular matrix as the square root factor of the predicted covariance matrix at time k, includes: Construct the augmented difference matrix: (25) in, The square root matrix of the process noise covariance; right Perform QR decomposition: (26) Predicting the square root of covariance Pick The upper triangular part.
9. The UAV pose estimation method based on differentiable square root capillary Kalman filtering according to claim 8, characterized in that: The step of orthogonally triangulating the weighted observation covariance matrix using differentiable QR decomposition based on Householder reflection to obtain the square root factor of the observation covariance includes: Construct the observation difference augmented matrix: (27) in, The square root matrix of the observation noise covariance, where m is the observation dimension; right Performing QR decomposition yields the square root of the observed covariance. .
10. The UAV pose estimation method based on differentiable square root capillary Kalman filtering according to claim 9, characterized in that: The step of solving the Kalman gain matrix using triangular back substitution based on the square root factor of the predicted covariance matrix and the square root factor of the observed covariance includes: The Kalman gain is calculated by solving a system of trigonometric equations, including: Solve get ; Solve get .
