Skip to main content
QUICK REVIEW

[Paper Review] Deep Reinforcement Learning for Closed-Loop Blood Glucose Control

Ian Fox, Joyce M. Lee|arXiv (Cornell University)|Sep 18, 2020
Diabetes Management and ResearchMedicine40 references28 citations
TL;DR

This paper proposes a deep reinforcement learning (DRL) framework for automated, closed-loop blood glucose control in type 1 diabetes, using a patient-specific action space and transfer learning to achieve robust performance with minimal patient-specific data. It demonstrates a 50% reduction in median glycemic risk (from 8.34 to 4.24) and a 99.8% decrease in hypoglycemic time (from 4,610 to 6 days) across 30 simulated patients, outperforming baseline PID control and adapting effectively to predictable meal schedules.

ABSTRACT

People with type 1 diabetes (T1D) lack the ability to produce the insulin their bodies need. As a result, they must continually make decisions about how much insulin to self-administer to adequately control their blood glucose levels. Longitudinal data streams captured from wearables, like continuous glucose monitors, can help these individuals manage their health, but currently the majority of the decision burden remains on the user. To relieve this burden, researchers are working on closed-loop solutions that combine a continuous glucose monitor and an insulin pump with a control algorithm in an `artificial pancreas.' Such systems aim to estimate and deliver the appropriate amount of insulin. Here, we develop reinforcement learning (RL) techniques for automated blood glucose control. Through a series of experiments, we compare the performance of different deep RL approaches to non-RL approaches. We highlight the flexibility of RL approaches, demonstrating how they can adapt to new individuals with little additional data. On over 2.1 million hours of data from 30 simulated patients, our RL approach outperforms baseline control algorithms: leading to a decrease in median glycemic risk of nearly 50% from 8.34 to 4.24 and a decrease in total time hypoglycemic of 99.8%, from 4,610 days to 6. Moreover, these approaches are able to adapt to predictable meal times (decreasing average risk by an additional 24% as meals increase in predictability). This work demonstrates the potential of deep RL to help people with T1D manage their blood glucose levels without requiring expert knowledge. All of our code is publicly available, allowing for replication and extension.

Motivation & Objective

  • To develop a deep reinforcement learning (DRL) approach for automated blood glucose control in type 1 diabetes that reduces reliance on manual insulin dosing and meal announcements.
  • To address the challenge of limited patient-specific data by introducing a transfer learning method that enables rapid adaptation with minimal data.
  • To improve safety and stability in DRL for healthcare by mitigating catastrophic failures through reward shaping, data randomness, and model selection across random restarts.
  • To evaluate the performance of DRL against non-RL baselines (e.g., PID) in a realistic, open-source simulator of virtual patients.
  • To provide a publicly available codebase to enable replication, extension, and broader application of the method in clinical RL.

Proposed method

  • A deep Q-network (DQN) with a patient-specific action space that normalizes insulin dosing across individuals to balance safety and efficacy.
  • A transfer learning strategy (RL-Trans) that initializes the policy network with a pre-trained model from a diverse patient population, enabling fast adaptation with only 10 epochs (~half a year) of patient-specific data.
  • A safety-augmented reward function that penalizes hypoglycemia and hyperglycemia while avoiding over-penalization of insulin use, improving robustness and reducing catastrophic failures.
  • Extensive model selection using validation data across multiple random restarts to avoid overfitting and select stable policies with low failure rates.
  • Evaluation on a large-scale simulator with 2.1 million hours of data from 30 virtual patients, using long-horizon rollouts to assess real-world performance.
  • A 4-hour state history (glucose and insulin data) used as input to capture recent trends without overfitting to long-term patterns.

Experimental results

Research questions

  • RQ1Can deep reinforcement learning achieve human-level blood glucose control in type 1 diabetes without requiring meal announcements?
  • RQ2How does transfer learning improve sample efficiency in training patient-specific DRL policies for glucose control?
  • RQ3What techniques can stabilize deep reinforcement learning in safety-critical healthcare applications to minimize catastrophic failures?
  • RQ4How does the performance of DRL compare to traditional control algorithms (e.g., PID) in reducing glycemic risk and hypoglycemic time?
  • RQ5To what extent can DRL adapt to predictable meal schedules, and how does this affect overall performance?

Key findings

  • The DRL approach reduced median glycemic risk from 8.34 to 4.24, representing a nearly 50% improvement over baseline PID control.
  • Total time spent in hypoglycemia decreased from 4,610 days to just 6 days, a 99.8% reduction, demonstrating strong safety performance.
  • With no patient-specific data, the transfer learning variant (RL-Trans) outperformed PID in 40% of rollouts, and with only 10 epochs of fine-tuning, it surpassed PID in 59.6% of rollouts.
  • The catastrophic failure rate for RL-Trans remained below 0.5% even after 5 epochs, while the non-transfer baseline (RL-Scratch) had a failure rate exceeding 17% under the same conditions.
  • As meal predictability increased, the average risk decreased by an additional 24%, showing that DRL effectively leverages temporal patterns in eating behavior.
  • The use of a safety-augmented reward function, realistic data randomness, and model selection across random restarts significantly improved policy stability and reduced worst-case performance issues.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.