Abstract
Blood glucose regulation is one of the most critical challenges in artificial pancreas systems due to the nonlinear characteristics of glucose-insulin dynamics and the difficulty of maintaining appropriate controller performance under varying operating conditions. This study proposes a hybrid control strategy combining the Artificial Hummingbird Algorithm (AHA) and a Deep Q-Network (DQN)-assisted PID controller with derivative filter for nonlinear blood glucose regulation. Initially, the controller parameters were optimally tuned using the AHA according to the Integral Square Error (ISE) performance criterion. Subsequently, instead of redesigning the entire controller, the DQN was employed to adaptively determine a weighting factor for the derivative gain during online operation, while the remaining controller parameters remained fixed. The proposed controller was evaluated using the nonlinear APMonitor blood glucose regulation model under identical simulation conditions. The simulation results demonstrated that the proposed approach improved blood glucose tracking performance by reducing the tracking error and oscillatory behavior compared with the conventionally optimized PID controller. Furthermore, the DQN training process exhibited stable convergence within a limited number of training episodes, indicating the effectiveness of the proposed adaptive learning framework. By combining offline global optimization with online adaptive learning, the proposed method preserves the simplicity and robustness of the classical PID controller while enhancing its regulation capability for nonlinear blood glucose systems. The obtained results indicate that the proposed hybrid strategy provides an effective and computationally efficient solution for intelligent blood glucose regulation.
References
Acikgoz, S. U. and U. M. Diwekar, 2010 Blood glucose regulation with stochastic optimal control for insulin-dependent diabetic patients. Chemical Engineering Science 65: 1227–1236.
Baldisseri, F., D. Menegatti, and A. Wrona, 2024 Deep deterministic policy gradient control of type 1 diabetes. In 2024 European Control Conference (ECC), pp. 868–873, IEEE.
Çetkin, E., 2013 Bir yapay pankreas için kontrol tasarımı. Master’s thesis, Inonu University (Turkey).
Çimen, M. E., 2026 Reinforcement learning and metaheuristic optimization approach to pid with derivative filter controller design for pemfc-driven sepic converter. Arabian Journal for Science and Engineering 51: 11749–11780.
Çimen, M. E., Z. B. Garip, and A. F. Boz, 2021 Chaotic flower pollination algorithm based optimal pid controller design for a buck converter. Analog Integrated Circuits and Signal Processing 107: 281–298.
Dagher, K. E. and J. Haggege, 2025 A half decade reviews and controller design for the bergman diabetic patient model. Journal of Engineering 31: 1–31.
Dua, P., F. J. Doyle, and E. N. Pistikopoulos, 2006 Model-based blood glucose control for type 1 diabetes via parametric programming. IEEE Transactions on Biomedical Engineering 53: 1478–1491.
Echajei, S., M. Hafdane, A. Idmbarek, H. Ferjouchia, and M. Rachik, 2025 Implementation of pid control strategies on bergman model representing type 1 diabetes-t1d. Commun. Math. Biol. Neurosci. 2025: Article–ID.
Farahmand, B., M. Dehghani, and N. Vafamand, 2019 Fuzzy model-based controller for blood glucose control in type 1 diabetes: An lmi approach. Biomedical Signal Processing and Control 54: 101627.
Friis-Jensen, E., 2007 Modeling and simulation of glucose-insulin metabolism. In Congress Lyngby.
Hedengren, J. D., 2008 A nonlinear model library for dynamics and control. Yeast 7: 24.
Hovorka, R., V. Canonico, L. J. Chassin, U. Haueter, M. Massi-Benedetti, et al., 2004 Nonlinear model predictive control of glucose concentration in subjects with type 1 diabetes. Physiological Measurement 25: 905–920.
Mirzaee, A., M. Dehghani, R. Abolpour, M. Mohammadi, and M. S. Sadabadi, 2023 Robust optimal impulsive blood glucose control exploiting a direct searching algorithm. IEEE Sensors Journal 23: 3183–3193.
Mnih, V., K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, et al., 2015 Human-level control through deep reinforcement learning. Nature 518: 529–533.
Mufti Azis, M., J. Kristanto, and Sarto, 2020 Dynamic simulation of insulin-glucose interaction in type 1 diabetes with MATLAB Simulink®. In IOP Conference Series: Materials Science and Engineering, volume 778, p. 012147, IOP Publishing.
Pompa, M., S. Panunzi, A. Borri, and A. De Gaetano, 2021 A comparison among three maximal mathematical models of the glucose-insulin system. PLoS ONE 16: e0257789.
Sabzevar, P. V., H. Sadrian, and A. Hajipour, 2023 Tracking blood glucose concentration of type 1 diabetic patients using reinforcement learning. In 2023 9th International Conference on Control, Instrumentation and Automation (ICCIA), pp. 1–6, IEEE.
Soylu, S. and K. Danışman, 2017 Yaygın üç tip 1 diyabet benzetim modelinin karşılaştırılması comparison of common three type 1 diabetes simulation models.
Tašić, J., M. Takács, and L. Kovács, 2022 Control engineering methods for blood glucose levels regulation. Acta Polytechnica Hungarica 19: 127–152.
Zhao, W., L. Wang, and S. Mirjalili, 2022 Artificial hummingbird algorithm: A new bio-inspired optimizer with its engineering applications. Computer Methods in Applied Mechanics and Engineering 388: 114194.
Çimen, M. E., 2024 Pi sliding mode control for cuk converter and their tuning using cheetah optimizer and reinforcement learning. In Proceedings of the EGE 12th International Conference on Applied Sciences, Izmir, Türkiye.
Çimen, M. E., 2025 Pi sliding mode control using dqn for boost converter control. In Proceedings of the 11th International Symposium on Intelligent Technologies in Engineering and Science (ISITES 2025).

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
