Skip to main content
QUICK REVIEW

[Paper Review] Synthesis of Realistic ECG using Generative Adversarial Networks

Anne Marie Delaney, Eoin Brophy|arXiv (Cornell University)|Sep 19, 2019
Digital Media Forensic DetectionComputer Science42 references29 citations
TL;DR

This paper proposes a GAN-based framework to generate high-fidelity, privacy-preserving synthetic ECG signals using bidirectional LSTM generators and convolutional discriminators. It demonstrates that the 4CNN BiLSTM GAN produces diverse, structurally realistic ECG waveforms with strong resistance to membership inference attacks, achieving low re-identification rates and outperforming other architectures in both MMD and DTW evaluation metrics.

ABSTRACT

Access to medical data is highly restricted due to its sensitive nature, preventing communities from using this data for research or clinical training. Common methods of de-identification implemented to enable the sharing of data are sometimes inadequate to protect the individuals contained in the data. For our research, we investigate the ability of generative adversarial networks (GANs) to produce realistic medical time series data which can be used without concerns over privacy. The aim is to generate synthetic ECG signals representative of normal ECG waveforms. GANs have been used successfully to generate good quality synthetic time series and have been shown to prevent re-identification of individual records. In this work, a range of GAN architectures are developed to generate synthetic sine waves and synthetic ECG. Two evaluation metrics are then used to quantitatively assess how suitable the synthetic data is for real world applications such as clinical training and data analysis. Finally, we discuss the privacy concerns associated with sharing synthetic data produced by GANs and test their ability to withstand a simple membership inference attack. For the first time we both quantitatively and qualitatively demonstrate that GAN architecture can successfully generate time series signals that are not only structurally similar to the training sets but also diverse in nature across generated samples. We also report on their ability to withstand a simple membership inference attack, protecting the privacy of the training set.

Motivation & Objective

  • To develop a GAN architecture capable of generating realistic real-valued time series data, specifically normal-lead II ECG signals.
  • To evaluate the quality of synthetic ECG using two metrics: maximum mean discrepancy (MMD) and dynamic time warping (DTW).
  • To assess the privacy risks of synthetic ECG data by testing resistance to membership inference attacks.
  • To investigate the impact of architectural components such as minibatch discrimination on training stability and mode collapse.
  • To determine whether GAN-generated synthetic ECG can serve as a viable, privacy-preserving alternative to real medical data for clinical training and research.

Proposed method

  • A GAN framework is implemented with a generator using two bidirectional LSTMs to map random noise to synthetic ECG signals.
  • The discriminator employs a 4-layer convolutional-pooling architecture to distinguish real ECG data from synthetic samples.
  • The training process follows the minimax objective: min_G max_D V(G,D) = E_x~p_data[log D(x)] + E_z~p_z[log(1 - D(G(z)))]
  • Minibatch discrimination is incorporated into the discriminator to improve training stability and prevent mode collapse.
  • Evaluation uses MMD to measure distributional similarity and DTW to assess temporal alignment between real and synthetic ECG signals.
  • A membership inference attack is applied to test whether synthetic samples can reveal information about the original training data.

Experimental results

Research questions

  • RQ1Can GANs generate synthetic ECG signals that are both structurally and temporally realistic compared to real ECG waveforms?
  • RQ2Which GAN architecture yields the most diverse and high-quality synthetic ECG outputs across multiple training runs?
  • RQ3How effective are MMD and DTW as evaluation metrics for assessing the fidelity of GAN-generated time series?
  • RQ4To what extent can GAN-generated ECG data resist membership inference attacks, ensuring privacy of the original training data?
  • RQ5Does the inclusion of a minibatch discrimination layer improve training stability and prevent mode collapse in ECG generation?

Key findings

  • The 4CNN BiLSTM GAN achieved the best MMD score of 1.13×10⁻³ and DTW score of 17.369, indicating high fidelity and temporal similarity to real ECG.
  • The 4CNN BiLSTM GAN produced diverse synthetic ECG samples without mode collapse, even without a minibatch discrimination layer.
  • For ε < 0.3 × mean distance, the membership inference attack correctly identified 0% of training records, indicating strong privacy protection.
  • DTW was found to be more robust to training instability than MMD, particularly in capturing amplitude and timing relationships.
  • MMD was effective in identifying GANs that generate diverse outputs, favoring architectures with broader distributional coverage.
  • The results suggest that GANs can generate synthetic ECG that is both realistic and privacy-preserving, making them suitable for clinical training and research applications.

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.