ArticleslgStudy

engineering

Extended Kalman filter

Extended Kalman filter is a engineering topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Extended Kalman filter rather than just read about it. In short: In estimation theory, the extended Kalman filter (EKF) is the nonlinear version of the Kalman filter which linearizes about an estimate of the current mean and covariance. In the case of well defined transition models, the EKF has been considered the de facto standard in the theory of nonlinear state estimation, navigation systems and GPS.

Key takeaways

  • Extended Kalman filter belongs to engineering; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Extended Kalman filter to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Extended Kalman filter from memory before moving on to harder problems.

Reference excerpt

In estimation theory, the extended Kalman filter (EKF) is the nonlinear version of the Kalman filter which linearizes about an estimate of the current mean and covariance. In the case of well defined transition models, the EKF has been considered the de facto standard in the theory of nonlinear state estimation, navigation systems and GPS.

History The papers establishing the mathematical foundations of Kalman type filters were published between 1959 and 1961. Named after the Hungarian-American mathematician, engineer, and inventor Rudolf E. Kálmán, the Kalman filter is the optimal linear estimator for linear system models with additive independent white noise in both the transition and the measurement systems. Unfortunately, in engineering, most systems are nonlinear, so attempts were made to apply this filtering method to nonlinear systems; most of this work was done at NASA Ames. The EKF adapted techniques from calculus, namely multivariate Taylor series expansions, to linearize a model about a working point. If the system model (as described below) is not well known or is inaccurate, then Monte Carlo methods, especially particle filters, are employed for estimation. Monte Carlo techniques predate the existence of the EKF but are more computationally expensive for any moderately dimensioned state-space.

Formulation In the extended Kalman filter, the state transition and observation models don't need to be linear functions of the state but may instead be differentiable functions.

𝒙k=f(𝒙k−1,𝒖k−1)+𝒘k−1 𝒛k=h(𝒙k)+𝒗k Here wk and vk are the process and observation noises which are both assumed to be zero mean multivariate Gaussian noises with covariance Qk and Rk respectively. uk is the control vector. The function f can be used to compute the predicted state from the previous estimate and similarly the function h can be used to compute the predicted measurement from the predicted state. However, f and h cannot be applied to the covariance directly. Instead a matrix of partial derivatives (the Jacobian) is computed. At each time step, 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. See the Kalman Filter article for notational remarks.

Discrete-time predict and update equations Notation 𝐱̂n∣m represents the estimate of 𝐱 at time n given observations up to and including at time m ≤ n.

Predict

Update

where the state transition and observation matrices are defined to be the following Jacobians

𝑭k=∂f∂𝒙|𝒙̂k−1|k−1,𝒖k−1 𝑯k=∂h∂𝒙|𝒙̂k|k−1

Disadvantages and alternatives Unlike its linear counterpart, the extended Kalman filter in general is not an optimal estimator (it is optimal if the measurement and the state transition model are both linear, as in that case the extended Kalman filter is identical to the regular one). In addition, if the initial estimate of the state is wrong, or if the process is modeled incorrectly, the filter may quickly diverge, owing to its linearization. Another problem with the extended Kalman filter is that the estimated covariance matrix tends to underestimate the true covariance matrix and therefore risks becoming inconsistent in the statistical sense without the addition of "stabilising noise". More generally one should consider the infinite dimensional nature of the nonlinear filtering problem and the inadequacy of a simple mean and variance-covariance estimator to fully represent the optimal filter. It should also be noted that the extended Kalman filter may give poor performances even for very simple one-dimensional systems such as the cubic sensor, where the optimal filter can be bimodal and as such cannot be effectively represented by a single mean and variance estimator, having a rich structure, or similarly for the quadratic sensor. In such cases the projection filters have been studied as an alternative, having been applied also to navigation. Other general nonlinear filtering methods like full particle filters may be considered in this case. Having stated this, the extended Kalman filter can give reasonable performance, and is arguably the de facto standard in navigation systems and GPS.

Generalizations

Continuous-time extended Kalman filter Model

𝐱˙(t)=f(𝐱(t),𝐮(t))𝐳(t)=h(𝐱(t))(t) Initialize

𝐱̂(t0)=E[𝐱(t0)], 𝐏(t0)=Var[𝐱(t0)] Predict-Update

𝐱̂˙(t)=f(𝐱̂(t),𝐮(t))+𝐊(t)(𝐳(t)−h(𝐱̂(t)))𝐏˙(t)=𝐅(t)𝐏(t)+𝐏(t)𝐅(t)T−𝐊(t)𝐇(t)𝐏(t)+𝐐(t)𝐊(t)=𝐏(t)𝐇(t)T𝐒(t)−1𝐅(t)=∂f∂𝐱|𝐱̂(t),𝐮(t)𝐇(t)=∂h∂𝐱|𝐱̂(t) Unlike the discrete-time extended Kalman filter, the prediction and update steps are coupled in the continuous-time extended Kalman filter.

Discrete-time measurements Most physical systems are represented as continuous-time models while discrete-time measurements are frequently taken for state estimation via a digital processor. Therefore, the system model and measurement model are given by

𝐱˙(t)=f(𝐱(t),𝐮(t))+𝐰(t)𝐰(t)∼𝒩(𝟎,𝐐(t))𝐳k=h(𝐱k)+𝐯k𝐯k∼𝒩(𝟎,𝐑k) where 𝐱k=𝐱(tk). Initialize

𝐱̂0|0=E[𝐱(t0)],𝐏0|0=E[(𝐱(t0)−𝐱̂(t0))(𝐱(t0)−𝐱̂(t0))T] Predict

solve {𝐱̂˙(t)=f(𝐱̂(t),𝐮(t))𝐏˙(t)=𝐅(t)𝐏(t)+𝐏(t)𝐅(t)T+𝐐(t)with {𝐱̂(tk−1)=𝐱̂k−1|k−1𝐏(tk−1)=𝐏k−1|k−1⇒{𝐱̂k|k−1=𝐱̂(tk)𝐏k|k−1=𝐏(tk) where

𝐅(t)=∂f∂𝐱|𝐱̂(t),𝐮(t) Update

𝐊k=𝐏k|k−1𝐇kT(𝐇k𝐏k|k−1𝐇kT+𝐑k)−1 𝐱̂k|k=𝐱̂k|k−1+𝐊k(𝐳k−h(𝐱̂k|k−1)) 𝐏k|k=(𝐈−𝐊k𝐇k)𝐏k|k−1 where

𝐇k=∂h∂𝐱|𝐱̂k|k−1 The update equations are identical to those of discrete-time extended Kalman filter.

Higher-order extended Kalman filters The above recursion is a first-order extended Kalman filter (EKF). Higher order EKFs may be obtained by retaining more terms of the Taylor series expansions. For example, second and third order EKFs have been described. However, higher order EKFs tend to only provide performance benefits when the measurement noise is small.

Non-additive noise formulation and equations The typical formulation of the EKF involves the assumption of additive process and measurement noise. This assumption, however, is not necessary for EKF implementation. Instead, consider a more general system of the form:

𝒙k=f(𝒙k−1,𝒖k−1,𝒘k−1) 𝒛k=h(𝒙k,𝒗k) Here wk and vk are the process and observation noises which are both assumed to be zero mean multivariate Gaussian noises with covariance Qk and Rk respectively. Then the covariance prediction and innovation equations become

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Extended Kalman filter

Start with the simplest possible case. Write down what Extended Kalman filter claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In engineering, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Extended Kalman filter before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Extended Kalman filter ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Extended Kalman filter

In research
Extended Kalman filter appears in engineering research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Extended Kalman filter in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Extended Kalman filter is common in secondary-school and first-year university syllabi. It links to neighbouring topics Nonlinear filters, Robot control, Signal estimation, so understanding it makes those chapters shorter.
In everyday life
Look for Extended Kalman filter outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Extended Kalman filter” →

How to study Extended Kalman filter in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Extended Kalman filter means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Extended Kalman filter out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Extended Kalman filter in simple terms?

In estimation theory, the extended Kalman filter (EKF) is the nonlinear version of the Kalman filter which linearizes about an estimate of the current mean and covariance. In the case of well defined transition models, the EKF has been considered the de facto standard in the theory of nonlinear sta…

Why does Extended Kalman filter matter?

Because it connects several engineering ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Extended Kalman filter?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Extended Kalman filter.

Tags

  • Nonlinear filters
  • Robot control
  • Signal estimation

Keep exploring