- Introduced by
- Simon Julier
- Year
- 1997
- Type
- algorithm
- Family
- Nonlinear Estimation
What does it do?
The Unscented Kalman Filter (UKF) is a recursive nonlinear state estimator that avoids the explicit Jacobian computations required by the Extended Kalman Filter (EKF).
It is built on the unscented transform, introduced by Julier and Uhlmann in 1997, which propagates a mean and covariance through a nonlinear function using a deterministically chosen set of sample points (sigma points). The complete filter algorithm was presented by Wan and Van der Merwe in 2000.
The intuition behind the method
The UKF replaces the linearization used by the EKF with a sampling approach. Rather than computing Jacobians, it selects a small set of deterministic sigma points around the current state estimate, passes each point through the nonlinear function, and recovers the mean and covariance of the transformed points. Because the nonlinear function is evaluated at several points rather than approximated by its gradient at one point, the mean and covariance of the transformed distribution are captured more faithfully. For Gaussian inputs, the transform captures the transformed mean and covariance to a higher Taylor order than first-order EKF linearization does. This is a statement about the accuracy of the moments, not a general guarantee of accuracy for every nonlinear system.
History
Julier and Uhlmann introduced the unscented transform in 1997 as a method for propagating means and covariances through nonlinear functions. Wan and Van der Merwe presented the full unscented Kalman filter algorithm in 2000. Sarkka's 2013 book Bayesian Filtering and Smoothing treats non-linear Kalman filters and particle filters within a unified Bayesian framework.
When to use it
Choose the UKF when the system or measurement model is strongly nonlinear, the linearization used by the EKF is a poor approximation, and the state is low to moderate in dimension. It is commonly used for nonlinear sensor models such as range and bearing measurements, and for attitude estimation where the dynamics are nonlinear and Jacobians are tedious to derive. Its cost is 2n+1 evaluations of the nonlinear function per time step, compared with one function evaluation and one Jacobian evaluation for the EKF. When the nonlinearity is mild, or when computation is tightly constrained and the state dimension is large, the EKF is often the more practical choice. If the posterior is clearly multimodal, neither filter is appropriate, and a particle filter should be considered.
Limitations and considerations
- Requires 2n+1 evaluations of the nonlinear function per time step, which is more than the single function and Jacobian evaluation of the EKF.
- Still assumes Gaussian distributions at each step. The sigma points are designed to represent a Gaussian, so strongly non-Gaussian noise or posteriors can cause the filter to diverge.
- Propagating and storing the sigma points requires more matrix operations than the EKF covariance update.
- There is no universally optimal choice of α and β. Performance depends on the system, so parameter tuning may be needed.
- Can still diverge if the initial estimate is far from the true state or if the model is badly mismatched.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Captures the nonlinear transformation of the mean and covariance more faithfully than first-order linearization, without deriving or coding Jacobian matrices.
- Removes a common source of implementation error, since the nonlinear models are used directly as functions rather than differentiated by hand.
- Sigma point placement follows fixed formulas in terms of n, α, β and κ, although these choices still affect performance (see limitations).
Applications
- Robotics: 3D attitude estimation from accelerometer and gyroscope measurements, and mobile robot localization and mapping with nonlinear sensor models.
- Aerospace: aircraft attitude and heading estimation, and spacecraft attitude determination from star tracker and gyroscope data.
- Navigation: GPS/INS fusion and inertial navigation error correction, and bearings-only target localization.
How it works
How it works
Set the initial state estimate x_hat_0 and covariance P_0, and choose the UKF parameters α, β and κ, which control the spacing of the sigma points and the weighting used in the moment calculations.
Generate 2n+1 sigma points from the current estimate and covariance, where n is the state dimension. One point is the mean itself, and the others lie at the mean plus and minus the columns of sqrt((λ+n)P), with λ = α²(n+κ) − n.
Pass each sigma point through the nonlinear motion model to obtain predicted sigma points. Compute the predicted mean as the weighted sum of the propagated points, and the predicted covariance as the weighted sum of outer products of their deviations from that mean, plus the process noise covariance. The weights are determined by the UKF parameters α, β and κ.
Pass the predicted sigma points through the measurement function to obtain predicted measurements. Compute the predicted measurement mean and its covariance, including the measurement noise. Then compute the cross-covariance between the propagated state points and the predicted measurements, and the Kalman gain from the cross-covariance and the innovation covariance. Finally, update the state estimate with the measurement innovation and update the covariance using the standard Kalman update equations.
Common pitfalls
- Using default values of α, β and κ without checking their effect on the spread of the sigma points and on the moment approximation.
- Inflating the measurement noise covariance R to suppress oscillations, rather than correcting the motion or measurement model.
- Ignoring the cost of high-dimensional states. Each step involves operations that scale poorly with the state dimension, so very large state spaces need approximations or a different filter.
- Assuming the UKF is robust to any nonlinearity. It still approximates the predictive distribution as Gaussian at each step, so strongly multimodal or heavy-tailed posteriors remain a problem.
Frequently asked questions
What are sigma points and how are they chosen?
Sigma points are a deterministically chosen set of sample points that represent the mean and covariance of a Gaussian distribution. For an n-dimensional state, there are 2n+1 sigma points: the estimate itself, and the estimate plus and minus the columns of sqrt((λ+n)P), where λ = α²(n+κ) − n. The parameter α controls how far the points lie from the mean (typically between 0.001 and 1), and κ is a secondary scaling parameter that is often set to 0.
How does the UKF compare with the EKF in accuracy and computation?
The UKF is usually more accurate than the EKF for strongly nonlinear systems, because it captures the transformed mean and covariance without first-order linearization. It requires 2n+1 evaluations of the nonlinear function per step, whereas the EKF requires one function evaluation and one Jacobian evaluation. For low-dimensional states the extra cost is usually modest. For high-dimensional states the cost of the sigma point operations can make the EKF the more practical option, despite its lower accuracy.
Can I use the UKF with multimodal (non-Gaussian) distributions?
The standard UKF assumes a Gaussian distribution and performs poorly when the posterior is multimodal. For multimodal posteriors, a particle filter, which represents the distribution as a weighted set of particles, is a more suitable choice. A Gaussian mixture variant of the UKF, which maintains several Gaussian components, is another option.
How should I choose the UKF parameters α, β and κ?
A common starting point is α = 0.001, κ = 0 and β = 2. The value β = 2 is the choice for Gaussian distributions. β is not the parameter that sets the spread of the sigma points. It reflects prior knowledge of the distribution and affects the weighting of the central sigma point in the covariance calculation. If the nonlinearity is strong, a larger α (for example 0.1) spreads the sigma points more widely. Because the best values are system-dependent, the parameters should be tested on simulated data before use.
Related methods
Sources
Julier, S. J., & Uhlmann, J. K. (1997). A new method for the nonlinear transformation of means and covariances in filters and estimators. IEEE Transactions on Automatic Control, 45(3), 477-482.
Open publication referenceWan, E. A., & Van Der Merwe, R. (2000). The unscented Kalman filter for nonlinear estimation. Proceedings of the IEEE 2000 Adaptive Systems for Signal Processing, 153-158.
Open publication referenceSarkka, S. (2013). Bayesian Filtering and Smoothing. Cambridge University Press.
Open DOI reference