A Usable GAN-Based Tool for Synthetic ECG Generation in Cardiac Amyloidosis Research
Francesco Speziale, Ugo Lomoio, Fabiola Boccuto, Pierangelo Veltri, Pietro Hiram Guzzi
TL;DR
The paper addresses the challenge of scarce and imbalanced CA datasets by introducing a GAN-based tool that generates labeled 1D ECG beats with class-specific generators. A bidirectional-LSTM GAN framework and a Streamlit GUI enable reproducible training and interactive generation of synthetic CA beats, preserving minority-class morphology for downstream clustering and AI-ECG tasks. The proposed evaluation framework combines morphologic, physiologic, and clustering metrics (e.g., DTW, Fréchet, KS, MMD, silhouette, ARI) to ensure synthetic data are realistic, diverse, and medically meaningful. This tool offers a practical, deployable solution to balance CA cohorts, facilitate early diagnosis, and support patient stratification in CA research while maintaining data provenance and usability across research teams.
Abstract
Cardiac amyloidosis (CA) is a rare and underdiagnosed infiltrative cardiomyopathy, and available datasets for machine-learning models are typically small, imbalanced and heterogeneous. This paper presents a Generative Adversarial Network (GAN) and a graphical command-line interface for generating realistic synthetic electrocardiogram (ECG) beats to support early diagnosis and patient stratification in CA. The tool is designed for usability, allowing clinical researchers to train class-specific generators once and then interactively produce large volumes of labelled synthetic beats that preserve the distribution of minority classes.
