This paper presents an algorithm for the design of a Generalized Dynamic Functional Observer (GDFO) for Takagi-Sugeno systems. A set of conditions are provided for the existence of the observer, which can be applied to the proportional functional observer that is presented as a particular case of the proposed generalized observer. Lyapunov function is used to find stability condition of the observer. Stability conditions are given in terms of linear matrix inequalities (LMIs). A glucose-insulin system example illustrates the performance and effectiveness of the proposed approach.
Fuzzy theory represents a solution to control complex systems in their whole operation range. Fuzzy theory has been gradually constituted as a powerful technique of control [1–4]. Fuzzy sets and fuzzy logic are a useful mathematical tools for modelling and controlling systems in industry, humanity, and nature (see [5–8]).
The Takagi-Sugeno (T-S) system is a class of fuzzy systems, it has been widely studied over the past few years because it can effectively represent the system dynamics of nonlinear systems. The T-S systems are based on fuzzy rules IF-THEN, which represent linear local relationships of input and output of a nonlinear system. The main characteristic of a T-S model is to express the local dynamics of each fuzzy rule by a linear model, valid locally in a corresponding region. The global diffuse model is achieved through a combination of linear local models. Over decades, stability analysis, optimization, observer construction, and controller design for Takagi-Sugeno fuzzy systems have been proposed as in [9–12].
Observers are mathematical algorithms that have become a useful tool because of their ability to estimate the state vector from measured inputs and outputs. Sometimes, state estimation is important for a wide range of applications in control, such as the design of a controller for output feedback and the detection of system failures. Often, in control applications, only a linear combination of state variables is required.
The idea of an observer to directly estimate a linear function of the state vector was initially proposed by [13], this observer was named as Functional observer. From this research, some works have been developed, as [14] where the authors present the necessary and sufficient conditions for the existence and stability of functional observers. Other works that address the design of functional observers reported in the literature are [15] among others. This type of observer has two main objectives, to estimate an specific set or state variables, or to estimate a control law that establishes the system from the input data and the measured outputs. Another important characteristic of the functional observer that has been widely studied is the condition of observability. In [16] they introduced the conditions of functional observability, and later, [17] simplified those conditions.
On the other hand, a new form of observer called generalized dynamic observer (GDO) which structure is formed by a dynamical part and a static part, it has been introduced for descriptor systems [18], linear time invariant systems [19], discrete-time systems [20] and continuous-time linear parameter variant (LPV) systems [21]. This observer structure is based on [22, 23], where the principal idea is to add dynamics to increase its degrees of freedom, with the purpose of achieving steady state accuracy and improve robustness in estimation error against disturbances and parametric uncertainties.
In this work, a Generalized Dynamic Functional Observer (GDFO) for Takagi-Sugeno type systems is proposed. The main contribution of this work is the structure of the GDFO, this observer presents an alternative structure that can be configured in a proportional functional observer (PFO) which is only a particular case. The main advantage of employing a functional observer lies in its ability to directly estimate a given linear function of the state vector without having to estimate all individual states, whereas a state observer design scheme can not (see Fig. 1).
Comparison of the classic regulation approach and the functional approach.
The case of study presented in this paper, is the glucose-insulin system, this system requires a control in the supply of insulin, an equivocal supply of this component in patients can take them to hyperglycemic or hypoglycemic levels. The portable device that supplies insulin is of limited dimensions [24], so information storage is also restricted, in this sense, the control design based on a functional observer presents an alternative of regulation of insulin supply, since it can generate directly an appropriate control law from the input data and the measured outputs, that regulates glucose levels in face of disturbances associated with food intake. On the other hand, with the classical approach of control based observer, it is first necessary to obtain the estimation of all the system state variables, and then with these estimates generate the control law, this task requires greater computational demand and therefore storage.
Notation: The symbol (*) denotes the transpose element on the symmetric position. In is an identity matrix of dimension n × n, onesn,m means a matrix of dimension n × m with all its elements one, A⊥ denotes a maximal row rank matrix such that A⊥A = 0, by convention A⊥ = 0 when A is of full row rank. The symbol A+ denotes any generalized inverse of the matrix A, satisfying AA+A = A. The symbol represents the first derivative of x (t) with respect to time, i.e. and represents the estimate of x (t).
Preliminaries
The proposed observer is developed for continuous-time Takagi-Sugeno systems, which can be expressed in the following form
where is the state vector of the system, is the input vector, is the measured output vector and is the linear function that is required to estimate. Ai, B, Δ, C and L are known constant matrices of appropriate dimensions, m is the number of local models, ωi are convex weighting functions depending on the premise variable vector ρ (t). The convex weighting functions satisfy the convex set sum property
The following definition introduces the concept of functional observability.
Definition 1. [16] Functional observability is a test of whether linear functions of states of a system can be inferred by knowledge of external outputs and inputs of the system.
Lemma 1.There exists a linear functional observer with arbitrary poles such that converges asymptotically to z (t) if the following two conditions are satisfied:
The matrix L must satisfy
The matrix L must satisfy, for all
Let us recall the following definition and lemma:
Definition 2. [25] The pairs (Ai, B) ∀i = 1, …, m are controllable if
where n is the dimension of Ai, then the system (1) is controllable.
Lemma 2. [26] Let matrices and be given. Then the following statements are equivalent.
There exists a matrix satisfying
The following condition holds:
Suppose that the above statements hold and further assume that . Then all matrices in statement i are given by
where is any matrix such that y σ > 0 is any scalar such that
Assumption 1. System (1) is controllable (see Definition 2).
Assumption 2. The conditions of Lemma 1 are verified, this implies that it is possible to estimate the function z (t) with the inputs and outputs measurements.
Problem statement
Let us consider the following generalized dynamic functional observer (GDFO) for system (1):
where represents the state vector of the observer, is an auxiliary vector and is the estimate of z (t). Ni, Hi, Fi, J, Si, Gi, Mi, P and Q are constant matrices of appropriate dimensions to be determined such that asymptotically converges to z (t).
Lemma 3.There exists an observer of the form (3)-(5) for system (1) if matricesare Hurwitz and if there exists a matrix T such that the following conditions are satified:
NiT + FiC - TAi = 0
J = TB
SiT + MiC = 0
PT + QC = L
Proof. Let be a parameter matrix and define the transformed error vector ɛ (t) = ζ (t) - Tx (t), such that its derivative is given by
By using the definition of ɛ (t) in (4) and (5), they can be rewritten as
Considering that conditions a)–c) are satisfied, then the dynamics error, formed by (6) and (7), can be written as:
and using condition d) we have the following expression from (8)
in this case if matrices are Hurwitz ∀i = 1, …, m we have that the , then .□
Generalized dynamic functional observer design
Parameterization of the observer matrices
Consider a matrix of full row rank with arbitrary elements, such that be a full column rank matrix.
Conditions c) and d) can be written as:
The necessary and sufficient condition for (11) to have a solution is . Once this condition is satisfied, there exist two matrices
and such that
which can be written as
where , since the the general solution of (13) is given by
which can be decomposed in
where
, and Z is a matrix of appropriate dimension with arbitrary elements.
Considering matrix T from equation (12), condition a) of Lemma 3 can be written as:
where . Equation (17) can be written as
The general solution of (18), considering the parameterization of matrix T is given by
where
, and and Y1,i are matrices of appropriate dimensions with arbitrary elements.
On the other hand, by using (12) we can obtain the following expression
replacing (23) in (11) we get
which leads to the following solution
where we have used the inverse as , with matrices Y2,i and Y3 as matrices of appropriate dimensions with arbitrary elements.
Then, matrices Si, Mi, P and Q can be written as
where and .
By using (19) and (26) the observer error dynamics (9) can be written as
where , , and .
The problem has been now reduced to find matrices and Z such that (30) is stable. This can be reached by using the linear matrix inequality (LMI) approach.
Observer stability analysis
In this section a method to design the observer is presented. The following theorem gives the LMI conditions that allow the obtention of all the observer matrices.
Theorem 1.There exists parameter matrices and Z such that system (30) is asymptotically stable if there exists a matrix such that the following LMI is verified
where , by using Lemma 2 matrix is parameterized aswhere is a matrix of arbitrary elements such that and σ > 0 is any scalar that satisfy:with
and.
Proof. Consider the following Lyapunov function
with . Its derivative along the trajectory of (30) is given by
The asymptotic stability of system (30) is guaranteed if and only if . This leads to the following LMI
which can be written as
where , and .□
According to Lemma 2 there exist matrices satisfying (37) if and only if the following condition holds:
with and ∀i ∈ 1, …, m defined in (46). Considering matrices and we obtain inequality (31). If (38) BO or its equivalence (31) is verified, then matrices are obtained as shown in (32).
The following algorithm summarize the observer design to obtain the corresponding matrices.
Algorithm 1:
Choose a matrix such that matrix Σ is of full column rank.
Compute the matrices N1,i, N2,i, N3, T1, T2, K1,K2, P1 and Q1 as shown in section 4.1.
Solve the LMI of the equation (31) to find matrices X and Z.
Choose a matrix , such that and a scalar σ > 1 such that ϑi > 0, then determine the parameter matrix as in the equation (32).
Compute all the matrices of the GDFO (3)-(5), using (19) to compute Ni, (32) to compute Hi and Gi, (26)-(29) to compute Si, Mi, P y Q taking matrix Y3 = 0. Fi is given in (22) and matrix J is given by the condition b).
Particular case
Proportional functional observer
In order to obtain a Proportional Functional Observer (PFO) from the structure of the GDFO, the following considerations must be taken into account: Hi = 0, Si = 0, Gi = 0 and Mi = 0, to obtain the following observer:
and the observer error dynamics (30) becomes:
where , and
. Consequently, matrices , and of Theorem 1. become
With these matrices the observer design can be obtained directly by applying Algorithm 1.
Application to a study case
Model of the glucose-insulin system
Diabetes mellitus is a group of metabolic disorders, whose main characteristic is the presence of high concentrations of glucose in the blood persistently or chronically, due either to a defect in the production of insulin, to a resistance to the action of it to use the glucose, to an increase in the production of glucose, or to a combination of these causes, these factors determine the type of diabetes either type 1 or type 2.
The model of the glucose-insulin that is shown in [27] is a modification of the minimal model of Bergman in [28] that represents the system of glucose-insulin of a patient with diabetes mellitus type 1. This model is described by the following equations:
where U (t) is the infusion of exogenous insulin, GΔ and IΔ represent the differences in plasma glucose concentration and plasma insulin concentration from their basal values Gb and Ib, i.e. G (t) = Gb + GΔ (t) and I (t) = Ib + IΔ (t). D (t) is a disturbance, which represents the effect of glucose resulting from a meal, which is given in the following form [28]
In the literature there is another way to represent the disturbance D (t), which can be calculated using the Rayleigh probability density function as follow:
with different values for k depending on the carbohydrates amount, and for the constant b [29].
The parameters definition and values are given in Table 1. It should be noted that for diabetic patients, the basal value of the insulin concentration in plasma Ib is not a natural value, but it must be interpreted as the objective value for the insulin infusion program.
Parameters definition
Parameter
Value
Definition
Gb
81[mg/dL]
Subject’s baseline glycemia
Ib
2.5[mU/dL]
Subject’s baseline insulinemia
VI
120[dL]
Insulin distribution volume
p1
Glucose mass action rate constant
p2
0.1
Rate constant expressing the spontaneous decrease of tissue glucose uptake ability
p3
0.00065
Insulin-dependent rate of increase in tissue glucose uptake ability, per unit of insulin concentration excess over baseline insulin
N
5/54
Fractional disappearance rate of insulin
drate
0.05
Decomposition rate of meal disturbance
B
15g, 19g, 18g
Amount of glucose ingested during the meal.
k
15, 18, 20
Constant depending on the size of the meal.
b
80
Constant for the Rayleigh probability density function.
Takagi-Sugeno formulation
The nonlinear sector approach is one of the most used for the construction of Takagi-Sugeno models and for the design of fuzzy control, since an exact representation of a nonlinear system can be obtained in a compact set of state space [30].
By following the methodology to represent a nonlinear model in a Takagi-Sugeno system using the nonlinear sector approach, the system (41)-(43) can be expressed as:
where
and w (t) = D (t). In this case, the nonlinearity of the system is given by
, there is a single nonlinearity, so then m = 2p local models are obtained, where p is the number of nonlinearities, is this case two local models are defined.
It is known that ρ (t) varies in a bounded region , where and are the lower and upper limit of variation of ρ (t).
In such way, that the membership functions are given by
so that, the following Takagi-Sugeno representation is obtained
where matrices B, D, Δ and C are defined in (46).
Regulation of the glucose-insulin system
This section presents the regulation of the glucose-insulin system by a functional observer to demonstrate the results obtained in this paper. The objective of the test is stabilizing the system using a functional observer, to compare the response of the GDFO and the PFO in presence of a disturbance due to food intake.
Considering the parameters of Table 1 the following matrices of the Takagi-Sugeno system (49) are obtained.
,
,
, ,
and .
The aim is to estimate a linear function that allows to stabilize the system, by using a functional observer. In this case, the matrix L of the function to be estimated, is determined by state feedback u (t) = - Kx (t) by assigning the poles of the system in a circular LMI region with center q = -0.11 and radio r = 0.13, to give us
By following Algorithm 1 the GDFO can be designed as follows:
1. Chose matrix such that rank (Σ) =3 .
2. Obtain matrices
, ,
,
,
,
and .
3. By using the YALMIP toolbox, to solve the LMI (31) finding
.
4. Consider matrix such that , and choose σ = 1000 such that ϑi > 0 then from (32) we obtain
5. Finally, we compute all the matrices of the observer, taking for simplicity Y3 = 0.
and
In order to provide a comparison between the performance of the GDFO, we have designed a PFO. By considering matrices and σ = 10 the following PFO matrices are obtained:
and
Simulation results
In the following section, two simulations are performed to regulate the glucose level in the presence of disturbances due to food intake. In the simulation 1, the disturbance considered is described by equation (44), which represents the rate at which glucose enters the blood from intestinal absorption following a meal. Three disturbances are considered with the amplitude of 15, 19 and 18g.
According to the literature a better way to represent the exogenous glucose input D (t) is by the Rayleigh probability density function, as is described in equation (45), where the value of k depends upon the amount of food consumed. Three disturbances are considered with k = 15 for 10g, k = 18 for 12g and k = 20 for 18g.
Simulation 1
In order to evaluate the performance of the proposed approach, a comparison of the glucose-insulin system response is made considering a constant supply of insulin (open loop) and considering the regulation made by the functional observer, as shown in Fig. 2
Glucose-insulin system in open and closed-loop.
Figure 3 show disturbance w (t) (Eq. (44)) that is associated with food intake during the course of the day.
Disturbance due to food intake w (t) from (44).
Figure 4 shows the exogenous insulin supply. The black line represents an open loop system where a constant supply of insulin is applied, with the value of u (t) =27.7778 mU/dL. The blue line is the exogenous insulin estimated by the GDFO and the red one is the control law estimated by the PFO.
Exogenous insulin signal u (t).
In Fig. 4 it can be seen how the control law compensates the effects of the disturbance in the system. Since the structure of the GDFO is more robust, the control law is greater, therefore it is expected that the GDFO regulate better the glucose level.
Figure 5 shows the regulation of the blood glucose level.
Blood glucose concentration G (t).
In the first figure, it can be seen that the GDFO and the PFO have almost the same behaviour, this is due to, both observer are designed using the same approach of Theorem 1. In the second figure, which is a zoom of the first disturbance, we can see that the glucose levels increase due to a disturbance by food intake. The insulin supply, shown in Fig. 4 has the task of bring these levels to baseline glucose values. Both observers achieve the regulation objective, however the GDFO reaches a lower glucose value. The reason is that the the GDFO has additional degrees of freedom in its structure, which allows it to obtain a control law (insulin supply) that minimizes the effect of the disturbance better.
Simulation 2
Figure 6 shows the the perturbation w (t) which is taken from equation (45).
Disturbance due to food intake w (t) from (45).
Figure 7 shows the control laws of exogenous insulin, which are computed by the functional observers. The behaviour of the control laws respond to the supply of insulin to compensate the presence of external glucose due to feeding.
Control law u (t).
The black line represents the constant supply of insulin (open loop), the blue line is the insulin provided by the GDFO and the red one the insulin estimated by the PFO. In this case, it is important to remark that, because the shape of the disturbance has changed, the amplitude of the control laws are less than in the previous simulation, even if the disturbances are almost the same.
The results presented in Fig. 8 are similar to those of the previous simulation. As the amplitude of the control laws are less, there is a higher level of glucose in the bloodstream. In the zoom figure, it can be seen that, for the smaller disturbance the glucose level in open loop (black line) is close to the hyperglycemia level (greater than ), whereas the control laws in closed loop allow to regulate better the levels of glucose preventing reaching at hyperglycemic levels.
Comparison of the glucose levels G (t) in open and closed loop.
Conclusion
In this paper, an alternative structure of a functional observer for Takagi-Sugeno systems is proposed. The necessary conditions for the existence of this observer are provided, and its stability is proved through the use of linear matrix inequalities. The presented approach unifies also the design for full ans reduced order observers for T-S systems. It was also shown that this observer is a generalization of the existing PFO; this observer is only a particular case. A glucose-insulin system was considered to show the performances of the observers designed. In simulation results, it was proved that GDFO is able to estimate a control law that regulates the glucose-insulin system. An algorithm is provided with the main steps involved in the design of the functional observer.
References
1.
Z.Miao, X.You and H.Zhen, A new method for fuzzy system representation and implementation, in Fifth International Conference on Fuzzy Systems and Knowledge Discover, Shandong, China,2008, pp. 1–5.
2.
K.Sun, S.Mou, J.Qiu, T.Wang and H.Gao, Adaptive fuzzy control for nontriangular structural atochastic switched nonlinear systems with full state constraints, IEEE Transactions on Fuzzy Systems27(8) (2018), 1587–1601.
3.
J.Li, S.Zhou and S.Xu, Fuzzy control system design via fuzzy lyapunov functions, IEEE Transactiona on systems man, and cybernetics-Part B: Cybernetics38(6) (2008), 1657–1661.
4.
J.Qiu, K.Sun, T.Wang and H.Gao, Observer-based fuzzy adaptive event-triggered control for pure-feedback nonlinear systems with prescribed performance, IEEE Transactions on Fuzzy Systems (2019), 1.
5.
D.Pamuar, L.Vasin, P.Atanasković and M.Miliić, Planning the city logistics terminal location by applying the green p-median model ans type-2 neurofuzzy network, Computational Intelligence and NeuroscienceID 6972818 (2016), 1–15.
6.
D.Pamuar, S.Ljubojević, D.Kostadinović and B.Dorović, Cost and risk aggregation in multi-objective route planning for hazardous materials transportation - a neuro-fuzzy and artificial bee colony approach, Expert Systems with Applications65 (2016), 1–15.
7.
V.Lukovac, D.Pamuar, M.Popović and B.Dorović, Portfolio model for analyzing human resources: An approach based on neuro-fuzzy modeling and the simulated annealing algorithm, Expert Systems with Applications90 (2017), 318–331.
8.
X.Su, F.Xia, J.Liu and L.Wu, Event-triggered fuzzy control of nonlinear systems with its application to inverted pendulum systems, Automatica94 (2018), 236–248.
9.
K.Tanaka, T.Ikeda and H.O.Wang, Fuzzy regulators and fuzzy observers: Relaxed stability conditions and lmi-based designs, IEEE Transactions on Fuzzy Systems6(2) (1998), 250–265.
10.
K.Tanaka, T.Taniguchi and H.O.Wang, Model-based fuzzy control of tora system: Fuzzy regulator and fuzzy observer design via lmis that represent decay rate, disturbance rejection, robustness, optimality, in Fuzzy Systems Proceedings, 1998. IEEE World Congress on Computational Intelligence, The 1998 IEEE International Conference on, IEEE, vol. 1, 1998, pp. 313–318.
11.
K.Tanaka, H.Yoshida, H.Ohtake and H.O.Wang, A sumof-squares approach to modeling and control of nonlinear dynamical systems with polynomial fuzzy systems, IEEE Transactions on Fuzzy Systems17(4) (2009), 911–922.
12.
M.Chen, P.Shi, C.-C.Lim, et al., Robust constrained control for mimo nonlinear systems based on disturbance observer, IEEE Trans Automat Contr60(12) (2015), 3281–3286.
13.
D.Luenberger, Observers for multivariable systems, IEEE Transactions on Automatic Control11(2) (1966), 190–197.
14.
M.Darouach, Existence and design of functional observers for linear systems, IEEE Transactions on Automatic Control45(5) (2000), 940–943.
15.
J.Moreno, Quasi-unknown input observers for linear systems, in Control Applications, 2001 (CCA’01) Proceedings of the 2001 IEEE International Conference on, IEEE, 2001, pp. 732–737.
16.
T.L.Fernando, H.M.Trinh and L.Jennings, Functional observability and the design of minimum order linear functional observers, IEEE Transactions on Automatic Control55(5) (2010), 1268–1273.
17.
L.S.Jennings, T.L.Fernando and H.M.Trinh, Existence conditions for functional observability from an eigenspace perspective, IEEE Transactions on Automatic Control56(12) (2011), 2957–2961.
18.
G.-L.Osorio-Gordillo, M.Darouach and C.-M.Astorga-Zaragoza, h1 dynamical observers design for linear descriptor systems. application to state and unknown input estimation, European Journal of Control26 (2015), 35–43.
19.
N.Gao, M.Darouach, H.Voos and M.Alma, New unified h1 dynamic observer design for linear systems with unknown inputs, Automatica65 (2016), 43–52.
20.
N.Gao, M.Darouach and M.Alma, h1 dynamic observer design for discrete-time systems, in Proceedings of the 20th IFAC World Congress, IFAC, Toulouse, France, IEEE, 2017, pp. 2811–2816.
21.
A.-J.Pérez-Estrada, G.-L.Osorio-Gordillo, M.Darouach and V.-H.Olivares-Peregrino, Generalized dynamic observer design for quasi-lpv systems, At-Automatisierungstechnik66(3) (2018), 225–233.
22.
H.-J.Marquez, A frequency domain approach to state estimation, Journal of the Franklin Institute340 (2003), 147–157.
23.
J.-K.Park, D.-R.Shin and T.-M.Chung, Dynamic observer for linear time-invariant systems, Automatica38(6) (2002), 1083–1087.
Z.Yang, V.Michel, Y.Wang and Z.Chen, Hybrid controllability of linear switched systems, in IEEE Conference Decicion on Control, 1998, pp. 4350–4355.
26.
R.Skelton, T.Iwasaki and K.Grigoriadis, A unified algebraic approach to linear control design, 1998.
27.
A.De Gaetano, D.Di Martino, A.Germani and C.ManesMathematical models and state observation of the glucoseinsulin homeostasis, in IFIP Conference on System Modeling and Optimization, Springer, 2003, pp. 281–294.
28.
M.E.Fisher, A semiclosed-loop algorithm for the control of blood glucose levels in diabetics, IEEE Transactions on Biomedical Engineering38(1) (1991), 57–61.
29.
C.L.Chen and H.W.Tsai, Modeling the physiological glucose-insulin system on normal and diabetic subjects, Computer Methods and Programs in Biomedicine97 (2010), 130–140.
30.
Z.Lendek, T.M.Guerra, R.Babuska and B.De Schutter, Stability analysis and nonlinear observer design using Takagi-Sugeno fuzzy models, Springer, 2011.