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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

AECGAN: An Autoencoder-Based GAN with Normal Samples for ECG Anomaly Detection

Shaojiang Deng, Zhenyu Yang, Yantao Li, Zhongyin Wang
ACM Transactions on Computing for Healthcare
ECG Monitoring and Analysis
article

AECGAN: An Autoencoder-Based GAN with Normal Samples for ECG Anomaly Detection

Shaojiang Deng, Zhenyu Yang, Yantao Li, Zhongyin Wang
article en

Abstract

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.

ACM Transactions on Computing for Healthcare
Chongqing University (CN)
ECG Monitoring and Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon