Papers
Topics
Authors
Recent
Search
2000 character limit reached

Variational Bayesian Adaptive Kalman Filter

Updated 5 July 2026
  • Variational Bayesian Adaptive Kalman Filtering is a state estimation method that uses variational Bayes to treat unknown measurement noise covariances as random variables.
  • It employs a mean-field factorization to decouple the state posterior (Gaussian) and covariance posterior (inverse-Wishart), using techniques like the unscented transform for nonlinear integration.
  • Empirical studies demonstrate improved tracking performance and RMSE reduction by adaptively estimating full covariance structures in time-varying measurement noise environments.

Variational Bayesian Adaptive Kalman Filtering (VB-AKF) denotes a class of filtering schemes that treat unknown noise covariances as random variables and infer them online via variational Bayesian updates while performing Kalman state estimation (Zhang et al., 2023). In the nonlinear formulation developed by Särkkä and Hartikainen, VB-AKF jointly estimates the state and a time-varying measurement noise covariance in a nonlinear stochastic state-space model by approximating the filtering posterior p(xk,Rk∣y1:k)p(x_k,R_k \mid y_{1:k}) with a mean-field factorization q(xk)q(Rk)q(x_k)q(R_k), where q(xk)q(x_k) is Gaussian and q(Rk)q(R_k) is inverse-Wishart; the process noise covariance QkQ_k is assumed known and is not adapted in the validated algorithm (Hartikainen, 2013). The method is often described more precisely as a variational Bayesian adaptive Gaussian filter, because the state update is realized through Gaussian filtering rules based on unscented, cubature, Gauss–Hermite, or Taylor-series approximations (Hartikainen, 2013).

1. State-space model and adaptive covariance dynamics

The canonical nonlinear VB-AKF is posed for the state-space model

xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),

yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),

with xk∈Rnxx_k \in \mathbb{R}^{n_x}, yk∈Rnyy_k \in \mathbb{R}^{n_y}, known QkQ_k, and unknown, time-varying q(xk)q(Rk)q(x_k)q(R_k)0. The construction assumes the usual conditional independence and Markov properties: given q(xk)q(Rk)q(x_k)q(R_k)1, q(xk)q(Rk)q(x_k)q(R_k)2 is conditionally independent of past measurements q(xk)q(Rk)q(x_k)q(R_k)3, and given q(xk)q(Rk)q(x_k)q(R_k)4 and q(xk)q(Rk)q(x_k)q(R_k)5, q(xk)q(Rk)q(x_k)q(R_k)6 is conditionally independent of past states and measurements. The filtering priors are approximated as

q(xk)q(Rk)q(x_k)q(R_k)7

q(xk)q(Rk)q(x_k)q(R_k)8

These assumptions define the adaptive target: recursive estimation of both the latent state and the contemporaneous measurement covariance (Hartikainen, 2013).

A distinctive element of the method is the covariance-evolution model for q(xk)q(Rk)q(x_k)q(R_k)9. The transition density q(xk)q(x_k)0 is not written explicitly; instead, the sufficient statistics of the inverse-Wishart prior are propagated through a discounting rule chosen so that inverse-Wishart priors remain closed under prediction:

q(xk)q(x_k)1

q(xk)q(x_k)2

with q(xk)q(x_k)3 typically chosen as q(xk)q(x_k)4 and q(xk)q(x_k)5. When q(xk)q(x_k)6, the covariance is stationary; values close to q(xk)q(x_k)7 yield smoother covariance evolution, while smaller values allow faster adaptation. This discounting mechanism is the operational dynamic model for the measurement covariance in the original nonlinear VB-AKF (Hartikainen, 2013).

2. Variational Bayes formulation

The central approximation is the mean-field factorization

q(xk)q(x_k)8

with the variational families

q(xk)q(x_k)9

Coordinate-ascent variational Bayes yields the fixed-point equations

q(Rk)q(R_k)0

q(Rk)q(R_k)1

The Gaussian factor is updated through a Kalman-type correction that uses the current expectation of q(Rk)q(R_k)2, while the inverse-Wishart factor is updated from the expected squared measurement residual under the current Gaussian state posterior (Hartikainen, 2013).

For an inverse-Wishart distribution q(Rk)q(R_k)3 on an q(Rk)q(R_k)4 covariance matrix, the required expectations are

q(Rk)q(R_k)5

The moment conditions are explicit: q(Rk)q(R_k)6 is required for q(Rk)q(R_k)7 to exist, and q(Rk)q(R_k)8 is required for q(Rk)q(R_k)9 to exist. These constraints are not merely formal; they determine whether the adaptive covariance entering the Gaussian filtering step is well-defined (Hartikainen, 2013).

The measurement-covariance posterior update has a closed form. After the Gaussian state update,

QkQ_k0

QkQ_k1

In the nonlinear case, the expectation is the integral

QkQ_k2

which is approximated by Gaussian integration. The variational structure therefore couples a Gaussian state posterior with an inverse-Wishart covariance posterior through expected residual statistics (Hartikainen, 2013).

3. Gaussian filtering realization in nonlinear models

The nonlinear VB-AKF is implemented through Gaussian filtering approximations. From QkQ_k3, the prediction step computes

QkQ_k4

From the predicted state distribution, the method forms the measurement statistics

QkQ_k5

QkQ_k6

QkQ_k7

followed by the usual Gaussian correction

QkQ_k8

QkQ_k9

The nonlinear integrals can be approximated by the unscented transform, cubature integration, Gauss–Hermite integration, or Taylor/EKF linearization. In the UKF realization, for example, xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),0 sigma points are propagated through xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),1 and xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),2; CKF uses xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),3 spherical-radial points; Gauss–Hermite uses tensor-product quadrature; EKF replaces the nonlinear measurement map with its Jacobian xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),4 evaluated at xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),5 (Hartikainen, 2013).

Because xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),6 depends on xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),7 and xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),8 depends on xk=fk−1(xk−1)+wk−1,wk−1∼N(0,Qk),x_k = f_{k-1}(x_{k-1}) + w_{k-1}, \qquad w_{k-1} \sim N(0,Q_k),9, the algorithm uses inner variational iterations at each time step. A standard realization is:

  1. Predict the state to obtain yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),0.
  2. Predict the covariance hyperparameters yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),1 by discounting.
  3. Precompute yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),2, yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),3, and yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),4 from the predicted state.
  4. Initialize

yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),5

  1. Iterate for yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),6:

yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),7

yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),8

yk=hk(xk)+vk,vk∼N(0,Rk),y_k = h_k(x_k) + v_k, \qquad v_k \sim N(0,R_k),9

xk∈Rnxx_k \in \mathbb{R}^{n_x}0

xk∈Rnxx_k \in \mathbb{R}^{n_x}1

  1. Output

xk∈Rnxx_k \in \mathbb{R}^{n_x}2

with xk∈Rnxx_k \in \mathbb{R}^{n_x}3, xk∈Rnxx_k \in \mathbb{R}^{n_x}4, and xk∈Rnxx_k \in \mathbb{R}^{n_x}5.

The stopping rule may be a fixed xk∈Rnxx_k \in \mathbb{R}^{n_x}6 or a tolerance on the relative change in xk∈Rnxx_k \in \mathbb{R}^{n_x}7 or xk∈Rnxx_k \in \mathbb{R}^{n_x}8; in practice, xk∈Rnxx_k \in \mathbb{R}^{n_x}9–yk∈Rnyy_k \in \mathbb{R}^{n_y}0 is often sufficient, while the paper also notes examples such as yk∈Rnyy_k \in \mathbb{R}^{n_y}1–yk∈Rnyy_k \in \mathbb{R}^{n_y}2 (Hartikainen, 2013).

4. Special cases, interpretation, and numerical issues

In linear models with yk∈Rnyy_k \in \mathbb{R}^{n_y}3 and yk∈Rnyy_k \in \mathbb{R}^{n_y}4, the Gaussian integrals are exact and the method reduces to a linear VB-AKF. In that case, the adaptive covariance recursion becomes

yk∈Rnyy_k \in \mathbb{R}^{n_y}5

yk∈Rnyy_k \in \mathbb{R}^{n_y}6

The state update is then the Kalman filter with an adaptive measurement covariance equal to yk∈Rnyy_k \in \mathbb{R}^{n_y}7. This linear reduction clarifies that the nonlinear algorithm is not a distinct estimator family, but a Gaussian-filter generalization of the same variational construction (Hartikainen, 2013).

The original method also sits in a well-defined relation to classical adaptive Kalman filtering and expectation-maximization. Classical adaptive KF schemes often tune covariances heuristically or by covariance matching, while EM estimates static yk∈Rnyy_k \in \mathbb{R}^{n_y}8 and yk∈Rnyy_k \in \mathbb{R}^{n_y}9 in batch by maximizing likelihood. VB-AKF is instead recursive, online, Bayesian, and explicitly quantifies uncertainty in QkQ_k0 through the inverse-Wishart posterior. A common misconception is that the nonlinear algorithm jointly adapts both process and measurement covariances; in the validated formulation, only the measurement covariance is adapted. The paper states that extending VB adaptation to QkQ_k1 is not straightforward because QkQ_k2 appears in the dynamic model in a non-conjugate way relative to a tractable QkQ_k3, and a rigorous derivation leads away from the simple filtering recursion. The same section notes that simultaneous estimation of QkQ_k4 and QkQ_k5 can be ill-posed without strong priors or constraints, so restricting adaptation to QkQ_k6 avoids confounding (Hartikainen, 2013).

Numerically, the method requires maintaining QkQ_k7, enforcing symmetry and positive definiteness of QkQ_k8, and computing square roots and inverses stably, typically by Cholesky factorization. Near-singular innovation covariances QkQ_k9 may require regularization, for example by adding a small jitter term q(xk)q(Rk)q(x_k)q(R_k)00. These considerations are integral to practical implementations, since the covariance adaptation is embedded directly inside the Kalman correction loop (Hartikainen, 2013).

5. Empirical behavior in the original nonlinear study

The original paper evaluates the method in two nonlinear tracking scenarios. The first is range-only tracking in a non-homogeneous noise field, where a 2D target is tracked by range-only sensors and the measurement covariance exhibits spatially varying correlations induced by a structured random field along signal paths. The comparison includes UKF with true q(xk)q(Rk)q(x_k)q(R_k)01 (UKF-t), UKF with fixed diagonal q(xk)q(Rk)q(x_k)q(R_k)02 (UKF-o), VB-AUKF with full adaptive q(xk)q(Rk)q(x_k)q(R_k)03 (VB-AUKF-f), and VB-AUKF with diagonal adaptive q(xk)q(Rk)q(x_k)q(R_k)04 (VB-AUKF-d). VB-AUKF-f improves RMSE over VB-AUKF-d and UKF-o, while UKF-t performs best, as expected. The estimated covariance entries track the true time variation reasonably, and larger q(xk)q(Rk)q(x_k)q(R_k)05 yields smoother but lagged covariance estimates (Hartikainen, 2013).

The second scenario is multi-sensor bearings-only tracking with a coordinated turn model in 2D and four sensors. Here the measurement noise has time-varying variances and cross-correlations. The comparison includes CKF with true q(xk)q(Rk)q(x_k)q(R_k)06 (CKF-t), CKF with fixed diagonal q(xk)q(Rk)q(x_k)q(R_k)07 (CKF-o), VB-ACKF with full adaptive q(xk)q(Rk)q(x_k)q(R_k)08 (VBCKF-f), and VB-ACKF with diagonal adaptive q(xk)q(Rk)q(x_k)q(R_k)09 (VBCKF-d). VBCKF-f outperforms VBCKF-d and CKF-o, while CKF-t again provides the best performance. In this setting, the advantage of estimating the full covariance rather than only diagonal terms is clear in RMSE. These experiments establish the characteristic empirical pattern of the method: adaptive full-covariance estimation is beneficial when measurement noise varies over time and sensor correlations matter, but performance remains bounded above by an oracle filter using the true covariance (Hartikainen, 2013).

Subsequent work has extended the basic VB-AKF template in several directions.

Direction Main modification Representative paper
Adaptive MCMC Uses VB-AKF to update the Metropolis proposal covariance inside the variational Bayesian adaptive Metropolis algorithm; proves a strong law of large numbers for VBAM (Mbalawata et al., 2013)
Correntropy-based robustness Integrates VB-AKF with MCCKF to form VB-AMCCKF, adapts both q(xk)q(Rk)q(x_k)q(R_k)10 and q(xk)q(Rk)q(x_k)q(R_k)11 on a sliding window with forgetting, and reports CPU usage of 58%/65% for VB-AMCCKF versus 40%/46% for R-AMCCKF on UAV/Husky platforms (Fakoorian et al., 2021)
Threshold-gated variance learning Proposes threshold-based VB Kalman filtering that updates measurement-noise hyperparameters only for residuals classified as background; reported RMSE improvements include 1.6187 to 0.4218 in one Gaussian-mixture case (Zhang et al., 2023)
Huber and conformal protection Combines VB parameter learning, Huber M-estimation, and Conformal Outlier Detection; fingerprint matching accuracy increases from 81.25% to 93.75%, and positioning errors decrease from 0.62–6.87 m to 0.03–0.35 m (Zhou et al., 13 May 2025)
Distributed sensing with missing and corrupted data Introduces a dual-mask generative model with observable dropouts and latent authenticity variables, jointly estimating q(xk)q(Rk)q(x_k)q(R_k)12, q(xk)q(Rk)q(x_k)q(R_k)13, network survival rate, and clean rate; numerical experiments report asymptotic convergence toward the oracle lower bound as the number of sensors increases (Sun et al., 3 Apr 2026)
Unified robust-adaptive filtering Builds a variational robust Kalman filter from a Student’s q(xk)q(Rk)q(x_k)q(R_k)14-distribution induced loss and switching rules; the framework recovers conventional KF, robust KF, and adaptive KF by adjusting parameters (Li et al., 17 Dec 2025)
Alternative variance-latent formulation Represents process and measurement variances through auxiliary Gaussian latent variables and online variational Bayes; in a replication of the Särkkä setting, RMSE is 0.6859 versus 0.6858 for VB-AKF (Vilmarest et al., 2021)

These variants preserve the core VB-AKF idea—recursive variational estimation of latent states together with unknown noise statistics—while changing the observation model, the sufficient statistics, or the robustness mechanism. This suggests a broader interpretation of VB-AKF as a variational design pattern rather than a single fixed algorithm. In that broader usage, the original nonlinear filter of Särkkä and Hartikainen remains the reference point for mean-field Gaussian/inverse-Wishart recursion with Gaussian integration, while later work extends the framework to sliding-window smoothing, non-Gaussian robustness, distributed sensing, conformal gating, and adaptive proposal construction in MCMC.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Variational Bayesian Adaptive Kalman Filter (VB-AKF).