Atrial Fibrillation Detection Using Deep Features and Convolutional Networks

Sara Ross-Howe, Hamid R. Tizhoosh

Introduction

Atrial Fibrillation (AFIB) is a prevalent cardiac arrhythmia and a significant risk factor for stroke, particularly among elderly populations. Automated detection of AFIB has traditionally relied on "hand-crafted" features, such as R-peak variability. However, these methods are often sensitive to signal quality, requiring extensive pre-filtering and precise beat detection. This research explores a deep learning framework that treats electrocardiogram (ECG) data as a two-dimensional image classification problem, aiming to bypass the limitations of traditional feature engineering.

Methodology

The proposed pipeline converts one-dimensional ECG signals into two-dimensional spectrograms using the Short-Time Fourier Transform (STFT). This transformation captures the time-varying frequency characteristics of the heart's electrical activity, allowing the model to analyze patterns that may be missed in the time domain alone.

Spectrogram and ECG signal representations for various heart rhythms and signal conditions.

Two primary classification strategies were evaluated:

  1. Deep Feature Extraction: Utilizing a pre-trained DenseNet-201 model to extract features from spectrograms, which were subsequently classified using a Support Vector Machine (SVM).
  2. Custom Convolutional Network (ConvNet): A specialized CNN architecture designed specifically for ECG spectrograms, comprising two convolutional layers followed by two fully connected layers.
Architecture of the custom Convolutional Network (ConvNet) used for AFIB classification.

Data Acquisition and Pre-processing

The study utilized the MIT-BIH AFIB database, encompassing approximately 260 hours of ECG recordings from 25 patients. To expand the training set, a sliding window approach was applied, extracting 6-second segments with a 1-second stride. This resulted in a robust dataset of over 407,000 training samples and 174,000 testing samples.

Results

The custom ConvNet outperformed the transfer learning approach using DenseNet. The model achieved an overall accuracy of 93.16%, with a high sensitivity of 98.33% for detecting AFIB. The specificity, or the ability to correctly identify non-AFIB rhythms, was 89.74%.

Metric Custom ConvNet Performance
Accuracy 93.16%
Sensitivity 98.33%
Specificity 89.74%

Discussion

The core innovation of this work lies in the representation of ECG signals as images. Spectrograms of AFIB exhibit a chaotic, high-frequency signature that is visually distinct from the organized patterns of normal rhythms. By analyzing the entire 6-second window, the deep learning models demonstrate increased robustness to noise and signal artifacts compared to traditional peak-detection algorithms. Notably, the superior performance of the smaller, custom ConvNet suggests that domain-specific architectures may be more effective than massive models pre-trained on general image datasets like ImageNet.

Conclusion

While the achieved accuracy is slightly below some state-of-the-art methods that utilize manual feature engineering, this approach provides a promising baseline for fully automated, end-to-end AFIB detection. The primary limitation identified was the specificity rate, which could lead to false positives in clinical settings. Future research will focus on integrating stacked denoising autoencoders to further mitigate signal artifacts and refining transfer learning techniques using medical-specific datasets.

Summary updated

BibTeX
@inproceedings{rosshowe2019atrial,
  author = {Sara Ross-Howe and Hamid R. Tizhoosh},
  title = {{Atrial Fibrillation Detection Using Deep Features and Convolutional Networks}},
  booktitle = {BHI},
  year = {2019},
  doi = {10.1109/bhi.2019.8834583},
}
Figure