Automated ECG classification using a non-local convolutional block attention module

Comput Methods Programs Biomed. 2021 May:203:106006. doi: 10.1016/j.cmpb.2021.106006. Epub 2021 Feb 27.

Abstract

Background and objective: Recent advances in deep learning have been applied to ECG detection and obtained great success. The spatial and temporal information from ECG signals is fused by combining convolutional neural networks (CNN) with recurrent neural network (RNN). However, these networks ignore the different contribution of local and global segments of a feature map extracted from the ECG and the correlation relationship between the above two segments. To address this issue, a novel convolutional neural network with non-local convolutional block attention module(NCBAM) is proposed to automatically classify ECG heartbeats.

Methods: Our proposed method consists of a 33-layer CNN architecture followed by a NCBAM module. Initially, preprocessed electrocardiogram (ECG) signals are fed into the CNN architecture to extract the spatial and channel features. Further, long-range dependencies of representative features along spatial and channel axis are captured by non-local attention. Finally, the spatial, channel and temporal information of ECG are fused by a learned matrix. The learned matrix is to mine rich relationship information across the above three types of information to make up for the different contribution.

Results and conclusion: The proposed method achieves an average F1 score of 0.9664 on MIT-BIH arrhythmia database, as well as AUC of 0.9314 and Fmax of 0.8507 on PTB-XL ECG database. Compared with the state-of-the-art attention mechanism based on the same public database, NCBAM achieves an obvious improvement in classifying ECG heartbeats. The results demonstrate the proposed method is reliable and efficient for ECG beat classification.

Keywords: Cardiac arrhythmias, Cardiovascular diseases, Convolutional neural network, Attention mechanism, Non-local convolutional block attention module; ECG.

MeSH terms

  • Algorithms*
  • Arrhythmias, Cardiac
  • Electrocardiography
  • Humans
  • Neural Networks, Computer
  • Signal Processing, Computer-Assisted*