Acessibilidade / Reportar erro

Design of Robust Evolving Cloud-Based Controller for Type 1 Diabetic Patients Using n-Beats Algorithm

Abstract

Designing and analyzing adaptive controllers to control blood glucose levels by giving insulin in the Lehman-Based Diabetic Patient Model (LBDPM) while considering diverse stochastic environments in gaining popularity is challenging task. RECCo, a notable recent innovation that implements the concept of the ANYA fuzzy rule-based system, is an online adaptive type controller that is used in this study for the application of diabetes. The simulation results show that the suggested controller is used in the model to track standard blood glucose values even in the presence of some unexpected external disturbances. The primary concern in the field of type 1 diabetes is achieving higher accuracy using a deep learning algorithm with data obtained from simulated patient models. To achieve better accuracy, validation of the model is performed using the N-BEATS algorithm. By utilizing an online parameter estimation technique, the RPME is integrated to improve the performance of the adaptive model predictive controller. The system identification technique is used to attain a transfer function that is designed further for implementation of the controller. The experimental validation of the proposed N-BEATS algorithm method is compared with other conventional machine learning algorithms. The proposed controller method attains excellent blood glucose set point tracking and the proposed algorithms give accuracy rates of 97.4% and 96% for the data obtained. It outperforms other state-of-the-art methods with an increase in the accuracy percentage compared with other Benchmark Pima Indian Diabetes Datasets (PIDD).

Keywords:
Adaptive Model Predictive Control (AMPC); Glucose-Insulin (GI); Lehman Based Diabetic Patient Model (LBDPM); Neural Network (NN); Neural Basis Expansion Analysis for Interpretable Time Series (N-BEATS)

HIGHLIGHTS

RECCo is an online adaptive type controller, represents a notable recent innovation in the field of diabetes management.

RPME is an online parameter estimation technique into the Adaptive Model Predictive Controller based on real-time data, making it more adaptive to changes in the patient's condition.

The proposed N-BEATS algorithm is used for model validation. Comparing the performance of this algorithm with other conventional machine learning algorithms adds novelty to the study's approach.

INTRODUCTION

Diabetes is a common chronic disease, and every year, billions of dollars are spent for its treatment. The total amount of expenses was estimated at approximately 133 billion dollars in 2002. The estimation has been increased to 245 billion dollars by 2014. Studies show that the number of patients suffering from diabetes around the world may increase to 400 million by 2025. This situation has motivated many researchers to find new ways of treatment for diabetes patients. Generally, the standard value of blood glucose is an approximately 80-120 mg/dl, and this phenomenon is termed normoglycemia. To avoid hypo and hyperglycemia, significant control of blood glucose is essential [11 Katsarou A, Gudbjörnsdottir S, Rawshani A, Dabelea D, Bonifacio E, Anderson BJ, et al. Type 1 diabetes mellitus. Nat Rev Dis Primers. 2017 Mar 30; 3:17016. https://doi.org/10.1038/nrdp.2017.16.
https://doi.org/10.1038/nrdp.2017.16...
]. A cure for the disease is often prescribed with a suitable daily dosage of insulin injection. The advanced method is the usage of an insulin pump, which requires a closed-loop system for maintaining sugar levels for injecting insulin manually and a usage of the sensor to calculate the concentration level of blood glucose. The major physiological models that are considered for the representation of the study are a very simple state of the models, the Lehman Based Diabetic Patient Model (LBDPM) [22 Ellahham S. Artificial Intelligence: The Future for Diabetes Care. Am J Med. 2020 Aug; 133(8):895-900. https://doi.org/10.1016/j.amjmed.2020.03.033.
https://doi.org/10.1016/j.amjmed.2020.03...

3 Tauschmann M, Hovorka R. Technology in the management of type 1 diabetes mellitus - current status and future prospects. Nat Rev Endocrinol. 2018 Aug; 14(8):464-75. https://doi.org/10.1038/s41574-018-0044-y.
https://doi.org/10.1038/s41574-018-0044-...
-44 Lehmann ED, Deutsch T. A physiological model of glucose-insulin interaction in type 1 diabetes mellitus. J Biomed Eng. 1992 May;14(3):235-42. https://doi.org/10.1016/0141-5425(92)90058-s.
https://doi.org/10.1016/0141-5425(92)900...
], in which the design procedure includes a model based on external disturbances such as meals, exercise, and measurement noise that may cause a sudden fluctuation in the glucose/sugar level. In this research conventional types of controllers such as PID is compared with recent AMPC is tested to overcome sudden changes and its controller performance was evaluated with one more adaptive proposed new controllers such as RECCo to regulate the variation of glucose level even in case of disturbances. The simulated data taken from developed system is further evaluated using the N-BEATS algorithm for its performance analysis. The Proposed model includes the different kinds of impact of characteristics such as time-varying parameters, uncertainty cases, lack of sensitivity to glucose are also considered for the present design work for patient and controller.

The model proposed by [55 Parameswari A, Bhavani S, Vinoth Kumar K. A Deep Learning Based Glioma Tumour Detection Using Efficient Visual Geometry Group Convolutional Neural Networks. Braz Arch Biol Technol. 2024;67:e24230705. https://doi.org/10.1590/1678-4324-2024230705
https://doi.org/10.1590/1678-4324-202423...
] is applied for simulation using various control techniques that give a satisfactory performance. In this category, working patient model include systems considering both types of linear and nonlinear systems [66 Shan R, Sarkar S, Martin SS. Digital health technology and mobile devices for the management of Diabetes Mellitus: state of the art. Diabetologia. 2019; 62(6): 877-87. https://doi.org/10.1007/s00125-019-4864-7
https://doi.org/10.1007/s00125-019-4864-...
]. In [77 Omwenga VO. Glucose-insulin dynamics: a grey-box analogy. IJCAET. 2022; 17(4): 397-411. http://dx.doi.org/10.1504/IJCAET.2022.126598
http://dx.doi.org/10.1504/IJCAET.2022.12...
] extended the glucose-insulin (GI) dynamics in type I diabetic patients who include effects associated with exercise [88 Panunzi S, Pompa M, Borri A, Piemonte V, De Gaetano A. A revised Sorensen model: Simulating glycemic and insulinemic response to oral and intra-venous glucose load. PLoS One. 2020 Aug 14;15(8):e0237215. https://doi.org/10.1371%2Fjournal.pone.0237215.
https://doi.org/10.1371%2Fjournal.pone.0...
]. introduced the technology for validating the above model with the values of blood glucose in an off-line study and parameter estimation which revealed a standard deviation between majored and simulated blood glucose values. In [99 Mkrtumyan A, Ametov A, Demidova T, Volkova A, Dudinskaya E, Vertkin A, et al. A New Approach to Overcome Insulin Resistance in Patients with Impaired Glucose Tolerance: The Results of a Multicenter, Double-Blind, Placebo-Controlled, Randomized Clinical Trial of Efficacy and Safety of Subetta. J Clin Med. 2022 Mar 3;11(5):1390. https://doi.org/10.3390%2Fjcm11051390.
https://doi.org/10.3390%2Fjcm11051390...
] described a state estimation technology with online linearization of a nonlinear rigorous dynamic model. There are certain limitations that were found in the previous literature study and are given below in which practical studies based on the evaluation of controller performance have yet to be explored. The recent optimal methods with glucose monitoring issues are Fuzzy control, Sliding Mode (SM) control, Linear Quadratic Gaussian (LQG) control, H∞ control, Model Predictive Control with Lagrangian Function (MPC/LF) control and MP control, Fractional Order PID with JAYA (FOPIDC/JAYA) control, Genetic-Algorithm-PI-Controller (GA-PICExisting methods of patient model with its controller and validation techniques algorithms are shown including its merits and demerits listed in tables (1&2).

Table 1
Existing Controller algorithms

Table 2
Existing Classification methods used for Type-1 Diabetes Mellitus

Based on the review made from existing - works, the experiment is limited to limited number of patients that has been overcome by the implementation of the N-BEATS Algorithm that contains data collected from a developed simulated diabetic patient model with 31,000 trained data by using Neural Network (NN) techniques that comes under type-1 diabetes which is suitable to obtain excellent accuracy-level and efficiency.

Motivation and Challenges:

  • The study motivates to introduce RECCo, an online adaptive type controller based on the ANYA fuzzy rule-based system. RECCo is used in the LBDPM to control blood glucose levels effectively justified in section 4.

  • Validation with N-BEATS Algorithm is most important challenges: To achieve better accuracy, the proposed model is validated using the N-BEATS algorithm. N-BEATS is a deep learning algorithm used for time series forecasting justified in section 5.

  • Integration of RPME for Parameter Estimation: An online parameter estimation technique called RPME (Recursive Prediction Error) is integrated into the Adaptive Model Predictive Controller. This improves the controller's performance is an Challenging task by updating parameters based on real-time data is clearly visualized in Figure (6).

  • System Identification and Transfer Function: System Identification technique is used to obtain the transfer function, which is further designed for implementing the controller. This ensures that the control system is accurately represented in Figures (9).

The rest of the paper has been framed as follows: Section 2 describes a brief account of the implementation of the research methodology. Section 3 derives the mathematical modeling of the diabetic patient model including disturbances. Section 4 presents the proposed RECCo-based control approach for TIDM monitoring. Section 5 demonstrates the experimental validation of simulated diabetes data using the proposed N-BEATS algorithm. Section 6 concludes based on the previous investigation performed.

PROPOSED METHODOLOGY

In this proposed work, an extended mathematical patient model is developed for treating Type 1 Diabetic Mellitus patients, which is named as the Lehman Based Diabetic Patient Model (LBDPM) system. In addition to the original model, the proposed model includes external disturbances such as meal, exercise, and noise disturbances. To regulate blood glucose by automatically giving insulin, sudden fluctuations can be overcome using three controllers, PID, AMPC, and RECCo, as shown in Figure 1. in which (AMPC & RECCo) acts as adaptive controller of the system. The basic procedure involved in the proposed technology is data collection from developed simulated patient model, preprocessing (removal of unwanted blood glucose values from collected data or round-off decimal values), feature selection based on forward/backward selection technique that leads to the highest accuracy with minimum number of features selected as a sample of blood glucose values, insulin concentration, age of the patient, time period), hyper parameter tuning that improves accuracy level, classifier method (gives confusion matrix, accuracy, precision, recall, F1-score).

Figure 1
Block Diagram of Proposed Methodology

MATERIALS AND METHODS

One of the more difficult tasks is monitoring diabetes patients utilizing RECCo and artificial intelligence (AI) methods with mathematical modeling of the diabetic patient model. It is described briefly with the following steps.

3.1 Novel Lehman Based Diabetic Patient Model (LBDPM)

The design of the Lehman Based Diabetic Patient Model (LBDPM) is described in a detailed manner considering all other disturbances such as measurement noise, physical activity, and meals.[2020 Viroonluecha P, Egea-Lopez E, Santa J. Evaluation of blood glucose level control in type 1 diabetic patients using deep reinforcement learning. PLoS One. 2022 Sep 13;17(9):e0274608. https://doi.org/10.1371%2Fjournal.pone.0274608.
https://doi.org/10.1371%2Fjournal.pone.0...
] The glucose-insulin (GI) processes of the model consist of six different compartments: kidney, gut, heart/lungs, periphery, brain, and liver. The steps involved in designing the Lehman (9th order model) process are as follows:

Step 1: Insulin Action: The pancreas provides a suitable amount of insulin absorbed, which is called the absorption rate of insulin Iabsa. The filter required for the calculation of insulin in plasma is given as,

d I P a d t a = I a b s a V I a K e a * I P a a (1)

I p a a = 1 s ( I a b s a / V I a ) ( K e a * I P a a ) (2)

Where Ipaa - is the insulin concentration in plasma in terms of (mU/dl), Iabsa- is the insulin absorption rate (mU/min), Kea - is the rate constant of amount of insulin eliminated, &VIa - is the insulin distribution volume (dl). Iaa- termed as a concentration of plasma in terms of insulin which is called as insulin active. The rate of change of active insulin is defined as

d I a a d t = ( ( K 1 a * I P a a ) K 2 a ) * I a a (3)

I a a = 1 s ( ( K 1 a ) * I P a a - K 2 a ) * I a a (4)

Here Iaa - is the insulin active concentration in terms of (mU/dl), Iabsa- is the insulin absorption rate (mU/min), K1a- denotes insulin elimination rate constant, & K2a- denotes delay rate in insulin action. The two important types of insulin are as follows: Effective Active Insulin (Iea1): Effective Plasma Insulin(Iep1).

I e a 1 = S p 1 a ( K 2 a K 1 a ) * I a 1 (5)

I e p 1 = S h 1 a ( I P a a I b a s a l ) (6)

The above dynamic equations are used for the simulation of insulin in the diabetic patient model.

Step 2: Glucose action: Glucose which is generated by the gastric emptying subsystem increases up to 360 mg/min and decreases up to the value of 0. During the ingestion of the meal to the model, the intake of carbohydrates must be less than 10.8 gm. calculated by the equations

C h c r i t i c a l a = [ ( T a s c g e a + T d e s g e a ) V max g e a ] 2 (7)

T a s c g e a = T d e s g e a = C h a / V max g e a (8)

T max g e a = [ C h a ( 1 2 ) V max g e a [ ( T a s c g e a + T d e s g e a ) V max g e a ] 2 ] (9)

The gastric emptying rate is described by mathematical equations as follows:

G e m p t a = ( ( V max g e a ) / T a s c g e a ) t (10)

G g u t a = 1 s * ( G e m p t a G i n a ) (11)

G i n a = K g a b s a G g u t a (12)

Where, Gguta- is the absorption amount of glucose by gut in (mg), Gina- amount of glucose intake, Kabsa- is the constant of glucose absorption, Tmaxgea - is the rate of time duration of gastric emptying system & Tascgea, Tdesgea - is the rate at which time duration has default values as 30 mins.

G r e n a = C C R ( G R T G ) (13)

Where, G - is the amount of plasma glucose values present in the blood. The function of the kidney is to extract a lesser volume of glucose from blood, results in the Creatinine clearance rate (CCR). Glucose is utilized by certain organs such as the central nervous system, red blood cells, and peripheral cells, and is excreted through the kidney.

Step 3: The insulin delivery system is represented by the following transfer function with the components of the system described in paper. The system should contain the following subsystems: the gastric emptying system, central nervous subsystem, kidney subsystem, and also insulin dispenser system. The responses are analyzed using dynamic equations from 1-13 with its parameters described in table 3. and their responses are tested using Simulink tool results are depicted in Figure 3. Step 4: In the general form any human patient model can be represented using linearization technique in which state-space analysis is performed using a differential equation with white noise as shown in Figure 2.

Figure 2
General representation of (Lehman) model

Figure 3
a) Amplitude of the control signal b) Insulin level (mU/L) c) Glucose absorption rate by organs (CNS,GREN,GUT) (mg/min) d) Utilization of glucose by the net haptic glucose balance rate by the liver (mg/min) & Peripheral system e) Carbohydrates meal intake (60gms) f) Glucose absorption by RTG.

Table 3
Model parameters for patient design

Model Identification

To use the developed model using a feedback scheme, some of the parameters are to be identified to achieve the requirements of patients. The RPME technique which is an online parameter estimation technique that has to be implemented for Adaptive Model Predictive Control (AMPC). The detailed parameters values are listed in Appendix for reference

Model Validation

Testing a given model with appropriate values of blood glucose using the system identification method is called model validation. The quality of work is estimated from the model using a mean-square error criterion, by comparing the estimated output value of blood glucose to the measured value. The obtained transfer function is used to linearise the patient model that is designed to simulate the system, which helps to tune the controller to get the reference input. The Transfer function obtained is given by,

0.072 S 7.2 e 3 S 2 + 0.12 S + 4.01 e 6 (13)

Controller Design and Mechanism

In this study the novel Lehman Based Diabetic Proposed Patient Model (LBDPM) is designed and tuned with the help of a PID controller, to check and evaluate its better controller performance. Further the model is implemented with Robust controllers adaptive MPC, RECCo depicted in Figure 4.

Figure 4
Methodology of the proposed controller algorithmAdaptive Model Predictive Controller (AMPC)

The recursive polynomial model estimated algorithm library has been realized in Matlab/Simulink. The general steps involved in the state estimation technique is represented by the block diagram using the continuous-time transfer function of the controlled system as given in Figure 5. A necessary input such as blood glucose parameters should be fed through the transfer function block obtained which represents the linearized model of the patient. The value given in the transfer function is denoted with polynomials degree & time period in which output contains the parameter estimate state values, covariance matrix values, and data measurement vector listed in Table 4. The algorithms mentioned above were tested in a closed loop system with a self-tuning Linear Quadratic (LQ) controller as shown in Figure 6 (a, b). The controller is based on the minimization of quadratic criterion with the penalization of the output control signal. This method is applied in the current work which represents automatic online parameter adaptation of values even though under various disturbances.

Figure 5
State Estimation Method

Adaptive Model Predictive Controller uses an Extended Kalman Filter (EKF) and substitutes the gain value, at each interval with the updated patient model parameters to maintain consistency of blood glucose values. The response of the blood glucose and insulin shows that AMPC performs well with less peak overshoot and oscillation with a faster settling rate of the glucose graph when compared to the PID controller shown in Table 5.

Figure 6
Adaptive Control plot: a) Measurement of Noise Signal, b) Representation of parameter estimated values

The proposed estimation parameters technique (RPME) was validated at epochs 8 training and analyzed using neural network tools. The response plot of parameter estimation technique using RPME method is given in Figure 6 (a,b).

Table 4
Recursive polynomial model estimated values

Adaptive Model Predictuve Controller [2121 StepheS, Jaya Sankar T, Vinoth Kumar K. Motor Imagery EEG Recognition using Deep Generative Adversarial Network with EMD for BCI Applications. TV/TG.2022; 29(1).https://doi.org/10.17559/TV-20210121112228
https://doi.org/10.17559/TV-202101211122...
, 2222 Mohd Y, Nur FB, Ayub Md, Ahmmed SI, Sherif AA. System Identification in Modified Diabetic Model for Nano chip Controller. Adv. Mater. Res. 2014;938:299-304. http://dx.doi.org/10.4028/www.scientific.net/AMR.938.299
http://dx.doi.org/10.4028/www.scientific...
] is preferable under a linear patient model in which parameter is obtained during process of run time. Error covariance matrix values, estimated states values, true states values, and measurement states values are calculated as shown in Figure 6. On comparison with PID controller [2323 Nanda A, Patra AK, Panigrahi GS. Adaptive controller design based on grasshopper optimization technique for BG regulation in TIDM patient. Int. J. Autom. Control. 2023; 17 (4):440-60.http://dx.doi.org/10.1504/IJAAC.2023.10052842
http://dx.doi.org/10.1504/IJAAC.2023.100...
][2424 Cinar A. Automated Insulin Delivery Algorithms. Diabetes Spectr. 2019 Aug;32(3):209-14. doi: 10.2337/ds18-0100. https://doi.org/10.2337%2Fds18-0100.], blood glucose plot reaches a steady state at a faster rate and peak overshoot is very less with respect to the PID controller as shown in Figure 6(a,b).

Figure 7
Blood glucose plot for: (a) PID Controller - (b) AMPC

The response of blood glucose and insulin shows AMPC performs well with less peak overshoot and oscillation with faster settling rate of glucose graph when compared to PID controller [2525 Jayanthi J, JayasankarT, Krishnaraj N, Prakash NB, Sagai Francis Britto A, Vinoth KumarK. An Intelligent Particle Swarm Optimization with Convolutional Neural Network for Diabetic Retinopathy Classification Model. J Med Imag Health In. 2021; 11(3):803-809(7). https://doi.org/10.1166/jmihi.2021.3362.
https://doi.org/10.1166/jmihi.2021.3362...
][2626 Batmani Y, Khodakaramzadeh S, Moradi P. Automatic Artificial Pancreas Systems Using an Intelligent Multiple-Model PID Strategy. IEEE J Biomed Health Inform. 2022 Apr;26(4):1708-17. https://doi.org/10.1109/jbhi.2021.3116376.
https://doi.org/10.1109/jbhi.2021.311637...
] shown in table 4. The frequency response analysis of the model is justified in Figure 7.

Figure 8
Bode plot response

Table 5
Comparative investigation with other recent controllers

System Identification approach

The parameters of the proposed model with all the three disturbances are estimated repeatedly using System Identification method. From the workspace, the values of blood glucose and insulin are taken for estimating transfer function. It provides better fit transfer function in assuming the number of zeroes and poles as shown in Figure (9) to linearise the system.

Figure 9
Poles (x) and Zeros(O)

Proposed RECCO - based control approach for TIDM monitoring

It is a kind of fuzzy rule-based (FRB) system that contains non parametric parts of the antecedent. The main concept behind this controller is to obtain the membership value of the current value to the existing data clouds that apply the terms fuzzy data and relative data density. The clouds denote previous blood glucose samples that are very close to each other. The analyses of incoming blood glucose data samples are performed in an online method, every sample value is associated with each cloud and the parameters are updated automatically. The RECCo controller [2727 Vijay Anand J, Manoharan PS. Decentralized robust evolving cloud-based controller for two input two output systems. IEEE Conf. EAIS. 2021; 44(5):16-9. https://doi.org/10.1177/01423312211049237.
https://doi.org/10.1177/0142331221104923...
] is described here and comprises three stages: reference model, evolving, and adaptation law. The entire control structure procedure is depicted in Figure 10. From the initial received data sample, the controller has started. Any previous data related to the controlled process are used for initializing the constant ‘τ', design parameters of umin','umaxinput range, sampling time ‘TS' and output range of 'ymin' ,'ymax'. For each incoming sample after initialization, adapted controller gains are performed and a newer data cloud or fuzzy rule is included if specific conditions are satisfied.

Figure 10
RECCo Control Structure procedure

Reference model

The RECCo controller reference model explains the expected trajectory yak1rand yak1the plant output dynamics. A basic 1st order linear reference model is expressed as,

y a k + 1 r = a r 1 y a k 1 r + ( 1 a r 1 ) r a k 1 (15)

From the above Eq. (17) the range is, 0<ar1<1, ar1is the pole parameter of the model, and reference signal israk1. It has been estimated to 1Tak1τ, process sampling period is Tak1and time constant is τ. The major aim of controller gives effective performance which assures the smaller error from tracking

ε a k 1 = y a k 1 r y a k 1 (16)

Evolving law

The controller fuzzy structure has been further addressed by evolving law. The algorithm is based on the ANYA fuzzy rule and the model is expressed as,

R i = I F ( x ~ X i ) T H E N ( u i ) (17)

From Eq.(19), Ri is the number of rules which is the same as the total count of clouds in the data space, i=1,.,C. Evolving law plays a major role in the antecedent part determined through the ~operator. The present data x=[x1,x2,,xn]T compared withXiRn of i-th cloud. The subsequent part is determined through C control operations in local ui data and is described in 2-D space as

x a k 1 = [ ε a k 1 Δ ε a k 1 , y a k 1 r y min Δ y a k 1 ] T (18)

From Eq.(20),Δyak1=ymaxymin and Δεak1=Δyak12. Based on the values taken from Table 6, the clouds are generated and cloud points are associated with glucose samples as shown in Figure 11, for the simulated diabetes patient model system using the properties stated.

Table 6
Data cloud properties

Figure 11
Cloud points generated

Adaptation Law

In the case of the consequent part, the PID-R type of RECCo based controller is expressed using the following terms:

uak1i=Pkiεak1+IkiΣak1ε+DkiΔak1ε+Rki,i=1,..C (19)

From Equation (21) the controller gains are Pki, Dki and Iki , and the operating point compensation is Rki. Δak1ε and Σak1ε are tracking error derivatives and the discrete time integral signal is measured as follows:

Σ a k 1 ε = { Σ k 1 ε + ε a k 1 , u min < u ( k ) < u max Σ k 1, ε , u ( k ) = u max o r u min } (20)

Δ a k 1 ε = ε a k 1 ε a k 1 1 (21)

The definition of adaptation gain values for other parameters are given by,

Δ P k i = α P G s i g n λ a k 1 i | e a k 1 ε a k 1 | / ( 1 + r a k 1 2 ) Δ I k i = α I G s i g n λ a k 1 i | e a k 1 Δ a k 1 ε | / ( 1 + r a k 1 2 ) Δ D k i = α D G s i g n λ a k 1 i | e a k 1 Δ a k 1 ε | / ( 1 + r a k 1 2 ) Δ R k i = α R G s i g n λ a k 1 i | ε a k 1 | / ( 1 + r a k 1 2 ) (22)

The adaptive law uses the tracking product and error processing as normalization with a cost function. After parameter adaptation, weighted average defuzzification is utilized, and then the control variables are given

b y , u a k 1 = i = 1 c λ a k 1 i u a k 1 i = i = 1 c γ a k 1 i u a k 1 i i = 1 c γ a k 1 i (23)

The default adaptation gain value is 0.1 when the control range is between sf = 0 and umax1 = 100

α n e w = ( u max 1 u min 1 / 20 ) * 0.1 = 0.5 (24)

Table 7
Formulas for the instability protection mechanism

where Δθki, σL, , ddeadhas certain constraints such as Δθki-Tracking error must be smaller than a threshold value, σL - Leakage value must be approximately 10^-6 ,ddead- value should be kept larger than noise level, αP,αI,αD, αR - adaptation gains as given in table 7&8. The transfer function is taken from the designed diabetic patient model which is analyzed by applying equations (14) to (27) using the simulation platform.

Table 8:
Control parameters for RECCo used in the simulation

Steps involved in the algorithm

Step 1: Initialize process parameters

Step 2: Initialize evolving parameters

Step 3: Initialize adaptation parameters, Repeat.

Step 4: Measure the output yak1.

Step 5: Compute the reference system outputrak1..

Step 6: Evaluate εak1, eak1, Σak1ε,Δak1ε

Step 7: Calculate xak1

Step 8: if C=0 Increment C

Step 9: Store kadd1

Step 10: Initialize μ01,σ01, θ01for cloud1 by using the above properties

Step 11: else

Step 12: Calculate λak1i, μak1i for i=1,2,…C

Step 13: if ( maxiγki<γmax and K > (kadd1 + nadd1) ) then, increment C, store kadd1.

Step 14: Initialize μ0c, σ0c, θ0c , else

Step 15: Associate sample xak1with cloud

Step 16: Update μak1i, σak1ifor the cloud, end if, end if.

Step 17: Adaptation of PID controller gain from the transfer function taken using the diabetic patient model.

Step 18: Compute the control code using scripts, end.

Figure 12
RECCo controller output results: Overall response of Blood Glucose plot (after RECCo implementation)

On Comparison of RECCo controller with other recent popular method of controller such as AMPC the settling time of output response from RECCo is about 50 minutes and thereby oscillations has been completely vanished entirely as shown in Figure 12.

Experimental setup of the proposed work using the N-BEATS algorithm:

The research was implemented using the Windows 10 operating system, and an Intel Core CPU. The algorithm was designed and tested with Python version 3.7. NBEATS [2828 Oreshkin BN, Dmitri C, Nicolas C, Yoshua B. N-BEATS. Neural basis expansion analysis for interpretable time series forecasting. Cornell University; 2019. https://doi.org/10.48550/arXiv.1905.10437
https://doi.org/10.48550/arXiv.1905.1043...
], a pure deep learning method for time series predictions which beat Recurrent Neural Network’s score with an accuracy rate of 97.4%. with the help of the datasets taken from the Simulink model as represented in Figure 13.

Figure 13
Architecture of the N-BEATS algorithm

Basic Operation:

The basic block operation is described with block index ‘l’. The ‘lst’ block accepts its input ‘Xl’ and output vectors such as Xl^and Yl^. For the remaining blocks, their inputs Xl are the output residual of previous blocks. Each block contains two outputs Yl^ block the forward forecast of length H. Xl^- the block estimate of length Xl is called a back-cast with certain constraints of the space that the block is used for approximate signals. The first part is the fully connected network that produces forward θlfand backward θlbof the expansion coefficient to note that block index ‘1’ is denoted with a drop of θlf, θlb, glb,glf. The second part contains backward glband forward glfwith basic layers that accept forward θlfand backward θlbcoefficient expansion that projects them internally on basis functions that produce back-cast outputs Xl^and forecast output Yl^. The second part of the networks corresponds to expansion coefficients of θlf and θlbthat send outputs through the following function: y^l =glf(θlf) and x^l =glb(θlb).

The 4 layered fully connected stack is expressed as, Layer 1: hl,1= FC l,1 (Xl ) ; Layer 2: hl,2= FC l,2 (hl,1); Layer 3:hl,3= FC l,3 (hl,2); Layer 4: hl,4= FC l,4 (hl,3). FC layer with RELU non-linearity is said to be the fully connected layer. hl,1=RELU(Wl,1X1+bl,1) (29) Using glbas the basis vector, xl backward data are estimated. Throughglf, the following similar path ylhas been produced. x^=glb(θlb ) and x^=glf(θlf ),used for mapping the extension of forward and backward data coefficients calculated by using equations 28 and 29.

Figure 14
N-BEATS ROC Curve

Table 9
Indication of performance indices using different machine learning algorithms:

The experimental validation of the proposed N-BEATS algorithm method is compared with other conventional algorithms [2929 Parameswari A, Bhavani S, Vinoth Kumar K. A Convolutional Deep Neural Network Based Brain TumorDiagnoses Using Clustered Image and Feature-Supported Classifier (CIFC) Technique. Braz Arch Biol Technol. 2023; 66:e23230012. https://doi.org/10.1590/1678-4324-2023230012
https://doi.org/10.1590/1678-4324-202323...
][3030 David SK, Rafiullah M, Siddiqui K. Comparison of Different Machine Learning Techniques to Predict Diabetic Kidney Disease. J Health Eng. 2022;1:7378307. https://doi.org/10.1155/2022/7378307
https://doi.org/10.1155/2022/7378307...
] as shown in Table 9. Its ROC Curve for N-BEATS is depicted as shown in Figure 14. The Stability analysis of the proposed model with different condition of patients were tested based on the simulated datasets which is depicted in Figure. The normal, abnormal, critical condition of patients [3131 Sun X, Rashid M, Askari MR, Cinar A. Adaptive Personalized Prior-Knowledge-Informed Model Predictive Control for Type 1 Diabetes. Control Eng Pract. 2023 ;131:105386. https://doi.org/10.1016/j.conengprac.2022.105386.
https://doi.org/10.1016/j.conengprac.202...
] were informed to doctors based on the analysis of standard deviation factor by automatic indication. The proposed stability controller condition under uncertainty cases is also tested for patients with real time datasets collected from Thanjavur Government hospital with ethical clearance approval number (578) and its results are shown in Figure 15.

Figure 15
Stability analysis of the proposed model under different patient conditions

CONCLUSION

The proposed Lehman Based Diabetic Patient Model (LBDPM) system was developed under different cases with PID, adaptive MPC, and RECCo controllers are implemented to regulate blood glucose even during sudden fluctuations. The developed model is further validated using the N-BEATS algorithm for performance analysis. A novel N-BEATS algorithm increases the accuracy rate but the value of mean square error rate has been reduced. The simulation analysis shows that proposed model using Robust RECCo Controllers has less settling time 50 minutes when compared with other recent adoptive controller such as AMPC and conventional controller such as PID there by the main objective is to track the desired blood glucose value with their corresponding models. The proposed method is further evaluated on simulated diabetes datasets that achieve greater accuracies of 97.4% and 96% with lower mean squared error rates of 0.15% and 0.2%, which infers low computation time. In the future, the work will be extended further for real-time implementation of controller namely Reinforcement Learning Human Feedback Controller which will be further implemented and tested.

Acknowledgement

Thanks for the support given for Controller Design by Mr.Varatharajan from IIT Madras and further investigation was supported in Easwara Hospital with ethical clearance reference approval (578).

REFERENCES

  • 1
    Katsarou A, Gudbjörnsdottir S, Rawshani A, Dabelea D, Bonifacio E, Anderson BJ, et al. Type 1 diabetes mellitus. Nat Rev Dis Primers. 2017 Mar 30; 3:17016. https://doi.org/10.1038/nrdp.2017.16
    » https://doi.org/10.1038/nrdp.2017.16
  • 2
    Ellahham S. Artificial Intelligence: The Future for Diabetes Care. Am J Med. 2020 Aug; 133(8):895-900. https://doi.org/10.1016/j.amjmed.2020.03.033
    » https://doi.org/10.1016/j.amjmed.2020.03.033
  • 3
    Tauschmann M, Hovorka R. Technology in the management of type 1 diabetes mellitus - current status and future prospects. Nat Rev Endocrinol. 2018 Aug; 14(8):464-75. https://doi.org/10.1038/s41574-018-0044-y
    » https://doi.org/10.1038/s41574-018-0044-y
  • 4
    Lehmann ED, Deutsch T. A physiological model of glucose-insulin interaction in type 1 diabetes mellitus. J Biomed Eng. 1992 May;14(3):235-42. https://doi.org/10.1016/0141-5425(92)90058-s
    » https://doi.org/10.1016/0141-5425(92)90058-s
  • 5
    Parameswari A, Bhavani S, Vinoth Kumar K. A Deep Learning Based Glioma Tumour Detection Using Efficient Visual Geometry Group Convolutional Neural Networks. Braz Arch Biol Technol. 2024;67:e24230705. https://doi.org/10.1590/1678-4324-2024230705
    » https://doi.org/10.1590/1678-4324-2024230705
  • 6
    Shan R, Sarkar S, Martin SS. Digital health technology and mobile devices for the management of Diabetes Mellitus: state of the art. Diabetologia. 2019; 62(6): 877-87. https://doi.org/10.1007/s00125-019-4864-7
    » https://doi.org/10.1007/s00125-019-4864-7
  • 7
    Omwenga VO. Glucose-insulin dynamics: a grey-box analogy. IJCAET. 2022; 17(4): 397-411. http://dx.doi.org/10.1504/IJCAET.2022.126598
    » http://dx.doi.org/10.1504/IJCAET.2022.126598
  • 8
    Panunzi S, Pompa M, Borri A, Piemonte V, De Gaetano A. A revised Sorensen model: Simulating glycemic and insulinemic response to oral and intra-venous glucose load. PLoS One. 2020 Aug 14;15(8):e0237215. https://doi.org/10.1371%2Fjournal.pone.0237215
    » https://doi.org/10.1371%2Fjournal.pone.0237215
  • 9
    Mkrtumyan A, Ametov A, Demidova T, Volkova A, Dudinskaya E, Vertkin A, et al. A New Approach to Overcome Insulin Resistance in Patients with Impaired Glucose Tolerance: The Results of a Multicenter, Double-Blind, Placebo-Controlled, Randomized Clinical Trial of Efficacy and Safety of Subetta. J Clin Med. 2022 Mar 3;11(5):1390. https://doi.org/10.3390%2Fjcm11051390
    » https://doi.org/10.3390%2Fjcm11051390
  • 10
    Bahremand S, Ko HS, Balouchzadeh R, Felix Lee H, Park S, Kwon G. Neural network-based model predictive control for type 1 diabetic rats on artificial pancreas system. Med Biol Eng Comput. 2019 Jan;57(1):177-91. https://doi.org/10.1007/s11517-018-1872-6
    » https://doi.org/10.1007/s11517-018-1872-6
  • 11
    Colmegna PH, Bianchi FD, Sánchez-Peña RS. Automatic glucose control during meals and exercise in type 1 diabetes: Proof-of-concept in silicon tests using a switched LPV approach. IEEE Control Syst. Lett. 2020; 5(5): 1489-94. https://doi.org/10.1109/LCSYS.2020.3041211
    » https://doi.org/10.1109/LCSYS.2020.3041211
  • 12
    Alfian G, Syafrudin M, Anshari M, Benes F, Atmaji FTD, Fahrurrozi I, et al. Blood glucose prediction model for type 1 diabetes based on artificial neural network with time-domain features. J. Appl. Biomed. 2020;40(4):1586-99. http://dx.doi.org/10.1016/j.bbe.2020.10.004
    » http://dx.doi.org/10.1016/j.bbe.2020.10.004
  • 13
    Khaqan A, Nauman A, Shuja S, Khurshaid T, Kim KC. An Intelligent Model-Based Effective Approach for Glycemic Control in Type-1 Diabetes. Sens. 2022; 22(20): 7773. https://doi.org/10.3390/s22207773
    » https://doi.org/10.3390/s22207773
  • 14
    Belmon AP, Auxillia J. An adaptive technique based blood glucose control in type-1 diabetes Mellitus patients. Int. J. Numer. Method. Biomed. Eng. 2020; 36(8): e3371. https://doi.org/10.1002/cnm.3371
    » https://doi.org/10.1002/cnm.3371
  • 15
    Parameswari A, Vinoth Kumar K. Gopinath S. Thermal analysis of Alzheimer's disease prediction using Random Forest Classification Model. Mater. Today Proc. 2022; 66.https://doi.org/10.1016/j.matpr.2022.04.357
    » https://doi.org/10.1016/j.matpr.2022.04.357
  • 16
    De Bois M, El Yacoubi M, Ammi M. Study of short-term personalized glucose predictive models on type-1 diabetic children. IJCNN. 2019; http://dx.doi.org/10.1109/IJCNN.2019.8852399
    » http://dx.doi.org/10.1109/IJCNN.2019.8852399
  • 17
    Yang H, Chen Z, Huang J, Li S. AWD-stacking: An enhanced ensemble learning model for predicting glucose levels. PLoS One. 2024 Feb 14;19(2):e0291594. https://doi.org/10.1371%2Fjournal.pone.0291594
    » https://doi.org/10.1371%2Fjournal.pone.0291594
  • 18
    Khadem H, Nemat H, Elliott J, Benaissa M. Blood Glucose Level Time Series Forecasting: Nested Deep Ensemble Learning Lag Fusion. Bioengineering (Basel). 2023 Apr 19;10(4):487. https://doi.org/10.3390%2Fbioengineering10040487
    » https://doi.org/10.3390%2Fbioengineering10040487
  • 19
    Alazwari A, Abdollahian M, Tafakori L, Johnstone A, Alshumrani RA, Alhelal, MT, et al. Predicting age at onset of type 1 diabetes in children using regression, artificial neural network and Random Forest: A case study in Saudi Arabia. PLoS One. 2022;17(2): e0264118. https://doi.org/10.1371/journal.pone.0264118
    » https://doi.org/10.1371/journal.pone.0264118
  • 20
    Viroonluecha P, Egea-Lopez E, Santa J. Evaluation of blood glucose level control in type 1 diabetic patients using deep reinforcement learning. PLoS One. 2022 Sep 13;17(9):e0274608. https://doi.org/10.1371%2Fjournal.pone.0274608
    » https://doi.org/10.1371%2Fjournal.pone.0274608
  • 21
    StepheS, Jaya Sankar T, Vinoth Kumar K. Motor Imagery EEG Recognition using Deep Generative Adversarial Network with EMD for BCI Applications. TV/TG.2022; 29(1).https://doi.org/10.17559/TV-20210121112228
    » https://doi.org/10.17559/TV-20210121112228
  • 22
    Mohd Y, Nur FB, Ayub Md, Ahmmed SI, Sherif AA. System Identification in Modified Diabetic Model for Nano chip Controller. Adv. Mater. Res. 2014;938:299-304. http://dx.doi.org/10.4028/www.scientific.net/AMR.938.299
    » http://dx.doi.org/10.4028/www.scientific.net/AMR.938.299
  • 23
    Nanda A, Patra AK, Panigrahi GS. Adaptive controller design based on grasshopper optimization technique for BG regulation in TIDM patient. Int. J. Autom. Control. 2023; 17 (4):440-60.http://dx.doi.org/10.1504/IJAAC.2023.10052842
    » http://dx.doi.org/10.1504/IJAAC.2023.10052842
  • 24
    Cinar A. Automated Insulin Delivery Algorithms. Diabetes Spectr. 2019 Aug;32(3):209-14. doi: 10.2337/ds18-0100. https://doi.org/10.2337%2Fds18-0100.
  • 25
    Jayanthi J, JayasankarT, Krishnaraj N, Prakash NB, Sagai Francis Britto A, Vinoth KumarK. An Intelligent Particle Swarm Optimization with Convolutional Neural Network for Diabetic Retinopathy Classification Model. J Med Imag Health In. 2021; 11(3):803-809(7). https://doi.org/10.1166/jmihi.2021.3362
    » https://doi.org/10.1166/jmihi.2021.3362
  • 26
    Batmani Y, Khodakaramzadeh S, Moradi P. Automatic Artificial Pancreas Systems Using an Intelligent Multiple-Model PID Strategy. IEEE J Biomed Health Inform. 2022 Apr;26(4):1708-17. https://doi.org/10.1109/jbhi.2021.3116376
    » https://doi.org/10.1109/jbhi.2021.3116376
  • 27
    Vijay Anand J, Manoharan PS. Decentralized robust evolving cloud-based controller for two input two output systems. IEEE Conf. EAIS. 2021; 44(5):16-9. https://doi.org/10.1177/01423312211049237
    » https://doi.org/10.1177/01423312211049237
  • 28
    Oreshkin BN, Dmitri C, Nicolas C, Yoshua B. N-BEATS. Neural basis expansion analysis for interpretable time series forecasting. Cornell University; 2019. https://doi.org/10.48550/arXiv.1905.10437
    » https://doi.org/10.48550/arXiv.1905.10437
  • 29
    Parameswari A, Bhavani S, Vinoth Kumar K. A Convolutional Deep Neural Network Based Brain TumorDiagnoses Using Clustered Image and Feature-Supported Classifier (CIFC) Technique. Braz Arch Biol Technol. 2023; 66:e23230012. https://doi.org/10.1590/1678-4324-2023230012
    » https://doi.org/10.1590/1678-4324-2023230012
  • 30
    David SK, Rafiullah M, Siddiqui K. Comparison of Different Machine Learning Techniques to Predict Diabetic Kidney Disease. J Health Eng. 2022;1:7378307. https://doi.org/10.1155/2022/7378307
    » https://doi.org/10.1155/2022/7378307
  • 31
    Sun X, Rashid M, Askari MR, Cinar A. Adaptive Personalized Prior-Knowledge-Informed Model Predictive Control for Type 1 Diabetes. Control Eng Pract. 2023 ;131:105386. https://doi.org/10.1016/j.conengprac.2022.105386
    » https://doi.org/10.1016/j.conengprac.2022.105386
  • Funding:

    The authors declare they have no funding applied.

Edited by

Editor-in-Chief:

Alexandre Rasi Aoki

Associate Editor:

Fabio Alessandro Guerra

Publication Dates

  • Publication in this collection
    10 June 2024
  • Date of issue
    2024

History

  • Received
    14 Aug 2023
  • Accepted
    18 Oct 2023
Instituto de Tecnologia do Paraná - Tecpar Rua Prof. Algacyr Munhoz Mader, 3775 - CIC, 81350-010 Curitiba PR Brazil, Tel.: +55 41 3316-3052/3054, Fax: +55 41 3346-2872 - Curitiba - PR - Brazil
E-mail: babt@tecpar.br