Gaussian Process-Based Nonlinear Moving Horizon Estimation

Tobias M. Wolff, Victor G. Lopez, Matthias Albrecht Müller

TL;DR

This paper introduces a novel approach to state estimation for complex, unknown nonlinear systems by combining Gaussian Processes (GPs) with Moving Horizon Estimation (MHE). The key innovation is using GPs not only to model system dynamics but also to quantify their uncertainty, which is then leveraged to improve the MHE's cost function and ensure robust stability. This method offers a powerful alternative to traditional MHE when system models are unavailable or unreliable.

What Problem Does This Paper Address?

Accurate state estimation is crucial for controlling and understanding dynamic systems. Traditional methods like Moving Horizon Estimation (MHE) rely on precise mathematical models of the system. However, obtaining these models for complex nonlinear systems can be challenging, time-consuming, and expensive, often requiring expert knowledge or extensive system identification. When models are inaccurate or unknown, MHE's performance can degrade significantly, and its stability guarantees may not hold. This paper addresses this gap by proposing a data-driven MHE framework that learns system dynamics using Gaussian Processes (GPs) and explicitly accounts for the uncertainty inherent in these learned models.

Methods

The core of this work is a novel Gaussian Process-based Moving Horizon Estimation (GP-MHE) framework. The approach involves two main phases:

  • Offline Phase:
    • Data Collection: Trajectories of system states, inputs, and outputs are collected.
  • GP Learning: Gaussian Processes (GPs) are trained to approximate the system's state transition function ($f$) and output map ($h$). Crucially, GPs provide not only the mean prediction of the system's behavior but also a measure of uncertainty (posterior variance).
  • Hyperparameter Optimization: GP hyperparameters are tuned to maximize the log marginal likelihood.
  • Online Phase:
    • GP-MHE Optimization: An MHE optimization problem is solved at each time step.
  • Uncertainty-Aware Cost Function: The key novelty lies in how the MHE cost function is designed. Instead of using fixed weights, the weighting matrices for process and measurement noise are dynamically determined using the posterior variances of the learned GPs. This allows the MHE to adapt its reliance on model predictions versus measurements based on the confidence in the learned dynamics.
  • Robust Stability Analysis: The authors provide a theoretical proof of robust exponential stability for the proposed GP-MHE scheme, using a Lyapunov-based approach. They also derive conditions under which the nonlinear detectability property (δ-IOSS) of the original system is preserved by the learned model.

Datasets

The paper does not introduce new benchmark datasets. Instead, it uses simulated data from a batch reactor system for evaluation. This system is a common benchmark in the MHE literature. The data is generated by simulating the system's dynamics with specific initial conditions and noise realizations.

Key Insights and Ideas

  • Leveraging GP Uncertainty for MHE: The most significant insight is the effective use of GP posterior variances to inform the MHE cost function. By dynamically adjusting weighting matrices based on the confidence in learned dynamics, the estimator can better balance model predictions and measurements, leading to improved accuracy and robustness.
  • Robust Stability for Learned Systems: Proving robust stability for systems with learned dynamics is a critical contribution. The authors demonstrate that their GP-MHE scheme can achieve stability guarantees, even when the underlying system model is approximated by GPs, provided certain detectability conditions are met.
  • Preserving Detectability: The analysis on preserving nonlinear detectability (δ-IOSS) is crucial. It provides theoretical backing for using learned models in state estimation, assuring that the system's ability to be estimated is not lost due to the approximation process, as long as the approximation error is sufficiently small.
  • GP-MHE as a Competitive Alternative: The results suggest that GP-MHE can be a strong contender against traditional model-based MHE, especially when perfect models are unavailable or when dealing with systems where MHE is known to perform well (like batch reactors).

Key Results

  • Improved Accuracy: In simulation studies on a batch reactor system, the proposed GP-MHE scheme achieved a lower Mean Squared Error (MSE) compared to other GP-based estimation methods (GP-EKF, GP-UKF) and even outperformed a standard model-based MHE with constant weighting matrices. It performed comparably to a model-based MHE with an EKF-updated prior.
  • Robust Stability: The paper provides a theoretical proof of practical robust exponential stability (pRES) for the GP-MHE scheme.
  • Detectability Preservation: The authors derive conditions under which the learned system preserves the δ-IOSS detectability property of the original system.
  • Computational Trade-off: While the proposed GP-MHE offers superior performance, it is computationally more demanding than simpler GP-based methods (like GP-EKF/UKF) or model-based MHE due to the combination of GP inference and MHE optimization. However, it is noted that the computational cost can be reduced by simplifying the uncertainty handling in the cost function.

Limitations and Future Work

  • Offline State Measurements: The current framework relies on having access to state measurements during the offline phase for training the GPs. Relaxing this assumption would broaden the applicability of the method.
  • Computational Complexity: The GP-MHE is computationally intensive, especially with long horizons. Future work could explore sparse GP techniques or faster MHE algorithms to reduce this burden.
  • Conservative Error Bounds: The theoretical stability guarantees provide error bounds that are somewhat conservative and do not always improve monotonically with more training data. Developing less conservative bounds that consistently improve with data is an area for future research.
  • Noisy Regression Inputs: The current work assumes noise-free regression inputs for GP training. Extending the framework to handle noisy regression inputs is mentioned as an interesting subject for future work.

Summary updated

BibTeX
@article{wolff2025gaussian,
  author = {Tobias M. Wolff and Victor G. Lopez and Matthias Albrecht Müller},
  title = {{Gaussian Process-Based Nonlinear Moving Horizon Estimation}},
  journal = {IEEE Trans. Automatic Control},
  year = {2025},
  doi = {10.1109/tac.2025.3580033},
}
Figure