Skip to main content
QUICK REVIEW

[Paper Review] ECG Heartbeat classification using deep transfer learning with Convolutional Neural Network and STFT technique

Minh Cao, Tianqi Zhao|arXiv (Cornell University)|Jun 28, 2022
ECG Monitoring and AnalysisMedicine5 citations
TL;DR

This paper proposes a deep transfer learning framework using ResNet-18 and STFT-based ECG representation to classify heartbeats from small datasets, achieving high accuracy on the MIT-BIH arrhythmia dataset. It demonstrates that following the AAMI EC57 standard for data splitting is critical to avoid data leakage and ensure reliable model evaluation in ECG classification.

ABSTRACT

Electrocardiogram (ECG) is a simple non-invasive measure to identify heart-related issues such as irregular heartbeats known as arrhythmias. While artificial intelligence and machine learning is being utilized in a wide range of healthcare related applications and datasets, many arrhythmia classifiers using deep learning methods have been proposed in recent years. However, sizes of the available datasets from which to build and assess machine learning models is often very small and the lack of well-annotated public ECG datasets is evident. In this paper, we propose a deep transfer learning framework that is aimed to perform classification on a small size training dataset. The proposed method is to fine-tune a general-purpose image classifier ResNet-18 with MIT-BIH arrhythmia dataset in accordance with the AAMI EC57 standard. This paper further investigates many existing deep learning models that have failed to avoid data leakage against AAMI recommendations. We compare how different data split methods impact the model performance. This comparison study implies that future work in arrhythmia classification should follow the AAMI EC57 standard when using any including MIT-BIH arrhythmia dataset.

Motivation & Objective

  • To address the challenge of limited, well-annotated public ECG datasets for arrhythmia classification.
  • To develop a deep transfer learning framework that performs well on small training datasets.
  • To evaluate the impact of different data split methods on model performance.
  • To demonstrate that adherence to the AAMI EC57 standard is essential to prevent data leakage in ECG classification studies.

Proposed method

  • Transform raw ECG signals into spectrograms using the Short-Time Fourier Transform (STFT) to create image-like representations suitable for CNNs.
  • Fine-tune a pre-trained ResNet-18 model on the MIT-BIH arrhythmia dataset using transfer learning.
  • Apply data splitting strategies compliant with the AAMI EC57 standard to avoid data leakage.
  • Compare model performance across various data split methods to assess robustness and generalization.
  • Use standard evaluation metrics such as accuracy, sensitivity, and specificity to assess classification performance.
  • Validate the model on a held-out test set to ensure reliable generalization to unseen data.

Experimental results

Research questions

  • RQ1How does transfer learning with STFT-processed ECG data improve classification performance on small datasets?
  • RQ2What impact do different data split methods have on model evaluation and generalization in ECG arrhythmia classification?
  • RQ3To what extent do existing deep learning models on the MIT-BIH dataset suffer from data leakage due to improper splitting?
  • RQ4Does following the AAMI EC57 standard significantly improve the reliability of model evaluation in ECG classification?
  • RQ5Can a pre-trained ResNet-18 model achieve high performance when fine-tuned on a small ECG dataset using STFT representations?

Key findings

  • The proposed transfer learning framework with STFT and ResNet-18 achieved high classification accuracy, demonstrating strong performance on small datasets.
  • Adherence to the AAMI EC57 standard for data splitting significantly improved model reliability and reduced the risk of data leakage.
  • Many existing deep learning models on the MIT-BIH dataset were found to suffer from data leakage due to improper train/val/test splits.
  • The STFT-based spectrogram representation effectively captured temporal and frequency features of ECG signals, enhancing model learning.
  • The comparison of data split methods revealed that improper splitting leads to overly optimistic performance estimates, undermining model validity.
  • Fine-tuning a pre-trained ResNet-18 on ECG spectrograms yielded superior results compared to training from scratch, especially with limited data.

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.