A SHAP-based machine learning model for predicting prolonged hospitalization in AECOPD: a single-center study from China

Prolonged hospitalization in acute exacerbations of chronic obstructive pulmonary disease (AECOPD) is associated with adverse clinical and healthcare system outcomes. However, few studies have applied machine learning methods to predict this outcome. This study aimed to develop and internally evaluate an interpretable machine learning model for estimating the risk of prolonged length of hospital stay (LOHS ≥ 14 days) in hospitalized AECOPD patients using routinely available clinical data. We retrospectively analyzed 1,286 patients hospitalized for AECOPD between 2021 and 2023. Prolonged hospitalization was defined as LOHS ≥ 14 days. Twelve machine learning algorithms were developed and evaluated using selected clinical variables. Model performance was assessed using the area under the receiver operating characteristic curve (AUC), sensitivity, specificity, calibration plots, Brier score, and decision curve analysis (DCA). SHapley Additive exPlanations (SHAP) was applied to improve model interpretability. Among the evaluated models, extreme gradient boosting (xgb) showed the most favorable overall performance in terms of AUC, Brier score, calibration, and DCA, achieving an AUC of 0.754 (95% CI: 0.713–0.799), specificity of 88.1%, and the lowest Brier score (0.110) in the testing set, although its sensitivity was only 31.0% and its F1 score was limited. SHAP analysis identified CRP, RDW, NLR, PLR, MLR, PaCO 2 , proBNP, albumin, and WBC as important contributors to model predictions. The xgb model demonstrated moderate discriminative performance for predicting prolonged hospitalization in patients hospitalized with AECOPD and showed good interpretability through SHAP analysis. These findings may provide auxiliary information for risk stratification in hospitalized patients with AECOPD, although further multicenter external validation is required before clinical application.

Authors

Institutions

Publication Details

Journal
European journal of medical research
Published
2026-09-25
DOI
https://doi.org/10.1186/s40001-026-05220-z
Primary Topic
Chronic Obstructive Pulmonary Disease (COPD) Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

A SHAP-based machine learning model for predicting prolonged hospitalization in AECOPD: a single-center study from China

Rui Bai, Li He, Cong Zhang, He Pan
European journal of medical research
Chronic Obstructive Pulmonary Disease (COPD) Research
article

A SHAP-based machine learning model for predicting prolonged hospitalization in AECOPD: a single-center study from China

Rui Bai, Li He, Cong Zhang, He Pan
article en

Abstract

Prolonged hospitalization in acute exacerbations of chronic obstructive pulmonary disease (AECOPD) is associated with adverse clinical and healthcare system outcomes. However, few studies have applied machine learning methods to predict this outcome. This study aimed to develop and internally evaluate an interpretable machine learning model for estimating the risk of prolonged length of hospital stay (LOHS ≥ 14 days) in hospitalized AECOPD patients using routinely available clinical data. We retrospectively analyzed 1,286 patients hospitalized for AECOPD between 2021 and 2023. Prolonged hospitalization was defined as LOHS ≥ 14 days. Twelve machine learning algorithms were developed and evaluated using selected clinical variables. Model performance was assessed using the area under the receiver operating characteristic curve (AUC), sensitivity, specificity, calibration plots, Brier score, and decision curve analysis (DCA). SHapley Additive exPlanations (SHAP) was applied to improve model interpretability. Among the evaluated models, extreme gradient boosting (xgb) showed the most favorable overall performance in terms of AUC, Brier score, calibration, and DCA, achieving an AUC of 0.754 (95% CI: 0.713–0.799), specificity of 88.1%, and the lowest Brier score (0.110) in the testing set, although its sensitivity was only 31.0% and its F1 score was limited. SHAP analysis identified CRP, RDW, NLR, PLR, MLR, PaCO 2 , proBNP, albumin, and WBC as important contributors to model predictions. The xgb model demonstrated moderate discriminative performance for predicting prolonged hospitalization in patients hospitalized with AECOPD and showed good interpretability through SHAP analysis. These findings may provide auxiliary information for risk stratification in hospitalized patients with AECOPD, although further multicenter external validation is required before clinical application.

European journal of medical research
Yangtze University (CN), Wuhan University (CN), Zhongnan Hospital of Wuhan University (CN)
Reduced inequalities
Openalex Percentile: Top 12%
Chronic Obstructive Pulmonary Disease (COPD) Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.