Robust Kalman Filter

Statistics
Introduced by
Derived from Kalman (1960); robust extensions developed by Masreliez, Martin, and others from the 1970s onward
Year
1977
Type
Sequential Bayesian state estimator with robustified update step
Family
Bayesian / computational

What does it do?

The Robust Kalman Filter extends the classical Kalman filter so that state estimates remain reliable when observation noise departs from the Gaussian assumption, for example when the data contain outliers, heavy-tailed errors, or gross measurement errors.

It limits the influence of each innovation (the difference between the observed and predicted measurement) on the state update, so that a single anomalous observation does not pull the whole estimate off track.

The intuition behind the method

The classical Kalman update is linear in the innovation, so a very large innovation produces a very large correction, whether it reflects a true change in the system or a faulty reading. The robust version applies an influence function to the innovation, which bounds or reduces the correction when the residual is unusually large. In practice, the filter keeps following the bulk of the data and treats an implausible spike as a probable error. The recursive, one-step-at-a-time structure of the Kalman filter is kept, so the cost per time step stays close to that of the standard filter, apart from any internal iterations the chosen variant needs.

History

The classical Kalman filter was introduced by Rudolf E. Kalman in 1960 as a recursive solution to linear filtering and prediction. Robust extensions that replace the squared-error update with influence-function-based corrections were developed in the decades that followed, drawing on the M-estimation ideas of robust statistics (Huber and Ronchetti, 2011).

When to use it

Choose the Robust Kalman Filter when you estimate the states of a dynamic system from a time series that is likely to contain outliers, sensor dropouts, or impulsive errors, such as GPS positioning with occasional corrupted fixes or process monitoring with spike-prone sensors. It is also suitable when the observation noise is known or strongly suspected to be heavy-tailed. Do not use it when the model is linear and the observation noise is close to Gaussian and clean, because the classical Kalman filter is then the optimal and simpler choice. It is also not a remedy for a misspecified model: if the innovations stay large over long stretches, the dynamics or the noise covariances are probably wrong, and a robust update will hide that problem rather than solve it.

Limitations and considerations

  • The robustness of the update holds only up to the fraction of contaminated observations that the chosen influence function can tolerate; beyond that, the estimate can be corrupted.
  • The robust transformation introduces a tuning constant, such as the Huber threshold, which the user must choose; its sensitivity should be checked across a range of values, as described under pitfalls.
  • Iterative reweighting and variational Bayes implementations require internal iterations at each time step, which raises the computational cost relative to the classical filter.
  • The robustification acts on the observation innovation only. Outliers in the process noise and a misspecified Q are not handled by this step and need a separate treatment of the process noise.
  • The linear state-space structure, with known F, H, Q and R, is still required, and robustness does not correct a wrong structure.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The influence function applied to the innovation bounds the correction that any single observation can produce, so isolated outliers shift the state estimate less than they would under the classical update.
  • The predict and update recursion and the gain formula are retained, so an existing Kalman implementation can often be adapted by adding a single transformation step.
  • Huber-type and bisquare weights give different trade-offs: Huber weights keep a non-zero influence for large residuals, while bisquare weights remove the influence of very large ones entirely.
  • Only the current state and covariance are stored, so the filter can run on a sequential data stream without keeping the full history.
  • The same robustification idea can be carried into nonlinear filters through the robust extended and unscented variants mentioned in the FAQ.

Applications

  • GPS and inertial navigation systems where satellite signals are occasionally corrupted or blocked.
  • Financial econometrics: filtering latent volatility or state variables from price series containing jumps.
  • Industrial process control with sensors that occasionally produce spike errors or drop-outs.
  • Target tracking in radar or sonar systems with clutter or missed detections.
  • Biomedical signal processing such as ECG artifact removal or brain-computer interface state estimation.

How it works

How it works

1

A linear state-space model is assumed: the hidden state evolves through a transition matrix F with process noise w_t, and the noisy observations y_t are generated from the state through an observation matrix H with observation noise v_t. Classical Kalman theory assumes both noise terms are Gaussian. The robust variant keeps the linear structure but relaxes the Gaussian assumption, mainly for the observation noise v_t.

Formula
x_t = F x_{t-1} + w_t,\quad y_t = H x_t + v_t
2

At each time step, the filter propagates the previous state estimate and its error covariance forward using the system dynamics, which gives a predicted state and a predicted covariance. This prediction step is identical to the classical Kalman filter.

Formula
\hat{x}_{t|t-1} = F\hat{x}_{t-1},\quad P_{t|t-1} = F P_{t-1} F^\top + Q
3

Before the state is updated, the innovation is passed through a robust transformation psi, which is the step that distinguishes this filter from the classical one. Huber's psi-function leaves small innovations unchanged and limits the influence of large ones, while a bisquare (Tukey) weight reduces the influence of large innovations all the way to zero. Heavy-tailed observation models such as the Student-t lead to a comparable downweighting of large residuals, typically computed by iterative reweighting or by variational Bayes. In most implementations the innovation is first standardised by its predicted variance, H P_{t|t-1} H^T + R, so that one tuning constant applies at every time step. The choice of psi and of its tuning constant, which sets where downweighting begins, is made by the user for the application.

4

The state estimate is corrected by the Kalman gain K_t applied to the robustly transformed innovation psi(y_t - H x_{t|t-1}). Because psi grows more slowly than the raw residual, a large outlying observation moves the estimate less than it would in the classical update, while ordinary observations are processed as usual.

Formula
\hat{x}_t = \hat{x}_{t|t-1} + K_t\,\psi(y_t - H\hat{x}_{t|t-1})
5

The Kalman gain K_t is computed from the predicted covariance, the observation matrix H, and the observation noise covariance R, as in the classical filter. The formula for K_t given here is the classical form, as used in the basic Huber-type update. Some adaptive robust filters inflate R when an observation is flagged as an outlier, which reduces the gain for that observation. The covariance update that follows the state update depends on the robust scheme in use and is specified with that scheme.

Formula
K_t = P_{t|t-1} H^\top (H P_{t|t-1} H^\top + R)^{-1}

Common pitfalls

  • Setting the threshold too tightly causes many legitimate observations to be downweighted. A genuine change in the state can then look like a run of outliers and be suppressed, so the estimate lags behind the true trajectory.
  • Assuming that robustness covers the whole model. Q, F and H still need to be checked, because the robust update does not address errors that enter through the prediction step.
  • Applying the robust filter to clean, nearly Gaussian data, which gives up some of the efficiency of the classical filter without any gain in accuracy.
  • Ignoring the innovation sequence. Large innovations that persist over many time steps point to model mismatch, and downweighting them can mask this signal rather than reveal it.
  • Treating the breakdown behaviour of the influence function as a guarantee of filter stability. A poorly chosen threshold or noise setting can still produce an unstable or over-smoothed estimate.
  • Choosing the tuning constant without checking it. Standardise each innovation by its predicted variance before comparing it with the threshold, then rerun the filter over a range of thresholds; if the state estimate changes little across that range, the choice is not driving the result.

Frequently asked questions

How does the Robust Kalman Filter differ from the standard Kalman filter?

The standard Kalman filter corrects the state in proportion to the innovation, so one very large innovation produces a very large correction. The robust version passes the innovation through an influence function before updating, which bounds or reduces the correction for unusually large residuals. Ordinary observations are processed in essentially the same way as before.

What is the Huber threshold and how do I choose it?

The Huber threshold c sets the boundary between the region where the innovation is treated quadratically, as in the classical update, and the region where its influence grows only linearly. The value 1.345 is a commonly used default in Huber-type estimation, but it is derived for a location problem with a standardised residual, so it should be checked against the innovation scale in your model rather than applied automatically. Prior knowledge of the expected outlier size, or a sensitivity check across several thresholds, is a more defensible way to choose it.

Can the Robust Kalman Filter handle nonlinear systems?

Yes. The robustification step can be combined with the Extended Kalman Filter, which linearises the model around the current estimate, or with the Unscented Kalman Filter, which propagates sigma points, giving robust EKF and robust UKF variants. Particle filters are a fully nonlinear alternative and can represent non-Gaussian noise directly, at a higher computational cost.

Is a Student-t observation model the same as a robust Kalman filter?

They are closely related but not identical. Modelling the observation noise as Student-t leads to an update in which large residuals are downweighted, typically through iterative reweighting. The weights are redescending, so they fall towards zero for very large residuals, which differs from Huber weights that remain bounded but do not vanish. Variational Bayes implementations of the Student-t Kalman filter make the reweighting explicit and can also estimate the degrees-of-freedom parameter from the data.

What should I check after running a robust Kalman filter?

Inspect the innovation sequence and the weight assigned to each observation. Mostly weights near 1, with occasional weights close to 0 at the points where the data look corrupted, suggest that the filter is identifying genuine outliers. Persistently low weights, or a covariance that keeps growing, suggest model misspecification, such as wrong dynamics or noise covariances, rather than isolated outliers.

Related methods

Sources

  1. Kalman, R. E. (1960). A new approach to linear filtering and prediction problems. Journal of Basic Engineering, 82(1), 35-45.

    Open DOI reference
  2. Huber, P. J. & Ronchetti, E. M. (2011). Robust Statistics (2nd ed.). Wiley.

    ISBN: 978-0470129906