Professional Documents
Culture Documents
Comparison Between PID-Fuzzy and Numerical Methods Based On Linear Algebra Controllers For Glucose Control in Type 1 Diabetes Treatment
Comparison Between PID-Fuzzy and Numerical Methods Based On Linear Algebra Controllers For Glucose Control in Type 1 Diabetes Treatment
157
Authorized licensed use limited to: National Institute of Technology Patna. Downloaded on February 17,2024 at 09:26:42 UTC from IEEE Xplore. Restrictions apply.
ܭൌ οܵȀοܧሺͻሻ Then, when applying (16) to the transfer function in (8), we
have:
߬ ൌ ͳǤͷሺݐଶ െ ݐଵ ሻሺͳͲሻ ܭ
ܩሺݏሻ ൌ ሺͳሻ
ݐ ൌ ݐଶ െ ߬ሺͳͳሻ ሺ߬ ݏ ͳሻሺݐ ݏ ͳሻ
Where ܭis the static gain of the system, ߬ is the time When working in equation (17), we have:
constant, ݐ is the dead time, ݐଵ is the time at 28,3% of the final
value and ݐଶ is the time at 63.2% of the final value. ܻሺݏሻ ݇ܭ
ܩሺݏሻ ൌ ൌ ଶ ሺͳͺሻ
ܷሺݏሻ ݏ ݇ ݏ ݇
A. PID Fuzzy Controller
Where:
Fuzzy controller has a great flexibility and tolerance to
inaccuracies since it is based on natural language, where the ߬ଵ ߬ଶ ͳ
interpretation of the process variable with language statements ݇ ൌ ǡ݇ ൌ ሺͳͻሻ
߬ଵ ߬ଶ ߬ଵ ߬ଶ
easily relates the use of logical operators such as AND and OR
with the measures of action to take, which are a set of rules The equation (18), can be expressed as follows:
designed for effective process control [11]. ݕሷ ݇ ݕሶ ݇ ݕൌ ݇ܭ ݑሺʹͲሻ
In order to achieve a better response of the plant compared Expressing (20) in state variables, it is obtained:
with a Linear PID, Galan, in [12], proposes a PID-Fuzzy with
the following structure: ݕൌ ݕଵ ሺʹͳሻ
158
Authorized licensed use limited to: National Institute of Technology Patna. Downloaded on February 17,2024 at 09:26:42 UTC from IEEE Xplore. Restrictions apply.
ݕଵାଵ െ ݕଵ భೝశభ ష಼ೣ ቀభೝ షభ ቁషభ
ݕଶ ൌ ሺ͵ͳሻ ଵ ାή்బ ή ି௬మ
ܶ ݑ ൌ ቌ
బ
ಳ ்బ
Then from (24), ݕଶሶ is expressed as a linear equation as
follows:
݇ܭ ݑൌ ݕଶሶ ݇ ݕଵ ݇ ݕଶ ሺ͵ʹሻ ݇ ݕଵ ݇ ݕଶ ቍ (45)
From (32) we have ݑ, as follows:
C. Feedforward Controller
ͳ ݕଶାଵ െ ݕଶ
ݑൌ ൬ ݇ ݕଵ ݇ ݕଶ ൰ሺ͵͵ሻ To design a Feedforward controller the equations proposed
݇ܭ ܶ
by Marchetti, in [15], the information of two transfer function
Then we replace ݊ʹݕͳ with ݊ݖ݁ʹݕͳ this will be the are used. The first, ܩ is FOPDT model of the plant, and
sacrificed variable, since the values taken by this variable will second, ܩ , is FOPDT model of the perturbation that represent
force the system to have an exact solution and will make the the effect of the disturbance ܦሺݏሻ,ܩ is the feedforward
error of tracking the output zero, as follows: controller, like this:
ͳ ݕଶ௭ାଵ െ ݕଶ ݇ௗ ݁ ି௧బ௦
ݑൌ ൬ ݇ ݕଵ ݇ ݕଶ ൰ሺ͵Ͷሻ ܩ ሺݏሻ ൌ ሺͶሻ
݇ܭ ܶ ߬ௗ ݏ ͳ
Then, we use Taylor approach: Then we use the following equation for feedforward design:
159
Authorized licensed use limited to: National Institute of Technology Patna. Downloaded on February 17,2024 at 09:26:42 UTC from IEEE Xplore. Restrictions apply.
The disturbance for the consumption of food is divided in
ͳ
three meals for the day, the recommended amount of
carbohydrates for most adults with DM1 is 40-60 [g] according
ͲǤͷ to [16] [17], each meal has a duration of 10 minutes, the
distribution is as follows:
ሶ
ࢋሺ࢚ሻ
Fuzzy Rules
Nde Zde Pde
Ne No No Zo
ࢋሺ࢚ሻ Ze No Zo Po
Pe Zo Po Po
ͲǤͷ
In Fig. 6, both controllers are in the normoglycemia levels,
which is the controller objective, it is seen that PID-Fuzzy has
a better performance because it has a better value in the second
Ͳ
ǦͲǤͶ ǦͲǤ͵ ǦͲǤʹ ǦͲǤͳ Ͳ ͲǤͳ ͲǤʹ ͲǤ͵ ͲǤͶ
peak it is far from the hypoglycemia episode. In the Table VI it
can be seen maximum and minimum values of glucose peak and
Fig. 5. Fuzzy input membership function for ܱ the when it occurs.
The tuning value parameters for the control NMLA are TABLE VI. PEAK GLUCOSE VALUES
presented in the Table IV, and these were found with a
minimization method. Glucose Levels
Minimum Maximum
TABLE IV. PARAMETERS FOR NM&LA
Controllers
Value Time Value Time
ሺࢍȀࢊሻ ሺሻ ሺࢍȀࢊሻ ሺ
Parameter Value
PID-Fuzzy 75.90 1090.41 177.9 849.38
ࡷ࢞ 0.83
NM&LA 70.74 1090.42 175.4 849.64
ࢀ 57
Once the response of the controllers is presented, it is
ࡷ 0.00000095
important to show the controllers efforts, in order to know their
Finally, the ܩ ሺݏሻ constant for feedforward controller is performance. The response of the controllers are adequate
obtained, this value was obtained by trying a series of values, because there is no negative values during their performances
as follow: (A negative value would indicate taking out insulin from the
patient). These results are shown in Fig. 7 and their values in
݇ௗ Table VII.
ܩ ሺݏሻ ൌ ൌ ǤʹሺͶͻሻ
݇
160
Authorized licensed use limited to: National Institute of Technology Patna. Downloaded on February 17,2024 at 09:26:42 UTC from IEEE Xplore. Restrictions apply.
As shown in Fig. 8, for PID-Fuzzy controller, when
applying change in nominal parameters in the glucose response
appear two hyperglycemia episodes, for the first episode
exceeds in 23.4 (mg/dl), and for the second episode it exceeds
in 6.8 (mg/dl). Also, for Numerical Method based on Algebra
Lineal controller, there are three hyperglycemia episodes with
values of 2.3 (mg/dl), 40.5 (mg/dl) and 10.5 (mg/dl) above
normal.
In order to know the performance of both controllers a white
noise signal has been added to the sensor, this noise signal, has
a magnitude value of 10% of the output signal. The noise signal
is seen in Fig. 9 and the performance of both controllers are
shown in Fig.10 and Fig. 11 respectively.
As seen in Fig. 10; both controllers keep the output into the
Fig. 7. Controllers effort. ranges, but the control effort of Numerical Method based on
Linear Algebra is less affected than the PID-Fuzzy as seen in
TABLE VII. PEAK INSULIN VALUES Fig. 11, therefore, the noise signal does not affect in a
remarkable way in its control effort.
Insulin
Minimum Maximum
Controllers
Value Time Value Time
ሺࢁȀሻ ሺሻ ሺࢁȀሻ ሺሻ
Settling
Controllers ISE (x ) TVu
Time
Fig. 10. Numerical Method and Algebra Lineal control and PID-Fuzzy
glucose response with noise Signal.
161
Authorized licensed use limited to: National Institute of Technology Patna. Downloaded on February 17,2024 at 09:26:42 UTC from IEEE Xplore. Restrictions apply.
1,» Revista Iberoamericana de Automática e Información Indusrial,
vol. 7, nº 2, pp. 5-20, 2010.
[5] D. Calupiña, A. Garcia, O. Camacho y A. Rosales, «Non-linear PID and
Dynamic SMC for the Artificial Pancreas control in the treatment of
Type 1 Diabetes,» IEEE Third Ecuador Technical Chapters Meeting
(ETCM), 2018.
[6] I. A. Cisneros , «Modelos matematicos para la Diabetes,» Universidad
de Cantabria, Cantabria, 2014.
[7] Y. Ruan and E. Wilinska, "Modeling Day-to-day Variability of
Glucose-Insulin Regulation over 12-Week Home use of closed -loop
Insulin Delivery," IEEE Transactions on Biomedical Engineering, pp.
1412-1419, 2017.
[8] J. E. Sereno, M. A. Caicedo, P. S. Rivadeneira y O. E. Camacho, «In
Silico Test for MPC and SMC Controllers Under Parametric Variations
in Type 1 Diabetic Patients,» Argentine Conference on Automatic
Control (AADECA), 2018.
When comparing the results obtained with those in [5] both [10] C. A. Smith, Principles and Practice of Automatic Process Control,
1987.
investigations can be compared because these used the same
[11] D. Jauregui, O. Camacho y D. Chavez, «A Comparison of Fuzzy
model (Hovorka), when working with nominal parameters in Moving Sliding Mode,» IEEE Third Ecuador Technical Chapters
[5] the DSMC controller is out of range in Normoglycemia Meeting (ETCM), 2018.
values and both controllers (NPID and DSMC) have bigger [12] R. Galan, «Análisis y Comparación de sistemas de control PID y PID
settling times than those shown in this investigation. Difuso en logica reconfigurable,» Control Inteligente, vol. 4, nº 10, pp.
43-48, 2000.
REFERENCES
162
Authorized licensed use limited to: National Institute of Technology Patna. Downloaded on February 17,2024 at 09:26:42 UTC from IEEE Xplore. Restrictions apply.