GLUCOSE: A Distributional Reinforcement Learning Model for Optimal Glucose Control After Cardiac Surgery

Jacob Desman, Zhang-Wei Hong, Moein Sabounchi, Ashwin Sawant, Jaskirat Gill, Ana Catarina Costa, Gagan Kumar, Rajeev Sharma, Arpeta Gupta, Paul McCarthy, Veena Nandwani, D. Powell, Alexandra Carideo, Donnie Goodwin, Sanam Ahmed, Umesh Gidwani, Matthew A. Levin, Robin Varghese, Farzan Filsoufi, Robert Freeman, Avniel Shetreat‐Klein, Alexander W. Charney, Ira Hofer, Lili Chan, David J. Reich, Patricia Kovatch, Roopa Kohli‐Seth, Monica Kraft, Pulkit Agrawal, John A. Kellum, Girish N. Nadkarni, Ankit SakhujamedRxiv 2025 · DOI

Introduction

Cardiac surgery represents a significant physiological stressor, triggering metabolic responses that lead to hyperglycemia in over 50% of non-diabetic patients and up to 80% of those with diabetes. Unmanaged blood glucose levels in the intensive care unit (ICU) are associated with severe complications, including infections, acute kidney injury, arrhythmias, and increased mortality.

Despite the critical nature of glucose management, current insulin protocols often rely on rigid, "one-size-fits-all" rules that struggle to account for individual patient variability. Furthermore, the narrow therapeutic window of insulin poses a constant risk: aggressive dosing to correct hyperglycemia can inadvertently cause life-threatening hypoglycemia. Currently, only approximately 15% of patients achieve optimal glucose control within the first 24 hours post-surgery. To address this, we present GLUCOSE (Glucose Level Understanding and Control Optimized for Safety and Efficacy), an offline reinforcement learning (RL) algorithm designed to optimize insulin dosing.

The GLUCOSE Framework

Unlike standard RL approaches that aim to maximize expected (average) rewards, GLUCOSE utilizes Distributional Reinforcement Learning. This approach is particularly suited for the ICU, a dynamic and high-stakes environment where uncertainty is prevalent.

Technical Architecture

The model is built upon two primary technical pillars:

  1. Conservative Q-Learning (CQL): This framework addresses the "overestimation bias" inherent in training on static, offline datasets. By regularizing the learned policy to remain close to the actions observed in the training data, CQL ensures the model does not suggest unsafe, out-of-distribution doses.
  2. Implicit Quantile Networks (IQN): This distributional component allows the model to map the entire probability distribution of potential returns rather than a single scalar value. In a clinical environment, understanding the "worst-case" risk is often more important than predicting the "average" outcome. IQN enables GLUCOSE to prioritize safety by accounting for the inherent uncertainty of patient responses.

The model processes over 70 clinical features—including vital signs, laboratory results, SOFA scores, and vasopressor dosages—sampled at hourly intervals to recommend an insulin dose between 0 and 10 units. The reward function is specifically tuned to incentivize maintaining glucose levels within the 140–180 mg/dL range while heavily penalizing excursions into hypoglycemia or severe hyperglycemia.

Experimental Methodology

The model was developed and validated using two large-scale, de-identified ICU databases:

  • MIMIC-IV (Internal): Data from 5,228 patients at Beth Israel Deaconess Medical Center was used for training, with 920 patients reserved for internal testing.
  • eICU-CRD (External): A multi-center dataset involving 649 patients served as an external validation set to test the model's generalizability across different hospital protocols and demographics.

Results and Validation

GLUCOSE demonstrated superior performance across multiple evaluation metrics compared to standard clinical practice.

Off-Policy Evaluation

In internal testing, GLUCOSE achieved a mean estimated reward of 0.0 [-0.07, 0.06], significantly higher than the clinician return of -1.29 [-1.37, -1.20]. This trend continued in external validation, where GLUCOSE achieved -0.63 [-0.74, -0.52] compared to the clinician return of -1.02 [-1.16, -0.89].

Dosing Accuracy and Human Comparison

The study employed a multi-phase human validation process. In the first phase, GLUCOSE showed a significantly lower Mean Absolute Error (MAE) in insulin dosing relative to expert recommendations. In internal testing, GLUCOSE achieved an MAE of 0.9 units versus 1.97 units for clinicians (p < 0.001). In external validation, the MAE was 1.90 units for the model versus 2.24 units for clinicians (p = 0.003).

Notably, in a blinded "Turing Test" evaluation, senior intensivists rated GLUCOSE’s recommendations as comparable to or better than those of senior human clinicians. Even when human clinicians were given the advantage of seeing the entire patient time series (the "future"), GLUCOSE—which only saw data up to the current hour—maintained higher accuracy. The model was evaluated across three critical domains: Safety, Effectiveness, and Acceptability, consistently meeting or exceeding the performance of medical specialists.

Interpretability and Clinical Alignment

To ensure the model was not a "black box," the researchers utilized SHAP (SHapley Additive exPlanations) to analyze feature importance. The analysis revealed that GLUCOSE prioritized clinical indicators aligned with medical intuition, such as current glucose levels, recent trends, patient weight, and mechanical ventilation status. This alignment suggests that the model's decision-making process is grounded in established physiological principles.

Limitations and Future Directions

While GLUCOSE represents a significant advancement in autonomous insulin titration, several hurdles remain before bedside deployment:

  • Retrospective Design: The current findings are based on historical data; prospective clinical trials are required to validate real-time performance.
  • Temporal Scope: The model is currently optimized for the first 24 hours post-surgery. Future iterations should expand to cover the entire ICU stay.
  • Nutritional Data: The model does not explicitly incorporate caloric intake or tube feeding data, though it likely infers these effects through glucose fluctuations.
  • Data Standardization: Challenges in external validation highlighted the need for improved data documentation standards across different healthcare systems.

Conclusion

GLUCOSE demonstrates that distributional reinforcement learning can effectively navigate the complexities of ICU insulin dosing. By prioritizing safety and accounting for uncertainty, the model offers a robust tool for improving postoperative glucose management and potentially reducing surgical complications.

Summary updated

Abstract

ABSTRACT This study introduces Glucose Level Understanding and Control Optimized for Safety and Efficacy (GLUCOSE), a distributional offline reinforcement learning algorithm for optimizing insulin dosing after cardiac surgery. Trained on 5,228 patients, tested on 920, and externally validated on 649, GLUCOSE achieved a mean estimated reward of 0.0 [-0.07, 0.06] in internal testing and -0.63 [-0.74, -0.52] in external validation, outperforming clinician returns of -1.29 [-1.37, -1.20] and -1.02 [-1.16, -0.89]. In multi-phase human validation, GLUCOSE first showed a significantly lower mean absolute error (MAE) in insulin dosing, with 0.9 units MAE versus clinicians’ 1.97 units (p &lt; 0.001) in internal testing and 1.90 versus 2.24 units (p = 0.003) in external validation. The second and third phases found GLUCOSE‘s performance as comparable to or exceeding that of senior clinicians in MAE, safety, effectiveness, and acceptability. These findings suggest GLUCOSE as a robust tool for improving postoperative glucose management.
BibTeX
@misc{desman2025glucose,
  author = {Jacob Desman and Zhang-Wei Hong and Moein Sabounchi and Ashwin Sawant and Jaskirat Gill and Ana Catarina Costa and Gagan Kumar and Rajeev Sharma and Arpeta Gupta and Paul McCarthy and Veena Nandwani and D. Powell and Alexandra Carideo and Donnie Goodwin and Sanam Ahmed and Umesh Gidwani and Matthew A. Levin and Robin Varghese and Farzan Filsoufi and Robert Freeman and Avniel Shetreat‐Klein and Alexander W. Charney and Ira Hofer and Lili Chan and David J. Reich and Patricia Kovatch and Roopa Kohli‐Seth and Monica Kraft and Pulkit Agrawal and John A. Kellum and Girish N. Nadkarni and Ankit Sakhuja},
  title = {{GLUCOSE: A Distributional Reinforcement Learning Model for Optimal Glucose Control After Cardiac Surgery}},
  year = {2025},
  doi = {10.1101/2025.01.01.25319851},
  howpublished = {medRxiv},
}
Figure