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 Oct 31;15(11):1187.
doi: 10.3390/brainsci15111187.

Early Prediction of Cerebral Vasospasm After Aneurysmal Subarachnoid Hemorrhage Using a Machine Learning Model and Interactive Web Application

Affiliations

Early Prediction of Cerebral Vasospasm After Aneurysmal Subarachnoid Hemorrhage Using a Machine Learning Model and Interactive Web Application

Maria Gollwitzer et al. Brain Sci. .

Abstract

Background: Cerebral vasospasm is a frequent and severe complication after aneurysmal subarachnoid hemorrhage (aSAH), often causing delayed cerebral ischemia (DCI) and poor outcomes. Despite progress in neurocritical care, early vasospasm prediction after aSAH remains challenging due to its multifactorial nature but is essential for timely intervention. Methods: We retrospectively analyzed 503 consecutive patients with spontaneous subarachnoid hemorrhage (SAH) treated between 2013 and 2018. Of these, 345 with angiographically confirmed aSAH were included in the primary analysis, and 158 SAH cases in a sensitivity analysis. We extracted demographic, clinical, and imaging parameters including age, sex, Hunt and Hess grade, Fisher scale, aneurysm and treatment features, external ventricular drainage (EVD), and central nervous system (CNS) infection. Seven supervised machine learning (ML) models, including logistic regression and gradient-boosted trees, were trained using nested cross-validation and evaluated by AUC-ROC, AUC-PR, accuracy, precision, sensitivity, specificity, and F1 score. Results: Over half of aSAH patients developed moderate to severe vasospasm. Independent predictors included younger age, higher Hunt and Hess and Fisher grades, and EVD placement (all p < 0.001). Logistic regression achieved the best discrimination (AUC-ROC 0.723), while tree-based models reached higher sensitivity (0.867) at the expense of specificity. Aneurysmal etiology further increased vasospasm risk (OR 4.72). Conclusions: Routinely available clinical and imaging parameters enable reliable ML-based vasospasm prediction after aSAH. Logistic regression provided the best balance between accuracy and interpretability, while tree-based models optimized sensitivity. This web-based, interpretable ML tool-one of the first using routine clinical data-may support the bedside prediction of vasospasm and requires prospective validation.

Keywords: aneurysmal subarachnoid hemorrhage; cerebral vasospasm; clinical decision support; machine learning; predictive modeling; risk stratification.

PubMed Disclaimer

Conflict of interest statement

The company or this cooperation did not affect the authenticity and objectivity of the experimental results of this work.

Figures

Figure 1
Figure 1
Bar charts illustrating the predictive performance of machine learning models in the aSAH cohort (N = 345) across nine evaluation metrics: (A) AUC-ROC, (B) AUC-PR, (C) AP, (D) PPV, (E) NPV, (F) bACC, (G) TPR, (H) TNR, and (I) F1-score. Each chart shows the mean metric values for all models, enabling visual comparison of their relative performance.
Figure 2
Figure 2
Precision–recall curves for all machine learning models predicting moderate or severe cerebral vasospasm: (a) in patients with aSAH; (b) in the full cohort. Curves were mean-aggregated across all test folds of repeated cross-validation, with the horizontal line indicating baseline precision. For each model, the point corresponding to the default decision threshold is indicated.
Figure 3
Figure 3
Receiver operating characteristic (ROC) curves for all machine learning models: (a) in patients with aSAH; (b) in the full cohort, predicting moderate or severe cerebral vasospasm. Curves were mean-aggregated across all test folds of repeated cross-validation, with the diagonal line representing baseline performance. For each model, the point corresponding to the default decision threshold is indicated.

References

    1. Hoh B.L., Ko N.U., Amin-Hanjani S., Chou S.H.-Y., Cruz-Flores S., Dangayach N.S., Derdeyn C.P., Du R., Hänggi D., Hetts S.W., et al. 2023 Guideline for the Management of Patients with Aneurysmal Subarachnoid Hemorrhage: A Guideline From the American Heart Association/American Stroke Association. Stroke. 2023;54:e314–e370. doi: 10.1161/STR.0000000000000436. - DOI - PubMed
    1. Steiner T., Juvela S., Unterberg A., Jung C., Forsting M., Rinkel G. European Stroke Organization Guidelines for the Management of Intracranial Aneurysms and Subarachnoid Haemorrhage. Cerebrovasc. Dis. 2013;35:93–112. doi: 10.1159/000346087. - DOI - PubMed
    1. Etminan N., Chang H.-S., Hackenberg K., de Rooij N.K., Vergouwen M.D.I., Rinkel G.J.E., Algra A. Worldwide Incidence of Aneurysmal Subarachnoid Hemorrhage According to Region, Time Period, Blood Pressure, and Smoking Prevalence in the Population: A Systematic Review and Meta-Analysis. JAMA Neurol. 2019;76:588–597. doi: 10.1001/jamaneurol.2019.0006. - DOI - PMC - PubMed
    1. GBD 2021 Global Subarachnoid Hemorrhage Risk Factors Collaborators Global, Regional, and National Burden of Nontraumatic Subarachnoid Hemorrhage: The Global Burden of Disease Study 2021. JAMA Neurol. 2025;82:765–787. doi: 10.1001/jamaneurol.2025.1522. - DOI - PMC - PubMed
    1. Thilak S., Brown P., Whitehouse T., Gautam N., Lawrence E., Ahmed Z., Veenith T. Diagnosis and Management of Subarachnoid Haemorrhage. Nat. Commun. 2024;15:1850. doi: 10.1038/s41467-024-46015-2. - DOI - PMC - PubMed

LinkOut - more resources