A MEMS gyroscope filtering method based on adaptive Kalman filtering algorithm

The adaptive Kalman filter algorithm iteratively calculates the process noise variance matrix, which solves the problem of high accuracy dependence of the traditional Kalman filter algorithm, achieves an improvement in MEMS gyroscope data accuracy and attitude stability, and is suitable for the aerospace field.

CN112632454BActive Publication Date: 2024-10-11CHANGGUANG SATELLITE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011492935.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2024-10-11
Estimated Expiration
2040-12-17

AI Technical Summary

Technical Problem

The traditional Kalman filter algorithm has high requirements on the accuracy of the MEMS gyroscope model, the process noise variance matrix, and the measurement noise variance matrix. As a result, the accuracy of the algorithm is easily reduced or diverged, and it cannot effectively process the MEMS gyroscope output data to improve measurement accuracy.

Method used

It adopts an adaptive Kalman filter algorithm and iteratively calculates the process noise variance matrix Qk to reduce random noise and improve the accuracy of dynamic data output. The structure is simple and easy to implement.

Benefits of technology

It can effectively reduce the random noise of MEMS gyroscopes, improve the accuracy of dynamic data output, and improve the stability of satellite attitude. It is suitable for aerospace and inertial navigation fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112632454B_ABST
    Figure CN112632454B_ABST
Patent Text Reader

Abstract

The present invention relates to a MEMS gyro filtering method based on an adaptive Kalman filter algorithm, comprising the following steps: step one: establishing a state equation and a measurement equation of a Kalman filter; step two: calculating a measurement noise variance matrix of a Kalman filter algorithm according to static angular velocity data of a MEMS gyro, and iteratively calculating a process noise variance matrix of the Kalman filter algorithm; step three: filtering the data of the MEMS gyro using the Kalman filter algorithm; step four: calculating an iteration coefficient of the process noise variance matrix according to a filtering result, returning to step two, and updating and iterating the process noise variance matrix until the data filtering of the MEMS gyro is completed. The filtering method of the present invention has low requirements on model accuracy, can autonomously iterate and calculate the process noise variance matrix, can effectively reduce the random noise of the MEMS gyro, and improve the output accuracy of the dynamic data of the MEMS gyro in real time, thereby improving the attitude stability of the satellite.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal processing, and in particular to a MEMS gyro filtering method based on an adaptive Kalman filtering algorithm. Background Art

[0002] MEMS gyroscopes have been increasingly used in micro-nano satellites in recent years due to their low cost, small size, light weight, and high reliability. However, due to the constraints of current processes, materials, and other factors, the output accuracy of MEMS gyroscopes is relatively low. The error source of MEMS gyroscopes contains a large amount of random noise, and is easily affected by the environment, with slow time-varying and non-stationary characteristics. Therefore, how to effectively process the output data of MEMS gyroscopes to improve their measurement accuracy has become an important research direction in the commercial aerospace field.

[0003] At present, the widely used method for processing gyroscope random noise is to model the gyroscope based on methods such as time series analysis, and then use the Kalman filter algorithm for digital filtering.

[0004] However, traditional Kalman filtering has very high requirements on the accuracy of the MEMS gyroscope model, the process noise variance matrix, and the measurement noise variance matrix. The gyroscope model and process noise variance matrix obtained based on ground test data will no longer be accurate as the satellite's on-orbit environment changes and the operating time passes, so the algorithm accuracy will be reduced or even diverged, thereby reducing the accuracy of the MEMS gyroscope dynamic data output. Summary of the invention

[0005] In order to solve the problem that the traditional Kalman filtering algorithm in the prior art has too high dependence on the accuracy of the MEMS gyroscope model, the accuracy of the process noise variance matrix and the accuracy of the measurement noise variance matrix, and the algorithm accuracy is easily reduced or even diverged, the present invention provides a MEMS gyroscope filtering method based on an adaptive Kalman filtering algorithm.

[0006] To solve the above problems, the present invention adopts the following technical solutions:

[0007] A MEMS gyro filtering method based on an adaptive Kalman filtering algorithm comprises the following steps:

[0008] Step 1: Establish the state equation and measurement equation of the Kalman filter according to the data acquisition cycle of the MEMS gyroscope;

[0009] Step 2: Obtain the static angular velocity data of the MEMS gyroscope, and calculate the measurement noise variance matrix R of the Kalman filter algorithm based on the static angular velocity data k , and use the formula Iterative calculation is performed to obtain the process noise variance matrix Q of the Kalman filter algorithm k ,in is the process noise variance matrix Q k The estimated value at time k, α k is the iteration coefficient. In the first operation For any value, α0 takes 1;

[0010] Step 3: Filtering the data of the MEMS gyroscope using the Kalman filter algorithm;

[0011] Step 4: Calculate the process noise variance matrix Q according to the filtering result obtained in step 3 k The iteration coefficient, then return to step 2, the process noise variance matrix Q k Update iterations are performed until the data filtering of the MEMS gyroscope is completed.

[0012] Compared with the prior art, the present invention has the following beneficial effects:

[0013] The MEMS gyroscope filtering method based on the adaptive Kalman filtering algorithm proposed in the present invention does not require high model accuracy, can autonomously iterate and calculate the process noise variance matrix, can effectively reduce the random noise of the MEMS gyroscope, and improve the output accuracy of the dynamic data of the MEMS gyroscope in real time, thereby improving the attitude stability of the satellite. At the same time, the filtering method has a simple structure and is easy to implement. It can be applied to aerospace, inertial navigation and other fields, and has great practical significance for actual engineering applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A schematic flow chart of a MEMS gyro filtering method based on an adaptive Kalman filtering algorithm provided in an embodiment of the present invention;

[0015] Figure 2 It is a schematic diagram of the static angular velocity data of the MEMS gyroscope;

[0016] Figure 3 This is a comparison diagram of the angular velocity of the MEMS gyroscope before and after filtering in Example 2;

[0017] Figure 4 This is a schematic diagram of the update result of the noise variance matrix of the process of Example 2;

[0018] Figure 5 This is a comparison diagram of the angular velocity of the MEMS gyroscope before and after filtering in Example 3;

[0019] Figure 6 This is a schematic diagram of the update result of the noise variance matrix in the process of Example 3. DETAILED DESCRIPTION

[0020] The technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings and preferred embodiments.

[0021] Embodiment 1

[0022] In this embodiment, if Figure 1 As shown, the present invention provides a MEMS gyro filtering method based on an adaptive Kalman filtering algorithm, the method comprising the following steps:

[0023] Step 1 (S1): establishing a state equation and a measurement equation of a Kalman filter according to a data acquisition cycle of a MEMS gyroscope;

[0024] Step 2 (S2): Obtain the static angular velocity data of the MEMS gyroscope, and calculate the measurement noise variance matrix R of the Kalman filter algorithm based on the static angular velocity data. k , and use the formula Iterative calculation is performed to obtain the process noise variance matrix Q of the Kalman filter algorithm k ,in is the process noise variance matrix Q k The estimated value at time k, α k is the iteration coefficient. In the first operation For any value, α0 takes 1;

[0025] Step three (S3): filtering the data of the MEMS gyroscope using a Kalman filter algorithm;

[0026] Step 4 (S4): Calculate the process noise variance matrix Q according to the filtering result obtained in step 3 k The iteration coefficient, then return to step 2, the process noise variance matrix Q k Update and iterate until the data filtering of the MEMS gyroscope is completed.

[0027] Specifically, step S1, establish the state equation and measurement equation of the Kalman filter:

[0028] The state equation is established using the relationship between the angular velocity and angular acceleration of the MEMS gyroscope:

[0029]

[0030] Among them, w k is the angular velocity of the MEMS gyroscope at time k, ΔT is the sampling period of the MEMS gyroscope, δ k is the angular acceleration of the MEMS gyroscope at time k, ν 1,k , ν 2,k is a zero-mean Gaussian white noise signal, which is used to characterize the system process noise. Its corresponding process noise variance matrix is Q 11,k ν 1,k The variance, Q 22,k ν 2,k The variance of .

[0031] Define the state X of the Kalman filter at time k k =[w k α k ] T , then the state equation of the Kalman filter is as follows:

[0032] X k =φ k|k-1 X k-1 +ν k

[0033] in, is the one-step state transfer matrix, ν k =[ν 1,k ν 2,k ] T is the process noise vector. The measurement of the system is selected as the actual measurement output of the gyro, that is, Z k =w k , so the measurement equation of the Kalman filter is:

[0034] Z k =H k X k +ε k

[0035] Among them, H k =[1 0] is the system observation matrix, ε k is with ν 1,k , ν 2,k An uncorrelated zero-mean Gaussian white noise signal is used to characterize the system measurement noise, and its variance constitutes R k .

[0036] Step S2, determine the measurement noise variance matrix R k and the process noise variance matrix Q k :

[0037] For the measurement noise variance matrix R k , directly select a section of zero-mean static data and calculate its variance. Specifically, by obtaining the static angular velocity data of the MEMS gyroscope, the measurement noise variance matrix R of the Kalman filter algorithm is calculated based on the static angular velocity data. k .

[0038] For the process noise variance matrix Q k , due to the inaccuracy of modeling and the inability to accurately obtain the changes in the on-orbit environment in real time, the present invention uses the following formula for iterative calculation:

[0039]

[0040] in, is the process noise variance matrix Q k The estimated value at time k, α k is the iteration coefficient. In the first operation For any value, α0 takes 1.

[0041] Step 3: Use the Kalman filter algorithm to filter the MEMS gyroscope data:

[0042] Filtering is performed according to the following Kalman filter principle:

[0043]

[0044] in, is the one-step prediction quantity of the Kalman filter state, P k|k-1 is the Kalman one-step prediction error variance matrix, K k is the Kalman filter gain matrix, P k is the filter error variance matrix, is the state estimate at time k.

[0045] Step S4, calculate the process noise variance matrix Q k The iteration coefficient is used to complete the algorithm iteration;

[0046] Calculate the process noise variance matrix Q according to the filtering result obtained in step S3 k The iteration coefficient α k , then return to step S2, and calculate the process noise variance matrix Q k Perform update iterations and repeat steps S2 to S4 until the data filtering of the MEMS gyroscope is completed.

[0047] Optionally, calculating the iterative coefficients of the noise variance matrix according to the filtering result obtained in step S3 includes the following steps:

[0048] Step 41: Calculate the update sequence:

[0049]

[0050] Among them, Z k is the measurement equation of the Kalman filter, H k is the observation matrix, It is the one-step prediction quantity of Kalman filter state.

[0051] Step 42: Filter the square sum of the update sequence through a first-order low-pass filter to obtain

[0052]

[0053] Where b = 2·π·f c ·ΔT, ΔT is the data acquisition period, fc is the cutoff frequency of the first-order low-pass filter, f c The value range of is between the system bandwidth and the gyro Nyquist frequency.

[0054] Step 43: Calculate the process noise variance matrix Q k The iteration coefficient is calculated as follows:

[0055]

[0056] Where trace is the trace of the matrix. After completing the above operations, rerun steps 2 to 4 to complete the algorithm iteration.

[0057] The MEMS gyroscope filtering method based on the adaptive Kalman filtering algorithm proposed in this embodiment does not have high requirements on model accuracy, can autonomously iterate and calculate the process noise variance matrix, can effectively reduce the random noise of the MEMS gyroscope, and improve the output accuracy of the dynamic data of the MEMS gyroscope in real time, thereby improving the attitude stability of the satellite. At the same time, the filtering method has a simple structure and is easy to implement. It can be applied to aerospace, inertial navigation and other fields, and has great practical significance for actual engineering applications.

[0058] Next, the technical solution of the present invention will be further described in conjunction with specific embodiments.

[0059] Embodiment 2

[0060] Step 1: Establish the state equation and measurement equation of the Kalman filter according to the MEMS gyro data acquisition cycle. In this embodiment, the acquisition cycle of the MEMS gyro is 0.01s, so the state equation transfer matrix of the filter is The observation matrix H k =[1 0], state quantity X k =[w k δ k ] T .

[0061] Step 2: Obtain the static angular velocity data of the MEMS gyroscope, remove the mean and trend items, and obtain Figure 2 The static angular velocity data variance is obtained as the measurement noise variance matrix for subsequent filtering. For example, the noise variance of a certain MEMS gyroscope selected in Example 2 is 4.9963e-04, so the selected measurement noise variance matrix R k =5e-04.

[0062] Considering the errors in the process model, especially the larger error in the angular acceleration update process, the initial value of the process noise variance matrix (in the first operation) selected in this embodiment is The initial value of the iteration coefficient is 1, and the noise variance matrix of each subsequent step uses the formula Calculate, where is the process noise variance matrix Q k The estimated value at time k, α k is the iteration coefficient.

[0063] Step 3: Kalman filtering is performed using the Kalman filtering principle, where the initial value P0 of the filter noise variance matrix used for filtering is set to the unit matrix, that is, The angular velocity information in the initial value of the state variable X0 uses the first beat measurement value, and the angular acceleration information is set to 0, that is, X0 = [Z0 0] T .

[0064] Step 4: First calculate the filter update sequence Then, the square sum of the update sequence is filtered by a first-order low-pass filter. The filter cutoff frequency selected in this embodiment is 0.5 Hz, so b in the filter coefficient is 0.0314. Then, according to the formula Calculate the iterative coefficients of the noise variance matrix. and The calculation result is a single-dimensional variable, so the trace of the matrix is ​​equal to the data itself, so the amount of calculation is extremely simplified. Finally, after completing the iterative coefficient calculation, repeat the calculations of steps 3 and 4. Figure 3 This is a comparison diagram of the angular velocity of the MEMS gyroscope before and after filtering using the filtering method of this embodiment. Figure 4 Schematic diagram of the updated results of the process noise variance matrix.

[0065] Embodiment 3

[0066] The implementation process and parameter settings of Example 3 are basically the same as those of Example 2, except that the noise characteristics of the gyro data in the first 100 seconds are the same as those of Example 2, and the random noise amplitude of the gyro increases by 2 times in the last 100 seconds. Figure 5 This is a comparison diagram of the angular velocity of the MEMS gyroscope before and after filtering using the filtering method of this embodiment. Figure 6 This is a schematic diagram of the process noise variance matrix update result. In the implementation process, it is only necessary to synchronize the measurement noise variance matrix R k Amplifying four times can still maintain a filtering effect similar to that 100 seconds ago.

[0067] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0068] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A MEMS gyro filtering method based on an adaptive Kalman filtering algorithm, characterized in that: The following steps are involved: Step 1: Establish the state equation and measurement equation of the Kalman filter according to the data acquisition cycle of the MEMS gyroscope; Step 2: Obtain the static angular velocity data of the MEMS gyroscope, and calculate the measurement noise variance matrix R of the Kalman filter algorithm based on the static angular velocity data k , and use the formula Iterative calculation is performed to obtain the process noise variance matrix Q of the Kalman filter algorithm k ,in is the process noise variance matrix Q k The estimated value at time k, α k is the iteration coefficient. In the first operation For any value, α0 takes 1; Step 3: Filtering the data of the MEMS gyroscope using the Kalman filter algorithm; Step 4: Calculate the process noise variance matrix Q according to the filtering result obtained in step 3 k The iteration coefficient, then return to step 2, the process noise variance matrix Q k Performing update iterations until data filtering of the MEMS gyroscope is completed; Calculating the iterative coefficients of the process noise variance matrix according to the filtering result obtained in step 3 comprises the following steps: Step 41: Calculate the update sequence: Among them, Z k is the measurement equation of the Kalman filter, H k is the observation matrix, One-step prediction of the Kalman filter state; Step 42: Filter the square sum of the update sequence through a first-order low-pass filter to obtain Where b = 2·π·f c ·ΔT, ΔT is the data acquisition period, f c is the cutoff frequency of the first-order low-pass filter, and its value range is between the system bandwidth and the gyro Nyquist frequency; Step 43: Calculate the process noise variance matrix Q k The iteration coefficient is calculated as follows: Among them, trace is the trace of the matrix, P kk-1 is the Kalman one-step prediction error variance matrix.

2. The MEMS gyro filtering method based on the adaptive Kalman filtering algorithm according to claim 1, characterized in that: The state equation is established using the relationship between the angular velocity and angular acceleration of the MEMS gyroscope: Among them, w k is the angular velocity of the MEMS gyroscope at time k, δ k is the angular acceleration of the MEMS gyroscope at time k, ν 1,k , ν 2,k is a zero-mean Gaussian white noise signal, used to characterize process noise; Define the state X of the Kalman filter at time k k =[w k a k ] T , then the state equation of the Kalman filter is as follows: X k =φ k|k-1 X k-1 +n k in, is the one-step state transfer matrix, ν k =[ν 1,k ν 2,k ] T is the process noise vector; The measurement equation of the Kalman filter is: Z k =H k X k +ε k Among them, ε k is with ν 1,k , ν 2,k An uncorrelated zero-mean Gaussian white noise signal that characterizes the measurement noise.