Extended Kalman Filter
Topics: State Estimation
Introduction
The Extended Kalman Filter (EKF) is one of the nonlinear versions of the Kalman Filter. It can handle nonlinear state and measurement equations. It works by linearizing the nonlinear model around the current best guess using Jacobians.
Algorithm
A nonlinear model is represented by the following equations:
where and are nonlinear functions. They don't have to be both nonlinear; one of them can be linear.
Similarly to the linear Kalman Filter, the EKF includes a prediction phase and an update phase. The equations are similar except that the state transition matrix and the observation matrix of the linear model are changed to be the Jacobians and of and of the nonlinear model.
The detailed EKF algorithm is presented below. The - superscript is used for predicted values and the + superscript is used for estimated values.
Jacobians
The Jacobians of the nonlinear equations need to be computed at every step:
I. Prediction
- Predict the state using the state equation, previous estimate, and the input
- Calculate the Jacobian matrix
- Predict the error covariance
- Predict the system output using the output equation
II. Update
- Calculate the Jacobian matrix
- Calculate the Kalman gain
- Correct the state prediction based on the output error to get the new estimate
- Update the error covariance matrix
References
Backlinks
Notes that reference this page.
Connections
Direct relationships to this note.