Deep Learning-Based Arrhythmia Detection Using RR-Interval Framed Electrocardiograms

Song-Kyoo Kim, Chan Yeob Yeun, Paul D. Yoo, Nai-Wei Lo, Ernesto DamianiarXiv 2020

Introduction

Manual interpretation of Electrocardiogram (ECG) data is a labor-intensive process prone to human error. While deep learning has shown significant promise in automating cardiac diagnostics, most high-performance models are computationally intensive, requiring substantial processing power and battery life. This creates a barrier for integration into wearable IoT devices like smartwatches. This paper presents the Compact Arrhythmia Detection System (CADS), which utilizes a novel "RR-Interval Framing" (RRIF) technique to simplify ECG data, enabling efficient and accurate detection on resource-constrained hardware.

Methodology

The core innovation of the CADS is the RR-Interval Framing (RRIF) approach. Traditional models often use fixed-time sliding windows (e.g., 1-second segments), which do not account for natural heart rate variability. In contrast, RRIF aligns data processing with the heart's biological rhythm by slicing ECG data based on identified "R-peaks."

Data Pre-processing and Input Vector

By slicing from one peak to the next, each data frame represents exactly one cardiac cycle. Because heart rates vary, these intervals are normalized into a consistent sampling size of 220 points. The final input vector to the neural network consists of 222 parameters: the 220 sampled points, the potential minimum value, and the average RR-interval.

Architecture of the CADS model showing the 222-input vector and the 10-layer neural network.

Neural Network Architecture

The system employs a 10-layer neural network (designed as a CNN in the overall workflow) that performs binary classification (Normal vs. Arrhythmia). Unlike traditional methods that require manual feature extraction of complex wave components (P, Q, S, and T waves), this model learns to detect abnormalities directly from the raw, standardized RRIF data.

Experimental Setup

The study utilized a dataset of 1,108 sliced ECG pieces derived from 40 individuals. Data for normal rhythms was sourced from the Diabetes Complications Research Initiative, while arrhythmia samples were obtained from the PhysioBank database. To simulate realistic conditions, an evaluation set was created using a separate, randomly selected group of 40 individuals.

Key Results

The CADS demonstrated exceptional efficiency, with the training phase completing 156 iterations in just 0.1 seconds. This validates the system's "compact" design intended for low-power IoT applications.

Confusion matrix showing the classification performance of the CADS model.

As shown in the performance analysis, the model achieved an overall accuracy of 95.7%. The system proved highly sensitive to normal rhythms, achieving a 98.9% recall rate, and maintained a high precision of 98.7% for arrhythmia detection. In specific test runs against independent datasets, the system achieved up to 100% detection accuracy, demonstrating its robustness in identifying cardiac irregularities.

Discussion and Conclusion

The results suggest that the full complexity of the ECG waveform is not strictly necessary for general arrhythmia detection. By focusing on RR-peak intervals, the CADS effectively ignores redundant information and noise, leading to a faster and more biologically aligned system.

While the current model is limited to binary classification, future iterations could expand to distinguish between specific types of arrhythmia. Additionally, further testing is required to ensure performance stability against motion artifacts common in wearable use cases. Overall, CADS provides a viable pathway for real-time, efficient cardiac monitoring in the next generation of health-tracking wearables.

Summary updated

BibTeX
@misc{kim2020deep,
  author = {Song-Kyoo Kim and Chan Yeob Yeun and Paul D. Yoo and Nai-Wei Lo and Ernesto Damiani},
  title = {{Deep Learning-Based Arrhythmia Detection Using RR-Interval Framed Electrocardiograms}},
  year = {2020},
  eprint = {2012.00348},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.00348},
}
Figure