<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Towards Gluing KKL Observer for Hybrid Systems with Unknown Jump Times</title></titleStmt>
			<publicationStmt>
				<publisher>IEEE</publisher>
				<date>12/16/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10594199</idno>
					<idno type="doi">10.1109/CDC56724.2024.10886607</idno>
					
					<author>Gia_Quoc Bao Tran</author><author>Sergio Garcia</author><author>Pauline Bernard</author><author>Florent Di Meglio</author><author>Ricardo G Sanfelice</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[This work proposes an observer design for general hybrid systems, whose outputs are continuous at jumps, and whose jump times are unknown. Inspired by the gluing approach and the Kravaris-Kazantzis/Luenberger (KKL) paradigm, we present conditions under which the hybrid dynamics can be transformed into continuous-time dynamics that take the form of a filter of the output and for which an observer can be readily designed. The possibility of recovering the estimate in the original coordinates is guaranteed outside of the jump times, under a mild backward distinguishability condition that ensures injectivity away from the jump set, assuming sufficient regularity of the transformation. Contrary to previous gluing results, the design of the gluing transformation and the observer is systematic with a well-identified target form of dynamics. While the theoretical conditions are validated on an academic bouncing ball system, we illustrate our method on an application concerning dry friction parameter estimation in the presence of stick-slip, using neural networks to learn a numerical model of the inverse transformation.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>Observer design for hybrid systems remains a challenge due to the interconnection of continuous-time and discretetime dynamics as well as the complex dependence of the solutions' time domain on their (unknown) initial conditions. When the jump times are assumed to be known or detected, which includes mechanical systems with impact sensors, sampled continuous-time systems, or switched systems with known switching times, the jumps of the observer can be triggered at the same time when the system jumps, thereby facilitating convergence and stability analysis (see <ref type="bibr">[1]</ref> and the references therein). Observer designs for this class are rich in the literature, such as <ref type="bibr">[2]</ref>, <ref type="bibr">[3]</ref> in the context of either impulsive or switched systems, <ref type="bibr">[4]</ref>, <ref type="bibr">[5]</ref> for continuous-time systems with sporadic measurements, or <ref type="bibr">[6]</ref>, <ref type="bibr">[1]</ref> for the general hybrid context, among many others, with designs including the Kalman-like design <ref type="bibr">[7]</ref> or the coupling of flow-and jump-based observers under a unified Lyapunov analysis <ref type="bibr">[8]</ref>.</p><p>On the other hand, when the jump times are unknown, the definition of an observer and its convergence, or even of observability, is no longer straightforward because the observer jumps are not synchronized with those of the system-the observer cannot converge to the system state in standard distances around the jump times, because of non-simultaneous (in time) discontinuities <ref type="bibr">[9]</ref>. Such a phenomenon also appears in the context of contraction and trajectory tracking <ref type="bibr">[10]</ref>, <ref type="bibr">[11]</ref>, <ref type="bibr">[12]</ref>. Concerning observer design, very few results exist for general hybrid systems <ref type="bibr">[13]</ref> apart from: (i) mode location observers for switched systems with unknown switching times, but mainly in the linear case (either by running parallel observers and monitoring the residual output error <ref type="bibr">[14]</ref>, <ref type="bibr">[15]</ref>, or via LMI design <ref type="bibr">[16]</ref>, or through optimization algorithms to find the switching signal matching most of the output signal over a time window <ref type="bibr">[17]</ref>); (ii) a semi-global design based on an arbitrarily fast highgain observer during flow that is "disconnected" around jump times, for systems with instantaneously observable flow dynamics <ref type="bibr">[18]</ref>; (iii) a "gluing" design for hybrid systems whose outputs are continuous at jumps, based on transforming the hybrid dynamics into continuous-time dynamics where an observer may be designed <ref type="bibr">[19]</ref> (see also <ref type="bibr">[20]</ref> for mechanical systems with impacts). In <ref type="bibr">[19]</ref>, the existence of such a gluing change of coordinates that is injective except on the jump set is shown to exist for a broad class of hybrid systems with appropriate manifold structure of the flow and jump sets. Then, if an observer can be designed in the new coordinates, the state estimate is obtained by running this continuous-time observer and inverting the transformation, with asymptotic convergence except during increasingly smaller intervals around the jump times. However, <ref type="bibr">[19]</ref> does not provide constructive methods to find the transformation and does not guarantee that an observer can be designed in the target coordinates.</p><p>On the other hand, the Kravaris-Kazantzis/Luenberger (KKL) paradigm provides a universal idea of observer design for nonlinear systems. This framework relies on transforming the dynamics into some linear stable filter of the output, where the observer is straightforwardly designed, and the estimate is recovered in the original coordinates by inverting this transformation under a weak backward distinguishability condition <ref type="bibr">[21]</ref>, <ref type="bibr">[22]</ref>. The rich literature of KKL observers for many classes of systems (continuous-/discrete-time, autonomous/time-varying, etc.), including the closed form of the KKL transformation and observability condition for each class, is summarized in <ref type="bibr">[23]</ref>. While the implementation of these remains a challenge due to the difficulty in computing the transformation, systematic numerical methods are being developed to learn models of the (inverse) transformation using neural networks (NNs) <ref type="bibr">[24]</ref>, <ref type="bibr">[25]</ref>, <ref type="bibr">[26]</ref>.</p><p>In this work, we propose to use the KKL transformation as a gluing function for general hybrid systems of form <ref type="bibr">[13]</ref>  <ref type="bibr">(1)</ref> with state x &#8712; R nx , where C, D &#8834; R nx are the flow and jump sets, f, g, h : R nx &#8594; R nx are the flow, jump and output maps, respectively, such that the output is continuous at jumps. Thus, the jumps are not immediately visible in the output, and pairs of points (x, g(x)) for x in D are not distinguishable. Still, in the spirit of <ref type="bibr">[19]</ref>, we show that there exists a map T : cl(C) &#8746; D &#8594; R nz such that the image by T of solutions to system (1) follows the continuous-time</p><p>for some pairs (A, B) &#8712; R nz&#215;nz &#215;R nz with A Hurwitz, and T is injective on int(C \D), under backward distinguishability of the system outside of the jump set and some regularity conditions. Then, as in ( <ref type="formula">27</ref>) below, a trivial observer for the target form ( <ref type="formula">2</ref>) is obtained by running system (2) from any initial condition and an estimate for x can be recovered by a left inversion of T , with asymptotic convergence except in smaller and smaller intervals around the jump times. The available tools for the numerical approximation of T and its left inverse generalize to this hybrid framework with some adaptation, taking into account the loss of injectivity of T on D, thus providing a systematic observer design for hybrid systems with unknown jump times. Models of the form (1) cover dynamical systems with state-triggered changes, which includes state-triggered switched systems or hybrid automata, with state x = (x c , q) where x c is the physical state and q &#8712; N encodes the modes, f = (f q , 0) the continuous dynamics in each mode, and g and D the transitions from each mode to the others, that can also depend on x c . While the theoretical assumptions and results are illustrated on the classical bouncing ball toy problem, the gluing KKL observer is then applied to the problem of dry friction parameter estimation on a drilling mechanical system exhibiting a switching stick-slip behavior. A hybrid model of dimension 7 with unknown jump times is proposed, for which an analytical gluing function would be otherwise very difficult to find. After setting the technical background and assumptions of this paper in Section II, we propose in Section III a systematic change of coordinates into the continuous-time system <ref type="bibr">(2)</ref> and study its injectivity on C \D. The possibilities of returning to the initial x-coordinates are discussed in Section IV by revisiting the convergence result of <ref type="bibr">[19]</ref> under milder assumptions. Finally, a numerical implementation of this gluing KKL observer is shown in Section V on an application featuring the stick-slip phenomenon.</p><p>Notations: Let R, C, and N (resp., Z) denote the set of real, complex, and natural numbers (resp., integers). Let R &#8805;0 (resp., R &#8804;0 ) denote [0, +&#8734;) (resp., (-&#8734;, 0]), and similarly for Z &#8805;0 and Z &#8804;0 . Let &#8476;(z) be the real part of z &#8712; C. Given &#961; &gt; 0, define R &#961; = {&#955; &#8712; R : &#955; &lt; -&#961;} and C &#961; = {&#955; &#8712; C : &#8476;(&#955;) &lt; -&#961;}. Denote R m&#215;n as the set of real (m &#215; n)-dimensional matrices. Given a set S, cl(S) is its closure, and int(S) denotes its interior. Denote S + &#948; as the set of points within a distance smaller than or equal to some &#948; &gt; 0 from a point in S. Let | &#8226; | be the Euclidean norm. Denote &#10216;a, b&#10217; as the scalar product of vectors a and b. Let diag(&#955; 1 , &#955; 2 , . . . , &#955; n ) be the diagonal matrix with entries &#955; i , i = 1, 2, . . . , n. The notions of class-K and class-K &#8734; functions are from <ref type="bibr">[27,</ref><ref type="bibr">Definitions 4.2 and 4.3]</ref>. For the dynamics &#7819; = f (x), &#936; f (x 0 , &#964; ) is the associated flow operator from initial value x 0 evaluated after &#964; time unit(s). For a solution (t, j) &#8594; &#981;(t, j) to a hybrid system, we denote by dom x its domain <ref type="bibr">[13]</ref>, dom t &#981; (resp., dom j &#981;) the domain's projection on the ordinary time (resp., jump) component, for j &#8712; N, t j (&#981;) the unique time such that (t j (&#981;), j) &#8712; dom &#981; and (t j (&#981;), j -1) &#8712; dom &#981;. The mention of &#981; is omitted when no confusion is possible. Given a hybrid arc &#981; defined on dom &#981;, let &#981; | D be the restriction of &#981; to D &#8834; dom &#981;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. TECHNICAL ASSUMPTIONS</head><p>In <ref type="bibr">[13,</ref><ref type="bibr">Definition 2.6</ref>], solutions to system (1) are defined in forward positive hybrid time, i.e., on a hybrid time domain subset of R &#8805;0 &#215; N. Here, to define our transformation later, we consider solutions defined in both forward and backward time, namely on a hybrid time domain subset of R&#215;Z. Thus, we generalize the notion of a hybrid time domain.</p><p>Definition 1:</p><p>) and E &#8804;0 = E &#8745; (R &#8804;0 &#215; Z &#8804;0 ), we have (when not empty)</p><p>for some integers J m &#8804; 0, J M &#8805; 0 and a finite sequence of times t Jm &#8804; t Jm+1 &#8804; . . .</p><p>is the union of a non-decreasing sequence of compact hybrid time domains, namely, E is the union of compact hybrid time domains E j such that . . . &#8834; E j-1 &#8834; E j &#8834; E j+1 . . .. This definition corresponds to that of [13, Definition 2.6] when J m = 0. More generally, it coincides with the notion of hybrid time domain with memory introduced in <ref type="bibr">[28]</ref>, but where E &#8804;0 is rather written as</p><p>with the convention that s k = t -k . Inspired from <ref type="bibr">[29,</ref><ref type="bibr">Definitions 6 and 8]</ref>, we now define solutions to system (1) in forward and backward time.</p><p>Definition 2: Given system (1), we define its backward counterpart as</p><p>Then, &#981; : dom &#981; &#8594; R nx is solution to system (1) if dom &#981; is a hybrid time domain and if, denoting</p><p>is a solution to <ref type="bibr">(5)</ref> in the sense of <ref type="bibr">[13,</ref><ref type="bibr">Definition 2.6]</ref>.</p><p>Remark 1: Another way of defining solutions without using <ref type="bibr">[13]</ref> would be to say that : &#981; : dom &#981; &#8594; R n is a solution to system (1) if dom &#981; is a hybrid time domain, the map t &#8594; &#981;(t, j) is locally absolutely continuous on each interval I j = {t : (t, j) &#8712; dom &#981;} for all j &#8712; dom j &#981;, and it satisfies the following properties:</p><p>for almost all t &#8712; I j , &#981;(t, j) &#8712; C, for all t &#8712; int(I j ) \ {0};</p><p>(c) For each (t, j) &#8712; dom &#981; such that (t, j + 1) &#8712; dom &#981;, we have &#981;(t, j + 1) = g(&#981;(t, j)), &#981;(t, j) &#8712; D.</p><p>A solution &#981; to system (1) is maximal if there does not exist any other solution &#981; &#8242; to system (1) such that dom &#981; is a strictly proper subset of dom &#981; &#8242; and &#981; = &#981; &#8242; on dom &#981;. Besides, &#981; is forward (resp., backward</p><p>is unbounded (and similarly, for j-forward and backward completeness). Last, &#981; is Zeno in forward (resp., backward) time if it is forward (resp., backward) complete and sup dom t &#981; (resp., inf dom t &#981;) is bounded.</p><p>We are interested in estimating the state of system (1) from the knowledge of the measurement y. To that end, we make the following assumptions.</p><p>Assumption 1: For system (1), assume that: (A1.1) There exist sets X 0 &#8834; X &#8834; cl(C) &#8746; D such that all maximal solutions to system (1) initialized in X 0 are t-forward complete and remain in X in forward time; (A1.2) For any x &#8712; cl(C)&#8746;D, there exists a unique maximal solution &#981; to system (1) such that &#981;(0, 0) = x; (A1.3) The maps f , g, and h are continuous, and</p><p>In Assumption 1, the sets X 0 and X in Item (A1.1) could be cl(C) &#8746; D if no extra information is available about the solutions of interest, but sometimes we know from physical knowledge that they remain within some bounds that can be encoded in X , from a certain set of initial conditions X 0 that may be unknown. The t-forward completeness condition of the maximal solutions of interest is needed because we propose in this paper an asymptotic observer design exploiting <ref type="bibr">(2)</ref>. With Item (A1.3), we assume that the output y does not change at jumps, which in turn means that jumps in the solutions cannot be detected by the jumps of the measurement. Item (A1.2) then allows us to uniquely define an output map as follows.</p><p>Definition 3: Suppose Items (A1.2) and (A1.3) of Assumption 1 hold. For every x &#8712; cl(C)&#8746;D, given the maximal solution &#981; to system (1) initialized as x, define</p><p>and</p><p>where j(t) = min{j &#8242; : (t, j &#8242; ) &#8712; dom &#981;}. Remark 2: With (9) in Item (A1.3) of Assumption 1, j(t) could be replaced by any j such that (t, j) &#8712; dom &#981; in <ref type="bibr">(11)</ref>. The map Y (x, &#8226;) is well-defined and continuous for all x &#8712; cl(C) &#8746; D thanks to <ref type="bibr">(9)</ref>. Indeed, for any t &#8712; dom t &#981;, h(&#981;(t, j &#8242; )) = h(g j &#8242; -j (&#981;(t j , j))) = h(&#981;(t j , j)) for any j &lt; j &#8242; such that (t, j) and (t, j &#8242; ) in dom &#981;.</p><p>We now propose a KKL-based approach to estimate the state of system (1), which does not require jump detection.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. CHANGE OF COORDINATES INTO CONTINUOUS-TIME DYNAMICS</head><p>Following the KKL approach <ref type="bibr">[22]</ref> and the gluing idea in <ref type="bibr">[19]</ref>, we wish to find a map T : cl(C) &#8746; D &#8594; R nz such that 1) the image of solutions to system (1) under T follows continuous-time dynamics of the form &#380; = Az + By, for appropriate matrices A and B, and such that 2) its restriction to the set C\D is injective, in order to reconstruct from z an estimate x of x that converges in the x-coordinates, at least outside of the jump times.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Definition of T</head><p>In order to define T , we make the following assumption. Assumption 2: There exists &#961; &gt; 0 such that for every</p><p>Y (x, s) exists and is finite;</p><p>Example 1: Consider a bouncing ball with height x 1 , velocity x 2 , and restitution coefficient c &gt; 0, described by</p><p>where a g = 9.8 (m/s 2 ) is the gravitational acceleration, c &gt; 0 is a restitution coefficent, &#181; &gt; 0 is some constant jump input, d &gt; 0 and p &#8712; R &#8805;0 are friction parameters, and with output y = x 1 . Firstly, maximal solutions to system <ref type="bibr">(12)</ref> initialized in X 0 = R &#8805;0 &#215; R are both tand j-forward complete and remain in X = X 0 in forward time. Secondly, considering the backward counterpart of system ( <ref type="formula">12</ref>)</p><p>we deduce that maximal solutions to system <ref type="bibr">(12)</ref> are unique (in both forward and backward time). Thirdly, (9) holds. Therefore, system (12) satisfies Assumption 1. If p = 1 and c &#8804; 1, all maximal solutions to <ref type="bibr">(12)</ref> in backward time are either t-backward complete or with a bounded and closed time domain (indeed, no Zeno phenomenon can happen in system (13) <ref type="foot">1</ref> and solutions either end with flow at x = (0, x 2 ) with 0 &#8804; x 2 &lt; &#181;, or end with one jump to (0, 0)). For the former type, thanks to linearity in the maps and a g being constant, backward solutions explode at most exponentially during flow and linearly at jumps (with a dwell time) so that Item (b) of Assumption 2 holds. For the latter, Item (a) of Assumption 2 holds by continuity. Therefore, Assumption 2 is satisfied in this case. However, with p &gt; 1, we may have a finite-time escape in backward time, so solutions may not be t-backward complete and Y (x, s) may not have a finite limit as s &#8594; t -(x), so Assumption 2 may not hold. With &#961; defined in Assumption 2, consider n z &#8712; N, A &#8712; R nz&#215;nz such that A + &#961;I is Hurwitz, and B &#8712; R nz . We define T :</p><p>where, for every x &#8712; C &#8746; D and s &#8712; R,</p><p>Remark 3: While for every x &#8712; cl(C)&#8746;D, s &#8594; Y (x, s) is defined on (t -(x), t + (x)) only, s &#8594; Y (x, s) is defined and continuous on R &#8804;0 according to Assumption 2. Besides, still under Assumption 2, for all x &#8712; cl(C)&#8746;D, the function s &#8594; e -As B Y (x, s) is integrable on R &#8804;0 . It is thus a continuous extension of Y (x, &#8226;), allowing us to define T as in <ref type="bibr">(14)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Continuous-time Dynamics in the z-Coordinates</head><p>Now we prove that the image by T of solutions to system (1) satisfies <ref type="bibr">(2)</ref>.</p><p>Lemma 1: Suppose Assumptions 1 and 2 hold. For any maximal solution &#981; to system (1) initialized in X 0 , there exist a C 1 map z : R &#8805;0 &#8594; R nz and a continuous map y : R &#8805;0 &#8594; R ny such that</p><p>where T is defined in <ref type="bibr">(14)</ref> with A &#8712; R nz&#215;nz such that A+&#961;I is Hurwitz for &#961; in Item (b) of Assumption 2, and B &#8712; R nz .</p><p>Proof: Let &#981; be a maximal solution to system (1). The map y : R &#8805;0 &#8594; R ny defined by y(t) = h(&#981;(t, j)) for all (t, j) &#8712; dom &#981;, t &#8805; 0, is well-defined and continuous according to Items (A1.2) and (A1.3) of Assumption 1. Then, we exploit Lemma 3 to deduce that</p><p>It follows that there exists a continuous map z : R &#8805;0 &#8594; R nz such that z(t) = T (&#981;(t, j)) for all (t, j) &#8712; dom &#981; with t &#8805; 0.</p><p>Let us show that z is C 1 . Consider first t &#8712; R &#8805;0 such that t &#8712; (t j , t j+1 ) for some j &#8712; dom j &#981; and a scalar &#8710; &#824; = 0 small enough such that t + &#8710; &#8712; (t j , t j+1 ). Exploiting the uniqueness of solutions from Item (A1.2) of Assumption 1 and the fact that for all x &#8712; cl(C) &#8746; D and s &#8712; [0, &#8710;], we have Y (x, s) = Y (x, s), we get</p><p>e -As BY (&#981;(t, j), s)ds.</p><p>Rearranging the terms, we get</p><p>e -As BY (&#981;(t, j), s)ds.</p><p>Taking the limit as &#8710; &#8594; 0, we obtain that z is differentiable at time t and</p><p>Now consider any t &gt; 0. By the t-forward completeness in Item (A1.1) of Assumption 1, there exist j 1 , j 2 &#8712; dom j &#981; such that (t -&#8710;, j 1 ) &#8712; dom &#981; and (t + &#8710;, j 2 ) &#8712; dom &#981;, for all &#8710; &gt; 0 sufficiently small. Reproducing the same computations as before, we get lim</p><p>Similarly, at t = 0, reasoning with &#8710; &gt; 0, we get that z is continuously differentiable on R &#8805;0 and verifies <ref type="bibr">(17)</ref>.</p><p>In Lemma 1, we have shown the existence of a map T transforming system (1) into the continuous-time dynamics <ref type="bibr">(17)</ref>. It follows that for any solution &#981; to system (1), implementing <ref type="bibr">(17)</ref> and</p><p>fed with the measured output y, from any initial condition, gives us</p><p>namely, &#7825;(t) provides an asymptotic estimate of T (&#981;(t, j)) without any jump detection. The great advantage of this approach compared to <ref type="bibr">[19]</ref> is that an observer is directly available in the z-coordinates, given the specific target form of the dynamics <ref type="bibr">(17)</ref>. Moreover, the change of coordinates given by T is guaranteed to exist, with a systematic approach for constructing a numerical model of it (see Section V).</p><p>Example 2: Consider the bouncing ball in Example 1 with d = 0.01 (m -1 ), p = 2, c = 0.8, and &#181; = 2 (m/s). Exploiting <ref type="bibr">[19]</ref> only, we are not able to find an analytic gluing function T for this system. Instead, we follow the KKL route of this paper. Taking advantage of the system's low dimension, we propose to approximate T using a lookup table. To do this, we simulate the interconnection ( <ref type="formula">1</ref>)-( <ref type="formula">17</ref>) from any initial conditions in X 0 &#215; R nz , where n z = 3 with A = diag(-1, -2, -3) and B = (1, 1, 1). After a long enough time compared to the eigenvalues of A, z approximates T (x) and we can form a look-up table consisting of the (x, T (x)) pairs by storing these points taken from a large number of simulations. In Figure <ref type="figure">1</ref>, we show (left) the data points of the first component of z = (z 1 , z 2 , z 3 ) as a function of x = (x 1 , x 2 ) taken from the look-up table and plot, along a particular system solution (t, j) &#8594; x(t, j), the value z 1 (t) in the look-up table (approximating T (x(t, j))) such that its corresponding x component matches most x(t, j) in the Euclidean norm. It is confirmed that the values of z 1 before and after each jump are the same, which is consistent with the continuity of z at the jumps. On the right, we compare z 1 (t) from the look-up table and &#7825;1 (t) obtained by running observer <ref type="bibr">(19)</ref> from some arbitrary initial condition, showing the convergence in the z-coordinates. Conditions to deduce an estimate in the x-coordinates are given in the next section. table (blue), and t &#8594; (x(t, j), z 1 (t)) along a solution (red-yellow), where z 1 (t) is fetched as the closest point in the look-up table; Right: t &#8594; z 1 (t) from look-up table obtained from t &#8594; x(t, j) vs. t &#8594; &#7825;1 (t) solution to observer (19).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Injectivity of T</head><p>As it is usually done in KKL theory, we now exploit a distinguishability property to study the injectivity of T , and thus the ability to reconstruct &#981; from the knowledge of &#7825;. Of course, due to (18), T is not injective on D unless the map g is identity, and we thus focus on C \ D.</p><p>Assumption 3: Any distinct points x a , x b in int(C\D) are backward distinguishable, namely there exists t &#8712; (max{t -(x a ), t -(x b )}, 0] such that Y (x a , t) &#824; = Y (x b , t), with Y introduced in Definition 3.</p><p>Using Assumption 3, we now exploit the tools developed in <ref type="bibr">[22]</ref> (and the references therein) to show that the map T is injective on int(C\D).</p><p>Lemma 2: Suppose Assumptions 1, 2, and 3 hold. Assume that, for all &#955; &#8712; C &#961; with &#961; from Assumption 2, the map</p><p>is C 1 on int(C\D); moreover, for all &#955; &#8712; R &#961; and for all k &#8712; N, the map x &#8594; &#8706; k T0 &#8706;&#955; k (&#955;, x) exists and is C 1 on int(C\D). Define m 0 = 2n x + 1. For almost any pair of matrices (A 0 , B 0 ) &#8712; R m0&#215;m0 &#215; R m0 with A 0 + &#961;I Hurwitz for &#961; in Item (b) of Assumption 2, the map T : C &#8746;D &#8594; R nz defined in ( <ref type="formula">14</ref>) with A = A 0 &#8855; I ny and B = B 0 &#8855; I ny is injective on int(C\D).</p><p>Proof: Similar to <ref type="bibr">[22,</ref><ref type="bibr">Theorem 3.4]</ref>. See in <ref type="bibr">[30]</ref>. Similarly to <ref type="bibr">[22,</ref><ref type="bibr">Appendix B</ref>.1], we show that the result is equivalent to showing that for all l &#8712; {0, 1, . . . , n x } and for almost all (&#955; 1 , &#955; 2 , . . . , &#955; 2nx-l+1 ) &#8712; &#8486; l,&#961; , with The continuity of Y and thus Y and thus T should be ensured under the hybrid basic conditions and some uniformity in Assumption 2, by exploiting [13, Proposition 6.14] as well as the continuity of h at jumps. However, the continuous differentiability of T is left to further study, although evidence of this regularity is obtained in simulations and from preliminary theoretical results under reasonable conditions on the data of the system.</p><p>The reason for considering int(C\D) instead of C\D or cl(C) \ D is that an open set is needed to apply Coron's lemma, the key tool of <ref type="bibr">[21]</ref>, <ref type="bibr">[22]</ref>. A way around this would be to manage to define T on a larger open set containing C\D, but this typically requires us to extend Y outside of cl(C) &#8746; D while preserving its regularity.</p><p>Remark 5: It is interesting to note that, when n y = 1, the generic dimension n z = 2n x + 1 providing injectivity of T according to Lemma 2 corresponds to the dimension of the gluing function guaranteed to exist in <ref type="bibr">[19,</ref><ref type="bibr">Remark 2]</ref> through proper embedding arguments and under additional smoothness and manifold assumptions on the data. This dimension is conservative, to guarantee a generic result impervious to the data of the hybrid system, but it is not necessary as will be illustrated in the examples.</p><p>Back to our estimation problem, we are interested in reconstructing x(t, j) from the knowledge of T (x(t, j)). The injectivity of T on int(C\D) suggests it is possible except around the jump times. To formalize the notion of convergence, we use the concept of the gluing function introduced in <ref type="bibr">[19]</ref>.</p><p>Example 3: Consider the bouncing ball in Example 1 with parameters in Example 2. Since the whole state is instantaneously observable during flows, Assumption 3 is satisfied. We take n z = 3 which is seen to give injectivity of T on C \ D, run observer <ref type="bibr">(19)</ref>, and recover the estimate in the x-coordinates by the look-up table built in Example 2. In Figure <ref type="figure">2</ref>, convergence is recovered in the x-coordinates, but outside of the jump times when we cannot distinguish between the x before and after the jumps. Note that for systems of large dimensions, the look-up table approach does not give satisfactory performance due to memory limitations and the curse of dimensionality. Therefore, an NN-based approach is proposed in Section V. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. CONVERGENCE IN THE x-COORDINATES</head><p>A gluing function is essentially a function that transforms the hybrid system (1) into continuous-time dynamics, by "gluing" the jump set D with its image g(D) while preserving injectivity on the rest of the domain. The key gluing properties are thus as follows.</p><p>In [19, Definition 1], a gluing function is additionally required to be C 1 , with a Jacobian that is full-rank on C. We show that this assumption is not needed here to demonstrate the convergence of the estimate, its only impact being to 1) study the dynamics of T (x) along solutions, but this is done here in Lemma 1 without any regularity condition on T , and 2) provide a linear modulus of injectivity of T , instead of K &#8734; one in <ref type="bibr">(33)</ref>, but we show this is not needed for the proof of Theorem 1.</p><p>According to <ref type="bibr">(18)</ref> and Lemma 2, the function T : C &#8746; D &#8594; R nz defined in ( <ref type="formula">14</ref>) is almost a gluing function (as in Definition 4) for system (1): it is if the injectivity is ensured on the entire C \ D (not only on its interior).</p><p>By implementing <ref type="bibr">(17)</ref> from any initial condition, we know that &#7825; converges arbitrarily close to T (x). It is thus tempting to apply a left inverse of T to &#7825;. But by both Items (G.1) and (G.2) of Definition 4, this is only possible in T (C \ D). In <ref type="bibr">[19]</ref>, it is proposed to project &#7825; onto T (C \ D) and sufficient conditions are given to ensure that x persistently and uniformly stays away from D and g(D).</p><p>Assumption 4: For system (1), assume that: (A4.1) The set X defined in Item (A1.1) of Assumption 1, in which the solutions of interest remain in forward time, is compact; (A4.2) D &#8745; g(D) = &#8709;; (A4.3) There exist smooth maps r D : R nx &#8594; R and r g(D) :</p><p>R nx &#8594; R satisfying that</p><p>Remark 6: In Assumption 4, Item (A4.1) allows us to have uniform injectivity and continuity properties along solutions. Item (A4.2) ensures that no consecutive jumps can happen. Items (A4.3) and (A4.4) guarantee that a solution x of the system cannot stay inside of D or g(D) during flows and also forbid the solution from leaving C &#8746;D after a jump.</p><p>As done in <ref type="bibr">[19]</ref>, X being compact, we introduce a projection map &#928; T (X ) : R nz &#8594; T (X ) that satisfies</p><p>We know from Item (G.2) of Definition 4 that the restriction of T to C\D is injective, so T | C\D admits a left inverse on<ref type="foot">foot_2</ref> T (C\D) = T (C) = T (C &#8746; D). We thus define T inv :</p><p>which verifies</p><p>We then get the following result. Theorem 1: Suppose Assumptions 1, 2, and 4 hold. Pick n z &#8712; N, (A, B) &#8712; R nz&#215;nz &#215; R nz such that A + &#961;I Hurwitz for &#961; in Item (b) of Assumption 2, and T : C&#8746;D &#8594; R nz such that the conclusion of Lemma 1, both Items (G.1) and (G.2) of Definition 4 hold. There exists a class-K function &#945; and a positive scalar &#1013; &#8902; such that for any 0 &lt; &#1013; &lt; &#1013; &#8902; , there exists t &#1013; &#8805; 0 such that for any solution x to system (1) initialized in X 0 and any solution to</p><p>where y is the output of system (1), we have</p><p>where</p><p>Proof: We follow the same ideas as in the proof of <ref type="bibr">[19,</ref><ref type="bibr">Theorem 1]</ref>. Let x be a solution to system (1), initialized in X 0 . For &#1013; &gt; 0, define</p><p>Following <ref type="bibr">[19,</ref><ref type="bibr">Lemma 2]</ref>, relying on Assumption 4, there exists a class-K function &#945; such that for all &#1013; &lt; &#1013; &#8902; ,</p><p>Assume &#1013; &gt; 0 is small enough such that</p><p>is open relative to X and X is compact, we get that X \O D (&#1013;) is compact, so by Lemma 4, there exists a class-K function &#961; &#1013;,1 such that</p><p>A similar reasoning with O g(D) (&#1013;) shows that there exists a class-K function &#961; &#1013;,2 such that</p><p>By the conclusion of Lemma 1, there exists a C 1 map z : R &#8805;0 &#8594; R nz such that ( <ref type="formula">16</ref>) and ( <ref type="formula">17</ref>) hold. Since A is Hurwitz, any solution to <ref type="bibr">(27)</ref> is such that lim t&#8594;+&#8734; |z(t)&#7825;(t)| = 0, therefore, there exists t &#1013; &#8805; 0 such that</p><p>and thus, since z(t) &#8712; T (X ) by ( <ref type="formula">16</ref>) and Item (A4.1) of Assumption 4, for all t &gt; t &#1013; ,</p><p>Also by <ref type="bibr">(29)</ref>, for any (t, j) &#8712; dom x with t &#8712; &#964; &#945; (&#1013;), we have x(t, j) &#8712; X \(O D (&#1013;) &#8746; O g(D) (&#1013;)) = (X \O D (&#1013;))&#8745;(X \O g(D) (&#1013;)), and x(t) &#8712; X = (X \O D (&#1013;))&#8746; (X \O g(D) (&#1013;)). Thus x(t, j) and x(t) belong together to either X \O D (&#1013;) or X \O g(D) (&#1013;). Therefore, for any (t, j) &#8712; dom x with t &#8712; &#964; &#945; (&#1013;)&#8745;(t &#1013; , +&#8734;), if x(t, j), x(t) &#8712; X \O D (&#1013;) we have</p><p>&lt; &#961; &#1013; (&#961; -1 &#1013; (&#1013;)) &lt; &#1013;. And if x(t, j), x(t) &#8712; X \O g(D) (&#1013;), we have the same conclusion with &#961; &#1013;,2 instead of &#961; &#1013;,1 .</p><p>This result proves the convergence of the estimation x given by ( <ref type="formula">27</ref>) to the real solution x of system (1), but outside some intervals around the jump times t j , whose length tends to zero as time goes to infinity.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. APPLICATION TO STICK-SLIP ESTIMATION</head><p>We study the stick-slip phenomenon encountered, e.g., in rotary drilling <ref type="bibr">[31]</ref>. In this process, a hole is created several kilometers into the ground by a drill bit connected to the surface actuators by a series of pipes called the drill string. Only surface real-time measurements are usually available, and the estimation of downhole conditions is of paramount importance to improve efficiency and reduce failure. A simplified model of the rotational dynamics consists of two masses (top and bottom) connected by a torsional spring of stiffness k. The equations of motion and the output read</p><p>where &#969; 1 (resp., &#969; 2 ) is the top (resp., bottom) velocity of the bit string, and &#8710;&#952; models the distortion of the string. At the top, &#969; 1 is measured and regulated to</p><p>To model the dry friction between the string and the walls, we use a 2-parameter stiction model which cannot be seen as a differential inclusion and requires some switching/hybrid logic [32, Section 4.2]. While &#969; 2 &gt; 0, the friction equals -F d , and when the velocity decreases to 0 (with &#969;2 &lt; 0 and thus &#947;k&#8710;&#952; &#8804; F d ), &#969; 2 may either stick with &#969; 2 = 0, if the external force &#947;k&#8710;&#952; &#8712; [-F s , F d ] is not high enough to win over friction, or slip with &#969; 2 &lt; 0 if &#947;k&#8710;&#952; &#8804; -F s . And symmetrically for &#969; 2 &lt; 0. Then, once it has stuck, &#969; 2 may slip again with &#969; 2 &gt; 0 (resp., &#969; 2 &lt; 0) only if the external force &#947;k&#8710;&#952; overcomes static friction, i.e., becomes larger than F s (resp., smaller than -F s ). High-gain PI controllers and large static-to-dynamic friction ratios typically induce undesirable stick-slip limit cycles, i.e., periodic trajectories alternating stick and slip phases. All in all, these dynamics can be modeled using a hybrid system with state x = (&#8710;&#952;, &#969; 1 , &#969; 2 , q, &#951;, F s , F d ), where q is a logic variable that is 0 in the stick phase, 1 in the forward slip phase, and -1 in the backward slip phase, with the flow dynamics</p><p>where</p><p>with the flow sets</p><p>with the jump dynamics</p><p>where</p><p>with the jump sets</p><p>and the output y = h(x) = &#969; 1 .</p><p>Besides, &#951; is known from controller design. We observe that solutions are t-forward complete and the output is continuous at jumps. However, solutions are non-unique, neither in forward nor in backward time, so Item (A1.2) of Assumption 1 does not hold. Still, we use the KKLbased gluing approach presented in this paper to estimate the full state, as well as the friction parameters (F s , F d ).</p><p>Note that the jump/switching times modeling mode changes are unknown. The parameters that we use correspond to a 2700-meter long inclined well and read &#947; = 3.25, k = 0.08 (s -1 ), k p = 1.87 (s -1 ), k i = 7 (s -2 ), and &#969; ref = 1 (rad/s).</p><p>To implement the observer, we follow the approach of <ref type="bibr">[24]</ref>. First, note that, from the successive derivatives of &#969; 1 and knowing &#951;, (&#8710;&#952;, &#969; 2 ) are instantaneously observable during flows, F d is instantaneously observable during flows in the slip mode, while F s is visible when switching from stick to slip. Therefore, the system is backward distinguishable along solutions exhibiting stick-slip, with the information of F s "hidden" but present in the full output trajectory.</p><p>As in Example 2, we perform 20000 simulations of the interconnection ( <ref type="formula">31</ref>)- <ref type="bibr">(17)</ref>, with A = 0.01 diag <ref type="bibr">(5,</ref><ref type="bibr">6,</ref><ref type="bibr">7,</ref><ref type="bibr">8,</ref><ref type="bibr">9,</ref><ref type="bibr">10)</ref> and B = (1, . . . , 1), randomly initialized in [-5, 5] &#215; [0, 2] &#215; [0, 2]&#215;{0, 1}&#215;[-2, 2]&#215;[0, 10]&#215;[0, 5] (with the constraint that F d &#8804; 0.5F s ) and store 10 pairs (x, T (x)) in each simulation (after 100 units of time to get past the transient of z). Note that the eigenvalues in A are picked to be sufficiently slow to preserve the information of the stick-slip phenomenon. Then, regression is performed using a 3-layer Multi-Layer Perceptron (MLP) to compute (&#8710;&#952;, &#969; 2 , q) from (z, &#951;, &#969; 1 ), and two separate 10-layer MLPs to compute F s and F d from (z, &#951;, &#969; 1 ) (each layer contains a few hundred neurons). Given the discrete nature of q, the q-output of the first MLP is quantified through a threshold at 0.5 (the case where q = -1 is so rare that it is neglected as an outlier). The results of a simulation of the observer (27) (with T inv provided by the obtained NNs) are given in Figure <ref type="figure">3</ref>, where ( Fs , Fq ) are filtered to take into account their constant nature. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VI. CONCLUSION AND FUTURE WORK</head><p>In this paper, we have shown the possibility of using the KKL paradigm to systematically construct a gluing function into continuous-time dynamics admitting an observer in the form of a filter of the output. This allows us to build an observer for general hybrid systems with continuous outputs at jumps and unknown jump times. This is illustrated numerically by application to stick-slip parameter estimation.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>This is because x</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>&#8805; &#181; before a jump and x 2 &#8804; 0 after, and &#181; &gt; 0 along with the definition of the flow map, giving us a uniform bound between these values.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_2"><p>By Item (G.1) of Definition 4, T (D) = T (g(D)), and by Assumption 4, D &#8834; C and g(D) &#8834; C\D, so that T (D) &#8834; T (C\D), and T (C\D) = T (C\D) &#8746; T (D) = T (C).</p></note>
		</body>
		</text>
</TEI>
