“Heart Failure Detection and Risk Stratification Using Machine Learning on Routinely Collected EMR Variables” (2026), by Sher Ali et al. Health Professions research paper. Original abstract below, unchanged. A free PDF is available.
Heart Failure Detection and Risk Stratification Using Machine Learning on Routinely Collected EMR Variables
Sher Ali, Omair Faqah, Mary Ann Leavitt et al. · November 10, 2026 · Health Professions
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.
Free PDF DOI: 10.3390/ai7110472
Three real papers a day, always with the original abstract. Free on iPhone.