CN115218927B - Unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering - Google Patents

Unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering Download PDF

Info

Publication number
CN115218927B
CN115218927B CN202210892728.4A CN202210892728A CN115218927B CN 115218927 B CN115218927 B CN 115218927B CN 202210892728 A CN202210892728 A CN 202210892728A CN 115218927 B CN115218927 B CN 115218927B
Authority
CN
China
Prior art keywords
imu sensor
kalman filter
unmanned aerial
kalman filtering
fault detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210892728.4A
Other languages
Chinese (zh)
Other versions
CN115218927A (en
Inventor
韩晓佳
谢安桓
严旭飞
王晓波
胡易人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Lab
Original Assignee
Zhejiang Lab
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Lab filed Critical Zhejiang Lab
Priority to CN202210892728.4A priority Critical patent/CN115218927B/en
Publication of CN115218927A publication Critical patent/CN115218927A/en
Application granted granted Critical
Publication of CN115218927B publication Critical patent/CN115218927B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C25/00Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
    • G01C25/005Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass initial alignment, calibration or starting-up of inertial devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Navigation (AREA)

Abstract

本发明公开一种基于二次卡尔曼滤波的无人机IMU传感器故障检测方法。该方法包括无人机建模、模型线性化和离散化、一次卡尔曼滤波去噪、二次卡尔曼滤波去趋势和残差检测五个步骤。本发明综合考虑无人机中传感器故障幅值小、同时受噪声和反馈控制的影响难检测的特性,在原有卡尔曼滤波的基础上,引入二次卡尔曼滤波的检测方法,实现了对无人机中传感器故障的有效检测,提高无人机传感器故障的检测率,这样可以及时发现传感器的故障,避免传感器故障导致的无人机事故和损失。

Figure 202210892728

The invention discloses a fault detection method for an IMU sensor of an unmanned aerial vehicle based on a secondary Kalman filter. The method includes five steps of UAV modeling, model linearization and discretization, primary Kalman filter denoising, secondary Kalman filter detrending and residual detection. The present invention comprehensively considers the characteristic that the fault amplitude of the sensor in the UAV is small and is difficult to detect due to the influence of noise and feedback control. On the basis of the original Kalman filter, the detection method of the second Kalman filter is introduced to realize the detection The effective detection of sensor faults in man-machine can improve the detection rate of UAV sensor faults, so that sensor faults can be found in time, and UAV accidents and losses caused by sensor faults can be avoided.

Figure 202210892728

Description

基于二次卡尔曼滤波的无人机IMU传感器故障检测方法Fault detection method of UAV IMU sensor based on quadratic Kalman filter

技术领域technical field

本发明涉及无人机安全性和可靠性技术,具体地说是一种基于二次卡尔曼滤波的无人机IMU传感器故障检测方法。The invention relates to the safety and reliability technology of unmanned aerial vehicles, in particular to a fault detection method for IMU sensors of unmanned aerial vehicles based on secondary Kalman filtering.

背景技术Background technique

近年来,无人机在搜索和救援、航拍、农业、测绘等应用方面发展迅速。在无人机的使用过程中,无人机的每个部件都不可避免地会出现故障。实际中,无人机通常配备低成本、轻量化的微机电系统惯性测量单元(Inertial Measurement Unit, IMU),包括三轴陀螺仪、加速度计和磁力计。这些传感器在大多数无人机导航和控制应用中起着至关重要的作用。然而,微机电系统的机械部件和电子元件通常会经历一个逐渐退化的过程(例如,微电阻的值可能会缓慢变化),IMU容易因部件损坏、振动和温度影响而发生故障。如果故障没有被及时检测到,将直接影响无人机的整机安全性和可靠性。因此,故障检测具有重要的研究意义和价值,并且故障检测是提高安全性和可靠性的第一道防线。In recent years, drones have developed rapidly in applications such as search and rescue, aerial photography, agriculture, and surveying and mapping. During the use of the drone, every part of the drone will inevitably fail. In practice, drones are usually equipped with a low-cost, lightweight MEMS inertial measurement unit (Inertial Measurement Unit, IMU), including a three-axis gyroscope, accelerometer, and magnetometer. These sensors play a vital role in most UAV navigation and control applications. However, the mechanical parts and electronic components of MEMS usually undergo a gradual degradation process (for example, the value of microresistors may change slowly), and IMUs are prone to failure due to component damage, vibration, and temperature effects. If the failure is not detected in time, it will directly affect the safety and reliability of the drone. Therefore, fault detection has important research significance and value, and fault detection is the first line of defense to improve safety and reliability.

传感器故障可分为突变故障和缓变故障。突变故障通常可以建模为阶跃信号,而缓变故障(缓慢发展)如传感器的漂移,可以用斜坡信号来表示。传感器漂移指传感器输出和过程变量实际值之间的差值随时间线性偏离的情况。利用传感器的冗余信息执行检测功能是任何传感器故障检测的基础。针对不同类型的冗余信息,不同的检测方法被开发。例如,硬件冗余和解析冗余。硬件冗余基于多个物理惯性测量单元。这种方法的缺点是成本高、增加维护和占用空间等。然而,解析冗余方法不会增加硬件成本。解析冗余从系统中的其他相关测量值分析估计传感器的输出。基于解析冗余的故障检测方法可大致分为基于数据驱动的方法和基于模型的方法。在基于模型的故障检测方法中,粒子滤波是一种用于无人机IMU传感器故障检测和隔离的方法。然而,与卡尔曼滤波相比,粒子滤波具有更高的计算复杂度。H∞也是一种常用的故障检测方法,与基于状态空间方程的卡尔曼滤波器不同,H∞滤波器基于传递函数。与卡尔曼滤波相比,H∞滤波不需要假设噪声的统计特性。然而,H∞滤波器不能保证估计误差的方差最小或在有限范围内。与基于模型的故障检测方法相比,数据驱动的故障检测方法需要大量的数据集,例如机器学习。在实际的使用中,处理大量的数据集,计算时间长,并且该类方法不具有可解释性。Sensor faults can be divided into sudden faults and slow faults. Abrupt faults can usually be modeled as step signals, while slowly changing faults (slowly developing), such as sensor drift, can be represented as ramp signals. Sensor drift is when the difference between the sensor output and the actual value of the process variable deviates linearly over time. Utilizing redundant information from sensors to perform detection functions is the basis for any sensor fault detection. Different detection methods have been developed for different types of redundant information. For example, hardware redundancy and resolution redundancy. Hardware redundancy is based on multiple physical IMUs. The disadvantages of this method are high cost, increased maintenance and space occupation. However, the parsing redundancy approach does not increase the hardware cost. Analytical redundancy analyzes estimate the output of a sensor from other related measurements in the system. Analytical redundancy-based fault detection methods can be broadly classified into data-driven and model-based methods. Among the model-based fault detection methods, particle filtering is a method for fault detection and isolation of UAV IMU sensors. However, particle filtering has higher computational complexity compared to Kalman filtering. H∞ is also a commonly used fault detection method. Unlike the Kalman filter which is based on the state space equation, the H∞ filter is based on the transfer function. Compared with Kalman filtering, H∞ filtering does not need to assume the statistical characteristics of noise. However, the H∞ filter cannot guarantee that the variance of the estimation error is minimal or within a limited range. Compared with model-based fault detection methods, data-driven fault detection methods, such as machine learning, require large datasets. In actual use, processing a large number of data sets takes a long time to calculate, and this type of method is not interpretable.

卡尔曼滤波在无人机传感器故障检测中的应用研究包括卡尔曼滤波的应用、卡尔曼滤波扩展算法的研究与应用、自适应卡尔曼滤波算法的研究与应用以及卡尔曼滤波与其他方法相结合的应用。卡尔曼滤波器扩展算法包括扩展卡尔曼滤波器、无迹卡尔曼滤波器、容积卡尔曼滤波器和联邦卡尔曼滤波器。扩展卡尔曼滤波器通过线性算法的逐步扩展来解决非线性问题;无迹卡尔曼滤波器主要基于无迹变换,其中需要协方差矩阵的平方根;容积卡尔曼滤波器使用三次容积规则,数值计算非线性贝叶斯滤波器中任何非线性函数与高斯密度乘积的积分。无论采用何种方法,都需要准确了解过程噪声和测量噪声的先验统计特性。在实际无人机测试中,过程噪声和测量噪声的先验统计未知或不准确。虽然过程噪声和测量噪声的先验统计信息是准确已知的,但在实际操作环境中,系统受到内部和外部不确定因素的影响,过程噪声和测量噪声的统计特征很容易改变,具有很强的时变特征。基于此,为了使卡尔曼滤波器估计的更准确,通常可以在卡尔曼滤波器中增加了噪声估计模块。因此,自适应卡尔曼滤波算法不需要精确的噪声先验统计,并且具有适应噪声变化的能力。一种具有自适应性和鲁棒性的基于变分贝叶斯的无迹卡尔曼滤波器被提出,其中变分贝叶斯近似的思想是最小化真实分布和近似之间的Kullback-Leibler(KL)差异。与变分贝叶斯近似不同,Sage-Husa自适应卡尔曼滤波器不需要考虑概率密度。它还可以对噪声统计特性进行实时估计。然而,该方法不能保证测量噪声协方差矩阵的正定性和过程噪声协方差矩阵的半正定性,容易发散。The application research of Kalman filter in UAV sensor fault detection includes the application of Kalman filter, the research and application of extended Kalman filter algorithm, the research and application of adaptive Kalman filter algorithm and the combination of Kalman filter and other methods Applications. Kalman filter extension algorithms include extended Kalman filter, unscented Kalman filter, volumetric Kalman filter and federated Kalman filter. The extended Kalman filter solves nonlinear problems through the gradual extension of the linear algorithm; the unscented Kalman filter is mainly based on the unscented transformation, which requires the square root of the covariance matrix; the volumetric Kalman filter uses the cubic volume rule, and the numerical calculation of Integral of any nonlinear function multiplied by a Gaussian density in a linear Bayesian filter. Regardless of the approach used, accurate knowledge of the a priori statistical properties of the process and measurement noise is required. In actual UAV testing, the prior statistics of process noise and measurement noise are unknown or inaccurate. Although the prior statistical information of process noise and measurement noise is known accurately, in the actual operating environment, the system is affected by internal and external uncertain factors, and the statistical characteristics of process noise and measurement noise are easy to change, which has a strong time-varying characteristics. Based on this, in order to make the estimation of the Kalman filter more accurate, a noise estimation module can usually be added to the Kalman filter. Therefore, the adaptive Kalman filter algorithm does not require accurate noise prior statistics and has the ability to adapt to noise changes. An adaptive and robust Unscented Kalman Filter based on Variational Bayesian is proposed, where the idea of Variational Bayesian approximation is to minimize the Kullback-Leibler between the true distribution and the approximation ( KL) difference. Unlike the variational Bayesian approximation, the Sage-Husa adaptive Kalman filter does not need to take probability density into account. It also enables real-time estimation of noise statistics. However, this method cannot guarantee the positive definiteness of the measurement noise covariance matrix and the semi-positive definiteness of the process noise covariance matrix, and is prone to divergence.

在一种针对无人机传感器/执行器故障的主动容错飞行控制系统中,卡尔曼滤波器被用于检测传感器/执行器故障,然后基于鲁棒两级卡尔曼滤波器的故障隔离方案隔离传感器和执行器故障。在一种基于两级卡尔曼滤波器的风速和无人机运动参数估计算法中,在第一阶段,借助全球定位系统和动态压力测量,使用风速估计算法估计风速。其中,扩展卡尔曼滤波方法被应用于无人机系统的传感器故障检测。在第二阶段,为了估计无人机的状态参数,在第一阶段卡尔曼滤波器中估计的风速被使用。In an active fault-tolerant flight control system for UAV sensor/actuator failures, Kalman filters are used to detect sensor/actuator failures, and then isolate the sensors based on a robust two-stage Kalman filter-based fault isolation scheme and actuator failure. In a two-stage Kalman filter based wind speed and UAV motion parameter estimation algorithm, in the first stage, wind speed is estimated using a wind speed estimation algorithm with the help of GPS and dynamic pressure measurements. Among them, the extended Kalman filter method is applied to the sensor fault detection of UAV system. In the second stage, to estimate the state parameters of the UAV, the wind speed estimated in the first stage Kalman filter is used.

发明内容Contents of the invention

针对现有的无人机状态估计中的故障检测率低、传感器故障幅值小、同时受噪声和反馈控制的影响难检测的特性等问题,本发明提出一种基于二次卡尔曼滤波的无人机IMU传感器故障检测方法,首先,需要建立无人机的运动学和动力学模型。然后对模型进行线性化和离散化,以进行后续的二次卡尔曼滤波。在该方法中,第一个卡尔曼滤波器用于去噪,第二个卡尔曼滤波器用于去趋势,并计算残差进行检测。值得一提的是,第二个卡尔曼滤波器是一个改进的Sage-Husa自适应卡尔曼滤波器,它可以自动估计测量数据的噪声方差R。该方法首次被提出并应用于无人机。在仿真平台中,俯仰角速度中被注入故障,以模拟IMU传感器故障。仿真结果证实了该方法在IMU传感器突发故障和缓变故障检测中的有效性。结果表明,二次卡尔曼滤波的故障检测率高于常规的卡尔曼滤波。此外,该方法还为无人机容错控制提供了重要信息和基础。本发明的主要创新点如下:(1)提出了一种基于二次卡尔曼滤波的无人机传感器故障检测方法,该方法是在去噪和去趋势框架下设计的。第一个卡尔曼滤波器用于去噪,第二个卡尔曼滤波器用于去趋势,并计算残差进行检测。这是第一种使用该技术检测无人机传感器故障的方法。(2) 在第二个卡尔曼滤波器中,提出了一种改进的Sage-Husa自适应卡尔曼滤波器,该滤波器可以自动估计测量数据的噪声方差R。与传统的卡尔曼滤波相比,该方法具有自适应、避免发散和高检测率的优点。Aiming at the problems of low fault detection rate, small sensor fault amplitude, and difficult detection characteristics affected by noise and feedback control in the existing UAV state estimation, the present invention proposes a quadratic Kalman filter-based For the fault detection method of human-machine IMU sensor, first, it is necessary to establish the kinematics and dynamics model of the UAV. The model is then linearized and discretized for subsequent quadratic Kalman filtering. In this method, the first Kalman filter is used for denoising, the second Kalman filter is used for detrending, and residuals are calculated for detection. It is worth mentioning that the second Kalman filter is a modified Sage-Husa adaptive Kalman filter, which can automatically estimate the noise variance R of the measurement data. This method was proposed and applied to UAVs for the first time. In the simulation platform, faults are injected into the pitch rate to simulate IMU sensor faults. The simulation results confirm the effectiveness of the method in the detection of sudden faults and slowly changing faults of IMU sensors. The results show that the fault detection rate of the quadratic Kalman filter is higher than that of the conventional Kalman filter. In addition, this method also provides important information and basis for fault-tolerant control of UAVs. The main innovations of the present invention are as follows: (1) A quadratic Kalman filter-based UAV sensor fault detection method is proposed, which is designed under the framework of denoising and detrending. The first Kalman filter is used for denoising, the second Kalman filter is used for detrending and computing residuals for detection. This is the first method to use the technology to detect sensor failures in drones. (2) In the second Kalman filter, an improved Sage-Husa adaptive Kalman filter is proposed, which can automatically estimate the noise variance R of the measurement data. Compared with traditional Kalman filtering, this method has the advantages of self-adaptation, divergence avoidance and high detection rate.

本发明的目的通过如下的技术方案来实现:The purpose of the present invention is achieved through the following technical solutions:

一种基于二次卡尔曼滤波的无人机IMU传感器故障检测方法,包括以下步骤:A kind of UAV IMU sensor fault detection method based on quadratic Kalman filter, comprises the following steps:

步骤一:建立无人机的运动学和动力学模型,得到无人机的状态空间方程;Step 1: Establish the kinematics and dynamics model of the UAV, and obtain the state space equation of the UAV;

步骤二:将所述无人机的状态空间方程进行线性化和离散化,得到线性化和离散化后的状态空间方程;Step 2: linearizing and discretizing the state space equation of the unmanned aerial vehicle to obtain the state space equation after linearization and discretization;

步骤三:基于线性化和离散化后的状态空间方程,采用卡尔曼滤波对IMU传感器正常情况下采集到的信号进行去噪,得到去噪后的IMU传感器信号;Step 3: Based on the linearized and discretized state space equations, use Kalman filter to denoise the signals collected by the IMU sensor under normal conditions, and obtain the denoised IMU sensor signal;

步骤四:基于线性化和离散化后的状态空间方程,再次采用卡尔曼滤波对去噪后的IMU传感器信号进行滤波,将二次卡尔曼滤波输出的信号用于去趋势;Step 4: Based on the linearized and discretized state-space equations, the Kalman filter is used again to filter the denoised IMU sensor signal, and the signal output by the second Kalman filter is used for detrending;

步骤五:计算去噪后的IMU传感器信号和二次卡尔曼滤波器IMU传感器信号先验估计的差值,所述差值符合高斯分布,取所述差值的标准方差的整数倍作为IMU传感器故障检测阈值;Step 5: Calculate the difference between the denoised IMU sensor signal and the prior estimate of the quadratic Kalman filter IMU sensor signal, the difference conforms to the Gaussian distribution, and the integer multiple of the standard deviation of the difference is taken as the IMU sensor fault detection threshold;

步骤六:将在线采集的IMU传感器信号重复步骤三和步骤四,计算在线采集的IMU传感器信号的残差,当在线采集的IMU传感器信号的残差大于等于所述IMU传感器故障检测阈值时,表明IMU传感器存在故障;否则,IMU传感器正常。Step 6: Repeat steps 3 and 4 for the IMU sensor signal collected online, and calculate the residual error of the IMU sensor signal collected online. When the residual error of the IMU sensor signal collected online is greater than or equal to the IMU sensor fault detection threshold, it indicates There is a fault in the IMU sensor; otherwise, the IMU sensor is normal.

进一步地,所述步骤二得到的线性化和离散化后的状态空间方程为:Further, the linearized and discretized state space equation obtained in the second step is:

Figure 179213DEST_PATH_IMAGE001
Figure 179213DEST_PATH_IMAGE001

Figure 951997DEST_PATH_IMAGE002
Figure 951997DEST_PATH_IMAGE002

其中,x(k+1)为无人机的状态变量,w(k)为过程噪声,v(k)为测量噪声;A为状态转移矩阵,B为输入矩阵;C是输出矩阵,C表示测量值向量z(k)和状态变量x(k)之间的关系;z(k)表示从无人机传感器获得的k时刻的测量值向量;Among them, x(k+1) is the state variable of the UAV, w(k) is the process noise, v(k) is the measurement noise; A is the state transition matrix, B is the input matrix; C is the output matrix, and C represents The relationship between the measured value vector z(k) and the state variable x(k); z(k) represents the measured value vector at time k obtained from the UAV sensor;

所述步骤三中,一次卡尔曼滤波的状态变量后验估计为In the step 3, the state variable posterior estimation of a Kalman filter is

Figure 492700DEST_PATH_IMAGE003
Figure 492700DEST_PATH_IMAGE003

其中,

Figure 667329DEST_PATH_IMAGE004
表示无人机状态变量在k时刻的一次卡尔曼滤波后验估计,
Figure 268075DEST_PATH_IMAGE005
表示无人机状态变量在k+1时刻的一次卡尔曼滤波先验估计;K1(k)表示在k时刻的一次卡 尔曼滤波卡尔曼增益: in,
Figure 667329DEST_PATH_IMAGE004
Represents a Kalman filter posterior estimation of the state variable of the UAV at time k,
Figure 268075DEST_PATH_IMAGE005
Represents a Kalman filter prior estimation of the UAV state variable at time k+1; K 1 (k) represents a Kalman filter Kalman gain at time k:

Figure 26690DEST_PATH_IMAGE006
Figure 26690DEST_PATH_IMAGE006

P1(k+1|k)表示状态变量在k+1时刻一次卡尔曼滤波先验估计的状态误差协方差矩阵;R表示测量噪声v(k)的协方差矩阵。P 1 (k+1|k) represents the state error covariance matrix of a Kalman filter prior estimation of the state variable at time k+1; R represents the covariance matrix of the measurement noise v(k).

进一步地,所述步骤四中,第二次卡尔曼滤波的状态变量后验估计Further, in the step 4, the state variable posterior estimation of the second Kalman filter

Figure 371083DEST_PATH_IMAGE007
Figure 371083DEST_PATH_IMAGE007

Figure 400219DEST_PATH_IMAGE008
Figure 400219DEST_PATH_IMAGE008

其中,e(k+1)是二次卡尔曼滤波的新息,

Figure 437446DEST_PATH_IMAGE009
表示无人机状态变量在k时刻的二次 卡尔曼滤波后验估计,
Figure 919242DEST_PATH_IMAGE010
表示无人机状态变量在k+1时刻的二次卡尔曼滤波先验估 计;K2(k)为在k时刻的二次卡尔曼滤波卡尔曼增益: Among them, e(k+1) is the innovation of the second Kalman filter,
Figure 437446DEST_PATH_IMAGE009
Represents the quadratic Kalman filter posterior estimation of the state variable of the UAV at time k,
Figure 919242DEST_PATH_IMAGE010
Represents the quadratic Kalman filter a priori estimate of the state variable of the UAV at time k+1; K 2 (k) is the Kalman gain of the quadratic Kalman filter at time k:

Figure 67327DEST_PATH_IMAGE011
Figure 67327DEST_PATH_IMAGE011

P2(k+1|k)表示状态变量在k+1时刻二次卡尔曼滤波先验估计的状态误差协方差矩阵。P 2 (k+1|k) represents the state error covariance matrix of the prior estimation of the quadratic Kalman filter of the state variable at time k+1.

进一步地,在二次卡尔曼滤波器中,采用改进的Sage-Husa自适应卡尔曼滤波方法来自动估计测量噪声方差R,即,R的估计过程如下:Further, in the quadratic Kalman filter, the improved Sage-Husa adaptive Kalman filter method is used to automatically estimate the measurement noise variance R, that is, the estimation process of R is as follows:

Figure 950969DEST_PATH_IMAGE012
Figure 950969DEST_PATH_IMAGE012

Figure 159097DEST_PATH_IMAGE013
Figure 159097DEST_PATH_IMAGE013

其中,b是遗忘因子。Among them, b is the forgetting factor.

进一步地,所述步骤五的残差r(k+1)的计算公式如下:Further, the calculation formula of the residual r(k+1) in the step five is as follows:

Figure 128190DEST_PATH_IMAGE014
Figure 128190DEST_PATH_IMAGE014

在步骤六中,计算在线采集的IMU传感器信号的残差,当在线采集的IMU传感器信号的残差大于等于所述IMU传感器故障检测阈值时,表明IMU传感器存在故障;否则,IMU传感器正常。In step six, calculate the residual error of the IMU sensor signal collected online, when the residual error of the IMU sensor signal collected online is greater than or equal to the fault detection threshold of the IMU sensor, it indicates that the IMU sensor has a fault; otherwise, the IMU sensor is normal.

一种基于二次卡尔曼滤波的无人机IMU传感器故障检测装置,包括一个或多个处理器,用于实现基于二次卡尔曼滤波的无人机IMU传感器故障检测方法。A secondary Kalman filter-based UAV IMU sensor fault detection device includes one or more processors for implementing a secondary Kalman filter-based UAV IMU sensor fault detection method.

一种计算机可读存储介质,其上存储有程序,该程序被处理器执行时,实现基于二次卡尔曼滤波的无人机IMU传感器故障检测方法。A computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, a fault detection method for an IMU sensor of an unmanned aerial vehicle based on a secondary Kalman filter is realized.

本发明的有益效果如下:The beneficial effects of the present invention are as follows:

本发明提出的无人机状态估计中基于二次卡尔曼滤波的IMU传感器故障检测方法,综合考虑了无人机传感器故障幅值小、同时受噪声和反馈控制的影响难检测的特性,在原有的基于单次卡尔曼滤波的基础上,额外引入二次卡尔曼滤波,通过一次卡尔曼滤波去噪,二次卡尔曼滤波去趋势,最后通过两次卡尔曼滤波的残差与离线数据训练得到的阈值对比,实现传感器故障发生的检测。且为了实现自适应,二次滤波采用改进的Sage-Husa自适应卡尔曼滤波器,以避免发散,同时提高预测精度。本发明的方法能够提高无人机传感器故障的检测率,这样可以及时发现传感器的故障,避免传感器故障导致的无人机事故和损失。The IMU sensor fault detection method based on the quadratic Kalman filter in the state estimation of the UAV proposed by the present invention comprehensively considers the characteristics that the fault amplitude of the UAV sensor is small, and it is difficult to detect due to the influence of noise and feedback control. On the basis of the single Kalman filter, additionally introduce the second Kalman filter, denoise through the first Kalman filter, detrend through the second Kalman filter, and finally get the residual and offline data training through the Kalman filter twice Compared with the threshold value, the detection of sensor failure is realized. And in order to achieve self-adaptation, the improved Sage-Husa adaptive Kalman filter is used for secondary filtering to avoid divergence and improve prediction accuracy at the same time. The method of the invention can improve the detection rate of the UAV sensor failure, so that the sensor failure can be found in time, and the UAV accident and loss caused by the sensor failure can be avoided.

附图说明Description of drawings

图1基于二次卡尔曼滤波的无人机IMU传感器故障检测原理图。Fig. 1 Schematic diagram of UAV IMU sensor fault detection based on quadratic Kalman filter.

图2基于二次卡尔曼滤波的IMU俯仰角速度突变故障检测结果图。Fig. 2 is a diagram of fault detection results of IMU pitch angular velocity mutation based on the quadratic Kalman filter.

图3基于二次卡尔曼滤波的IMU俯仰角速度缓变故障检测结果图。Fig. 3 is based on the fault detection results of IMU pitch angle velocity slowly changing based on the quadratic Kalman filter.

图4基于一次卡尔曼滤波的IMU俯仰角速度突变故障检测结果图。Fig. 4 is based on a Kalman filter IMU pitch angular velocity mutation detection results diagram.

图5基于一次卡尔曼滤波的IMU俯仰角速度缓变故障检测结果图。Figure 5 is a diagram of the fault detection results of IMU pitch angle velocity slowly changing based on a Kalman filter.

图6为基于二次卡尔曼滤波的无人机IMU传感器故障检测系统的示意图。Fig. 6 is a schematic diagram of a UAV IMU sensor fault detection system based on the quadratic Kalman filter.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present application, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."

本发明提出了一种基于二次卡尔曼滤波的无人机故障检测方法,这是一种基于模型的故障检测方法。与其他二次卡尔曼滤波器的定义不同:主要针对测量方程是二次的卡尔曼滤波器。本发明提出的方法是在去噪和去趋势框架下设计的算法而命名的。其中,第一次卡尔曼滤波器用于减少去噪过程中的测量噪声,其中过程噪声和测量噪声的方差是固定值。在去趋势部分,考虑到测量数据已经去噪,在去趋势部分使用改进的Sage-Husa自适应卡尔曼滤波方法来自动估计测量噪声方差。最后,卡尔曼滤波算法连续作用于测量数据,因此本发明提出的方法称为二次卡尔曼滤波。The invention proposes a UAV fault detection method based on the quadratic Kalman filter, which is a model-based fault detection method. Different from the definition of other quadratic Kalman filters: mainly for Kalman filters whose measurement equation is quadratic. The method proposed in the present invention is named after the algorithm designed under the framework of denoising and detrending. Among them, the first Kalman filter is used to reduce the measurement noise in the denoising process, where the variance of the process noise and the measurement noise is a fixed value. In the detrending part, considering that the measurement data has been denoised, the improved Sage-Husa adaptive Kalman filtering method is used in the detrending part to automatically estimate the measurement noise variance. Finally, the Kalman filter algorithm acts continuously on the measured data, so the method proposed by the present invention is called quadratic Kalman filter.

本发明的用于无人机IMU传感器故障检测的二次卡尔曼滤波方法。首先,需要建立无人机的运动学和动力学模型,然后对模型进行线性化和离散化,以进行后续的二次卡尔曼滤波。针对较大信号噪声这种工况,一次卡尔曼滤波用于降噪,二次卡尔曼滤波用于检测。在仿真平台中,将IMU俯仰角速度分别注入故障(突变故障和缓变故障)。仿真结果表明,二次卡尔曼滤波的故障检测率高于基于卡尔曼滤波的故障检测方法。The present invention is used for the secondary Kalman filtering method of the UAV IMU sensor fault detection. First, the kinematics and dynamics model of the UAV needs to be established, and then the model is linearized and discretized for subsequent secondary Kalman filtering. For the working condition of large signal noise, the first Kalman filter is used for noise reduction, and the second Kalman filter is used for detection. In the simulation platform, the pitch rate of the IMU is injected into faults (mutant faults and slow-change faults) respectively. The simulation results show that the fault detection rate of the quadratic Kalman filter is higher than that of the fault detection method based on the Kalman filter.

一、建立无人机的运动学和动力学模型,得到无人机的状态空间方程;1. Establish the kinematics and dynamics model of the UAV, and obtain the state space equation of the UAV;

多旋翼无人机飞行控制的刚体模型包括动力学模型和运动学模型。动力学涉及运动和力,与物体的质量和惯性矩有关,多旋翼无人机动力学模型的输入是力和力矩,输出是速度和角速度。最后,平移加速度可通过牛顿第二运动定律获得,角加速度可通过欧拉方程获得。因此,这种建模方法也称为牛顿-欧拉方程,多旋翼无人机的动力学模型如下:The rigid body model of multi-rotor UAV flight control includes dynamic model and kinematics model. Dynamics involves motion and force, and is related to the mass and moment of inertia of the object. The input of the multi-rotor UAV dynamic model is force and moment, and the output is velocity and angular velocity. Finally, translational acceleration can be obtained by Newton's second law of motion, and angular acceleration can be obtained by Euler's equation. Therefore, this modeling method is also called the Newton-Euler equation, and the dynamic model of the multi-rotor UAV is as follows:

Figure 814386DEST_PATH_IMAGE015
Figure 814386DEST_PATH_IMAGE015

其中,vE是地球固定坐标系中的惯性速度,

Figure 818114DEST_PATH_IMAGE016
。U是升力,m是多旋翼无人机的 质量。REB是从机身坐标系到地球固定坐标系的旋转矩阵,g是重力加速度。该方程表明,多旋 翼无人机在地球固定坐标系下,基于牛顿第二运动定律,在推力U和重力的作用下产生的加 速度。 where v E is the inertial velocity in the earth-fixed coordinate system,
Figure 818114DEST_PATH_IMAGE016
. U is the lift force and m is the mass of the multi-rotor drone. R EB is the rotation matrix from the fuselage frame to the Earth-fixed frame, and g is the gravitational acceleration. This equation shows the acceleration of the multi-rotor UAV under the action of thrust U and gravity based on Newton's second law of motion in the fixed coordinate system of the earth.

Figure 698608DEST_PATH_IMAGE017
Figure 698608DEST_PATH_IMAGE017

其中,

Figure 154997DEST_PATH_IMAGE018
表示机身坐标系中的角速率,
Figure 644884DEST_PATH_IMAGE019
。Jx、Jy和Jz是多旋翼无人机绕 机身x、y和z轴的惯性矩。
Figure 237539DEST_PATH_IMAGE020
是滚动扭矩,
Figure 787470DEST_PATH_IMAGE021
是俯仰扭矩,
Figure 731155DEST_PATH_IMAGE022
是偏航扭矩,它们都在机身坐标 系中。该方程表明,多旋翼无人机在机身坐标系下根据欧拉方程产生的角加速度。 in,
Figure 154997DEST_PATH_IMAGE018
represents the angular rate in the body coordinate system,
Figure 644884DEST_PATH_IMAGE019
. J x , J y and J z are the moments of inertia of the multi-rotor UAV about the x, y and z axes of the fuselage.
Figure 237539DEST_PATH_IMAGE020
is the rolling torque,
Figure 787470DEST_PATH_IMAGE021
is the pitching torque,
Figure 731155DEST_PATH_IMAGE022
are the yaw torques, and they are all in the fuselage coordinate system. This equation shows the angular acceleration of the multi-rotor UAV in the fuselage coordinate system according to the Euler equation.

在刚体运动学模型中,运动学研究了位置、速度、姿态和角速度等变量之间的关系。多旋翼无人机运动学模型的输入是速度和角速度,相应的输出为位置和姿态。多旋翼无人机的运动学模型如下:In a rigid body kinematic model, kinematics studies the relationship between variables such as position, velocity, attitude, and angular velocity. The input of multi-rotor UAV kinematics model is velocity and angular velocity, and the corresponding output is position and attitude. The kinematics model of the multi-rotor UAV is as follows:

Figure 24733DEST_PATH_IMAGE023
Figure 24733DEST_PATH_IMAGE023

其中pE是惯性位置,

Figure 737474DEST_PATH_IMAGE024
中。该方程表示地球固定坐标系中位置和速度之间的 关系。 where p E is the inertial position,
Figure 737474DEST_PATH_IMAGE024
middle. This equation expresses the relationship between position and velocity in an Earth-fixed coordinate system.

Figure 192726DEST_PATH_IMAGE025
Figure 192726DEST_PATH_IMAGE025

其中vB是多旋翼无人机相对于机身x、y和z轴的速度,

Figure 358128DEST_PATH_IMAGE026
。 where v B is the velocity of the multi-rotor UAV relative to the x, y and z axes of the fuselage,
Figure 358128DEST_PATH_IMAGE026
.

Figure 455397DEST_PATH_IMAGE027
Figure 455397DEST_PATH_IMAGE027

其中,

Figure 786759DEST_PATH_IMAGE028
表示机身坐标系中的欧拉角,
Figure 412912DEST_PATH_IMAGE029
Figure 331190DEST_PATH_IMAGE030
表示角速率与欧拉角速 率之间的旋转矩阵。基于以上方程,非线性系统和测量模型如下所示: in,
Figure 786759DEST_PATH_IMAGE028
Indicates the Euler angles in the fuselage coordinate system,
Figure 412912DEST_PATH_IMAGE029
.
Figure 331190DEST_PATH_IMAGE030
Represents the rotation matrix between angular rate and Euler angular rate. Based on the above equations, the nonlinear system and measurement model are as follows:

Figure 966571DEST_PATH_IMAGE031
Figure 966571DEST_PATH_IMAGE031

Figure 388325DEST_PATH_IMAGE032
Figure 388325DEST_PATH_IMAGE032

Figure 450959DEST_PATH_IMAGE033
Figure 450959DEST_PATH_IMAGE033

Figure 590953DEST_PATH_IMAGE034
Figure 590953DEST_PATH_IMAGE034

其中x(t)是状态向量,u(t)是控制输入向量,z(t)是测量数据向量,w(t)是过程噪声,v(t)是测量噪声。where x(t) is the state vector, u(t) is the control input vector, z(t) is the measured data vector, w(t) is the process noise, and v(t) is the measurement noise.

二、无人机状态空间方程离散化和线性化2. Discretization and linearization of UAV state space equations

由于无人机的运动学和动力学模型组成的状态空间方程是非线性的,为了利用卡尔曼滤波算法,需要先做一下模型的线性化,线性化后的方程如下:Since the state space equation composed of the kinematics and dynamics model of the UAV is nonlinear, in order to use the Kalman filter algorithm, it is necessary to linearize the model first. The linearized equation is as follows:

Figure 30025DEST_PATH_IMAGE035
Figure 30025DEST_PATH_IMAGE035

Figure 571864DEST_PATH_IMAGE036
Figure 571864DEST_PATH_IMAGE036

线性化之后,进行模型的离散化处理:After linearization, discretize the model:

Figure 805400DEST_PATH_IMAGE037
Figure 805400DEST_PATH_IMAGE037

Figure 934155DEST_PATH_IMAGE038
Figure 934155DEST_PATH_IMAGE038

其中,x(k+1)为无人机的状态变量,w(k)为过程噪声,v(k)为测量噪声;A为状态转移矩阵,B为输入矩阵;C是输出矩阵,C表示测量值向量z(k)和状态变量x(k)之间的关系;z(k)表示从无人机传感器获得的k时刻的测量值向量。Among them, x(k+1) is the state variable of the UAV, w(k) is the process noise, v(k) is the measurement noise; A is the state transition matrix, B is the input matrix; C is the output matrix, and C represents The relationship between the measured value vector z(k) and the state variable x(k); z(k) represents the measured value vector obtained from the UAV sensor at time k.

到目前为止,多旋翼无人机模型的线性化和离散化已经完成。接下来,介绍多旋翼无人机IMU传感器的故障检测方法。So far, the linearization and discretization of the multi-rotor UAV model have been completed. Next, the fault detection method of the multi-rotor UAV IMU sensor is introduced.

三、基于线性化和离散化后的状态空间方程,采用卡尔曼滤波对IMU传感器正常情况下采集到的信号进行去噪,得到去噪后的IMU传感器信号3. Based on the linearized and discretized state space equations, the Kalman filter is used to denoise the signals collected by the IMU sensor under normal conditions, and the denoised IMU sensor signal is obtained

在二次卡尔曼滤波算法中,一次卡尔曼滤波用于去噪,以提高故障检测率。本发明对二次卡尔曼滤波和卡尔曼滤波器进行了实验比较,证明了二次卡尔曼滤波方法设计的优越性。卡尔曼滤波被称为最优线性估计器,它可以最小化均方误差,并可以提供状态变量的递归计算。基于状态空间方程和测量方程,估计过程如下所示:In the quadratic Kalman filter algorithm, the primary Kalman filter is used for denoising to improve the fault detection rate. The invention compares the quadratic Kalman filter and the Kalman filter in experiments, and proves the superiority of the design of the quadratic Kalman filter method. Kalman filtering is known as an optimal linear estimator, which minimizes the mean square error and can provide recursive computation of state variables. Based on the state-space equation and the measurement equation, the estimation process is as follows:

Figure 911338DEST_PATH_IMAGE039
Figure 911338DEST_PATH_IMAGE039

其中

Figure 307684DEST_PATH_IMAGE040
Figure 712121DEST_PATH_IMAGE041
是一次卡尔曼滤波器估计器中状态变量x1(k)的先验和后验 最小均方误差估计。方程表示状态变量x1(k)的一次卡尔曼滤波器先验估计。 in
Figure 307684DEST_PATH_IMAGE040
and
Figure 712121DEST_PATH_IMAGE041
is the prior and posterior minimum mean square error estimate of the state variable x 1 (k) in a Kalman filter estimator. The equation represents a Kalman filter prior estimation of the state variable x 1 (k).

Figure 826707DEST_PATH_IMAGE042
Figure 826707DEST_PATH_IMAGE042

其中P1(k+1|k)和P1(k)是一次卡尔曼滤波器中相应的先验和后验状态误差协方差。Q是系统噪声w(k)的方差。方程表示一次卡尔曼滤波器中先验协方差P1(k+1|k)的计算过程。where P 1 (k+1|k) and P 1 (k) are the corresponding prior and posterior state error covariances in the first-order Kalman filter. Q is the variance of the system noise w(k). The equation represents the calculation process of the prior covariance P 1 (k+1|k) in the Kalman filter.

Figure 342002DEST_PATH_IMAGE043
Figure 342002DEST_PATH_IMAGE043

其中,K1(k)是卡尔曼增益。R是测量噪声v(k)的方差。where K 1 (k) is the Kalman gain. R is the variance of the measurement noise v(k).

Figure 858434DEST_PATH_IMAGE044
Figure 858434DEST_PATH_IMAGE044

其中方程表示状态变量x1(k+1)的一次卡尔曼滤波器估计,

Figure 433772DEST_PATH_IMAGE045
是一次卡尔曼滤波器的新息。一次卡尔曼滤波的后验协方差计算 公式为: where the equation represents a Kalman filter estimation of the state variable x 1 (k+1),
Figure 433772DEST_PATH_IMAGE045
is a Kalman filter innovation. The formula for calculating the posterior covariance of a Kalman filter is:

Figure 35655DEST_PATH_IMAGE046
Figure 35655DEST_PATH_IMAGE046

四、二次卡尔曼滤波去趋势4. Quadratic Kalman filter to detrend

根据一次卡尔曼滤波算法的结果输出,使用二次卡尔曼滤波算法进行趋势分析,以获得数据的残差。通过将残差与阈值进行比较来检测传感器故障。类似地,基于状态空间方程和测量方程,估计过程如下:According to the result output of the primary Kalman filter algorithm, the trend analysis is performed using the secondary Kalman filter algorithm to obtain the residual error of the data. Sensor failures are detected by comparing residuals to thresholds. Similarly, based on the state space equation and the measurement equation, the estimation process is as follows:

Figure 354641DEST_PATH_IMAGE047
Figure 354641DEST_PATH_IMAGE047

其中

Figure 460000DEST_PATH_IMAGE048
Figure 993791DEST_PATH_IMAGE049
是二次卡尔曼滤波估计器中状态变量x2(k)的先验和后验最 小均方误差估计。该方程表示状态变量x2(k)的二次卡尔曼滤波器先验估计。 in
Figure 460000DEST_PATH_IMAGE048
and
Figure 993791DEST_PATH_IMAGE049
is the prior and posterior minimum mean square error estimate of the state variable x 2 (k) in the quadratic Kalman filter estimator. This equation represents a quadratic Kalman filter prior estimate of the state variable x 2 (k).

Figure 817391DEST_PATH_IMAGE050
Figure 817391DEST_PATH_IMAGE050

其中P2(k+1|k)和P2(k)是二次卡尔曼滤波器中相应的先验和后验状态误差协方差。Q是系统噪声w(k)的方差。该方程表示二次卡尔曼滤波器中先验协方差P2(k+1|k)的计算过程。where P 2 (k+1|k) and P 2 (k) are the corresponding prior and posterior state error covariances in the quadratic Kalman filter. Q is the variance of the system noise w(k). This equation represents the calculation process of the prior covariance P 2 (k+1|k) in the quadratic Kalman filter.

Figure 940067DEST_PATH_IMAGE051
Figure 940067DEST_PATH_IMAGE051

其中,K2(k)是二次卡尔曼滤波器的卡尔曼增益。R是二次卡尔曼滤波器中的测量噪声v(k)的方差。Among them, K 2 (k) is the Kalman gain of the quadratic Kalman filter. R is the variance of the measurement noise v(k) in the quadratic Kalman filter.

Figure 165512DEST_PATH_IMAGE052
Figure 165512DEST_PATH_IMAGE052

其中方程表示状态变量

Figure 82653DEST_PATH_IMAGE053
的二次卡尔曼滤波器估计,
Figure 659128DEST_PATH_IMAGE054
是二次卡尔曼滤波器的新息。以下为二次卡尔曼滤波器的后验协 方差: where the equation represents the state variable
Figure 82653DEST_PATH_IMAGE053
The quadratic Kalman filter estimate of ,
Figure 659128DEST_PATH_IMAGE054
is the innovation of the quadratic Kalman filter. The following is the posterior covariance of the quadratic Kalman filter:

Figure 319916DEST_PATH_IMAGE055
Figure 319916DEST_PATH_IMAGE055

在二次卡尔曼滤波器中,本发明提出一种改进的Sage-Husa自适应卡尔曼滤波方法来自动估计测量噪声方差R,R的估计过程如下:In the quadratic Kalman filter, the present invention proposes an improved Sage-Husa adaptive Kalman filter method to automatically estimate the measurement noise variance R, and the estimation process of R is as follows:

Figure 134288DEST_PATH_IMAGE056
Figure 134288DEST_PATH_IMAGE056

Figure 753488DEST_PATH_IMAGE057
Figure 753488DEST_PATH_IMAGE057

其中,b是遗忘因子。Among them, b is the forgetting factor.

以上过程就是二次卡尔曼滤波器的计算过程,其中,二次卡尔曼滤波器的残差r(k+1)计算公式如下:The above process is the calculation process of the quadratic Kalman filter, where the formula for calculating the residual r(k+1) of the quadratic Kalman filter is as follows:

Figure 286101DEST_PATH_IMAGE058
Figure 286101DEST_PATH_IMAGE058

其中

Figure 16160DEST_PATH_IMAGE059
是一次卡尔曼滤波器后的滤波数据,
Figure 186503DEST_PATH_IMAGE060
是二次卡尔曼滤波后 的状态变量的先验估计,C为输出矩阵。 in
Figure 16160DEST_PATH_IMAGE059
is the filtered data after a Kalman filter,
Figure 186503DEST_PATH_IMAGE060
is the prior estimate of the state variable after the quadratic Kalman filter, and C is the output matrix.

五、基于二次卡尔曼滤波的残差检测过程5. Residual detection process based on quadratic Kalman filter

本发明假设残差服从高斯分布。在置信区间内,阈值计算为正常残差标准偏差的整数倍。检测过程如下:The present invention assumes that the residual follows a Gaussian distribution. Thresholds are calculated as integer multiples of the standard deviation of the normal residuals within the confidence interval. The detection process is as follows:

Figure 976605DEST_PATH_IMAGE061
Figure 976605DEST_PATH_IMAGE061

评估故障检测方法效果的指标有三个:检测延迟(detection delay DD)、故障检测率(fault detection rate FDR)和虚警率(false alarm rate FAR)。DD表示故障发生后,故障检测方法检测到故障所需要的时间。FDR表示在检测过程中可以正确检测到的故障样本数的比率。FAR是指在正常样本中检测到异常的比率。There are three indicators to evaluate the effect of the fault detection method: detection delay (detection delay DD), fault detection rate (fault detection rate FDR) and false alarm rate (false alarm rate FAR). DD represents the time required for the fault detection method to detect the fault after the fault occurs. FDR represents the ratio of the number of faulty samples that can be correctly detected during the detection process. FAR refers to the rate at which anomalies are detected in normal samples.

Figure 262092DEST_PATH_IMAGE062
Figure 262092DEST_PATH_IMAGE062

Figure 264683DEST_PATH_IMAGE063
Figure 264683DEST_PATH_IMAGE063

Figure 319227DEST_PATH_IMAGE064
Figure 319227DEST_PATH_IMAGE064

在以上等式中,DFN是正确检测到的故障数。TFN是故障样本的总数。DAN是在正常数据中检测到的异常数。TNN是正常样本的总数。具体算法流程如图1所示。In the above equation, DFN is the number of correctly detected faults. TFN is the total number of failure samples. DAN is the number of anomalies detected in normal data. TNN is the total number of normal samples. The specific algorithm flow is shown in Figure 1.

与前述基于二次卡尔曼滤波的无人机IMU传感器故障检测方法的实施例相对应,本发明还提供了基于二次卡尔曼滤波的无人机IMU传感器故障检测系统的实施例。Corresponding to the above-mentioned embodiment of the fault detection method for the UAV IMU sensor based on the quadratic Kalman filter, the present invention also provides an embodiment of the fault detection system for the UAV IMU sensor based on the quadratic Kalman filter.

由图2所示,为基于二次卡尔曼滤波的IMU俯仰角速度突变故障检测结果,故障在第30s的时刻注入,将IMU俯仰角速度突变故障模拟为阶跃信号,故障信号的振幅为0.175rad(10deg)。检测指标:FDR为98.63%,FAR为0.60%,DD为0.00s。图3所示为基于二次卡尔曼滤波的IMU俯仰角速度缓变故障检测结果,故障在第30s的时刻注入,将IMU俯仰角速度缓变故障模拟为斜坡信号,故障变化率为0.0058rad/s(0.3325deg/s),故障信号的最大振幅为0.175rad(10deg)。检测指标:FDR为47.62%,FAR为2.75%,DD为1.87s。图4为基于一次卡尔曼滤波的IMU俯仰角速度突变故障检测结果,故障在第30s的时刻注入,将IMU俯仰角速度突变故障模拟为阶跃信号,故障信号的振幅为0.175rad(10deg)。检测指标:FDR为4.80%,FAR为0.15%,DD为0.24s。图5所示为基于一次卡尔曼滤波的IMU俯仰角速度缓变故障检测结果,故障在第30s的时刻注入,将IMU俯仰角速度缓变故障模拟为斜坡信号,故障变化率为0.0058rad/s(0.3325deg/s),故障信号的最大振幅为0.175rad(10deg)。检测指标:FDR为0.70%,FAR为0.00%,DD为12.41s。通过实验结果对比,证明二次卡尔曼滤波算法有较好的检测性能。As shown in Fig. 2, it is the IMU pitch rate sudden change fault detection result based on the secondary Kalman filter. The fault is injected at the 30th second, and the IMU pitch rate sudden change fault is simulated as a step signal, and the amplitude of the fault signal is 0.175rad ( 10 degrees). Detection index: FDR is 98.63%, FAR is 0.60%, DD is 0.00s. Figure 3 shows the detection results of the IMU pitch rate slow-change fault based on the second Kalman filter. The fault is injected at the 30th second, and the IMU pitch rate slow-change fault is simulated as a ramp signal, and the fault change rate is 0.0058 rad/s ( 0.3325deg/s), the maximum amplitude of the fault signal is 0.175rad (10deg). Detection indicators: FDR is 47.62%, FAR is 2.75%, and DD is 1.87s. Figure 4 shows the IMU pitch rate mutation fault detection results based on a Kalman filter. The fault is injected at the 30th moment, and the IMU pitch rate mutation fault is simulated as a step signal, and the amplitude of the fault signal is 0.175rad (10deg). Detection indicators: FDR is 4.80%, FAR is 0.15%, and DD is 0.24s. Figure 5 shows the detection results of the IMU pitch rate slowly changing fault based on a Kalman filter. The fault is injected at the time of 30s, and the IMU pitch rate slowly changing fault is simulated as a ramp signal, and the fault change rate is 0.0058rad/s (0.3325 deg/s), the maximum amplitude of the fault signal is 0.175rad (10deg). Detection indicators: FDR is 0.70%, FAR is 0.00%, and DD is 12.41s. Through the comparison of experimental results, it is proved that the quadratic Kalman filter algorithm has better detection performance.

参见图6,本发明实施例提供的一种基于二次卡尔曼滤波的无人机IMU传感器故障检测系统,包括一个或多个处理器,用于实现上述实施例中的基于二次卡尔曼滤波的无人机IMU传感器故障检测方法。Referring to Fig. 6, a UAV IMU sensor fault detection system based on a secondary Kalman filter provided by an embodiment of the present invention includes one or more processors for implementing the secondary Kalman filter based on the above-mentioned embodiment A fault detection method for UAV IMU sensors.

本发明基于二次卡尔曼滤波的无人机IMU传感器故障检测系统的实施例可以应用 在任意具备数据处理能力的设备上,该任意具备数据处理能力的设备可以为诸如计算机等 设备或置。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。

Figure 14651DEST_PATH_IMAGE065
以 软件实现为例,作为一个逻辑意义上的装置,是通过其所在任意具备数据处理能力的设备 的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层 面而言,如图6所示,为本发明基于二次卡尔曼滤波的无人机IMU传感器故障检测系统所在 任意具备数据处理能力的设备的一种硬件结构图,除了图6所示的处理器、内存、网络接口、 以及非易失性存储器之外,实施例中装置所在的任意具备数据处理能力的设备通常根据该 任意具备数据处理能力的设备的实际功能,还可以包括其他硬件,对此不再赘述。 The embodiment of the UAV IMU sensor fault detection system based on the quadratic Kalman filter of the present invention can be applied to any device with data processing capabilities, and the arbitrary devices with data processing capabilities can be devices or devices such as computers. The device embodiments can be implemented by software, or by hardware or a combination of software and hardware.
Figure 14651DEST_PATH_IMAGE065
Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory for operation by the processor of any device capable of data processing. From the hardware level, as shown in Figure 6, it is a hardware structure diagram of any device with data processing capability where the UAV IMU sensor fault detection system based on the secondary Kalman filter of the present invention is located, except as shown in Figure 6 In addition to the processor, memory, network interface, and non-volatile memory, any device with data processing capabilities in which the device in the embodiment is usually based on the actual function of any device with data processing capabilities may also include other hardware , which will not be repeated here.

上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the above device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本发明方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present invention. It can be understood and implemented by those skilled in the art without creative effort.

本发明实施例还提供一种计算机可读存储介质,其上存储有程序,该程序被处理器执行时,实现上述实施例中的基于二次卡尔曼滤波的无人机IMU传感器故障检测方法。The embodiment of the present invention also provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the method for detecting the fault of the UAV IMU sensor based on the secondary Kalman filter in the above-mentioned embodiment is implemented.

所述计算机可读存储介质可以是前述任一实施例所述的任意具备数据处理能力的设备的内部存储单元,例如硬盘或内存。所述计算机可读存储介质也可以是外部存储设备,例如所述设备上配备的插接式硬盘、智能存储卡(SmartMedia card, SMC)、SD卡、闪存卡(Flash card)等。进一步的,所述计算机可读存储介质还可以既包括任意具备数据处理能力的设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算仉程序以及所述任意具备数据处理能力的设备所需的其他程序和数据,还可以用于暂时地存储己经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of any device capable of data processing described in any of the foregoing embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be an external storage device, such as a plug-in hard disk, a smart memory card (SmartMedia card, SMC), an SD card, a flash memory card (Flash card) and the like equipped on the device. Further, the computer-readable storage medium may also include both an internal storage unit of any device capable of data processing and an external storage device. The computer-readable storage medium is used to store the computing program and other programs and data required by any device capable of data processing, and may also be used to temporarily store outputted or to-be-outputted data.

本领域技术人员在考虑说明书及实践这里公开的内容后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由权利要求指出。Other embodiments of the present application will readily occur to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any modification, use or adaptation of the application, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application . The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the appended claims.

应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (5)

1. An unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering is characterized by comprising the following steps:
the method comprises the following steps: establishing a kinematics and dynamics model of the unmanned aerial vehicle to obtain a state space equation of the unmanned aerial vehicle;
step two: linearizing and discretizing the state space equation of the unmanned aerial vehicle to obtain a linearized and discretized state space equation;
step three: denoising a signal acquired under a normal condition of the IMU sensor by adopting Kalman filtering based on a state space equation after linearization and discretization to obtain a denoised IMU sensor signal;
step four: filtering denoised IMU sensor signals by Kalman filtering again based on a linearized and discretized state space equation, and using signals output by secondary Kalman filtering for trend removing;
step five: calculating a difference value of the denoised IMU sensor signal and a quadratic Kalman filter IMU sensor signal prior estimation, wherein the difference value accords with Gaussian distribution, and an integral multiple of a standard variance of the difference value is taken as an IMU sensor fault detection threshold value;
step six: repeating the third step and the fourth step on the IMU sensor signal acquired on line, calculating the residual error of the IMU sensor signal acquired on line, and when the residual error of the IMU sensor signal acquired on line is more than or equal to the IMU sensor fault detection threshold, indicating that the IMU sensor has a fault; otherwise, the IMU sensor is normal;
the state space equation after linearization and discretization obtained in the second step is as follows:
Figure DEST_PATH_IMAGE001
Figure 610662DEST_PATH_IMAGE002
wherein x (k + 1) is the state variable of the unmanned aerial vehicle, w (k) is process noise, and v (k) is measurement noise; a is a state transition matrix, and B is an input matrix; c is an output matrix, C represents the relationship between the measurement vector z (k) and the state variable x (k); z (k) represents a measurement vector at time k obtained from the drone sensor;
in the third step, the state variable posterior estimation of one Kalman filtering is
Figure DEST_PATH_IMAGE003
Wherein,
Figure 399014DEST_PATH_IMAGE004
representing a Kalman filtering posterior estimation of the unmanned aerial vehicle state variable at the moment k,
Figure DEST_PATH_IMAGE005
representing the primary Kalman filtering prior estimation of the state variable of the unmanned aerial vehicle at the moment of k + 1; k is 1 (k) Representing the primary kalman filter kalman gain at time k:
Figure 869178DEST_PATH_IMAGE006
P 1 (k +1 purple k) represents a state error covariance matrix of the state variable estimated in the moment of k +1 by Kalman filtering in a priori mode; r represents a covariance matrix of the measurement noise v (k);
in the fourth step, the posterior estimation of the state variable of the second Kalman filtering
Figure DEST_PATH_IMAGE007
Figure 81854DEST_PATH_IMAGE008
Wherein e (k + 1) is an innovation of the quadratic Kalman filtering,
Figure DEST_PATH_IMAGE009
indicating state variable of drone at time kThe a-posteriori estimation by the quadratic kalman filter,
Figure 755412DEST_PATH_IMAGE010
representing the secondary Kalman filtering prior estimation of the state variable of the unmanned aerial vehicle at the moment of k + 1; k is 2 (k) For the quadratic kalman filter kalman gain at time k:
Figure DEST_PATH_IMAGE011
P 2 (k +1 k) denotes the state error covariance matrix of the quadratic kalman filter prior estimate of the state variable at time k + 1.
2. The unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering according to claim 1, characterized in that in the secondary Kalman filter, a modified Sage-Husa adaptive Kalman filtering method is adopted to automatically estimate the measurement noise variance R, that is, the estimation process of R is as follows:
Figure 344525DEST_PATH_IMAGE012
Figure DEST_PATH_IMAGE013
wherein b is a forgetting factor.
3. The method for detecting faults of IMU (inertial measurement unit) sensors of unmanned aerial vehicles based on quadratic Kalman filtering according to claim 1, wherein the difference value of the step five is r (k + 1), and the calculation formula is as follows:
Figure 394828DEST_PATH_IMAGE014
in the sixth step, residual errors of the IMU sensor signals acquired on line are calculated, and when the residual errors of the IMU sensor signals acquired on line are larger than or equal to the IMU sensor fault detection threshold value, the IMU sensor is indicated to have faults; otherwise, the IMU sensor is normal.
4. An unmanned aerial vehicle IMU sensor fault detection device based on secondary Kalman filtering is characterized by comprising one or more processors and used for realizing the unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering in any one of claims 1 to 3.
5. A computer-readable storage medium, on which a program is stored, which, when executed by a processor, implements the method for fault detection of an IMU sensor of an unmanned aerial vehicle based on quadratic kalman filtering according to any one of claims 1 to 3.
CN202210892728.4A 2022-07-27 2022-07-27 Unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering Active CN115218927B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210892728.4A CN115218927B (en) 2022-07-27 2022-07-27 Unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210892728.4A CN115218927B (en) 2022-07-27 2022-07-27 Unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering

Publications (2)

Publication Number Publication Date
CN115218927A CN115218927A (en) 2022-10-21
CN115218927B true CN115218927B (en) 2022-12-27

Family

ID=83613166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210892728.4A Active CN115218927B (en) 2022-07-27 2022-07-27 Unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering

Country Status (1)

Country Link
CN (1) CN115218927B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116700203B (en) * 2023-05-04 2024-05-17 中国人民解放军国防科技大学 A Fault Detection and Isolation Method for a Launch Vehicle Attitude Control System

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6681182B2 (en) * 2002-02-01 2004-01-20 The Aerospace Corporation Fault detection pseudo gyro
FR3034514B1 (en) * 2015-04-01 2017-04-21 Sagem Defense Securite NAVIGATION TRACKING METHOD OF A MOBILE CARRIER WITH AN EXTENDED KALMAN FILTER
US20180307231A1 (en) * 2017-04-19 2018-10-25 4D Tech Solutions, Inc. Intelligent electronic speed controller (iesc)
CN108170127B (en) * 2017-12-28 2019-07-26 山东科技大学 A kind of fault detection method of unmanned aerial vehicle flight control system
CN109857094B (en) * 2019-03-14 2020-06-02 杭州电子科技大学 Aero-engine fault diagnosis method based on two-stage Kalman filter algorithm
US20210270973A1 (en) * 2020-02-28 2021-09-02 The Mitre Corporation System and methods for fault detection in kalman filter estimation
CN113654554B (en) * 2021-08-13 2024-06-14 北京维思韦尔航空电子技术有限公司 Fast self-adaptive dynamic inertial navigation real-time resolving denoising method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ATSUKF的飞行器惯性测量单元的故障诊断;何启志等;《西北工业大学学报》;20200831(第04期);全文 *

Also Published As

Publication number Publication date
CN115218927A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
Wang et al. Multivariate regression-based fault detection and recovery of UAV flight data
Cork et al. Sensor fault detection for UAVs using a nonlinear dynamic model and the IMM-UKF algorithm
US9650152B2 (en) Flight envelope protection system for unmanned aerial vehicles
CN110196049A (en) The detection of four gyro redundance type Strapdown Inertial Navigation System hard faults and partition method under a kind of dynamic environment
Sushchenko et al. Processing of redundant information in airborne electronic systems by means of neural networks
CN108170127B (en) A kind of fault detection method of unmanned aerial vehicle flight control system
BR102012023565B1 (en) method and system for detecting structural vehicle anomaly based on a real-time model and method for alleviating a structural anomaly
Törnqvist Estimation and detection with applications to navigation
CN108168509A (en) A kind of quadrotor Error Tolerance method of estimation of lift model auxiliary
Bai et al. Multi-innovation gradient iterative locally weighted learning identification for a nonlinear ship maneuvering system
CN111930094A (en) Unmanned aerial vehicle actuator fault diagnosis method based on extended Kalman filtering
CN107421541B (en) A morphological parameter measurement method for fault-tolerant non-contact failure satellites
CN115218927B (en) Unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering
CN113128035A (en) Civil aircraft flight control sensor signal reconstruction fault-tolerant control method
CN109857127A (en) The method, apparatus that training neural network model and attitude of flight vehicle resolve
CN107063300B (en) Inversion-based disturbance estimation method in underwater navigation system dynamic model
Gudmundsson et al. Robust UAV attitude estimation using a cascade of nonlinear observer and linearized Kalman filter
Caliskan et al. Innovation sequence application to aircraft sensor fault detection: comparison of checking covariance matrix algorithms
Dhakal et al. UAV fault and anomaly detection using autoencoders
Rudin et al. A sensor fault detection for aircraft using a single Kalman filter and hidden Markov models
Prabhu et al. An innovative analytic redundancy approach to air data sensor fault detection
CN117367410B (en) State estimation method, unmanned underwater vehicle and computer readable storage medium
CN113447019A (en) INS/CNS integrated navigation method, system, storage medium and equipment
Pasha et al. MEMS fault-tolerant machine learning algorithm assisted attitude estimation for fixed-wing UAVs
CN118089710A (en) A method for maintaining inertial navigation performance based on IMU and LSTM

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant