Machine Learning for Mechanical Ventilation Control (Extended Abstract)

Daniel Suo, Cyril Zhang, Paula Gradu, Udaya Ghai, Xinyi Chen, Edgar Minasyan, Naman Agarwal, Karan Singh, Julienne LaChance, Tom Zajdel, Manuel Schottdorf, Daniel Cohen, Elad Hazan

TL;DR

This paper introduces a novel machine learning approach for controlling mechanical ventilators, aiming to improve patient safety and treatment efficacy. By training a deep learning model on a simulated environment derived from real-world ventilator data, they achieve superior performance and robustness compared to traditional PID controllers, even when tested on a physical ventilator.

What Problem Does This Paper Address?

Mechanical ventilation is a critical life support technology used across various medical settings, from anesthesia to intensive care. However, current ventilation methods, while widespread, can still lead to ventilator-induced lung injury (VILI) in patients. The core challenge lies in precisely controlling the airflow to match a prescribed airway pressure trajectory. Existing industry-standard controllers, primarily based on Proportional-Integral-Derivative (PID) algorithms, are often suboptimal and lack robustness, struggling to adapt to the complex and dynamic nature of patient physiology. This paper addresses the need for more effective, data-driven control strategies that can overcome these limitations.

Methods

The authors propose a "real2sim" then "sim2real" approach. First, they collect data from a physical test lung connected to a ventilator. This data is then used to train a differentiable simulator that learns the underlying dynamics of the ventilator-patient system. This simulator, termed "real2sim," allows for efficient and safe generation of artificial data. Subsequently, a deep learning controller is trained using this simulator, enabling it to learn optimal control policies without extensive real-world experimentation. This "sim2real" phase allows for rapid iteration and optimization of the controller. The controller architecture builds upon a PID baseline, incorporating a deep network correction with a regularization parameter to prevent overfitting to the simulator and ensure better generalization to the real system.

Datasets

The paper utilizes data collected from a physical test lung (IngMar, 2020) connected to a ventilator developed by Princeton University's People's Ventilator Project (PVP). This data is used to train the "real2sim" simulator. The trained simulator is then used to generate artificial data for training the "sim2real" controller. The performance of the learned controller is evaluated on the physical test lung across various lung settings (compliance and resistance) and against ISO-standard waveforms.

Key Insights and Ideas

  • Simulator as a Data Engine: The core innovation is using a learned simulator as a proxy for real-world data collection. This dramatically reduces the cost and time associated with training complex control systems for medical devices.
  • "Real2Sim" then "Sim2Real" Pipeline: This two-stage approach effectively bridges the gap between real-world dynamics and the need for extensive training data, making data-driven control feasible for such systems.
  • Differentiable Simulator for Gradient-Based Optimization: The ability to backpropagate gradients through the simulator allows for direct and efficient optimization of the controller's parameters.
  • PID as a Strong Baseline and Regularizer: Building upon a PID controller and adding a learned correction provides a robust starting point and helps prevent the learned controller from deviating too drastically from known safe operating principles.

Key Results

The paper demonstrates that their learned controller significantly outperforms PID controllers on the physical test lung. Specifically, the learned controller achieves lower L1 deviation from the target pressure waveform, indicating more accurate tracking. This improved performance is observed across various lung settings. Furthermore, the learned controller exhibits greater robustness, maintaining good performance even when tested on lung settings different from those it was primarily trained on. When compared to popular reinforcement learning algorithms like PPO and DQN, the proposed method converges much faster, requiring orders of magnitude fewer samples.

Limitations and Future Work

The authors acknowledge that the examined lung settings are not fully representative of all possible patient conditions (e.g., neonatal, pediatric, or non-sedated patients). They also note that lung characteristics can change dynamically over time due to patient improvement, worsening, or events like coughing. Future work could explore more general forms of ventilation, such as non-invasive or adaptive ventilation. Additionally, the paper suggests that learned controllers could help mitigate issues with less expensive, less consistent valves, potentially reducing costs and expanding access to advanced ventilation technologies.

Summary updated

BibTeX
@misc{suo2021machine,
  author = {Daniel Suo and Cyril Zhang and Paula Gradu and Udaya Ghai and Xinyi Chen and Edgar Minasyan and Naman Agarwal and Karan Singh and Julienne LaChance and Tom Zajdel and Manuel Schottdorf and Daniel Cohen and Elad Hazan},
  title = {{Machine Learning for Mechanical Ventilation Control (Extended Abstract)}},
  year = {2021},
  eprint = {2111.10434},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.10434},
}
Figure