If you wish to contribute or participate in the discussions about articles you are invited to join Navipedia as a registered user

Kalman Filter

From Navipedia

Jump to: navigation, search


FundamentalsFundamentals
Title Kalman Filter
Author(s) J. Sanz Subirana, J.M. Juan Zornoza and M. Hernández-Pajares, Technical University of Catalonia, Spain.
Level Advanced
Year of Publication 2011

The principle of Kalman filtering can be roughly summarised as the weighted least square solution of the linearised observation system augmented with a prediction of the estimate as additional equations. The predicted estimate and the weighted solution are given as follows:


Let \widehat{X}{(n-1)} be the estimate for the (n − 1)-th epoch, thence, a prediction for the next epoch \widehat{X}^{-}{(n)}, is computed according to the model [footnotes 1]:

\begin{array}{l}
\widehat{\mathbf X}^{-}{(n)}={\boldsymbol \Phi} (n-1)\ \widehat{\mathbf X}{(n-1)}\\[0.3cm]
{\mathbf P}_{\widehat{\mathbf X}{(n)}}^{-}={\boldsymbol \Phi} (n-1)\ {\mathbf P}_{\widehat{\mathbf X}{(n-1)}}\ {\boldsymbol \Phi}^T (n-1)+{\mathbf Q}(n-1)
\end{array} \qquad \mbox{(1)}


Where {\boldsymbol \Phi} is named the Transition Matrix and defines the propagation of the vector parameters estimate \widehat{\mathbf X}, and {\mathbf Q} is the Process Noise Matrix. Matrix {\mathbf Q} allows, in particular, to add some additional noise to account for possible miss-modelling due to the simple prediction model used or, what is the same, to an inexact description of the problem in general.


According to the approach of Block-Wise Weighted Least Square the measurements (i.e., the linearised observation equations) are combined with the predicted parameters estimate as follows:

\left[
\begin{array}{c}
{\mathbf Y}(n) \\[0.2cm]
\widehat{\mathbf X}^{-}(n)
\end{array}
\right] =\left[
\begin{array}{c}
{{\mathbf G}(n)}\\[0.2cm]
{\mathbf I}
\end{array} \right] {\mathbf X}(n)\ \ ;\qquad {\mathbf P}=\left[
\begin{array}{cc}
{\mathbf R}(n) & {\mathbf 0} \\[0.2cm]
{\mathbf 0} & {\mathbf P}_{\widehat{X}(n)}^{-}
\end{array}
\right] \qquad \mbox{(2)}


which is solved as (see Block-Wise Weighted Least Square)

\left[
\begin{array}{c}
{\mathbf Y_1} \\
{\mathbf Y_2}
\end{array}
\right] =
\left[
\begin{array}{c}
{\mathbf G_1}\\[0.2cm]
{\mathbf G_2}
\end{array}
\right] {\mathbf X} ;\qquad
{\mathbf R}=\left[
\begin{array}{cc}
{\mathbf R_1} & {\mathbf 0}  \\[0.2cm]
{\mathbf 0} & {\mathbf R_2}
\end{array}
\right] \qquad \mbox{(3)}


being the weighted least squares estimate:

\begin{array}{l}
{\mathbf P}_{\widehat{X}(n)}=\left[ {\mathbf G}^T(n)\;{\mathbf R}^{-1}(n)\;{\mathbf G}(n)+\left( P_{\widehat{\mathbf X}(n)}^{-}\right) ^{-1}\right] ^{-1}\\[0.3cm]
\widehat{\mathbf X}(n)={\mathbf P}_{\widehat{X}(n)} \cdot \left[{\mathbf G}^T(n) \; {\mathbf R}^{-1}(n)\; {\mathbf Y}(n)+\left( {\mathbf P}_{\widehat{\mathbf X}(n)}^{-}\right) ^{-1}\widehat{\mathbf X}^{-}(n)\right]\\
\end{array} \qquad \mbox{(4)}


The algorithm can be summarised in the following scheme [footnotes 2]:
Figure 1: Kalman filter diagram. Notation: Rk = R(k), Pk = P_{\widehat{X}(k)}.


Using the following relations [1],

\begin{array}{l}
(ACB+D)^{-1}=D^{-1}-D^{-1}AMBD^{-1}\\[0.3cm]
M=(BD^{-1}A + C^{-1})^{-1}
\end{array} \qquad \mbox{(5)}


it can be shown that the previous formulation is algebraically equivalent to the classical formulation of the Kalman filter given by the following figure 2:
Figure 2: Classical formulation of Kalman filter


Contents

Some elemental examples of matrix definitions Φ and {\mathbf Q}

The determination of the state transition matrix {\boldsymbol \Phi} and Process Noise matrix {\mathbf Q} is usually based on physical models describing the estimation problem. For instance, for satellite tracking or orbit determination, they are derived from the orbital motion equations. Elemental formulations, i.e., for the SPS and PPP navigation, are covered by the examples given as follows:

Static positioning

The state vector to determine is given by \widehat{\mathbf X}=(dx,dy,dz,\delta t) where the coordinates [footnotes 3] are considered as constants (because the receiver is kept fixed) and the clock offset can be modelled as a white noise with zero mean. Under these conditions matrix Φ and {\mathbf Q} are given by:


{\mathbf \Phi} (n)=\left[
\begin{array}{cccc}
1 &  &  &  \\
& 1  &  & \\
&  & 1 &  \\
&  &  & 0  \\
\end{array}
\right] \qquad
{\mathbf Q}(n)=\left[
\begin{array}{cccc}
0 &  &  &  \\
& 0  &  & \\
&  & 0 &  \\
&  &  & \sigma _{\delta t}^2 \\
\end{array}
\right] \qquad \mbox{(6)}

being σdt the uncertainty in the clock prediction model (for instance \sigma _{dt}=1\,ms=300\,km for a unknown clock --i.e. 1 leap-millisecond--). Notice that the prediction model for the coordinates is exact and, thence, the associated elements in matrix {\mathbf Q} are null.

Kinematic positioning


{\mathbf \Phi} (n)=\left[
\begin{array}{cccc}
0 &  &  &  \\
& 0 &  & \\
&  & 0 &  \\
&  &  & 0 \\
\end{array}
\right] \qquad
{\mathbf Q}(n)=\left[
\begin{array}{cccc}
\sigma_{dx}^2  &  &  &  \\
& \sigma_{dy}^2&  & \\
&  & \sigma_{dz}^2 & \\
&  &  & \sigma _{\delta t}^2 \\
\end{array}
\right] \qquad \mbox{(7)}



{\mathbf \Phi} (n)=\left[
\begin{array}{cccc}
1 &  &  & \\
& 1  &  & \\
&  & 1 &  \\
&  &  & 0 \\
\end{array}
\right] \qquad
{\mathbf Q}(n)=\left[
\begin{array}{cccc}
Q^{\prime}_{dx} \Delta t &  &  &  \\
& Q^{\prime}_{dy}  \Delta t &  & \\
&  & Q^{\prime}_{dz}  \Delta t & \\
&  &  & \sigma _{\delta t}^2 \\
\end{array}
\right] \qquad \mbox{(8)}

Notes

  1. ^ It is a first order model of Gauss-Markov. The dynamical character is established through the state transition matrix {\boldsymbol \Phi} and the noise matrix of the process {\mathbf Q}.
  2. ^ If one desires to go deeply into the theme, the book [Bierman, 1976] is recommended. Special chapters relating to U-D covariance filter and SRIF.
  3. ^ We are referring to deviations from nominal values (x0,y0,z0), that is what it is estimated from the navigation equations.

References

  1. ^ [Bierman, 1976] Bierman, G., 1976. Factorization Methods for Discrete Sequential estimation. Academic Press, New York, New York, USA.
Personal tools
Namespaces
Variants
Actions
Navigation
Work in progress
Portals
Information
Toolbox
Print/export