Abstract
In this paper, we propose a transfer learning approach for Arrhythmia Detection and Classification in Cross ECG Databases. This approach relies on a deep convolutional neural network (CNN) pretrained on an auxiliary domain (called ImageNet) with very large labelled images coupled with an additional network composed of fully connected layers. As the pretrained CNN accepts only RGB images as the input, we apply continuous wavelet transform (CWT) to the ECG signals under analysis to generate an over-complete time–frequency representation. Then, we feed the resulting image-like representations as inputs into the pretrained CNN to generate the CNN features. Next, we train the additional fully connected network on the ECG labeled data represented by the CNN features in a supervised way by minimizing cross-entropy error with dropout regularization. The experiments reported in the MIT-BIH arrhythmia, the INCART and the SVDB databases show that the proposed method can achieve better results for the detection of ventricular ectopic beats (VEB) and supraventricular ectopic beats (SVEB) compared to state-of-the-art methods.
Similar content being viewed by others
References
Hinton, G. E., Osindero, S., & Teh, Y. W. (2006). A fast learning algorithm for deep belief nets. Neural Computation, 18(7), 1527–1554. https://doi.org/10.1162/neco.2006.18.7.1527.
Sun, X., Nasrabadi, N. M., & Tran, T. D. (2015). Task-driven dictionary learning for hyperspectral image classification with structured sparsity constraints. IEEE Transactions on Geoscience and Remote Sensing, 53(8), 4457–4471. https://doi.org/10.1109/TGRS.2015.2399978.
Li, J.-C., Ng, W. W. Y., Yeung, D. S., & Chan, P. P. K. (2014). Bi-firing deep neural networks. International Journal of Machine Learning and Cybernetics, 5(1), 73–83. https://doi.org/10.1007/s13042-013-0198-9.
Zhang, J., Ding, S., Zhang, N., & Shi, Z. (2016). Incremental extreme learning machine based on deep feature embedded. International Journal of Machine Learning and Cybernetics, 7(1), 111–120. https://doi.org/10.1007/s13042-015-0419-5.
Swietojanski, P., Ghoshal, A., & Renals, S. (2014). Convolutional neural networks for distant speech recognition. IEEE Signal Processing Letters, 21(9), 1120–1124. https://doi.org/10.1109/LSP.2014.2325781.
Schmidhuber, J. (2015). Deep learning in neural networks: an overview. Neural Networks, 61, 85–117. https://doi.org/10.1016/j.neunet.2014.09.003.
Gao, Z., Wang, L., Zhou, L., & Zhang, J. (2017). HEp-2 cell image classification with deep convolutional neural networks. IEEE Journal of Biomedical and Health Informatics, 21(2), 416–428. https://doi.org/10.1109/JBHI.2016.2526603.
Li, W., Wu, G., Zhang, F., & Du, Q. (2016). Hyperspectral image classification using deep pixel-pair features. IEEE Transactions on Geoscience and Remote Sensing, 55(2), 844–853. https://doi.org/10.1109/TGRS.2016.2616355.
Huang, Y., Wu, R., Sun, Y., Wang, W., & Ding, X. (2015). Vehicle logo recognition system based on convolutional neural networks with a pretraining strategy. IEEE Transactions on Intelligent Transportation Systems, 16(4), 1951–1960. https://doi.org/10.1109/TITS.2014.2387069.
Hariharan, B., Arbelaez, P., Girshick, R., & Malik, J. (2017). Object instance segmentation and fine-grained localization using hypercolumns. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(4), 627–639. https://doi.org/10.1109/TPAMI.2016.2578328.
Wu, X., Du, M., Chen, W., Li, Z. (2016). Exploiting deep convolutional network and patch-level CRFs for indoor semantic segmentation. Presented at the 2016 IEEE. In: 11th Conference on Industrial Electronics and Applications (ICIEA). pp. 150–155. https://doi.org/10.1109/iciea.2016.7603568.
Liu, Y., Chen, X., Peng, H., & Wang, Z. (2017). Multi-focus image fusion with a deep convolutional neural network. Information Fusion, 36, 191–207. https://doi.org/10.1016/j.inffus.2016.12.001.
Prentašić, P., & Lončarić, S. (2016). Detection of exudates in fundus photographs using deep neural networks and anatomical landmark detection fusion. Computer Methods and Programs in Biomedicine, 137, 281–292. https://doi.org/10.1016/j.cmpb.2016.09.018.
Bai, J., Wu, Y., Zhang, J., & Chen, F. (2015). Subset based deep learning for RGB-D object recognition. Neurocomputing, 165, 280–292. https://doi.org/10.1016/j.neucom.2015.03.017.
Huang, Z., Wang, R., Shan, S., & Chen, X. (2015). Face recognition on large-scale video in the wild with hybrid Euclidean-and-Riemannian metric learning. Pattern Recognition, 48(10), 3113–3124. https://doi.org/10.1016/j.patcog.2015.03.011.
Tao, Q.-Q., Zhan, S., Li, X.-H., & Kurihara, T. (2016). Robust face detection using local CNN and SVM based on kernel combination. Neurocomputing, 211, 98–105. https://doi.org/10.1016/j.neucom.2015.10.139.
Cai, M., & Liu, J. (2016). Maxout neurons for deep convolutional and LSTM neural networks in speech recognition. Speech Communication, 77, 53–64. https://doi.org/10.1016/j.specom.2015.12.003.
Li, X., Yang, Y., Pang, Z., & Wu, X. (2015). A comparative study on selecting acoustic modeling units in deep neural networks based large vocabulary Chinese speech recognition. Neurocomputing, 170, 251–256. https://doi.org/10.1016/j.neucom.2014.07.087.
Jiao, Z., Gao, X., Wang, Y., & Li, J. (2016). A deep feature based framework for breast masses classification. Neurocomputing, 197, 221–231. https://doi.org/10.1016/j.neucom.2016.02.060.
Sun, W., Tseng, T.-L., Zhang, J., & Qian, W. (2017). Enhancing deep convolutional neural network scheme for breast cancer diagnosis with unlabeled data. Computerized Medical Imaging and Graphics, 57, 4. https://doi.org/10.1016/j.compmedimag.2016.07.004.
Jiang, F., Li, H., Hou, X., Sheng, B., Shen, R., Liu, X.-Y., et al. (2017). Abdominal adipose tissues extraction using multi-scale deep neural network. Neurocomputing, 229, 23–33. https://doi.org/10.1016/j.neucom.2016.07.059.
Havaei, M., Davy, A., Warde-Farley, D., Biard, A., Courville, A., Bengio, Y., et al. (2017). Brain tumor segmentation with deep neural networks. Medical Image Analysis, 35, 18–31. https://doi.org/10.1016/j.media.2016.05.004.
Gao, X. W., Hui, R., & Tian, Z. (2017). Classification of CT brain images based on deep learning networks. Computer Methods and Programs in Biomedicine, 138, 49–56. https://doi.org/10.1016/j.cmpb.2016.10.007.
Kleesiek, J., Urban, G., Hubert, A., Schwarz, D., Maier-Hein, K., Bendszus, M., et al. (2016). Deep MRI brain extraction: a 3D convolutional neural network for skull stripping. NeuroImage, 129, 460–469. https://doi.org/10.1016/j.neuroimage.2016.01.024.
Kamnitsas, K., Ledig, C., Newcombe, V. F. J., Simpson, J. P., Kane, A. D., Menon, D. K., et al. (2017). Efficient multi-scale 3D CNN with fully connected CRF for accurate brain lesion segmentation. Medical Image Analysis, 36, 61–78. https://doi.org/10.1016/j.media.2016.10.004.
Spampinato, C., Palazzo, S., Giordano, D., Aldinucci, M., & Leonardi, R. (2017). Deep learning for automated skeletal bone age assessment in X-ray images. Medical Image Analysis, 36, 41–51. https://doi.org/10.1016/j.media.2016.10.010.
Tang, Z., Li, C., & Sun, S. (2017). Single-trial EEG classification of motor imagery using deep convolutional neural networks. Optik - International Journal for Light and Electron Optics, 130, 11–18. https://doi.org/10.1016/j.ijleo.2016.10.117.
Rahhal, M. M. A., Bazi, Y., AlHichri, H., Alajlan, N., Melgani, F., & Yager, R. R. (2016). Deep learning approach for active classification of electrocardiogram signals. Information Sciences, 345, 340–354. https://doi.org/10.1016/j.ins.2016.01.082.
Kiranyaz, S., Ince, T., & Gabbouj, M. (2016). Real-time patient-specific ECG classification by 1-D convolutional neural networks. IEEE Transactions on Bio-Medical Engineering, 63(3), 664–675. https://doi.org/10.1109/TBME.2015.2468589.
Xiong, P., Wang, H., Liu, M., Zhou, S., Hou, Z., & Liu, X. (2016). ECG signal enhancement based on improved denoising auto-encoder. Engineering Applications of Artificial Intelligence, 52, 194–202. https://doi.org/10.1016/j.engappai.2016.02.015.
De Chazal, P., O’Dwyer, M., & Reilly, R. B. (2004). Automatic classification of heartbeats using ECG morphology and heartbeat interval features. IEEE Transactions on Bio-Medical Engineering, 51(7), 1196–1206. https://doi.org/10.1109/TBME.2004.827359.
Homaeinezhad, M. R., Atyabi, S. A., Tavakkoli, E., Toosi, H. N., Ghaffari, A., & Ebrahimpour, R. (2012). ECG arrhythmia recognition via a neuro-SVM–KNN hybrid classifier with virtual QRS image-based geometrical features. Expert Systems with Applications, 39(2), 2047–2058. https://doi.org/10.1016/j.eswa.2011.08.025.
Zhang, Z., Dong, J., Luo, X., Choi, K. S., & Wu, X. (2014). Heartbeat classification using disease-specific feature selection. Computers in Biology and Medicine, 46, 79–89. https://doi.org/10.1016/j.compbiomed.2013.11.019.
De Chazal, P., & Reilly, R. B. (2006). A patient-adapting heartbeat classifier using ECG morphology and heartbeat interval features. IEEE Transactions on Bio-Medical Engineering, 53(12 Pt 1), 2535–2543. https://doi.org/10.1109/TBME.2006.883802.
Hu, Y. H., Palreddy, S., & Tompkins, W. J. (1997). A patient-adaptable ECG beat classifier using a mixture of experts approach. IEEE Transactions on Bio-Medical Engineering, 44(9), 891–900. https://doi.org/10.1109/10.623058.
Ince, T., Kiranyaz, S., & Gabbouj, M. (2009). A generic and robust system for automated patient-specific classification of ECG signals. IEEE Transactions on Bio-Medical Engineering, 56(5), 1415–1426. https://doi.org/10.1109/TBME.2009.2013934.
Jiang, W., & Kong, S. G. (2007). Block-based neural networks for personalized ECG signal classification. IEEE Transactions on Neural Networks, 18(6), 1750–1761. https://doi.org/10.1109/TNN.2007.900239.
Azizpour, H., Razavian, A. S., Sullivan, J., Maki, A., & Carlsson, S. (2016). Factors of transferability for a generic ConvNet representation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 38(9), 1790–1802. https://doi.org/10.1109/TPAMI.2015.2500224.
Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). ImageNet Classification with Deep Convolutional Neural Networks. In F. Pereira, C. J. C. Burges, L. Bottou, & K. Q. Weinberger (Eds.), Advances in neural information processing systems 25 (pp. 1097–1105). USA: Curran Associates Inc.
Simonyan, K., Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition . https://arxiv.org/abs/1409.1556.
Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., Anguelov, D., et al. (2015). Going deeper with convolutions, Presented at the 2015. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR). (pp. 1–9). https://doi.org/10.1109/cvpr.2015.7298594.
Priya, K. D., Rao, G. S., & Rao, P. S. V. S. (2016). Comparative analysis of wavelet thresholding techniques with wavelet-Wiener filter on ECG signal. Procedia Computer Science, 87, 178–183. https://doi.org/10.1016/j.procs.2016.05.145.
Yochum, M., Renaud, C., & Jacquir, S. (2016). Automatic detection of P, QRS and T patterns in 12 leads ECG signal based on CWT. Biomedical Signal Processing and Control, 25, 46–52. https://doi.org/10.1016/j.bspc.2015.10.011.
Remya, R. S., Indiradevi, K. P., & Babu, K. K. A. (2016). Classification of myocardial infarction using multi resolution wavelet analysis of ECG. Procedia Technology, 24, 949–956. https://doi.org/10.1016/j.protcy.2016.05.195.
Nannaparaju, V., & Narasimman, S. (2015). Detection of T-wave alternans in ECGs by wavelet analysis. Procedia Materials Science, 10, 307–313. https://doi.org/10.1016/j.mspro.2015.06.055.
Thomas, M., Das, M. K., & Ari, S. (2015). Automatic ECG arrhythmia classification using dual tree complex wavelet based features. AEU—International Journal of Electronics and Communications, 69(4), 715–721. https://doi.org/10.1016/j.aeue.2014.12.013.
Mahapatra, S., Mohanta, D., Mohanty, P., Nayak, Sk, & Behari, Pk. (2016). A neuro-fuzzy based model for analysis of an ECG signal using wavelet packet tree. Procedia Computer Science, 92, 175–180. https://doi.org/10.1016/j.procs.2016.07.343.
Kumar, R., Kumar, A., & Singh, G. K. (2016). Hybrid method based on singular value decomposition and embedded zero tree wavelet technique for ECG signal compression. Computer Methods and Programs in Biomedicine, 129, 135–148. https://doi.org/10.1016/j.cmpb.2016.01.006.
Mourad, K., & Fethi, B. R. (2016). Efficient automatic detection of QRS complexes in ECG signal based on reverse biorthogonal wavelet decomposition and nonlinear filtering. Measurement, 94, 663–670. https://doi.org/10.1016/j.measurement.2016.09.014.
Vincent, P., Larochelle, H., Lajoie, I., Bengio, Y., & Manzagol, P. (2010). Stacked denoising autoencoders: learning useful representations in a deep network with a local denoising criterion. Journal of Machine Learning Research, 11, 3371–3408.
PhysioNet. (2016). ECGPUWAVE (MATLAB/Octave version). https://physionet.org/physiotools/ecgpuwave/src/matlab. Accessed 11 July 2017.
Nocedal, J. (1980). Updating quasi-Newton matrices with limited storage. Mathematics of Computation, 35(151), 773–782. https://doi.org/10.1090/S0025-5718-1980-0572855-7.
Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., & Salakhutdinov, R. (2014). Dropout: a simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1), 1929–1958.
Bengio, Y., Courville, A., & Vincent, P. (2013). Representation learning: a review and new perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8), 1798–1828. https://doi.org/10.1109/TPAMI.2013.50.
Kutlu, Y., & Kuntalp, D. (2012). Feature extraction for ECG heartbeats using higher order statistics of WPD coefficients. Computer Methods and Programs in Biomedicine, 105(3), 257–267. https://doi.org/10.1016/j.cmpb.2011.10.002.
Rahhal, M. M. A., Bazi, Y., Alajlan, N., Malek, S., Al-Hichri, H., Melgani, F., et al. (2015). Classification of AAMI heartbeat classes with an interactive ELM ensemble learning approach. Biomedical Signal Processing and Control, 19, 56–67. https://doi.org/10.1016/j.bspc.2015.03.010.
Acknowledgements
The authors would like to extend their sincere appreciation to the Deanship of Scientific Research at King Saud University for its funding this Research group NO.(RG -1435-050).
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflicts of interest
The authors that they declare no conflict of interest.
Rights and permissions
About this article
Cite this article
Al Rahhal, M.M., Bazi, Y., Al Zuair, M. et al. Convolutional Neural Networks for Electrocardiogram Classification. J. Med. Biol. Eng. 38, 1014–1025 (2018). https://doi.org/10.1007/s40846-018-0389-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s40846-018-0389-7