August 30, 2024
ECG-AI AF
Gilbert Jabbour, Alexis Nolin-Lapalme, Olivier Tastet, Denis Corbin, Paloma Jordà, Achille Sowa, Jacques Delfrate, David Busseuil, Julie Hussin, Marie-Pierre Dubé, Jean-Claude Tardif, Léna Rivard, Laurent Macle, Julia Cadrin-Tourigny, Paul Khairy, Robert Avram*, Rafik Tadros*
Prediction of incident atrial fibrillation using deep learning, clinical models and polygenic scores

Atrial fibrillation is the most common sustained cardiac arrhythmia in adults and is associated with an increased risk of stroke, heart failure, cognitive decline, hospitalisations, and death. Deep learning applied to electrocardiograms (ECG-AI) is an emerging approach for predicting atrial fibrillation or flutter (AF). We introduce an open-weights ECG-AI model developed at the Montreal Heart Institute (MHI) and externally validated using MIMIC-IV dataset, comparing its performance with clinical and AF polygenic scores (PGS).

ECG in sinus rhythm from the Montreal Heart Institute were analyzed, excluding those from patients with preexisting AF. The primary outcome was incident AF at 5 years. An ECG-AI model was developed by splitting patients into non-overlapping datasets: 70% for training, 10% for validation, and 20% for testing. Performance of ECG-AI, clinical models and PGS was assessed in the test dataset. The ECG-AI model was externally validated in the Medical Information Mart for Intensive Care-IV (MIMIC-IV) hospital dataset.

Population characteristics

MHI* MIMIC-IV
Age [years] 61.3 ± 15.2 59.2 ± 17.9
Male 57.9% 47%
Follow-up [years] 3.2 (Q1: 0.3, Q3: 8.6) 1.1 (Q1: 0.03, Q3: 4.7)
5-year incident AF 15.6% 15.1%
Heart failure 13.4% 13.9%
CAD 71.4% 23.3%
COPD 11.7% 9.5%
Hypertension 63.0% 55.3%
Obesity 26.9% 13.7%
Sleep apnoea 5.8% 10.1%

Results

A total of 669,782 ECGs from 145,323 patients were included. Mean age was 61±15 years, and 58% were male. The primary outcome was observed in 15% of patients and the ECG-AI model showed an area under the receiver operating characteristic curve (AUC) of 0.78. In time-to-event analysis including the first ECG, ECG-AI inference of high risk identified 26% of the population with a 4.3-fold increased risk of incident AF (95% CI: 4.02–4.57)

In a subgroup analysis of 2,301 patients, ECG-AI outperformed CHARGE-AF (AUC=0.62) and PGS (AUC=0.59). Adding PGS and CHARGE-AF to ECG-AI improved goodness-of-fit (Likelihood Ratio Test p<0.001), with minimal changes to the AUC (0.76-0.77).

Saliency maps

Highlighted the P-wave area as having the highest influence on the model’s prediction

Summary

Model and data availability
The associated code required to run the trained ResNet-50 model used in this study is availableon GitHub. The ECG-AI model is also made publicly available. Please visit our repository: https://github.com/HeartWise-AI/ecg-ai-af-mhi

Model weights: https://huggingface.co/heartwise/ecgAI_AF_MHI