arXiv:2611.03466eess.SYNov 2026

Manuscript Offprint

arXiv:2611.03466

A Bayesian Framework for Safe Optimal Control of Unknown Systems from Input-Output Data

Robert Lefringhausen, Annalena Daniels, Michael Fink, Sandra Hirche

Abstract

As control engineering is applied to increasingly complex systems, learning-based control, which uses empirical data to reduce the reliance on first-principles models, has emerged as a promising paradigm. However, such approaches must cope with nonlinear and stochastic dynamics, the absence of state measurements, and scarce data, while ensuring safe operation under constraints, which requires rigorous uncertainty quantification. Whereas existing methods treat these challenges in isolation, this article proposes a Bayesian framework that jointly addresses them. A prior in state-space form is updated from input–output data using particle Markov chain Monte Carlo methods, yielding a representation of joint uncertainty over dynamics and latent states. Building on this representation, a validation procedure is developed that provides probabilistic guarantees for constraint satisfaction under arbitrary causal control laws. For control synthesis, a formulation penalizing the conditional value-at-risk of the constraint function is proposed, together with an adaptive calibration mechanism that adjusts the performance–robustness trade-off to achieve a desired robustness level. The probability of successful certification is characterized theoretically. The framework is extended to a receding-horizon setting, where posterior updates from new measurements allow the controller to progressively reduce uncertainty and improve performance. The approach is demonstrated on the optimal control of a vertical farm.

Key words: Data-based control, Safe learning-based control, Bayesian system identification, Uncertainty quantification, Optimization under uncertainties, Randomized methods

1 Introduction

Learning-based optimal control aims to enable the high-performance operation of systems with unknown dynamics by learning models from empirical data. This paradigm is particularly relevant in applications where pure first-principles modeling is infeasible or prohibitively expensive, such as soft robotic actuators, systems involving human interaction, and biological processes. In real-world applications, several challenges arise jointly that fundamentally shape the learning-based control problem:

(1) Nonlinear and stochastic dynamics: Real-world systems are inherently nonlinear and affected by both process noise, which alters the system trajectory, and measurement noise, which only corrupts observations.

(2) Absence of state measurements: In many applications, the system state is latent, i.e., it cannot be measured directly due to limited sensing capabilities. Consequently, methods must operate solely on input–output data.

(3) Scarce data: In engineering applications, data are often scarce due to costly and time-consuming experiments, making the incorporation of structural knowledge from first principles essential for data efficiency and generalization.

(4) Rigorous safety guarantees: In safety-critical applications, constraint satisfaction must be ensured with high confidence despite the challenges posed by (1)–(3). This necessitates the rigorous quantification of both the irreducible aleatoric uncertainty introduced by process and measurement noise and the reducible epistemic uncertainty about the dynamics and latent states that arises from limited data.

Despite the practical importance of these challenges, existing approaches address individual aspects only, while their combined treatment remains largely unresolved. In the following, we briefly review existing approaches and their limitations with respect to these challenges.

  • The material in this article was partially presented at the 22nd European Control Conference, June 25–28, 2024, Stockholm, Sweden. Corresponding author Robert Lefringhausen.

Email addresses: robert.lefringhausen@tum.de (Robert Lefringhausen), annalena.daniels@tum.de (Annalena Daniels), michael.fink@tum.de (Michael Fink), hirche@tum.de (Sandra Hirche).

¹ Present address: NTFE GmbH, Munich, Germany.

Preprint submitted to Automatica

3 November 2026

Data-driven control methods rooted in behavioral systems theory [4] formulate optimal control problems directly from input–output data without requiring measurements of the underlying system state. These approaches have primarily been developed for linear time-invariant systems, and although extensions to stochastic and nonlinear settings have been proposed, their guarantees rely on specific system classes or local approximations.

Nonlinear input–output models, such as nonlinear autoregressive exogenous (NARX) models, learn a mapping from past inputs and outputs to future system behavior. Bayesian formulations, for instance Gaussian process (GP) NARX models [21], systematically quantify both epistemic and aleatoric uncertainty through a posterior distribution over this mapping, potentially enabling control with probabilistic safety guarantees. However, input–output models lack an internal state and therefore cannot distinguish process noise from measurement noise, treating all stochastic variability as a single lumped disturbance. This can lead to biased and increasingly inaccurate multi-step predictions over the horizons relevant for optimal control [28]. Moreover, prior knowledge from first principles, such as conservation laws or kinematic relations, is naturally expressed in terms of state variables and cannot be straightforwardly encoded in input–output mappings.

State-space models are a compelling foundation for learning-based optimal control, as they can describe nonlinear dynamics, inherently separate process and measurement noise, and allow the direct integration of prior knowledge from first principles. In their Bayesian formulation, for instance as GP state-space models, they further provide a principled framework for quantifying both epistemic and aleatoric uncertainty, which several works have exploited for robust learning-based control [25]. These approaches, however, rely on full state measurements, which are unavailable in many applications. Without them, learning the dynamics no longer reduces to fitting a function to observed state transitions, and predictions over a planning horizon depend on a current state that is itself unknown. The unknown dynamics and the latent states must therefore be estimated jointly. While several works provide point estimates of both [27,26], quantifying the remaining uncertainty is substantially more challenging because the uncertainties of the dynamics and the latent states are coupled and their joint posterior is generally intractable. To the best of our knowledge, no existing control method for nonlinear systems accounts for this joint uncertainty and translates it into certifiable probabilistic guarantees, except for our preliminary work [17].

This article closes this gap by proposing a framework for the optimal control of nonlinear systems with unknown dynamics from input–output data that addresses all four challenges. To retain the advantages of Bayesian state-space models without requiring full state measurements, we use particle Markov chain Monte Carlo (PMCMC) methods [2] to sample from the intractable joint posterior over dynamics and latent states. Together with the noise model, these sam-

ples provide a representation of both epistemic and aleatoric uncertainty. While PMCMC-based inference for nonlinear state-space models has been studied in the context of system identification [13,30,34], we exploit this representation for control, with the following main contributions:

(i) We develop a validation procedure that provides non-asymptotic probabilistic guarantees for constraint satisfaction under arbitrary causal control laws with respect to the posterior predictive distribution over dynamics, latent states, and future disturbances.

(ii) We propose a synthesis–validation procedure that computes a certified input sequence by combining the validation procedure in (i) with risk-sensitive optimal control using a conditional value-at-risk (CVaR) penalty. The weight of this penalty trades off performance and robustness, and an adaptive calibration mechanism adjusts it until the desired robustness level is certified. We further analyze its theoretical properties, linking the risk weight to the risk of constraint violation and quantifying the probability of successful certification.

(iii) We extend the synthesis–validation procedure in (ii) to a receding-horizon setting in which the posterior is updated between control cycles as new measurements become available, enabling the controller to progressively reduce uncertainty and improve performance. By exploiting the gradual evolution of the posterior, each cycle can be performed more efficiently than repeating inference and synthesis from scratch, while preserving the per-cycle probabilistic guarantees.

This article extends our preliminary work [17], which proposes PMCMC-based open-loop optimal control with robustness guarantees from non-convex scenario theory [7]. The present work replaces this conservative and computationally demanding formulation with a synthesis–validation framework in which the robustness level is an explicit design choice, extends it to a receding-horizon setting, and demonstrates it in a comprehensive case study.

Outline After the problem formulation in Section 2 and a brief review of PMCMC methods in Section 3, Section 4 develops the validation procedure and its probabilistic guarantees. Section 5 presents the CVaR-penalized control synthesis with adaptive calibration and its analysis, and Section 6 extends the framework to a receding-horizon setting. Section 7 demonstrates the approach on the optimal control of a vertical farm, and Section 8 concludes the article.

Notation Lowercase/uppercase bold symbols denote vectors/matrices, respectively. R\mathbb{R} denotes the set of real numbers, and N0\mathbb{N}^0 and N\mathbb{N} denote the sets of natural numbers with and without zero, respectively. For indices b≤cb \le c, ab;c\boldsymbol{a}_{b;c} is the shorthand notation for (ab,…,ac)(\boldsymbol{a}_b, \ldots, \boldsymbol{a}_c). P(⋅)\mathbb{P}(\cdot) denotes the probability of an event, E[⋅]\mathbb{E}[\cdot] the expected value, and p(⋅)p(\cdot) the probability density function.

References (31)