Skip to main content
Log in

Categorization of ECG signals based on the dense recurrent network

  • Original Paper
  • Published:
Signal, Image and Video Processing Aims and scope Submit manuscript

Abstract

Electrocardiograph (ECG) signals are an important source of data on human heart health and are widely used to detect different types of arrhythmias. With the development of deep learning, end-to-end ECG classification models based on neural networks have emerged, but most of the existing models are only for small datasets, and there is a problem of poor generalization ability. In order to solve the above two problems, we present a novel deep learning architecture, DRNet, which integrates DenseNet with bidirectional long short-term memory (BiLSTM) to form the Dense (D) Recurrent (R) Network with BiLSTM serving as the recurrent structure. The DenseNet layer is used to extract the deep features of the ECG signal; and the BiLSTM layer can aggregate the extracted features in time, which is more sensitive to the timing status of the ECG. These deep features enrich the temporal background and serve as the foundation for subsequent classification tasks. In the classification stage, the model categorizes ECG signals into one of four types: "normal," "AF" (atrial fibrillation), "other rhythms," and "noisy." In addition, in order to solve the problem of misclassification caused by imbalanced ECG signal samples, an improved cross-entropy loss function, a multiclass concentration loss function, is proposed in this paper, and the partial derivative solution process is given. Finally, in the prediction of ECG signals, the existing simple voting is improved to a weighted voting method. The comparison experiment with the ordinary dense neural network on the published larger ECG dataset proves that this method not only simplifies feature extraction but also greatly enhances the generalization ability of the network.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

Similar content being viewed by others

Availability of data and materials

The dataset used can be accessed and downloaded by https://www.physionet.org/content/challenge-2017/1.0.0/.

References

  1. Park, K.S. et al.: Hierarchical support vector machine based heartbeat classification using higher order statistics and hermite basis function. In: 2008 Computers in Cardiology, Bologna, Italy, 2008, pp. 229–232. https://doi.org/10.1109/CIC.2008.4749019

  2. de Chazal, P., O’Dwyer, M., Reilly, R.B.: Automatic classification of heartbeats using ECG morphology and heartbeat interval features. IEEE Trans. Biomed. Eng. 51(7), 1196–1206 (2004). https://doi.org/10.1109/TBME.2004.827359

    Article  Google Scholar 

  3. Özcan, N.Ö., Gürgen, F.: Fuzzy support vector machines for ECG arrhythmia detection. In: 010 20th International Conference on Pattern Recognition, Istanbul, Turkey, 2010, pp. 2973–2976. https://doi.org/10.1109/ICPR.2010.728

  4. Huang, H., Liu, J., Zhu, Q., et al.: A new hierarchical method for inter-patient heartbeat classification using random projections and RR intervals. BioMed. Eng. OnLine 13, 90 (2014). https://doi.org/10.1186/1475-925X-13-90

    Article  Google Scholar 

  5. Nasiri, J.A., Naghibzadeh, M., Yazdi, H.S., Naghibzadeh, B.: ECG arrhythmia classification with support vector machines and genetic algorithm. In: 2009 Third UKSim European Symposium on Computer Modeling and Simulation, Athens, Greece, 2009, pp. 187–192. https://doi.org/10.1109/EMS.2009.39

  6. Polat, K., Güneş, S.: Detection of ECG arrhythmia using a differential expert system approach based on principal component analysis and least square support vector machine. Appl. Math. Comput. 186(1), 898–906 (2007)

    MathSciNet  Google Scholar 

  7. Krizhevsky, A., Sutskever, I., Hinton, G.E.: ImageNet classification with deep convolutional neural networks. In: Proceedings of the 25th International Conference on Neural Information Processing Systems—Volume 1 (NIPS'12). Curran Associates Inc., Red Hook, NY, USA, pp. 1097–1105 (2012)

  8. Sun, Y., Wang, X., Tang, X.: Sparsifying neural network connections for face recognition. 2015. https://arxiv.org/abs/1512.01891v1

  9. Ronneberger, O., Fischer, P., Brox, T.: U-Net: convolutional networks for biomedical image segmentation. In: International Conference on Medical Image Computing & Computer-assisted Intervention (2015)

  10. Hinton, G., et al.: Deep neural networks for acoustic modeling in speech recognition: the shared views of four research groups. IEEE Signal Process. Mag. 29(6), 82–97 (2012). https://doi.org/10.1109/MSP.2012.2205597

    Article  Google Scholar 

  11. Deng, L., Hinton, G., Kingsbury, B.: New types of deep neural network learning for speech recognition and related applications: an overview. In: 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, Vancouver, BC, Canada, 2013, pp. 8599–8603. https://doi.org/10.1109/ICASSP.2013.6639344

  12. Sutskever, I., Vinyals, O., Le, Q.V.: Sequence to sequence learning with neural networks. In: Proceedings of the 27th International Conference on Neural Information Processing Systems—Volume 2 (NIPS'14). MIT Press, Cambridge, MA, USA, pp. 3104–3112 (2014)

  13. Yu, S.-N., Chen, Y.-H.: Electrocardiogram beat classification based on wavelet transformation and probabilistic neural network. Pattern Recognit. Lett. 28(10), 1142–1150 (2007). https://doi.org/10.1016/j.patrec.2007.01.017

    Article  Google Scholar 

  14. Meau, Y.P., Ibrahim, F., Narainasamy, S.A., Omar, R.: Intelligent classification of electrocardiogram (ECG) signal using extended Kalman Filter (EKF) based neuro fuzzy system. Comput. Methods Programs Biomed. 82(2), 157–168 (2006). https://doi.org/10.1016/j.cmpb.2006.03.003

    Article  Google Scholar 

  15. Ozbay, Y., Ceylan, R., Karlik, B.: A fuzzy clustering neural network architecture for classification of ECG arrhythmias. Comput. Biol. Med. 36(4), 376–388 (2006). https://doi.org/10.1016/j.compbiomed.2005.01.006

    Article  Google Scholar 

  16. Engin, M.: ECG beat classification using neuro-fuzzy network. Pattern Recognit. Lett. 25(15), 1715–1722 (2004). https://doi.org/10.1016/j.patrec.2004.06.014

    Article  Google Scholar 

  17. Collobert, R., Weston, J., Bottou, L., et al.: Natural language processing (almost) from scratch. J. Mach. Learn. Res. (2011)

  18. Güler, I., Übeyli, E.D.: ECG beat classifier designed bycombined neural network model. Pattern Recognit. 38(2), 199–208 (2005)

    Article  Google Scholar 

  19. He, R., Wang, K., Zhao, N., Liu, Y., Yuan, Y., Li, Q., Zhang, H.: Automatic detection of atrial fibrillation based on continuous wavelet transform and 2D convolutional neural networks. Front. Physiol. 9, 1206 (2018)

    Article  Google Scholar 

  20. Fan, X., Yao, Q., Cai, Y., Miao, F., Sun, F., Li, Y.: Multiscaled fusion of deep convolutional neural networks for screening atrial fibrillation from single lead short ECG recordings. IEEE J. Biomed. Health Inform. 22(6), 1744–1753 (2018). https://doi.org/10.1109/JBHI.2018.2858789

    Article  Google Scholar 

  21. Rajpurkar, P., Hannun, A.Y., Haghpanahi, M., et al.: Cardiologist-level arrhythmia detection with convolutional neural networks. (2017). https://arxiv.org/pdf/1707.01836.pdf

  22. Zhang, C., Wang, G., Zhao, J. Gao, P., Lin, J., Yang, H.: Patient-specific ECG classification based on recurrent neural networks and clustering technique. In: 2017 13th IASTED International Conference on Biomedical Engineering (BioMed), Innsbruck, Austria, 2017, pp. 63–67. https://doi.org/10.2316/P.2017.852-029

  23. Xiong, Z., Stiles, M.K., Zhao, J. :Robust ECG signal classification for detection of atrial fibrillation using a novel neural network. In: 2017 Computing in Cardiology (CinC), Rennes, France, 2017, pp. 1–4. https://doi.org/10.22489/CinC.2017.066-138

  24. Zihlmann, M., Perekrestenko, D., Tschannen, M.: Convolutional recurrent neural networks for electrocardiogram classification. In: 2017 Computing in Cardiology (CinC), Rennes, France, 2017, pp. 1–4. https://doi.org/10.22489/CinC.2017.070-060

  25. Kim, M., Pan, S.B.: Deep learning based on 1-D ensemble networks using ECG for real-time user recognition. IEEE Trans. Ind. Inf. 15(10), 5656–5663 (2019). https://doi.org/10.1109/TII.2019.2909730

    Article  Google Scholar 

  26. Chen, Y.-H., Twing, A.H., Badawi, D., Danavi, J., McCauley, M., Cetin, A.E.: Atrial fibrillation risk prediction from electrocardiogram and related health data with deep neural network. In: ICASSP 2020–2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1269–1273. IEEE (2020)

  27. Pan, H., Zhu, X., Ye, Z., Chen, P.-Y., Cetin, A.E.: Real-time wireless ECG-derived respiration rate estimation using an autoencoder with a dct layer. In: ICASSP 2023–2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1–5. IEEE (2023)

  28. Huang, G., Liu, Z., Laurens, V.D.M., et al.: Densely connected convolutional networks (2016)

  29. Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural Comput. 9(8), 1735–1780 (1997). https://doi.org/10.1162/neco.1997.9.8.1735

    Article  Google Scholar 

  30. Liu, W., Wang, F., Huang, Q., Chang, S., Wang, H., He, J.: MFB-CBRNN: a hybrid network for MI detection using 12-lead ECGs. IEEE J. Biomed. Health Inf. 24(2), 503–514 (2020). https://doi.org/10.1109/JBHI.2019.2910082

    Article  Google Scholar 

  31. Cao, X., Yao, B., Chen, B.: Atrial fibrillation detection using an improved multi-scale decomposition enhanced residual convolutional neural network. IEEE Access 7, 89152–89161 (2019). https://doi.org/10.1109/ACCESS.2019.2926749

    Article  Google Scholar 

  32. Yildirim, O., Talo, M., Ciaccio, E.J., San Tan, R., Acharya, U.R.: Accurate deep neural network model to detect cardiac arrhythmia on more than 10,000 individual subject ECG records. Comput. Methods Programs Biomed. 197, 10574 (2020)

    Article  Google Scholar 

  33. Gao, Y., Wang, H., Liu, Z.: An end-to-end atrial fibrillation detection by a novel residual-based temporal attention convolutional neural network with exponential nonlinearity loss. Knowl. Based Syst. 212(1), 106589 (2020)

    Google Scholar 

  34. Graves, A., Schmidhuber, J.: Framewise phoneme classification with bidirectional LSTM and other neural network architectures. Neural Netw. 18(5–6), 602–610 (2005). https://doi.org/10.1016/j.neunet.2005.06.042

    Article  Google Scholar 

  35. Lin, T.Y., Goyal, P., Girshick, R., et al.: Focal loss for dense object detection. IEEE Trans. Pattern Anal. Mach. Intell. 99, 2999–3007 (2017)

    Google Scholar 

  36. Clifford, G.D., Liu, C., Moody, B., Li-wei, H.L., Silva, I., Li, Q., Johnson, A.E., Mark, R.G.: AF classification from a short single lead ECG recording: the PhysioNet/computing in cardiology challenge 2017. In 2017 Computing in Cardiology (CinC) 2017 Sep 24, pp. 1-4. IEEE. https://doi.org/10.22489/CinC.2017.065-469

  37. Goldberger, A., Amaral, L., Glass, L., Hausdorff, J., Ivanov, P.C., Mark, R., Stanley, H.E.: PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation 101(23), e215–e220 (2000)

    Article  Google Scholar 

  38. Glorot, X., Bengio, Y.: Understanding the difficulty of training deep feedforward neural networks. J. Mach. Learn. Res. Proc. Track. 9, 249–256 (2015)

    Google Scholar 

  39. He K, Zhang X, Ren S, et al. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In: Proceedings of the IEEE International Conference on Computer Vision. 2015, pp. 1026–1034

  40. Xiong, Z., Stiles, M.K., Zhao, J.: Robust ECG signal classification for detection of atrial fibrillation using a novel neural network. In: 2017 Computing in Cardiology (CinC). IEEE, 2017, pp. 1–4

  41. Zihlmann, M., Perekrestenko, D., Tschannen, M.: Convolutional recurrent neural networks for electrocardiogram classification. In: 2017 Computing in Cardiology (CinC). IEEE, 2017, pp. 1–4

Download references

Funding

No funding.

Author information

Authors and Affiliations

Authors

Contributions

The overall direction, topic selection and review were completed by Xinwu Yang. The first draft was written, and the program design was completed by Aoxiang Zhang. The paper was revised and the data were sorted out by Congrui Zhao, Hongxiao Yang and Mengfei Dou. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Xinwu Yang.

Ethics declarations

Competing interests

The authors of this article declare no potential conflicts of interest.

Ethical approval

ECG recordings, collected using the AliveCor device, were generously donated for this Challenge by AliveCor. The dataset was public and related research don’t involve ethics.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Yang, X., Zhang, A., Zhao, C. et al. Categorization of ECG signals based on the dense recurrent network. SIViP 18, 3373–3381 (2024). https://doi.org/10.1007/s11760-024-03000-y

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11760-024-03000-y

Keywords

Navigation