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.
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
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 (CC BY-SA) license. This ensures that the content is freely available to all users and can be shared and adapted, provided appropriate credit is given and any adaptations are distributed under the same license.
Copyright Holder
The copyright of all 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). This applies to all published versions, including the HTML and PDF formats of the articles.
Author Rights
While the Departemen Matematika dan Sains Data FMIPA UNAND holds the copyright for all published content, authors retain important rights under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA). This license grants authors and users the following rights:
- Reuse: Authors can reuse and distribute their work for any lawful purpose, including sharing on personal websites, institutional repositories, or in subsequent publications.
- Attribution and Adaptation: Authors and others may remix, adapt, and build upon the published work for any purpose, even commercially, as long as proper credit is given to the original authors, and any derivative works are distributed under the same CC BY-SA license.
Creative Commons License (CC BY-SA)
Under the terms of the CC BY-SA 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, even commercially.
However, the following conditions apply:
- Attribution: Users must give appropriate credit to the original author(s) and Departemen Matematika dan Sains Data FMIPA UNAND, provide a link to the license, and indicate if changes were made. Attribution must not imply endorsement by the author or the journal.
- ShareAlike: If users remix, transform, or build upon the material, they must distribute their contributions under the same license as the original.
For more information about the CC BY-SA license, please visit the Creative Commons website.
Third-Party Content
If authors include third-party material (such as figures, tables, or images) that is not covered by a Creative Commons license, they must obtain the necessary permissions for reuse and provide proper attribution. Authors are required to ensure that any third-party content complies with open-access licensing requirements or includes permissions for redistribution under similar terms.
Copyright and Licensing Information Display
The copyright and licensing terms will be clearly displayed on each article's landing page, as well as within the full-text versions (HTML and PDF) of all published articles.
No "All Rights Reserved"
As an open-access journal, JMUA does not use "All Rights Reserved" policies. Instead, the CC BY-SA license ensures that the works remain accessible and reusable for a wide audience while still protecting both the authors' and the copyright holder's rights.
Â









