The model achieves a receiver-operator curve (ROC) area under the curve (AUC) of 0.83, with a sensitivity and specificity of 0.75. An ECG-MFR value below 2 is significantly associated with MACE, with hazard ratios (HRs) of 3.85 and 3.70 in the discovery and validation phases, respectively. The model’s C-statistic is 0.76, with a net reclassification improvement (NRI) of 0.35. Validated in an independent cohort, the ML model using ECG data offers superiorMACE prediction compared to baseline clinical models, highlighting its potential for risk stratification in patients with coronary artery disease (CAD) using the accessible 12-lead ECG.