Research Article

Deep Reinforcement Learning for Automated Glucose Regulation: A DQN vs. PID In Silico Study

Volume: 23 Number: 2 November 1, 2026
EN

Deep Reinforcement Learning for Automated Glucose Regulation: A DQN vs. PID In Silico Study

Abstract

Effective regulation of blood glucose in type 1 diabetes mellitus (T1DM) requires continuous insulin administration and remains a difficult control problem. This study compares a Deep Q-Network (DQN) insulin-dosing agent with a proportional–integral–derivative (PID) controller in silico. Glucose–insulin dynamics were described by a simplified Bergman minimal model with Gaussian meal disturbances. Both controllers used the same five insulin infusion rates (0–4 U/h) and the same 5-min control interval. The DQN was trained on a standard three-meal day with three independent random seeds, and the PID gains were selected by grid search on the same day. Both controllers were then tested on the standard day, on high-carbohydrate and skipped-meal days not used for training, and with insulin sensitivity changed by ±30%. Performance was assessed with time in range (TIR, 70–180 mg/dL), time below and above range, mean glucose, total insulin and cumulative reward. On the standard day, TIR was 100% with PID and 97.9 ± 3.6% with DQN (mean ± SD over seeds); in the high-carbohydrate scenario, it was 97.3% and 92.7 ± 6.0%, respectively. Neither controller produced hypoglycemia in the meal scenarios. However, the DQN kept glucose close to the lower limit of the target range (minimum 72.8–76.0 mg/dL vs. 103.6–104.6 mg/dL with PID), delivered 1.8–3.2 times as much insulin and varied between training seeds; with a 30% increase in insulin sensitivity, one DQN agent spent 23 min below 70 mg/dL. In this simplified setting, the DQN learned a usable dosing policy but did not outperform a tuned PID controller. Because the reward was constant inside the target range, the agent had no incentive to keep a margin from hypoglycemia, which shows that reward design directly affects controller safety.

Keywords

References

  1. A. Katsarou, S. Gudbjörnsdottir, A. Rawshani, D. Dabelea, E. Bonifacio, B. J. Anderson, L. M. Jacobsen, D. A. Schatz, and Å. Lernmark, “Type 1 diabetes mellitus,” Nat. Rev. Dis. Primers, vol. 3, Art. no. 17016, Mar. 2017, doi: 10.1038/nrdp.2017.16.
  2. S. Di Molfetta, L. Di Gioia, I. Caruso, A. Cignarelli, S. C. Green, P. Natale, G. F. M. Strippoli, G. P. Sorice, S. Perrini, A. Natalicchio, L. Laviola, and F. Giorgino, “Efficacy and safety of different hybrid closed loop systems for automated insulin delivery in people with type 1 diabetes: A systematic review and network meta-analysis,” Diabetes Metab. Res. Rev., vol. 40, no. 6, Art. no. e3842, Sep. 2024, doi: 10.1002/dmrr.3842.
  3. W. Fan, C. Deng, R. Xu, Z. Liu, R. D. Leslie, Z. Zhou, and X. Li, “Efficacy and safety of automated insulin delivery systems in patients with type 1 diabetes mellitus: A systematic review and meta-analysis,” Diabetes Metab. J., vol. 49, no. 2, pp. 235–251, Mar. 2025, doi: 10.4093/dmj.2024.0130.
  4. H. Yapislar and E. B. Gurler, “Management of microcomplications of diabetes mellitus: Challenges, current trends, and future perspectives in treatment,” Biomedicines, vol. 12, no. 9, Art. no. 1958, Sep. 2024, doi: 10.3390/biomedicines12091958.
  5. M. Yapanis, S. James, M. E. Craig, D. O’Neal, and E. I. Ekinci, “Complications of diabetes and metrics of glycemic management derived from continuous glucose monitoring,” J. Clin. Endocrinol. Metab., vol. 107, no. 6, pp. e2221–e2236, Jun. 2022, doi: 10.1210/clinem/dgac034.
  6. J. Fuchs and R. Hovorka, “Closed-loop control in insulin pumps for type-1 diabetes mellitus: Safety and efficacy,” Expert Rev. Med. Devices, vol. 17, no. 7, pp. 707–720, Jul. 2020, doi: 10.1080/17434440.2020.1784724.
  7. A. Stahl-Pehe et al., “Efficacy of automated insulin delivery systems in people with type 1 diabetes: A systematic review and network meta-analysis of outpatient randomised controlled trials,” eClinicalMedicine, vol. 82, Art. no. 103190, Apr. 2025, doi: 10.1016/j.eclinm.2025.103190.
  8. S. Peacock, I. Frizelle, and S. Hussain, “A systematic review of commercial hybrid closed-loop automated insulin delivery systems,” Diabetes Ther., vol. 14, no. 5, pp. 839–855, May 2023, doi: 10.1007/s13300-023-01394-5.

Details

Primary Language

English

Subjects

Biomedical Engineering (Other)

Journal Section

Research Article

Publication Date

November 1, 2026

Submission Date

August 26, 2026

Acceptance Date

October 13, 2026

Published in Issue

Year 2026 Volume: 23 Number: 2

APA
Ebrahimpour Moghaddam Tasouj, P., & Gazi, O. (2026). Deep Reinforcement Learning for Automated Glucose Regulation: A DQN vs. PID In Silico Study. Cankaya University Journal of Science and Engineering, 23(2), 107-121. https://izlik.org/JA59HS55PG
AMA
1.Ebrahimpour Moghaddam Tasouj P, Gazi O. Deep Reinforcement Learning for Automated Glucose Regulation: A DQN vs. PID In Silico Study. CUJSE. 2026;23(2):107-121. https://izlik.org/JA59HS55PG
Chicago
Ebrahimpour Moghaddam Tasouj, Parisa, and Orhan Gazi. 2026. “Deep Reinforcement Learning for Automated Glucose Regulation: A DQN Vs. PID In Silico Study”. Cankaya University Journal of Science and Engineering 23 (2): 107-21. https://izlik.org/JA59HS55PG.
EndNote
Ebrahimpour Moghaddam Tasouj P, Gazi O (November 1, 2026) Deep Reinforcement Learning for Automated Glucose Regulation: A DQN vs. PID In Silico Study. Cankaya University Journal of Science and Engineering 23 2 107–121.
IEEE
[1]P. Ebrahimpour Moghaddam Tasouj and O. Gazi, “Deep Reinforcement Learning for Automated Glucose Regulation: A DQN vs. PID In Silico Study”, CUJSE, vol. 23, no. 2, pp. 107–121, Nov. 2026, [Online]. Available: https://izlik.org/JA59HS55PG
ISNAD
Ebrahimpour Moghaddam Tasouj, Parisa - Gazi, Orhan. “Deep Reinforcement Learning for Automated Glucose Regulation: A DQN Vs. PID In Silico Study”. Cankaya University Journal of Science and Engineering 23/2 (November 1, 2026): 107-121. https://izlik.org/JA59HS55PG.
JAMA
1.Ebrahimpour Moghaddam Tasouj P, Gazi O. Deep Reinforcement Learning for Automated Glucose Regulation: A DQN vs. PID In Silico Study. CUJSE. 2026;23:107–121.
MLA
Ebrahimpour Moghaddam Tasouj, Parisa, and Orhan Gazi. “Deep Reinforcement Learning for Automated Glucose Regulation: A DQN Vs. PID In Silico Study”. Cankaya University Journal of Science and Engineering, vol. 23, no. 2, Nov. 2026, pp. 107-21, https://izlik.org/JA59HS55PG.
Vancouver
1.Parisa Ebrahimpour Moghaddam Tasouj, Orhan Gazi. Deep Reinforcement Learning for Automated Glucose Regulation: A DQN vs. PID In Silico Study. CUJSE [Internet]. 2026 Nov. 1;23(2):107-21. Available from: https://izlik.org/JA59HS55PG