This chapter discusses statistical filtering: a class of problems in which data from one or more noisy sensors are available. These data represent observations of a system's dynamic state, which is not directly observable but must be estimated. The process of finding the best estimate of a system's internal state is called “filtering” because it filters out the various noise components. A system's evolution (the evolution of its internal state) must follow known physical laws, which are affected by a noise component (process noise). Knowledge of the equations governing state evolution makes it possible to provide a better estimate of the internal state.
A physical process can be represented in state space (State Space Model) by a function describing how the state evolves over time:
| (3.1) |
| (3.2) |
This formalism is described in the continuous-time domain.
In practical applications, signals are sampled at discrete times , so a discrete-time version is normally used:
In systems satisfying Equations (3.3), state evolution depends only on the previous state, while observation depends only on the current state (Figure 3.1). A process satisfying these assumptions is called Markovian: the system's evolution and observation depend only on the current state, not on past states. Information about the state is always obtained indirectly through observation (Hidden Markov Model).
Many approaches for estimating an unknown system state from a set of measurements do not account for the noisy nature of these observations. For example, an algorithm could perform nonlinear regression on the observations to estimate all the states in the problem, by solving an optimization problem with a large number of unknowns.
Unlike regression methods, filters aim to provide the best estimate of the state variables as observations become available. If the entire sequence of observations is known, the estimate can be computed in batch mode by determining all the system states simultaneously. In this case, each observation contributes to the estimates at all time instants compatible with the model, allowing past states to be corrected as well. Filters, by contrast, recursively estimate the current state using a compact representation of the probability distribution, without explicitly revisiting the entire history of the system.
Bayesian filters aim to estimate the state of the random variable
at discrete time
, given an indirect observation of the system,
.
Filtering techniques provide both the best estimate of the unknown state and the multivariate probability distribution
representing the knowledge of that state.
Given an observation of the system, we can define the probability density of a posteriori to observing the event
, reflecting the additional information provided by that observation:
Applying Bayes' theorem to Equation (3.4) gives
| (3.5) |
In addition to the posterior probability distribution, further information can be used to improve the estimate: prior knowledge, available before the observation, based on the assumption that the state does not evolve in a completely unpredictable way, but can instead evolve only in certain ways with certain probabilities. The possible ways in which the system can evolve depend only on its current state.
The Markov process assumption implies that the only past state affecting the system's evolution is the state at time , namely
.
The prior can therefore be predicted using the ChapmanāKolmogorov equation:
| (3.6) |
Given the prior state estimate and the observation , Equation (3.4) can be written as the state update equation
The state is estimated by alternating between a prediction phase (prior estimate) and an observation phase (posterior estimate). This iterative process is called recursive Bayesian estimation (Recursive Bayesian Estimation).
The techniques described in this section use only the latest available observation to estimate the state. Formally, the discussion can be extended to use all observations to obtain a more accurate state estimate.
In this case, the filtering and prediction equations become
| (3.8) |
Since the variables being estimated are continuous, Bayesian theory cannot be applied “directly.” Several approaches have therefore been proposed in the literature to make estimation computationally and memory efficient.
The performance of each filter depends on whether the problem is linear or nonlinear and whether the noise probability distribution is Gaussian.
The Kalman filter (Section 3.2) is optimal when the problem is linear and the noise distribution is Gaussian. The Extended Kalman and Sigma-Point Kalman filters, in Sections 3.4 and 3.5, respectively, are suboptimal for nonlinear problems with Gaussian noise distributions (or distributions close to Gaussian). Finally, particle filters are a suboptimal solution for nonlinear problems with non-Gaussian noise distributions.
Grid-based filters (Section 3.1) and particle filters (Section 3.8) use a discrete representation of the state, whereas Kalman, Extended Kalman, and Sigma-Point Kalman filters use a continuous representation.
Kalman, Extended Kalman, and Sigma-Point Kalman filters model the uncertainty distributions (of the state, process, and observation) as single Gaussians. Multimodal extensions such as Multi-hypothesis tracking (MHT) allow Kalman filters to be applied to distributions represented as Gaussian mixtures, whereas particle and grid-based filters are inherently multimodal.
An excellent survey of Bayesian filtering is (Che03).