Towards Safe Mechanical Ventilation Treatment Using Deep Offline Reinforcement Learning

Flemming Kondrup, Thomas Jiralerspong, Elaine Lau, Nathan de Lara, Jacob Shkrob, My Duc Tran, Doina Precup, Sumana Basu

Abstract

Mechanical ventilation is a key form of life support for patients with pulmonary impairment. Healthcare workers are required to continuously adjust ventilator settings for each patient, a challenging and time-consuming task. Hence, it would be beneficial to develop an automated decision support tool to optimize ventilation treatment. We present DeepVent, a Conservative Q-Learning (CQL) based offline Deep Reinforcement Learning (DRL) agent that learns to predict the optimal ventilator parameters for a patient to promote 90-day survival. We design a clinically relevant intermediate reward that encourages continuous improvement of the patient vitals as well as addresses the challenge of sparse reward in RL. We find that DeepVent recommends ventilation parameters within safe ranges, as outlined in recent clinical trials. The CQL algorithm offers additional safety by mitigating the overestimation of the value estimates of out-of-distribution states/actions. We evaluate our agent using Fitted Q Evaluation (FQE) and demonstrate that it outperforms physicians from the MIMIC-III dataset.

Introduction

Mechanical ventilation is a cornerstone of intensive care, yet managing it remains a high-stakes balancing act. Clinicians must constantly adjust parameters such as Positive End-Expiratory Pressure (PEEP) and the Fraction of Inspired Oxygen (FiO2). If these settings are too aggressive, they risk causing ventilator-induced lung injury or oxygen toxicity; if they are too conservative, the patient may suffer from life-threatening hypoxia.

While Reinforcement Learning (RL) offers a framework for optimizing these sequential decisions, its application in clinical settings is fraught with risk. Standard Deep Q-Learning (DQN) models often suffer from overestimation bias, where the model "hallucinates" high rewards for actions it hasn't seen enough data for. In a medical context, this over-optimism can lead to dangerous recommendations. DeepVent addresses these challenges by combining offline RL with clinical domain knowledge to prioritize patient safety.

Methodology

Conservative Q-Learning (CQL)

DeepVent utilizes Conservative Q-Learning (CQL) to mitigate the risks associated with offline learning. Unlike online RL, which learns through trial and error, offline RL learns from a fixed historical dataset. CQL is specifically designed to be cautious: it penalizes the model’s value estimates for actions that are not well-represented in the training data. This ensures that the AI stays within known safe boundaries and avoids recommending extreme ventilator settings that lack empirical support.

Clinically Informed Reward Shaping

A common hurdle in healthcare RL is the "sparse reward" problem—where the model only receives feedback (life or death) at the very end of a patient's stay. To provide more granular guidance, the researchers introduced a clinically relevant intermediate reward based on the Apache II score, a standard ICU mortality prediction tool. By calculating this score every four hours, DeepVent receives a "nudge" based on whether the patient’s physiological state is improving or deteriorating, allowing the model to learn more effectively during the critical 72-hour ventilation window.

Experimental Setup

The study utilized the MIMIC-III dataset, comprising over 61,000 ICU stays. The researchers focused on the first 72 hours of ventilation, tracking 36 variables including vitals, laboratory results, and demographics. To rigorously test the model's safety, they also created an "Out-of-Distribution" (OOD) dataset consisting of physiological outliers (the top and bottom 1% of the distribution). This allowed the team to observe how the model behaves when faced with unusual or extreme patient cases.

Results and Discussion

Quantitative Performance

The models were evaluated using Fitted Q Evaluation (FQE), which estimates the expected return of a policy without real-world deployment. DeepVent significantly outperformed both human clinicians and standard imitation learning baselines:

  • Physician Performance: 0.502
  • Behavior Cloning (Imitation): 0.572
  • DeepVent (CQL + Intermediate Reward): 0.743

Safety and Clinical Alignment

Beyond numerical scores, DeepVent demonstrated superior clinical safety. While standard models like Double DQN (DDQN) frequently recommended dangerously high PEEP and Tidal Volumes—ranges associated with lung injury—DeepVent’s recommendations remained within safe, medically recognized limits. Specifically, DeepVent favored PEEP ranges of 0-5 cmH2O and Tidal Volumes of 5-7.5 ml/kg, aligning with modern protective ventilation strategies. Even when processing OOD outlier patients, DeepVent remained stable, whereas non-conservative models became erratic.

Conclusion

DeepVent represents a significant step toward safe, AI-assisted mechanical ventilation. By utilizing CQL to prevent over-optimistic errors and incorporating intermediate clinical rewards, the model achieves high performance while adhering to medical safety standards. While these results are based on retrospective data, they suggest that DeepVent could serve as a robust decision-support tool, assisting clinicians in navigating the complexities of ICU care. Future work will focus on validating the model across diverse hospital systems and exploring its utility in real-time clinical environments.

Summary updated

BibTeX
@inproceedings{kondrup2023towards,
  author = {Flemming Kondrup and Thomas Jiralerspong and Elaine Lau and Nathan de Lara and Jacob Shkrob and My Duc Tran and Doina Precup and Sumana Basu},
  title = {{Towards Safe Mechanical Ventilation Treatment Using Deep Offline Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=vVLMhmEiVM},
}
Figure