Related Experiment Video
Updated: Jan 11, 2026

A Structured Approach to Extubation in Mechanically Ventilated Rats
Published on: July 18, 2025
Predicting Delayed Extubation After General Anesthesia in Postanesthesia Care Unit Patients Using Machine Learning:
Jianwei Luo1,2, Shaoman Lin1, Liman Wang1
1Department of Anesthesiology, Sun Yat-sen Memorial Hospital, Sun Yat-sen University, 107 Yanjiang West Road, Guangzhou, 510120, China, 86 020-81332199.
Background:
Delayed extubation after general anesthesia increases complications and can lead to longer hospital stays and higher mortality. Current risk assessments often rely on subjective judgment or simple tools, whereas machine learning offers potential for real-time evaluation, though research is limited and typically uses single-algorithm models.
Objective:
The aims of this study were to identify risk factors for delayed extubation after general anesthesia in the sample and to construct a risk prediction model for delayed extubation in this population.
Methods:
Data from 4779 patients admitted to the postanesthesia care unit between September 2023 and May 2024 were used to develop prediction models for delayed extubation using k-nearest neighbor, decision tree, extreme gradient boosting, random forest, a light gradient boosting machine, and an artificial neural network. Model performance was assessed by calculating the area under the receiver operating characteristic curve, sensitivity, specificity, accuracy, F1-score, and Brier score. Calibration performance was evaluated using calibration curves generated with 100-bin quantile calibration and Loess smoothing to provide bias-corrected and smoothed visual assessment. Additionally, the Hosmer-Lemeshow goodness-of-fit test was performed to quantitatively evaluate calibration, with P values >.05 indicating good calibration.
Results:
Among the 6 models evaluated, the extreme gradient boosting model demonstrated the best performance, with an area under the receiver operating characteristic curve of 0.750 (95% CI 0.703-0.796), a sensitivity of 0.734 (95% CI 0.635-0.827), and a specificity of 0.647 (95% CI 0.623-0.673). The model calibration was acceptable, with a Brier score of 0.0505 and a nonsignificant Hosmer-Lemeshow goodness-of-fit test (χ²6=7.3; P=.287), indicating good calibration. Shapley additive explanations were used to rank feature importance.
Conclusions:
These machine learning models enable early identification of delayed extubation risk, supporting personalized clinical decisions and optimizing postanesthesia care unit resource allocation.
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....
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...
Stages of General Anesthesia
