[Paper Review] DiffECG: A Versatile Probabilistic Diffusion Model for ECG Signals Synthesis
This paper proposes DiffECG, a novel probabilistic diffusion model for ECG signal synthesis that unifies heartbeat generation, partial signal imputation, and full heartbeat forecasting in a single conditional framework. By conditioning the reverse diffusion process on spectrogram representations and using a flexible encoding scheme, DiffECG achieves state-of-the-art performance across all three tasks, significantly improving FID and RMSE metrics while generating realistic ECG morphologies.
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.
Motivation & Objective
- To address the challenges of limited, noisy, and incomplete ECG data in cardiovascular disease detection.
- To develop a unified deep generative model capable of handling multiple ECG synthesis tasks: generation, imputation, and forecasting.
- To improve the realism and fidelity of synthetic ECG signals for data augmentation in clinical AI applications.
- To overcome limitations of existing GAN-based and autoencoder-based methods in capturing complex ECG dynamics and morphology.
- To enable flexible, conditional synthesis through spectrogram-based conditioning and explicit task switching.
Proposed method
- The method employs a denoising diffusion probabilistic model (DDPM) trained on one-lead ECG signals to model the reverse denoising process.
- It conditions the reverse diffusion process on the spectrogram representation of ECG signals, enabling frequency-aware signal generation.
- A learnable conditioning encoding is introduced to explicitly switch between generation, imputation, and forecasting tasks.
- The model uses a U-Net architecture with time-embedded conditioning to generate ECG signals step-by-step from noise.
- Spectrogram features are extracted via short-time Fourier transform (STFT) and used as input to guide the denoising process.
- The framework supports end-to-end training and inference across all three tasks using shared backbone and task-specific conditioning.
Experimental results
Research questions
- RQ1Can a single diffusion model effectively perform multiple ECG synthesis tasks: generation, imputation, and forecasting?
- RQ2How does spectrogram-based conditioning improve the realism and fidelity of generated ECG signals?
- RQ3Can the proposed conditional framework outperform existing state-of-the-art models in FID, RMSE, and MMD metrics across all three tasks?
- RQ4Does the use of a unified architecture with flexible conditioning lead to better generalization and data efficiency?
- RQ5To what extent can the synthesized ECG data improve downstream classification performance?
Key findings
- DiffECG achieved the lowest FID score of 3.83e-3 in heartbeat generation and 2.77e-3 in imputation for class N, outperforming all baselines.
- For class F (minority arrhythmia), DiffECG achieved an FID of 2.74e-2 and RMSE of 3.17e-2 in imputation, significantly outperforming LSTM, VAE, and [32].
- In forecasting, DiffECG achieved an MMD of 0.27, comparable to the best baseline [32] (0.14), while showing superior visual realism and morphological accuracy.
- Qualitative results show that DiffECG-generated beats closely match real ECG morphology, while GAN-based baselines produce noisier and less realistic signals.
- Imputation results demonstrate that DiffECG preserves complex ECG waveforms (P, QRS, T) better than LSTM and VAE, which tend to oversmooth missing regions.
- The model enhanced the performance of state-of-the-art classifiers, confirming its utility for data augmentation in clinical ECG analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.