Skip to main content
QUICK REVIEW

[Paper Review] Electrocardiogram Generation and Feature Extraction Using a Variational Autoencoder

V.V. Kuznetsov, V. A. Moskalenko|ArXiv.org|Feb 1, 2020
ECG Monitoring and AnalysisMedicine6 references20 citations
TL;DR

This paper proposes a variational autoencoder (VAE) for generating realistic single-cardiac-cycle ECG signals and extracting 25 interpretable, disentangled features from them. The method achieves a low Maximum Mean Discrepancy (MMD) of 3.83×10⁻³, indicating high-quality synthetic ECG generation, while the extracted features show strong interpretability, enabling improved cardiovascular disease diagnostics and data augmentation for supervised learning.

ABSTRACT

We propose a method for generating an electrocardiogram (ECG) signal for one cardiac cycle using a variational autoencoder. Using this method we extracted a vector of new 25 features, which in many cases can be interpreted. The generated ECG has quite natural appearance. The low value of the Maximum Mean Discrepancy metric, 0.00383, indicates good quality of ECG generation too. The extracted new features will help to improve the quality of automatic diagnostics of cardiovascular diseases. Also, generating new synthetic ECGs will allow us to solve the issue of the lack of labeled ECG for use them in supervised learning.

Motivation & Objective

  • To develop a deep generative model for synthesizing realistic single-cardiac-cycle ECG signals to address data scarcity in supervised learning.
  • To extract a set of new, interpretable features from ECG signals using a variational autoencoder architecture.
  • To improve the quality of automatic cardiovascular disease diagnosis through enhanced feature representation.
  • To enable controlled generation of ECGs by varying individual latent features, facilitating interpretability and analysis.

Proposed method

  • A conditional variational autoencoder (VAE) is designed with a dual-branch encoder: a convolutional stream and a fully connected stream, both outputting 25-dimensional vectors.
  • The encoder maps input ECG cycles (length 400) into a 25-dimensional latent space, modeling the posterior as a multivariate normal distribution with learnable mean and log-variance.
  • Latent vectors are sampled from the learned normal distribution using the reparameterization trick to enable backpropagation.
  • The decoder reconstructs the ECG from the 25-dimensional latent code using a deconvolutional and fully connected architecture, with skip connections from both branches.
  • The loss function combines the Kullback–Leibler divergence (KL) between the posterior and prior distributions and the mean squared error (MSE) between reconstructed and original ECG signals.
  • The model is trained on 252,636 cardiac cycles extracted from 2,033 10-second, 12-lead ECG signals at 500 Hz.

Experimental results

Research questions

  • RQ1Can a variational autoencoder generate synthetic ECG signals that are visually and statistically indistinguishable from real ECGs?
  • RQ2Do the learned 25-dimensional latent features in the VAE correspond to meaningful, interpretable physiological ECG characteristics?
  • RQ3Can controlled variation of individual latent features produce predictable changes in the generated ECG morphology?
  • RQ4To what extent does the generated ECG data improve the performance of downstream diagnostic models?

Key findings

  • The generated ECG signals exhibit a natural appearance and are visually realistic, as confirmed by qualitative inspection of generated samples.
  • The Maximum Mean Discrepancy (MMD) metric between real and generated ECG distributions is 3.83×10⁻³, indicating high-quality generation, though higher than the best GAN-based result (1.05×10⁻³), which is not directly comparable due to differing training data and objectives.
  • The extracted 25 latent features are highly interpretable: varying one feature while fixing others leads to predictable changes in ECG morphology, such as altering T-wave amplitude or ST-segment depression.
  • The method enables controlled generation of ECGs by manipulating individual latent variables, demonstrating disentanglement and interpretability of the learned features.
  • The approach provides a viable solution for data augmentation in supervised ECG learning tasks, mitigating the issue of limited labeled ECG data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.