Neural network-derived electrocardiographic features have prognostic significance and important phenotypic and genotypic associations

Arunashis Sau, A H Ribeiro, Kathryn A. McGurk, Libor Pastika, Jiani Chen, Maddalena Ardissino, Éster Cerdeira Sabino, Luana Giatti, Sandhi Maria Barreto, Danilo P. Mandic, Nils Peters, Marek Malík, James S. Ware, Fu Siong NgEuropean 2023

Abstract

Subtle, prognostically important ECG features often remain invisible to human physicians. During the training of supervised machine learning (ML) models, thousands of features are identified that extend beyond conventional parameters like QRS duration or ST-segment morphology. This study investigates whether novel neural network (NN)-derived ECG features can predict future cardiovascular disease and mortality. By extracting 5,120 features from an AI-ECG model and applying unsupervised machine learning, researchers identified three distinct phenogroups. In a derivation cohort of over 1.5 million subjects, these phenogroups showed significantly different mortality profiles, even among patients with physician-confirmed "normal" ECGs. Phenome-wide (PheWAS) and genome-wide (GWAS) association studies further linked these groups to specific cardiac conditions, structural changes, and genetic loci (SCN10A, SCN5A, CAV1, and ARHGAP24), providing a biological basis for the AI's predictive power.

Introduction

The electrocardiogram (ECG) is a cornerstone of cardiology, yet human interpretation is limited to a handful of established patterns. While supervised AI models have become highly proficient at diagnosing specific conditions, they often focus on a single label. This research addresses a broader question: Does the "internal logic" of a neural network—the thousands of subtle features it identifies during training—contain prognostic information that humans miss? Specifically, can these features categorize patients into "phenogroups" that share similar underlying biological risks, even before overt disease manifests?

Methodology: A Hybrid Machine Learning Pipeline

The researchers employed a sophisticated pipeline to bridge the gap between deep learning and clinical utility:

  1. Feature Extraction: The team utilized an existing convolutional neural network (CODE-CNN) previously trained to detect six common ECG abnormalities. Rather than using the final diagnostic output, they extracted 5,120 features from the penultimate layer of the network. This form of transfer learning repurposes the model's internal representations of cardiac electrical activity.
  2. Unsupervised Clustering: They applied K-means clustering to these features to group 1.5 million subjects into three distinct "phenogroups" (A, B, and C) without providing the model with any prior information regarding patient outcomes.
  3. Validation and Association: Survival analysis (Cox proportional hazards) was performed across five external cohorts. To understand the underlying biology, the researchers conducted a Phenome-wide association study (PheWAS) to link groups to clinical traits and a Genome-wide association study (GWAS) to identify genetic drivers.
  4. Explainability: Gradient-weighted Class Activation Mapping (Grad-CAM) was used to visualize which specific regions of the ECG waveform influenced the model's group assignments.

Data Scale and Diversity

The study’s scale is unprecedented, involving over 1.8 million subjects across diverse geographic and clinical settings:

  • Derivation Cohort: The CODE dataset, comprising 1,558,421 subjects from Minas Gerais, Brazil.
  • External Validation Cohorts: These included the UK Biobank (~42k), Whitehall II (~5k British civil servants), ELSA-Brasil (~13k), SaMi-Trop (~1.6k patients with Chagas cardiomyopathy), and BIDMC (~190k patients from a US secondary care center).

Key Insights and Results

Hidden Risk in "Normal" ECGs

One of the most significant findings is that these phenogroups retained their predictive power even in patients whose ECGs were clinically adjudicated as "normal" by physicians. This suggests the AI is detecting sub-clinical signals of cardiac aging or stress that are currently invisible to human experts.

Mortality and Disease Prediction

In the derivation cohort, Phenogroup B was associated with a 2.57-fold higher raw risk of mortality compared to Phenogroup A. After adjusting for age, sex, and comorbidities, the risk remained significantly elevated (HR 1.20, 95% CI 1.17-1.23). PheWAS results showed that Phenogroup B was strongly associated with future incidents of atrial fibrillation (OR 2.89), heart failure, and cardiac arrest (OR 6.68).

Genetic and Structural Grounding

The GWAS linked Phenogroup B to genes critical for cardiac function, such as SCN5A and SCN10A (conduction) and CAV1 (structural integrity). Notably, it identified ARHGAP24 as a potentially novel target for cardiac risk. Furthermore, cardiac MRI data from the UK Biobank confirmed that Phenogroup B subjects exhibited increased cardiac chamber volumes and decreased ejection fractions, providing a physical, structural basis for the AI's risk assessment.

Waveform "Hotspots"

Grad-CAM analysis revealed that the terminal QRS complex and the terminal T wave were the most influential regions for identifying high-risk patients. These areas likely represent subtle slowing in conduction and heterogeneity in repolarization, respectively.

Limitations and Future Directions

While the study is robust, the authors acknowledge that the genetic and deep-phenotyping analyses were primarily conducted on the UK Biobank, which is predominantly of European ancestry, potentially limiting global generalizability. Additionally, while Grad-CAM identifies where the model looks, it does not fully explain the specific morphological changes being flagged in a human-readable format. Future work must focus on prospective clinical trials to determine if intervening on high-risk patients identified by this AI can successfully improve long-term clinical outcomes.

Summary updated

BibTeX
@inproceedings{sau2023neural,
  author = {Arunashis Sau and A H Ribeiro and Kathryn A. McGurk and Libor Pastika and Jiani Chen and Maddalena Ardissino and Éster Cerdeira Sabino and Luana Giatti and Sandhi Maria Barreto and Danilo P. Mandic and Nils Peters and Marek Malík and James S. Ware and Antônio Luiz Pinho Ribeiro and Fu Siong Ng},
  title = {{Neural network-derived electrocardiographic features have prognostic significance and important phenotypic and genotypic associations}},
  booktitle = {European},
  year = {2023},
  doi = {10.1093/eurheartj/ehad655.2921},
}

Loading related content...

Figure