Next Article in Journal
TadGAN-Based Daily Color Temperature Cycle Generation Corresponding to Irregular Changes of Natural Light
Next Article in Special Issue
An Energy-Efficient and Blockchain-Integrated Software Defined Network for the Industrial Internet of Things
Previous Article in Journal
Daily Estimation of Global Solar Irradiation and Temperatures Using Artificial Neural Networks through the Virtual Weather Station Concept in Castilla and León, Spain
Previous Article in Special Issue
ML-Based Delay Attack Detection and Isolation for Fault-Tolerant Software-Defined Industrial Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Intelligent Model-Based Effective Approach for Glycemic Control in Type-1 Diabetes

1
Department of Electrical Engineering, COMSATS University Islamabad, Islamabad 45550, Pakistan
2
Department of Information and Communication Engineering, Yeungnam University, Gyeongsan 38541, Korea
3
Department of Electrical Engineering, Yeungnam University, Gyeongsan 38541, Korea
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2022, 22(20), 7773; https://doi.org/10.3390/s22207773
Submission received: 12 July 2022 / Revised: 15 September 2022 / Accepted: 10 October 2022 / Published: 13 October 2022

Abstract

:
Type-1 diabetes mellitus (T1DM) is a challenging disorder which essentially involves regulation of the glucose levels to avoid hyperglycemia as well as hypoglycemia. For this purpose, this research paper proposes and develops control algorithms using an intelligent predictive control model, which is based on a UVA/Padova metabolic simulator. The primary objective of the designed control laws is to provide an automatic blood glucose control in insulin-dependent patients so as to improve their life quality and to reduce the need of an extremely demanding self-management plan. Various linear and nonlinear control algorithms have been explored and implemented on the estimated model. Linear techniques include the Proportional Integral Derivative (PID) and Linear Quadratic Regulator (LQR), and nonlinear control strategy includes the Sliding Mode Control (SMC), which are implemented in this research work for continuous monitoring of glucose levels. Performance comparison based on simulation results demonstrated that SMC proved to be most efficient in terms of regulating glucose profile to a reference level of 70 mg/dL compared to the classical linear techniques. A brief comparison is presented between the linear techniques (PID and LQR), and nonlinear technique (SMC) for analysis purposes proving the efficacy of the design.

1. Introduction

Patients having type 1 diabetes suffer from decrements in the required insulin level as a result of eradication of beta cells. Type 1 Diabetes Mellitus (T1DM) clinically appears before the age of 35 years [1]. This type of diabetes leads to hyperglycemia, which can cause further problems due to high blood glucose sugar [2]. Consequently, insulin has to be supplied in order to avoid complications, including dehydration and death [3]. Keeping an adequate level of insulin in the body is pivotal to cope with T1DM. Automatic blood glucose control in diabetic patients can improve their life and also reduce the expenditure on their treatment.
Both intelligent model-based and model-independent strategies are possible for designing an optimal controller to reduce the risk of diabetes. The latter empirical strategy does not rely on an analytical model of the glucose–insulin setup, thereby providing a control law to regulate insulin infusion using pre-available data from experiments [4]. In this regard, application and improvements of Proportional Integral Derivative (PID) controllers for regulating insulin infusion rate have been still in vogue [5]. In contrast, the strategy based on a model exploits a priori knowledge of physiological parameters. Control problem can therefore be analytically formulated in an optimal way. Technological advancements related to infusion sets and insulin pumps have improved with the progression in a variety of different designs when compared with conventional insulin injections. In [6], the authors reviewed and compared the preceding analysis and performance with the existing CSII pumps in the type 1 diabetic patients. An artificial pancreas consists of a pump for Continuous Subcutaneous Insulin Infusion (CSII), a setup for uninterrupted glucose monitoring and a control law to realize a closed-loop feedback system. In [7], authors discussed the non-trial treatment for type 1 diabetic patients using Do-It-Yourself Artificial Pancreas systems (DIY-APS), which is an open source and hybrid closed-loop system. The research work amalgamates the promising and upcoming clinical literature related to DIY-APS with the point of views suggested by different healthcare professionals and DIY-APS users to improve the daily routine plan for type 1 patients in a real-life scenario. Authors presented a detailed discussion regarding the advancements in the closed-loop design of systems for efficient handling of patients with diabetes. The study focused on the working of artificial pancreas demonstrating the improvement in glycemic effects and lessening the load of a hectic self-management plan in daily life for diabetic patients [8].
The classical model for blood glucose control describes glucose–insulin kinetics with the help of nonlinear differential equations. Proposed in the early 1980s, it was a single compartment model based on conceptual compartmentalization of insulin storage. In [9], the authors presented and discussed the pros and cons of the different insulin delivery systems designed via closed-loop configuration for examining the blood glucose levels. The research study covered the concepts from early technologies including syringes, needles to bionic pancreas and (DIYAPS). For the injection of insulin, it is important to take note of exercise routine, current glucose levels and the idea of food intake as it affects glucose levels considerably. Authors suggested a design of mobile application for diabetic patients based on mathematical models illustrating the effects of blood–glucose concentration. The proposed application caters the effects produced during the process of meal intakes and exercise periods on the blood–glucose concentration [10]. A two-compartmental model is designed using a minimal model for plasma–glucose concentrations for healthy and T1D patients [11]. In a study, authors presented an alternative approach for subcutaneous insulin infusion. Regardless of the current technological advancements, the aforesaid scheme has a limited scope for insulin control. This research study deals with the design of Intraperitoneal (IP) insulin control for the distribution and absorption of insulin [12].
Various control algorithms based on a variety of these mathematical models have been reported for optimization of insulin therapy procedures in patients suffering from diabetes. Some of these developments are based on the Proportional Integral Derivative (PID), which is widely used in control applications due to its inherent capability to obtain quick transient response in terms of achieving a steady state in less time and to reduce steady-state error. In [13], a PID controller is used for the infusion of insulin and glucagon to control the glucose levels in the patient’s body using artificial intelligence and predictive control resulting in the lower range of glucose concentration. In [14], two different control strategies, MPC and PID, are evaluated to control the glucose levels in patients affected from exercise and meal intakes to avoid hypoglycemia. Pole placement and optimal control algorithms have also been applied for insulin infusion. Moreover, a number of Model Predictive Control (MPC) laws have been realized and tested in clinical trials which show better results in managing constraints on the controlled and manipulated variables in a systematic manner. A novel strategy was designed in [15] to regulate the parameters of insulin-on-board (IOB) in a real-world scenario. The suggested design was distinctly completed using two different approaches for fasting periods and postprandial periods. The results obtained using the designed technique showed glucose levels in the desired range maintaining the patient’s safety and health. Furthermore, control techniques like Linear Parameter Varying (LPV)-based laws offer a multivariable controller to ensure robustness and to address bandwidth limitations. In [16], a linear filter is proposed using a LPV-based controller to achieve the required plasma–glucose concentrations showing the efficacy of the design for insulin infusion. Another control technique, H-infinity, offers high disturbance rejection and more stability due to its nonlinear nature. [17], showed that large nonlinearity and uncertainty involved in the mathematical representation of the insulin metabolism process lead to the design of the H-infinity controller. The controller was designed to regulate the plasma–glucose concentration for T1DM patients by minimizing the magnitude of the H-infinity norm with respect to external disturbances present in the closed-loop system.
Fuzzy-logic theory has also been applied for insulin infusion. A Mamdani-type fuzzy control scheme is used in a closed-loop manner to maintain the glucose levels in type 1 diabetic patients. Simulation results showed that the designed control algorithm can be used successfully for designing the artificial pancreas [18].
Due to the linear nature of most of the control strategies discussed above, these techniques are incapable of adequately dealing with uncertainties and disturbances which are inherently present in the real-world systems. The present study aimed to design control strategies based on the Linear Quadratic Regulator (LQR) and Sliding Mode Control (SMC), which according to our knowledge, has not been applied comprehensively and comparatively on the estimated model reported in [19]. PID has been chosen as a classical benchmark for performance comparison. LQR is a linear control method which is well known for its feature of decreasing the control effort to optimize the designed controller by an appropriate choice of Q and R matrices [20]. The reliability of the control law designed in LQR is a function of these matrices and may require different values of the matrices in different control scenarios. For the systems with unmodeled disturbances and parametric variations, the SMC technique is an attractive control method due to its robust nature and disturbance rejection capability [21]. SMC was selected due to its robustness, finite-time convergence, ultimate accuracy and insensitive nature to external and internal disturbances [22]. Consequently, SMC serves as an appropriate choice for physiological settings requiring high precision. The emphasis of this research article is on the control design to regulate the insulin infusion using linear and nonlinear control techniques. The controller designed through the nonlinear control technique, SMC, achieves the desired glucose levels (70 mg/dL) in minimum time, proving the efficacy of the design. Simulation results obtained with the SMC controller show better performance in terms of their time domain specifications when compared with linear (PID and LQR) and nonlinear transformation-based SMC controllers available in literature.
The paper is organized in six sections. The dynamic model of a glucose insulin system is derived in Section 2. The theoretical basis of a controller design and functions are discussed in detail in Section 3. Section 4 presents the simulation results and discussion. Section 5 shows the comparison between two linear control techniques (PID and LQR) used in this research work and a nonlinear control technique Sliding Mode Control (SMC). Finally, Section 6 concludes the paper.

2. Modeling and Analysis

2.1. The Estimated Model

The estimated model approach to describe system dynamics of glucose insulin relies on data extracted from sources such as research studies, hospitals and diabetes simulators, e.g., Attention Interest Desire Action (AIDA), UVA/Padova, ESIM simulator, etc. In the present research, an estimated model has been derived using a UVA/Padova simulator. The identification procedure is detailed below: for each in silico patient, the deviation of insulin delivery from the desired glucose concentration is identified by a linear model. To ensure capturing of the response at various points, interstitial concentrations of 90, 120 and 150 mg/dL of glucose have been taken. Thus, three linear models corresponding to each patient have been obtained. For a particular concentration of glucose, the identification process consists of obtaining the basal insulin (Ib) at steady state and then adding it to a sinusoidal insulin sweep. The glucose deviation is finally captured by infusing the signal obtained in the previous step. Subspace identification algorithms have been used to obtain third-order models in all the cases as in [23].
For control purposes, a third-order discrete transfer function G z relating glucose to insulin has been defined as,
G z = C 0 z 3 1 z 1 p 1 1 z 1 p 2 1 z 1 p 3
where p 1 ,   p 2 , and p 3 vary from patient to patient [19]. Figure 1 shows the basic diagram of the feedback control system.
This model given in (2) has been transformed into a continuous model using zero-order hold for computational convenience, as shown in (3). The following transfer function has been obtained by using values of parameters C o   , p 1 , p 2 and p 3 as 0.132, 0.965, 0.95 and 0.93, respectively. The values are chosen such that the gain is overestimated and the phase is kept lower than all other identified models in order to obtain robustness.
G z = 0.132 z p 1 z p 2 z p 3
G s = 8.263 10 5 s 2 + 4.022 10 7 s 6.61 10 10 s 3 + 2.658 10 4 s 2 + 2.26 10 8 s + 6.14 10 13  
Using (3), the system model in state space representation has been derived as,
A = 2.805 1.311 0.8172 2 0 0 0 0.5 0                    
B = 0.5 0 0    
C = 0     0     0.264
D = 0  
where A is the state matrix, B is the input matrix, C is the output matrix and D is the direct transmission matrix as shown in (3a) to (3d).

2.2. Closed-Loop Response of the Estimated Model

The step response of the feedback loop system is shown in Figure 2. It is evident that system response leads to instability, which is due to presence of a pole in the Right Half-Plane (RHP), as shown in Figure 3, which illustrates a pole-zero plot. Thus, a control algorithm has to be designed that could shift the RHP pole to the Left Half-Plane (LHP), subsequently making the system response stable.

2.3. Controllability and Observability

The matrices ⏀ and ᴪ, (3e) and (3f), respectively indicate controllable and observable notion of the system that have been calculated by using system matrices A, B and C in ⏀ = [ B , A B , A 2 B , A 3 B , A n 1 B ] and ᴪ = C , C A , C A 2 , C A 3 . C A n 1 T , where “n” is the rank of matrix A. The resultant matrices given below are full-rank matrices; therefore, all states are completely controllable and observable, which implies that a state feedback controller can be designed.
= 0.5 1.4025 2.6228 0 1 2.805 0 0 0.5
= 0 0 2.64 2 0.132 0 2.64 0 0    
In the following section, we have shown the details of a linear (PID and LQR) and nonlinear control technique (SMC), which we will be using to design the control laws to maintain the blood glucose level within the range.

3. Controller Design Methods

Over- and under-dosing of insulin in diabetics have some serious effects on their health. The major task in glycemic control is to infuse the right quantity of insulin to ensure that the glucose level remains within the standard physiological range (70 to 110 mg/dL). Both linear and nonlinear control design methods have been employed on estimated models to control the glucose level given in Section 2. In the next section, a detailed and comprehensive discussion is presented for the linear and nonlinear control methods studied in this research work.

3.1. Linear Control Algorithms

Systems obeying a superposition principle are mainly controlled by linear control algorithms, as any change in system input would cause an equal amount of change in the output [24]. While using linear control algorithms, model uncertainties and disturbances like exercise and meal are taken as zero. In this research work, two linear control techniques, PID and LQR, are implemented for glycemic control. The objective is to adjust the amount of insulin delivery so that it provides good control of glucose levels in less amount of time.

3.1.1. PID Control

PID controllers are widely used in industrial applications as well as in many research areas because of their efficient nature, simplicity, fast response and having large power to overcome the steady-state error. PID controllers are the typical option to start with, and reasonable results may be obtained. The quick response or the speed of the response is the main advantage of PID control. The PID controllers are involved in three types of control actions, proportional control, integral control, and derivative control, where k p   ,   k i   and   k d   are the individual gains of these control actions, respectively [25]. In PID, the system output is connected with the input. If the output of the system has some difference between the reference point, then PID controllers modify the input according to the difference in the reference point and the current output. The output of the system due to the proportional parameter of the controller depends on the present change in the error, output due to the integral parameter depends on the past error and the output due to the derivative parameter depends on the future error.
In order to get the desired output of the system in terms of transient and steady-state response, we usually adjust or tune the values of these three parameters. The PID controller operates on the error signal e(t) to regulate the overall control action of the system. In this control law, the control input which minimizes the error is the weighted sum of three terms, i.e.,
u t = k p e t + k i e t d t + k d d e t d t  
and its s-domain transfer function is shown in (5) as,
H c s = k p + k i s + s k d                
k p represents the present gain of the error, k i represents the past error and k d represents the future error,   ' t ' is instantaneous time, e t is the difference between measured and desired glucose values and u t is the control input. Table 1 shows the effect of different gains of the PID controller.

3.1.2. Linear Quadratic Regulator

This is an optimal control law which serves as a basis for robust techniques. Systems with conventional LQR controllers present good stability properties and are optimal with respect to a certain performance index. However, LQR control does not assure robust stability when the system is highly uncertain. The classic LQR approach deals with the optimization of a cost function or performance index. Thus, the designer can weight which states and which inputs are more important in the control action to seek for appropriate transient and steady-state performances. The main objective in this method is to minimize quadratic cost function given using,
J x , t = x T Q x t f t + u T R u d t  
where   R = R t > 0 , Q = Q t 0 are matrices satisfying positive definite property. The LQR problem can be viewed as the weighted minimization of a linear combination of the states “x” and the control input u. The cost function, defined by quadratic equation, is minimum where the dynamic system is described by a linear differential equation. The Q matrix deals with the bad performance of the system and the R matrix deals with how much the effort is required in the system. The integral part shows how quickly the system returned to its normal position. In order to calculate the gain matrix K , the following relation has been used,
K = R 1 B T P  
where ' P ' also satisfies the positive definite property.
Proper functioning of the control systems designed through linear control approaches heavily rely on the fact that the model parameters to be analyzed should be valid in the small operating range. Because of such limitations, systems designed with linear strategies might perform inadequately or often become unstable, staying far from the required specifications. Linear controllers are not sufficiently skilled to handle uncertainties and nonlinearities influencing the system. Contrary to linear control strategies, nonlinear control methods are very useful under circumstances where uncertainties and nonlinearities have a pivotal role in the system. Nonlinear controller design techniques accommodate the uncertainties and nonlinearities existing in the system and achieving a stable state efficiently. In the next subsection, a brief theoretical background related to the Sliding Mode Control (SMC) is presented for controller design.

3.1.3. Nonlinear Control Method

Nonlinear control methods are applicable on the systems which are time-variant, nonlinear in behavior, or both. This theory is generally applied to real-world control systems owing to their inherently nonlinear nature [26,27]. The major advantage of this theory is that it ensures robustness against uncertainties and disturbances. Nonlinear control strategies may lead towards the simpler controller design when compared to its corresponding linear part while having the superior performance. In practical scenarios with linear techniques, high-quality sensors and actuators are needed to generate and record the linear behavior for the proper functioning of the control system in the desired range, whereas a similar control system designed through nonlinear method may permit the designer to use the cheaper components having nonlinear properties.
In this research work, a nonlinear control strategy, the Sliding Mode Control (SMC), is used to design the control law to regulate the glucose level in a diabetic patient. The robust nature of the Sliding Mode Control to cater to the effects of external disturbances acting on the system inspired the control engineers to explore this technique for diverse applications, especially in the biomedical field.
SMC is a nonlinear control method which changes the nonlinear dynamics and ensures robustness [28,29]. The basic principle of SMC is to changes system dynamics in such a way that states remain on a sliding manifold, as parameters are varied by the controller. The main property of this design technique is the enforcement of the states of the system trajectories onto a defined surface, resulting in a reaching phase [30]. These surfaces are also known as manifold and created as some hypersurface or intersection of hypersurfaces in the state space known as switching surfaces. As the states of the system reach the switching surface, the structure of the feedback loop is adaptively altered to slide the system states along the switching manifold, and this phase is known as the sliding phase.
While using SMC for glycemic control, the primary objective is to ensure robustness against disturbances such as exercises and meals. In this regard, a sliding surface ' s ' comprising of system states is designed.
In this procedure, the system states move from the non-zero initial state towards the sliding surface and stay on that surface for all future values of time. The designed control law consists of two parts: u e q and u d i s c , corresponding to the reaching phase and sliding phase respectively, where u e q and u d i s c are the equivalent control and discontinuous control, respectively. The control law designed by using the sliding mode control is given as,
u = u e q + u d i s c
u e q is designed by putting the derivative of sliding surface equal to zero. u d i s c is obtained with such conditions that it rejects the effect of the disturbance terms and maintains the derivative of the sliding surface equal to zero. Usually,
u d i s c = k s i g n s      
For stability purposes, the Lyapunov candidate function is defined as,
V = 1 2 ( s 2 )            
with ' s ' being sliding surface and this Lyapunov function is positive definite if and only if,
V ˙ = s s ˙ 0  
Section 4.3 shows in detail the steps needed to design a Sliding Mode Controller. In the following section, a detailed discussion is presented on the simulation results obtained using PID, LQR and SMC for analysis and comparison purposes.

4. Results and Discussion

This section shows the design with simulation results of each controller studied in this research work in maintaining the glucose concentration level within normal range for diabetic patients in detail. To investigate the performance of a feedback-controlled insulin infusion system, the predefined model shown in (1) is analyzed individually. Simulation results of the system without a controller in terms of its bode plot, root locus and step response are shown in Figure 4, Figure 5 and Figure 6. The frequency response shows that the system is not stable, as well as the root locus in which the poles are in Right Half-Plane. Similarly, the step response shows that the system is not following the step input. These results reflect clearly the unstable nature of the system which demands the need of a controller that can handle and control the insulin infusion system for the adequate supply of insulin to the patients.

4.1. PID Controller

In order to maintain glucose concentration within a normal range in the human body, a Proportional, Integral, Derivative control-based technique is designed and implemented. The PID controller is successfully implemented to control the concentration of glucose level in blood. The step response of the system follows the step input with the PID controller, showing the stability of the insulin infusion system, as depicted in Figure 7. Similarly, the root locus of the system in the presence of a designed PID controller shows that the poles move towards the Left Half-Plane, as shown in Figure 8. The tuning parameters for the PID controller are chosen as follows, and are shown in Table 2. The glucose profile shown in Figure 9 reveals that, by using the PID controller, the glucose level is maintained in the defined range and it can be interpreted that a glucose level of 70 mg/dL is obtained after approximately 430 s, thus demonstrating very large settling time.

4.2. Linear Quadratic Regulator

Since states are controllable and observable, choosing R = I and Q matrix as under,
Q = 0.001 0 0 0 0.2341 0 0 0 0.22  
The gain matrix ' k ' is found to be,
K = 0.231 0.4947 0.4687
Simulation results for the glucose profile using LQR are shown in Figure 10. It is evident that the same glucose level of 70 mg/dL is achieved at around 113 s, showing better performance compared to the PID controller in terms of settling time.
A major drawback of a linear control algorithm is that it cannot perform adequately in the presence of disturbances and uncertainties. The uncertainties appearing in the system may be caused by variations in parameters, unmodeled dynamics and internal and external disturbances. These limitations and poor performance in linear control techniques motivated us to apply a nonlinear control method on the same model, since nonlinear techniques overperform compared to their linear counterparts, as highlighted in [31,32].

4.3. Sliding Mode Control

The design of a control law based on SMC requires definition of a sliding surface shown as,
s = c 1 x 1 + c 2 x 2 + c 3 x 3  
where c 1 ,   c 2   and   c 3 are tuning parameters. With c 1 and c 3 = 1 , the values of other parameters are chosen in a way that the derivative of the sliding surface becomes Hurwitz monic-polynomial. This condition ensures reduction in order of the system, which can be represented with n 1 states. Such a system demonstrates insensitivity to matched uncertainties. Taking the derivative of Equation (13) wrt time ' t ' , we get,
s ˙ = c 1 x 1 ˙ + c 2 x 2 ˙ + c 3 x 3 ˙
Now, let us define a positive definite Lyapunov function as under,
V = 1 2 s 2
Differentiating wrt time ' t ' , we obtain,
V ˙ = s s ˙ 0
Using the value of s ˙ in (16), we get,
V ˙ = s ( c 1 x 1 ˙ + c 2 x 2 ˙ + c 3 x 3 ) ˙
From state equations, we have,
  V ˙ = c 1 x 1 + c 2 x 2 + c 3 x 3 ( 2.416 10 4 x 1 + 5.7105 10 4 x 2 9.105 10 5 x 3 + 0.25 u )
The equivalent control forces the system dynamics to move to the sliding surface and depends on the states of the system and state parameters. It makes the derivative of sliding manifold equal to zero. Therefore, taking s ˙ = 0 , the control input ' u ' is defined as,
2.416 10 4 x 1 + 5.7105 10 4 x 2 9.105 10 5 x 3 + 0.25 u = 0    
u e q = 1 0.25 ( 2.416 10 4 x 1 5.7105 10 4 x 2 + 9.105 10 5 x 3
The overall control law ' u ' designed through SMC consists of equivalent control ( u e q ) and discontinuous control ( u d i s c ) , i.e.,
u = u e q + u d i s c
The designed control law including u d i s c can be written as,
u e q = 1 0.25 ( 2.416 10 4 x 1 5.7105 10 4 x 2 + 9.105 10 5 x 3 + u d i s c    
where u d i s c = k 1 s k s S i g n s is the discontinuous control, and k 1 and k 2 are control parameters for tuning, where u d i s c can be completely defined using signum function as,
S i g n s = + 1     f o r     s > 0 1     f o r     s < 0
Thus, we can write,
V ˙ = s ( k 1 s ˙ k 2 s i g n s
V ˙ = k 1 s 2 k 2 s
This relation shows that the Lyapunov function is negative-definite. Equation (22) shows the derived control law using the nonlinear control strategy (SMC). To investigate and characterize the performance of the designed controller, the resultant control law is implemented in MATLAB, which shows better results as compared to the linear control strategies (PID and LQR) in terms of transient and steady-state parameters. Table 3 lists values of various parameters used in the design of SMC-based law.
A reference glucose level of 70 mg/dL is defined using MATLAB function. The quantity of infused insulin is determined by the designed control law. Simulation results for glucose profile using SMC are shown in Figure 11.
The designed controller efficiently tracks the basal value after starting from a high value of blood glucose level, i.e., 200 mg/dL shown in Figure 11. The SMC-based control law depicts far better performance in terms of settling time by acquiring the required glucose level in about 15 s, thus proving the accuracy and robustness of the SMC controller. The reduced value of settling time shows that the desired blood–glucose concentration is achieved earlier and the system becomes stable in less time, facilitating the T1DM patients for have a normalized blood–-glucose level in less time. Simulation results show that SMC also performs well in dealing with the system uncertainties compared to PID and LQR. The robustness of the designed controller against uncertainties can be characterized by introducing a disturbance in the form of a sinusoidal signal.
One major drawback while using first-order SMC is chattering, a common phenomenon which arises due to fast switching of control action around the sliding surfaces. Chattering in control input ' u ' can be seen in Figure 12; since high amplitude of chattering is undesirable, low-pass filters can be used along with SMC, which can reduce this high-frequency switching [33].
The following section shows a comparative analysis between the two linear control techniques used in this study and SMC with the work presented in [34].

5. Comparative Analysis

In this section, a detailed and comprehensive analysis is drawn on the basis of time response specifications between the two linear control techniques used in this research work (PID and LQR). In both cases, a blood–glucose concentration of 70 mg/dL is achieved successfully, resulting in the minimum steady-state error. The large transient part of the blood–glucose profile with the PID controller shows that the steady state is achieved in more time, resulting in a large time constant and, therefore, larger settling time. The small transient part of the blood–glucose profile with LQR shows that the steady state is achieved earlier or in less time, resulting in a small time constant and, therefore, small settling time. A small value of settling time shows that the system achieved stability in less time with LQR as compared to PID. The settling time in the case of PID is 430 s and with LQR, it is 113 s approximately, showing better performance in terms of transient and steady-state analysis.
A comparison of the nonlinear control method, Sliding Mode Control (SMC) used in this research, is drawn with [34], in which an SMC controller is designed based on nonlinear transformation to normalize the high blood glucose level for diabetic patients. In this study, the reference value for blood–glucose concentration is taken as 120 mg/dL, which is achieved at around 100 min with the designed SMC (nonlinear transformation) controller showing a very large settling time in terms of time response specifications, as shown in Figure 13 [34]. Simulation results show that the required blood–glucose concentration is still achieved successfully. The reference value for the optimal glucose level, blood glucose for open-loop configuration and the glucose profile using sliding mode control (nonlinear transformation) in closed-loop fashion are plotted. However, the derived control law using SMC in this research work tracks the desired level of glucose for diabetic patients in an acceptable physiological range of (70 mg/dL to 110 mg/dL) in approximately 15 s, demonstrating the superior performance compared to the linear control techniques discussed above and SMC, based on nonlinear transformation as designed in [34]. The bolus dose is the same, i.e., 200 mg/dL in both the cases.

6. Conclusions

This paper presents control techniques to regulate the glucose levels in patients suffering from diabetes to avoid risks of hyperglycemia and hypoglycemia. The model independent strategy has been considered where the mathematical model describing glucose insulin system was based on experimental data. Discrete time transfer function has been obtained and transformed into continuous domain by the zero-order hold method. Both linear (PID and LQR) and nonlinear schemes (SMC) have been investigated in detail and have been applied on glucose insulin system models. The designed nonlinear control law demonstrated superior performance compared to the linear control techniques in terms of tracking of the desired glucose level (70 mg/dL). Also, the designed first-order SMC was found to yield better results for the estimated model with low sensitivity to plant disturbances and uncertainties. The achieved results are compared with another variant of SMC controller which is based on nonlinear transformation. The derived SMC controller shows better performance in terms of time response parameters. However, chattering in the control input resulted due to the switching action, which is quite evident from the presented simulation results. By applying higher-order SMC techniques along with low-pass filters, chattering can be reduced.

Future Action

In future, artificial intelligence-based controllers can be designed to achieve the desired blood–glucose concentration using a reinforcement learning (RL) algorithm.

Author Contributions

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

Funding

This research was supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF), which is funded by the Ministry of Education (NRF-2021R111A3053429).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Rabinovich, M.; Grahl, J.; Durr, E.; Gayed, R.; Chester, K.; McFarland, R.; McLean, B. Risk of hypoglycemia during insulin infusion directed by paper protocol versus electronic glycemic management system in critically ill patients at a large academic medical center. J. Diabetes Sci. Technol. 2018, 12, 47–52. [Google Scholar] [CrossRef]
  2. Vettoretti, M.; Facchinetti, A. Combining continuous glucose monitoring and insulin pumps to automatically tune the basal insulin infusion in diabetes therapy: A review. Biomed. Eng. Online 2019, 18, 1–17. [Google Scholar] [CrossRef] [Green Version]
  3. Bode, B.W.; Garg, S.K.; Norwood, P.; Morales, C.; Hardy, T.; Liu, R.; Ignaut, D. Compatibility and safety of ultra rapid lispro with continuous subcutaneous insulin infusion in patients with type 1 diabetes: PRONTO-Pump Study. Diabetes Technol. Ther. 2021, 23, 41–50. [Google Scholar] [CrossRef]
  4. Iflaifel, M.; Lim, R.H.; Crowley, C.; Greco, F.; Ryan, K.; Iedema, R. Modelling the use of variable rate intravenous insulin infusions in hospitals by comparing work as done with work as imagined. Res. Soc. Adm. Pharm. 2022, 18, 2786–2795. [Google Scholar] [CrossRef]
  5. Rahman, M.S.; Badal, F.; Alam, M.S.; Tanvir, M.; Khan, S.M.; Das, S. Effect of PID Controller on Blood Glucose Concentration for Varying Plasma Insulin, Independent Glucose Flux, Renal Glucose Clearance and Gut Absorption Rate. In Proceedings of the 2021 International Conference on Automation, Control and Mechatronics for Industry 4.0 (ACMI), Rajshahi, Bangladesh, 8–9 July 2021; pp. 1–6. [Google Scholar]
  6. Pala, L.; Dicembrini, I.; Mannucci, E. Continuous subcutaneous insulin infusion vs modern multiple injection regimens in type 1 diabetes: An updated meta-analysis of randomized clinical trials. Acta Diabetol. 2019, 56, 973–980. [Google Scholar] [CrossRef]
  7. Jennings, P.; Hussain, S. Do-it-yourself artificial pancreas systems: A review of the emerging evidence and insights for healthcare professionals. J. Diabetes Sci. Technol. 2020, 14, 868–877. [Google Scholar] [CrossRef]
  8. Boughton, C.K.; Hovorka, R. Is an artificial pancreas (closed-loop system) for Type 1 diabetes effective? Diabet. Med. 2019, 36, 279–286. [Google Scholar] [CrossRef]
  9. Kesavadev, J.; Saboo, B.; Krishna, M.B.; Krishnan, G. Evolution of insulin delivery devices: From syringes, pens, and pumps to DIY artificial pancreas. Diabetes Ther. 2020, 11, 1251–1269. [Google Scholar] [CrossRef]
  10. Hernández-Ordoñez, M.; Nuño-Maganda, M.A.; Calles-Arriaga, C.A.; Rodríguez-León, A.; Ovando-Chacon, G.E.; Salazar-Hernández, R.; Montaño-Rivas, O.; Canseco-Cortinas, J.M. Medical Assistant Mobile Application for Diabetes Control by Simulating a Compartmental Model. Appl. Sci. 2020, 10, 6846. [Google Scholar] [CrossRef]
  11. Martinez, F.; Rodriguez, E.; Vernon-Carter, E.J.; Alvarez-Ramirez, J. A simple two-compartment model for analysis of feedback control of glucose regulation. Biomed. Signal Process. Control 2022, 72, 103363. [Google Scholar] [CrossRef]
  12. Michele, S.; Cobelli, C.; Man, C.D. Modeling Intraperitoneal Insulin Absorption in Patients with Type 1 Diabetes. Metabolites 2021, 11, 600. [Google Scholar]
  13. Willmon, P. Glucose Regulation Using an Intelligent PID Controller. 2020. Available online: https://www.google.com.hk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwjptMGaodX6AhUMNN4KHaM3DMIQFnoECBAQAQ&url=https%3A%2F%2Fdigitalcommons.latech.edu%2Fcgi%2Fviewcontent.cgi%3Farticle%3D1021%26context%3Dmathematics-senior-capstone-papers&usg=AOvVaw2PsO3Cg_DJ06Dzrzxid4j8 (accessed on 17 May 2020).
  14. Matamoros-Alcivar, E.; Ascencio-Lino, T.; Fonseca, R.; Villalba-Meneses, G.; Tirado-Espín, A.; Barona, L.; Almeida-Galárraga, D. Implementation of MPC and PID Control Algorithms to the Artificial Pancreas for Diabetes Mellitus Type 1. In Proceedings of the 2021 IEEE International Conference on Machine Learning and Applied Network Technologies (ICMLANT), Soyapango, El Salvador, 16–17 December 2021; pp. 1–6. [Google Scholar]
  15. Bertachi, A.; Biagi, L.; Beneyto, A.; Vehi, J. Dynamic rule-based algorithm to tune insulin-on-board constraints for a hybrid artificial pancreas system. J. Healthc. Eng. 2020, 2020, 1414597. [Google Scholar] [CrossRef] [Green Version]
  16. Mirzaee, A.; Dehghani, M.; Mohammadi, M. Robust LPV control design for blood glucose regulation considering daily life factors. Biomed. Signal Process. Control 2020, 57, 101830. [Google Scholar] [CrossRef]
  17. Sherif, S.; Kralev, J.; Slavov, T.; Kunchev, V. Design of the H∞ regulator for the control of glucose concentration in patients with first type diabetes. In IOP Conference Series: Materials Science and Engineering; IOP Publishing: Bristol, UK, 2020; Volume 878, p. 012003. [Google Scholar]
  18. Sharma, A.; Singh, H.P. Computer-controlled diabetes disease diagnosis technique based on fuzzy inference structure for insulin-dependent patients. Appl. Intell. 2022, 1–14. [Google Scholar] [CrossRef]
  19. Colmegna, P.; Peña, R.S.S.; Gondhalekar, R.; Dassau, E.; Doyle, F.J., III. Reducing Risksin Type 1 Diabetes Using H-infinity Control. IEEE Trans. Biomed. Eng. 2014, 61, 2939–2947. [Google Scholar] [CrossRef]
  20. Ajwad, S.A.; Iqbal, J.; Islam, R.U.; Alsheikhy, A.; Almeshal, A.; Mehmood, A. Optimal and robust control of multi DOF robotic manipulator: Design and hardware realization. Cybern. Syst. 2018, 49, 77–93. [Google Scholar] [CrossRef]
  21. Alam, W.; Mehmood, A.; Ali, K.; Javaid, U.; Alharbi, S.; Iqbal, J. Nonlinear control of a flexible joint robotic manipulator with experimental validation, Strojniškivestnik. J. Mech. Eng. 2018, 64, 47–55. [Google Scholar]
  22. Liu, J.; Gao, Y.; Yin, Y.; Wang, J.; Luo, W.; Sun, G. Basic theory of sliding mode control. In Sliding Mode Control Methodology in the Applications of Industrial Power Systems; Springer: Cham, Switzerland, 2020; pp. 11–25. [Google Scholar]
  23. Cescon, M.; Ståhl, F.; Landin-Olsson, M.; Johansson, R. Subspace-based model identification of diabetic blood glucose dynamics. IFAC Proc. Vol. 2009, 42, 233–238. [Google Scholar] [CrossRef] [Green Version]
  24. Ullah, M.I.; Ajwad, S.A.; Irfan, M.; Iqbal, J. Non-linear control law for articulated serial manipulators: Simulation augmented with hardware implementation. Elektron. Ir Elektrotechnika 2016, 22, 3–7. [Google Scholar] [CrossRef] [Green Version]
  25. Günther, J.; Reichensdörfer, E.; Pilarski, P.M.; Diepold, K. Interpretable PID parameter tuning for control engineering using general dynamic neural networks: An extensive comparison. PLoS ONE 2020, 15, e0243320. [Google Scholar] [CrossRef]
  26. Iqbal, J.; Ullah, M.; Khan, S.G.; Khelifa, B.; Cukovic, S. Nonlinear control systems-A brief overview of historical and recent advances. Nonlinear Eng. 2017, 6, 301–312. [Google Scholar] [CrossRef]
  27. Wang, Y.; Zhu, Y.; Ji, W.; Jiang, Y.; Wang, S. Fault estimation for continuous-time non-linear switched systems with time-varying delay based on intermediate estimator. IET Control Theory Appl. 2020, 14, 3020–3028. [Google Scholar] [CrossRef]
  28. Ilyas, M.; Iqbal, J.; Ahmad, S.; Uppal, A.A.; Imtiaz, W.A.; Riaz, R.A. Hypnosis regulation in propofol anesthesia employing super-twisting sliding mode control to compensate variability dynamics. IET Syst. Biol. 2020, 14, 59–67. [Google Scholar] [CrossRef] [PubMed]
  29. Ilyas, M.; Khaqan, A.; Iqbal, J.; Riaz, R.A. Regulation of hypnosis in Propofol anesthesia administration based on non-linear control strategy. Braz. J. Anesthesiol. 2017, 67, 122–130. [Google Scholar] [CrossRef] [PubMed]
  30. Chen, L.; Zhu, Y.; Ahn, C.K. Novel quantized fuzzy adaptive design for nonlinear systems with sliding mode technique. Nonlinear Dyn. 2019, 96, 1635–1648. [Google Scholar] [CrossRef]
  31. Khaqan, A.; ul Hasan, Q.; Malik, S.A.; Bilal, M.; Butt, M.F.U.; Riaz, R.A. Comparison of two nonlinear control strategies for hypnosis regulation. Arab. J. Sci. Eng. 2017, 42, 5165–5178. [Google Scholar] [CrossRef]
  32. Khaqan, A.; Riaz, R.A. Depth of hypnosis regulation using nonlinear control approach. In Proceedings of the 2016 IEEE International Conference on Electro Information Technology (EIT), Grand Forks, ND, USA, 19–21 May 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 0100–0104. [Google Scholar]
  33. Álvarez Rodríguez, S. Robustness vs Chattering-effect study for the Sliding Mode Control. Nova Sci. 2019, 11. [Google Scholar] [CrossRef]
  34. Xavier, J.; Divya, N.; Krithiga, M.B.; Patnaik, S.K.; Panda, R.C. Blood Glucose Regulation in Type-1 Diabetic Patients using Sliding Mode Control Based on Nonlinear Transformation. IFAC-Pap. 2022, 55, 902–907. [Google Scholar] [CrossRef]
Figure 1. Conceptual diagram of closed-loop control scheme.
Figure 1. Conceptual diagram of closed-loop control scheme.
Sensors 22 07773 g001
Figure 2. Closed-loop unit step response.
Figure 2. Closed-loop unit step response.
Sensors 22 07773 g002
Figure 3. Pole-zero plot of the system.
Figure 3. Pole-zero plot of the system.
Sensors 22 07773 g003
Figure 4. Bode plot of system.
Figure 4. Bode plot of system.
Sensors 22 07773 g004
Figure 5. Root locus of system.
Figure 5. Root locus of system.
Sensors 22 07773 g005
Figure 6. Step response of the system.
Figure 6. Step response of the system.
Sensors 22 07773 g006
Figure 7. Step response using the PID controller.
Figure 7. Step response using the PID controller.
Sensors 22 07773 g007
Figure 8. Root locus using the PID controller.
Figure 8. Root locus using the PID controller.
Sensors 22 07773 g008
Figure 9. Glucose profile using the PID design.
Figure 9. Glucose profile using the PID design.
Sensors 22 07773 g009
Figure 10. Glucose profile using the LQR design.
Figure 10. Glucose profile using the LQR design.
Sensors 22 07773 g010
Figure 11. Glucose profile using the SMC design.
Figure 11. Glucose profile using the SMC design.
Sensors 22 07773 g011
Figure 12. Chattering in control input u.
Figure 12. Chattering in control input u.
Sensors 22 07773 g012
Figure 13. Glucose profile using SMC based on nonlinear transformation.
Figure 13. Glucose profile using SMC based on nonlinear transformation.
Sensors 22 07773 g013
Table 1. Effects of proportional, integral and derivative gains of the PID controller.
Table 1. Effects of proportional, integral and derivative gains of the PID controller.
ResponseRise TimeOvershootSettling TimeSteady-State Error
k p DecreaseIncreaseNo effectDecrease
k i DecreaseIncreaseIncreaseEliminate
k d No effectDecreaseDecreaseNo effect
Table 2. Parameters for the designed PID controller.
Table 2. Parameters for the designed PID controller.
P r o p o r t i o n a l   g a i n   k p −0.000151
I n t e g r a l   g a i n   k i −0.0000000275
D e r i v a t i v e   g a i n   k d −0.207
Table 3. Parameters for the SMC controller design.
Table 3. Parameters for the SMC controller design.
Parameters c 1   c 2   c 3   k 1   k 2  
Values12.5169
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Khaqan, A.; Nauman, A.; Shuja, S.; Khurshaid, T.; Kim, K.-C. An Intelligent Model-Based Effective Approach for Glycemic Control in Type-1 Diabetes. Sensors 2022, 22, 7773. https://doi.org/10.3390/s22207773

AMA Style

Khaqan A, Nauman A, Shuja S, Khurshaid T, Kim K-C. An Intelligent Model-Based Effective Approach for Glycemic Control in Type-1 Diabetes. Sensors. 2022; 22(20):7773. https://doi.org/10.3390/s22207773

Chicago/Turabian Style

Khaqan, Ali, Ali Nauman, Sana Shuja, Tahir Khurshaid, and Ki-Chai Kim. 2022. "An Intelligent Model-Based Effective Approach for Glycemic Control in Type-1 Diabetes" Sensors 22, no. 20: 7773. https://doi.org/10.3390/s22207773

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