OPTIMAL BLOOD GLUCOSE CONTROL IN TYPE 1 DIABETIC PATIENTS BY USING PONTRYAGIN’S MINIMUM PRINCIPLE AND EXTENDED KALMAN FILTER
DOI:
https://doi.org/10.25077/jmua.14.2.117-128.2025Keywords:
Bergman Minimal Model, Blood glucose control, Extended Kalman Filter, Optimal control, Pontryagin's Minimum PrincipleAbstract
Artificial Pancreas (AP) is an advanced diabetes management technology. AP requires an automatic control algorithm to determine the level of insulin injection based on the glucose level calculated on the Continuous Glucose Monitoring (CGM) sensor. Bergman Minimal Model (BMM) is a basic model in describing the dynamics of glucose-insulin in the human body. This study aims to determine the optimal control using Pontryagin’s Minimum Principle (PMP), which is subject to reducing glucose levels in type 1 diabetes patients to be within the normal glucose level interval of 80-120 mg/dL. The BMM parameter values will be estimated using EKF to support the acquisition of precise and personal numerical simulations. Based on the control de sign simulation that has been obtained, the optimal control of insulin injection is given maximally (25 mU/L) during the first two hours of observation; then, the level decreases slowly until it reaches 0 at 12 hours of observation. This scenario successfully reduces the patient’s glucose levels at the end of the observation period from 170.4 mg/dL (with out control) to 121.2 mg/dL. This result providing a confident basis for initial future research and development in diabetes management.
Downloads
References
(1) Yahaya T, Salisu T. Genes predisposing to type 1 diabetes mellitus and pathophysiology: a narrative review. arXiv preprint. 2020;29 (1):100–109.
(2) C. for D. C. and Prevention, “No TitleDiabetes Basics,†2022.
https://www.cdc.gov/diabetes/basics/index.html (accessed Feb. 07, 2024).
(3) I. D. Federation, “No Title.†https://idf.org/about-diabetes/type-1-diabetes/ (accessed
Feb. 07, 2024)
(4) Wang, T., Li, W., & Lewis, D. (2020). Blood glucose forecasting using lstm variants under the context of open source artificial pancreas system.
(5) Kirilmaz, O. B., Salegaonkar, A. R., Shiau, J., Uzun, G., Ko, H. S., Lee, H. F., ... & Kwon, G. (2021). Study of blood glucose and insulin infusion rate in real-time in diabetic rats using an artificial pancreas system. Plos one, 16(7), e0254718.
(6) J. Xavier, N. Divya, M. B. Krithiga, S. K. Patnaik, and R. C. Panda, “Blood Glucose Regulation in Type-1 Diabetic Patients using Sliding Mode Control Based on Nonlinear Transformation,†IFAC-PapersOnLine, vol. 55, no. 1, pp. 902–907, 2022, doi: 10.1016/j.ifacol.2022.04.148.
(7) P. Thakur, Y.T. Pillay, J. Watkins, and E. Sawan, “). Type-l Fuzzy Controller for Blood Glucose Regulation in Type-l Diabetic Patients,†IEEE Southeastcon 2024, 1205-1209 (2024).
(8) A. B. A. Al-Hussein, F. Rahma, and S. Jafari, “Hopf bifurcation and chaos in time-delay model of glucose-insulin regulatory system,†Chaos, Solitons and Fractals, vol. 137, p. 109845, 2020, doi: 10.1016/j.chaos.2020.109845.
(9) S. Nandi and T. Singh, “Global Sensitivity Analysis on the Bergman Minimal Model,†IFAC-PapersOnLine, vol. 53, no. 2, pp. 16112–16118, 2020, doi: 10.1016/j.ifacol.2020.12.431.
(10) A. Sa’Adah and Prihantini, “Blood Glucose Control on Diabetic Patient Type I using Sliding Mode Adaptive Control,†Commun. Biomath. Sci., vol. 6, no. 2, pp. 90–99, 2023, doi: 10.5614/cbms.2023.6.2.1.
(11) R. I. Baihaki, D. K. Arif, and E. Apriliani, “Perbandingan Metode Extended Kalman Filter dan Ensamble Kalman Filter dalam Mengestimasi Pertumbuhan Sel Kanker dengan Pengobatan Virus Oncolytic,†vol. 4, no. 1, pp. 17–35, 2023.
(12) L. Fu, Q. Zhang, and S. Tian, “Real-time video surveillance on highways using combination of extended Kalman Filter and deep reinforcement learning,†Heliyon, vol. 10, no. 5, p. e26467, 2024, doi: 10.1016/j.heliyon.2024.e26467.
(13) P. Di Giamberardino and D. Iacoviello, “Early estimation of the number of hidden HIV infected subjects: An extended Kalman filter approach,†Infect. Dis. Model., vol. 8, no. 2, pp. 341–355, 2023, doi: 10.1016/j.idm.2023.03.001.
(14) M. Z. Ndii, L. K. Beay, N. Anggriani, K. N. Nukul, and B. S. Djahi, “Estimating the Time Reproduction Number in Kupang City Indonesia, 2016–2020, and Assessing the Effects of Vaccination and Different Wolbachia Strains on Dengue Transmission Dynamics,†Mathematics, vol. 10, no. 12, pp. 2016–2020, 2022, doi: 10.3390/math10122075.
(15) R. Sajedi, F. Kowsary, A. Kahrbaeiyan, and J. Faraji, “Application of the adaptive method to determine the process noise in the extended Kalman filter to estimate the parameters of the two dimensional inverse heat transfer problem,†Int. J. Therm. Sci., vol. 201, no. December 2022, p. 109027, 2024, doi: 10.1016/j.ijthermalsci.2024.109027.
(16) Z. Li, J. Sun, A. G. Marques, G. Wang and K. You, "Pontryagin’s Minimum Principle-Guided RL for Minimum-Time Exploration of Spatiotemporal Fields," in IEEE Transactions on Neural Networks and Learning Systems, doi: 10.1109/TNNLS.2024.3379654.
(17) Suhika, D., Saragih, R., & Handayani, D. (2024, July). Application of optimal control on mathematical model for spreading of Covid-19. In AIP Conference Proceedings (Vol. 3083, No. 1). AIP Publishing.
(18) Abidemi, A., & Peter, O. J. (2024). An optimal control model for dengue dynamics with asymptomatic, isolation, and vigilant compartments. Decision Analytics Journal, 10, 100413.
(19) Allali, K. (2024). Optimal Control of HPV Infection and Cervical Cancer Cells with Beddington–DeAngelis Functional Response. Trends in Biomathematics: Exploring Epidemics, Eco-Epidemiological Systems, and Optimal Control Strategies: Selected Works from the BIOMAT Consortium Lectures, Rio de Janeiro, Brazil, 2023, 89-104.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Departemen Matematika dan Sains Data FMIPA UNAND

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All articles published in Jurnal Matematika UNAND (JMUA) are open access and licensed under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0). This license allows published content to be freely accessed, shared, redistributed, and adapted for any purpose, including commercial use, provided that the applicable license conditions are followed.
Copyright Holder
The copyright of articles published in Jurnal Matematika UNAND is held by the Departemen Matematika dan Sains Data, Fakultas Matematika dan Ilmu Pengetahuan Alam (FMIPA), Universitas Andalas (UNAND), in accordance with the journal's stated copyright policy.
Author Rights
Under the CC BY-SA 4.0 license, authors may share, distribute, and reuse their published articles, subject to the applicable license conditions. These rights include:
-
Self-Archiving: Authors may deposit their published articles in institutional repositories, personal websites, or academic platforms.
-
Reuse: Authors may reuse their published work in subsequent publications, research, teaching materials, or other lawful purposes, provided that appropriate attribution is maintained.
-
Distribution: Authors may share and distribute their published articles without requiring additional permission under the terms of the license.
Creative Commons License (CC BY-SA 4.0)
Under the CC BY-SA 4.0 license, users are free to:
-
Share: Copy and redistribute the material in any medium or format.
-
Adapt: Remix, transform, and build upon the material for any purpose, including commercial purposes.
These permissions are subject to the following conditions:
-
Attribution: Users must give appropriate credit to the original author(s), retain relevant copyright notices, provide a link to the license, and indicate if changes were made. Attribution must not imply endorsement by the author(s), copyright holder, or journal.
-
ShareAlike: If users remix, transform, or build upon the material, they must distribute their contributions under the same CC BY-SA 4.0 license or a compatible license.
-
No Additional Restrictions: Users may not apply legal terms or technological measures that legally restrict others from exercising the rights granted by the license.
For more information about the CC BY-SA 4.0 license, please visit:
https://creativecommons.org/licenses/by-sa/4.0/
Third-Party Content
Third-party materials, including figures, tables, photographs, and illustrations, are covered by the article's CC BY-SA 4.0 license only when their inclusion under that license is authorized.
Materials excluded from the license must be clearly identified with appropriate copyright notices and attribution. Authors are responsible for obtaining any necessary permissions, while users must comply with the applicable licensing terms or permissions when reusing excluded materials.
Copyright and Licensing Information
Copyright and licensing information should be clearly displayed on each published article's landing page and included in the full-text versions (HTML and PDF), where applicable, to ensure transparency regarding copyright ownership and permitted reuse.



