CN116361616A - Robust Kalman filtering method - Google Patents
Robust Kalman filtering method Download PDFInfo
- Publication number
- CN116361616A CN116361616A CN202310344333.5A CN202310344333A CN116361616A CN 116361616 A CN116361616 A CN 116361616A CN 202310344333 A CN202310344333 A CN 202310344333A CN 116361616 A CN116361616 A CN 116361616A
- Authority
- CN
- China
- Prior art keywords
- kalman filtering
- time
- updating
- covariance
- sampling frequency
- 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.)
- Pending
Links
- 238000001914 filtration Methods 0.000 title claims abstract description 29
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000005070 sampling Methods 0.000 claims abstract description 34
- 239000011159 matrix material Substances 0.000 claims abstract description 32
- 239000013598 vector Substances 0.000 claims abstract description 23
- 230000002159 abnormal effect Effects 0.000 claims abstract description 15
- 238000004364 calculation method Methods 0.000 claims abstract description 5
- 230000005284 excitation Effects 0.000 claims description 3
- 238000005259 measurement Methods 0.000 claims description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005315 distribution function Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/18—Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/243—Classification techniques relating to the number of classes
- G06F18/2433—Single-class perspective, e.g. one-against-all classification; Novelty detection; Outlier detection
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E40/00—Technologies for an efficient electrical power generation, transmission or distribution
- Y02E40/40—Arrangements for reducing harmonics
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Life Sciences & Earth Sciences (AREA)
- Computational Mathematics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Physics (AREA)
- Algebra (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Probability & Statistics with Applications (AREA)
- Operations Research (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Complex Calculations (AREA)
Abstract
The invention relates to a robust Kalman filtering method, which comprises the steps of setting preset sampling times N, initializing filtering, and defining an initial value and a covariance matrix of a state vector; updating the observation vector and the calculation criterion index; detecting whether an abnormal value exists or not, if so, updating parameters by adopting a robust Kalman filtering algorithm, and detecting whether the abnormal value exists or not again after updating the parameters; if the abnormal value is not found, adopting a standard Kalman filtering algorithm to recursively update; repeating the sampling, and ending the program when the sampling times reach the preset sampling times. According to the scheme provided by the invention, when the abnormal value is detected, the parameters are updated by using the robust Kalman filtering algorithm, so that the efficiency and the application range are improved.
Description
Technical Field
The invention relates to the field of signal processing, in particular to a robust Kalman filtering method.
Background
In the field of optimal estimation, parameters and/or states are considered as random variables. In general, the statistical information of random variables is entirely captured by a probability distribution function or a density function. However, in most practical applications, it is almost impossible and not necessary to know the exact distribution or density function. The first two moments of the random variable, mean and covariance, are often more interesting and easier to obtain. The Kalman filter is the best known real-time linear estimator of mean and covariance and has a very wide range of applications. The positioning system can effectively reduce noise and smooth pose accuracy based on the extended Kalman frame, but the observed value in the Kalman system can have abnormal value, so that iteration update based on Kalman can lead to pose failure; standard kalman is the optimal estimator only if certain preconditions are met, e.g. gaussian distributed observation noise with precisely known mean and covariance. However, in many practical applications, observation noise may be that the actual observation is susceptible to outliers. The positioning system based on the Kalman frame can effectively reduce noise and smooth pose accuracy, but the observed value in the Kalman system can have abnormal value, so that iteration update based on Kalman can lead to pose failure;
outliers can be processed using a method called a robust filter or estimator, the most straightforward of which is the data auditing strategy, i.e. to reject observations that are "too large" of the residual. However, this simple strategy is inefficient and will result in a lack of continuity in covariance estimation. At present, a rank deficiency observation model Kalman filter based on M estimation is provided, and the initial state estimation is calculated only by using the current observation value at any moment through robust M estimation, so that the robustness is ensured. This initial state estimate is then used to modify the a priori estimate of covariance, thereby ensuring adaptivity. Thus, in this approach, the observation equation must be overdetermined, or more precisely, include no outlier observations, and the number of remaining observations should not be less than the dimension of the state. Therefore, this adaptive and robust approach can only be applied in limited situations.
Disclosure of Invention
The invention aims to provide a robust Kalman filtering method which can be used for solving the technical problems.
The technical scheme adopted by the invention is as follows.
A robust kalman filtering method, comprising the operations of:
s10: setting a preset sampling frequency N, initializing filtering, and defining an initial value and a covariance matrix of a state vector;
s20: updating the observation vector and the calculation criterion index;
s30: detecting whether an abnormal value exists, if so, executing step S31, and if not, executing step S32;
s31: updating parameters by adopting a robust Kalman filtering algorithm, and executing the step S30 again after updating the parameters;
s32: recursively updating by adopting a standard Kalman filtering algorithm;
s40: comparing the current sampling frequency with the preset sampling frequency N, if the current sampling frequency is less than the preset sampling frequency N, executing step S20, and if the current sampling frequency=the preset sampling frequency N, ending the operation.
Updating parameters using a robust Kalman filtering algorithm includes updating one or more of a scaling factor, a empirical estimation covariance, and a chi-square distribution.
In step S10: k is the sampling number, k=1, 2, … N, defining the initial value of the N-dimensional state vector of the system at time k=0 as x 0 The noise covariance matrix is P 0 。
The detailed scheme is that the specific operation in step S20 is as follows:
s21: carrying out state prediction;
wherein x is k An n-dimensional state vector sampled at time k;is x k Is a priori estimated of (a); />Is x k-1 Is a posterior estimate of (1); f (F) k-1 Is an n x n-dimensional propagation matrix in k=0 times; />Is a priori estimate of the covariance matrix at time k; />Is a posterior estimate of the covariance matrix at time k-1; />Is F k-1 Is a transposed matrix of (a); q (Q) k-1 Is a range excitation noise covariance matrix at k-1 time;
s22: calculating innovation vectors;
wherein y is k Is the m-dimensional observation vector at time k;is y k Is a priori estimated of (a); />Is->An associated covariance matrix; h k Is an m x n-dimensional observation matrix at k moment; />Is H k Is a transposed matrix of (a); r is R k Is the observation equation noise covariance at time k;
s23: introducing a judgment index gamma k ;
λ k Let k time initial scaling factor be 1, i.e. lambda, for k time scaling factor k (0)=1;
The specific operation of step S30 is as follows:
if it isχ α For the alpha-quantile x of chi-square distribution, the updating is performed according to the following formula:
wherein: k (K) k Is the Kalman filter gain at k;is x k Is a posterior estimate of (1); />Is y k Is a measurement of the observed value of (2); />Is covariance P k Is a posterior estimate of (2); />Is covariance P k Is a priori estimated value of (2);
after updating, if the number of samples is not reached, k=k+1, starting a new sampling from the state prediction;
where i represents the i-th iteration of the scaling factor,representing the actual judgment index->Is an innovation vector;
r is then amplified by a scaling factor k Observing a noise covariance;
According to the scheme provided by the invention, when the abnormal value is detected, the corresponding observed value is updated by using the robust Kalman filtering algorithm, so that the continuity of sampling is ensured, and the accuracy of the method is quite stable and insensitive to modeling errors no matter how large the abnormal value is, therefore, the calculation accuracy of Kalman filtering is improved, and the application range is wider than that of the common Kalman filtering.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Fig. 2 is a position estimation error of KF.
FIG. 3 is a position estimation error of RKF.
Fig. 4 shows the velocity estimation error of KF.
Fig. 5 is a velocity estimation error of RKF.
Detailed Description
The present invention will be specifically described with reference to examples below in order to make the objects and advantages of the present invention more apparent. It should be understood that the following text is intended to describe only one or more specific embodiments of the invention and does not limit the scope of the invention strictly as claimed.
As shown in FIG. 1, a robust method for identifying abnormal values in an EKF observation system based on a Markov distance method comprises the steps of setting a preset sampling frequency N, initializing filtering, and defining an initial value and a covariance matrix of a state vector; updating the observation vector and the calculation criterion index; detecting whether an abnormal value exists or not, if the abnormal value is detected, updating parameters by adopting a robust Kalman filtering algorithm, wherein the parameters comprise updating a scaling factor, a test estimation covariance and a chi-square distribution, and detecting whether the abnormal value exists or not again after updating the parameters; if no abnormal value is detected, recursively updating by adopting a standard Kalman filtering algorithm; comparing the current sampling frequency with the preset sampling frequency N, if the current sampling frequency is less than the preset sampling frequency N, sampling again, and if the previous sampling frequency=the preset sampling frequency N, ending the whole program.
Example 1
k is the sampling number, k=1, 2, … N, defining the initial value of the N-dimensional state vector of the system at time k=0 as x 0 The noise covariance matrix is P 0 N is the preset sampling times.
Carrying out state prediction;
wherein x is k An n-dimensional state vector sampled at time k;is x k Is a priori estimated of (a); />Is x k-1 Is a posterior estimate of (1); f (F) k-1 Is an n x n-dimensional propagation matrix in k=0 times; />Is a priori estimate of the covariance matrix at time k; />Is a posterior estimate of the covariance matrix at time k-1; />Is F k-1 Is a transposed matrix of (a); q (Q) k-1 Is a range excitation noise covariance matrix at k-1 time;
calculating innovation vectors;
wherein y is k Is the m-dimensional observation vector at time k;is y k Is a priori estimated of (a); />Is->An associated covariance matrix; h k Is an m x n-dimensional observation matrix at k moment; />Is H k Is a transposed matrix of (a); r is R k Is the observation equation noise covariance at time k;
introducing a judgment index gamma k ;
λ k Let k time initial scaling factor be 1, i.e. lambda, for k time scaling factor k (0)=1;
If it isχ α For the alpha-quantile x of chi-square distribution, the updating is performed according to the following formula:
wherein: k (K) k Is the Kalman filter gain at k;is x k Is a posterior estimate of (1); />Is y k Is a measurement of the observed value of (2); />Is covariance P k Is a posterior estimate of (2); />Is covariance P k Is a priori estimated value of (2);
after updating, if the number of samples is not reached, k=k+1, starting a new sampling from the state prediction;
where i represents the i-th iteration of the scaling factor,representing the actual judgment index->Is an innovation vector;
r is then amplified by a scaling factor k Observing a noise covariance;
The kinematic positioning problem using the constant velocity model, the kinematic model along the north axis in the continuous time domain is as follows:
wherein pN (t) and vN (t) are the north position and north speed of time t, respectively, the real-time estimation, north acceleration aN (t) is modeled as random noise, converted into discrete time form;
x k =Fx k-1 +w k
the positions along the three axes are observed, so the observation equation is:
y k =Hx k +η k
where H is the observation matrix and ηk is the observation noise.
Acceleration in the state process equation is considered to be Gaussian-distributed white noise, and the nominal standard deviation is 0.01m/s 2 The observed noise is considered to be gaussian distributed white noise with a standard deviation of 0.1m, and these parameters are used together with the state process equation and the observation equation to perform KF and Robust KF (RKF). A positional anomaly value of 2m was artificially introduced every 30 minutes. The position estimation error of KF is shown in fig. 2, the position estimation error of RKF is shown in fig. 3, and the velocity estimation error is shown in fig. 4 and 5. From the illustrations of fig. 2, 3, 4, 5, it is apparent that, when actually observedWhen an outlier exists in the values, the proposed RKF provides superior performance in both position estimation and velocity estimation compared to the standard KF, and the proposed RKF can effectively resist the effects of the outlier.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention. Structures, mechanisms, and methods of operation not specifically described and illustrated in the present invention are implemented by conventional means in the art unless specifically described and limited.
Claims (5)
1. A robust kalman filtering method, comprising the operations of:
s10: setting a preset sampling frequency N, initializing filtering, and defining an initial value and a covariance matrix of a state vector;
s20: updating the observation vector and the calculation criterion index;
s30: detecting whether an abnormal value exists, if so, executing step S31, and if not, executing step S32;
s31: updating parameters by adopting a robust Kalman filtering algorithm, and executing the step S30 again after updating the parameters;
s32: recursively updating by adopting a standard Kalman filtering algorithm;
s40: comparing the current sampling frequency with the preset sampling frequency N, if the current sampling frequency is less than the preset sampling frequency N, executing the step S20, and if the current sampling frequency=the preset sampling frequency N, ending the operation.
2. The robust kalman filtering method according to claim 1, wherein updating parameters with a robust kalman filtering algorithm includes updating one or more of a scaling factor, a empirical estimation covariance, and a chi-square distribution.
3. Robust card according to claim 1 or 2The kalman filtering method is characterized in that in step S10: k is the sampling number, k=1, 2, … N, defining the initial value of the N-dimensional state vector of the system at time k=0 as x 0 The noise covariance matrix is P 0 。
4. A robust kalman filtering method according to claim 3, wherein step S20 is specifically performed as follows:
s21: carrying out state prediction;
wherein x is k An n-dimensional state vector sampled at time k;is x k Is a priori estimated of (a); />Is x k-1 Is a posterior estimate of (1); f (F) k-1 Is an n-dimensional propagation matrix in the k=0 moment; />Is a priori estimate of the covariance matrix at time k; />Is a posterior estimate of the covariance matrix at time k-1; />Is F k-1 Is a transposed matrix of (a); q (Q) k-1 Is a range excitation noise covariance matrix at k-1 time;
s22: calculating innovation vectors;
wherein y is k Is the m-dimensional observation vector at time k;is y k Is a priori estimated of (a); />Is->An associated covariance matrix; h k Is an m x n-dimensional observation matrix at k moment; />Is H k Is a transposed matrix of (a); r is R k Is the observation equation noise covariance at time k;
s23: introducing a judgment index gamma k ;
λ k Let k time initial scaling factor be 1, i.e. lambda, for k time scaling factor k (0)=1;
5. The robust kalman filtering method according to claim 4, wherein the step S30 specifically operates as:
if it isχ α The alpha-quantile χ distributed for chi-square is updated according to the following formula:
wherein: k (K) k Is the Kalman filter gain at k;is x k Is a posterior estimate of (1); />Is y k Is a measurement of the observed value of (2); />Is covariance P k Is a posterior estimate of (2); />Is covariance P k Is a priori estimated value of (2);
after updating, if the number of samples is not reached, k=k+1, starting a new sampling from the state prediction;
where i represents the i-th iteration of the scaling factor,representing the actual judgment index->Is an innovation vector;
r is then amplified by a scaling factor k Observing a noise covariance;
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211621888 | 2022-12-16 | ||
CN2022116218881 | 2022-12-16 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116361616A true CN116361616A (en) | 2023-06-30 |
Family
ID=86931240
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310344333.5A Pending CN116361616A (en) | 2022-12-16 | 2023-03-31 | Robust Kalman filtering method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116361616A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117109593A (en) * | 2023-10-20 | 2023-11-24 | 中国石油大学(华东) | Submersible robot positioning method and system based on robust Kalman filtering |
CN117556180A (en) * | 2023-11-14 | 2024-02-13 | 中国科学院地质与地球物理研究所 | Height estimation method for semi-aviation electromagnetic method |
-
2023
- 2023-03-31 CN CN202310344333.5A patent/CN116361616A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117109593A (en) * | 2023-10-20 | 2023-11-24 | 中国石油大学(华东) | Submersible robot positioning method and system based on robust Kalman filtering |
CN117109593B (en) * | 2023-10-20 | 2024-01-30 | 中国石油大学(华东) | Submersible robot positioning method and system based on robust Kalman filtering |
CN117556180A (en) * | 2023-11-14 | 2024-02-13 | 中国科学院地质与地球物理研究所 | Height estimation method for semi-aviation electromagnetic method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116361616A (en) | Robust Kalman filtering method | |
Lorenzen et al. | Robust MPC with recursive model update | |
Khodarahmi et al. | A review on Kalman filter models | |
Li et al. | Approximate Gaussian conjugacy: parametric recursive filtering under nonlinearity, multimodality, uncertainty, and constraint, and beyond | |
Lee et al. | Extended Kalman filter based nonlinear model predictive control | |
US20130246006A1 (en) | Method for kalman filter state estimation in bilinear systems | |
García-Fernández et al. | Iterated posterior linearization smoother | |
Zhao et al. | Fault detection and diagnosis of multiple-model systems with mismodeled transition probabilities | |
Chowdhary et al. | Bayesian nonparametric adaptive control of time-varying systems using Gaussian processes | |
Alanwar et al. | Data-driven set-based estimation using matrix zonotopes with set containment guarantees | |
Särkkä et al. | Levenberg-Marquardt and line-search extended Kalman smoothers | |
Gning et al. | A box particle filter for stochastic and set-theoretic measurements with association uncertainty | |
CN115455670B (en) | Non-Gaussian noise model building method based on Gaussian mixture model | |
CN111998854B (en) | Cholesky decomposition calculation-based accurate expansion Stirling interpolation filtering method | |
Zabolotnii et al. | Semi-parametric estimation of the change-point of parameters of non-Gaussian sequences by polynomial maximization method | |
Kogel et al. | Low latency output feedback model predictive control for constrained linear systems | |
Huang et al. | Bearing-only target tracking using a bank of MAP estimators | |
Huang et al. | Analytically-selected multi-hypothesis incremental MAP estimation | |
Carlson et al. | Identification of LTV dynamical models with smooth or discontinuous time evolution by means of convex optimization | |
Speyer et al. | Multi-step prediction optimal control for a scalar linear system with additive cauchy noise | |
Chitralekha et al. | Comparison of expectation-maximization based parameter estimation using particle filter, unscented and extended Kalman filtering techniques | |
Munoz-Minjares et al. | Jitter representation in SCNA breakpoints using asymmetric exponential power distribution | |
Merlinge et al. | Online failure probability estimation under state estimation error and its application to angle of attack control of a reentry vehicle | |
Garrido et al. | State estimation for nonlinear systems using restricted genetic optimization | |
JP6683498B2 (en) | Information processing system, information processing method, and information processing program |
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 |