METHOD FOR ADAPTIVE KALMAN FILTERING IN DYNAMIC SYSTEMS

Abstract: The invention is based on the use of the principles of Lange's Fast Kalman Filtering (FKF<TM>) for large process control, prediction or warning systems where other computing methods are either too slow or fail because of truncation errors. The invented method makes it possible to exploit the FKF method for adaptive Kalman Filtering of dynamic multiparameter systems with large moving data-windows.

Description: METHOD FOR ADAPTIVE KALMAN FILTERING IN DYNAMIC SYSTEMS Technical Field This invention relates generally to all practical applications of Kalman filtering and more particularly to controlling dynamic systems with a need for fast and reliable adaptation to circumstances. Background Art Prior to explaining the invention, it is helpful to understand first the prior art of conventional Kalman recursions as well as the Fast Kalman Filtering (FKF) method for both calibrating a sensor system PCT/FI90/00122 (WO 90/13794) and controlling a large dynamic system PCT/FI93/00192 (WO 93/22625). The underlying Markov (finite memory) process is described by the equations from (1) to (3). The first equation tells how a measurement vector y depends on a state vector s t at time point t, (t=0,l,2...). This is the linearized Measurement (or observation) equation: y t = H t s t + e t (1) Matrix H is the design (Jacobian) matrix that stems from the partial derivatives of actual physical dependencies. The second equation describes the time evolution of the overall system and it is known as the linearized System (or state) equation: s t = A t s t-l + B t u t-l + a t < 2 > Matrix A is the state transition (Jacobian) matrix and B is the control gain (Jacobian) matrix. Equation (2) tells how present state s of the overall system develops from previous state s f l , control/external forcing u t _ j and random error a t effects. When measurement errors e and system errors a are neither auto- (i.e. white noise) nor cross-correlated and are given by the following co variance matrices: R e = Cov(e t ) = E(e t e t ') t and (3) R a = Cov(a t ) = E(a t a t ') then the famous Kalman forward recursion formulae from (4) to (6) give us A. Best Linear Unbiased Estimate (BLUE) s of present state s as follows: = t s α t-l B t u t-1 K, y t -H t (A t ; t-1 + B t u^)} (4) and the covariance matrix of its estimation errors as follows: P t = Cov(Ξ t ) = E St -s t ) i t -s t ) j = P t _! - K t H P t _ j (5) where the Kalman gain matrix K is defined by κ t = < A t p t-i A + v (6) t H { LH t A t p t-ι A t + R a t> H ; + R e t} J _1 This recursive linear solution is (locally) optimal. The stability of the Kalman Filter (KF) requires that the observability and controlability conditions must also be satisfied (Kalman, 1960). However, equation (6) too often requires an overly large matrix to be inverted. Number n of the rows (and columns) of the matrix is as large as there are elements in measurement vector y . A large n is needed for making the observability and controlability conditions satisfied. This is the problem sorted out by the discoveries reported here and in PCT/FI90/00122 and PCT/FI93/00192. The following modified form of the State equation has been introduced \ *t-ι + B t u t-ι = I s t + A A- s t-ι } " a t < 7 > and combined with the Measurement equation (1) in order to obtain the so-called Augmented Model: H. s t + (8) A t s t-1 +B t u t-1 A t (s t-l "s t-l )-a. The state parameters can be estimated by using the well-known solution of a Regression Analysis problem as follows: The result is algebraically equivalent to use of the Kalman recursions but not numerically (see e.g. Harvey, 1981: "Time Series Models" , Philip Allan Publishers Ltd, Oxford, UK, pp. 101-119). The dimension of the matrix to be inverted in equation (9) is now the number (=m) of elements in state vector s f . Harvey's approach is fundamental to all different variations of the Fast Kalman Filtering (FKF) method. An initialization or temporary training of any large Kalman Filter (KF), in order to make the observability condition satisfied, can be done by Lange's High-pass Filter (Lange, 1988). It exploits an analytical sparse-matrix inversion formula for solving regression models with the following so-called Canonical Block-angular matrix structure: This is the matrix representation of the Measurement equation of e.g. an entire windfinding intercomparison experiment. The vectors b ,b 2 ,...,b^ typically refer to consecutive position coordinates e.g. of a weather balloon but may also contain those calibration parameters that have a significant time or space variation. The vector c refers to the other calibration parameters that are constant over the sampling period. For all large multiple sensor systems their design matrices H are sparse. Thus, one can do in one way or another the same sort of Partitioning: where c. typically represents calibration parameters at time t b { ^ all other state parameters in the time and/or space volume A state transition matrix (bock-diagonal) at time t B matrix (bock-diagonal) for state-independent effects u. at time t. If the partitioning is not obvious one may try to do it automatically by using a specific algorithm that converts every sparse linear system into the Canonical Block-angular form (Weil and Kettler, 1971 : "Rearranging Matrices to Block-angular Form for Decomposition (and other) Algorithms", Management Science, Vol. 18, No. 1 , Semptember 1971 , pages 98-107). The covariance matrix of random errors e, may, however, loose something of its original and simple diagonality. Consequently, gigantic Regression Analysis problems were faced as follows: Augmented model for a space volume case: e.g. for the data of a balloon tracking experiment with K consecutive balloon positions: Augmented Model for a moving time volume: (e.g. for "whitening" an observed "innovations" sequence of residuals e t for a moving sample of length L): SUBSTITUTE SHEET (R" le 26 ) Please note that the latter matrix equation has a "nested" Block- Angular structure. There are two types of "calibration" parameters c and O . The first set of these parameters, c , can vary from one time to another. The second type, C , of these parameters have constant values (approximately at least) over long moving time windows of length L. The latter ones, C f , make the Kalman filtering process an adaptive one. The solving of the latter parameters with the conventional Kalman recursions from (4) to (6) causes an observability problem as for computational reasons length L must be short. But with the FKF formulae υf PCT/FI90/00122, the sample size can be so large that no initialization (or training) may be needed at all. Prior to explaining the method of PCT/FI93/00192, it will be helpful to first understand some prior art of the Kalman Filtering (KF) theory exploited in experimental Numerical Weather Prediction (NWP) systems. As previously, they also make use of equation (1): Measurement Equation: y = H. s + e. ...(linearized regression) where state vector s. describes the state of the atmosphere at time t. Now, s { usually represents all gridpoint values of atmospheric variables e.g. the geopotential heights (actually, their departure values from the actual values estimated by some means) of different pressure levels. The dynamics of the atmosphere is governed by a well-known set of partial differential equations ("primitive" equations). By using e.g. the tangent linear approximation of the NWP model the following expression of equation (2) is obtained for the time evolution of state parameters s t (actually, their departure values from a "trajectory" in the space of state parameters generated with the nonlinear NWP model) at a time step: State Equation: s = A s t . + B u t t + a t ..(the discre t ized 1 l_1 w l dyn-stoch. model) The four-dimensional data assimilation results (s and the NWP forecasts ( s , respectively, are obtained from the Kalman Filter system as follows: s t = s t + K t (y t - H t s t ) (12) S t = A s t-1 + B u t-1 where P t = Cov( s t ) = A Cov(s t l ) A' + Q t ...(prediction accuracy) Q t = Cov(a t ) E a t a; ...(system noise) R. = Cov(e t ) - E e t e ...(measurement noise) and the crucial Updating computations are performed with the following Kalman Recursion: κ t = p t ■ 1 H (H t p t H + R t ) .(Kalman Gain matrix) Cov(s t ) = P t - K t H t P t .(estimation accuracy). The matrix inversion needed here for the computation of the Kalman Gain matrix is overwhelmingly difficult to compute for a real NWP system because the data assimilation system must be be able to digest several million data elements at a time. Dr. T. Gal-Chen reported on this problem in 1988 as follows: "There is hope that the developments of massively parallel supercomputers (e.g., 1000 desktop CRAYs working in tandem) could result in algorithms much closer to optimal..." , see "Report of the Critical Review Panel - Lower Tropospheric Profiling Symposium: Needs and Technologies", Bulletin of the American Meteorological Society, Vol. 71, No. 5, May 1990, page 684. The method of PCT/FI93/00192 exploits the Augmented Model approach from equation (8): As t-1 +Bu t-1 A(s t-r s t- - a t The following two sets of equations are obtained for Updating purposes: ...(optimal estim a tion, by Gauss - Markov) R; 1 y t + P; 1 s t ) (13) or, = s t + K t (y t - H t 2 t ) ...(alternatively) and, Cov(s t ) = E(s t -s t )(s t -s t )' = (14) = { H t R t lH t + p ...(estimation accuracy) where, = A s t-1 + B u t-1 .(NWP "forecasting") P t = Cov( s t ) = A Cov(s t _ j ) A' + Q t (15) but instead of K -1 = P. H (H t P f H + R t> .(Kalman Gain matrix) the FKF method of PCT/FI93/00192 takes K t = Cov < s t> H t R t ~ (16) The Augmented Model approach is superior to the use of the conventional Kalman recursions for a large vector of input data y. because the computation of the Kalman Gain matrix K requires the huge matrix inversion when Cov(s t ) is unknown. Both methods are algebraically and statistically equivalent but certainly not numerically. However, the Augmented Model formulae are still too difficult to be handled numerically. This is, firstly, because state vector s consists a large amount (=m) of gridpoint data for a realistic representation of the atmosphere. Secondly, there are many other state parameters that must be included in the state vector for a realistic NWP system. These are first of all related to systematic (calibration) errors of observing systems as well as to the so-called physical parameterization schemes of small scale atmospheric processes. The calibration problems are overcome in PCT/FI93/00192 by using the method of decoupling states. It is done by performing the following Partitioning: where c typically represents "calibration" parameters at time t b f * values of atmospheric parameters at gridpoint k (k= l,...K) A state transition matrix at time t (submat rices A * ,..., A K , ) B control gain matrix (submatrices B * ,..., B K ,J9 ). Consequently, the following gigantic Regression Analysis problem was faced: The Fast Kalman Filter (FKF) formulae for the recursion step at any time point t were as follows: « - where, for k= l,2,...,K, The data assimilation accuracies were obtained from equation (20) as follows: Cov(s t ) = Cov(b tj l ,...,b t>κ ,c t ) (20) where C k = {X^V^X^} "1 for k= l,2,...,K Kalman Filter (KF) studies have also been reported e.g. by Stephen E. Conn and David F. Parrish (1991): "The Behavior of Forecast Error Covariances for a Kalman Filter in Two Dimensions", Monthly Weather Review of the American Meteorological Society, Vol. 119, pp. 1757-1785. However, the ideal Kalman Filter systems described in all such reports is still out of reach for Four Dimensions (i.e. space and time). A reliable estimation and inversion of the error covariance matrix of the state parameters is required as Dr. Heikki Jarvinen of the European Centre for Medium-range Weather Forecasts (ECMWF) states: "In meteorology, the dimension (=m) of the state parameter vector s t may be 100,000 - 10,000,000. This makes it impossible in practice to exactly handle the error covariance matrix.", see "Meteorological Data Assimilation as a Variational Problem" , Report No. 43 (1995), Department of Meteorology, University of Helsinki, page 10. Dr. Adrian Simmons of ECMWF confirmes that "the basic approach of Kalman Filtering is well established theoretically, but the computational requirement renders a full implementation intractable.", see ECMWF Newsletter Number 69 (Spring 1995), page 12. The Fast Kalman Filtering (FKF) formulas known from PCT/FI90/00122 and PCT/FI93/00192 make use of the assumption that error covariance matrix V t in equations (9) and (13), respectively, is block-diagonal. Please see the FKF formula (19) where these diagonal blocks are written out as: Cov(e t k ) V U= Cov{A k ( t _ 1 -s t . 1 -a bt It is clear especially for the case of adaptive Kalman Filtering (and the 4-dimensional data-assimilation) that the estimates of consecutive state parameter vectors s t -. , s t 2 , s t 3 , ... are cross- and auto-correlated. There exists a need for exploiting the principles of the Fast Kalman Filtering (FKF) method for adaptive Kalman Filtering (AKF) with equal or better computational speed, reliability, accuracy, and cost benefits than other Kalman Filtering methods can do. The invented method for an exact way of handling the error covariances will be disclosed herein. Summary of the Invention These needs are substantially met by provision of the adaptive Fast Kalman Filtering (FKF) method for calibrating/adjusting various parameters of the dynamic system in real-time or in near real-time. Both the measurement and the system errors are whitened and partially orthogonalized as described in this specification. The FKF computations are made as close to the optimal Kalman Filter as needed under the observability and controllability conditions. The estimated error variances and covariances provide a tool for monitoring the filter stability. Best Mode for Carrying out the Invention We rewrite the linearized Measurement (or observation) equation: where e f t now A. repr Aesents "white" noise that correlates with neither e t t- -1, , e t 2 ,... nor s._, , s._ 2 ,... nor a , a. _. , a t 2 ,.... Matrix H is still the same design matrix as before that stemms from the partial derivatives of the physical dependencies between measurements y t and state parameters s. , please see Partitioning (11) on page 3 (the old block-diagonality assumption for matrices A and B is no longer valid). Matrix F y describes how the systematic errors of the measurements depend on the calibration or "calibration type" parameters, vector Cx , that are constants in time or vary only slowly. The columns of matrices F^, F^ j , F^_ 2 ,... represent partial derivatives, wave forms like sinusoids, square waves, "hat" functions, etc. and empirical orthogonal functions (EOF) depending on what is known about physical dependencies, regression and autoregression (AR A.) the systematic errors of the measurements. Elements of estimated vector C t will then determine amplitudes of the "red" noise factors. Let us refer to quite similar Augmented Model for a moving time volume for "whitening" observed "innovations" sequences of measurements, on the bottom of page 4. Similarly, we rewrite the linearized System (or state) equation: s t = (A t 4- dA t ) β + B t u 4- C t 4- a t (22) where a t I now repr A.esents A, "white" noise that correlates with neither e t. , e t-l' e t-2'" * nor s t-l' s t-2'" " nor a t-l' a t-2'"" ^ A Λ ^ Ά is still the same state transition matrix that stemms from the partial derivatives of the physical dependencies between states s and previous states s t , . Matrix F. describes how the systematic errors of the dynamical model (e.g. NWP) depend on the calibration or "calibration type" parameters, vector Cx , that are constants in time or vary only slowly. The columns of matrices F , F? ι , F^_ 2 ,... represent partial derivatives, wave forms like sinusoids, square waves, "hat" functions, etc. and empirical orthogonal functions (EOF) depending on what is known about physical dependencies, regression and autoregression (AR) of the systematic errors of the model. Elements of estimated vector C will then determine amplitudes of the "red" noise factors. Matrix dA tells how systematic state transition errors of the dynamical (NWP) model depend on prevailing (weather) conditions. If they are unknown but vary only slowly an adjustment is done by moving averaging (MA) in conjunction with the FKF method as described next. The impact is obtained from System equation (22) and is rewritten as follows: d t s t .! = = [ s l I (mxm)' s 2 I (mxm)'-' s m I (mxm)] [ da ll' da 21'-' da ml' da 12' -' da mm] = t _ j r t (23) where M . is a matrix composed of m diagonal matrices of size mxm, s, i , s , ... s_ m are the m scalar elements of state vector s. t- ,i, r is the column vector of all the mxm elements of matrix dA . Please note that equation (23) reverses the order of multiplication which now makes it possible to estimate elements of matrix dA as ordinary regression parameters. 13 Consequently, the following gigantic Regression Analysis problem is faced: Augmented Model for a moving time volume: (i.e. for whitening innovations sequences of residuals e t and a for a moving sample of length L): (24) Please note that the matrix equation above has a "nested" Block- Angular structure. There can be three types of different "calibration" parameters. The first type, c., is imbedded in the data of each time step t. Two other types are represented by vector C . The first set of these parameters, i.e. r , is used for correcting gross errors in the state transition matrices. The second set is used for the whitening and the partial ortogonalization of the errors of the measurements and the system (i.e. for block- diagonalization of covariance matrices). The last two sets of parameters have more or less constant values over the long moving time window and make the Kalman filtering process an adaptive one. It should also be noted that matrix M cannot take its full size (mxm) as indicated in equation (23). This is because the observability condition will become unsatisfied as there would too many unknowm quantities. Thus, matrix M must be effectively "compressed" to represent only those elements of matrix A which relate to serious transition errors only. Such transitions are found by e.g. using so-called maximum correlation methods. In fact, sporadic and slowly migrating patterns may develop in the space of state parameter vectors. These are small-scale phenomena, typically, and they cannot be adequately described by the state transition matrices derived from the model equations only. In order to maintain the filter stability, all the estimated elements of matrix dA are kept observable in the moving averaging (MA) of measurements e.g. by monitoring their estimated covariances in equation (20). The Fast Kalman Filter (FKF) formulae for a time window of length L at time point t are then as follows: » .-r{ x ;-; v ! X t-;} "lχ ;-; V t!/ ( t . r G,-A ) * » '= O , I,2, ... , L- I where, for /=0,1,2,...,L-1, r v ^-|ι - χ χ ;.,v !Λ. ( } "1χ ;- v ;!< [cov(e t . ( ) v .-r CovJA t _ ( (s t . -s t _ )-a t .,j y.- ( = A ■A t-/ s t-/-l + B t-/ u t-/-lJ and, i.e. for /=L, R ^t-L = V V t 1 -L V t- L = Cov { A Ar c t-ι>- a cJ It may sometimes be necessary to Shape Filter some of the error terms for the sake of optimality. If this is done then the identity (I) matrices would disappear from the FKF formulas and have to be properly replaced accordingly. The FKF formulas given here and in PCT/FI90/00122 and PCT/FI93/00192 are based on the assumption that error covariance matrices are block- diagonal. Attempts to solve all parameters C t with the conventional Kalman recursions from (4) to (6) doomed to fail due to serious observability and controlability problems as computational restrictions prohibit window length L from being taken long enough. Fortunately, by using the FKF formulas, the time window can be taken so long that an initialization or temporal training sequences of the filter may become completely redundant. Various formulas for fast adaptive Kalman Filtering can derived from the Normal Equation system of the gigantic linearized regression equation (24) by different recursive uses of Frobenius' formula: where H = D - CA _ 1 B. The formulas (20) and (25) as well as any other FKF type of formulas obtained from Frobenius' formula (26) are pursuant to the invented method. For example, there are effective computational methods for inverting symmetric band-diagonal matrices. The error covariance matrices of numerical weather forecasts are typically band-diagonal. We can proceed directly from equation system (8) without merging state parameters s into the observational blocks of the gigantic Regression Analysis problem (18). Their error covariance matrix can then be inverted as one large block and a recursive use of Frobenius' formula leads to FKF formulas similar to formulas (25). All the matrices to be inverted for solution of the gigantic Regression Analysis models are kept small enough by exploiting the reported semi-analytical computational methods. The preferred embodiment of the invention is shown in Fig. 1 and will be described below: A supernavigator based on a notebook PC that performs the functions of a Kalman filtering logic unit (1) through exploiting the generalized Fast Kalman Filtering (FKF) method. The overall receiver concept comprises an integrated sensor, remote sensing, data processing and transmission system (3) of, say, a national atmospheric/oceanic service and, optionally, an off-the-shelf GPS receiver. The database unit (2) running on the notebook PC contains updated information on control (4) and performance aspects of the various subsystems as well as auxiliary information such as geographical maps. Based upon all these inputs, the logic unit (1) provides real-time 3-dimensional visualizations (5) on what is going on by using the FKF recursions for equation system (24) and on what will take place in the nearest future by using the predictions from equations (15). Dependable accuracy information is also provided when the well-known stability conditions of optimal Kalman filtering are be met by the observing system (3). These error variances and covariances are computed by using equations (15) and (20). The centralized data processing system (3) provides estimates of State Transition Matrix A for each time step t. These matrices are then adjusted locally (1) to take into account all observed small-scale transitions that occur in the atmospheric/oceanic environment (see for example Cotton, Thompson & Mielke, 1994: "Real-Time Mesoscale Prediction on Workstations", Bulletin of the American Meteorological Society, Vol. 75, Number 3, March 1994, pp. 349-362). Those skilled in the art will appreciate that many variations could be practiced with respect to the above described invention without departing from the spirit of the invention. Therefore, it should be understood that the scope of the invention should not be considered as limited to the specific embodiment described, except in so far as the claims may specifically include such limitations. References (1) Kalman, R. E. (1960): "A new approach to linear filtering and prediction problems". Trans. ASME J. of Basic Eng. 82:35-45. (2) Lange, A. A. (1982): "Multipath propagation of VLF Omega signals". IEEE PLANS '82 - Position Location and Navigation Symposium Record, December 1982, 302-309. (3) Lange, A. A. (1984): "Integration, calibration and intercomparison of windfinding devices". WMO Instruments and Observing Methods Report No. 15. (4) Lange, A. A. (1988a): "A high-pass filter for optimum calibration of observing systems with applications". Simulation and Optimization of Large Systems, edited by A. J. Osiadacz, Oxford University Press/Clarendon Press, Oxford, 1988, 311-327. (5) Lange, A. A. (1988b): "Determination of the radiosonde biases by using satellite radiance measurements". WMO Instruments and Observing Methods Report No. 33, 201-206. (6) Lange, A. A. (1990): "Apparatus and method for calibrating a sensor system". International Application Published under the Patent Cooperation Treaty (PCT), World Intellectual Property Organization, International Bureau, WO 90/13794, PCT/FI90/00122, 15 November 1990. (7) Lange, A. A. (1993): "Method for Fast Kalman Filtering in large dynamic systems". International Application Published under the Patent Cooperation Treaty (PCT), World Intellectual Property Organization, International Bureau, WO 93/22625, PCT/FI93/00192, 11 November 1993. (8) Lange, A. A. (1994): "A surface-based hybrid upper-air sounding system". WMO Instruments and Observing Methods Report No. 57, 175-177.

Claims: CLAIMS What is claimed is: 1. A method for adjusting model and calibration parameters of a large sensor system accompanied with said model of external events by adaptive Kalman filtering, the sensor output units providing signals in response to said external events and where the number of simultaneously processed sensor output signal values is in excess of 50, the method comprising the steps of: a) providing a data base unit for storing information on: - a plurality of test point sensor output signal values for some of said sensors and a plurality of values for said external events corresponding to said test point sensor output signal values, or simultaneous time series of said output signal values from adjacent sensors for comparison; - said sensor output signal values accompanied with values for said model and calibration parameters and values for said external events corresponding to a situation; and, - controls of said sensors and changes in said external events corresponding to a new situation; b) providing a logic unit for accessing said sensor signal output values with said model and calibration parameters, said logic unit having a two-way communications link to said data base unit, and computing initial values for unknown model and calibration parameters with accuracy estimates by using Lange's High-pass Filter as required; c) providing said sensor output signal values from said sensors, as available, to said logic unit; d) providing information on said controls and changes to said data base unit; e) accessing current values of said model and calibration parameters and elements of a state transition matrix, and computing by using the Fast Kalman Filter (FKF) formulas obtained from Lange's sparse-matrix inversion formula, in said logic unit, updates of said model and calibration parameters, values of said external events and their accuracies corresponding to said new situation; f) controlling stability of said Kalman filtering by monitoring said accuracy estimates, in said logic unit, and by indicating need for new test point data, comparisons or system reconfiguration; g) adjusting those of said model and calibration parameter values for which stable updates are available.

Inventors: LANGE ANTTI AARNE ILMARI, LANGE, ANTTI, AARNE, ILMARI
Applicants: LANGE ANTTI AARNE ILMARI, LANGE, ANTTI, AARNE, ILMARI
Application year: 1996
Main classification: G01D18
IPC codes: G01D18, H03H21