Skip to content
Open access

Determinants and Prediction of In-Hospital Mortality in Pneumonia Patients Using Machine Learning Models

Sep 2026 · Public Health of Indonesia · 0 citations

TL;DR

Machine-learning models, particularly RF, SVM, and NNET, outperformed LR in internal prediction, however, due to the retrospective single-hospital design and lack of external validation, further multicenter validation is needed before routine clinical use.

Abstract

Background: Pneumonia remains a major cause of hospitalization and in-hospital mortality, particularly among older adults and patients with chronic comorbidities. Objectives: To estimate in-hospital mortality among pneumonia inpatients, identify associated demographic and clinical factors, and compare predictive models using routinely collected hospital data. Methods: A retrospective cohort study was conducted using 971 eligible pneumonia inpatient records from Satun Hospital, Thailand, during 2022–2024. Bootstrap resampling was applied as an internal resampling strategy for predictive model development and stability assessment; however, it was not intended to create new independent observations, and the effective sample size remained 971 records. Two predictor specifications were evaluated: a comprehensive set of available demographic and clinical variables and a restricted set of variables identified as statistically significant in logistic regression analysis. Four supervised algorithms logistic regression (LR), random forests (RF), neural networks (NNET), and support vector machines (SVM) were compared using sensitivity, specificity, precision, F1-score, accuracy, and ROC-AUC. Results: The overall in-hospital mortality was 18.6%. Advanced age, referral status, and bacterial pneumonia were key determinants of mortality. Models developed with the comprehensive predictor set consistently outperformed those restricted to statistically significant variables. RF achieved the best discrimination (AUC 0.90–0.92; F1-score >0.72; accuracy >90%), followed by SVM and NNET (AUC >0.85). LR showed limited predictive capacity, with very low sensitivity (<6%) despite moderate specificity (~82%). Conclusion: Machine-learning models, particularly RF, SVM, and NNET, outperformed LR in internal prediction. However, due to the retrospective single-hospital design and lack of external validation, further multicenter validation is needed before routine clinical use.  Keywords: Pneumonia; In-hospital mortality; Machine learning

Read PDF

Similar papers

Open access Sep 2026

Development of an interpretable machine learning model for predicting in-hospital mortality in ICU patients with sepsis: a retrospective cohort study

An interpretable RF-based machine learning model for predicting in-hospital mortality in patients with sepsis was developed and internally validated and showed acceptable discrimination, reasonable calibration, and potential clinical net benefit in internal validation.

Tian-Yu Zhao, Ke-Xin Wen, Xu-Min Han et al. · 0 citations
Sep 2026

Construction and evaluation of a machine-learning-based prediction model for pneumonia in patients with acute leukemia.

An interpretable XGBoost model that accurately predicts pneumonia risk in AL patients based on routine admission data is developed and validated and provides actionable risk stratification to inform preemptive diagnostic and therapeutic strategies.

W. Zhuang, Chen Huang, Xu-Dong Ma et al. · 0 citations
Sep 2026

Machine Learning Model for Predicting Risk Factor Analysis and a Mortality Prediction Model of Acute Cholangitis Complicated with Sepsis.

The internally validated models showed preliminary discriminatory ability for outcome-specific risk stratification for sepsis and mortality and showed preliminary discriminatory ability for outcome-specific risk stratification in acute cholangitis.

Zhu-Lin Li, Lei-Qi Xue, Xiao-Jie Zhu et al. · 0 citations
Open access Sep 2026

Time-Series modeling for predicting mortality risk in intensive care unit patients with pulmonary inflammation

Objective This study aims to evaluate dynamic changes in pneumonia-related mortality risk among ICU patients using time-series models and develop interpretable predictive models for early mortality assessment. Methods Data were obtained from the MIMIC-IV and eICU Collaborative Research Database. The MIMIC-IV cohort was...

Yi-Hai Zhai, Rui-Xin-Xu-Rui-Xin Xu, Hai-Su Lu et al. · 0 citations
Sep 2026

Interpretable Machine Learning for In-Hospital Mortality Prediction in Patients With Diabetes and ARDS: Development and External Validation.

Logistic Regression showed potential as an interpretable early ICU risk-stratification tool and externally validated machine learning models for in-hospital mortality prediction in patients with diabetes and ARDS.

Ya-Lin Dong, Meng-Xue Hou, Qian-Qian Wang et al. · 0 citations
Open access Sep 2026

Performance and Validation of a New Long-Term Mortality Risk Score in Community-Acquired Pneumonia: A Colombian Cohort

The Cox proportional hazards model was developed to predict post-acute mortality between 30 days and 12 months after hospital admission among patients with CAP who survived the first 30 days, and the new score demonstrated weak-to-moderate discriminatory capacity.

G. Guerron-Gomez, Eduardo Tuta-Quintero, A. Bastidas et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.