Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2026 Oct 13.
Published in final edited form as: J Am Coll Cardiol. 2026 May 13;88(2):205–223. doi: 10.1016/j.jacc.2026.03.084

ECG Signatures and Long-Term Ischemic Stroke Risk: A Deep Learning Analysis of 200,000 Patients

Rahul Mahajan 1,2,*, Danielle F Pace 3,*, Samuel F Friedman 3, Shinwan Kany 1,4,5, Valentina D’Souza 3, Athar Roshandelpoor 6, Tamara N Kimball 2, Savvina Prapiadou 2, Benjamin YQ Tan 7, Jonathan W Waks 6, Jennifer E Ho 6, Patrick T Ellinor 1,8,9, Mahnaz Maddah 3, Christopher D Anderson 1,2,†, Shaan Khurshid 1,8,9,†
PMCID: PMC13656834  NIHMSID: NIHMS2211645  PMID: 42126358

Abstract

Background:

Scalable risk stratification for ischemic stroke remains an unmet need.

Objectives:

To assess whether deep learning of 12-lead electrocardiograms (ECGs) can estimate longitudinal ischemic stroke risk and quantify the extent to which risk signals reflect plausible mechanisms (e.g., atrial cardiopathy).

Methods:

We trained a convolutional neural network to estimate the 10-year risk of incident ischemic stroke using 12-lead ECG among patients receiving longitudinal care at Massachusetts General Hospital (MGH). Neural network-derived stroke probabilities, age, and sex were integrated into a Cox proportional hazards model (“ECG2Stroke”). Within an MGH test set (“MGH Test”), and independent samples from Brigham and Women’s Hospital (BWH) and Beth Israel Deaconess Medical Center (BIDMC), we assessed model discrimination (area under the receiver operating characteristic curve, AUROC) and calibration (integrated calibration index, ICI). ECG2Stroke was compared to the revised Framingham Stroke Risk Profile (FSRP). Saliency mapping, associations with clinical factors and structured ECG features, and performance across stroke subtypes were assessed.

Results:

ECG2Stroke was developed in 101,496 individuals from MGH (age 57±16 years, 48% women), and evaluated in MGH Test (n=4,771, age 57±16 years, 49% women), BWH (n=68,884, 57±16 years, 55% women), and BIDMC (n=29,882, 56±17 years, 54% women). At 10 years, there were 346 stroke events in MGH Test, 3,209 in BWH, and 1,236 in BIDMC. ECG2Stroke demonstrated moderate discrimination of incident stroke (10-year AUROC: MGH test, 0.795; BWH test, 0.774; BIDMC test, 0.772) and low calibration error (ICI MGH test, 0.030; BWH test, 0.005; BIDMC test, 0.026). In patients with available data, 10-year AUROC for ECG2Stroke was similar to FSRP (MGH/BWH test: ECG2Stroke, 0.791; FSRP, 0.779; BIDMC test: ECG2Stroke, 0.745; FSRP, 0.728). Stratification persisted across subgroups, including patients with and without atrial fibrillation. Saliency maps highlighted the ECG P-wave, and risk estimates correlated with structured P-wave indices. ECG2Stroke was strongly associated with cardioembolic stroke (cause-specific hazard ratio 2.17 per 1-SD of logit-transformed probability [1.64–2.87]) but not non-cardioembolic stroke.

Conclusion:

ECG-based AI can predict 10-year ischemic stroke with comparable performance to a validated clinical score, possibly by encoding markers of abnormal atrial substrate linked to cardioembolism. AI-enabled ECG analysis may enable efficient prioritization for stroke prevention.

Central Illustration.

Summary of ECG2Stroke

Figure summarizes study concept and findings. We developed and validated ECG2Stroke, an artificial intelligence (AI)-enabled model that predicts 10-year risk of ischemic stroke. Calibration and longitudinal stratification of stroke are shown on the bottom left. Saliency mapping (right) and correlation analyses demonstrate that ECG2Stroke appears to encode markers of atrial cardiopathy. In the saliency maps, darker shades of blue denote areas of the ECG waveform most influential on ECG2Stroke predictions.

graphic file with name nihms-2211645-f0009.webp

Introduction

Stroke remains a leading cause of death and disability worldwide1. While age-adjusted rates of stroke have declined, the absolute number of strokes occurring annually continues to increase. Recurrent strokes account for only a quarter of stroke events, and ischemic stroke is the most common type, highlighting a gap in primary prevention2.

It is estimated that more than half of stroke events could be prevented by implementing established preventive measures (e.g., atherosclerotic risk factor modification)2,3. Although additional ischemic stroke risk factors such as atrial fibrillation (AF) or carotid artery stenosis are actionable in high-risk groups once detected, there are currently no clearly effective methods for mass screening3–6. Thus, population-level approaches to accurately identify individuals at elevated risk for stroke who should be prioritized for intensive prevention remain a critical unmet need.

Clinical stroke risk prediction tools such as the Framingham Stroke Risk Profile7 (FSRP) are capable of stratifying 10-year risk of stroke, but such models are limited by the need for multiple clinical variables and requirement for cumbersome calculation, limiting widespread use. In contrast, the 12-lead electrocardiogram (ECG) represents a low-cost, ubiquitous diagnostic test well-suited for population-level risk estimation. Although various ECG characteristics have been linked to stroke risk, existing efforts have largely relied on overtly abnormal ECG findings, specific waveform parameters not routinely quantified, or prediction of known intermediary risk factors such as AF8–11. In contrast, we have previously leveraged artificial intelligence (AI)-enabled analysis of raw ECG waveform data to directly predict future incidence of important cardiovascular outcomes12–14, Whether such an approach may accurately estimate risk of future stroke remains unknown.

Further, AI-enabled ECG models have recently shown overlapping associations among some left ventricular and left-sided valvular phenotypes; the extent to which such overlap reflects a general tendency to encode overall cardiovascular risk remains unknown15. In this context, systematically characterizing electrocardiographic and clinical correlates of an ECG-AI model for stroke may provide insight into the extent to which ECG-based AI models may encode risk signals specific to underlying physiologic substrate (e.g., atrial cardiopathy), which may in turn drive associations between ECG waveform analysis and future ischemic stroke.

In this study, we develop ECG2Stroke, a model that leverages deep learning neural networks to predict 10-year ischemic stroke risk directly from baseline 12-lead ECGs obtained in the context of routine ambulatory care from >100,000 patients and validate the model in multiple independent datasets totaling >97,000 patients. We benchmark its performance against the FSRP and systematically examine its clinical and electrocardiographic associations to interrogate potential mechanisms linking ECGs to ischemic stroke.

Methods:

Use of patient data for this study was approved by MGB and BIDMC institutional review boards.

Study Population

ECG2Stroke was developed using data from 2 previously described patient cohorts, the Community Care Cohort Project (C3PO)16 and the Enterprise Warehouse of Cardiology (EWOC)17, representing approximately 520,000 patients receiving longitudinal primary care and 99,000 patients receiving longitudinal cardiology care, respectively, within the Mass General Brigham (MGB) multi-institutional healthcare system in the New England region of the US. Briefly, patients aged 18 to 90 years receiving longitudinal primary or ambulatory cardiology care within one of seven MGB network hospitals sharing a unified electronic health record (EHR) between 2000 and 2019 were included. As described in their original publications, patients needed to have at least 2 qualifying visits between 1–3 years apart within primary care (C3PO) or ambulatory cardiology (EWOC) clinics for inclusion, resulting in a longitudinal data structure previously shown to demonstrate favorable data density with less selection bias compared to traditional EHR sampling methods.

The deep learning neural network was trained on patients with ≥1 ECG performed at Massachusetts General Hospital (MGH) within 3 years prior to the start of cohort follow-up (defined as the second of the first qualifying pair of visits required for C3PO or EWOC inclusion). A validation set of patients from MGH without prior history of stroke was used for hyperparameter tuning and model selection. A neural network-derived model was then tested on independent test sets of stroke-free individuals with eligible ECGs from MGH (internal test set) and Brigham and Women’s Hospital (BWH, external test set). Patients with ECGs from both hospitals (4,600 individuals) retained only their MGH-performed ECGs and were only included in the MGH cohort, without inclusion in the BWH cohort. There was therefore no overlap at the individual or ECG level between the training, validation, or test sets. We performed additional external validation among patients receiving longitudinal primary care at Beth Israel Deaconess Medical Center, an independent healthcare system, and with no history of stroke (BIDMC, external test set) (Figure 1).

Figure 1.

Figure 1.

Study flow diagram.

Depicted is an overview of the study samples, including relevant exclusions. The asterisk denotes that the MGH development set includes 7,648 patients with prevalent strokes or censoring events occurring prior to study start of follow-up that were included in ECG deep learning model training but excluded from Cox model training.

Although all located within the larger Boston region, MGH, BWH, and BIDMC have distinct patterns of community-based and outside referrals, case mix, and health care utilization as outlined in the 2022 Massachusetts Center for Health Information and Analysis report18. BIDMC is further distinct as part of an entirely separate health system. For example, top community discharges in 2020 were as follows: BWH (Jamaica Plain, Brookline, Roslindale); MGH (Charlestown, Chelsea, Revere); BIDMC (Brookline, Jamaica Plain, Roxbury). Similarly, top discharge diagnoses by diagnosis-related group were as follows: BWH (craniotomy, cardiovascular procedures without acute myocardial infarction, major small and large bowel procedures), MGH (moderately extensive procedure unrelated to principal diagnosis, craniotomy, major respiratory infection & inflammation, percutaneous cardiovascular procedures without acute myocardial infarction); BIDMC (normal neonate birth, vaginal delivery, cesarean, and cardiovascular procedures without acute myocardial infarction).

ECG Acquisition and Neural Network Training

The input to the deep learning neural network is a single 12-lead ECG, representing a 10-second time-series sampled at 500 Hz for each of the 12 leads. To create a uniform input tensor of dimension 5000 × 12, ECGs with lower sampling rates (a minority) were linearly up-sampled to 500 Hz, and those with shorter durations were zero-padded to 5000 measurements. Raw waveform data and tabular metadata (including date, time, machine type, sampling frequency, and automated and physician reads) were extracted from all ECGs. All ECGs had been performed for clinical purposes. No ECGs were excluded from the training or test sets on the basis of particular clinical findings.

The neural network used a loss function that accounted for both time-to-outcome (i.e., ischemic stroke) and missingness due to censoring (defined as the earliest of death or last encounter). This loss function was previously used to predict 5-year AF-free survival12. Similar to prior work, we also trained the network to perform related secondary tasks (prediction of 10-year overall survival, age estimation, sex classification, and identification of AF on the ECG). This multitask approach improved stroke prediction performance compared with other model-building approaches considered during model derivation (Table S1). Further details are supplied in the Supplemental Methods.

The neural network was trained using all 12-lead ECGs in the MGH training dataset performed within 3 years before the start of follow-up. Since ECGs from individuals with prevalent disease are likely to contain rich training signals, patients with prior stroke were included in the training set, consistent with prior studies12. However, individuals with prevalent stroke were excluded from all validation and test sets.

The neural network is a deep, 1-dimensional convolutional network. The architecture is summarized in Figure S1. Briefly, the network consists of multiple densely connected convolutional blocks followed by several fully-connected layers. These layers combine information from the entire 12-lead ECG to produce a longitudinal estimate of stroke-free survival. Learning curves are shown in Figure S2, and the performance of the neural network on secondary tasks is shown in Figure S3.

Clinical Factors

Baseline age, sex, and race were obtained from the EHR. Race/Ethnicity was classified as White, Black, Hispanic/Latino, Asian or Pacific Islander, Other/Unknown. Tobacco use was categorized as present or absent. The presence of hypertension, hyperlipidemia, diabetes, chronic kidney disease, heart failure, valvular disease, and myocardial infarction were ascertained using previously published sets of diagnostic codes and medications (eg, antiglycemics), having a reported positive predictive value (PPV) ≥85% in MGH and BWH19,20. AF was defined using a previously published algorithm comprising diagnostic and procedural codes and ECG reports (PPV 92%)21. Antihypertensive use was determined using medication lists19. The presence of obesity was similarly defined using diagnosis codes. Use of oral anticoagulants and statin drugs was determined using medication lists (for oral anticoagulants, outpatient only). Blood pressure values, LDL, lab values were obtained from the EHR. Analogous definitions were applied in BIDMC. Disease definitions are listed in detail in Table S2.

Outcomes

The primary outcome was incident ischemic stroke, defined using previously published diagnosis code sets having PPV ≥85% in MGH and BWH and strong pairwise agreement between manual reviewers (Cohen’s κ = 0.8), modified to remove codes specific for transient ischemic attack (TIA)19. The entirety of the EHR (regardless of treating site) was used for outcome ascertainment. A similar definition was employed in BIDMC (Table S2).

Statistical Analysis

Our primary objective was prediction of incident ischemic stroke at 10 years in the MGH, BWH, and BI test sets. Shorter time horizons at 1 and 5 years were also assessed. During model evaluation, patients with stroke prevalent at the start of follow-up were excluded and only the most recent ECG before start of follow-up was used for each individual. To avoid misclassification of prevalent strokes as incident due to delayed coding, a 30-day blanking period was applied such that person-time began 30 days after the start of cohort follow-up. Events occurring during the 30-day blanking period were considered prevalent. To correct for miscalibration introduced by inclusion of patients with prevalent stroke in the neural network training process, we fit Cox proportional hazards models including neural network-predicted event probabilities alone or with age and sex as covariates for 1, 5, and 10-year horizons in the subset of the combined training and validation sets (MGH development set) with prevalent stroke excluded. Predicted event probabilities were logit-transformed to achieve an approximately linear relationship with the log hazard22. Given a low death rate when considering person-time prior to stroke or within 365 days of the last encounter (8.8% MGH development set), death was treated as a censoring event. Sensitivity analyses were subsequently performed using Fine-Gray models and the cumulative incidence function with death as a competing risk. Given our intent to assess the feasibility of population-level stroke risk stratification using a single 12-lead ECG, and the universal availability of age and sex in this context, the Cox model combining neural network-predicted stroke probabilities with age and sex was selected as our primary model, hereafter referred to as ECG2Stroke. A statistically significant interaction was observed during training between neural network predicted probabilities and male sex (hazard ratio [HR] 0.91, [95% CI, 0.85–0.98]), but the interaction was not included in the final model given marginal improvement in Akaike Information Criterion. There was no significant interaction with age. ECG2Stroke model parameters are provided in Table S3A. Although used as a secondary training target for the neural network, presence of AF in the diagnostic statement of the qualifying ECG as an additional covariate was not a significant predictor and caused minimal change in remaining ECG2Stroke regression coefficients, and therefore was not included in the final model.

To compare the performance of ECG2Stroke to the revised FSRP7, we further restricted the MGH development set to patients with complete data (22%) for calculation of the FSRP and fit analogous Cox proportional hazard models, but including as covariates predicted event probabilities from ECG2Stroke alone, FSRP alone, and both ECG2Stroke and FSRP. Additional baseline models based on ECG alone or age and sex were also fit in the same population. No significant interaction was observed between neural network probabilities with either age, sex, or FSRP. Model fit parameters for ECG2Stroke in the FSRP complete data subset are provided in Table S3B.

Discrimination and calibration were evaluated in the test sets by calculating the time-dependent area under receiver operating characteristic curve (AUROC)23, time-dependent average precision (AP)24, and integrated calibration index25 (ICI) fit using restricted cubic splines. AUROC and AP estimates were calculated using inverse probability of censoring weights. AP was normalized to the baseline event rate (AP of a non-informative model) and reported as nAP. P-values for AUROC and AP comparisons and confidence intervals were obtained by bootstrap. The same evaluation metrics were assessed in subgroups of age, sex, race, and clinical risk factors in external test sets (BWH and BIDMC test sets). Incremental model contribution was quantified using variance decomposition in Cox models, reporting partial R2 derived from likelihood-ratio testing to estimate the proportion of explained variation26. We explored stroke-free survival in high and low risk strata predicted by ECG2Stroke vs FSRP models using risk thresholds (low risk: predicted 10-year risk <5%; high risk: >20%) derived from standard atherosclerotic cardiovascular disease (ASCVD) prevention guidelines27. Survival differences were compared using log-rank testing. Reclassification at 10-year horizon was quantified with time-dependent net reclassification improvement (NRI) using the inverse probability weighting method28 and confidence intervals obtained by bootstrap. Decision curves were constructed across a range (0.01–0.45) of predicted 10-year risk thresholds.29 We evaluated the decision curves at selected thresholds of 10-year risk (0.05,0.075,0.1 0.2) to report net benefit and net interventions avoided and quantified the corresponding classification performance (sensitivity, specificity, positive predictive value, and negative predictive value) implied by the decision rules. We computed the linear predictors of ECG2Stroke and FSRP-derived Cox in the test sets and assessed Pearson’s correlation.

Secondary analyses and saliency

Additional analyses examined the performance of ECG2Stroke across strata of prevalent AF (MGH, BWH, and BIDMC test sets) and baseline oral anticoagulation (OAC) use (MGH and BWH only). Among patients with prevalent AF, stroke-free survival and reclassification was examined for high- and low-risk strata defined using guideline-based thresholds according to the CHA2DS2-VASc30 score (Low risk: <1 for males and <2 for females, High risk: >1 for males and >2 for females) versus high- and low-risk strata defined using the ECG2Stroke thresholds listed above. To ensure adequate sample size, the MGH and BWH test sets were combined into the MGH/BWH test set for analyses restricted to specific subgroups such as the FSRP complete data subset or prevalent AF subset. Decision curves for CHA2DS2-VASc mapped integer scores to corresponding Kaplan-Meier estimates. We further modeled AF status as a time-dependent variable alone or jointly with ECG2Stroke to assess marginal contributions to risk prediction by inspecting their interaction, coefficient attenuation, and partial R2.

To assess electrocardiographic features driving the neural network’s predictions, we plotted median ECG waveforms and produced saliency maps using a random sample of 7,080 individuals from the BWH test set. These saliency maps depict areas of the ECG where changes in voltage had the greatest influence on the model’s predicted risk estimates. Further details of saliency map and median waveform analyses are described in the Supplemental Methods. To further characterize the neural network, we calculated Pearson correlation of its output probabilities (logit transformed) to known P-wave indices (e.g., PR interval, P-wave duration).

We assessed ECG2Stroke and FSRP outcome specificity by examining discrimination (AUROC) and calibration (ICI) performance for incident heart failure (HF), myocardial infarction (MI), and death across all test sets. In a small subset of patients with incident strokes with manual physician-adjudicated stroke subtype information, cause-specific Cox models were used to estimate associations with cardioembolic vs non-cardioembolic stroke subtypes, with heterogeneity assessed using the Lunn-McNeil method31. Further details of the stroke subtyping labels are provided in the Supplemental Methods. We characterized ECG2Stroke risk patterns by assessing associations between its output probabilities (logit transformed) and the presence or absence of baseline clinical stroke risk factors using age- and sex-adjusted linear regression models. Analyses were performed using Python v3.1332 and R v4.533.

Data Sharing

The ECG2Stroke AI model and weights are available under an academic use license at https://github.com/broadinstitute/ml4h/tree/master/model_zoo/ECG2Stroke.

Results:

Training and Validation Samples

A total of 107,513 patients from MGH were further subdivided into training (n=91,306) and validation (n=10,190) sets used for model development, as well as an internal test (n=4,771) set. The training set included 299,640 12-lead ECGs (median 6 ECGs per individual). The MGH training and validation sets were collapsed into a single MGH development set (n=101,496) for parameterization of Cox models. Separate external test sets were constructed from patients with ECGs performed at BWH (n=68,884) and BIDMC (n=29,882). Figure 1 depicts a study flow diagram. The proportion of patients with an incident stroke event within 10 years was 4.5% in the MGH development set over median follow-up duration 7.0 years, 7.3% over 7.5 years in the MGH internal test set, 4.7% over 7.0 years in the BWH external test set, and 4.1% over 10.8 years in the BIDMC external test set. Baseline sample characteristics are summarized in Table 1.

Table 1.

Baseline Characteristics

MGH dev. set* MGH test set BWH test set BIDMC test set
N 101,496 4,771 68,884 29,882
Age (y) 57.1 ± 16.4 57.0 ± 16.1 56.6 ± 15.8 56.3 ± 16.6
Female 48925 (48.2%) 2342 (49.1%) 37914 (55.0%) 16252 (54.4%)
Race/ethnicity
 White 82066 (80.9%) 3873 (81.2%) 50207 (72.9%) 15795 (52.9%)
 Black 5534 (5.5%) 270 (5.7%) 7541 (10.9%) 4705 (15.7%)
 Hispanic or Latino 4036 (4.0%) 182 (3.8%) 4446 (6.5%) 1733 (5.8%)
 Asian or Pacific Islander 3792 (3.7%) 152 (3.2%) 1668 (2.4%) 857 (2.9%)
 Other/Unknown 6068 (6.0%) 294 (6.2%) 5022 (7.3%) 6792 (22.7%)
Current Smoker 5501 (5.4%) 262 (5.5%) 5560 (8.1%) 1899 (6.4%)
Diabetes 19194 (18.9%) 876 (18.4%) 12449 (18.1%) 8453 (28.3%)
Hyperlipidemia 58896 (58.0%) 2775 (58.2%) 31473 (45.7%) 17356 (58.1%)
Chronic Kidney Disease 9896 (9.8%) 443 (9.3%) 6568 (9.5%) 1983 (6.6%)
Hypertension 73133 (72.1%) 3411 (71.5%) 49496 (71.9%) 17927 (60.0%)
Systolic blood pressure (mm Hg) 126.9 ± 17.7 126.9 ± 17.9 127.9 ± 17.9 127.5 ± 17.8
Antihypertensive medication 58505 (57.6%) 2731 (57.2%) 43852 (63.7%) 11308 (37.8%)
Atrial Fibrillation 16821 (16.6%) 715 (15.0%) 11060 (16.1%) 2817 (9.4%)
Heart Failure 16894 (16.6%) 738 (15.5%) 10597 (15.4%) 3103 (10.4%)
Valvular Disease 9671 (9.5%) 400 (8.4%) 7117 (10.3%) 927 (3.1%)
Vascular disease 42510 (41.9%) 1853 (38.8%) 26123 (37.9%) 8490 (28.4%)
Prevalent stroke 5464 (5.4%) 0 (0.0%) 0 (0.0%) 0 (0.0%)
Incident stroke† 4591 (4.5%) 346 (7.3%) 3209 (4.7%) 1236 (4.1%)
Followup duration (y) 7.0 (2.9–12.9) 7.5 (3.2–13.2) 7.0 (2.9–12.0) 10.8 (5.2–15.3)

Values are n (%), mean ± SD, or median (IQR)

*

MGH development here reflects the combined internal training and validation sets used to develop the ECG Neural Network model. It includes 7,648 patients with prevalent strokes or censoring events occurring prior to study start of followup that were included in ECG deep learning model training but excluded from Cox model training.

†

New stroke diagnosis within 10 years

Model Performance in Test Sets

ECG2Stroke demonstrated strong univariable association with 10-year incident stroke in the test sets (HR per SD: MGH, 2.838 [95% CI 2.482–3.245]; BWH, 2.648 [2.535–2.765]; BIDMC, 2.803 [2.609–3.012]) and exhibited moderate discrimination of incident stroke (10-year AUROC: MGH, 0.795 [0.768–0.820]; BWH, 0.774 [0.765–0.783]; BIDMC, 0.772 [0.758–0.785]) (10-year nAP: MGH, 1.970 [1.720–2.280]; BWH, 1.760 [1.680–1.860]; BIDMC, 1.950 [1.810–2.120]) (Table 2). Estimates were generally well-calibrated (10-year horizon ICI: MGH, 0.030; BWH, 0.005; BIDMC, 0.026; Table 2, Central Illustration), and stratified longitudinal stroke risk (Central Illustration). AUROC values were largely similar at shorter time horizons (5-year horizon range: 0.753–0.765; 1-year horizon: 0.701–0.749; Tables S4A,B), while nAP improved with shorter time horizons (10-year horizon range: 1.760–1.970; 5-year horizon: 2.110–2.450; 1-year horizon: 2.470–3.190; Table 2, Tables S4A,B).

Table 2.

ECG2Stroke performance for 10-year incident stroke prediction in test sets

HR (per SD) AUROC AP nAP ICI
MGH test set (n=4771, Event rate = 0.104)
Age+Sex 2.609 (2.267–3.002) 0.781 (0.752–0.808) 0.181* (0.159–0.209) 1.740 (1.530–2.010) 0.033
ECG only 2.483 (2.197–2.807) 0.767* (0.740–0.793) 0.202 (0.173–0.239) 1.940 (1.670–2.290) 0.029
ECG2Stroke 2.838 (2.482–3.245) 0.795 (0.768–0.820) 0.205 (0.179–0.237) 1.970 (1.720–2.280) 0.030
BWH test set (n=68884, Event rate = 0.072)
Age+Sex 2.262 (2.165–2.365) 0.736* (0.726–0.746) 0.112* (0.107–0.117) 1.560 (1.490–1.640) 0.004
ECG only 2.370 (2.277–2.467) 0.755* (0.745–0.764) 0.127 (0.120–0.134) 1.770 (1.680–1.870) 0.008
ECG2Stroke 2.648 (2.535–2.765) 0.774 (0.765–0.783) 0.127 (0.121–0.133) 1.760 (1.680–1.860) 0.005
BIDMC test set (n=29882, Event rate = 0.053)
Age+Sex 2.372 (2.212–2.545) 0.734* (0.720–0.749) 0.092* (0.085–0.100) 1.740 (1.610–1.890) 0.024
ECG only 2.558 (2.392–2.735) 0.756* (0.743–0.769) 0.103 (0.095–0.112) 1.940 (1.790–2.120) 0.025
ECG2Stroke 2.803 (2.609–3.012) 0.772 (0.758–0.785) 0.104 (0.096–0.112) 1.950 (1.810–2.120) 0.026

HR = Hazard ratio

AUROC = Area under receiver operating characteristic curve

AP = Average precision

Event rate = Baseline event rate, corresponding to the AP of a non-informative model.

nAP = normalized average precision is the ratio of the model’s AP to the baseline event rate

ICI = Integrated calibration index

*

p<0.05 compared to ECG2Stroke

ECG2Stroke demonstrated consistently higher average precision compared to a model based on age and sex alone and generally favorable AUROC compared to models based on ECG alone or age and sex alone (Table 2, Table S4A). Variance decomposition confirmed the ECG alone model explained a significant proportion of additional variance in 10-year stroke risk beyond age and sex alone (Partial R2: ECG only, 0.082–0.118, Table S5). In both BWH and BIDMC, ECG2Stroke stratified risk across subgroups of sex, age, race, and clinical risk factors while maintaining discrimination and calibration performance (Figure 2, Figures S4–S5, Tables S6A,B). Decision curves for ECG2Stroke demonstrated net benefit across a range of clinically relevant thresholds (Figure S6). Sensitivity, specificity, positive and negative predictive values for a range of clinically relevant thresholds are included in Table S7. Results were similar when death was modeled as a competing risk, where specifically we observed modest attenuation of effect size (10-year horizon ECG neural network hazard ratio: death as censoring, 2.52 [2.44–2.60]; death as competing risk, 2.42 [2.34–2.49]), while absolute 10-year stroke risk estimates using the Aalen–Johansen estimator (AJ) were essentially identical to Kaplan–Meier (KM) estimates (MGH test: KM, 0.104, AJ, 0.103; BWH test: KM, 0.072, AJ, 0.071; BIDMC test: KM 0.053, AJ, 0.052).

Figure 2.

Figure 2.

ECG2Stroke association with stroke risk in clinical and demographic subgroups

Depicted in panel A is a forest plot of hazard ratios for 10-year ischemic stroke per 1-SD increase in ECG2Stroke linear predictor for subgroups in both external test sets BWH (n=68,884; blue) and BIDMC (n=29,882; orange). The low stroke risk factors subgroup was defined as patients without baseline stroke risk factors including any of: current smoking, diabetes, hyperlipidemia, chronic kidney disease, hypertension, atrial fibrillation, heart failure, valvular disease, vascular disease. Panel B similarly shows hazard ratios for 10-year ischemic stroke per 1-SD increase in linear predictor of either ECG2Stroke or FSRP-based Cox model for subgroups derived from the FSRP-complete subsets of MGH/BWH test (n=24,650; left axes with blue and green markers) or BIDMC test (n = 18,776; right axes with orange and green markers).

Comparison to FSRP

We then compared the performance of ECG2Stroke to the FSRP alone and their combination, among individuals with available data. In fitting the model combining both ECG2Stroke and FSRP, both the neural network-predicted probabilities and FSRP were independently associated with incident stroke (neural network probabilities: HR, 2.06 [1.84–2.30]; FSRP: HR, 1.62 [1.37–1.93]), without significant interaction.

To ensure sufficient sample size, assessment of FSRP was performed in a combined MGH/BWH test set along with the BIDMC test set (baseline characteristics in Table S8). Here, both ECG2Stroke and FSRP demonstrated strong univariable association with 10-year incident stroke in the test sets (MGH/BWH test HR per SD: ECG2Stroke, 3.016 [2.795–3.253]; FSRP, 2.732 [2.534–2.945]; BIDMC test HR per SD: ECG2Stroke, 2.474 [2.269–2.698]; FSRP, 2.301 [2.118–2.500]; Table 3). The discrimination and calibration of ECG2Stroke at a 10-year horizon was comparable to the FSRP-based model but with numerically higher point estimates (MGH/BWH test AUROC: ECG2Stroke, 0.791 [0.776–0.806]; FSRP, 0.779 [0.763–0.795]; BIDMC test AUROC: ECG2Stroke, 0.745 [0.727–0.763]; FSRP,0.728 [0.710–0.747]). Discrimination was marginally improved in the model combining ECG2Stroke and FSRP (10-year AUROC: MGH/BWH test, 0.800 [0.785–0.815]; BIDMC test, 0.754 [0.735–0.772]; Table 3). Calibration was favorable in the MGH/BWH test set compared to the BIDMC test set, with similar behavior using ECG2Stroke and FSRP (Table 3, Figure 3). Similar patterns were observed at shorter time horizons (Tables S9A,B). Both models retained predictive performance across subgroups of age, sex, race, and clinical risk factors in both test sets (Figure 2, Tables S10A,B). Sensitivity analysis restricting the Cox model training and testing cohorts to age >55 years to match the original FSRP validation cohort resulted in worse FSRP 10-year performance across test sets (AUROC: MGH/BWH test, 0.737 [0.714–0.757]; BIDMC test, 0.681 [0.660–0.703]; nAP: MGH/BWH test: 1.420 [1.340–1.530]; BIDMC test, 1.590 [1.440–1.810]; ICI: MGH/BWH test: 0.013; BIDMC test, 0.050).

Table 3.

Performance of Cox models for 10-year incident stroke prediction in test set subsets with complete FSRP data

HR (per SD) AUROC AP nAP ICI
MGH/BWH test set (n=24650, Event rate = 0.065)
Age and Sex 2.567 (2.373–2.776) 0.753* (0.737–0.770) 0.119* (0.109–0.130) 1.830 (1.710–1.970) 0.007
ECG alone 2.677 (2.497–2.870) 0.771* (0.754–0.788) 0.142 (0.129–0.158) 2.190 (2.030–2.415) 0.008
FSRP 2.732 (2.534–2.945) 0.779 (0.763–0.796) 0.127* (0.117–0.140) 1.960 (1.845–2.120) 0.006
ECG2Stroke 3.016 (2.795–3.253) 0.791 (0.776–0.806) 0.142 (0.129–0.157) 2.190 (2.045–2.390) 0.006
ECG2Stroke and FSRP 3.094 (2.870–3.336) 0.800* (0.787–0.815) 0.145 (0.132–0.160) 2.230 (2.070–2.435) 0.006
BI test set (n=18776, Event rate = 0.046)
Age and Sex 2.131 (1.957–2.320) 0.709* (0.690–0.728) 0.080* (0.073–0.089) 1.760 (1.630–1.910) 0.035
ECG alone 2.283 (2.106–2.476) 0.729* (0.711–0.746) 0.094 (0.084–0.105) 2.050 (1.890–2.295) 0.037
FSRP 2.301 (2.118–2.500) 0.728* (0.710–0.747) 0.095 (0.085–0.111) 2.080 (1.885–2.400) 0.03
ECG2Stroke 2.474 (2.269–2.698) 0.745 (0.727–0.763) 0.093 (0.084–0.103) 2.030 (1.890–2.250) 0.038
ECG2Stroke and FSRP 2.586 (2.373–2.819) 0.754* (0.735–0.772) 0.101* (0.091–0.116) 2.220 (2.030–2.495) 0.035
*

p<0.05 compared to ECG2Stroke

Figure 3.

Figure 3.

Calibration and stroke risk categories for ECG2Stroke and FSRP

Depicted in panels A and B are smoothed calibration curves depicting predicted versus observed event probabilities for 10-year incident stroke for the indicated Cox models in subsets of the indicated test set with complete FSRP data. In panels C and D are stroke-free survival in high and low stroke risk categories predicted by ECG2Stroke or FSRP-based Cox models using standard ASCVD prevention23 thresholds (High: >20% predicted 10-year incident stroke risk, Low: <5%) in subsets of the indicated test set with complete FSRP data. Transparent bands indicate 95% confidence intervals for survival probability.

Using low (10-year risk <5%) and high (10-year risk >20%) risk thresholds derived from standard ASCVD prevention guidelines23, we found similar stratification of longitudinal stroke incidence among ECG2Stroke and FSRP-defined risk groups (MGH/BWH test: Low risk, p = 0.82; High risk, p = 0.86; BIDMC test: Low risk, p = 0.23; High risk, p=0.97 Figure 3). ECG2Stroke improved reclassification modestly at the high vs intermediate risk threshold (MGH/BWH test: NRI overall, 0.048 [95% CI, 0.020–0.075]; (NRI+), 0.054 [0.027–0.081]; (NRI−), −0.006 [−0.010–0.002]; BIDMC test: NRI overall, 0.073 [0.044–0.104]; (NRI+), 0.092 [0.063–0.123], (NRI−), −0.019 [−0.024 – −0.015]). Reclassification was not significantly improved at the low vs intermediate risk threshold (MGH/BWH test: NRI overall, 0.002 [−0.029–0.030]; (NRI+), 0.002 [−0.026–0.028]; (NRI−), 0.000 [−0.012–0.012]; BIDMC test: NRI overall, 0.016 [−0.010–0.041]; (NRI+), 0.034 [0.010–0.057], (NRI−), −0.019 [−0.026 - −0.011]). Findings were similar using alternate risk thresholds (low: 10-year risk <7.5%; high: >10%) (Figure S7). Decision curves for 10-year stroke demonstrated modest improvements in net benefit using ECG2Stroke compared to FSRP across a range of relevant thresholds (threshold probabilities: MGH/BWH test, 1%–40%; BIDMC test, 1%–14%) (Figure S8). Sensitivity, specificity, positive and negative predictive values along with net benefit values for a range of clinically relevant thresholds for both models are included in Table S11.

The linear predictors of ECG2Stroke and FSRP-based model were highly correlated in all test sets (Pearson correlation: MGH/BWH test set, 0.82; BIDMC, 0.81; p<0.01 for both). However, variance decomposition confirmed both ECG2Stroke and FSRP explain a significant proportion of additional variance in 10-year stroke risk beyond the other alone (MGH/BWH Partial R2: ECG2Stroke, 0.076; FSRP, 0.016; BIDMC Partial R2: ECG2Stroke, 0.057; FSRP, 0.024) (Table S12).

Atrial Fibrillation

We examined the effect of AF on model performance given its particular relevance to both ischemic stroke risk and the ECG. In the combined MGH/BWH test set, ECG2Stroke discrimination and calibration were more favorable among individuals with versus without prevalent AF (Table 4, Tables S13A,B, Figure S9). Calibration was again favorable in the MGH/BWH test set compared to the BIDMC test set. Stratification by OAC status in MGH/BWH revealed no major changes in model performance among patients with AF. Similar trends were observed at shorter time horizons. To assess the extent to which ECG2Stroke performance extends beyond prediction of AF, we examined model performance among patients without AF at baseline with censoring at incident AF diagnosis, observing continued moderate discrimination and good calibration (Table 4, Tables S13A,B).

Table 4.

ECG2Stroke performance for 10-year incident stroke prediction in test in AF related subgroups

n HR (per SD) AUROC AP Event rate nAP ICI
MGH/BWH test set subgroups
No AF 61,880 2.695 (2.568–2.828) 0.764 (0.754–0.775) 0.127 (0.120–0.135) 0.064 1.990 (1.880–2.130) 0.001
No AF, censored at AF 61,880 2.612 (2.477–2.753) 0.764 (0.752–0.774) 0.099 (0.093–0.106) 0.055 1.810 (1.700–1.930) 0.007
AF 11,775 1.760 (1.626–1.905) 0.716 (0.697–0.737) 0.161 (0.149–0.175) 0.142 1.140 (1.050–1.240) 0.029
AF −oac 6,228 1.899 (1.697–2.125) 0.724 (0.699–0.751) 0.156 (0.141–0.176) 0.132 1.180 (1.060–1.330) 0.026
AF +oac 5,547 1.585 (1.420–1.769) 0.688 (0.654–0.723) 0.171 (0.152–0.196) 0.155 1.100 (0.985–1.270) 0.033
BIDMC test set subgroups
No AF 27,065 2.769 (2.554–3.003) 0.758 (0.743–0.774) 0.094 (0.086–0.105) 0.046 2.050 (1.880–2.290) 0.024
No AF, censored at AF 27,065 2.682 (2.458–2.926) 0.759 (0.743–0.776) 0.075 (0.068–0.083) 0.041 1.820 (1.650–2.020) 0.027
AF 2,817 1.543 (1.338–1.779) 0.726 (0.692–0.759) 0.141 (0.123–0.164) 0.13 1.080 (0.945–1.260) 0.059

In an exploratory analysis, we compared classification of AF patients not on OAC at baseline into low and high stroke risk groups using standard risk thresholds for CHA2DS2-VASc scores (low: <1 for males and <2 for females, intermediate: 1 for males and 2 for females, high: >1 for males and >2 for females) and using standard ASCVD prevention risk thresholds (low: 10-year risk <5%, high: >20%) for ECG2Stroke in the MGH/BWH test set (Figure 4). Stroke-free survival differed between the high-risk groups (log rank p<0.005), but not the low-risk groups (p=0.43). The ECG2Stroke low-risk group included more patients (n=1096) than the corresponding CHA2DS2-VASc group (n=288), while the reverse was true for high-risk groups (ECG2Stroke n=1804, CHA2DS2-VASc n=4981). Quantiles of ECG2Stroke were also able to stratify risk further within CHA2DS2-VASc-defined high-risk and intermediate-risk groups (Figure 4). Results were similar if patients were censored at OAC initiation (Figure S10) or with use of alternate risk thresholds (Figure S11). ECG2Stroke applied at standard risk thresholds improved reclassification at the low versus intermediate risk threshold (NRI overall, 0.119 [0.082–0.155]; (NRI+), −0.068 [−0.098- −0.043]; (NRI−), 0.187 [0.165–0.210]) and at the high versus intermediate threshold (NRI overall, 0.071 [0.018–0.126]; (NRI+), −0.546 [−0.590- −0.495]; (NRI−), 0.616 [0.593–0.640]), driven primarily by appropriate downclassification of non-events. Use of the less stringent alternate risk thresholds (low: 10-year risk <7.5%; high: >10%) for ECG2Stroke further increased reclassification improvement (low versus intermediate threshold NRI: overall, 0.206 [0.161–0.248]; (NRI+), −0.141 [−0.177- −0.107]; (NRI−), 0.347 [0.322–0.372]; high versus intermediate threshold NRI: overall, 0.117 [0.069–0.166]; (NRI+), −0.162 [−0.201- −0.121]; (NRI−), 0.279 [0.252–0.304]). Decision curves for 10-year stroke demonstrated substantial improvements in net benefit using ECG2Stroke compared to CHA2DS2-VASc across a range of clinically relevant thresholds (threshold probabilities: MGH/BWH test, 1%−24%) (Figure S12). Sensitivity, specificity, positive and negative predictive values along with net benefit values for a range of clinically relevant thresholds for both models are included in Table S14.

Figure 4.

Figure 4.

ECG2Stroke and CHA2DS2-VASc stroke risk categories in patients with AF

Depicted in panel A is stroke-free survival in high and low stroke risk categories predicted by ECG2Stroke (High: >20% predicted 10-year incident stroke risk, Low: <5%) or CHA2DS2-VASc score (High: >1 for males and >2 for females, Low: <1 for males and <2 for females) in MGH/BWH test set patients with AF not on OAC at baseline. In panels B and C are risk stratification by tertiles of ECG2Stroke within CHA2DS2-VASc score-defined high risk (B) category (>1 for males and >2 for females) or intermediate risk (C) category (1 for males and 2 for females) for MGH/BWH test set patients with AF not on OAC at baseline. Transparent bands indicate 95% confidence intervals for survival probability in all panels.

Time-dependent modeling of AF status to directly characterize relations between ECG2Stroke, AF, and 10-year stroke risk revealed greater coefficient attenuation with joint modeling for AF than ECG2Stroke, much larger partial R2 for ECG2Stroke, and a moderate submultiplicative interaction between the two (HR for interaction range: 0.658 – 0.745) (Figure 5, Tables S15A,B). Results were similar when we accounted for potential occult subclinical AF by treating AF detected up to 2 years post-stroke as prevalent AF (Tables S15A,B).

Figure 5.

Figure 5.

ECG2Stroke and time-dependent AF

Depicted in panel A is a forest plot of 10-year ischemic stroke hazard ratios for either ECG2Stroke per 1-SD increase in linear predictor or time-dependent Atrial Fibrillation (AF) status, modeled alone or jointly for all test sets. Panel B depicts partial R2 values for time-dependent AF status or ECG2Stroke linear predictor for all test sets.

Clinical and electrocardiographic correlates of ECG-based stroke risk

Examination of ECG neural network saliency maps demonstrated that variation in the ECG waveform near the region of the P-wave had the greatest effect on model predictions (Central Illustration). We examined associations of the ECG neural network component of ECG2Stroke with available ECG-based atrial substrate markers and found moderate correlation with PR interval (Pearson’s R: MGH development, 0.300 MGH test, 0.281; BWH test, 0.298; p<0.001 for all) (Figure 6) and modest but significant correlations with P-wave duration (Pearson’s R: MGH test, 0.039; BWH test, 0.033; p<0.001 for all) and P-wave axis (Pearson’s R: MGH test, 0.034; BWH test, 0.044; p<0.001 for all)(Figure S13). A Cox model including all 3 P-wave ECG metrics (PR interval, P-wave duration, P-axis) as predictors trained in the MGH development set retained some discriminative performance for stroke in the test sets but was significantly worse than models based on ECG or Age+Sex (Table S16).

Figure 6.

Figure 6.

PR-interval correlations with ECG Neural Network output

Depicted are correlation plots between ECG PR interval (x-axis) and logit-transformed ECG neural network probability (y-axis).

To quantify model specificity, we examined associations between stroke risk models and alternative incident cardiovascular outcomes including HF, MI, and death. Here, although both ECG2Stroke and FSRP discriminated each of the alternative outcomes (Table S17), there was substantially better agreement between observed and expected probabilities (i.e., calibration) for incident stroke when compared with HF and death, although generally comparable for MI (Figure S14). We further quantified associations with cardioembolic (CE) vs non-cardioembolic (non-CE) stroke in a small subset of patients with incident strokes which were manually subtyped (n CE=119, n non-CE=139). ECG2Stroke-predicted 10-year stroke risk was strongly associated with CE stroke but not non-CE stroke (cause-specific HR per 1-SD increase in linear predictor: CE, 2.168 [1.641 – 2.865]; non-CE, 1.133 [0.923 – 1.391]; p-value for heterogeneity <0.001) (Figure 7). Consistent with this, patients with ECG2Stroke-predicted 10-year stroke risk below the median had disproportionately more non-CE strokes (bottom 50% predicted stroke risk: CE 71/129 [55%], top 50% predicted stroke risk: CE: 48/129 [37%]; χ2 7.549, p<0.01). Among baseline clinical factors, ECG2Stroke demonstrated strongest associations with HF, AF, and chronic kidney disease (Figure 8).

Figure 7.

Figure 7.

Cardioembolic stroke subtype association with ECG2Stroke

Depicted in panel A is a forest plot of cause-specific hazard ratios (csHRs) for 10-year ischemic stroke per 1-SD increase in the ECG2Stroke standardized linear predictor among patients with available stroke subtype data, evaluated for cardioembolic (n=119) and non-cardioembolic (n=139) stroke subtypes. In panel B is the proportion of cardioembolic strokes within each quartile of ECG2Stroke-predicted 10-year ischemic stroke risk in the same cohort (n=258).

Figure 8.

Figure 8.

Baseline stroke risk factor associations with ECG2Stroke

Depicted are age- and sex-adjusted associations between baseline clinical risk factors and ECG2Stroke. Points represent standardized regression coefficients (β) and 95% confidence intervals for the presence versus absence of each risk factor on logit-transformed ECG2Stroke-predicted 10-year stroke risk, with factors ordered from smallest to largest effect.

Discussion:

We developed ECG2Stroke, a model to explicitly predict time to incident ischemic stroke using survival-aware deep learning-enabled AI analysis of raw 12-lead ECG waveforms, trained on >300,000 ECGs from >100,000 individuals within established ambulatory care cohorts. ECG2Stroke demonstrated consistent predictive utility across three test sets, including two large independent datasets spanning clinically and demographically varied populations. Among individuals with available clinical data, ECG2Stroke offered comparable discrimination of stroke risk compared to the validated FSRP clinical risk model. ECG2Stroke showed strong associations with clinical and electrocardiographic correlates of atrial dysfunction as well as cardioembolic stroke, gesturing to plausible risk mechanisms related to atrial cardiopathy (Central Illustration).

Our work extends the growing literature on AI-enabled ECG-based risk assessment, which to date has focused largely on cardiac phenotypes or broad cardiovascular outcomes10,12–14,34–37. Hughes et al. trained an AI-enabled ECG-based risk score for five-year cardiovascular death and composite atherosclerotic outcomes demonstrating incremental value when combined with the Pooled Cohorts Equations; however, stroke was included only as part of the composite outcome37. Lin et al. reported a multitask model for one-year major adverse cardiovascular events including ischemic stroke in a Taiwanese health system, demonstrating feasibility of short-term risk prediction but with limited stroke-specific external validation36. Although assessment of broad composite outcomes may facilitate favorable statistical power38,39, actionable insights for clinical decision making often require study of specific diseases, including dedicated evaluation of disease-specific risk factors and treatment decisions5,6,30.

Our findings demonstrate the potential value of a stroke-specific ECG-based AI model. Croon et al. examined phenotypic selectivity of AI-enabled ECG models among multiple cardiovascular phenotypes and found strong evidence for high overlap and low specificity; however the study focused on intracardiac left ventricular and left-sided valvular phenotypes and did not include broader disease entities or extracardiac disease such as stroke15. Furthermore, the extent to which such overlap in prognostic performance reflects shared underlying risk and pathophysiology versus off-target noise remains unknown. In the present study, we find that although ECG2Stroke and FSRP also discriminate risk of non-stroke cardiovascular outcomes, agreement between observed and expected probabilities (i.e., calibration) is substantially better for stroke when compared with other cardiovascular outcomes such as HF or death, supporting a degree of outcome specificity. Of note, the phenomenon of capturing elements of global cardiovascular risk rather than strictly isolating a particular phenotype from other cardiovascular outcomes is not unique to AI-enabled ECG models. In our data, the clinical FSRP score also discriminated non-stroke outcomes, a pattern which has been also previously described for a number of other clinical risk models including CHA2DS2-VASc (AF-related stroke) and CHARGE-AF (incident AF) scores,40 CHA2DS2-VASc (AF-related stroke) and non-AF mortality41, PREVENT equations (ASCVD) and all-cause mortality42, and the GRACE score (ACS-related mortality) and ACS-related stroke43. On balance, since guidelines appropriately rely on the importance of absolute risk estimates to guide clinical decisions, our findings reinforce the continued relevance of strokespecific risk estimation in the era of ECG-based AI.

Our findings demonstrate that ECG2Stroke possesses value for stroke risk estimation regardless of the presence or absence of AF. AF is a leading cause of cardioembolic stroke, and its presence is detectable using ECG-based AI even when AF is not present on the ECG analyzed. Our results reflect the expected association between AF and stroke risk and our saliency maps (i.e., substantial attention near the ECG P-wave) share some analogy to attention maps for AF-related models12. However, our findings clarify that the value of ECG2Stroke extends beyond correlation with AF risk, as ECG2Stroke maintained strong association with stroke risk and partial R2 values after adjusting for time-dependent AF, and continued to discriminate stroke risk among patients with known AF or when considering all person-time free of AF. Although not specifically trained for AF-related stroke, ECG2Stroke provided information complementary to the guideline-recommended AF-related stroke risk categories defined by the CHA2DS2-VASc score,4,30 including refinement of intra-category risk and favorable net reclassification, especially for identifying low-risk patients. While the potential to identify additional AF patients at lower stroke risk than expected whose risk-benefit balance may actually favor avoiding anticoagulation is potentially impactful, we note that our AF analyses are performed in a smaller subset and require additional external and prospective validation.

Our examination of the clinical and electrocardiographic correlates of ECG2Stroke provides conceptual support for the ability of ECG-based AI to encode risk signals specific to cardioembolic stroke (e.g., atrial cardiopathy). Prominent weighting of the ECG P-wave in our saliency maps and significant correlations to structured P-wave indices consistently implicate the relevance of abnormal atrial substrate to the ECG2Stroke signal. Furthermore, in a small sample of manually subtyped strokes, our finding of a strong association with cardioembolic stroke, without a corresponding association with non-cardioembolic stroke, further strengthens the plausibility of this proposed mechanism. Rather than trivially predicting AF, our model’s performance across AF strata and persistent association with stroke after adjustment for AF with a moderate submultiplicative interaction, provide support for ECG2Stroke’s potential ability to encode atrial electrical and mechanical dysfunction broadly and in excess of a simple marker of AF risk, consistent with conceptual models of atrial cardiopathy44. In sum, we envision our approach may provide an electrocardiographic biomarker of atrial substrate enabling future mechanistic and interventional studies, and to support such avenues our model will be made publicly available under an academic use license.

Overall, our findings highlight the potential of ECG-based AI to enable scalable stroke risk stratification. While all patients may benefit from lifestyle choices to promote cerebrovascular health45, long-term stroke risk estimation offers the potential to efficiently prioritize individuals for intensification of general cardiovascular and stroke-specific primary prevention efforts, including improved control of known ASCVD risk factors2 or consideration of rhythm monitoring. Our approach supports the concept of stroke risk estimation at scale by relying only on a single, non-invasive, relatively low-cost, and ubiquitous modality: a single 12-lead ECG. While ECG2Stroke was strongly correlated with the FSRP, suggesting that the model encodes established clinical risk factor information, we also observed clear evidence of complementarity, including significant partial R2 values, independent associations with incident stroke when jointly modeled, and additive improvements in discrimination when combined. Furthermore, ECG2Stroke retained predictive performance in patient subgroups without significant clinical risk factors for stroke. In aggregate, our findings suggest that optimal stroke risk estimation may be context dependent, such that consideration of both clinical factors and ECG-based AI may be preferable when both are available, yet ECG-based AI alone can provide moderate risk discrimination in settings where clinical data are not easily at hand or may be subject to misclassification (e.g., resource-constrained settings without robust EHR platforms). We acknowledge that although our findings support the feasibility of stroke estimation using ECG-based AI, our study does not establish clinical utility, and future prospective implementation studies are needed before integration into real-world clinical workflows is justified.

Limitations of our study include retrospective observational design, warranting prospective validation and pragmatic implementation in real-world settings. Although findings were validated in multiple distinct healthcare samples, since all institutions are located in a single geographic region, future validation in more geographically and demographically diverse populations is warranted. Covariates and outcomes were ascertained from electronic health records and are subject to potential misclassification, although we utilized published and validated disease definitions wherever possible19,20. Misclassification of prevalent disease as incident cannot fully be eliminated, although our cohort designs institute a prolonged ascertainment period before start of follow-up and we implemented a 30-day blanking period in this study16,17. ECGs required for study inclusion were ascertained for clinical reasons and therefore introduce selection bias. However, prior work demonstrates that our analysis of cohorts selected on the basis of longitudinal primary or cardiology care, rather than simply data availability, reduces the effects of selection bias.16,17 Nevertheless, future validation in populations with systematic ECG assessments would be useful. Given sample size constraints and the exploratory nature of the analysis, our small subset with available stroke subtype adjudications included individuals from the ECG2Stroke training set; however, we submit this is unlikely to have biased the subtype analysis, as stroke subtype labels were not included as targets in model training. We focused on the ECG given it is well-suited for population-based assessment given cost and potential scalability. Future models should assess the value of additional unstructured data (e.g., imaging), although their role in stroke risk stratification would be more likely opportunistic rather than population-based.

Conclusions:

In sum, while requiring only a single 12-lead ECG along with age and sex, ECG2Stroke achieves comparable prediction of 10-year incident stroke compared to a validated 8-component clinical risk model across multiple healthcare systems and within several important clinical subgroups, possibly by encoding signals of abnormal atrial substrate. Although prospective validation and implementation studies are needed, ECG2Stroke may enable prioritization of high-risk patients for intensive primary prevention of stroke and facilitate future mechanistic studies.

Supplementary Material

Supplement

Funding Sources

NIH grants R01HL134893, R01HL160003, R01HL140224, K24HL153669 (Ho); 2R01HL092577, K24HL105780 (Ellinor); K23HL169839 (Khurshid); American Heart Association (Dallas, Texas) 18SFRN34110082 (Ellinor); 23CDA1050571 (Khurshid); Fondation Leducq 2 (Ellinor). NIH grants R01NS103924 and U01NS069673, AHA grants 18SFRN34250007 and 21SFRN812095 (Anderson)

Abbreviations

AUROC

Area under receiver operating characteristic curve

AP

Average precision

nAP

Normalized average precision is the ratio of the model’s AP to the baseline event rate

ICI

Integrated calibration index

LP

Linear predictor

FSRP

Framingham Stroke Risk Profile

MGB

Mass General Brigham

MGH

Massachusetts General Hospital

BWH

Brigham and Women’s Hospital

BIDMC

Beth Israel Deaconess Medical Center

Footnotes

Disclosures

Dr. Ellinor has received research support from Bayer AG, IBM Health, Bristol-Myers Squibb/Pfizer, and has served on advisory boards or consulted for Bayer AG, MyoKardia, and Novartis. Dr. Ho has received sponsored research support from Bayer AG and has consulted for Eli Lilly. Dr. Waks previously served on the advisory board for HeartcoR Solutions, is a consultant for HearcoR Solutions and Heartbeam Inc, and has received research support from Anumana. Dr. Anderson has received sponsored research support from Bayer AG and the Massachusetts General Hospital McCance Center for Brain Health. The remaining authors have nothing to disclose.

References:

  • 1.He Q, Wang W, Zhang Y, Xiong Y, Tao C, Ma L, Ma J, You C, Wang C. Global, Regional, and National Burden of Stroke, 1990–2021: A Systematic Analysis for Global Burden of Disease 2021. Stroke. 2024;55:2815–2824. [DOI] [PubMed] [Google Scholar]
  • 2.Hankey GJ. Population Impact of Potentially Modifiable Risk Factors for Stroke. Stroke. 2020;51:719–728. [DOI] [PubMed] [Google Scholar]
  • 3.Bushnell C, Kernan WN, Sharrief AZ, Chaturvedi S, Cole JW, Cornwell WK, Cosby-Gaither C, Doyle S, Goldstein LB, Lennon O, et al. 2024 Guideline for the Primary Prevention of Stroke: A Guideline From the American Heart Association/American Stroke Association. Stroke. 2024;55:e344–e424. [DOI] [PubMed] [Google Scholar]
  • 4.Joglar JA, Chung MK, Armbruster AL, Benjamin EJ, Chyou JY, Cronin EM, Deswal A, Eckhardt LL, Goldberger ZD, Gopinathannair R, et al. 2023 ACC/AHA/ACCP/HRS Guideline for the Diagnosis and Management of Atrial Fibrillation: A Report of the American College of Cardiology/American Heart Association Joint Committee on Clinical Practice Guidelines. Circulation. 2024;149:e1–e156. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Khurshid S, Healey JS, McIntyre WF, Lubitz SA. Population-Based Screening for Atrial Fibrillation. Circulation Research. 2020;127:143–154. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.US Preventive Services Task Force, Krist AH, Davidson KW, Mangione CM, Barry MJ, Cabana M, Caughey AB, Donahue K, Doubeni CA, Epling JW, et al. Screening for Asymptomatic Carotid Artery Stenosis: US Preventive Services Task Force Recommendation Statement. JAMA. 2021;325:476–481. [DOI] [PubMed] [Google Scholar]
  • 7.Dufouil C, Beiser A, McLure LA, Wolf PA, Tzourio C, Howard VJ, Westwood AJ, Himali JJ, Sullivan L, Aparicio HJ, et al. A Revised Framingham Stroke Risk Profile to Reflect Temporal Trends. Circulation. 2017;135:1145–1159. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Agarwal SK, Soliman EZ. ECG abnormalities and stroke incidence. Expert Review of Cardiovascular Therapy. 2013;11:853–861. [DOI] [PubMed] [Google Scholar]
  • 9.Chen LY, Ribeiro ALP, Platonov PG, Cygankiewicz I, Soliman EZ, Gorenek B, Ikeda T, Vassilikos VP, Steinberg JS, Varma N, et al. P Wave Parameters and Indices: A Critical Appraisal of Clinical Utility, Challenges, and Future Research—A Consensus Document Endorsed by the International Society of Electrocardiology and the International Society for Holter and Noninvasive Electrocardiology. Circ Arrhythm Electrophysiol. 2022;15:e010435. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Raghunath S, Pfeifer JM, Ulloa-Cerna AE, Nemani A, Carbonati T, Jing L, vanMaanen DP, Hartzel DN, Ruhl JA, Lagerman BF, et al. Deep Neural Networks Can Predict New-Onset Atrial Fibrillation From the 12-Lead ECG and Help Identify Those at Risk of Atrial Fibrillation–Related Stroke. Circulation. 2021;143:1287–1298. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Khurshid S, Friedman SF, Kany S, Mahajan R, Turner AC, Lubitz SA, Maddah M, Ellinor PT, Anderson CD. Electrocardiogram-Based Artificial Intelligence to Discriminate Cardioembolic Stroke and Stratify Risk of Atrial Fibrillation After Stroke. Circulation: Arrhythmia and Electrophysiology. 2024;17:e012959. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Khurshid S, Friedman S, Reeder C, Di Achille P, Diamant N, Singh P, Harrington LX, Wang X, Al-Alusi MA, Sarma G, et al. ECG-Based Deep Learning and Clinical Risk Factors to Predict Atrial Fibrillation. Circulation. 2022;145:122–133. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Kany S, Friedman SF, Al-Alusi M, Khurshid S, Rämö JT, Pipilas D, Pirruccello JP, Reeder C, Philippakis AA, Ho JE, et al. Electrocardiogram-Based Artificial Intelligence to Identify Coronary Artery Disease. JACC Adv. 2025;4:102041. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Lau ES, Di Achille P, Kopparapu K, Andrews CT, Singh P, Reeder C, Al-Alusi M, Khurshid S, Haimovich JS, Ellinor PT, et al. Deep Learning-Enabled Assessment of Left Heart Structure and Function Predicts Cardiovascular Outcomes. J Am Coll Cardiol. 2023;82:1936–1948. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Croon PM, Dhingra LS, Biswas D, Oikonomou EK, Khera R. Phenotypic Selectivity of Artificial Intelligence-enhanced Electrocardiography in Cardiovascular Diagnosis and Risk Prediction. Circulation. 2025; [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Khurshid S, Reeder C, Harrington LX, Singh P, Sarma G, Friedman SF, Di Achille P, Diamant N, Cunningham JW, Turner AC, et al. Cohort design and natural language processing to reduce bias in electronic health records research. npj Digit. Med 2022;5:1–14. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Singh P, Haimovich J, Reeder C, Khurshid S, Lau ES, Cunningham JW, Philippakis A, Anderson CD, Ho JE, Lubitz SA, et al. One Clinician Is All You Need–Cardiac Magnetic Resonance Imaging Measurement Extraction: Deep Learning Algorithm Development. JMIR Med Inform. 2022;10:e38178. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Massachusetts Acute Hospital Profiles [Internet]. [cited 2026 Jan 23];Available from: https://www.chiamass.gov/massachusetts-acute-hospital-profiles/ [Google Scholar]
  • 19.Hulme OL, Khurshid S, Weng L-C, Anderson CD, Wang EY, Ashburner JM, Ko D, McManus DD, Benjamin EJ, Ellinor PT, et al. Development and Validation of a Prediction Model for Atrial Fibrillation Using Electronic Health Records. JACC Clin Electrophysiol. 2019;5:1331–1341. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Wang EY, Hulme OL, Khurshid S, Weng L-C, Choi SH, Walkey AJ, Ashburner JM, McManus DD, Singer DE, Atlas SJ, et al. Initial Precipitants and Recurrence of Atrial Fibrillation. Circ Arrhythm Electrophysiol. 2020;13:e007716. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Khurshid S, Keaney J, Ellinor PT, Lubitz SA. A Simple and Portable Algorithm for Identifying Atrial Fibrillation in the Electronic Medical Record. Am J Cardiol. 2016;117:221–225. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Christopoulos G, Graff-Radford J, Lopez CL, Yao X, Attia ZI, Rabinstein AA, Petersen RC, Knopman DS, Mielke MM, Kremers W, et al. Artificial Intelligence-Electrocardiography to Predict Incident Atrial Fibrillation: A Population-Based Study. Circ Arrhythm Electrophysiol. 2020;13:e009355. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Blanche P, Dartigues J-F, Jacqmin-Gadda H. Estimating and comparing time-dependent areas under receiver operating characteristic curves for censored event times with competing risks. Stat Med. 2013;32:5381–5397. [DOI] [PubMed] [Google Scholar]
  • 24.Yuan Y, Zhou QM, Li B, Cai H, Chow EJ, Armstrong GT. A threshold-free summary index of prediction accuracy for censored time to event data. Stat Med. 2018;37:1671–1681. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Austin PC, Harrell FE, van Klaveren D. Graphical calibration curves and the integrated calibration index (ICI) for survival models. Stat Med. 2020;39:2714–2742. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.O’Quigley J, Xu R, Stare J. Explained randomness in proportional hazards models. Statistics in Medicine. 2005;24:479–489. [DOI] [PubMed] [Google Scholar]
  • 27.Arnett DK, Blumenthal RS, Albert MA, Buroker AB, Goldberger ZD, Hahn EJ, Himmelfarb CD, Khera A, Lloyd-Jones D, McEvoy JW, et al. 2019 ACC/AHA Guideline on the Primary Prevention of Cardiovascular Disease: A Report of the American College of Cardiology/American Heart Association Task Force on Clinical Practice Guidelines. Circulation. 2019;140:e596–e646. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Uno H, Tian L, Cai T, Kohane IS, Wei LJ. A unified inference procedure for a class of measures to assess improvement in risk prediction systems with survival data. Stat Med. 2013;32:2430–2442. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Vickers AJ, Cronin AM, Elkin EB, Gonen M. Extensions to decision curve analysis, a novel method for evaluating diagnostic tests, prediction models and molecular markers. BMC Med Inform Decis Mak. 2008;8:53. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Olesen JB, Torp-Pedersen C, Hansen ML, Lip GYH. The value of the CHA2DS2-VASc score for refining stroke risk stratification in patients with atrial fibrillation with a CHADS2 score 0–1: a nationwide cohort study. Thromb Haemost. 2012;107:1172–1179. [DOI] [PubMed] [Google Scholar]
  • 31.Lunn M, McNeil D. Applying Cox regression to competing risks. Biometrics. 1995;51:524–532. [PubMed] [Google Scholar]
  • 32.Python Core Team. Python: A dynamic, open source programming language. Python Software Foundation. 2015;78. [Google Scholar]
  • 33.R Core Team. R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. http://www.R-project.org/. 2016; [Google Scholar]
  • 34.Haimovich JS, Diamant N, Khurshid S, Di Achille P, Reeder C, Friedman S, Singh P, Spurlock W, Ellinor PT, Philippakis A, et al. Artificial intelligence-enabled classification of hypertrophic heart diseases using electrocardiograms. Cardiovasc Digit Health J. 2023;4:48–59. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Friedman SF, Khurshid S, Venn RA, Wang X, Diamant N, Di Achille P, Weng L-C, Choi SH, Reeder C, Pirruccello JP, et al. Unsupervised deep learning of electrocardiograms enables scalable human disease profiling. NPJ Digit Med. 2025;8:23. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Lin C-H, Liu Z-Y, Chu P-H, Chen J-S, Wu H-H, Wen M-S, Kuo C-F, Chang T-Y. A multitask deep learning model utilizing electrocardiograms for major cardiovascular adverse events prediction. npj Digit. Med 2025;8:1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Hughes JW, Tooley J, Torres Soto J, Ostropolets A, Poterucha T, Christensen MK, Yuan N, Ehlert B, Kaur D, Kang G, et al. A deep learning-based electrocardiogram risk score for long term cardiovascular death and disease. npj Digit. Med 2023;6:169. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Armstrong PW, Westerhout CM. Composite End Points in Clinical Research: A Time for Reappraisal. Circulation. 2017;135:2299–2307. [DOI] [PubMed] [Google Scholar]
  • 39.Palileo-Villanueva LM, Dans AL. Composite endpoints. J Clin Epidemiol. 2020;128:157–158. [DOI] [PubMed] [Google Scholar]
  • 40.Christophersen IE, Yin X, Larson MG, Lubitz SA, Magnani JW, McManus DD, Ellinor PT, Benjamin EJ. A comparison of the CHARGE–AF and the CHA2DS2-VASc risk scores for prediction of atrial fibrillation in the Framingham Heart Study. Am Heart J. 2016;178:45–54. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Chen Y-L, Cheng C-L, Huang J-L, Yang N-I, Chang H-C, Chang K-C, Sung S-H, Shyu K-G, Wang C-C, Yin W-H, et al. Mortality prediction using CHADS2/CHA2DS2-VASc/R2CHADS2 scores in systolic heart failure patients with or without atrial fibrillation. Medicine. 2017;96:e8338. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Shetty NS, Gaonkar M, Patel N, Vekariya N, Li P, Arora G, Arora P. PREVENT and Pooled Cohort Equations in Mortality Risk Prediction. JACC Adv. 2024;3:101372. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Álvarez-Álvarez B, Raposeiras-Roubín S, Abu-Assi E, Cambeiro-González C, Gestal-Romaní S, López-López A, Bouzas-Cruz N, Castiñeira-Busto M, Saidhodjayeva O, Redondo-Diéguez A, et al. Is 6-month GRACE risk score a useful tool to predict stroke after an acute coronary syndrome? Open Heart. 2014;1:e000123. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Kamel H, Okin PM, Elkind MSV, Iadecola C. Atrial Fibrillation and Mechanisms of Stroke: Time for a New Model. Stroke. 2016;47:895–900. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Lloyd-Jones DM, Allen NB, Anderson CAM, Black T, Brewer LC, Foraker RE, Grandner MA, Lavretsky H, Perak AM, Sharma G, et al. Life’s Essential 8: Updating and Enhancing the American Heart Association’s Construct of Cardiovascular Health: A Presidential Advisory From the American Heart Association. Circulation. 2022;146:e18–e43. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplement

RESOURCES