Detection of Paroxysmal Atrial Fibrillation using Attention-based Bidirectional Recurrent Neural Networks

Supreeth Prajwal Shashikumar, Amit J. Shah, Gari D. Clifford, Shamim NematiKDD 2018

Introduction

Atrial Fibrillation (AF) is a significant contributor to stroke and heart failure. Diagnosing AF is particularly challenging when it is paroxysmal—occurring intermittently and unpredictably. Traditional algorithms often fail in real-world scenarios, such as 24-hour Holter monitoring or wearable Photoplethysmogram (PPG) recordings, where brief AF episodes are obscured by long periods of normal sinus rhythm (NSR) and environmental noise. This "needle in a haystack" problem necessitates a model capable of intelligently identifying sporadic disease episodes within extensive datasets.

Methodology

The researchers developed a multi-stage deep learning framework designed to process 10-minute heart signal segments. The architecture integrates several advanced components to handle both spectral and temporal features.

Figure 1: The proposed deep learning architecture, featuring Wavelet Transforms, CNNs, a BRNN, and an Attention Model.

Preprocessing and Feature Extraction

Signals are divided into twenty 30-second windows. Each window undergoes a Wavelet Transform to produce a spectrogram, converting the 1D signal into a 2D time-frequency representation. This step is crucial as AF and NSR exhibit distinct spectral patterns that the model can exploit.

Figure 3: Comparison of Wavelet Transform spectrograms for Atrial Fibrillation (AF) and Normal Sinus Rhythm (NSR).

A 5-layer Convolutional Neural Network (CNN) then processes these spectrograms to extract high-level features. The CNN's translation-invariant filters make the model robust to variations in baseline heart rate.

Temporal Modeling and Attention

The sequence of features from the CNN is fed into a Bidirectional Recurrent Neural Network (BRNN), which captures temporal dependencies in both forward and backward directions. To address the paroxysmal nature of the condition, a "soft attention" layer assigns weights to each 30-second window. This mechanism allows the model to prioritize segments indicative of AF while down-weighting noise or normal rhythms. Finally, these deep features are combined with traditional statistical covariates (e.g., heart rate variability, sample entropy) for classification via a Softmax layer.

Data and Experimental Setup

The model was evaluated using two primary datasets:

  1. Holter ECG Dataset: 24-hour recordings from 2,850 patients at the University of Virginia (UVA), used for large-scale training and validation.
  2. Smartwatch PPG Dataset: Data from 97 subjects using a Samsung Simband, providing simultaneous ECG and multi-wavelength Photoplethysmogram (PPG) signals to test cross-modality generalization.

Results and Discussion

The framework demonstrated high diagnostic accuracy across different modalities. On the UVA clinical ECG dataset, the model achieved an Area Under the Curve (AUC) of 0.94. Notably, the attention mechanism significantly improved performance compared to standard mean pooling (AUC 0.91), validating the importance of weighted temporal importance.

A key finding was the success of transfer learning. While a model trained solely on smartwatch PPG data achieved an AUC of 0.94, pre-training the model on the large ECG dataset followed by fine-tuning on PPG data increased the performance to an AUC of 0.97. This suggests that the underlying patterns of rhythm irregularity are sufficiently similar across electrical (ECG) and optical (PPG) sensors to allow for effective knowledge transfer.

Conclusion

This research presents a robust deep learning approach for detecting paroxysmal AF. By combining CNNs for spectral feature extraction with attention-based BRNNs for temporal modeling, the system effectively filters out non-diagnostic data. Future work will focus on addressing label noise in automated clinical systems and expanding wearable datasets to ensure reliability in diverse, real-world environments. This framework holds promise for integration into ICU monitors and consumer wearables for continuous, low-power cardiac monitoring.

Summary updated

BibTeX
@inproceedings{shashikumar2018detection,
  author = {Supreeth Prajwal Shashikumar and Amit J. Shah and Gari D. Clifford and Shamim Nemati},
  title = {{Detection of Paroxysmal Atrial Fibrillation using Attention-based Bidirectional Recurrent Neural Networks}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2018},
  doi = {10.1145/3219819.3219912},
}
Figure