Development and Validation of Machine Learning Algorithms to Predict 1-Year Ischemic Stroke and Bleeding Events in Patients with Atrial Fibrillation and Cancer

Cardiovasc Toxicol. 2024 Apr;24(4):365-374. doi: 10.1007/s12012-024-09843-8. Epub 2024 Mar 18.

Abstract

In this study, we leveraged machine learning (ML) approach to develop and validate new assessment tools for predicting stroke and bleeding among patients with atrial fibrillation (AFib) and cancer. We conducted a retrospective cohort study including patients who were newly diagnosed with AFib with a record of cancer from the 2012-2018 Surveillance, Epidemiology, and End Results (SEER)-Medicare database. The ML algorithms were developed and validated separately for each outcome by fitting elastic net, random forest (RF), extreme gradient boosting (XGBoost), support vector machine (SVM), and neural network models with tenfold cross-validation (train:test = 7:3). We obtained area under the curve (AUC), sensitivity, specificity, and F2 score as performance metrics. Model calibration was assessed using Brier score. In sensitivity analysis, we resampled data using Synthetic Minority Oversampling Technique (SMOTE). Among 18,388 patients with AFib and cancer, 523 (2.84%) had ischemic stroke and 221 (1.20%) had major bleeding within one year after AFib diagnosis. In prediction of ischemic stroke, RF significantly outperformed other ML models [AUC (0.916, 95% CI 0.887-0.945), sensitivity 0.868, specificity 0.801, F2 score 0.375, Brier score = 0.035]. However, the performance of ML algorithms in prediction of major bleeding was low with highest AUC achieved by RF (0.623, 95% CI 0.554-0.692). RF models performed better than CHA2DS2-VASc and HAS-BLED scores. SMOTE did not improve the performance of the ML algorithms. Our study demonstrated a promising application of ML in stroke prediction among patients with AFib and cancer. This tool may be leveraged in assisting clinicians to identify patients at high risk of stroke and optimize treatment decisions.

Keywords: AFib; Bleeding; Cancer; Machine learning; Prediction; Stroke.

MeSH terms

  • Aged
  • Algorithms
  • Atrial Fibrillation* / diagnosis
  • Atrial Fibrillation* / epidemiology
  • Hemorrhage / chemically induced
  • Hemorrhage / diagnosis
  • Hemorrhage / epidemiology
  • Humans
  • Ischemic Stroke* / diagnosis
  • Ischemic Stroke* / epidemiology
  • Machine Learning
  • Medicare
  • Neoplasms* / complications
  • Neoplasms* / diagnosis
  • Neoplasms* / epidemiology
  • Retrospective Studies
  • Risk Assessment
  • Stroke* / diagnosis
  • Stroke* / epidemiology
  • United States