|
Example applications
An example application would be providing accurate, continuously updated information about the position and velocity of an object given only a sequence of observations about its position, each of which includes some error. For example, in a radar application where one is interested in tracking a target, information about the location, speed, and acceleration of the target is measured at each time instant with a great deal of corruption by noise. The Kalman filter exploits the trusted model of the dynamics of the target, which describes the kind of movement possible by the target, to remove the effects of the noise and get a good estimate of the location of the target at the present time (filtering), at a future time (prediction), or at a time in the past (interpolation or smoothing).Alternatively, consider an old slow car that is known to go from 0 to 60 miles per hour (mph) in no less than 10 seconds. The speedometer on this car however shows very noisy measurements that vary wildly within a 40 mph window around the actual speed of the car. From stop – which is measured with certainty because the wheels are not turning – the driver of the car pushes its gas pedal as far as possible. Five seconds later, the speedometer reads 70 mph. The driver concludes that the slow car cannot be traveling that quickly and uses information about the known speedometer noise to conclude that the car is likely traveling at 30 mph instead. Similarly, a Kalman filter uses information about noise and system dynamics to reduce uncertainty from noisy measurements.
Underlying dynamic system model
Kalman filters are based on linear dynamical systems discretized in the time domain. They are modelled on a Markov chain built on linear operators perturbed by Gaussian noise. The state of the system is represented as a vector of real numbers. At each discrete time increment, a linear operator is applied to the state to generate the new state, with some noise mixed in, and optionally some information from the controls on the system if they are known. Then, another linear operator mixed with more noise generates the visible outputs from the hidden state. The Kalman filter may be regarded as analogous to the hidden Markov model, with the key difference that the hidden state variables take values in a continuous space (as opposed to a discrete state space as in the hidden Markov model). Additionally, the hidden Markov model can represent an arbitrary distribution for the next value of the state variables, in contrast to the Gaussian noise model that is used for the Kalman filter. There is a strong duality between the equations of the Kalman Filter and those of the hidden Markov model. A review of this and other models is given in Roweis and Ghahramani (1999).[1]In order to use the Kalman filter to estimate the internal state of a process given only a sequence of noisy observations, one must model the process in accordance with the framework of the Kalman filter. This means specifying the following matrices: Fk, the state-transition model; Hk, the observation model; Qk, the covariance of the process noise; Rk, the observation noise; and sometimes Bk, the control-input model for each time-step, k, as described below.
The Kalman filter model assumes the true state at time k is evolved from the state at (k − 1) according to
- Fk is the state transition model which is applied to the previous state xk−1;
- Bk is the control-input model which is applied to the control vector uk;
- wk is the process noise which is assumed to be drawn from a zero mean multivariate normal distribution with covariance Qk.
Many real dynamical systems do not exactly fit this model. In fact, unmodelled dynamics can seriously degrade the filter performance, even when it was supposed to work with unknown stochastic signals as inputs. The reason for this is that the effect of unmodelled dynamics depends on the input, and, therefore, can bring the estimation algorithm to unstability (to diverge). On the other hand, independent white noise signals will not make the algorithm diverge. The problem of separating between measurement noise and unmodelled dynamics is a difficult one and is treated in control theory under the framework of robust control.
The Kalman filter
The Kalman filter is a recursive estimator. This means that only the estimated state from the previous time step and the current measurement are needed to compute the estimate for the current state. In contrast to batch estimation techniques, no history of observations and/or estimates is required. In what follows, the notation represents the estimate of at time n given observations up to, and including time m.The state of the filter is represented by two variables:
- , the a posteriori state estimate at time k given observations up to and including at time k;
- , the a posteriori error covariance matrix (a measure of the estimated accuracy of the state estimate).
Predict
Predicted (a priori) state | |
Predicted (a priori) estimate covariance | |
Update
Innovation or measurement residual | |
Innovation (or residual) covariance | |
Optimal Kalman gain | |
Updated (a posteriori) state estimate | |
Updated (a posteriori) estimate covariance |
Invariants
If the model is accurate, and the values for and accurately reflect the distribution of the initial state values, then the following invariants are preserved: all estimates have mean error zeroExamples
Consider a truck on perfectly frictionless, infinitely long straight rails. Initially the truck is stationary at position 0, but it is buffeted this way and that by random acceleration. We measure the position of the truck every Δt seconds, but these measurements are imprecise; we want to maintain a model of where the truck is and what its velocity is. We show here how we derive the model from which we create our Kalman filter.There are no controls on the truck, so we ignore Bk and uk. Since F, H, R and Q are constant, their time indices are dropped.
The position and velocity of the truck is described by the linear state space
We assume that between the (k − 1)th and kth timestep the truck undergoes a constant acceleration of ak that is normally distributed, with mean 0 and standard deviation σa. From Newton's laws of motion we conclude that
- (since σa is a scalar).
Derivations
Deriving the posterior estimate covariance matrix
Starting with our invariant on the error covariance Pk|k as aboveKalman gain derivation
The Kalman filter is a minimum mean-square error estimator. The error in the posterior state estimation isSimplification of the posterior error covariance formula
The formula used to calculate the posterior error covariance can be simplified when the Kalman gain equals the optimal value derived above. Multiplying both sides of our Kalman gain formula on the right by SkKkT, it follows thatRelationship to recursive Bayesian estimation
The true state is assumed to be an unobserved Markov process, and the measurements are the observed states of a hidden Markov model.Because of the Markov assumption, the true state is conditionally independent of all earlier states given the immediately previous state.
This leads to the predict and update steps of the Kalman filter written probabilistically. The probability distribution associated with the predicted state is the sum (integral) of the products of the probability distribution associated with the transition from the (k - 1)-th timestep to the k-th and the probability distribution associated with the previous state, over all possible .
The remaining probability density functions are
Information filter
In the information filter, or inverse covariance filter, the estimated covariance and estimated state are replaced by the information matrix and information vector respectively. These are defined as:Fixed-lag smoother
The optimal fixed-lag smoother provides the optimal estimate of for a given fixed-lag N using the measurements from to . It can be derived using the previous theory via an augmented state, and the main equation of the filter is the following:where:
1) is estimated via a standard Kalman filter;
2) is the innovation produced considering the estimate of the standard Kalman filter;
3) the various with are new variables, i.e. they do not appear in the standard Kalman filter;
4) the gains are computed via the following scheme:
and
where P and K are the prediction error covariance and the gains of the standard Kalman filter.
Note that if we define the estimation error covariance
then we have that the improvement on the estimation of is given by:
Fixed-interval filters
The optimal fixed-interval smoother provides the optimal estimate of () using the measurements from a fixed interval to . This is also called Kalman Smoothing.There exists an efficient two-pass algorithm, Rauch-Tung-Striebel Algorithm, for achieving this. The main equations of the smoother is the following (assuming ):
- forward pass: regular Kalman filter algorithm
- backward pass: , where
Non-linear filters
The basic Kalman filter is limited to a linear assumption. However, most non-trivial systems are non-linear. The non-linearity can be associated either with the process model or with the observation model or with both.Extended Kalman filter
Main article: Extended Kalman filter
In the extended Kalman filter, (EKF) the state transition and observation models need not be linear functions of the state but may instead be (differentiable) functions.At each timestep the Jacobian is evaluated with current predicted states. These matrices can be used in the Kalman filter equations. This process essentially linearizes the non-linear function around the current estimate.
Unscented Kalman filter
When the state transition and observation models – that is, the predict and update functions f and h (see above) – are highly non-linear, the extended Kalman filter can give particularly poor performance.[2] This is because the mean and covariance are propagated through linearization of the underlying non-linear model. The unscented Kalman filter (UKF) [2] uses a deterministic sampling technique known as the unscented transform to pick a minimal set of sample points (called sigma points) around the mean. These sigma points are then propagated through the non-linear functions, from which the mean and covariance of the estimate are then recovered. The result is a filter which more accurately captures the true mean and covariance. (This can be verified using Monte Carlo sampling or through a Taylor series expansion of the posterior statistics.) In addition, this technique removes the requirement to explicitly calculate Jacobians, which for complex functions can be a difficult task in itself (i.e., requiring complicated derivatives if done analytically or being computationally costly if done numerically).Predict
As with the EKF, the UKF prediction can be used independently from the UKF update, in combination with a linear (or indeed EKF) update, or vice versa.
The estimated state and covariance are augmented with the mean and covariance of the process noise.
-
.
The sigma points are propagated through the transition function f.
Update
The predicted state and covariance are augmented as before, except now with the mean and covariance of the measurement noise.
Kalman–Bucy filter
The Kalman–Bucy filter is a continuous time version of the Kalman filter.[3][4]It is based on the state space model
The filter consists of two differential equations, one for the state estimate and one for the covariance:
The distinction between the prediction and update steps of discrete-time Kalman filtering does not exist in continuous time.
The second differential equation, for the covariance, is an example of a Riccati equation.
Naming and historical development
The filter is named after Rudolf E. Kalman, though Thorvald Nicolai Thiele[6][7] and Peter Swerling developed a similar algorithm earlier. Stanley F. Schmidt is generally credited with developing the first implementation of a Kalman filter. It was during a visit of Kalman to the NASA Ames Research Center that he saw the applicability of his ideas to the problem of trajectory estimation for the Apollo program, leading to its incorporation in the Apollo navigation computer. This Kalman filter was first described and partially developed in technical papers by Swerling (1958), Kalman (1960) and Kalman and Bucy (1961).Kalman filters have been vital in the implemention of the navigation systems of U.S. Navy nuclear ballistic missile submarines; and in the guidance and navigation sustems of cruise missiles such as the U.S. Navy's Tomahawk missile; the U.S. Air Force's Air Launched Cruise Missile; It is also used in the guidance and navigation systems of the NASA Space Shuttle and the attitude control and navigation systems of the International Space Station.
This digital filter is sometimes called the Stratonovich–Kalman–Bucy filter because it is a special case of a more general, non-linear filter developed somewhat earlier by the Soviet mathematician Ruslan L. Stratonovich.[8][9] In fact, some of the equations of the special case linear filter appeared in these papers by Stratonovich that were published before summer 1960, when Kalman met with Stratonovich during a conference in Moscow.
In control theory, the Kalman filter is most commonly referred to as linear quadratic estimation (LQE).
A wide variety of Kalman filters have now been developed, from Kalman's original formulation, now called the simple Kalman filter, the Kalman-Bucy filter, Schmidt's extended filter, the information filter, and a variety of square-root filters that were developed by Bierman, Thornton and many others. Perhaps the most commonly used type of very simple Kalman filter is the phase-locked loop, which is now ubiquitous in radios, especially frequency modulation (FM) radios, television sets, satellite communications receivers, outer space communications systems, and nearly any other electronic communications equipment.
Applications
- Attitude and Heading Reference Systems
- Autopilot
- Battery state of charge (SoC) estimation [1][2]
- Brain-computer interface
- Chaotic signals
- Dynamic positioning
- Economics, in particular macroeconomics, time series, and econometrics
- Inertial guidance system
- Radar tracker
- Satellite navigation systems
- Simultaneous localization and mapping
- Speech enhancement
- Weather forecasting
No comments:
Post a Comment