FlowECG: Using Flow Matching to Create a More Efficient ECG Signal Generator
About
Synthetic electrocardiogram generation serves medical AI applications requiring privacy-preserving data sharing and training dataset augmentation. Current diffusion-based methods achieve high generation quality but require hundreds of neural network evaluations during sampling, creating computational bottlenecks for clinical deployment. We propose FlowECG, a flow matching approach that adapts the SSSD-ECG architecture by replacing the iterative diffusion process with continuous flow dynamics. Flow matching learns direct transport paths from noise to data distributions through ordinary differential equation solving. We evaluate our method on the PTB-XL dataset using Dynamic Time Warping, Wasserstein distance, Maximum Mean Discrepancy, and spectral similarity metrics. FlowECG matches SSSD-ECG performance at 200 neural function evaluations, outperforming the baseline on three metrics. The key finding shows that FlowECG maintains generation quality with substantially fewer sampling steps, achieving comparable results with 10-25 evaluations compared to 200 for diffusion methods. This efficiency improvement reduces computational requirements by an order of magnitude while preserving physiologically realistic 12-lead ECG characteristics. The approach enables practical deployment in resource-limited clinical settings where real-time generation or large-scale synthetic data creation is needed.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| ECG Generation | ECGRDVQ and ECGDMMLD (test) | QTc Accuracy81.43 | 11 | |
| ECG Generation Fidelity Evaluation | 12-lead ECG | FRD0.5164 | 11 | |
| Simulating composite drug reactions | Clinical ECG Mox+Dil (test) | Accuracy78.43 | 11 | |
| Simulating composite drug reactions | Clinical ECG Lid+Dof (test) | Accuracy47.06 | 11 | |
| Simulating composite drug reactions | Clinical ECG Mex+Dof (test) | Accuracy32.73 | 11 | |
| Expert Realism Classification | ECG Lead V3 | Accuracy64.5 | 5 | |
| Expert Realism Classification | ECG Lead V1 | Accuracy63.5 | 5 | |
| Expert Realism Classification | ECG Lead V4 | Accuracy61 | 5 | |
| Expert Realism Classification | ECG Lead I | Accuracy59.5 | 5 | |
| Expert Realism Classification | ECG Lead V2 | Accuracy61.5 | 5 |