Abstract
Machine learning models are increasingly integrated into clinical workflows for automated electrocardiogram (ECG) analysis. While these models show high accuracy in controlled environments, their robustness against physical adversarial attacks remains largely unexplored. This paper demonstrates the first successful physical adversarial attack on ML-based ECG diagnosis systems. By crafting "adversarial beats" that survive hardware-level preprocessing and segmentation, we show that an attacker can manipulate diagnostic outcomes in real-time using off-the-shelf hardware. The attack successfully induces misdiagnoses of normal heartbeats as arrhythmias, highlighting a significant security vulnerability in medical IoT devices.
Introduction
The deployment of neural networks in medical Internet of Things (IoT) devices has revolutionized cardiac monitoring. These systems provide real-time detection of arrhythmias, such as atrial or ventricular premature beats. However, the security of these automated diagnostic pipelines is a growing concern. While adversarial examples—small, intentional perturbations designed to fool classifiers—have been extensively studied in the digital domain, physical-world attacks on medical sensors present unique challenges due to signal filtering and segmentation.
Problem Statement
Physical ECG signals are not fed directly into neural networks. They first pass through analog and digital band-pass filters (typically 0.5–50 Hz) to remove noise like baseline wandering or powerline interference. Furthermore, heartbeat segmentation algorithms identify individual QRS complexes to slice continuous data into discrete beats for classification. An effective physical attack must generate perturbations that:
- Survive frequency-based filtering.
- Remain positionally robust despite timing inaccuracies.
- Avoid triggering segmentation errors that would desynchronize the attack.
Methodology
The authors propose the concept of adversarial beats: targeted perturbations optimized to induce misclassification while adhering to physical constraints.
Optimization Constraints
To bridge the gap between digital simulation and physical reality, the following constraints were integrated into the adversarial generation process:
- Frequency Masking: Using Fourier transforms, the noise is restricted to the 0.5–50 Hz range, ensuring it is not stripped away by standard ECG hardware filters.
- Expectation Over Transformation (EOT): To handle the millisecond-level timing uncertainty of real-time injection, the perturbations are trained to be effective across various horizontal shifts.
- Amplitude Control: An iterative algorithm minimizes the perturbation's amplitude. This ensures the signal remains "stealthy" to segmentation algorithms, which might otherwise interpret large spikes as additional, non-existent heartbeats.
Physical Implementation
A Proof-of-Concept (PoC) hardware setup was constructed using an AD8232 ECG sensor and an NI myDAQ. This system allows for the real-time injection of adversarial signals into a human subject's ECG lead before the signal reaches the analog-to-digital converter (ADC).
Experimental Setup
The target model is a residual neural network trained on the PhysioNet MIT-BIH Arrhythmia Database. Heartbeats were classified according to the AAMI EC57 standard, covering Normal (N), Atrial Premature (S), Ventricular Premature (V), Fusion (F), and Unclassifiable (Q) categories. The baseline model achieved a 93.4% accuracy on clean data.
Results
The attack was evaluated in both digital and physical environments:
- Digital Simulation: The adversarial beats achieved a success rate of 65.4% for spoofing S-class arrhythmias and 56.2% for V-class arrhythmias.
- Physical Hardware Injection: In live tests on a human subject, the system successfully spoofed 3 to 5 arrhythmic beats out of 40 attempts within a two-minute window.
The results indicate that S-class beats are generally easier to spoof than V-class beats, suggesting that the decision boundaries for certain arrhythmias are more vulnerable to low-amplitude perturbations.
Discussion and Conclusion
This research highlights a critical vulnerability in the medical IoT supply chain. A compromised component or a malicious actor within a clinical setting could utilize inexpensive hardware to commit healthcare fraud or manipulate patient records.
Current limitations include the use of static perturbation lengths and heuristic amplitude limits. Future work will focus on algorithmically optimizing these parameters and improving hardware synchronization to increase the attack's reliability. Additionally, reducing the visual prominence of the perturbations is necessary to evade detection by human cardiologists, as the current noise levels may be noticeable upon manual inspection of the raw waveform.
Summary updated