Key result
ECG-based random forest model predicts heart failure risk with ~97% discrimination.
Why the study?
Early identification of patients at risk for heart failure remains challenging due to complex, multivariate clinical relationships.
Does a random forest machine learning model using ECG features accurately predict heart failure risk?
Cohort (n=1,061)
Does a random forest machine learning model using ECG features accurately predict heart failure risk?
Effect estimate: AUC 0.969
A random forest machine learning model utilizing ECG features and serum cholesterol demonstrated high accuracy and discrimination for predicting heart failure risk.
ECG-ML models may aid HF risk stratification in observational cohorts; hypothesis-generating and requires prospective validation.
BACKGROUND: Heart failure (HF) is a major driver of global morbidity and mortality. Early identification of patients at risk remains challenging due to complex, multivariate clinical relationships. Machine learning (ML) methods offer promise for more accurate prognostication. OBJECTIVE: We evaluated the predictive value of electrocardiogram (ECG)-derived features and developed an ML model to stratify HF risk. METHODS: We analyzed a public cohort of 1061 patients, of whom 589 (55.5%) developed HF. Records were randomly divided into training (70%, n = 742) and test (30%, n = 319) sets. After preprocessing, we trained a random forest (RF) classifier. Performance on the test set was assessed via accuracy, sensitivity, specificity, F1 score, and area under the receiver operating characteristic curve (AUC). Feature selection employed Gini importance and the Boruta algorithm, while SHAP values provided model interpretability. RESULTS: The RF model achieved an AUC of 0.969, with 91.8% accuracy, 93.8% sensitivity, 89.4% specificity, and a 92.7% F1-score. The top predictors included ST depression (Oldpeak), maximum heart rate (MaxHR), ST-segment slope, and serum cholesterol. Confusion matrix analysis confirmed robust discrimination between HF and non-HF cases. SHAP interpretation reinforced the dominant influence of ECG-related indices and cholesterol on individual risk estimates. CONCLUSION: An RF model leveraging ECG features demonstrated excellent performance for HF risk prediction and highlighted key physiologic markers. Future work should integrate comorbidity profiles and detailed biochemical data to further enhance clinical applicability.
No takes yet. Share an insight, caveat, or question.
Liu et al. (2025) conducted a cohort in Heart failure (n=1,061). Random forest machine learning model using ECG features was evaluated on Heart failure risk prediction (AUC 0.969). A random forest machine learning model leveraging ECG features predicted heart failure risk with an AUC of 0.969 and 91.8% accuracy.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: