Skip to main content
QUICK REVIEW

[Paper Review] Adversarial Examples for Electrocardiograms

Xintian Han, Yuxuan Hu|arXiv (Cornell University)|May 13, 2019
Cardiac electrophysiology and arrhythmiasMedicine19 references4 citations
TL;DR

This paper proposes a method to generate smooth, physiologically plausible adversarial examples for single-lead ECGs that are indistinguishable to cardiologists yet misclassify by deep neural networks. By applying temporal smoothing and perturbation techniques, the authors create adversarial ECGs that fool state-of-the-art models with 74% success rate, demonstrating that such attacks are not rare and pose significant risks to real-world ECG-based medical AI systems.

ABSTRACT

In recent years, the electrocardiogram (ECG) has seen a large diffusion in both medical and commercial applications, fueled by the rise of single-lead versions. Single-lead ECG can be embedded in medical devices and wearable products such as the injectable Medtronic Linq monitor, the iRhythm Ziopatch wearable monitor, and the Apple Watch Series 4. Recently, deep neural networks have been used to automatically analyze ECG tracings, outperforming even physicians specialized in cardiac electrophysiology in detecting certain rhythm irregularities. However, deep learning classifiers have been shown to be brittle to adversarial examples, which are examples created to look incontrovertibly belonging to a certain class to a human eye but contain subtle features that fool the classifier into misclassifying them into the wrong class. Very recently, adversarial examples have also been created for medical-related tasks. Yet, traditional attack methods to create adversarial examples, such as projected gradient descent (PGD) do not extend directly to ECG signals, as they generate examples that introduce square wave artifacts that are not physiologically plausible. Here, we developed a method to construct smoothed adversarial examples for single-lead ECG. First, we implemented a neural network model achieving state-of-the-art performance on the data from the 2017 PhysioNet/Computing-in-Cardiology Challenge for arrhythmia detection from single lead ECG classification. For this model, we utilized a new technique to generate smoothed examples to produce signals that are 1) indistinguishable to cardiologists from the original examples and 2) incorrectly classified by the neural network. Finally, we show that adversarial examples are not unique and provide a general technique to collate and perturb known adversarial examples to create new ones.

Motivation & Objective

  • To develop a method for generating adversarial examples for single-lead ECGs that are physiologically plausible and indistinguishable from real ECGs to human experts.
  • To address the limitation of traditional adversarial attack methods like PGD, which produce square wave artifacts not found in real ECGs.
  • To demonstrate that adversarial examples in ECG classification are not isolated cases but part of a broader, continuous space of perturbations.
  • To investigate the robustness of deep learning models in ECG rhythm classification under subtle, realistic perturbations.
  • To explore techniques for generating new adversarial examples from existing ones, reinforcing the prevalence and generalizability of such attacks.

Proposed method

  • A 13-layer convolutional neural network trained on the 2017 PhysioNet/CinC Challenge dataset was used as the target model, achieving 88% accuracy and 87% F1 score on test data.
  • A novel smoothing technique was applied to adversarial perturbations by taking weighted averages across neighboring time steps, eliminating square wave artifacts and ensuring physiological plausibility.
  • Adversarial examples were generated using a modified adversarial attack that preserves signal continuity and mimics natural ECG variability.
  • The authors introduced a perturbation band around each adversarial example, from which new adversarial examples were generated via random sampling, concatenation, and Gaussian noise injection.
  • Multiple data augmentation strategies, including signal concatenation and noise injection, were used to generate diverse adversarial examples from a single base perturbation.
  • Clinician validation was performed by having experts assess 250 pairs of original and adversarial ECGs to confirm perceptual indistinguishability.

Experimental results

Research questions

  • RQ1Can adversarial examples be generated for single-lead ECGs that are both physiologically plausible and undetectable to human cardiologists?
  • RQ2Do traditional adversarial attack methods like PGD produce artifacts that make them unsuitable for ECG signals?
  • RQ3Is the space of adversarial ECGs sparse or dense, and can new adversarial examples be reliably generated from existing ones?
  • RQ4To what extent do adversarial examples remain effective under noise and structural modifications?
  • RQ5What are the implications of adversarial vulnerability for real-world deployment of AI in ECG analysis, especially in wearable and implantable devices?

Key findings

  • The proposed method successfully generated adversarial ECGs that were indistinguishable from original tracings to cardiologists, with 246.5 out of 250 pairs correctly identified as matching by clinicians.
  • The deep neural network misclassified 74% of the adversarial examples, demonstrating a high success rate of the attack despite the smoothness and realism of the perturbations.
  • Adversarial examples remained robust under Gaussian noise injection, with 87.6% of examples still being misclassified after 1,000 noise realizations.
  • Concatenation of signal halves from different adversarial examples produced new adversarial examples, confirming the existence of a continuous, dense space of such attacks.
  • Random sampling within the perturbation band also generated new adversarial examples, reinforcing that adversarial examples are not isolated anomalies but part of a broader, reproducible phenomenon.
  • The study reveals that current deep learning models for ECG classification are vulnerable to subtle, realistic perturbations, raising concerns for safety-critical applications in wearable and implantable devices.

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.