Related Experiment Video
Updated: Aug 22, 2025

Ex Vivo Porcine Experimental Model for Studying and Teaching Lung Mechanics
Published on: April 19, 2024
Explainable machine learning approach to predict extubation in critically ill ventilated patients: a retrospective
Kai-Chih Pai1,2, Shao-An Su2, Ming-Cheng Chan3,4,5,6
1College of Engineering, Tunghai University, Taichung, Taiwan.
Background:
Weaning from mechanical ventilation (MV) is an essential issue in critically ill patients, and we used an explainable machine learning (ML) approach to establish an extubation prediction model.
Methods:
We enrolled patients who were admitted to intensive care units during 2015-2019 at Taichung Veterans General Hospital, a referral hospital in central Taiwan. We used five ML models, including extreme gradient boosting (XGBoost), categorical boosting (CatBoost), light gradient boosting machine (LightGBM), random forest (RF) and logistic regression (LR), to establish the extubation prediction model, and the feature window as well as prediction window was 48 h and 24 h, respectively. We further employed feature importance, Shapley additive explanations (SHAP) plot, partial dependence plot (PDP) and local interpretable model-agnostic explanations (LIME) for interpretation of the model at the domain, feature, and individual levels.
Results:
We enrolled 5,940 patients and found the accuracy was comparable among XGBoost, LightGBM, CatBoost and RF, with the area under the receiver operating characteristic curve using XGBoost to predict extubation was 0.921. The calibration and decision curve analysis showed well applicability of models. We also used the SHAP summary plot and PDP plot to demonstrate discriminative points of six key features in predicting extubation. Moreover, we employed LIME and SHAP force plots to show predicted probabilities of extubation and the rationale of the prediction at the individual level.
Conclusions:
We developed an extubation prediction model with high accuracy and visualised explanations aligned with clinical workflow, and the model may serve as an autonomous screen tool for timely weaning.
Related Concept Videos
Endotracheal Tube Extubation
Procedure
Extubation removes the endotracheal tube (ETT) from the patient on mechanical ventilation. It requires a well-coordinated, multidisciplinary approach involving physicians, nurses, respiratory therapists, and other healthcare professionals....
Mechanical Ventilation I: Indication and Settings
Cardiopulmonary Resuscitation II: ACLS Airway Management
Endotracheal Intubation II: Nursing Management
1. Nursing Care of Patients Before Intubation
Before the endotracheal intubation procedure, nurses play an essential role in ensuring the process goes smoothly. The nurses must be familiar with intubation...
Mechanical Ventilation II: Invasive Ventilation
Negative-Pressure Ventilators
Negative-pressure ventilators create a vacuum around the chest or body to draw air into the lungs, simulating breathing. This method does not require an...
Cardiopulmonary Resuscitation V: Advanced Airway Management Techniques

