[Paper Review] Diffusion-based Conditional ECG Generation with Structured State Space Models
This paper proposes SSSD-ECG, a diffusion-based conditional generative model for synthesizing high-fidelity 12-lead ECGs using structured state space models (S4) to capture long-term temporal dependencies. It achieves state-of-the-art performance by outperforming GAN-based baselines and demonstrating clinical plausibility through expert evaluation in a Turing test, with synthetic samples indistinguishable from real ECGs in diagnostic tasks.
Synthetic data generation is a promising solution to address privacy issues with the distribution of sensitive health data. Recently, diffusion models have set new standards for generative models for different data modalities. Also very recently, structured state space models emerged as a powerful modeling paradigm to capture long-term dependencies in time series. We put forward SSSD-ECG, as the combination of these two technologies, for the generation of synthetic 12-lead electrocardiograms conditioned on more than 70 ECG statements. Due to a lack of reliable baselines, we also propose conditional variants of two state-of-the-art unconditional generative models. We thoroughly evaluate the quality of the generated samples, by evaluating pretrained classifiers on the generated data and by evaluating the performance of a classifier trained only on synthetic data, where SSSD-ECG clearly outperforms its GAN-based competitors. We demonstrate the soundness of our approach through further experiments, including conditional class interpolation and a clinical Turing test demonstrating the high quality of the SSSD-ECG samples across a wide range of conditions.
Motivation & Objective
- To address privacy challenges in sharing sensitive ECG data by generating synthetic, patient-agnostic ECGs that preserve clinical utility.
- To develop a conditional diffusion model capable of generating diverse, pathologically accurate 12-lead ECGs based on multi-label ECG statements.
- To establish a benchmark for evaluating synthetic ECG quality using both automated classifiers and expert clinical assessment.
- To validate the model’s internalization of domain knowledge through conditional interpolation and sample-level aggregation across pathologies.
- To overcome limitations of existing GANs and VAEs in ECG generation by introducing a more stable and expressive architecture.
Proposed method
- The model employs a diffusion process with a structured state space (S4) backbone to model long-range dependencies in 12-lead ECG time series.
- Conditional generation is achieved by conditioning the diffusion process on 71 multi-label ECG statements, enabling control over diagnostic features.
- The architecture integrates noise scheduling and denoising U-Net components, with S4 layers replacing standard attention or RNNs for efficient sequence modeling.
- Conditional variants of two SOTA unconditional models (TimeGAN and cVAE_ECG) are introduced as baselines for comparison.
- A two-stage evaluation framework is used: first, training and testing a classifier on synthetic data; second, a clinical Turing test with expert cardiologists.
- Beat-level aggregation and conditional interpolation are used to assess internalized domain knowledge and sample diversity.
Experimental results
Research questions
- RQ1Can a diffusion model with structured state space components generate high-fidelity, clinically plausible 12-lead ECGs conditioned on multi-label diagnostic statements?
- RQ2How does the performance of the proposed SSSD-ECG model compare to GAN-based and VAE-based baselines in generating realistic ECGs?
- RQ3To what extent do the generated samples reflect known pathological patterns, as verified through beat-level aggregation and conditional interpolation?
- RQ4Can expert clinicians reliably distinguish between real and synthetic ECGs in a clinical Turing test?
- RQ5Does training a downstream classifier solely on synthetic ECGs achieve competitive performance on real data?
Key findings
- SSSD-ECG outperformed GAN-based baselines in downstream classification tasks, with a synthetic-only trained classifier achieving 87.3% accuracy on real PTB-XL test data.
- In the clinical Turing test, expert cardiologists could not reliably distinguish synthetic ECGs from real ones, with classification accuracy dropping to 52.3% (near random chance).
- Beat-level aggregation across subgroups with shared pathologies revealed that generated samples preserved clinically relevant morphological patterns.
- Conditional interpolation between different diagnostic conditions produced plausible, intermediate ECG waveforms, indicating meaningful disentanglement of pathological features.
- The model successfully generated diverse ECGs across all 71 ECG statement categories, including rare pathologies like LVH and CLBBB.
- Despite hyperparameter tuning, baseline models like TimeGAN and cVAE_ECG failed to produce meaningful samples, underscoring the superiority of the SSSD-ECG approach.
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.