Unsupervised Learned Kalman Filtering

Guy Revach, Nir Shlezinger, Timur Locher, Xiaoyong Ni, Ruud J. G. van Sloun, Yonina C. Eldar

TL;DR

This paper introduces an unsupervised training method for KalmanNet, a hybrid neural network that tracks hidden states in dynamic systems. By minimizing the error in predicting future observations (the "innovation process") rather than comparing estimates to ground-truth labels, the authors enable the filter to learn and adapt to changing system dynamics in real-time without ever seeing the "true" state.

What Problem Does This Paper Address?

State estimation—tracking a hidden variable (like a robot's position) from noisy measurements (like GPS)—is usually handled by the Kalman Filter (KF). However, the KF requires perfect knowledge of the system's noise statistics, which are often unknown or change over time.

While Deep Learning can "learn" these statistics from data, standard neural networks require labeled data (pairs of noisy measurements and their corresponding ground-truth states). In the real world, obtaining ground-truth states is often expensive, difficult, or impossible. This paper tackles the challenge of training a high-performance, deep-learning-aided filter using only raw, unlabeled observation data.

Methods

The authors build upon KalmanNet, a hybrid architecture that retains the mathematical structure of a Kalman Filter but replaces the complex gain calculations with a Recurrent Neural Network (RNN).

The core innovation is the Unsupervised Loss Function. Instead of calculating the error between the estimated state and a ground-truth label, the network calculates the innovation: the difference between the actual observation and what the model predicted the observation would be based on its current state estimate.

Key features include:

  • Hybrid Design: It uses known physical models (state transition and measurement matrices) while letting the RNN learn the "missing" domain knowledge (noise statistics and Kalman Gain).
  • Offline Unsupervised Training: Training on a large batch of unlabeled observation sequences.
  • Online Semi-Supervised Adaptation: A strategy where a model is pre-trained on a general mathematical model and then fine-tuned "on-the-fly" using live data to adapt to specific, shifting environments.

Datasets

The paper evaluates the approach using synthetic data generated from two types of models:

  1. Linear State-Space Models: $2 \times 2$ and $5 \times 5$ systems where the noise statistics ($Q$ and $R$ matrices) are unknown to the filter.
  2. Non-linear Lorenz Attractor: A classic chaotic system used to test the filter's ability to handle complex, non-linear dynamics.

No real-world sensor datasets were used in this specific study; the focus was on proving the algorithm can reach theoretical performance limits (the MMSE bound) in controlled environments.

Key Insights and Ideas

  • The Innovation is a Proxy for Accuracy: The "aha moment" is that if a filter is accurately tracking the hidden state, its prediction of the next measurement should be highly accurate. Minimizing this prediction error effectively trains the network to track the hidden state.
  • Structural Priors are Powerful: Because KalmanNet isn't a "black box" but follows the KF's internal logic, it is more stable and requires less data than a standard RNN.
  • Self-Correction: The unsupervised loss allows the filter to "track the tracker." If the underlying system changes (e.g., a sensor becomes noisier), the increase in prediction error triggers the network to update its internal parameters.

Key Results

  • Reaching the Limit: In linear systems, unsupervised KalmanNet achieved the Minimum Mean-Squared Error (MMSE)—the theoretical best possible performance—matching a Kalman Filter that has full knowledge of the noise statistics.
  • Competitive with Supervised Learning: The performance was nearly identical to the supervised version of KalmanNet, though the unsupervised version takes longer to converge during training.
  • Handling Chaos: On the non-linear Lorenz attractor, it performed within 0.5 dB of the Extended Kalman Filter (EKF).
  • Efficiency: KalmanNet was faster than the EKF during inference (0.15s vs 0.2s per trajectory) because it avoids the computationally expensive matrix inversions required by traditional filters.

Limitations and Future Work

  • Model Dependency: The current approach assumes the transition ($F$) and measurement ($H$) matrices are known. While the authors note that KalmanNet is robust to approximations of these matrices, the unsupervised version still relies on having a decent physical model to start with.
  • Convergence Speed: Unsupervised training is slower to converge than supervised training, which might be a hurdle for purely online learning in very fast-changing systems.
  • Future Directions: The authors suggest exploring setups where the physical model ($F$ and $H$) is also partially unknown, potentially learning the physics and the noise statistics simultaneously in an unsupervised fashion.

Summary updated

BibTeX
@inproceedings{revach2022unsupervised,
  author = {Guy Revach and Nir Shlezinger and Timur Locher and Xiaoyong Ni and Ruud J. G. van Sloun and Yonina C. Eldar},
  title = {{Unsupervised Learned Kalman Filtering}},
  booktitle = {EUSIPCO},
  year = {2022},
}
Figure