Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Feb;34(2):108200.
doi: 10.1016/j.jstrokecerebrovasdis.2024.108200. Epub 2024 Dec 12.

Prediction of stroke-associated hospital-acquired pneumonia: Machine learning approach

Affiliations
Free article

Prediction of stroke-associated hospital-acquired pneumonia: Machine learning approach

Ahmad A Abujaber et al. J Stroke Cerebrovasc Dis. 2025 Feb.
Free article

Abstract

Background: Stroke-associated Hospital Acquired Pneumonia (HAP) significantly impacts patient outcomes. This study explores the utility of machine learning models in predicting HAP in stroke patients, leveraging national registry data and SHapley Additive exPlanations (SHAP) analysis to identify key predictive factors.

Methods: We collected data from a national stroke registry covering January 2014 to July 2022, including 9,840 patients diagnosed with ischemic and hemorrhagic strokes. Five machine learning models were trained and evaluated: XGBoost, Random Forest, Support Vector Machine (SVM), Logistic Regression, and Artificial Neural Network (ANN). Performance was assessed using accuracy, precision, recall, F1-score, AUC, log loss, and Brier score. SHAP analysis was conducted to interpret model outputs.

Results: The ANN model demonstrated superior performance, with an F1-score of 0.86 and an AUC of 0.94. SHAP analysis identified key predictors: stroke severity, admission location, Glasgow Coma score (GCS), systolic and diastolic blood pressure at admission, ethnicity, stroke type, mode of arrival, and age. Patients with higher stroke severity, dysphagia, and those arriving by ambulance were at increased risk for HAP.

Conclusion: This study enhances our understanding of early predictive factors for HAP in stroke patients and underlines the potential of machine learning to improve clinical decision-making and personalized care.

Keywords: Hospital-acquired pneumonia; Machine learning; Personalized stroke care; Stroke; Stroke outcomes.

PubMed Disclaimer

Conflict of interest statement

Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

MeSH terms

LinkOut - more resources