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 determining the optimal settings for a specific patient is a complex balancing act. Incorrect parameters can lead to severe complications such as Ventilator-Induced Lung Injury (VILI), pneumonia, or oxygen toxicity. While machine learning offers potential for personalized treatment, standard reinforcement learning (RL) faces two major hurdles in clinical settings: the safety risk of "online" trial-and-error learning and the "overestimation trap" in offline RL, where models overvalue rare or untested actions.

This paper introduces DeepVent, a framework utilizing offline RL to recommend optimal ventilator settings. By leveraging the Conservative Q-Learning (CQL) algorithm, DeepVent avoids the dangerous overestimation of risky actions, ensuring recommendations remain within safe clinical boundaries even for outlier patients.

Methods and Data

DeepVent is trained using the MIMIC-III dataset, which contains de-identified data from over 60,000 ICU stays. The study focused on a cohort of 19,780 ventilated patients, defining a state space of 36 variables (demographics, vitals, labs) and an action space comprising three critical settings: Tidal Volume ($V_t$), PEEP (Positive End Expiratory Pressure), and $FiO_2$ (Fraction of inspired oxygen).

DeepVent workflow: from data extraction and environment setup to training and FQE evaluation.

To address the "sparse reward" problem—where outcomes like 90-day survival are too distant for effective learning—the authors introduced Intermediate Reward Shaping. This uses the Apache II score, a standard clinical metric for disease severity. The agent is rewarded for incremental improvements in a patient's physiological state, effectively solving the credit assignment problem.

Key Results

The performance of DeepVent was evaluated using Fitted Q Evaluation (FQE), a statistically robust method for off-policy evaluation. DeepVent achieved a mean initial state value of 0.743, significantly outperforming both the recorded Physician Policy (0.502) and Behavior Cloning (0.572).

A critical finding was DeepVent's alignment with safe clinical practices. Unlike standard Double DQN (DDQN), which often recommended dangerously high pressures and volumes, DeepVent's recommendations for PEEP and Tidal Volume aligned closely with "Lung Protective Ventilation" guidelines.

Comparison of action counts for PEEP, FiO2, and Adjusted Tidal Volume across DeepVent, Physicians, and DDQN.

DeepVent's use of CQL proved essential for safety. In out-of-distribution (OOD) scenarios—tested using a specifically created outlier dataset—DDQN’s value estimates exploded due to overconfidence. In contrast, DeepVent’s estimates remained stable and below theoretical maximums, demonstrating its reliability even when encountering unusual patient profiles.

Discussion and Future Work

While DeepVent shows significant promise, several steps remain before clinical deployment. The authors acknowledge that FQE is an estimation and real-world efficacy must be verified through prospective clinical trials. Additionally, the model's generalizability beyond the single hospital system represented in MIMIC-III needs further investigation.

Initially, DeepVent is envisioned as a decision support tool rather than a fully autonomous system. This "human-in-the-loop" approach allows clinicians to validate recommendations, building the necessary trust for AI integration into high-stakes ICU 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