State Estimation and Bayesian Filters

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 $\mathbf{x}_t$ evolves over time:

\begin{displaymath}
\dot{\mathbf{x}}_t = f(t, \mathbf{x}_t, \mathbf{u}_t, \mathbf{w}_t)
\end{displaymath} (3.1)

where $\mathbf{u}_t$ represents any known inputs to the system, and $\mathbf{w}_t$ is a random variable representing process noise, that is, the randomness governing its evolution. Similarly, state observation is also affected by noise, here called observation noise. In this case too, a function can be defined to model the observation $\mathbf{z}_t$ as
\begin{displaymath}
\mathbf{z}_t = h (t, \mathbf{x}_t, \mathbf{v}_t )
\end{displaymath} (3.2)

where $\mathbf{v}_t$ is observation noise and the function depends only on the current state.

This formalism is described in the continuous-time domain. In practical applications, signals are sampled at discrete times $k$, so a discrete-time version is normally used:

\begin{displaymath}
\begin{array}{l}
x_{k+1} = f_k(x_k, u_k, w_k) \\
z_k = h_k(x_k, v_k) \\
\end{array}\end{displaymath} (3.3)

where $w_k$ and $v_k$ can be viewed as white-noise sequences with known statistics.

Figure 3.1: Example of the evolution and observation of a Markov system.
Image fig_markov

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 $\mathbf{x}_k \in \mathbb{R}^n$ at discrete time $k$, given an indirect observation of the system, $\mathbf{z}_k \in \mathbb{R}^{m}$.

Filtering techniques provide both the best estimate of the unknown state $\mathbf{x}_k $ and the multivariate probability distribution $p(\mathbf{x}_k)$ representing the knowledge of that state.

Given an observation of the system, we can define the probability density of $\mathbf{x}_k $ a posteriori to observing the event $\mathbf{z}_{k}$, reflecting the additional information provided by that observation:

\begin{displaymath}
p^{+}(\mathbf{x}_k) = p(\mathbf{x}_k \vert \mathbf{z}_k)
\end{displaymath} (3.4)

where, as a conditional probability, $p(\mathbf{x}_k \vert \mathbf{z}_k)$ denotes the probability that the hidden state is $\mathbf{x}_k $ given the observation $\mathbf{z}_k$. The “function” $p(\mathbf{x}_k \vert \mathbf{z}_k)$ represents the state measurement model (measurement model). In the literature, the posterior distribution $p^{+}(\mathbf{x}_k)$ is also called the belief.

Applying Bayes' theorem to Equation (3.4) gives

\begin{displaymath}
p(\mathbf{x}_k \vert \mathbf{z}_k) = c_k p(\mathbf{z}_k \vert \mathbf{x}_k) p(\mathbf{x}_{k})
\end{displaymath} (3.5)

where $c_k$ is a normalization factor such that $\int p(\mathbf{x}_k \vert \mathbf{z}_k)=1$. Knowledge of $p(\mathbf{z}_k \vert \mathbf{x}_k)$ is essential: it represents the probability that the observation is precisely the quantity $\mathbf{z}_k$ observed, given the possible state $\mathbf{x}_k $. The use of Bayes' theorem to estimate the state given an observation is why this class of filters is called Bayesian.

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 $k-1$, namely $p(x_k \vert x_{1:k-1}) = p(x_k \vert x_{k-1})$.

The prior can therefore be predicted using the Chapman–Kolmogorov equation:

\begin{displaymath}
p^{-}(\mathbf{x}_k) = \int p(\mathbf{x}_k \vert \mathbf{x}_{k-1}, \mathbf{u}_{k}) p(\mathbf{x}_{k-1}) d\mathbf{x}_{k-1}
\end{displaymath} (3.6)

where $p(\mathbf{x}_k \vert \mathbf{x}_{k-1}, \mathbf{u}_{k})$ represents the system dynamics (dynamic model) and $\mathbf{u}_{k}$ represents any inputs that influence the system's evolution and are known exactly.

Given the prior state estimate and the observation $z_k$, Equation (3.4) can be written as the state update equation

\begin{displaymath}
p^{+}(\mathbf{x}_k) = c_k p(\mathbf{z}_k \vert \mathbf{x}_k) p^{-}(\mathbf{x}_k)
\end{displaymath} (3.7)

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

\begin{displaymath}
\begin{array}{l}
p(\mathbf{x}_k \vert \mathbf{z}_{1:k} ) = ...
...mathbf{x}_k \vert \mathbf{z}_{1:k} ) d \mathbf{x}_k
\end{array}\end{displaymath} (3.8)

For simplicity and to reduce computational cost, normally only the latest observation is evaluated. However, in some cases (for example, particle filters), information from the entire past history can be incorporated into the equations fairly easily.

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).



Subsections
Paolo medici
2026-10-19