scieee AI-readable full text Open interactive document viewer

Nonlinear Observability Algorithms with Known and Unknown Inputs: Analysis and Implementation

Martínez López, Nerea; Villaverde, Alejandro F.

Abstract

The observability of a dynamical system is affected by the presence of external inputs, either known (such as control actions) or unknown (disturbances). Inputs of unknown magnitude are especially detrimental for observability, and they also complicate its analysis. Hence, the availability of computational tools capable of analysing the observability of nonlinear systems with unknown inputs has been limited until lately. Two symbolic algorithms based on differential geometry, ORC-DF and FISPO, have been recently proposed for this task, but their critical analysis and comparison is still lacking. Here we perform an analytical comparison of both algorithms and evaluate their performance on a set of problems, while discussing their strengths and limitations. Additionally, we use these analyses to provide insights about certain aspects of the relationship between inputs and observability. We found that, while ORC-DF and FISPO follow a similar approach, they differ in key aspects that can have a substantial influence on their applicability and computational cost. The FISPO algorithm is more generally applicable, since it can analyse any nonlinear ODE model. The ORC-DF algorithm analyses models that are affine in the inputs, and if those models have known inputs it is sometimes more efficient. Thus, the optimal choice of a method depends on the characteristics of the problem under consideration. To facilitate the use of both algorithms, we implemented the ORC-DF condition in a new version of STRIKE-GOLDD, a MATLAB toolbox for structural identifiability and observability analysis. Since this software tool already had an implementation of the FISPO algorithm, the new release allows modellers and model users the convenience of choosing between different algorithms in a single tool, without changing the coding of their model

Full text

mathematics Article Nonlinear Observability Algorithms with Known and Unknown Inputs: Analysis and Implementation Nerea Martínez 1,2,3 and Alejandro F. Villaverde 1,* 1BioProcess Engineering Group, IIM-CSIC, 36208 Vigo, Galicia, Spain; [email protected] 2Department of Applied Mathematics II, University of Vigo, 36310 Vigo, Galicia, Spain 3Department of Applied Mathematics, University of Santiago de Compostela, 15782 Santiago de Compostela, Galicia, Spain *Correspondence: afvillaver[email protected] Received: 30 September 2020; Accepted: 22 October 2020; Published: 29 October 2020   Abstract: The observability of a dynamical system is affected by the presence of external inputs, either known (such as control actions) or unknown (disturbances). Inputs of unknown magnitude are especially detrimental for observability, and they also complicate its analysis. Hence, the availability of computational tools capable of analysing the observability of nonlinear systems with unknown inputs has been limited until lately. Two symbolic algorithms based on differential geometry, ORC-DF and FISPO, have been recently proposed for this task, but their critical analysis and comparison is still lacking. Here we perform an analytical comparison of both algorithms and evaluate their performance on a set of problems, while discussing their strengths and limitations. Additionally, we use these analyses to provide insights about certain aspects of the relationship between inputs and observability. We found that, while ORC-DF and FISPO follow a similar approach, they differ in key aspects that can have a substantial influence on their applicability and computational cost. The FISPO algorithm is more generally applicable, since it can analyse any nonlinear ODE model. The ORC-DF algorithm analyses models that are affine in the inputs, and if those models have known inputs it is sometimes more efficient. Thus, the optimal choice of a method depends on the characteristics of the problem under consideration. To facilitate the use of both algorithms, we implemented the ORC-DF condition in a new version of STRIKE-GOLDD, a MATLAB toolbox for structural identifiability and observability analysis. Since this software tool already had an implementation of the FISPO algorithm, the new release allows modellers and model users the convenience of choosing between different algorithms in a single tool, without changing the coding of their model. Keywords: observability; identifiability; nonlinear systems; control theory; differential geometry; software 1. Introduction Mathematical models of ordinary differential equations (ODEs) are used in all areas of science and technology for describing nonlinear systems. The ODEs define the evolution of the system state variables x(t) with respect to time, while the measurable quantities y(t) are defined by the output function. The model equations (ODEs and output function) may contain unknown parameters θ , and external inputs that may be known ( u(t) ) or unknown ( w(t) ). The structure of the model equations determines whether it is possible to estimate the model unknowns from the outputs. The theoretical possibility of inferring the states (respectively parameters) from the outputs is called observability (respectively structural identifiability) [ 1 , 2 ]. Since a parameter can be considered as a state variable with time derivative equal to zero, structural identifiability can be considered as a particular case of observability. Additionally, the possibility of recovering the unknown inputs is called reconstructibility Mathematics 2020,8, 1876; doi:10.3390/math8111876 www.mdpi.com/journal/mathematics Mathematics 2020,8, 1876 2 of 27 or input observability. For simplicity, in this manuscript we use the word observability for all model unknowns, that is, to refer to the possibility of determining states, parameters, and/or inputs from the output. We assume that the model structure—the ODEs and output function—is known and correct. The assessment of the possible existence of alternative structures capable of generating exactly the same output is a different albeit related problem [3] that is not addressed in the present article. The concept of observability arose in systems and control theory. It was initially defined for linear models and extended to the nonlinear case afterwards [ 4 ]. The concept of structural identifiability, on the other hand, was motivated by the analysis of biological models [ 5 ], due to the specific challenges that parameter identification poses in mathematical biology and other biosciences. Hence, many observability analysis methods developed in that context aimed at analysing structural identifiability and were named accordingly, even though they could be applied or adapted to the more general task of analysing observability. Examples of software tools include DAISY [ 6 ], COMBOS [ 7 ], IdentifiabilityAnalysis [8], STRIKE-GOLDD [9], GenSSI [10], and SIAN [11]. The existence of external inputs affects the observability of a model and determines which methods can be applied for its analysis. A key distinction is between known and unknown inputs, where "known" is interpreted as "quantified"; thus, we are aware of the existence of an unknown input but not of its magnitude. A known input that can be manipulated is also called a control input, or simply a control. An unknown input can be considered as an unmeasured disturbance or as a time-varying parameter. Some techniques are applicable specifically to uncontrolled systems [ 12 ], while others allow for the existence of known inputs. To the best of our knowledge, the first works describing algorithms capable of handling unknown inputs were presented by [ 13 , 14 ]. These methods are not applicable to systems in which the outputs are direct functions of the inputs, and do not analyse the observability of the unknown input itself. To address these issues, two differential geometry algorithms called ORC-DF—observability rank criterion with direct feedthrough [ 15 ]—and FISPO—full input, state, and parameter observability [ 16 ]— have been recently presented. Both methods are capable of determining the observability of states and parameters, and unknown inputs of nonlinear ODE models. ORC-DF is applicable to affine-in-the-inputs systems, while FISPO does not have this requirement. The latter algorithm is already implemented in the STRIKE-GOLDD toolbox [9]. In the present paper we perform a critical examination of the ORC-DF and FISPO algorithms. First we provide the necessary background on observability analysis and differential geometry in Section 2. Then we perform a theoretical analysis of the two methods in Section 3, showing that they are equivalent for systems without known inputs, and that they differ for other classes of models, as a result of building different observability matrices. Realising the convenience of having both algorithms available in the same software environment, we provide their implementations in a new version of the MATLAB toolbox STRIKE-GOLDD, which is described in Section 4. The new release includes an implementation of ORC-DF, and a seamless integration with the already existing FISPO. Furthermore, it enables the automatic analysis of multi-experiment observability throughout any of the two implemented algorithms. Since ORC-DF and FISPO are symbolic algorithms that can be computationally expensive, in Section 5we evaluate their performances by applying them to a number of modelling problems of different domains, from mechanical engineering to biology, and report their applicability and computational costs. The analysis of the selected case studies is also helpful for obtaining detailed insights about the inner workings of the algorithms. Finally, we conclude with a discussion of the results in Section 6. Mathematics 2020,8, 1876 3 of 27 2. Materials and Methods 2.1. Notation and Model Classes We are interested in studying the observability of nonlinear systems of the following (fairly general) form: Σ=˙ x=f(x,θ,u,w), (1) y=h(x,θ,u,w), (2) where f and h are nonlinear and analytical (infinitely differentiable) functions of the model variables (which depend on time t∈I=[0, T) , T> 0), i.e., system states x(t)∈Rnx , a set of inputs, both known u(t)∈Rnu , and unknown w(t)∈Rnw , and unmeasured parameters θ∈Rnθ . On the other hand, the system output vector y(t)∈Rm consists of measured functions of model variables. We assume that nx , m≥ 1, while nθ , nu , and nw are non-negative integers. Note that the dependence of model variables over time is omitted from the Equations (1)–(2) for simplicity of notation. As a special case of Σ we also study affine-in-inputs systems, which are given by the expressions: ΣA=˙ x=f0(x,θ)+∑nu i=1fui(x,θ)ui+∑nw i=1fwi(x,θ)wi, (3) y=h0(x,θ)+∑nu i=1hui(x,θ)ui+∑nw i=1hwi(x,θ)wi, (4) where f0 , fui , fwj and h0 , hui , hwj are—possibly nonlinear—analytical functions for 1 ≤i≤nu , 1≤j≤nw, and: f=fxw + nu ∑ i=1 fuiui,h=hxw + nu ∑ i=1 huiui, (5) where, following [15]: fxw =f0+ nw ∑ i=1 fwiwi,hxw =h0+ nw ∑ i=1 hwiwi. (6) Note that, as in Equations (3) and (4) , the functions f0 , fui , fwi , h0 , hui , hwi can depend on (x,θ) , but we omit this dependency in the expressions above and elsewhere when convenient. In what follows, a vector v∈Rn is assumed to be a one column matrix and vT its transpose. The Jacobian matrix of a function φ=(φ1,. . . ,φs) with respect to a vector field v=(v1, . . ., vn) , will be denoted as: ∂φ ∂v="∂φi ∂vj#ij , 1 ≤i≤s, 1 ≤j≤n. 2.2. Background 2.2.1. Structural Identifiability, Observability, and Differential Geometry Roughly speaking, a nonlinear system Σ is structurally observable if it is possible to distinguish between its state trajectories from the data provided by its output, and structurally reconstructible (or input observable) if its disturbances can be tracked from the aforementioned measurements. Similarly, Σ is said to be structurally identifiable if it is possible to infer the values of its unknown parameters from the output. In practice, it is often not necessary distinguish between every pair of unmeasured states in the phase mapping of Σ —a property called structural global observability—and it is sufficient to distinguish neighbouring states—a property called local "weak" observability in some texts [ 4 ]. In this work we will not further make this distinction, and local "weak" structural Mathematics 2020,8, 1876 4 of 27 observability will be simply called observability. Likewise, we will refer to structural local "weak" identifiability simply as identifiability. Structural identifiability can be addressed as a particular case of observability. This is because any unknown parameter θi of Σ can be considered as a zero-dynamics state, that is, the equation ˙ θi= 0 holds for 1 ≤i≤np. It is then possible to augment the system state as: ¯ x=xθT, (7) which consists of n¯ x=nx+nθcomponents and follows the augmented dynamics: ˙ ¯ x=f(x,θ,u,w)T01×npT=¯ f(¯ x,u,w). (8) Thus, the identifiability and observability of Σ can be studied as the observability of the augmented system (totally equivalent to the original one) with state vector (7) , dynamics (8) , and output (2) , the same as Σ. The algorithms analysed in this work adopt a differential geometry approach, which relies on the use of the concept of Lie derivative to bring out algebraic (and in some sense, geometric) tests suitable to address the study of observability of analytic systems Σ . Let us consider first the simpler case in which Σis not dependent on unknown inputs: Σ0(˙ x=f(x,θ,u), y=h(x,θ,u). Definition 1 (Lie derivative [ 17 ]) . Consider the system Σ0 with augmented state vector (7) and augmented dynamics (8) . Fixing the control variables u ,the Lie derivative of the output function h(,u) in ¯ x along the tangent vector field ¯ f=¯ f(·,u)is: L¯ fh(¯ x,u)=∂h ∂¯ x(¯ x,u)¯ f(¯ x,u). Furthermore, setting L0 ¯ fh=h ,the i -order Lie derivative of h(·,u) (along the vector field ¯ f=¯ f(·,u)) can be recursively computed in ¯ x as: Li¯ fh(¯ x,u)=L¯ fLi−1 ¯ fh(¯ x,u),i≥1. The above definition does not capture the effect of possible time variations in the control variables. To account for it, this notion can be extended as follows: Definition 2 (Extended Lie derivative [ 8 ]) . Consider the system Σ0 with augmented state vector (7) , augmented dynamics (8) , and assume that the controls u=(u1, . . ., unu) are analytical functions on I= [ 0, T) , T> 0. The extended Lie derivative of the output function h in ¯ x by the tangent vector field ¯ f=¯ f(·,u)is: Le¯ fh(¯ x,u)=∂h ∂¯ x(¯ x,u)¯ f(¯ x,u)+∂h ∂u(¯ x,u)˙ u. Moreover, setting Le,0 ¯ fh=h,the i-order extended Lie derivative of h can be recursively computed in ¯ x as: Le,i ¯ fh(¯ x,u)= ∂Le,i−1 ¯ fh ∂¯ x(¯ x,u)¯ f(¯ x,u)+ i−1 ∑ j=0 ∂Le,i−1 ¯ fh ∂uj)(¯ x,u)uj+1),i≥1, (9) Mathematics 2020,8, 1876 5 of 27 where u j+1)(j≥0)stands for the (j+1)-order time derivative of u. Remark 1. For any fixed controls u(t) ,assuming Σ is complete and denoting ¯ xu 0(t) the state trajectory such that: (˙ ¯ xu 0(t) = ¯ f¯ xu 0(t),u(t),t∈I, ¯ xu 0(0) = ¯ x0, then, in the case of constant inputs u(t) = u0∈Rnu,the Lie derivative introduced in Definition (1)verifies: y(0) =h(¯ xu 0(t),u0)(0) = L0 ¯ fh(¯ x0,u0), y0(0) = d dt h(¯ xu 0(t),u0)(0) = ∂h ∂¯ x(¯ xu 0(t),u0)˙ ¯ xu 0(t)t=0=∂h ∂¯ x(¯ x0,u0)¯ f(¯ x0,u0) = L¯ fh(¯ x0,u0), y00(0) = d dt L¯ fh(¯ xu 0(t),u0)(0) = ∂L¯ fh ∂¯ x(¯ xu 0(t),u0)˙ ¯ xu 0(t)t=0=∂L¯ fh ∂¯ x(¯ x0,u0)¯ f(¯ x0,u0) = L2 ¯ fh(¯ x0,u0), . . . yi)(0) = d dt Li−1 ¯ fh(¯ xu 0(t),u0)(0) = L¯ f(Li−1 ¯ fh(¯ xu 0(t),u0))t=0=Li¯ fh(¯ x0,u0),i≥0, which can be proven by using repeatedly the chain rule. Likewise, if u(t) are time-varying and u( 0 ) = u0 , the extended Lie derivative of Definition (2)verifies: yi)(0) = Le,i ¯ fh(¯ x0,u0),i≥0. Given a nonlinear system Σ0 with augmented state (7) and analytical inputs, it is possible to use the extended Lie derivatives of the output to build (symbolically) the following mn ¯ x×n¯ xmatrix: OI(¯ x,u)=∂ ∂¯ xL0 ¯ fh(¯ x,u)TL¯ fh(¯ x,u)TL2 ¯ fh(¯ x,u)T. . . Ln¯ x−1 ¯ fh(¯ x,u)TT, (10) which is the observability-identifiability matrix of Σ0 . Note that the assumption of analytic controls is conservative, since it suffices that they are differentiable up to order nd=n¯ x− 1. By calculating the rank of the above matrix, it is possible to establish the observability and identifiability of Σ0 using the following condition. Theorem 1 (Observability-identifiability condition, OIC [ 8 ]) . If the identifiability-observability matrix (10) of a model Σ0 satisfies rank(OI(¯ x0,u)) =n¯ x ,with ¯ x0 being a (possibly generic) point in the augmented state space (8)of Σ0, then the system is structurally locally observable and structurally locally identifiable. Remark 2. The rank of (10) is constant except for a zero-measurement subset in the augmented state space (8) of Σ0 where the rank is smaller, as a consequence of the system being analytical [ 18 ]. Thus, to verify the condition of the Theorem 1it is sufficient to calculate the rank of (10)at any non-singular point of the phase space. 2.2.2. FISPO Unknown inputs w can be taken into account by further augmenting the phase mapping of Σ , including w as unmeasured states. Thus, for any non-negative integer l we have the l -augmented state vector: xl=x,θ,w, . . ., wl), (11) Mathematics 2020,8, 1876 6 of 27 which follows the l-augmented dynamics: ˙ xl=fl(xl,u) = f(x0,u)T01×npwT. . . (wl+1))TT, leading to the l-augmented system: Σl(˙ xl=fl(xl,u,wl+1)), y=h(x0,u).(12) An analogous extension for affine systems ΣA exists. Using the notation given in (5) and (6) , the l-augmented system described above takes the form [13]: Σl A(˙ xl=fl xw(xl,wl+1)) + ∑nu i=1fl ui(x,θ)ui, y=hxw(x0) + ∑nu i=1hui(x,θ)ui, where the l-augmented dynamics is decomposed as follows: fl xw xl,wl+1)=fxw(x0)T01×np˙ wT. . . (wl+1))TT, (13) fl ui(x,θ)=fui(x,θ)01×np01×(l+1)nwT, 1 ≤i≤nu. (14) We note that, in order to build l -augmented systems Σl and Σl A , it must be possible to calculate the l+ 1-time derivative of disturbances w(t) , and therefore, they will be considered as analytical functions from now on (again, this hypothesis is more restrictive than necessary). We also note that the l -augmented form of Σ and ΣA is totally equivalent to the original system, and consists of nl=nx+nθ+(l+1)nw states, nu controls, nw disturbances (the l+ 1-order time derivatives of w ) and moutputs, that have not changed due to state augmentation [13]. As an additional hypothesis we assume that a non-negative integer s exists (possibly s= +∞) such that ws)(t)6= 0 and wi)(t) = 0 for all i>s . In principle, this assumption introduces a restriction on the type of allowed inputs, and it is equivalent to assuming that the disturbances are (s order) polynomial functions of time. Nevertheless, in practice, the method may still provide relevant information about the analytical case, as is discussed in [16]. In what follows, if a vector function φ=(φ1, . . ., φr),r≥1, depends on variables xlwe denote: dlφ(xl) = ∂φ ∂xl(xl) = "∂φi ∂xl j (xl)#ij , 1 ≤i≤r, 1 ≤j≤nl, Lflφ(xl) =dlφ(xl)fl(xl,wl+1)), and if φ=φ(·,u)(where controls uare considered to be analytical on the time interval I), then: Le flφ(xl,u) = dlφ(xl,u)fl(xl,u,wl+1)) + ∂φ ∂u(xl,u)˙ u. Definition 3 (Full input-state-parameter observability, FISPO [ 16 ]) . Consider the system Σ and the augmented state vector z(t) = (x(t),θ,w(t)) .We say that Σ has the FISPO property if, for every t0∈I and 1 ≤i≤n0 , zi(t0) can be locally determined from the output y(t) and the known inputs u(t) = (u1(t), . . ., unu(t)) in a finite time interval ht0,tfi⊂I .Thus, a system Σ is FISPO if, for every z(t0) and Mathematics 2020,8, 1876 7 of 27 for almost any vector z∗(t0) ,there is a neighbourhood N(z∗(t0)) such that, for all ˆ z(t0)∈ N (z∗(t0)) , the following condition holds: y(t,ˆ z(t0))=y(t,z∗(t0)) ⇒ˆ zi(t0)=z∗ i(t0), 1 ≤i≤n0. Remark 3. The original definition of the term FISPO reproduced above refers to a model property. Here we also use it to refer to the algorithm presented for its evaluation by [16]. Using the system augmentation (12) and taking the unique l=s such that ws)(t)6= 0 and wi)(t) = 0 for all i>s, it is possible to build the following matrix, Og I(xs,u)=dsL0 fsh(xs,u)TLfsh(xs,u)TL2 fsh(xs,u)T. . . Lns−1 fsh(xs,u)TT, (15) which is the generalised observability matrix of Σ . Note that (15) coincides with the observability matrix (10) of Σs without disturbances. Thus, the rank of Og I provides a condition for assessing the observability of Σas follows: Theorem 2 (FISPO condition [ 16 ]) . A nonlinear system Σ given by (1-2) with analytic inputs is FISPO if, for xs 0 being a (possibly generic) point in the state space of the s -augmented system Σs ,the generalised observability matrix (15) verifies rank(Og I(xs 0,u)) = ns. Remark 4. For 1 ≤i≤ns ,the observability of the i -th state of xs can also be studied using the matrix (15) . Thus, if Og,i I(xs 0 , u) denotes the matrix obtained from Og I(xs 0 , u) after removing its i -th column, state xi is observable if rank(Og,i I(xs 0,u)) <rank(Og I(xs 0,u)) for almost any xs 0in the phase space of Σs. 2.2.3. ORC-DF The observability of affine systems ΣA with bounded measurable controls u(t) can also be analysed by building a different observability matrix, as explained below. For a full description of the procedure, see [15]. Definition 4 (Observability rank criterion for systems with direct feedthrough, ORC-DF) . A system ΣA is classified as k -row observable if almost any initial state xk(t0) , t0∈I ,in the state space of the k -augmented system Σk A can be separated locally from its neighbours based on the output at k+ 1consecutive times t0 , t1 , . . . , tk.If there exists k ≥1such that ΣAis k-row observable, it is said that ΣAsatisfies the ORC-DF. Lemma 1. Consider the system ΣA, and the vector field Ωk,which is recursively defined for k ≥0by: Ω0=hT xw hT u1. . . hT unuT,∆Ω0=Ω0, ∆Ωk+1=Lfk xw (∆Ωk)TLfk u1(∆Ωk)T. . . Lfk unu(∆Ωk)TT, Ωk+1=ΩT k∆ΩT k+1T, then ΣAis k-row observable if rank(dkΩk(xk 0)) = nkfor almost any xk 0in the phase space of Σk A. Lemma 2. If ΣAsatisfies the ORC-DF, then ΣAis observable in the presence of unmeasured inputs. Corollary 1. Let dkΩi k denote the matrix that is obtained after removing the i -th column from dkΩk .The i -th state of xk is k -row observable if and only if rank(dkΩi k(xk 0)) <rank(dkΩk(xk 0)) for almost any xk 0 in the phase space of Σk. Mathematics 2020,8, 1876 8 of 27 3. Theory: Analysis of the FISPO and ORC-DF Algorithms In this section we discuss the similarities and differences between FISPO and ORC-DF, whose pseudo-code is provided in Algorithms 1and 2. 3.1. Preliminary Remarks We begin by recalling three facts that are relevant for the analysis: (i) The FISPO algorithm does not always require building the full matrix (15) (a full matrix can be obtained for undisturbed systems Σ0 or assuming wj)= 0 for j>s , where s is a non-negative integer), (ii) Both ORC-DF and FISPO can be inconclusive for certain models, and (iii) ORC-DF and FISPO can handle different types of inputs, although both methods allow the study of observability in the presence of generic (measurable) controls. Remark 5 (The FISPO algorithm does not always require building the full matrix) . In each iteration k≥ 1the FISPO algorithm builds the matrix Ok I(xk , u) ,composed by extended Lie derivatives of output up to order k ,and then calculates its rank and partial ranks, instead of directly building the full matrix (15) . The algorithm is programmed in this way because the matrix Ok I(xk , u) can reach full rank for some k≤ns− 1, and if the number of states increases indefinitely (s=∞) , (15) can never be built in practice. In addition, the above procedure may classify some states as observable before obtaining the full matrix (15) , since any observable state in the k -augmented system Σk remains observable in Σl ,for l≥k [ 13 ]. Moreover, if the system does not have unknown inputs it is possible to classify it as unobservable or unidentifiable using fewer than n˜ x−1Lie derivatives [19]. Remark 6 (Both ORC-DF and FISPO can be inconclusive for certain models) . If the model under study has unknown inputs and their time derivatives ws)(t) do not vanish for any non-negative integer s<+∞ , both FISPO and ORC-DF algorithms can be inconclusive. This happens when the rank of the observability matrices grows at each iteration without reaching a value equal to the number of states (which also increases with each iteration). Therefore, a computational implementation of both algorithms should include shutdown conditions based on computation time or number of iterations. This impediment can also be avoided by assuming that s <∞,which implies: xk=xs, fk=(fs)T01×(k−s)nwT, for any k >s,so the observability matrix constructed by FISPO at k-th iteration is: Ok(xk,u) = dkL0 fkh(xk,u). . . Lk fkh(xk,u)=dsL0 fsh(xs,u). . . Lk fsh(xs,u), while, in the case of affine-in-inputs systems, ORC-DF can be modified at each iteration k>s to account for the above assumption, by taking: xk=xs, fk xw =(fs xw)T01×(k−s)nwT, dkΩk=dsΩk. Actually, ORC-DF is designed to work with unknown inputs such that ws)(t)are piecewise constant for s=∞but, obviously, if ws)(t) = 0for a finite integer s,this condition is trivially verified. Mathematics 2020,8, 1876 9 of 27 Algorithm 1 The FISPO algorithm [16]. Result: Observable and unobservable states, parameters and disturbances. k=0, x0=xTθTwTT,n0=nx+nθ+nw,Λ0=1,2, . . ., n0; f0=fT01×nθ˙ wTT; O0 I=d0h; while rankOk I<nkdo k=k+1; xk=xk−1Twk)TT,nk=nk−1+nw,Λk=Λk−1∪nnk−1+1,nk−1+2, . . . ,nko; Ok I= Ok−1 I0 dkLe,k fk−1h!; for i∈Λkdo Ok,i I=Ok I−{i column}; if rankOk,i I<rankOk Ithen xiis observable; Λk=Λk−{i}; end end fk=fk−1Twk+1)TT; end Algorithm 2 The ORC-DF algorithm [15]. Result: Observable and unobservable states, parameters and disturbances. k=0, x0=xTθTwTT,n0=nx+nθ+nw,Λ0=1,2, . . ., n0; f0 xw =fT xw 01×nθ˙ wTT,f0 ui=fT ui01×nθ01×nwT, 1 ≤i≤nu; ∆Ω0=hT xw hT u1. . . hT unuT,Ω0=∆Ω0; while rankdkΩk<nkdo k=k+1; ∆Ωk=Lfk−1 xw (Ωk−1)TLfk−1 u1(Ωk−1)T. . . Lfk−1 unu (Ωk−1)TT,Ωk=ΩT k−1∆ΩT kT; xk=xk−1Twk)TT,nk=nk−1+nw,Λk=Λk−1∪nnk−1+1,nk−1+2, . . . ,nko; dkΩk= dk−1Ωk−10 dk∆Ωk!; for i∈Λkdo dkΩi k=dkΩk−{icolumn}; if rankdkΩi k<rankdkΩkthen xiis k-row observable; Λk=Λk−{i}; end end fk xw =fk−1T xw wk)TT,fk ui=fk−1T ui01×nwT, 1 ≤i≤nu; end Mathematics 2020,8, 1876 16 of 27 The state vector is x=(x1,x2,˙ x1,˙ x2) and the unknown parameters are θ=(k1,δk1,m2) . Two external forces act on the system as inputs, one of known magnitude, u(t) = F1(t) , and another of unknown value, w(t) = F2(t). The remaining parameters k2,m1,c1and c2are known. Since there is an unknown input acting on the model, it is necessary to include its time derivatives in the extended state vector. The 0-augmented state is x0=(x1,x2,˙ x1,˙ x2,k1,δ,k1,m2,w) , which follows the dynamics: ˙ x0=f0(x0,u,˙ w) = f0 xw(x0,˙ w) + f0 u(¯ x)u=f(x,θ,u,w)T000 ˙ wT, where the contribution of the known input is: f0 u(¯ x)=0 0 1/m100000T. First we consider the case in which the unknown disturbance w(t) is assumed constant, ˙ w(t) = 0. The results are shown in Figure 3. After calculating three Lie derivatives both algorithms conclude that the system is identifiable, observable and invertible. It should be noted that for this model FISPO always leads to the result shown in Figure 3A, regardless of the number of known input derivatives assumed to be non-zero (note that the figure shows the constant case ˙ w(t) = 0, but this property is fulfilled for any analytical disturbance w(t)). 123 Order of Lie derivatives F2 m2 deltak1 k1 dx2 dx1 x2 x1 (A) FISPO Unobservable states Observable states 123 Order of Lie derivatives F2 m2 deltak1 k1 dx2 dx1 x2 x1 (B) ORC-DF Unobservable states Observable states 0123 Order of Lie derivatives 0 1 2 3 4 5 6 7 8 9 Observability Rank (C) Observability ranks ORC-DF FISPO Figure 3. Analysis of the 2DOF model. ( A , B ) Results of the FISPO and ORC-DF algorithms, respectively, with ˙ w= 0. The panels show the states classified as observable or unobservable as a function of the number of Lie derivatives calculated by each algorithm. ( C ) Observability rank obtained by each algorithm as a function of the number of Lie derivatives. The full rank is equal to the number of states, i.e., eight. Next, we consider a time-varying unknown input, assuming that ws)= 0 for some s> 1. For this case, the model is again classified as fully observable by both algorithms. However, the paths that they follow to reach that conclusion are different. The number of Lie derivatives required by FISPO to classify the model as observable increases as s grows, due to the number of states in each stage also increasing without reaching full rank, so FISPO does not reach any conclusion when s= +∞ . In contrast, ORC-DF ends at most in four iterations, regardless of the value of s≥ 1 (including the case s=∞) . This situation is illustrated in Figure 4, which shows the number of Lie derivatives required by each algorithm to achieve a result for 0 ≤s≤10. Mathematics 2020,8, 1876 17 of 27 012345678910 Number of non-zero w derivatives 3 4 5 6 7 8 9 10 11 Number of Lie derivatives Number of Lie derivatives required to achieve full rank vs number of non-zero w derivatives (k) ORC-DF FISPO Figure 4. Number of Lie derivatives needed by each algorithm for building the full-rank observability matrix for the 2DOF model as a function of s , the number of non-zero w(t) time derivatives, for 0 ≤s≤10. A difference between the procedures carried out by both algorithms for this model is that—similarly to the case of parameter b in the C2M example, mentioned in Appendix A—the expressions obtained by ORC-DF determine that the unknown parameter m2 can be calculated directly from the measurements since the first iteration as: Lf0 uh(x,θ,u,w)=c2/(m1m2). In the case of FISPO, in contrast, the parameter m2 is the last to be classified as identifiable, which happens at the same time in which the entry w(t) is classified as invertible for a sufficiently large s(s≥5). 5.4. A Model with a Known or Unknown Input: "HIV" Next we consider a model of HIV dynamics in the human body given by [22]:                  ˙ TU=λ−ρTU−ηTUV, ˙ TI=ηTUV−δTI, ˙ V=NδTI−cV, y1=V, y2=TI+TU, where the states are x=(TU,TI,V) , the unknown parameters vector is θ=(λ,ρ,δ,N,c) , and η(t) is a time-varying input, the infection rate. As was established in Section 3.2, if η(t) is unknown, ORC-DF and FISPO become the same algorithm (leaving aside implementation details). If η(t)is known and time-varying, they differ. This model was analysed with FISPO by [ 16 ] considering two possibilities, i.e., η(t) known and unknown. In both cases the model is classified as observable and identifiable by FISPO. In the latter case, the number of Lie derivatives necessary to achieve this conclusion grows with the number of derivatives of η(t) assumed to be non-zero, as happened with the 2DOF model analysed in Section 5.3. It is possible to analyse the HIV model with the ORC-DF algorithm, since it is affine in input. With the infection rate considered known, i.e., u(t) = η(t) , the functions of the affine formulation (13) and (14) are written as: fxw (x,θ)=λ−ρTU−δTINδTI−cVT, fu(x,θ)=−TUV TUV0T, hxw (x,θ)=h(x,θ)=V TI+TUT, Mathematics 2020,8, 1876 18 of 27 while if it is unknown, w(t) = η(t), we have: fxw (x,θ,w)=f(x,θ,w), hxw (x,θ,w)=h(x,θ,w). If the infection rate is considered known, both algorithms classify the model as observable and identifiable, regardless of the number of input derivatives assumed non-zero by FISPO. Figure 5 illustrates this fact, where the results obtained by FISPO have been represented for a generic analytical input. The observability matrix calculated by ORC-DF has full rank after including Lie derivatives up to second order, so the number of its rows is ∑2 i=0m(1+nu)i+1=∑2 i=0 2 i+2= 26 (actually, 14 rows after excluding dependent rows arising from the equality hu=0) while the matrix constructed by FISPO needs to include Lie derivatives up to order three to achieve full rank, so it has m(k+1) = 8 rows. This is an example of a model for both algorithms perform similarly; although FISPO needs to calculate one more Lie derivative to classify the system as observable, ORC-DF calculates ranks of matrices of greater dimension, resulting in similar computational cost of the calculations involved in each algorithm. As can be seen in Figure 5C, the ranks of both observability matrices coincide up to the first iteration, as a consequence of: hu(x,θ)=Lfuh(x,θ)=0 0T. 123 Order of Lie derivatives c N V TI TU (A) FISPO Unobservable states Observable states 1 2 Order of Lie derivatives c N V TI TU (B) ORC-DF Unobservable states Observable states 0123 Order of Lie derivatives 0 1 2 3 4 5 6 7 8 9 Observability rank (C) Observability ranks ORC-DF FISPO Figure 5. Analysis of the HIV model with the FISPO and ORC-DF algorithms, with the input η(t) considered known. ( A , B ) Results of the FISPO and ORC-DF algorithms, respectively: the panel shows the states classified as observable or unobservable as a function of the number of Lie derivatives calculated by each algorithm. ( C ) Observability rank obtained by each algorithm as a function of the number of Lie derivatives. The full rank is equal to the number of states, i.e., eight. Mathematics 2020,8, 1876 19 of 27 5.5. A Genetic Toggle Switch with Two Inputs: "TS" Let us now consider the following model of a genetic toggle switch [23]:                    ˙ x1=k01 +k1 1+x2/1+(aTc/θaTc)ηaTc ηTetR −x1, ˙ x2=k02 +k2 1+x1/1+(IPTG/θIPTG)ηIPTG ηLacI −x2, y1=x1, y2=x2, where x=(x1,x2) is the state vector and the inputs are aTc(t) and IPTG(t) . The remaining variables are unknown parameters. This model is an example that cannot be analysed by ORC-DF algorithm, since it is not affine in inputs. It was analysed with FISPO in [ 16 ], considering both measured and unmeasured inputs. If both inputs are known, FISPO classifies the model as structurally identifiable, as long as neither input is constant. If the inputs are unknown FISPO concludes that some parameters become unidentifiable. For more details we refer the reader to [16]. 5.6. A Signalling Pathway with Five Known Inputs: "JAK-STAT" To show the computational limitations of the two algorithms, we analyse here a model that pushes them to their limits. It is a classic model of the JAK-STAT signalling pathway presented by [ 24 ], which has 25 states, 26 unknown parameters, and 5 inputs. The output consists on 15 measured functions of the model variables that depend only on one of the external signals ui , which is not involved in system dynamics, that is, fui(x,θ)=025×1(20) huj(x,θ)=015×1, 1 ≤j≤5, j6=i(21) The model equations are provided in Appendix C. This model was analysed with FISPO in [ 25 ], concluding that all its parameters are structurally identifiable but two of its 25 states are non-observable. The calculations are computationally expensive, requiring the use of procedures supported in STRIKE-GOLDD—such as model decomposition or successive executions after removing parameters previously classified as identifiable—in order to reach the conclusion. Thus, the model was first analysed after setting the maximum computation time of each Lie derivative to 100 seconds, which allowed FISPO to calculate 5 Lie derivatives and to classify 17 parameters and 4 states as observable. Next, the 17 parameters were specified as previously classified in the FISPO options, thereby removing them from further consideration and decreasing the size of the problem, and the model was decomposed. The post-decomposition analysis classified five additional parameters as identifiable. After removing them, it was possible to analyse the remainder of the model and reach the aforementioned conclusion. With ORC-DF we did not manage to analyse the model due to computational limitations (specifically, insufficient memory). The different computational requirements of ORC-DF and FISPO are shown in Table 2. Table 2. Results and computation times of ORC-DF and FISPO for the JAK-STAT model. ORC-DF FISPO Iteration 1 2 3 4 5 1 2 3 4 5 Number of rows 180 930 4680 23430 117180 30 45 60 75 90 Rank 24 35 40 42 44 20 28 34 39 43 Rank computation time [s] 0.54 2.18 15.36 170.95 3600.54 0.40 0.76 3.46 59.55 362.78 Observable variables 14 21 29 29 29 8 12 15 15 21 Mathematics 2020,8, 1876 20 of 27 Table 2shows that the number of rows of the matrix built by ORC-DF grows rapidly at each iteration (even though the implementation removes null rows arising from dependencies in (20) and (21) , which is why the number of rows of the ORC-DF matrix does not match the number given in Section 3.3). Although this matrix leads to higher ranks than the one built by FISPO, especially at the beginning of the execution (i.e., with few Lie derivatives), the difference decreases soon and the ranks of the two matrices are similar despite the big difference in the number of rows. With five Lie derivatives, ORC-DF labels 27 model variables as observable (9 states and 18 parameters), including those classified as observable by FISPO (21: 4 states and 17 parameters). However, the computation time of ORC-DF at that point is roughly ten times higher than FISPO, and memory requirements impede further progress with this algorithm. 6. Conclusions In this paper we have analysed two recent algorithms for observability analysis of nonlinear systems with known and/or unknown inputs, which we refer to as ORC-DF and FISPO. Our analyses have revealed the key similarities and differences between them. The main conclusions can be summarized as follows. First, we have proven theoretically that for models without known inputs both algorithms are basically equivalent, since they calculate the rank of the same observability matrix. In contrast, for models with known inputs—e.g., for controlled systems—the two algorithms differ, since they build different observability matrices. Specifically, the number of rows of the matrix built by ORC-DF increases more at each iteration than the one built by FISPO. We have shown that this increased growth is often an advantage of ORC-DF, since it makes it possible to reach full rank—and thus, to conclude that a model is observable—with less Lie derivatives, and hence less computational cost; an example was shown in Section 5.1. However, said increased growth is not always advantageous: as we have noted in Section 3.3, it can also be detrimental to the efficiency of ORC-DF. The latter situation may happen when the structure of the model equations is such that the increase in problem dimension outweighs the increase in information resulting from the inclusion of a new Lie derivative; we provided an example in Section 5.6. When applying FISPO to a model with unknown input(s) it is usually necessary to assume that their derivatives, ws) , are zero for orders higher than a finite s , which amounts to assuming that the unknown inputs are polynomial functions. This is not a theoretical requirement—and in fact, a counter-example that did not require this assumption was shown in [ 16 ]—but it is often necessary in practice in order to reach a conclusion in finite time. This was indeed the case for the models with unknown inputs that we analysed in this paper. It should be noted that the results obtained under this assumption are not necessarily valid if the unknown input has nonzero derivatives of order higher than s. We remark that this assumption of polynomial inputs does not apply to known inputs; FISPO does not require this assumption for their analysis, and it is not used by ORC-DF either. That being said, it must be taken into account that in certain applications there are experimental limitations that do not allow one to use sophisticated input signals for system identification. This situation is common in biological modelling, where often times only constant or ramp inputs can be applied. The implications of such limitations in observability can be taken into account by specifying that the derivatives of the known inputs, us) , are zero for orders higher than a finite s . This option is available in STRIKE-GOLDD. Another difference between both algorithms lies in the types of models and known inputs that they can analyse. In regard to model types, FISPO is applicable to a general class of nonlinear ODE models, while ORC-DF is applicable to a subclass of those models: the ones that are affine in the inputs. There is an additional, albeit subtle, difference between both algorithms in regard to the known inputs: FISPO considers infinitely differentiable ("smooth") functions, while ORC-DF considers piecewise constant inputs. It should be noted however that an affine system that is observable for Mathematics 2020,8, 1876 21 of 27 piecewise constant inputs is also observable for smooth inputs; therefore, ORC-DF can also establish the observability of (affine) models with continuous inputs. In a new release of the STRIKE-GOLDD toolbox (v2.2) we have included an implementation of the ORC-DF algorithm, thus allowing the user to apply different algorithms with the same tool and model definition. It should be noted that the implementations of the FISPO and ORC-DF algorithms included in the STRIKE-GOLDD toolbox have a number of additional features that increase the efficiency of the core algorithms analysed here, as noted in Section 4. We used the new implementations in STRIKE-GOLDD 2.2 to benchmark the algorithms with several models taken from the literature. Our selection of case studies included both simple models, used for illustrating the inner workings of the algorithms in detail, and more complex models whose analysis is computationally challenging, which we used for pushing the algorithms to their limits. We also provided an example of a model that cannot be analysed with ORC-DF due to being not affine in the inputs. In conclusion, the theoretical and computational analyses presented here have informed us about the differences between the ORC-DF and FISPO algorithms, showing that they represent complementary techniques for solving an often challenging problem, and clarifying when one may be preferred over the other. The release of a new version of the MATLAB toolbox STRIKE-GOLDD that includes implementations of both algorithms provides the convenience of performing different analyses with minimal intervention from the user. Author Contributions: A.F.V. designed and supervised the research; N.M. implemented the software and performed the computational experiments; N.M. and A.F.V. analysed the algorithms and the results; N.M. and A.F.V. wrote the manuscript. All authors have read and agreed to the published version of the manuscript. Funding: This research was supported by the Spanish Ministry of Science, Innovation and Universities through the project SYNBIOCONTROL (reference DPI2017-82896-C2-2-R). We acknowledge support of the publication fee by the CSIC Open Access Publication Support Initiative through its Unit of Information Resources for Research (URICI) and by the Xunta de Galicia through grant ref. IN607B 2020-03. Conflicts of Interest: The authors declare no competing interests. Data and Materials Availability: The methods and models used in this paper are available in the GitHub repository as part of release v2.2 of the STRIKE-GOLDD toolbox: https://github.com/afvillaverde/strike-goldd. Appendix A. Analysis of the Lie Derivatives of the C2M Case Study Let us first consider the FISPO algorithm and the model with a non-constant input. As shown in Figure 1C, in this case there are six independent extended Lie derivatives of the output, which are given by: Mathematics 2020,8, 1876 22 of 27 L0 fh(x)=x1,(A1) Lfh(x)=−(k1e+k12)x1+k21x2+bu,(A2) L2 fh(x)=(k1e+k12)2+k21k12x1−(k1e+k12 +k21)k21x2−(k1e+k12)bu +b˙ u,(A3) L3 fh(x)=−(k1e+k12)3+k12k21 (k1e+k12)+k12k21 (k1e+k12 +k21)x1+(k1e+k12 +k21)k2 21x2+(A4) (k1e+k12)2+k12k21k21x2+(k1e+k12)2+k21k12bu −(k1e+k12)b˙ u+b¨ u, L4 fh(x)=(k1e+k12)4+2k12k21 (k1e+k12)2+k12k21 (k1e+k12 +k21)2+k2 12k2 21x1−(A5) (k1e+k12)3+2k12k21 (k1e+k12)+2k12k2 21 +k21 (k1e+k12)2+k2 21 (k1e+k12 +k21)k21x2− (k1e+k12)3+2k12k21 (k1e+k12)+k12k2 21bu +(k1e+k12)2+k21k12b˙ u−b(k1e+k12)¨ u+bu3), L5 fh(x)=−(k1e+k12)5+3k12k21 (k1e+k12)3+3k2 12k2 21 (k1e+k12)+k12k2 21 (k1e+k12)2+2k2 12k2 21x1+(A6) k12k21 (k1e+k12) (k1e+k12 +k21)2+k12k3 21 (k1e+k12 +k21)x1+(k1e+k12)4k21x2+ k21 (k1e+k12)2(2k12 +k21)+k12k21 (k1e+k12 +k21)2+k3 21 (k1e+k12 +k21)k21x2+ k21 (k1e+k12)3+2k12k2 21 (k1e+k12)+2k12k3 21 +k2 12k2 21 +3k2 12k2 21 (k1e+k12)k21x2+ (k1e+k12)4+2k12k23 (k1e+k12)2+k2 12k2 21 +k12k21 (k1e+k12 +k21)2bu +(k1e+k12)3b˙ u 2k12k21 (k1e+k12)+k12k2 21b˙ u+(k1e+k12)2+k21k12b¨ u−b(k1e+k12)u3)+bu 4). Assuming (for simplicity) that uk)= 0 for k> 1, and writing Lifh=yi)( 1 ≤i≤ 5 ) , from (A1)–(A6) we obtain: x1=y, (A7) bu =y0+(k1e+k12)y−k21x2, (A8) k2 21x2=k12k21y−(k1e+k12)y0−y00 +b˙ u, (A9) k21b˙ u=y000 +k1ek21y0+(k1e+k12 +k21)y00, (A10) k1ek21y00 =−y4)−(k1e+k12 +k21)y000, (A11) (k1e+k12 +k21)y0002−y4)y00=y5)y00 −y4)y000. (A12) Therefore, from the above system we can extract directly the following input–output expressions: x1=φ0(y,y0,. . . ,y5),u,˙ u), (A13) k1e+k12 +k21 =φ1(y,y0,. . . ,y5),u,˙ u), (A14) k1ek21 =φ2(y,y0,. . . ,y5),u,˙ u), (A15) k21b=φ3(y,y0, . . ., y5),u,˙ u), (A16) where φi(0≤i≤3) are functions that depend only on the output, the input, and their time derivatives. It is possible to obtain similar input–output expressions for any variable involved in the model by determining the unique solution of the system (A7)–(A12), which consists of six independent equations and six unknowns. Note that the assumption uk)= 0 for k> 1 does not imply loss of generality, because the presence of higher order derivatives does not affect the unicity of the solution of (A1)–(A6) (if anything, they would contribute to the independence of the equations). By inspecting Equations (A7)–(A12) it is possible to explain the classification obtained by FISPO and shown in Figure 1A (blue line), since it is not possible to obtain such an input–output expression Mathematics 2020,8, 1876 23 of 27 for any unmeasured variable until calculating the fifth Lie derivative (A6) , when the ambiguities in the equations are finally resolved. (Note that this result requires excluding those states and parameters in the phase space for which the denominators in the input–output expressions vanish. However, since the system is analytical these states form a zero measurement subset.) Let us consider now the FISPO algorithm in the constant input case. From Figure 1C it follows that the equations obtained (A1)–(A6) are dependent. The following system of equations is extracted from (A1)–(A5): x1=y, (A17) k21x2=y0+(k1e+k12)y−bu, (A18) k21bu =y00 +k1ek21y+(k1e+k12 +k21)y0, (A19) k1ek21y0=−y000 −(k1e+k12 +k21)y00, (A20) (k1e+k12 +k21)y002−y000y0=y0y4)−y00y000. (A21) Using Equations (A17) and (A19–A21), it is possible to write the combinations x1 , k21b , k1e+k12 + k21 y k1ek21 exclusively in terms of the input and output of the model. Thus, after replacing in (A18) , the system to be solved is: x1=φ0(y,y0,. . . ,y4),u), (A22) k1e+k12 +k21 =φ1(y,y0,. . . ,y4),u), (A23) k1ek21 =φ2(y,y0,. . . ,y4),u), (A24) k21b=φ3(y,y0, . . ., y4),u), (A25) k21x2=y0+ (φ1(y,y0, . . ., y4),u)−k21)y−φ3(y,y0,. . . ,y4),u)u/k21, (A26) which has six unknowns and five independent equations (infinite solutions), so it is not possible to write (at least, locally) any of the parameters or the unknown state x2 as a function of the input and output. This scenario is shown in Figure 1A (red line). We consider now the ORC-DF algorithm. Instead of (A1)–(A6), this method computes the following Lie derivatives (independent of the control values, since they are assumed to be piecewise constant): L0=h(x)=x1, (A27) L1=Lfxw h(x)=−(k1e+k12)x1+k21x2, (A28) L2=Lfuh(x)=b, (A29) L3=L2 fxw h(x)=(k1e+k12)2+k21k12x1−(k1e+k12 +k21)k21x2, (A30) L4=LfuLfxw h(x)=−b(k1e+k12), (A31) L5=L3 fxw h(x)=−(k1e+k12)3+2k21k12 (k1e+k12)+k2 21k12x1+(A32) (k1e+k12)2+k2 21 +k21 (k1e+2k12)k21x2, L6=LfuL2 fxw h(x)=b(k1e+k12)2+k21k12. (A33) Mathematics 2020,8, 1876 24 of 27 The system (A27)–(A33) has a unique solution, in which one of the equations depends on the others. The solution, obtained from (A27)–(A31) and (A33) , is given as a function of Lie derivatives Li , i∈{0,1,2,3,4,6}, as follows: x1=L0, x2=(L1L2−L0L4)2/(L2(L0L6−L2L3)+L4(L1L2−L0L4)) , k1e=L2(L3L4−L1L6)/(L2(L0L6−L2L3)+L4(L1L2−L0L4)) , k12 =(L1L2−L0L4)(L2L6−L2 4)/(L2(L0L6−L2L3)+L4(L1L2−L0L4)) , k21 =(L2(L0L6−L2L3)+L4(L1L2−L0L4)) /(L1L2 2−L0L2L4), b=L2. Therefore, the ORC-DF algorithm classifies the C2M model as observable and identifiable after the third iteration. We note that Equation (A29) implies that parameter b can be calculated directly from the output. Appendix B. Analysis of the Lie Derivatives of the Bolie Case Study Assuming non-constant input, FISPO calculates six independent Lie derivatives of the output, as shown in Figure 2C: L0 fh(x,θ,u) =q1/Vp,(A34) Lfh(x,θ,u) = (p1q1−p2q2+u)/Vp,(A35) L2 fh(x,θ,u) = (p2 1−p2p4)q1−(p1+p3)p2q2+p1u+˙ u/Vp,(A36) L3 fh(x,θ,u) = p1(p2 1−p2p4)−p2p4(p1+p3)q1−p2 1−p2p4+p3(p1+p3)p2q2/Vp+(A37) (p2 1−p2p4)u+p1˙ u+¨ u/Vp, L4 fh(x,θ,u) = ((p2 1−p2p4)2−p2p4(p1+p3)2)q1+ (p1+p3)(p2 1−2p2p4+p2 3)p2q2/Vp+(A38) (p3 1−2p1p2p4−p2p3p4)u−((p2 1−p2p4)˙ u+p1¨ u+... u)/Vp, L5 fh(x,θ,u) = (p2 1(p1−p2p4)2−p2p4(p1+p3)(2p2 1+p2 3−p2p4))q1−(p1−p2p4)2p2q2/Vp−(A39) (p3(p1+p3)(p2 1−2p2p4+p2 3)−p2p4(p1+p3)2)p2q2+ (p2 1−p2p4)2u/Vp+ −p2p4(p1+p3)2u+ (p3 1−2p1p2p4−p2p3p4)˙ u+ (p2 1−p2p4)¨ u+p1u3)+u4)/Vp. System (A34)–(A39) has infinite solutions, since it is composed by six equations and seven unknowns, but similarly to the C2M case study, it is possible to perform a series of algebraic manipulations on the above equations to obtain an input–output expression for the variables q1 , p1,p3and Vp, as it shown in Figure 2. In the case of constant input, Equations (A34)–(A39) become redundant, so there are only five independent Lie derivatives, as is shown in Figure 2. The combinations p1+p3 , p1p3+p2p4 are the only observable functions of the variables that can be extracted from (A34)–(A38). Since the rational combinations of these functions are insufficient to determine any of the parameters or states, all variables are non-observable, as shown in Figure 2A (red line). Mathematics 2020,8, 1876 25 of 27 On the other hand, ORC-DF calculates the following Lie derivatives: h(x,θ)=q1/Vp,(A40) Lfxw h(x,θ)=(p1q1−p2q2)/Vp,(A41) Lfuh(x,θ)=1/Vp,(A42) L2 fxw h(x,θ)=p2 1−p2p4q1−(p1+p3)p2q2/Vp,(A43) LfuLfxw h(x,θ)=p1/Vp,(A44) L3 fxw h(x,θ)=p1(p2 1−p2p4)−(p1+p3)p2p4q1−(p2 1−p2p4) + p3(p1+p3)p2q2/Vp,(A45) LfuL2 fxw h(x,θ)=p2 1−p2p4/Vp.(A46) From Equations (A40) , (A42) , and (A44) it is easy to obtain the state q1 and the parameters Vp and p1 uniquely from the measurements, using Lie derivatives up to order two. This property is not fulfilled by the system formed by (A34)–(A39); Figure 2A shows that the aforementioned variables are classified as observable by FISPO only after considering fifth order derivatives. Using the input–output expressions of q1 , Vp , and p1 extracted from (A40) , (A42) and (A44) , in conjunction with Equations (A41) , (A43) and (A46) , it is also possible to determine parameter p3 as a function of the Lie derivatives of the output. However, Figure 2C shows that system (A40)–(A46) contains one redundant equation, so it is not possible to determine uniquely an input–output expression of the remaining unmeasured states. It can also be noted that any rational combination of the observable variables with the functions p2q2and p2p4is also observable. Appendix C. Equations of the JAK-STAT Model The dynamics of the JAK-STAT model analysed in Section 5.6 is given by: ˙ x1=x2345x8θ11/θ26 −k5x1θ10/M1, ˙ x2=k5x1θ10/M1−x2θ7/M1−x2x8θ11/θ26 −3x2θ7/((θ8x6+1)M1), ˙ x3=θ7x2/M1−θ11x8x3/θ26 −3θ7x3/((θ8x6+1)M1), ˙ x4=3x2θ7/((θ8x6+1)M1)−θ7x4/M1−θ11x8x4/θ26, ˙ x5=θ7x4/M1−θ11x8x5/θ26 +3θ7x3/((θ8x6+1)M1), ˙ x6=−x6(θ9/θ25)(x5+x3), ˙ x7=θ13x8−x7(θ12/θ25)x2345, ˙ x8=x7(θ12/θ25)x2345 −θ13x8, ˙ x9=k6θ23x11/k7−x9(θ22/θ25)x2345/M1−x9θ21(x5+x3)2/((x18θ3/θ1+1)M1θ2 25), ˙ x10 =x9θ22x2345M1/θ25 −θ24x10 +x9θ21(x5+x3)2/(θ2 25(x18θ3/θ1+1)M1), ˙ x11 =k7θ24x10/k6−θ23x11, ˙ x12 =−x12θ4−θ5x11(k1−1)/θ27, ˙ x13 =x12θ4−x13θ4, ˙ x14 =x13θ4−x14θ4, ˙ x15 =x14θ4−x15θ4, ˙ x16 =x15θ4−x16θ4, ˙ x17 =x16θ4k6/k7−x17θ5, ˙ x18 =x17θ1θ6−x18θ6+k2θ6θ2θ1, ˙ x19 =−x19θ18 −θ19x11(k1−1)/θ27, ˙ x20 =x19θ18 −x20θ18, ˙ x21 =x20θ18 −x21θ18, ˙ x22 =x21θ18 −x22θ18,