A robust deep convolutional neural network with batch-weighted loss for heartbeat classification

Abstract The early detection of abnormal heart rhythm has become crucial due to the spike in the rate of deaths caused by cardiovascular diseases. While many existing works tried to classify heartbeats accurately, they suffered from the imbalance between heartbeat classes in the available ECG datasets since abnormal heartbeats appear much less frequently than normal ones. In addition, most of existing methods heavily rely on data preprocessing such as noise removal and feature extraction, which is computationally expensive, thus limits their use on low-cost portable ECG devices. We present a novel deep convolutional neural network based on state-of-the-art deep learning techniques for accurate heartbeat classification. We suggest a batch-weighted loss function to better quantify the loss in order to overcome the imbalance between classes. The loss weights dynamically change as the distribution of classes in each batch changes. Also, we propose to use multiple heartbeats for more effective heartbeat classification. Even though we use ECG signal from one lead only without any data preprocessing, our method consistently outperforms existing methods of 5-class heartbeat classification. Our accuracy, positive productivity, sensitivity and specificity under intra-patient paradigm are 99.48%, 98.83%, 96.97% and 99.87%, and those under inter-patient paradigm are 88.34%, 48.25%, 90.90% and 88.51% respectively.

[1]  Willis J. Tompkins,et al.  A Real-Time QRS Detection Algorithm , 1985, IEEE Transactions on Biomedical Engineering.

[2]  N. Ahmed,et al.  Discrete Cosine Transform , 1996 .

[3]  Philip de Chazal,et al.  Automatic classification of heartbeats using ECG morphology and heartbeat interval features , 2004, IEEE Transactions on Biomedical Engineering.

[4]  Jian Sun,et al.  Deep Residual Learning for Image Recognition , 2015, 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[5]  Nitish Srivastava,et al.  Dropout: a simple way to prevent neural networks from overfitting , 2014, J. Mach. Learn. Res..

[6]  William Robson Schwartz,et al.  ECG-based heartbeat classification for arrhythmia detection: A survey , 2016, Comput. Methods Programs Biomed..

[7]  Jeffrey M. Hausdorff,et al.  Physionet: Components of a New Research Resource for Complex Physiologic Signals". Circu-lation Vol , 2000 .

[8]  G.B. Moody,et al.  The impact of the MIT-BIH Arrhythmia Database , 2001, IEEE Engineering in Medicine and Biology Magazine.

[9]  Sung-Nien Yu,et al.  Integration of independent component analysis and neural networks for ECG beat classification , 2008, Expert Syst. Appl..

[10]  Elif Derya Übeyli,et al.  ECG beat classifier designed by combined neural network model , 2005, Pattern Recognit..

[11]  B.V.K. Vijaya Kumar,et al.  Arrhythmia detection and classification using morphological and dynamic features of ECG signals , 2010, 2010 Annual International Conference of the IEEE Engineering in Medicine and Biology.

[12]  Huifang Huang,et al.  A new hierarchical method for inter-patient heartbeat classification using random projections and RR intervals , 2014, BioMedical Engineering OnLine.

[13]  David Menotti,et al.  How the choice of samples for building arrhythmia classifiers impact their performances , 2011, 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society.

[14]  I. Johnstone,et al.  Sparse Principal Components Analysis , 2009, 0901.4392.

[15]  U. Rajendra Acharya,et al.  A deep convolutional neural network model to classify heartbeats , 2017, Comput. Biol. Medicine.

[16]  S. Yoo,et al.  Support Vector Machine Based Arrhythmia Classification Using Reduced Features , 2005 .

[17]  Sergey Ioffe,et al.  Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift , 2015, ICML.

[18]  A. Moustafa Bani-Hasan,et al.  Model-based parameter estimation applied on electrocardiogram signal , 2011 .

[19]  David G. Stork,et al.  Pattern Classification , 1973 .

[20]  Sung-Nien Yu,et al.  Electrocardiogram beat classification based on wavelet transformation and probabilistic neural network , 2007, Pattern Recognit. Lett..

[21]  Michel Verleysen,et al.  Weighted Conditional Random Fields for Supervised Interpatient Heartbeat Classification , 2012, IEEE Transactions on Biomedical Engineering.

[22]  U. Rajendra Acharya,et al.  Characterization of ECG beats from cardiac arrhythmia using discrete cosine transform in PCA framework , 2013, Knowl. Based Syst..