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:
- 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.
- 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.
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.
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