Related Experiment Video
Updated: Jan 12, 2026

Patient-specific Modeling of the Heart: Estimation of Ventricular Fiber Orientations
Published on: January 8, 2013
Exploring latent diffusion models for ECG generation on the minute scale.
Dominik D Kranz1, Jan F Krämer2, Oruç Kahriman3
1Section on Computational Neurology, Deparment of Neurology, Charité - Universitätsmedizin Berlin, Berlin, Germany; Berlin Institute of Health, Berlin, Germany; Department of Physics, Humboldt-Universität zu Berlin, Berlin, Germany.
This study introduces ECGEN, a novel generative AI model for creating long, realistic electrocardiogram (ECG) signals. ECGEN enhances AI model training by augmenting datasets and restoring ECG signals, addressing limitations in current clinical data.
Area of Science:
- Artificial Intelligence
- Biomedical Signal Processing
- Machine Learning
Background:
- Clinical electrocardiogram (ECG) datasets are often imbalanced, limiting the performance of AI interpretation models.
- Existing generative AI for biosignals produces short segments, hindering clinical utility.
- Techniques like inpainting for artifact removal remain underexplored in biosignal synthesis.
Purpose of the Study:
- To develop ECGEN, a latent diffusion model (LDM) for synthesizing long-duration, realistic ECGs.
- To enable data augmentation, rhythm-specific generation, and signal restoration for ECG analysis.
- To overcome limitations of existing AI models in handling diverse and rare ECG pathologies.
Main Methods:
- ECGEN was developed in three configurations (30-second, 90-second, and 320-second models) using a VQ-VAE and DDIM.
- Models were trained on real clinical ECGs from stroke patients.
- Evaluation metrics included heart rate (HR), heart rate variability (HRV), and morphological coherence.
Main Results:
- ECGEN-Small achieved high accuracy (AUC 0.98) in classifying atrial fibrillation (AFib) versus sinus rhythm.
- ECGEN-Medium effectively inpainted missing ECG segments, preserving plausible HR dynamics.
- ECGEN-Large generated long ECGs with consistent morphology, though HRV distributions showed shifts, indicating challenges in modeling long-range dependencies.
Conclusions:
- Latent diffusion models (LDMs) are feasible for generating long-duration ECGs, useful for data augmentation and signal restoration.
- Unsupervised biosignal synthesis presents challenges, including distributional mismatches and artefacts.
- Future research should focus on enhancing long-range temporal modeling and realism through advanced training techniques.
Related Concept Videos
ECG Interpretation of Rhythms
Components of the Electrocardiogram
The primary components of a normal ECG waveform in Normal sinus rhythm(NSR) include the P wave, PR interval, QRS complex, ST segment, T wave, and occasionally a U wave.
ECG waveforms are divided by vertical and horizontal lines at standard intervals.
The horizontal axis measures time and rate, and the vertical axis measures amplitude or voltage....
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
Correlation between ECG and Cardiac Cycle
A cardiac action potential originates in the SA node and spreads throughout the atria and the AV node in approximately 0.03 seconds. This results in the P wave in an ECG and triggers atrial contraction. The action potential is then briefly slowed at the AV node, allowing the atria to contract and fill the ventricles with blood before...
Cardiac Action Potential
The cardiac action potential process involves a series of phases characterized by the movement of ions across the cardiac cell membranes, leading to the depolarization and repolarization of the cardiac myocytes.
Ionic Basis of Cardiac Action Potentials
Electrocardiogram Fundamentals
An electrocardiogram (ECG) is a diagnostic tool for identifying cardiac conditions such as arrhythmias, conduction abnormalities, and myocardial ischemia.
Definition
An electrocardiogram (ECG) visualizes the heart's electrical activity by tracing the electrical movement associated with each heartbeat on a graph or monitor. As the heart beats, an electrical wave passes through it, correlating with the cardiac cycle events.
Parts of an ECG
An ECG utilizes electrodes on the skin...
Physiological Pharmacokinetic Models: Blood Flow-Limited Versus Diffusion-Limited Models

