Hybrid Control Policy for Artificial Pancreas via Ensemble Deep Reinforcement Learning

Wenzhou Lv, Tianyu Wu, Luolin Xiong, Liang Wu, Zhou Jian, Yang Tang, Qi FengarXiv 2023 · DOI · arXiv

Abstract

Objective: The artificial pancreas (AP) has shown promising potential in achieving closed-loop glucose control for individuals with type 1 diabetes mellitus (T1DM). However, designing an effective control policy for the AP remains challenging due to complex physiological processes, delayed insulin response, and inaccurate glucose measurements. While model predictive control (MPC) offers safety and stability, it lacks individualization. Conversely, deep reinforcement learning (DRL) provides personalized strategies but faces challenges with distribution shifts and data requirements. Methods: We propose a hybrid control policy for the artificial pancreas (HyCPAP) that combines an MPC policy with an ensemble DRL policy, leveraging the strengths of both while compensating for their limitations. We further incorporate meta-learning techniques to enable fast adaptation to new patients with limited data. Results: Extensive experiments using the FDA-accepted UVA/Padova T1DM simulator show that HyCPAP achieves the highest percentage of time spent in the desired euglycemic range and the lowest occurrences of hypoglycemia. Conclusion: The results demonstrate the superiority of our methods for closed-loop glucose management in individuals with T1DM.

Introduction: The Challenge of Automated Glucose Management

Managing Type 1 Diabetes (T1DM) is a high-stakes balancing act. An Artificial Pancreas (AP) must deliver the right amount of insulin at the right time, but it faces a "triple threat" of challenges: complex human physiology, delayed insulin response, and noisy sensor data.

Current control algorithms generally fall into two camps, each with significant drawbacks:

  1. Model Predictive Control (MPC): The industry standard, MPC is safe and stable because it uses a mathematical model of the body. However, it is often "one-size-fits-all" and struggles to react to unannounced meals or unique individual variations.
  2. Deep Reinforcement Learning (DRL): These AI agents excel at learning personalized strategies. However, they are data-hungry and can behave unpredictably when encountering unfamiliar situations (the "distribution shift" problem), posing a major safety risk.
Conceptual overview of the hybrid control strategy, balancing the strengths of DRL and MPC policies.

Methods: The HyCPAP Architecture

The researchers introduced HyCPAP (Hybrid Control Policy for Artificial Pancreas) to bridge this gap. Its architecture consists of three main pillars:

  • The Safety Net (Prior MPC): A Zone-MPC policy provides a baseline of stability and safety constraints.
  • The Personalized Brain (Ensemble DRL): Instead of one AI agent, the system uses an ensemble of Soft Actor-Critic (SAC) agents. They employ a technique called Masksembles to create this ensemble efficiently within a single neural network. To improve robustness, the agents are trained with a "Zone Reward" function, which encourages keeping glucose within a healthy range (100–140 mg/dL) rather than targeting a single, difficult-to-hit number.
  • The Intelligent Fusion: This is the core innovation. The system calculates the uncertainty (variance) of the DRL ensemble. If the AI agents disagree or are "confused" by a new situation, the system automatically leans more on the reliable MPC. If the AI is confident, it takes the lead to provide a more personalized insulin dose.
Detailed architecture of the HyCPAP system, showing the fusion of Ensemble DRL and Prior MPC policies based on uncertainty.

Fast Adaptation via Meta-Learning

To handle the "cold start" problem where a new patient has very little data, the team developed Meta-HyCPAP. This version uses meta-learning to identify patterns across a population of patients, allowing the controller to "fast-track" its adaptation to a specific individual in just a few days by leveraging shared patient knowledge.

Key Results

The study utilized the FDA-accepted UVA/Padova T1DM simulator to test the algorithms on a cohort of 10 virtual adults across standard, extreme, and randomized meal scenarios. The hybrid approach consistently outperformed standalone MPC and DRL:

  • Better Control: In standard scenarios, HyCPAP achieved a Time in Range (TIR) of 97.2%, compared to 92.6% for standard MPC.
  • Handling the Unexpected: When meals were unannounced, HyCPAP maintained a TIR of 83.6%, significantly higher than MPC’s 77.4%.
  • Safety First: HyCPAP achieved a 100% success rate in preventing critical glucose failures, even in extreme meal scenarios where pure DRL agents often caused dangerous hypoglycemia.
  • Rapid Deployment: Meta-HyCPAP reached over 81% TIR for new patients using very limited data, proving its viability for real-world application.

Limitations and Future Work

While the results are promising, the authors note that these tests were performed in silico. Real-world human trials are necessary to account for the full complexity of human biology and variables like physical exercise, which are not yet included in the model. Future iterations may also explore tighter integration between the MPC and DRL "brains" to allow for information exchange during the decision-making process.

Summary updated

Abstract

Objective: The artificial pancreas (AP) has shown promising potential in achieving closed-loop glucose control for individuals with type 1 diabetes mellitus (T1DM). However, designing an effective control policy for the AP remains challenging due to the complex physiological processes, delayed insulin response, and inaccurate glucose measurements. While model predictive control (MPC) offers safety and stability through the dynamic model and safety constraints, it lacks individualization and is adversely affected by unannounced meals. Conversely, deep reinforcement learning (DRL) provides personalized and adaptive strategies but faces challenges with distribution shifts and substantial data requirements. Methods: We propose a hybrid control policy for the artificial pancreas (HyCPAP) to address the above challenges. HyCPAP combines an MPC policy with an ensemble DRL policy, leveraging the strengths of both policies while compensating for their respective limitations. To facilitate faster deployment of AP systems in real-world settings, we further incorporate meta-learning techniques into HyCPAP, leveraging previous experience and patient-shared knowledge to enable fast adaptation to new patients with limited available data. Results: We conduct extensive experiments using the FDA-accepted UVA/Padova T1DM simulator across three scenarios. Our approaches achieve the highest percentage of time spent in the desired euglycemic range and the lowest occurrences of hypoglycemia. Conclusion: The results clearly demonstrate the superiority of our methods for closed-loop glucose management in individuals with T1DM. Significance: The study presents novel control policies for AP systems, affirming the great potential of proposed methods for efficient closed-loop glucose control.
BibTeX
@misc{lv2023hybrid,
  author = {Wenzhou Lv and Tianyu Wu and Luolin Xiong and Liang Wu and Zhou Jian and Yang Tang and Qi Feng},
  title = {{Hybrid Control Policy for Artificial Pancreas via Ensemble Deep Reinforcement Learning}},
  year = {2023},
  eprint = {2307.06501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.06501},
}

Loading related content...

Figure