Heart Failure Detection and Risk Stratification Using Machine Learning on Routinely Collected EMR Variables
Sher Ali, Omair Faqah, Mary Ann Leavitt, Waseem Asghar
Florida Atlantic University
Key points
From the paper's conclusion- At 2.5% prevalence, the top 10% of predicted risk contained 74.7% of HF cases.
Abstract
Background: Heart failure (HF) is one of the most prevalent causes of morbidity, mortality, and healthcare expenditures, with approximately 7.7 million adults in the U.S. living with this condition. Early diagnosis of high-risk individuals has been a challenge, as HF-specific symptoms are often ignored or misinterpreted as normal aging, stress, or minor illnesses, leading to delayed diagnosis. This study evaluated whether routinely available electronic medical record (EMR) variables can identify patients with existing HF. Methods: We trained, tested, and evaluated several models, including logistic regression, SVM, KNN, random forest, XGBoost, MLP, and a custom stacked ensemble using stratified 5-fold cross-validation and 70/30 hold-out split for HF identification on EMR data from the All of Us Research Program. This group consisted of 37,070 adults (13,577 HF; 23,493 non-HF). The predictors included readily available demographics, vital signs, laboratory values, common conditions, lifestyle, and a deprivation index. Preprocessing steps included IQR-based winsorization, median imputation, one-hot encoding, and QuantileTransformer. Predicted probabilities were calibrated and adjusted to an assumed 2.5% prevalence. Permutation importance was used to rank features. Results: The stacked model obtained an ROC-AUC of 0.927 (95% CI 0.922–0.932), a PR-AUC of 0.895, and an accuracy of 0.856 in the test set, similar to XGBoost alone (0.929) and above an age + sex + atrial fibrillation baseline (0.808). At 2.5% prevalence, the top 10% of predicted risk contained 74.7% of HF cases. Atrial fibrillation, age, hypertensive disorder, anemia, and obesity were the most influential features. A secondary multiclass experiment (No-HF, HF with reduced ejection fraction, and HF with preserved ejection fraction) showed lower discrimination results (macro-AUC 0.91) with limited recall for HFrEF (0.37) and HFpEF (0.50). Conclusions: Routine EMR variables can identify existing HF with high discrimination. External and prospective validation is needed before clinical use.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Multimodal prediction of incident heart failure using clinical data, polygenic risk scores, and electrocardiogram-based artificial intelligenceEuropean Heart Journal · 2026
- Machine learning–based identification of mortality risk factors in hospitalized heart failure patients: a multicenter real-world studyEuropean Heart Journal · 2026
- CONFIDENT-HFpEF: a machine learning-based risk stratification for mortality and hospitalization using multimodal real-world dataESC Heart Failure · 2026
- "Mortality Prediction in Heart Failure using Explainable AI: Development and Validation of the EXACT-HF Model in a Nationwide Multi-Ethnic Asian Cohort"medRxiv · 2026
- External validation of artificial intelligence–based electrocardiographic models for heart failure detection across diverse clinical settingsEuropean Heart Journal · 2026
- Prediction and personalized interpretation of risk for multiple cancer outcomes in patients with heart failure: a machine learning studyEuropean Heart Journal · 2026