Uncertainty-Aware Multi-view Arrhythmia Classification from ECG

Mohd Ashhad, Sana Rahmani, Mohammed Fayiz, Ali Etemad, Javad Hashemi

TL;DR

The proposed UAMAC (Uncertainty-Aware Multi-view Arrhythmia Classification) framework improves ECG arrhythmia detection by combining 1D time-series data with 2D image representations of heartbeats. By leveraging a Dempster-Shafer-based uncertainty fusion mechanism, the model dynamically balances these two views, making it exceptionally robust against real-world clinical noise and artifacts.

What Problem Does This Paper Address?

Electrocardiogram (ECG) interpretation is a cornerstone of cardiac care, and deep learning has vastly improved automated arrhythmia detection. However, real-world clinical environments introduce significant noise—ranging from patient movement and breathing to loose electrode patches.

While multi-view learning (e.g., analyzing the raw 1D signal alongside a 2D spectrogram or image transformation) can provide complementary insights, standard fusion techniques like feature concatenation or simple score averaging fall short when one view is heavily corrupted by noise. In these scenarios, a corrupted view can easily degrade the final prediction. The authors address this gap by introducing an uncertainty-aware framework that quantifies the confidence of each view before fusing their predictions.

Methods

The UAMAC architecture consists of three core components designed to process single-lead ECG data:

Proposed UAMAC architecture showing the 1D BiLSTM pipeline, the 2D GAF + ViT pipeline, and the Dempster-Shafer fusion block.
  1. Time-Series Learning Module (1D): The raw 1D ECG signal is fed into a Bidirectional Long Short-Term Memory (BiLSTM) network to capture forward and backward temporal dependencies, extracting the heartbeat's morphological features.
  2. Image-Space Learning Module (2D): In parallel, the 1D signal is transformed into a 2D image using a Gramian Angular Field (GAF), which preserves temporal dynamics as spatial patterns. This image is then processed by a Vision Transformer (ViT-base) to capture global spatiotemporal relationships.
  3. Uncertainty-Aware Fusion Block: Instead of standard averaging, the model applies Dempster-Shafer Theory (DST). The softmax probabilities from both modules are converted into "evidence" (support for a specific class) and "conflict" (support for alternative classes) sets. Dempster’s rule of combination then aggregates these sets, effectively down-weighting a module if its output exhibits high conflict or uncertainty due to noise.

Datasets

The framework was evaluated on two widely recognized, real-world ECG datasets using only data from Lead II:

  • MIT-BIH Arrhythmia Dataset: Contains 48 half-hour ambulatory ECG recordings categorized into 5 classes following AAMI standards (N, S, V, F, Q).
  • St. Petersburg INCART 12-lead Arrhythmia Dataset: Comprises 75 half-hour recordings. Due to data scarcity for certain conditions, 3 classes were used for training and validation (N, S, V).
  • MIT-BIH Noise Stress Database (NSTDB): Utilized exclusively to source real-world noise artifacts for robustness testing.

For both primary datasets, the authors used an 80-20 train/test split and applied the Synthetic Minority Oversampling Technique (SMOTE) strictly to the training split to mitigate class imbalances.

Key Insights and Ideas

  • The Power of GAF + ViT: While CNNs are common for ECG images, pairing Gramian Angular Fields with a Vision Transformer allows the model to map long-range spatiotemporal dependencies across the heartbeat that standard recurrent networks might miss.
  • Dynamic Conflict Resolution: The true innovation lies in the DST fusion block. If a sudden muscle twitch corrupts the raw 1D signal, the BiLSTM will produce highly conflicting class probabilities. The fusion block recognizes this uncertainty and allows the cleaner 2D ViT pathway to guide the final decision, preventing the noise from tanking the model's accuracy.
  • Ablation Validation: The authors proved that multi-view learning is strictly necessary here; removing either the 1D time-series module or the 2D image module resulted in a noticeable performance drop across both datasets.

Key Results

UAMAC achieved state-of-the-art performance on both benchmarks, outperforming single-view models and alternative multi-view architectures:

  • MIT-BIH: Achieved 98.8% accuracy, 95.6% precision, and 93.4% recall.
  • INCART: Achieved 99.5% accuracy, 96.3% precision, and 98.0% recall (outperforming the closest baseline by 1.4% accuracy and 3% recall).

Noise Robustness

The model was subjected to rigorous stress testing by injecting varying levels of Additive White Gaussian Noise (AWGN) as well as real-world artifacts from the NSTDB, including Baseline Wander (BW), Electrode Motion (EM), and Muscle Artifacts (MA). Across all noise types and Signal-to-Noise Ratios (from 15 dB down to a highly distorted 0 dB), UAMAC consistently maintained higher classification accuracy than standard score-level or feature-level fusion methods.

Limitations and Future Work

While UAMAC excels at handling noise-induced uncertainty, the authors note a few areas for expansion:

  • Broader Uncertainty Types: The current framework is optimized for handling noisy signals, but future iterations could be extended to manage uncertainty stemming from missing data fields or dropped packets in wireless health monitors.
  • Single-Lead Constraint: This study focused entirely on single-lead data (Lead II). Adapting this uncertainty-aware fusion mechanism to multi-lead setups (like standard 12-lead clinical ECGs) remains an open and promising research direction.

Summary updated

BibTeX
@inproceedings{ashhad2024uncertainty,
  author = {Mohd Ashhad and Sana Rahmani and Mohammed Fayiz and Ali Etemad and Javad Hashemi},
  title = {{Uncertainty-Aware Multi-view Arrhythmia Classification from ECG}},
  booktitle = {IJCNN},
  year = {2024},
  doi = {10.1109/ijcnn60899.2024.10650766},
}
Figure