4-025 Facilitating AI-ECG models for rare cardiac diseases: transfer learning and synthetic data generation for brugada ECG classification

Keenan Saleh, Raaif Hadadi, Yixiu Liang, Hong S. Wong, Arunashis Sau, James P. Howard, Matthew Shun‐Shin, Jagdeep S. Mohal, Akriti Naraen, Jack Samways, Jessica Artico, James S. Ware, Prapa Kanagaratnam, Fu Siong Ng, Wenjia Bai, Amanda Varnava, Zachary I. Whinnett, Ahran Arnold2025 · DOI

TL;DR

Developing AI models for rare diseases is notoriously difficult due to "data scarcity." This paper demonstrates that combining transfer learning (both supervised and self-supervised) with synthetic data generation (SMOTE) significantly boosts the accuracy of AI-ECG models in detecting Brugada syndrome, a rare but life-threatening heart condition.

What Problem Does This Paper Address?

Brugada syndrome is a rare genetic disorder that can cause sudden cardiac death. While it leaves a specific "signature" on an electrocardiogram (ECG), it is frequently misdiagnosed by non-specialists because it closely resembles more common conditions, such as Right Bundle Branch Block (RBBB) or certain types of heart attacks (ST elevation).

The obvious solution is to train an AI to recognize these patterns. However, deep learning models are "data-hungry," and because Brugada is rare, there aren't enough labeled ECGs to train a robust model from scratch. The authors set out to find which machine learning "tricks"—specifically pretraining and synthetic data generation—can make AI effective even when training data is severely restricted.

Methods

The researchers compared a baseline model against several enhanced versions using three primary techniques:

  1. Supervised Pretraining: The model is first trained on a large, labeled dataset of common ECGs to learn general cardiac features before being "fine-tuned" on the rare Brugada data.
  2. Self-Supervised Pretraining (SSL): Using frameworks like SimCLR and MoCo-V2, the model learns to recognize patterns from unlabeled data by comparing different versions of the same signal. This is a "holy grail" for rare diseases because it doesn't require expensive expert labeling.
  3. Synthetic Data Generation (SMOTE): They used the Synthetic Minority Over-sampling Technique (SMOTE) to mathematically generate "new" Brugada ECG examples (see Figure 1) to balance the dataset, preventing the AI from becoming biased toward the more common "normal" samples.

Datasets

The study utilized a mix of internal and public datasets:

  • Zhongshan Hospital (Target): 704 12-lead ECGs (352 normal, 176 RBBB, 176 Brugada). This was split 25/75 to simulate extreme data scarcity.
  • Zhongshan-pretrain: A larger set of 9,648 normal and 9,824 RBBB ECGs.
  • Imperial (Unlabeled): ECGs from electrophysiology procedures at Hammersmith Hospital used for self-supervised learning.
  • PTB-XL: A well-known open-access dataset containing 21,799 labeled ECGs.

Key Insights and Ideas

  • Labels Aren't Everything: One of the most significant "aha moments" was that self-supervised pretraining (SimCLR) performed almost as well as supervised pretraining. This suggests we can build powerful diagnostic tools using the mountains of unlabeled data sitting in hospital archives.
  • Synthetic Data Works for Waveforms: While SMOTE is common in tabular data, its application here to ECG waveforms (Figure 1) successfully "padded" the rare class enough to improve mean accuracy by 1.1% and F1-score by 0.014.
  • Diminishing Returns on Large Data: Interestingly, when the researchers re-trained models using a more generous 80% training split, the relative benefit of these advanced techniques decreased. This proves these methods are specifically vital for the "small data" regime of rare diseases.

Key Results

  • Baseline Performance: The basic model (trained on limited data without bells and whistles) achieved an accuracy of 89.9% (AUC 0.937).
  • The Pretraining Boost: Supervised pretraining on the PTB-XL and Zhongshan datasets pushed F1-scores up to 0.884 and 0.897, respectively.
  • Top Performer: As shown in the ROC curves (Figure 2), the pretrained models significantly outperformed the baseline, with the Zhongshan-pretrained model reaching an AUC of 0.986.

Limitations and Future Work

The authors acknowledge that while these techniques are promising, they were tested in a controlled experimental setup.

  • Generalizability: Future work needs to validate these models across more diverse, "real-world" clinical populations where ECG quality might vary.
  • Broad Application: The researchers suggest these approaches are a blueprint for other rare cardiac conditions (e.g., Long QT syndrome or Hypertrophic Cardiomyopathy) where data scarcity currently stalls AI development.
  • Clinical Integration: The ultimate goal is to move these models into a tool that assists non-expert clinicians in the ER or primary care settings to prevent missed diagnoses of fatal arrhythmias.

Summary updated

Abstract

<h3>Introduction</h3> Brugada syndrome is a rare inherited arrhythmia syndrome predisposing affected individuals to sudden death. Diagnosis requires detection of the Brugada ECG pattern, but non-expert clinicians can mistake this for mimics such as right bundle branch block (RBBB) or ischaemic ST elevation. Artificial intelligence models developed using machine learning (AI-ECG) could automate recognition of the Brugada ECG, to overcome this problem. However, developing AI-ECG models for rare conditions like Brugada syndrome is challenging due to limited ECG data for model training. We developed a Brugada classification AI-ECG model and evaluated the impact of three machine learning (ML) techniques on performance in the context of severely restricted training data. <h3>Methods</h3> The baseline model was trained using a dataset of 704 12-lead ECGs (352 normal, 176 RBBB and 176 Brugada) from Zhongshan Hospital, with a 25%:75% train-test split to artificially simulate data scarcity. To enhance training, we incorporated 3 additional datasets: (i) a separate ECG dataset of 9648 normal and 9824 RBBB ECGs from Zhongshan Hospital (Zhongshan-pretrain), (ii) an unlabelled ECG dataset from electrophysiology procedures at Hammersmith Hospital, including Brugada and non-Brugada ECGs (Imperial), (iii) an open-access labelled 21799 ECG dataset (PTB-XL). Three ML approaches were assessed: (1) supervised pretraining, (2) self-supervised pretraining (SimCLR and MoCo-V2 frameworks), and (3) oversampling (SMOTE: synthetic minority oversampling technique). All models were also re-trained using a conventional 80%:20% train-test split as part of the secondary analysis. Model performance was evaluated using accuracy, F1-score, and AUC (area under the ROC curve), with statistical comparisons via the DeLong non-parametric test. <h3>Results</h3> The 25% training data baseline model achieved 89.9% accuracy (F1-score 0.815, AUC 0.937). Supervised pretraining improved performance, with models pretrained on PTB-XL and Zhongshan-pretrain reaching F1-scores of 0.884 and 0.897 respectively, while the SimCLR self-supervised model on PTB-XL achieved a comparable F1-score of 0.882. Application of SMOTE oversampling further enhanced mean accuracy by 1.1% and increased the mean F1-score by 0.014. When models were re-trained using an 80%:20% train-test split, overall performance improved for all models but the added yield on baseline model performance diminished. <h3>Conclusions</h3> Pretraining and oversampling improve AI-ECG Brugada classification model performance under conditions of limited training data. Self-supervised pretraining performs comparably to supervised pretraining, potentially reducing the need for extensive manual ECG labelling. These approaches are broadly applicable for developing robust AI-ECG models for other rare cardiac conditions, ultimately aiding non-expert clinicians in accurate ECG interpretation.
BibTeX
@misc{saleh2025facilitating,
  author = {Keenan Saleh and Raaif Hadadi and Yixiu Liang and Hong S. Wong and Arunashis Sau and James P. Howard and Matthew Shun‐Shin and Jagdeep S. Mohal and Akriti Naraen and Jack Samways and Jessica Artico and James S. Ware and Prapa Kanagaratnam and Fu Siong Ng and Wenjia Bai and Amanda Varnava and Zachary I. Whinnett and Ahran Arnold},
  title = {{4-025 Facilitating AI-ECG models for rare cardiac diseases: transfer learning and synthetic data generation for brugada ECG classification}},
  year = {2025},
  doi = {10.1136/heartjnl-2025-bcs.137},
}
Figure