AECGAN: An Autoencoder-Based GAN with Normal Samples for ECG Anomaly Detection
With the rapid advancement of artificial intelligence, deep learning applications in analyzing electrocardiograph (ECG) signals have become increasingly prevalent. Deep learning models are employed for the automatic diagnosis of heart disease but they often face challenges such as the difficulty of collecting adequate abnormal ECG signals, which results in an extreme imbalance between normal and abnormal samples for training, and significant variations in data across individuals, which limit model generalization. To address these challenges, we propose AECGAN, a task-specific two-stage framework for normal-data-only ECG anomaly detection. AECGAN operates in two phases: autoencoder-based GAN for encoder training and classifier training and detection. In the first phase, AECGAN trains the autoencoder-based GAN exclusively on normal ECG samples, employing adversarial and reconstruction losses to optimize the MemSEencoder, generator, and discriminator. The MemSEencoder, an encoder enhanced with SE blocks and a memory module, effectively learns the latent feature space of normal samples. In the second phase, AECGAN utilizes the trained MemSEencoder to extract features in a low-dimensional space from real samples. For classifier training, we generate pseudo-normal and pseudo-abnormal samples by adding slight and strong Gaussian noise, respectively, to the extracted features. The trained classifier can then perform ECG anomaly detection in real-world scenarios. We evaluate the performance of AECGAN on two public datasets, MIT-BIH and ECG5000, in terms of ECG anomaly detection, unseen anomaly detection, and ablation studies. The experimental results demonstrate that AECGAN outperforms state-of-the-art approaches on most metrics, achieving highest F1 scores of 94.08% and 97.62% and lowest EERs of 6.06% and 2.93% on both datasets.
Authors
- Shaojiang Deng (ORCID: https://orcid.org/0000-0003-1246-7399)
- Zhenyu Yang (ORCID: https://orcid.org/0000-0002-3033-9211)
- Yantao Li (ORCID: https://orcid.org/0000-0001-7648-5671)
- Zhongyin Wang (ORCID: https://orcid.org/0009-0000-1256-1639)
Institutions
- Chongqing University (CN)
Publication Details
- Journal
- ACM Transactions on Computing for Healthcare
- Published
- 2026-12-01
- DOI
- https://doi.org/10.1145/3872429
- Primary Topic
- ECG Monitoring and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 0.00