random lab site

Arrhythmia Detection and ECG Explainability

This project addresses the critical challenges of arrhythmia detection and classification, particularly in the context of wearable electrocardiogram (ECG) monitoring devices. Unlike clinically controlled environments, wearable devices operate in noisy, real-world conditions, which complicates the accurate identification of arrhythmias. Additionally, the inherent imbalance in the ratio of normal heartbeats to arrhythmic ones, along with the diverse combinations of arrhythmia types, further compounds the difficulty of the task.

To tackle these challenges, we developed a novel hierarchical deep learning model that combines Convolutional Neural Networks (CNN), Bidirectional Long Short-Term Memory networks (BiLSTM), and an Attention mechanism. Our framework consists of two key modules:

  1. A binary classification module to distinguish normal heartbeats from arrhythmic ones.
  2. A multi-label classification module to categorize arrhythmia events across combinations of beat and rhythm types. The model was trained and evaluated on a proprietary dataset, achieving state-of-the-art performance metrics:
A to D is a flowchart of the proposed framework. C to D are proposed concepts of a hierarchical approach. A Multi-labeled wireless ECG arrhythmia raw data, B 4-beat input data after preprocessing, C Binary classification model for normal heartbeat and arrhythmia classification, D Multi-class, multi-label arrhythmia classification model, E Detailed structure of the proposed CNN BiLSTM with attention model.
(A) to (D) is a flowchart of the proposed framework. (C) to (D) are proposed concepts of a hierarchical approach. (A) Multi-labeled wireless ECG arrhythmia raw data, (B) 4-beat input data after preprocessing, (C) Binary classification model for normal heartbeat and arrhythmia classification, (D) Multi-class, multi-label arrhythmia classification model, (E) Detailed structure of the proposed CNN + BiLSTM with attention model.

*Binary Classification: Accuracy: 95%, F1-score: 0.838, AUC: 0.906. *Multi-label Classification: Accuracy: 88%, F1-score: 0.736, AUC: 0.875. We benchmarked our framework against strong baselines, including CNN+BiGRU with Attention, ConViT, EfficientNet, and ResNet, as well as previous state-of-the-art methods, demonstrating its superior performance.

Our model offers a promising solution for real-world arrhythmia detection and classification, providing:

Additionally, the lack of transparent justifications for decisions made by deep learning models poses challenges for real-world applications.

In this project, we utilized signals from a portable single-lead ECG device to classify eight arrhythmia classes using convolutional neural networks (CNN), achieving 79.91% accuracy on a single heartbeat. To enhance model interpretability, we incorporated Layer-Wise Relevance Propagation (LRP), an explainable artificial intelligence (XAI) algorithm, to analyze the distinctive features of each arrhythmia.

The XAI analysis revealed that for ventricular premature contraction (VPC), the model demonstrated strong activations in the QRS complex and T-wave regions. This aligns with medical interpretations that a wide QRS complex and an oppositely directed T-wave are characteristic of VPC. Such findings emphasize the potential for deep learning models to offer not only accurate predictions but also insights that align with clinical knowledge, supporting biomarker discovery for arrhythmia classification.

This research contributes to interpretable deep learning for arrhythmia diagnosis by:

Previous post
Biomarker Stroke Prediction
Next post
Exploring Uncertainty-Based On-device LLM Routing From Benchmarking to Generalization