Skip to main content
QUICK REVIEW

[Paper Review] Electrocardiogram Classification and Visual Diagnosis of Atrial Fibrillation with DenseECG

Dacheng Chen, Dan Li|arXiv (Cornell University)|Jan 19, 2021
ECG Monitoring and AnalysisMedicine59 references6 citations
TL;DR

This paper proposes DenseECG, a 1D densely connected convolutional neural network for end-to-end electrocardiogram (ECG) classification to detect atrial fibrillation (AF) without complex preprocessing or handcrafted features. The model achieves state-of-the-art performance on the 2017 PhysioNet CinC Challenge dataset and the imbalanced MIT-BIH dataset, while using class activation maps (CAM) to visualize and explain discriminative ECG regions, enhancing model interpretability for clinical use.

ABSTRACT

Atrial Fibrillation (AF) is a common cardiac arrhythmia affecting a large number of people around the world. If left undetected, it will develop into chronic disability or even early mortality. However, patients who have this problem can barely feel its presence, especially in its early stage. A non-invasive, automatic, and effective detection method is therefore needed to help early detection so that medical intervention can be implemented in time to prevent its progression. Electrocardiogram (ECG), which records the electrical activities of the heart, has been widely used for detecting the presence of AF. However, due to the subtle patterns of AF, the performance of detection models have largely depended on complicated data pre-processing and expertly engineered features. In our work, we developed DenseECG, an end-to-end model based on 5 layers 1D densely connected convolutional neural network. We trained our model using the publicly available dataset from 2017 PhysioNet Computing in Cardiology(CinC) Challenge containing 8528 single-lead ECG recordings of short-term heart rhythms (9-61s). Our trained model was able to outperform the other state-of-the-art AF detection models on this dataset without complicated data pre-processing and expert-supervised feature engineering.

Motivation & Objective

  • To develop an end-to-end deep learning model for automatic atrial fibrillation (AF) detection in ECG signals without relying on complex data preprocessing or expert-engineered features.
  • To improve model interpretability in medical AI by visualizing discriminative ECG segments using class activation maps (CAM), enabling traceability of model decisions.
  • To evaluate the model's performance on both balanced and highly imbalanced ECG datasets, including the 2017 PhysioNet CinC Challenge and the MIT-BIH Arrhythmia dataset.
  • To demonstrate the feasibility of deploying the model on short ECG segments (e.g., 1-minute windows), supporting integration into wearable devices and clinical monitoring systems.

Proposed method

  • The proposed model, DenseECG, is a 5-layer 1D densely connected convolutional neural network that learns hierarchical features directly from raw ECG signals.
  • The architecture uses dense blocks with kernel size 3, growth rate 12, and dropout rate 0.1, with a reduction rate of 0.25 between blocks to control complexity.
  • For model interpretability, class activation maps (CAM) are generated to highlight the ECG time segments that most influence the model’s AF classification decision.
  • On the MIT-BIH dataset, a smaller DenseECG variant with 3 dense blocks and 3 layers per block is used, with L2 regularization (λ=0.0001) and Adam optimizer.
  • To address data imbalance, class weights are applied during training, and the model is compared with focal loss and data augmentation techniques.
  • The model is trained using 50 epochs with a cosine decay schedule, reducing the initial learning rate of 0.001 by a factor of 0.1 at 50% and 75% of training.

Experimental results

Research questions

  • RQ1Can an end-to-end deep learning model achieve state-of-the-art performance in AF detection without expert-designed preprocessing or feature engineering?
  • RQ2Can class activation maps (CAM) effectively localize clinically relevant ECG patterns that contribute to AF classification, enhancing model explainability?
  • RQ3How does the DenseECG model perform on highly imbalanced ECG datasets such as MIT-BIH, especially when compared to existing SOTA methods?
  • RQ4Does the use of class weights improve model performance on minority arrhythmia classes in imbalanced datasets, and how does it compare to focal loss or data augmentation?

Key findings

  • DenseECG achieved a state-of-the-art average accuracy of 94.70% on the MIT-BIH arrhythmia dataset, outperforming previous methods including ResNet with data augmentation (93.40%).
  • The model with class weighting achieved 94.70% accuracy on MIT-BIH, significantly outperforming models without class weighting (90.93%) and those using focal loss (91.32%).
  • On the 2017 PhysioNet CinC Challenge dataset, DenseECG outperformed other state-of-the-art models without requiring complex data preprocessing or handcrafted features.
  • CAM visualization successfully highlighted clinically relevant ECG segments, such as the absence of P waves and presence of F waves, confirming the model’s focus on known AF markers.
  • The model demonstrated robustness on short ECG segments (e.g., ~1.5s), indicating feasibility for deployment in wearable devices and real-time monitoring systems.
  • Even in the heterogeneous 'Other' class, CAMs correctly identified abnormal regions consistent with human diagnostic understanding, suggesting generalization across arrhythmia types.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.