Predicting Delayed Extubation After General Anesthesia in Postanesthesia Care Unit Patients Using Machine Learning: Model Development Study
Open Access
- 11 November 2025
- journal article
- Published by JMIR Publications Inc. in JMIR Medical Informatics
- Vol. 13 (1) , e72602
Abstract
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, F 1 -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.Keywords
This publication has 41 references indexed in Scilit:
- A novel nomogram for predicting the decision to delayed extubation after thoracoscopic lung cancer surgeryAnnals of Medicine, 2023
- Stroke and breathing2022
- Präoperative Risikoevaluation und Optimierung des PatientenzustandesAINS - Anästhesiologie · Intensivmedizin · Notfallmedizin · Schmerztherapie, 2021
- Delayed recovery of consciousness after general anaesthesiaBJA Education, 2020
- Diaphragm and Lung Ultrasound to Predict Weaning OutcomeChest, 2017
- Factors associated with prolonged ventilation and reintubation in adult spinal deformity surgeryJournal of Clinical Neuroscience, 2017
- Rehabilitation of Swallowing and Cough Functions Following Stroke: An Expiratory Muscle Strength Training TrialArchives of Physical Medicine and Rehabilitation, 2016
- Direct extubation onto high-flow nasal cannulae post-cardiac surgery versus standard treatment in patients with a BMI ≥30: a randomised controlled trialIntensive Care Medicine, 2015
- Pharmacokinetics and drug metabolism in the elderlyDrug Metabolism Reviews, 2009
- Core and skin surface temperature course after normothermic and hypothermic cardiopulmonary bypass and its impact on extubation time2006