
Data-Driven Analytic Differentiation via High Gain Observers and
Gaussian Process Priors
Biagio Trimarchi1, Lorenzo Gentilini1, Fabrizio Schiano2, and Lorenzo Marconi1
Abstract— The presented paper tackles the problem of
modeling an unknown function, and its first r−1derivatives,
out of scattered and poor-quality data. The considered setting
embraces a large number of use cases addressed in the
literature and fits especially well in the context of control
barrier functions, where high-order derivatives of the safe set
are required to preserve the safety of the controlled system.
The approach builds on a cascade of high-gain observers and
a set of Gaussian process regressors trained on the observers’
data. The proposed structure allows for high robustness
against measurement noise and flexibility with respect to the
employed sampling law. Unlike previous approaches in the
field, where a large number of samples are required to fit
correctly the unknown function derivatives, here we suppose
to have access only to a small window of samples, sliding in
time. The paper presents performance bounds on the attained
regression error and numerical simulations showing how the
proposed method outperforms previous approaches.
I. INTRODUCTION
Autonomous systems have gained a lot of interest in the
last decades, and we witness each year a big effort to increase
their autonomy and capabilities. This effort was motivated by
both an increase in computational resources and a reduction
in Size, Weight, Power, and Cost (SWaPC) of such sys-
tems. The consequent advancements in autonomous systems
technologies unlocked the use of data-driven techniques on
real systems. In the field of data-driven techniques, Gaussian
Process (GP) regression [1] is gaining popularity thanks to
its non-parametric nature, the analytical tractability, and the
existence of analytical bounds on the estimate error [2]. This
property makes them particularly suitable for safety-critical
applications, where uncertainty and noisy information could
lead to a critical failure. In the same context, another im-
pactful advancement of the last years is the so-called control
barrier functions [3], which are able to act as a filter for the
control input of an autonomous system to guarantee that the
safety requirements are always satisfied. [3]. Applications of
control barrier functions can be seen in various contexts such
as: quad-copters teleoperation [4], multi-robot systems [5],
and adaptive cruise control [6]. Recently, researchers tried to
merge together GPs and CBFs giving birth to a new learning
control paradigm [7]. Such a solution succeeds in all those
cases when an analytic formulation of the safe-set is a priori
1Biagio Trimarchi, Lorenzo Gentilini, and Lorenzo Marconi are with the
Center for Research on Complex Automated Systems (CASY), Department
of Electrical, Electronic and Information Engineering (DEI), University
of Bologna, Bologna, Italy e-mails: {biagio.trimarchi2,
lorenzo.gentilini6, lorenzo.marconi}@unibo.it
2Fabrizio Schiano is with Leonardo S.p.a., Leonardo Labs, Rome, Italy
e-mail: fabrizio.schiano.ext@leonardo.com
HGO GP
y(t) ˆzk(t)ˆz(k)∼Lk
fh
Fig. 1. Structure of the proposed approach: the high gain observer generates
the data needed to fit the Gaussian process.
not known, e.g. in the case of exploration of an unknown
environment. The main drawback of this last approach is that
an overestimate of the barrier function could compromise the
safety of the system. Moreover, the barrier condition relies
on the knowledge of the barrier functions derivatives, that, in
this learning scenario, is difficult to retrieve. As a matter of
fact, GPs regressors suffer from loss of information during
differentiation [8] which makes them not suitable for such
an application. On the other hand, an accurate estimate of
time derivative can be generated using High Gain Observers
(HGOs), which provide practical convergence even in the
case of model uncertainty for high enough gains [9].
Motivated by these works, in this paper we take a step back
from control barrier functions and focus on proposing a novel
approach to estimate the derivative of an unknown function
of which we have scarce measurements. We estimate the
derivative of this function by combining Gaussian processes
and high gain observers [9] as depicted in Figure 1. The
idea of combining of HGOs and GPs is not novel since it
was already proposed in [10], however, our overarching goal
is different. In [10] the system dynamics are predicted out
of collected data. Instead, in this paper, we focus mainly
on reproducing a state-dependent unknown function, and
its derivatives, regressing only on scattered and noisy mea-
surements. In summary, our contribution is a technique to
obtain an analytic estimate of the directional derivative of an
unknown function out of very scattered and noisy data. We
show that the proposed approach has provable convergence
guarantees and we compare our solution, through numerical
simulations, to the naive approach of deriving a regressor
fitted directly to the scarcely available measurements. We
chose the context of autonomous systems and CBFs to offer
the reader an example of a situation in which our approach
could be adopted. However, we highlight that our approach
is general and could be applied to any context in which one
wants to estimate the derivative of an unknown function from
scarce measurements. The paper unfolds as follows. Section
II reviews the basics of Gaussian processes inference and the
theory of high gain state observation. Section III describes
the general problem along with our assumptions and our
arXiv:2210.15528v1 [eess.SY] 27 Oct 2022