DiffECG: A Versatile Probabilistic Diffusion Model for ECG Signals Synthesis
Nour Neifar, Achraf Ben-Hamadou, Afef Mdhaffar, Mohamed Jmaiel
TL;DR
This work tackles data scarcity, missing data, and forecasting in ECG-based cardiovascular diagnostics by introducing DiffECG, a versatile conditional diffusion model. It leverages a spectrogram-based conditioning scheme and a task-switching encoding to unify heartbeat generation, imputation, and forecasting within a single DDPM framework, operating over $T$ diffusion steps. Empirical results on the MIT-BIH dataset show competitive generation quality relative to GAN baselines and clear improvements in imputation and forecasting, while also enhancing downstream classifier performance. The approach demonstrates practical impact for ECG data augmentation and restoration, with potential extensions to multi-lead ECG and integration with adversarial training.
Abstract
Within cardiovascular disease detection using deep learning applied to ECG signals, the complexities of handling physiological signals have sparked growing interest in leveraging deep generative models for effective data augmentation. In this paper, we introduce a novel versatile approach based on denoising diffusion probabilistic models for ECG synthesis, addressing three scenarios: (i) heartbeat generation, (ii) partial signal imputation, and (iii) full heartbeat forecasting. Our approach presents the first generalized conditional approach for ECG synthesis, and our experimental results demonstrate its effectiveness for various ECG-related tasks. Moreover, we show that our approach outperforms other state-of-the-art ECG generative models and can enhance the performance of state-of-the-art classifiers.
