Automatic classification of healthy and disease conditions from images or digital standard 12-lead electrocardiograms

Вадим Глинер, Noam Keidar, Vladimir Makarov, Arutyun Avetisyan, Assaf Schuster, Yael YanivScientific 2020

Abstract

Standard 12-lead electrocardiography (ECG) is the primary clinical tool used to diagnose changes in heart function. We introduce a two-way approach to an automated cardiac disease identification system using standard digital or image 12-lead ECG recordings. Two different network architectures, one trained using digital signals (CNN-dig) and one trained using images (CNN-ima), were generated. CNN-dig accurately (92.9-100%) identified every possible combination of the eight most-common cardiac conditions. Both CNN-dig and CNN-ima accurately (98%) detected atrial fibrillation (AF) from standard 12-lead ECG digital signals and images, respectively. Similar classification accuracy was achieved with images containing smartphone camera acquisition artifacts. Automated detection of cardiac conditions in standard digital or image 12-lead ECG signals is feasible and may improve current diagnostic methods.

Introduction

The 12-lead electrocardiogram (ECG) remains the gold standard for diagnosing heart rhythm and structural issues. However, automated interpretation has historically been limited, often requiring manual review by cardiologists. While modern AI research frequently focuses on single-lead ECGs from wearables or raw digital data, much clinical data exists as paper records or images. There is a critical need for a system that can handle the full complexity of a 12-lead ECG, identify multiple simultaneous conditions, and process both digital signals and physical printouts or photos.

Methods

The researchers developed a "two-way" approach using Convolutional Neural Networks (CNNs):

  • CNN-dig: Designed for 1D digital signals, utilizing stacked blocks of 1D convolutions with a kernel size of 17 to capture broad temporal features.
  • CNN-ima: Designed for 2D images, using 2D convolutions (7x7 kernels) to analyze rendered ECG plots.

To ensure real-world utility, the system uses a binary classifier ensemble, training independent models for each condition to allow for multi-label detection. A key innovation involved training CNN-ima with synthetic distortions. By applying random perspective transformations and adding noisy backgrounds, the researchers simulated the artifacts typically found in smartphone camera snapshots of ECG plots.

Figure 1: Perspective transformation logic (C) and a simulated smartphone-acquired ECG image with distortion (D).

Results

The study utilized a newly generated open-source dataset of 41,830 classified 10-second ECG segments. CNN-dig achieved an accuracy range of 92.9% to 100% across all eight target cardiac conditions. Remarkably, identifying Atrial Fibrillation (AF) from a 2D image (96-98% accuracy) was nearly as effective as using the raw 1D digital signal (98%).

The model demonstrated significant robustness to image artifacts. Performance did not degrade substantially when faced with perspective distortions or background noise, which is crucial for mobile health (mHealth) applications. Overall, the proposed system significantly outperformed previous automated algorithms, reaching an average accuracy of 96% compared to the 80% seen in leading prior models.

Discussion and Conclusion

This research demonstrates that automated detection of cardiac conditions in standard digital or image 12-lead ECG signals is highly feasible. The parity between digital and image-based classification suggests that visual representations of ECGs contain nearly all necessary diagnostic information for AI models. Future work will involve testing on a larger database of actual physical photos and developing interpretability tools to help clinicians trust the AI's decisions. This dual-stream approach marks a significant step toward making clinical-grade heart monitoring more accessible and automated.

Summary updated

BibTeX
@inproceedings{2020automatic,
  author = {Вадим Глинер and Noam Keidar and Vladimir Makarov and Arutyun Avetisyan and Assaf Schuster and Yael Yaniv},
  title = {{Automatic classification of healthy and disease conditions from images or digital standard 12-lead electrocardiograms}},
  booktitle = {Scientific},
  year = {2020},
  doi = {10.1038/s41598-020-73060-w},
}
Figure