Next Article in Journal
Research Progress of Complex Network Modeling Methods Based on Uncertainty Theory
Next Article in Special Issue
Validation of a Probabilistic Prediction Model for Patients with Type 1 Diabetes Using Compositional Data Analysis
Previous Article in Journal
On the Equational Base of SMB Algebras
Previous Article in Special Issue
Analyzing an Epidemic of Human Infections with Two Strains of Zoonotic Virus
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Proof of Concept Control of a T1DM Model Using Robust Fixed-Point Transformations via Sliding Mode Differentiators

by
Bence Czakó
*,†,
Dániel András Drexler
and
Levente Kovács
Physiological Controls Research Center, Óbuda University, 1034 Budapest, Hungary
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2023, 11(5), 1210; https://doi.org/10.3390/math11051210
Submission received: 20 January 2023 / Revised: 22 February 2023 / Accepted: 27 February 2023 / Published: 1 March 2023
(This article belongs to the Special Issue Modelling and Control in Healthcare and Biology)

Abstract

:
Type 1 Diabetes Mellitus (T1DM) is a disease where insulin production is obstructed in the pancreas, and exogenous administration of the hormone must be utilized. Automatic control of the administration can be achieved using the Artificial Pancreas (AP) concept, whose performance is heavily reliant on the underlying control algorithm. A Robust Fixed-Point Transformations (RFPT)-based control strategy was designed to automate the insulin delivery process, which incorporates a Sliding Mode Differentiator (SMD) to provide higher order derivatives of the blood glucose level. Inter-patient variability, carbohydrate disturbances, and real-life sampling were included in the validation of the method. Results showed that the algorithm could regulate the blood glucose level, with a significant overshoot at the beginning of the control action due to the adaptive nature of the controller. Results indicate that the design requires additional modifications to be feasible in practice, including an extended validation with more virtual patients and realistic simulation settings in the future. Nevertheless, the current control algorithm has several attractive features, which are discussed with respect to PID and Model Predictive Control (MPC).

1. Introduction

Automatic control of physiological systems is one of the most challenging areas of control theory. In physiological systems, measurements and input actions often have significant limitations, while many sources of disturbance might be apparent, which are hard to characterize or compensate for. Some successful applications of physiological control include the optimization of drug delivery, automated anesthesia, or the automated treatment of Diabetes Mellitus (DM).
DM is one of modern society’s most prevalent diseases, with an estimated 536.6 million cases in 2021, projected to increase to 783.2 million cases in 2045 [1]. In general, DM is a collection of diseases with insufficient insulin production by the pancreas in response to carbohydrate (CH) intake. DM has several different manifestations, each originating from a specific biological factor. Of all the possible variants, type 1 (T1DM) and type 2 (T2DM) DM have the most significant prevalence, thus being the target of an automated solution. While T1DM is an inherited autoimmune disease, where the malfunction of the pancreas starts at an early age, T2DM is a disease connected to the patient’s lifestyle. A significant difference between the two conditions is that T1DM cannot be cured completely (currently), but T2DM could be reversed in some instances by introducing measures that target unhealthy lifestyle choices.
As a consequence, early attempts to implement an automated scheme targeted the T1DM condition, due to the limited number of interplaying factors that lead to the disease compared to the T2DM variant [2]. A significant achievement in this regard was the development of the Artificial Pancreas (AP) concept, where an external device controls the exogenous insulin administration instead of relying on the self-administration of the patient by an insulin pen [3]. Such a device can provide tighter blood glucose (BG) regulation, thus leading to an improved quality of life for the patient [4]. The two main physical components of the AP concept are the Continuous Glucose Monitoring Sensor (CGMS), providing essentially real-time measurements on the BG level of the patient, and an insulin pump, which can administer the insulin in a precise manner [5]. In order to automate the process, a sophisticated control algorithm must also be implemented, which calculates the insulin administration based on the measured BG levels. The implementation of such an algorithm is difficult in practice, which can be attributed to the unique physiological characteristics of the patient, as well as the absence of information on the CH intake, which presents a disturbance in the control operation. Numerous algorithms exist in the literature, in which PID-control- and Model-Predictive-Control-based approaches were tested in clinical trials [6,7]. Nevertheless, a large number of other alternatives were also investigated in the research community, including Sliding Mode Control [8], Tensor-Product-based control [9], or fuzzy control [10]. A comprehensive review of the available control algorithms can be found in the surveys [11,12].
In our current research, the application of the Robust Fixed Point Transformation (RFPT)-based control was investigated on the T1DM problem. The method can be classified as an adaptive nonlinear control method, where a fixed-point iteration eliminates parametric errors and other disturbances arising from the Input–Output (IO) linearization principle [13,14]. Using the RFPT in the context of T1DM control was reported in [15,16] and [17]. These works were proof-of-concept studies, with several limitations regarding the possible real-life application.
Since the RFPT method relies on the IO linearization principle, a major issue that must be addressed is the acquisition of high-order derivatives of the measured variable, namely the BG level. Estimating the derivatives is a highly nontrivial task and has been one of the fundamental issues in control theory. One possible approach is the use of Sliding Mode Differentiators (SMD), which can provide higher-order derivatives of online sampled signals, developed initially by [18]. Both continuous and discrete time formulations are available in the approach of [19,20]. The algorithm uses a dynamical system to estimate the derivatives of a given signal, where each state variable represent a derivative order. When the system is solved, the exact values of the derivatives are obtained in finite time due to the discontinuity in the structure of the ODEs.
In the current paper, we aim to develop an RFPT controller which is validated through simulations, where multiple real-life factors are addressed. Our novelty in this work is that the design of the controller is based on a rigorous theoretical foundation developed in previous papers [15,21], rather than ad hoc observations. Additionally, the controller is also augmented with an SMD, which can provide higher-order derivatives of online sampled signals. Moreover, this is the first time in the literature that the SMD is connected to the RFPT methodology, which can be beneficial for the future development of the control technique. The implementation of the algorithm was based on an identifiable virtual patient (IVP) model, introduced in [22], and the design was tested using virtual patients in silico, where parametric uncertainty, CH disturbance, and sampling time were also considered.
In Section 2, preliminaries of the IO linearization principle are presented in conjunction with the RFPT method and the SMD. In Section 3, the application of the theory is shown on the IVP model and the controller design is performed. In Section 4, simulation results of the closed-loop system are presented, with additional analysis on the achieved results. Conclusions and future research directions are presented in Section 5.

2. Materials and Methods

The RFPT method is an extension of the IO linearization principle, where an iteration aims to eliminate the mismatch between the predicted output of the system model and its measurement through an additional dynamic variable. Convergence of the iteration eventually results in the original IO linearized version of the controller. In the original IO linearization, a state transformation is calculated, which renders the original system into a chain of integrators and a scalar nonlinear differential equation in single input, single output (SISO) cases. The input signal is then defined so that the nonlinear terms cancel out in the nonlinear equation, and the system is fully linearized through a virtual input. This linear system can then be controlled using traditional linear control strategies, such as PID or state feedback control. Nevertheless, when the system parameters are inexact or other disturbances are present during the closed-loop control, the linearization fails, resulting in unstable behavior for most systems. RFPT aims to bridge this difference by utilizing a discrete-time iteration, such that the linearization is preserved and the operation of the linear controller is maintained.
This section shows the theoretical background of the method for continuous SISO systems, highlighting its benefits and drawbacks. We first introduce the IO linearization principle based on the exposition of [23].

2.1. Input–Output Linearization

A general nonlinear SISO input-affine system is given by
x ˙ = f ( x ) + g ( x ) u y = h ( x )
where x = x ( t ) R n is the state of the system at time t, u = u ( t ) R is the input of the system at time t, while y = y ( t ) R is the output of the system at time t, and t R + , and f , g , h are continuously differentiable vector fields. The output of the system is differentiated, which leads to
y ˙ = h x x ˙ = h x [ f ( x ) + g ( x ) u ] L f h + L g h u
where L f h and L g h are the Lie derivatives of h along the vector fields f and g, respectively. This notation has the property
L f 0 h = h L f k h = L f L f k 1 h = ( L f k 1 h ) x f , k 1 .
Assuming that the input u of the system appears in the r-th derivative, the following condition can be formulated
L g L f r 1 h = ( L f r 1 h ) x g 0 ,
where r is the relative degree of the system. The relative degree r ( 1 r n ) of a nonlinear input-affine system in a region D 0 D exists if
L g L f i 1 h ( x ) = 0 , i = 1 , . . , r 1 L g L f r 1 h ( x ) 0
for all x D 0 . It is also assumed that the relative degree equals the state dimension, such that r = n . This assumption implies that no zero dynamics are present in the transformed system. If this assumption is not satisfied, the controller can still provide adequate closed-loop performance when the zero dynamics are stable. As a consequence, the coordinate transform is given as
ξ 1 ξ 2 ξ n = T ( x ) = h ( x ) L f h ( x ) L f r 1 h ( x ) ,
where T : D x R n D ξ R n must be a diffeomorphism. Using this transformation, a normal form can be obtained
ξ ˙ 1 = ξ 2 ξ ˙ 2 = ξ 3 ξ ˙ n 1 = ξ n ξ ˙ n = α ( ξ ) + β ( ξ ) u y = ξ 1 .
In (7), the system is divided into a series of integrators and a nonlinear differential equation with the components
α ( ξ ) = [ L f n h ( x ) ] x = T c - 1 ( ξ ) β ( ξ ) = [ L g L f n 1 h ( x ) ] x = T c - 1 ( ξ ) .
The nonlinear term ξ ˙ n in (7) can then be used to define the input as
u = v α ( ξ ) β ( ξ ) ,
which eliminates the nonlinearities, from which ξ ˙ n = v , where v is a virtual input. By combining equations (7) and (9), the linear system
ξ ˙ = A ξ + B v y = C ξ
is obtained, which can be stabilized in the origin using state feedback v = K ξ , where K is determined either by LQR control or pole placement. In practice, (9) is often obtained from an uncertain model with vector fields f * , g * , h * , which have a similar structure to the vector fields in (1), thus the equilibrium remains the same qualitatively in both cases. By combining (7) and (9), the following identity emerges
ξ ˙ n = α ( ξ ) + β ( ξ ) v α * ( ξ ) β * ( ξ )
with the modified affine terms
α * ( ξ ) = [ L f * n h * ( x ) ] x = T c - 1 ( ξ ) β * ( ξ ) = [ L g * L f * n 1 h * ( x ) ] x = T c - 1 ( ξ ) .
This does not lead to a linear system anymore; hence, it requires further compensation, for which the RFPT provides an iterative solution.

2.2. Robust Fixed-Point Transformation

The normal form can be discretized with the Euler method, for example
ξ n + = ξ n + Δ t α ( x ) + β ( x ) v α * ( x ) β * ( x ) ,
where Δ t > 0 , ξ : = ξ ( k Δ t ) and ξ + : = ξ ( ( k + 1 ) Δ t ) , k N 0 . The following requirement is made on (11) to eliminate the nonlinearities
E ( g ) α ( ξ ) + β ( ξ ) g α * ( ξ ) β * ( ξ ) = v ,
where v = K ξ is the linear state feedback control and g is a new input which should satisfy (14). One can define a fixed-point iteration to find the root g * of (14) through the associated equation E ( g ) v + g = g , with the additional property that E ( g * ) = g * = v . The convergence of the iteration can be ensured on a closed domain g [ a , b ] R , if the inequality
d E ( g ) d g + 1 < 1
can be satisfied on the whole region, which is often not the case due to the structural properties of E . These properties of E can be altered by introducing the so-called deform function
G ( E ( g i ) v , g i , θ ) = g i + 1 ,
where the function is dependent on the error E ( g i ) v , the iteration variable g i , and the design parameters θ R m . An initial condition g 0 for the iteration must also be supplied. One must impose the additional property
G ( E ( g * ) v , g * , θ ) = g * E ( g * ) = v
such that the fixed-point solution indeed coincides with the linear controller v. If, for some θ , the closed interval convergence condition can be satisfied, i.e.,
d G ( E ( g ) v , g , θ ) d g < 1
then the iteration g + = G ( E ( g ) v , g , θ ) will converge to g * due to the Banach fixed-point theorem. Since E ( g ) can only be accessed through direct measurement on the r-th derivative of the output of the process, the iteration is performed online when measurements are available, i.e., g = g k = g ( k Δ t ) . The normal form augmented with the deform function is given as
ξ 1 + = ξ 1 + Δ t ξ 2 ξ n + = ξ n + Δ t α ( ξ ) + β ( ξ ) g α * ( ξ ) β * ( ξ ) g + = G ( E ( g ) v , g , θ ) v = K ξ y = ξ 1 .
By adequately tuning θ , the sequence g g * renders the system essentially linear in a fixed number of steps from which the linear controller can finish the control task. In practice, when | g + g * | < ϵ , where ϵ is a small number, then g + = g , since the iteration is in the vicinity of the fixed point. We note that the requirement (18) is similar to the linearization theorem for nonlinear discrete-time systems.
As aforementioned, E ( g ) can only be accessed by directly measuring the r-th derivative of the system’s output. Nonetheless, this is infeasible in practice, such that an estimation must be constructed from the output signal directly, for which Sliding Mode Differentiators provide a possibility.

2.3. Sliding Mode Differentiator

SMDs originate from the sliding mode control theory, closely related to the IO linearization principle [18]. SMDs can provide exact differentials of a signal f ( t ) up to order r, if an upper bound L is available such that | f ( r + 1 ) | < L , where L is the Lipschitz constant. A dynamical system can then be constructed in the form of
z ˙ 0 = λ ˜ r L 1 / ( r + 1 ) | z 0 f ( t ) | r r + 1 sign ( z 0 f ( t ) ) + z 1 z ˙ 1 = λ ˜ r 1 L 2 / ( r + 1 ) | z 0 f ( t ) | r 1 r + 1 sign ( z 0 f ( t ) ) + z 2 z ˙ r 1 = λ ˜ 1 L r / ( r + 1 ) | z 0 f ( t ) | 1 r + 1 sign ( z 0 f ( t ) ) + z r z ˙ r = λ ˜ 0 L sign ( z 0 f ( t ) ) + z r ,
where λ ˜ r = λ r , λ ˜ 0 = λ 0 , and λ ˜ i = λ i λ ˜ i + 1 i / ( i + 1 ) . The parameters λ i are free parameters, often determined empirically. A possible choice for the coefficients of a fifth-order differentiator is λ = [ 1.1 , 1.5 , 2 , 3 , 5 , 8 ] [20]. In practice, the larger the coefficient values, the faster the convergence of the system with larger sensitivity for the noise in the function f ( t ) . The initial condition associated with (20) is given as z = [ f ( 0 ) , 0 , , 0 ] . Additional material on SMD can be found in [24].
In the case of the RFPT method, the differentiated function f ( t ) is the measured BG level y ( t ) such that the value of E ( g ) is estimated by z r ( t ) , where r is the relative degree. This estimation is essential since E ( g ) forms a basis of the error between the output of the system and the linear controller. In the case of T1DM control, there is no possible way to physically measure the r-th derivative of the BG level, only to estimate it, which justifies the use of the SMD. In particular, at each sampling instant k in (19), the system (20) is integrated with initial condition z = [ y ( k Δ t ) , z 1 ( k Δ t ) , , z r ( k Δ t ) ] , where the notation z r ( k Δ t ) denotes the endpoint of the previous solution curve of z .
In the following, the Identifiable Virtual Patient (IVP) model is presented, on which the control design is based.

3. Controller Design

In order to design the controller, a suitable model is required, which was chosen to be the IVP model which can be found in [25]. The model describes the insulin interactions in the body using four state variables, where the CH intake is represented as a disturbance:
x ˙ 1 = 1 τ 1 x 1 + 1 τ 1 u C I x ˙ 2 = 1 τ 2 x 2 + 1 τ 2 x 1 x ˙ 3 = k 1 x 3 + k 1 S I x 2 x ˙ 4 = ( G E Z I + x 3 ) x 4 + E G P + R a ,
where x 1 (mg/dL) is the catheter site subcutaneous insulin concentration, x 2 (mg/dL) is the insulin plasma concentration, x 3 (mg/dL) is the insulin effect related to the decrease in plasma glucose, which is denoted by x 4 (mg/dL), R a (mg/dL/min) is the rate of appearance of glucose following meals, and u (U/min) is the exogenous insulin administration rate. In this model, u is the input signal, while R a is a disturbance term. The output for this model is the BG level, y = x 4 , which can be measured with a CGMS device directly. A description of the model parameters and their corresponding dimensions can be found in Table 1.
The model was also augmented with a sensor model, based on the research of [26]. The sensor model is derived from measurements taken with a Dexcom G6 sensor, which can provide BG measurements with a sampling time of 5 minutes. The sensor model can be decomposed into two parts, namely a fixed error I G s , originating from calibration imprecision, and a random noise v k , characterized by a Gaussian white noise. The calibration error is given by the continuous time system
x ˙ 5 = 1 τ ( x 4 x 5 )
x 5 s = ( a 0 + a 1 t + a 2 t 2 ) x 5 + b 0
where the coefficients were experimentally determined to be τ = 3.1 , a 0 = 1 , a 1 = 0.002 , a 2 = 0 , and b 0 = 7.3 [26]. The random noise is a discrete-time autocorrelated white noise as
v k = α 1 v k 1 + α 2 v k 2 + w k
w k , v 0 , v 1 N ( 0 , σ ) ,
where α 1 = 1.3 , α 2 = 0.46 , and σ = 3.2 . Each measurement is then given as
y ^ k = x 5 s ( Δ t k ) + v k ,
where y ^ k is the noise-corrupted BG measurement directly used in the SMD.
To design the controller, the steps outlined in Section 2 must be followed. First, the relative degree must be determined by differentiating the output y = x 4 with respect to time until the input appears explicitly. Here, the relative degree was found to be r = 4 , since the input is explicitly present in the fourth derivative of the output signal. The second step is the calculation of the coordinate transform T from (6), which was performed using Wolfram Mathematica due to the complexity of the calculations. The transformation is given by
ξ 1 ξ 2 ξ 3 ξ 4 = T ( x ) = x 4 γ 2 γ 1 x 4 R ˙ a + k 1 γ 3 x 4 + γ 1 ( γ 2 + γ 4 x 4 ) R ¨ a + γ 5 + γ 6 γ 4 ( R ˙ a + γ 7 )
where the auxiliary variables are defined as
γ 1 = ( G E Z I + x 3 ) γ 2 = E G P + R a γ 3 = ( S I x 2 + x 3 ) γ 4 = ( G E Z I + x 3 ) γ 5 = ( k 1 ( S I ( x 1 + x 2 + k 1 τ 2 x 2 ) k 1 τ 2 x 3 ) x 4 ) / τ 2 γ 6 = 2 k 1 ( S I x 2 x 3 ) ( b + a x 4 ) γ 7 = k 1 c x 4 a ( b a x 4 ) .
In the following step, the inverse transformation rule T - 1 must be calculated. The inverse transformation is given by the vector
x 1 x 2 x 3 x 4 = T - 1 ( x ) = δ 1 ( δ 2 + δ 3 δ 4 + δ 5 + δ 6 + δ 7 ) ) ( δ 8 δ 9 ) / ( k 1 S I ξ 1 2 ) δ 10 / ξ 1 ξ 1
where the auxiliary terms are
δ 1 = ( 1 / ( k 1 S I ξ 1 3 ) δ 2 = k 1 R a ξ 1 2 R ¨ a τ 2 ξ 1 2 + G E Z I k 1 ξ 1 3 + R a ξ 1 ξ 2 δ 3 = k 1 R a τ 2 ξ 1 ξ 2 + k 1 ξ 1 2 ξ 2 2 R a τ 2 ξ 2 2 ξ 1 ξ 2 2 δ 4 = k 1 τ 2 ξ 1 ξ 2 2 + 2 τ 2 ξ 2 3 R ˙ a ξ 1 ( ξ 1 + k 1 τ 2 ξ 1 2 τ 2 ξ 2 ) δ 5 = R a τ 2 ξ 1 ξ 3 + ξ 1 2 ξ 3 + k 1 τ 2 ξ 1 2 ξ 3 3 τ 2 ξ 1 ξ 2 ξ 3 δ 6 = E G P ( ξ 1 ξ 2 2 τ 2 ξ 2 2 + k 1 ξ 1 ( ξ 1 + τ 2 ξ 2 ) + τ 2 ξ 1 ξ 3 ) δ 7 = τ 2 ξ 1 2 ξ 4 δ 8 = R ˙ a ξ 1 + E G P k 1 ξ 1 + k 1 R a ξ 1 G E Z I k 1 ξ 1 2 δ 9 = E G P ξ 2 R a ξ 2 k 1 ξ 1 ξ 2 + ξ 2 2 ξ 1 ξ 3 δ 10 = ( E G P + R a G E Z I ξ 1 ξ 2 ) .
To calculate the input rule that cancels out the nonlinearities, the terms α ( x ) and β ( x ) must be determined, where α ( x ) is described by
α ( x ) = x 4 ( k 1 ( ( x 3 S I x 2 ) k 1 2 + ( S I ( x 1 x 2 ) k 1 ) / τ 2 ) + ( S I k 1 ( C I τ 1 x 1 C I τ 1 x 2 + C I τ 2 x 1 ) ) / ( C I τ 1 τ 2 2 ) ) ( ( x 3 S I x 2 ) k 1 2 + ( S I ( x 1 x 2 ) k 1 ) / τ 2 ) ( 3 E G P + 3 R a 3 x 4 ( G E Z I + x 3 ) ) + ( G E Z I + x 3 ) ( x 4 ( ( x 3 S I x 2 ) k 1 2 + ( S I ( x 1 x 2 ) k 1 ) / τ 2 ) + ( G E Z I + x 3 ) ( R ˙ a ( G E Z I + x 3 ) ( E G P + R a x 4 ( G E Z I + x 3 ) ) + k 1 x 4 ( x 3 S I x 2 ) ) 2 k 1 ( x 3 S I x 2 ) ( E G P + R a x 4 ( G E Z I + x 3 ) ) R ¨ a ) 3 k 1 ( x 3 S I x 2 ) ( R a R ˙ a + ( G E Z I + x 3 ) ( E G P + R a x 4 ( G E Z I + x 3 ) ) k 1 x 4 ( x 3 S I x 2 ) ) ,
while β ( x ) is given as
β ( x ) = ( ( S I k 1 x 4 ) / ( C I τ 1 τ 2 ) ) .
Using (9), α ( x ) , and β ( x ) , the transformed input has the structure
u = ( 1 / ( k 1 S I x 4 ) ) ( C I τ 1 τ 2 ( g ( k 1 ( S I ( ( τ 2 ) x 1 + τ 1 ( x 1 k 1 τ 2 x 1 + x 2 + k 1 τ 2 x 2 + k 1 2 τ 2 2 x 2 ) ) k 1 2 τ 1 τ 2 2 x 3 ) x 4 ) / ( τ 1 τ 2 2 ) + 3 k 1 ( S I x 2 x 3 ) ( R a R ˙ a + E G P G E Z I + G E Z I R a + E G P x 3 + R a x 3 G E Z I 2 x 4 + k 1 S I x 2 x 4 2 G E Z I x 3 x 4 k 1 x 3 x 4 x 3 2 x 4 ) + ( 1 / τ 2 ) ( ( G E Z I + x 3 ) ( ( R ¨ a ) τ 2 E G P G E Z I 2 τ 2 G E Z I 2 R a τ 2 + 2 E G P k 1 S I τ 2 x 2 + 2 k 1 R a S I τ 2 x 2 2 E G P G E Z I τ 2 x 3 2 E G P k 1 τ 2 x 3 2 G E Z I R a τ 2 x 3 2 k 1 R a τ 2 x 3 E G P τ 2 x 3 2 R a τ 2 x 3 2 + R ˙ a τ 2 ( G E Z I + x 3 ) + G E Z I 3 τ 2 x 4 + k 1 S I x 1 x 4 k 1 S I x 2 x 4 3 G E Z I k 1 S I τ 2 x 2 x 4 k 1 2 S I τ 2 x 2 x 4 + 3 G E Z I 2 τ 2 x 3 x 4 + 3 G E Z I k 1 τ 2 x 3 x 4 + k 1 2 τ 2 x 3 x 4 3 k 1 S I τ 2 x 2 x 3 x 4 + 3 G E Z I τ 2 x 3 2 x 4 + 3 k 1 τ 2 x 3 2 x 4 + τ 2 x 3 3 x 4 ) ) ( 3 k 1 ( S I ( x 1 + x 2 + k 1 τ 2 x 2 ) k 1 τ 2 x 3 ) ( E G P R a + ( G E Z I + x 3 ) x 4 ) ) / τ 2 ) ) .
Note that instead of v, the deformed variable g appears in this equation as the virtual input (immediately in the first line). In some instances, the input signal u might become negative, violating the positivity constraint imposed on the system. To this end, a saturation is imposed on the input signal, such that
u = u ¯ , if u ¯ u u , if 0 < u < u ¯ 0 , otherwise ,
where u ¯ is the maximum input rate that the insulin pump can handle. The value of u ¯ was chosen to be u ¯ = 30 [ U / h ] , which corresponds to the typical maximum basal administration rate in commercial insulin pumps [27].
The corresponding linear system in (33) is described by the matrices
A = 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 B = 0 0 0 1 C = 1 0 0 0 .
This system is controllable and could be regulated by a linear state feedback controller that tracks a setpoint value of r c with x 4 . The state feedback law is given in the form of
v = k f r c K ξ k f = 1 / ( C ( A B K ) 1 B ) ,
where k f is a corrector term, and K is the gain, which can either be found by pole placement or the minimization of the LQR cost. The deform function G ( E ( g i ) v , g i , θ ) was chosen to be
G ( E ( g ) v , g , θ ) = ( g + K c ) ( 1 + B c tanh ( A c ( ξ 4 ˙ v ) ) ) K c ,
which was previously applied in a wide variety of systems [28]. Here, ξ 4 ˙ = E ( g ) from (14), and the parameter vector has the elements θ = [ A c , B c , K c ] .
The controller can be tuned by first choosing the closed-loop poles p c l of the linear controller, using only the IO linearized version, finding the gain matrix K, and then tuning the parameters of the deform function. In the first step, one sets every model parameter instance in the control loop to the average system parameters and then finds a proper choice for p c l , which is p c l = [ 0.04 , 0.03 , 0.02 , 0.01 ] in this case. This choice ensures that no overshoot is present during the setpoint tracking, which is important to avoid negative insulin administration. For this choice, the corresponding gain matrix was K = [ 1.57 · 10 7 , 3.64 · 10 5 , 2.8 · 10 3 , 9 · 10 1 ] with the correction term k f = 1.57 · 10 7 . The reference to be tracked was r c = 120 .
After tuning the linear controller, the parameters of the deform function have to be determined. By keeping the same system parameter settings, i.e., using the approximate parameters in every function, one determines first the initial condition of the iteration, which was g 0 = k f r c K T ( x 0 ) . Then, the elements of θ are determined, for which a rule of thumb is that B c is -1, while A c and K c differ by order of magnitude [28]. As a consequence, the parameters B c = 1 , K c = 10 1 , and A c = 10 2 lead to g ( t ) = v ( t ) , which means that the iteration converges to the proper fixed point. Additionally, the convergence tolerance was set to δ = 10 12 .
The last step is to find the Lipschitz constant L of the SMD since the rest of the parameters are fixed. In this case, its value was determined through computer simulations, which resulted in the value of L = 10 14 . Figure 1 shows a schematic diagram of the entire control loop.

4. In Silico Results

The approach was validated in silico using ten virtual patients, each representing a unique parameter set for the IVP model. The parameters of the virtual patients can be seen in Table 2. Each simulation ran for six days with a fixed CH intake profile. On each day, three meals were simulated, with varying CH contents, which can be seen in Figure 2. A limit was imposed on the BG level, such that it cannot exit the closed region x 4 [ 50 ; 400 ] ; otherwise, the subject enters into a deadly hypoglycemic or hypoglycemic state, respectively.
Some additional considerations were introduced before running the simulation. Since CGMS sensors have a reasonably large sampling time, they had to be included in the simulation. Currently, commercial CGMS devices permit the sampling of BG levels 5 min apart, and as a consequence, this was chosen to be the dead time between measurements, such that Δ t = 5 . Between each measurement sample, the system was simulated with a step size of δ t = 0.1 , which was also the refresh rate of the linear controller (36), which produces v. The SMD was integrated once a new measurement was available from the previous measurement, updated with the latest measured value.
It was also assumed that no information is present on the R a disturbance, hence in the inverse model R a = R ˙ a = R ¨ a = R a = 0 . Moreover, only x 4 was used in the inverse model (33), since it could be directly measured, and the remaining terms were set to x 1 = x 2 = x 3 = 0 in this equation, which leads to the simplified inverse model
u = ( C I τ 1 τ 2 ( g + ( G E Z I ( τ 2 x 4 G E Z I 3 + E G P τ 2 G E Z I 2 ) ) / τ 2 ) ) / ( S I p 2 x 4 ) .
An unexpected consequence of this choice was that the control performance increased since the inverse transformation (29) turned out to be numerically ill conditioned. In practice, one can only measure x 4 , while the other states are hidden. By estimating the derivatives ξ of y = x 4 using the SMD, these derivatives can be used in the inverse transformation (29) to obtain estimates on x 1 , x 2 , and x 3 . However, the SMD produces noisy estimates, and the cubic terms further exacerbate the errors in the inverse transformations ( ξ ¯ 1 in δ 1 , for example), which leads to unreliable state estimates. While omitting these terms leads to an inaccurate inverse, this discrepancy still involves smaller errors than using the ill-conditioned transformations.
The deform function (37) was also only updated when a new measurement was available since the effect of g k on E ( g k ) could only be determined through direct sampling. Between each measurement, with the previously defined sampling Δ t = 0.1 , the previous iteration g k 1 was used in the inverse model.
The results were assessed using the time-in-range (TIR) metric [29] and the Control Variability Grid Analysis (CVGA) [30]. The TIR metric defines different regions and determines what percentage of the BG level stays in the given areas during the simulation, whereas the CVGA plot shows the maximal and minimal BG levels attained during closed-loop therapy.
The first simulation with the initially tuned parameters led to unsatisfactory results in general. Of the ten virtual patients, only eight could stay within limits on the BG level. Additionally, three of the remaining cases were grouped in the E region of the CVGA plot, indicating life-threatening BG levels. Consequently, the control parameters were fine-tuned, so better performance was achieved. Through simulations the control parameters were empirically modified to p c l = p c l × 0.8 , K c = 10 , A c = 10 4 , and L = 10 16 . By decreasing the eigenvalues of p c l , the response time of the linear controller can be decreased, thus lowering the overshoot in the BG level due to the disturbances. This modification improved general performance; however, two virtual patients were still out of range. The simulation results can be seen in Figure 3, Figure 4, Figure 5 and Figure 6, and the corresponding CVGA plot in Figure 7. Table 3 contains each patient’s CVGA and TIR metrics, where an additional column shows the extreme cases where hypoglycemia or hyperglycemia occurred. The best results were achieved in the case of p 1 , p 7 , p 8 , and p 9 , where the TIR was in the safe range (70–180 (mg/dL)) for more than 80 % of the time. However, as one can see, only two sets of parameters entered the safe region B on the CVGA plot, while the others remained in the D and E zones. While this seems to be a poor result at first glance, another perspective can be gained by inspecting Figure 3.
As one can see, the out-of-range BG levels occurred in the region t [ 0 ; 2500 ] , where there was a significant deviation from the tracked setpoint. However, after 2500 min, the controller could provide a tight tracking of the BG level, irrespective of the R a magnitude. Each BG trajectory is contracted in the optimal region, indicated by the green dash-dotted lines. This initial deviation is due to the iterative nature of the controller, where if the initial condition g 0 is poorly estimated, the convergence is slower to the desired fixed point, as Figure 5 shows. In Figure 3, this slow convergence is what one can see, where at the beginning of the simulation, the trajectories corresponding to each virtual patient have a significant deviation in between, but as time progresses, this deviation vanishes and each trajectory evolves close to each other.
The adaptation period can be significantly shortened by supplying better initial conditions at the beginning of the simulation. For example, taking the last value of g in the simulation and using it as an initial condition improves the results drastically, which can be seen in Figure 3, Figure 4, and Figure 6. The beginning of the simulations is significantly better, and the trajectories are bounded by the red dashed lines, except for p 7 , which barely enters into hypoglycemia. This observation is further confirmed by the bottom CVGA plot in Figure 7, and the TIR values in Table 4.
Nevertheless, finding better initial estimates for g is nontrivial in practice since it implicitly requires knowledge of the uncertainty of the model parameters. One possible way to reduce the variation during adaptation is to restrict the CH intake at the beginning of the operation of the controller. Another solution could be to redefine A c to be time-varying. Values closer to K c lend to acceleration in convergence, but poor adaptation in the long run, while using smaller values has the opposite effect. A better result could be achieved by using larger values at the beginning of the control cycle and then smoothly varying them to smaller values, which will be a focus of future research.

Discussion

The proposed method is an adaptive control method, similar to previous designs, shown in [31,32]. While the previous demonstration showed that the choice of initial condition for the deform function significantly determines its performance, the controller could handle inter-patient variability by solely using the mean of the parameters. This contrasts with PID and Model Predictive Control (MPC), the two most popular approaches in T1DM control.
The RFPT controller has similar computational characteristics as PID control in the sense that it does not require extensive computational hardware. The most important benefit of the method lies in its adaptability. In general, PID control cannot consider the individual characteristics of each patient, and hence can only give a suboptimal performance in many cases. However, in this case, the PID should outperform the RFPT, since the initial condition of the iteration cannot be given precisely in practice. Additionally, RFPT is more cumbersome in its theoretical exposition, which could make it less preferable in practice.
One can also compare the RFPT with MPC implementations. MPC is an optimal control method that formulates the control problem as an optimization task. As a direct consequence, the obtained control signal is optimal with respect to a cost function, which often incorporates the minimization of the exogenous insulin applied to the patient. By contrast, RFPT does not possess any optimal traits due to the simulation-based tuning of the control parameters. However, the optimization procedure often requires complex algorithms, which makes it computationally less attractive than the RFPT. Moreover, the performance of the MPC significantly relies on the internal model of the process, which, in the presence of parameter uncertainties, can lead to instability. In practice, this problem is challenging to solve and requires advanced mathematical apparatus, thus the RFPT might be a viable alternative.
One important remark is that, as shown in the theoretical introduction, the RFPT contains a linear controller due to the IO linearization framework, which can be of any type. Consequently, the state feedback controller used in this study can be replaced by a PID controller or a linear MPC, combining the benefits of both approaches.

5. Conclusions

In the present work, an RFPT-based proof-of-concept controller was introduced. The theory of the method was presented in conjunction with the design of the controller. The scheme was augmented with an SMD, providing higher-order derivatives essential for the controller’s operation outside the in silico domain. The controller was simulated with a fixed CH intake protocol, and the results were analyzed using both CVGA and TIR metrics. Results showed that the controller could not provide satisfactory tracking at the beginning of its operation, but the effect of disturbances was significantly lowered after an adaptation period.
In order to create a reliable controller, several modifications must be implemented in future research. First, the convergence speed must be accelerated by either finding a better estimation for the initial condition of the iteration or using time-varying control parameters. Another possibility is to use alternative deform functions, which is also the scope of future design. In terms of validation, the number of virtual patients should be increased, and a number of different, realistic CH profiles should be used during simulation studies. Moreover, the model on which the controller is validated should be changed to a different, more elaborate one.

Author Contributions

Conceptualization, B.C.; methodology, B.C.; software, B.C.; validation, B.C.; formal analysis, B.C.; investigation, B.C.; resources, B.C.; data curation, B.C.; writing—original draft preparation, B.C.; writing—review and editing, B.C. and D.A.D.; visualization, B.C.; supervision, D.A.D. and L.K.; project administration, D.A.D. and L.K.; funding acquisition, D.A.D. and L.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Research, Development and Innovation Fund of Hungary grant number 2019-1.3.1-KK-2019-00007 under the 2019-1.3.1-KK funding scheme. Bence G. Czakó was supported by the Eötvös Loránd Research Network Secretariat under grant agreement no. ELKH KÖ-40/2020 (‘Development of cyber-medical systems based on AI and hybrid cloud methods’).

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DMDiabetes Mellitus
MPCModel Predictive Control
CHCarbohydrate
T1DMType 1 Diabetes Mellitus
T2DMType 2 Diabetes Mellitus
APArtificial Pancreas
BGBlood Glucose
CGMSContinuous Glucose Monitoring Sensor
RFPTRobust Fixed-Point Transformations
IOInput–Output
Sliding Mode DifferentiatorSMD
IVPIdentifiable Virtual Patient
TIRTime-in-Range
CVGAControl Variability Grid Analysis

References

  1. Sun, H.; Saeedi, P.; Karuranga, S.; Pinkepank, M.; Ogurtsova, K.; Duncan, B.B.; Stein, C.; Basit, A.; Chan, J.C.; Mbanya, J.C.; et al. IDF Diabetes Atlas: Global, regional and country-level diabetes prevalence estimates for 2021 and projections for 2045. Diabetes Res. Clin. Pract. 2022, 183, 109119. [Google Scholar] [CrossRef] [PubMed]
  2. Bekiari, E.; Kitsios, K.; Thabit, H.; Tauschmann, M.; Athanasiadou, E.; Karagiannis, T.; Haidich, A.B.; Hovorka, R.; Tsapas, A. Artificial pancreas treatment for outpatients with type 1 diabetes: Systematic review and meta-analysis. BMJ 2018, 361, k1310. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Thabit, H.; Hovorka, R. Coming of age: The artificial pancreas for type 1 diabetes. Diabetologia 2016, 59, 1795–1805. [Google Scholar] [CrossRef] [Green Version]
  4. Chakrabarty, A.; Healey, E.; Shi, D.; Zavitsanou, S.; Doyle, F.J.; Dassau, E. Embedded Model Predictive Control for a Wearable Artificial Pancreas. IEEE Trans. Control. Syst. Technol. 2020, 28, 2600–2607. [Google Scholar] [CrossRef] [PubMed]
  5. Ekhlaspour, L.; Nally, L.M.; El-Khatib, F.H.; Ly, T.T.; Clinton, P.; Frank, E.; Tanenbaum, M.L.; Hanes, S.J.; Selagamsetty, R.R.; Hood, K.; et al. Feasibility Studies of an Insulin-Only Bionic Pancreas in a Home-Use Setting. J. Diabetes Sci. Technol. 2019, 13, 1001–1007. [Google Scholar] [CrossRef] [PubMed]
  6. Weinzimer, S.A.; Steil, G.M.; Swan, K.L.; Dziura, J.; Kurtz, N.; Tamborlane, W.V. Fully Automated Closed-Loop Insulin Delivery Versus Semiautomated Hybrid Control in Pediatric Patients With Type 1 Diabetes Using an Artificial Pancreas. Diabetes Care 2008, 31, 934–939. [Google Scholar] [CrossRef] [Green Version]
  7. Buckingham, B.A.; Forlenza, G.P.; Pinsker, J.E.; Christiansen, M.P.; Wadwa, R.P.; Schneider, J.; Peyser, T.A.; Dassau, E.; Lee, J.B.; O’Connor, J.; et al. Safety and Feasibility of the OmniPod Hybrid Closed-Loop System in Adult, Adolescent, and Pediatric Patients with Type 1 Diabetes Using a Personalized Model Predictive Control Algorithm. Diabetes Technol. Ther. 2018, 20, 257–262. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Kaveh, P.; Shtessel, Y.B. Blood glucose regulation using higher-order sliding mode control. Int. J. Robust Nonlinear Control. 2008, 18, 557–569. [Google Scholar] [CrossRef]
  9. Eigner, G.; Bojthe, I.; Pausits, P.; Kovacs, L. Investigation of the TP modeling possibilities of the Hovorka T1DM model. In Proceedings of the 2017 IEEE 15th International Symposium on Applied Machine Intelligence and Informatics (SAMI), Herl’any, Slovakia, 26–28 January 2017. [Google Scholar] [CrossRef] [Green Version]
  10. Fereydouneyan, F.; Zare, A.; Mehrshad, N. Using a fuzzy controller optimized by a genetic algorithm to regulate blood glucose level in type 1 diabetes. J. Med. Eng. Technol. 2011, 35, 224–230. [Google Scholar] [CrossRef]
  11. Mehmood, S.; Ahmad, I.; Arif, H.; Ammara, U.; Majeed, A. Artificial Pancreas Control Strategies Used for Type 1 Diabetes Control and Treatment: A Comprehensive Analysis. Appl. Syst. Innov. 2020, 3, 31. [Google Scholar] [CrossRef]
  12. Trevitt, S.; Simpson, S.; Wood, A. Artificial Pancreas Device Systems for the Closed-Loop Control of Type 1 Diabetes. J. Diabetes Sci. Technol. 2015, 10, 714–723. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  13. Tar, J.K.; Rudas, I.J. Geometric Approach to Nonlinear Adaptive Control. In Proceedings of the 2007 4th International Symposium on Applied Computational Intelligence and Informatics, Timisoara, Romania, 17–18 May 2007. [Google Scholar] [CrossRef]
  14. Czakó, B.G.; Drexler, D.A.; Kovács, L. Discrete time derivation of the Robust Fixed-Point Transformation method. IFAC-PapersOnLine 2022, 55, 535–540. [Google Scholar] [CrossRef]
  15. Czako, B.; Drexler, D.A.; Kovacs, L. Control of a T1DM Model Using Robust Fixed-Point Transformations Based Control with Disturbance Rejection. In Proceedings of the 2022 IEEE International Conference on Automation, Quality and Testing, Robotics (AQTR), Cluj-Napoca, Romania, 19–21 May 2022. [Google Scholar] [CrossRef]
  16. Kovács, L. A robust fixed point transformation-based approach for type 1 diabetes control. Nonlinear Dyn. 2017, 89, 2481–2493. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Eigner, G.; Horvath, P.; Tar, J.K.; Rudas, I.J.; Kovacs, L. Application of Robust Fixed Point Control in Case of T1DM. In Proceedings of the 2015 IEEE International Conference on Systems, Man, and Cybernetics, Hong Kong, China, 9–12 October 2015. [Google Scholar] [CrossRef] [Green Version]
  18. Levant, A. Higher-order sliding modes, differentiation and output-feedback control. Int. J. Control. 2003, 76, 924–941. [Google Scholar] [CrossRef]
  19. Levant, A.; Livne, M.; Yu, X. Sliding-Mode-Based Differentiation and Its Application. IFAC-PapersOnLine 2017, 50, 1699–1704. [Google Scholar] [CrossRef]
  20. Barbot, J.P.; Levant, A.; Livne, M.; Lunz, D. Discrete sliding-mode-based differentiators. In Proceedings of the 2016 14th International Workshop on Variable Structure Systems (VSS), Nanjing, China, 1–4 June 2016. [Google Scholar] [CrossRef]
  21. Czako, B.G.; Drexler, D.A.; Kovacs, L. Continuous time Robust Fixed Point Transformations based control. In Proceedings of the 2019 IEEE AFRICON, Accra, Ghana, 25–27 September 2019. [Google Scholar] [CrossRef]
  22. Kanderian, S.S.; Weinzimer, S.; Voskanyan, G.; Steil, G.M. Identification of Intraday Metabolic Profiles during Closed-Loop Glucose Control in Individuals with Type 1 Diabetes. J. Diabetes Sci. Technol. 2009, 3, 1047–1057. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  23. Khalil, H.K. Nonlinear Systems; Prentice Hall: Upper Saddle River, NJ, USA, 2002. [Google Scholar]
  24. Barbot, J.P.; Levant, A.; Livne, M.; Lunz, D. Discrete differentiators based on sliding modes. Automatica 2020, 112, 108633. [Google Scholar] [CrossRef]
  25. Kanderian, S.S.; Weinzimer, S.A.; Steil, G.M. The Identifiable Virtual Patient Model: Comparison of Simulation and Clinical Closed-Loop Study Results. J. Diabetes Sci. Technol. 2012, 6, 371–379. [Google Scholar] [CrossRef] [Green Version]
  26. Vettoretti, M.; Battocchio, C.; Sparacino, G.; Facchinetti, A. Development of an Error Model for a Factory-Calibrated Continuous Glucose Monitoring Sensor with 10-Day Lifetime. Sensors 2019, 19, 5320. [Google Scholar] [CrossRef] [Green Version]
  27. 2020 Consumer Guide on Insulin Pumps. Available online: http://main.diabetes.org/dforg/pdfs/2020/2020-cg-insulin-pumps.pdf (accessed on 19 January 2023).
  28. Tar, J.; Bitó, J.; Nádai, L.; Tenreiro Machado, J. Robust fixed point transformations in adaptive control using local basin of attraction. Acta Polytech. Hung. 2009, 6, 21–38. [Google Scholar]
  29. Advani, A. Positioning time in range in diabetes management. Diabetologia 2019, 63, 242–252. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  30. Magni, L.; Raimondo, D.M.; Man, C.D.; Breton, M.; Patek, S.; Nicolao, G.D.; Cobelli, C.; Kovatchev, B.P. Evaluating the Efficacy of Closed-Loop Glucose Regulation via Control-Variability Grid Analysis. J. Diabetes Sci. Technol. 2008, 2, 630–635. [Google Scholar] [CrossRef] [Green Version]
  31. Turksoy, K.; Cinar, A. Adaptive Control of Artificial Pancreas Systems—A Review. J. Healthc. Eng. 2014, 5, 1–22. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  32. Nath, A.; Deb, D.; Dey, R. Robust observer-based adaptive control of blood glucose in diabetic patients. Int. J. Control. 2020, 94, 3054–3067. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of the proposed control loop. The SMD first produces the derivatives ξ of y = x 4 . Then, the linear controller calculates v = k f r c + K ξ , which is used in the deform function to create the error ξ ˙ 4 v and perform one step of the RFPT iteration. The resulting iterate is then used to calculate the input signal for the system via the inverse model, and the cycle repeats at each step.
Figure 1. Schematic diagram of the proposed control loop. The SMD first produces the derivatives ξ of y = x 4 . Then, the linear controller calculates v = k f r c + K ξ , which is used in the deform function to create the error ξ ˙ 4 v and perform one step of the RFPT iteration. The resulting iterate is then used to calculate the input signal for the system via the inverse model, and the cycle repeats at each step.
Mathematics 11 01210 g001
Figure 2. Rate of glucose appearance after CH absorption for the simulation.
Figure 2. Rate of glucose appearance after CH absorption for the simulation.
Mathematics 11 01210 g002
Figure 3. BG levels of the two simulations. The top figure shows the slow adaptation case, while the bottom corresponds to the fast. The red dashed line indicates a tolerable region of BG level, while the green dash-dotted line shows the optimal region.
Figure 3. BG levels of the two simulations. The top figure shows the slow adaptation case, while the bottom corresponds to the fast. The red dashed line indicates a tolerable region of BG level, while the green dash-dotted line shows the optimal region.
Mathematics 11 01210 g003
Figure 4. Measured and noise-corrupted BG levels. The top figure shows the slow adaptation case, while the bottom corresponds to the fast. The red dashed line indicates a tolerable region of BG level, while the green dash-dotted line shows the optimal region.
Figure 4. Measured and noise-corrupted BG levels. The top figure shows the slow adaptation case, while the bottom corresponds to the fast. The red dashed line indicates a tolerable region of BG level, while the green dash-dotted line shows the optimal region.
Mathematics 11 01210 g004
Figure 5. Evolution of the deform variable g associated with the closed-loop control. The top figure shows the slow adaptation case, while the bottom corresponds to the fast.
Figure 5. Evolution of the deform variable g associated with the closed-loop control. The top figure shows the slow adaptation case, while the bottom corresponds to the fast.
Mathematics 11 01210 g005
Figure 6. The computed closed-loop insulin delivery rates. The top figure shows the slow adaptation case, while the bottom corresponds to the fast. The signals closely resemble the deformed signals. One can see that the input signals in both cases respected the actuator limitations, hence the control strategies were feasible in practice.
Figure 6. The computed closed-loop insulin delivery rates. The top figure shows the slow adaptation case, while the bottom corresponds to the fast. The signals closely resemble the deformed signals. One can see that the input signals in both cases respected the actuator limitations, hence the control strategies were feasible in practice.
Mathematics 11 01210 g006
Figure 7. CVGA plot of the BG levels attained during the simulation. The top figure shows the slow adaptation case, while the bottom corresponds to the fast. The green zones (A,B) indicate safe levels, yellow zones (C) are the acceptable levels, orange zones (D) are the on the margin of safety, and the red zone (E) indicates life-threatening scenarios.
Figure 7. CVGA plot of the BG levels attained during the simulation. The top figure shows the slow adaptation case, while the bottom corresponds to the fast. The green zones (A,B) indicate safe levels, yellow zones (C) are the acceptable levels, orange zones (D) are the on the margin of safety, and the red zone (E) indicates life-threatening scenarios.
Mathematics 11 01210 g007
Table 1. Model parameters.
Table 1. Model parameters.
ParameterUnitDescription
τ 1 minPharmacokinetic time constant
τ 2 minPharmacokinetic time constant
C I ml/minInsulin clearance
k 1 1/minTime constant of insulin action
S I ml/ μ U/minInsulin sensitivity
G E Z I 1/minGlucose effectiveness at zero insulin
E G P mg/dL/minEndogenous glucose production
Table 2. Parameters of the virtual patients, associated with the IVP model.
Table 2. Parameters of the virtual patients, associated with the IVP model.
EGP GEZI C I S I τ 1 τ 2 v k 1
p 1 1.332.2 × 10 3 20108.1 × 10 4 49471 × 10 2
p 2 0.64.4 × 10 3 12819.6 × 10 4 41101.2 × 10 2
p 3 1.073.5 × 10 3 9094.6 × 10 4 71702.3 × 10 2
p 4 0.981.6 × 10 5 18133.8 × 10 4 91708.1 × 10 3
p 5 0.64.3 × 10 3 15352.1 × 10 4 46469.6 × 10 3
p 6 0.61 × 10 3 5884.1 × 10 4 68309.2 × 10 3
p 7 1.112.3 × 10 3 18068.2 × 10 4 60601 × 10 2
p 8 1.31 × 10 8 5403.7 × 10 4 95371 × 10 2
p 9 1.276.4 × 10 3 8752.6 × 10 4 131211 × 10 2
p 10 0.611 × 10 3 13096 × 10 4 53531 × 10 2
Table 3. CVGA and TIR metrics, corresponding to the slow adaptation.
Table 3. CVGA and TIR metrics, corresponding to the slow adaptation.
TIR (%)
ExtermityCVGA < 50 50 70 70 180 180 250 250 <
p 1 B000.840.130.02
p 2 E000.670.180.15
p 3 Lower D00.140.740.110.01
p 4 Upper D000.710.190.1
p 5 E00.090.670.140.09
p 6 hypo 0.140.160.580.10.02
p 7 Lower D00.060.80.130.01
p 8 Lower D00.080.810.10.01
p 9 B000.850.140.02
p 10 hypo 0.070.180.590.130.03
Table 4. CVGA and TIR metrics, corresponding to the fast adaptation.
Table 4. CVGA and TIR metrics, corresponding to the fast adaptation.
TIR (%)
ExtermityCVGA < 50 50 70 70 180 180 250 250 <
p 1 B000.840.130.03
p 2 E00.030.690.170.12
p 3 Lower D00.010.810.130.04
p 4 Lower D000.830.140.03
p 5 E00.110.660.140.09
p 6 hypo 0.020.130.640.130.08
p 7 B000.830.130.04
p 8 B000.850.130.02
p 9 B000.830.140.03
p 10 E00.170.630.130.07
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Czakó, B.; Drexler, D.A.; Kovács, L. Proof of Concept Control of a T1DM Model Using Robust Fixed-Point Transformations via Sliding Mode Differentiators. Mathematics 2023, 11, 1210. https://doi.org/10.3390/math11051210

AMA Style

Czakó B, Drexler DA, Kovács L. Proof of Concept Control of a T1DM Model Using Robust Fixed-Point Transformations via Sliding Mode Differentiators. Mathematics. 2023; 11(5):1210. https://doi.org/10.3390/math11051210

Chicago/Turabian Style

Czakó, Bence, Dániel András Drexler, and Levente Kovács. 2023. "Proof of Concept Control of a T1DM Model Using Robust Fixed-Point Transformations via Sliding Mode Differentiators" Mathematics 11, no. 5: 1210. https://doi.org/10.3390/math11051210

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop