Skip to main content
Log in

A New Approach for Congestive Heart Failure and Arrhythmia Classification Using Angle Transformation with LSTM

  • Research Article-Computer Engineering and Computer Science
  • Published:
Arabian Journal for Science and Engineering Aims and scope Submit manuscript

Abstract

Electrocardiogram (ECG) is widely used as a diagnostic method to identify various heart diseases such as heart failure, cardiac and sinus rhythms. The ECG signal analyzes the electrical activity of the heart and shows waveforms that help detect heart irregularities. A new approach is suggested for automatic identification of congestive heart failure (CHF) and arrhythmia (ARR). In this study, long short-term memory neural networks (LSTM) were used to classify ECG signals by combining LSTM and angle transform (AT) methods. The AT uses the angular information of the neighbor signals on both sides of the target signal to classify ECG signals. The new signals obtained as a result of AT conversion vary between 0 and 359. Histogram of new signals determines the inputs to the LSTM method. LSTM uses histograms to distinguish between three different conditions: ARR, CHF, and normal sinus rhythm (NSR). The proposed approach is tested on ECG signals received from MIT-BIH and BIDMC databases. The experimental results have shown that the proposed method, AT + LSTM, has achieved high success rate of classifying ECG signals. The success rate in classifying CHF, ARR, and NSR ECG signals for 70–30% training sets was observed as 98.97%. Further experiments were conducted for varying training–testing dataset ratio to demonstrate the robustness of the proposed approach, and success rates are observed between 98.56 and 100%. Another experiment regarding different values of the dR and dL distance parameters of the AT model has shown that the performance of the proposed method increases while increasing the distance value. The success rates from increasing the distance value were obtained between 98.97 and 100%. To show the effect of segment lengths of ARR, NSR, and CHF signals on classification success, these signals were divided into segments of 10,000, 5000, and 1000 lengths. Achieved success rates ranged from 97.75 to 98.97%. Considering the results, high results were observed with the AT + LSTM approach, which is generally recommended in all scenarios.

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
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13

Similar content being viewed by others

References

  1. Kumar, M.; Pachori, R.B.; Acharya, U.R.: Use of accumulated entropies for automated detection of congestive heart failure in flexible analytic wavelet transform framework based on short-term HRV signals. Entropy 19(3), 92 (2017)

    Article  Google Scholar 

  2. Bhurane, A.A.; Sharma, M.; San-Tan, R.; Acharya, U.R.: An efficient detection of congestive heart failure using frequency localized filter banks for the diagnosis with ECG signals. Cogn. Syst. Res. 55, 82–94 (2019)

    Article  Google Scholar 

  3. Yildirim, Ö.: A novel wavelet sequence based on deep bidirectional LSTM network model for ECG signal classification. Comput. Biol. Med. 96, 189–202 (2018)

    Article  Google Scholar 

  4. Yildirim, O.; Baloglu, U.B.; Tan, R.S.; Ciaccio, E.J.; Acharya, U.R.: A new approach for arrhythmia classification using deep coded features and LSTM networks. Comput. Methods Programs Biomed. 176, 121–133 (2019)

    Article  Google Scholar 

  5. Kumari, C.U.; Murthy, A.S.D.; Prasanna, B.L.; Reddy, M.P.P.; Panigrahy, A.K.: An automated detection of heart arrhythmias using machine learning technique: SVM. Mater. Today: Proc. 45, 1393–1398 (2021)

    Google Scholar 

  6. Ponikowski, P.; Voors, A.A.; Anker, S.D.; Bueno, H.; Cleland, J.G.F.; Coats, A.J.S.; Falk, V.; González-Juanatey, J.R.; Harjola, V.P.; Jankowska, E.A.; Jessup, M.: The Task Force for the diagnosis and treatment of acute and chronic heart failure of the European Society of Cardiology (ESC). 2016 ESC Guidelines for the diagnosis and treatment of acute and chronic heart failure. Eur. Heart J. 37, 2129–2200 (2016)

    Article  Google Scholar 

  7. Eltrass, A.S.; Tayel, M.B.; Ammar, A.I.: A new automated CNN deep learning approach for identification of ECG congestive heart failure and arrhythmia using constant-Q non-stationary Gabor transform. Biomed. Signal Process. Control 65, 102326 (2021)

    Article  Google Scholar 

  8. Pecchia, L.; Melillo, P.; Sansone, M.; Bracale, M.: Discrimination power of short-term heart rate variability measures for CHF assessment. IEEE Trans. Inf Technol. Biomed. 15(1), 40–46 (2010)

    Article  Google Scholar 

  9. Liu, G.; Wang, L.; Wang, Q.; Zhou, G.; Wang, Y.; Jiang, Q.: A new approach to detect congestive heart failure using short-term heart rate variability measures. PLoS One 9(4), e93399 (2014)

    Article  Google Scholar 

  10. Thomas, M.; Das, M.K.; Ari, S.: Automatic ECG arrhythmia classification using dual tree complex wavelet based features, AEU—Int. J. Electron. Commun. 69(4), 715–721 (2015)

    Google Scholar 

  11. Cornforth, D.J.; Jelinek, H.F.: Detection of congestive heart failure using Renyi entropy. IEEE Comput. Cardiol. Conf. (CinC) 43, 669–672 (2016)

    Google Scholar 

  12. Kaouter, K.; Mohamed, T.; Sofiene, D.; Abbas, D.; Fouad, M.: Full training convolutional neural network for ECG signals classification. AIP Conf. Proc. 2190(1), 020055 (2019)

    Article  Google Scholar 

  13. Isler, Y.; Narin, A.; Ozer, M.; Perc, M.: Multi-stage classification of congestive heart failure based on short-term heart rate variability. Chaos Solitons Fractals 118(1), 145–151 (2019)

    Article  Google Scholar 

  14. Wang, L.; Zhou, W.; Chang, Q.; Chen, J.; Zhou, X.: Deep ensemble detection of congestive heart failure using short-term RR intervals. IEEE Access 7, 69559–69574 (2019)

    Article  Google Scholar 

  15. Orhan, U.: Real-time CHF detection from ECG signals using a novel discretization method. Comput. Biol. Med. 43(10), 1556–1562 (2013)

    Article  Google Scholar 

  16. Chen, W.; Zheng, L.; Li, K.; Wang, Q.; Liu, G.; Jiang, Q.: A novel and effective method for congestive heart failure detection and quantification using dynamic heart rate variability measurement. PLoS One 11(11), e0165304 (2016)

    Article  Google Scholar 

  17. Li, Y.; Zhang, Y.; Zhao, L.; Zhang, Y.; Liu, C.; Zhang, L.; Zhang, L.; Li, Z.; Wang, B.; Ng, E.; Li, J.: Combining convolutional neural network and distance distribution matrix for identification of congestive heart failure. IEEE Access 6, 39734–39744 (2018)

    Article  Google Scholar 

  18. Moody, G.B.; Mark, R.G.: The impact of the MIT-BIH arrhythmia database. IEEE Eng. Med. Biol. Mag. 20(3), 45–50 (2001)

    Article  Google Scholar 

  19. Goldberger, A.L.; Amaral, L.A.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; 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 

  20. Baim, D.S.; Colucci, W.S.; Monrad, E.S.; Smith, H.S.; Wright, R.F.; Lanoue, A.; Gauthier, D.F.; Ransil, B.J.; Grossman, W.; Braunwald, E.: Survival of patients with severe congestive heart failure treated with oral milrinone. J. Am. Coll. Cardiol. 7(3), 661–670 (1986)

    Article  Google Scholar 

  21. Ayvaz, E.; Kaplan, K.; Kuncan, M.: An integrated LSTM neural networks approach to sustainable balanced scorecard-based early warning system. IEEE Access 8, 37958–37966 (2020)

    Article  Google Scholar 

  22. Londhe, A.N.; Atulkar, M.: Semantic segmentation of ECG waves using hybrid channel-mix convolutional and bidirectional LSTM. Biomed. Signal Process. Control 63, 102162 (2021)

    Article  Google Scholar 

  23. Hu, X.; Yuan, S.; Xu, F.; Leng, Y.; Yuan, K.; Yuan, Q.: Scalp EEG classification using deep Bi-LSTM network for seizure detection. Comput. Biol. Med. 124, 103919 (2020)

    Article  Google Scholar 

  24. Chen, C.; Hua, Z.; Zhang, R.; Liu, G.; Wen, W.: Automated arrhythmia classification based on a combination network of CNN and LSTM. Biomed. Signal Process. Control 57, 101819 (2020)

    Article  Google Scholar 

  25. Yin, Y.; Zheng, X.; Hu, B.; Zhang, Y.; Cui, X.: EEG emotion recognition using fusion model of graph convolutional neural networks and LSTM. Appl. Soft Comput. 100, 106954 (2020)

    Article  Google Scholar 

  26. Dasan, E.; Panneerselvam, I.: A novel dimensionality reduction approach for ECG signal via convolutional denoising autoencoder with LSTM. Biomed. Signal Process. Control 63, 102225 (2021)

    Article  Google Scholar 

  27. Michielli, N.; Acharya, U.R.; Molinari, F.: Cascaded LSTM recurrent neural network for automated sleep stage classification using single-channel EEG signals. Comput. Biol. Med. 106, 71–81 (2019)

    Article  Google Scholar 

  28. Tayel, M.B.; Eltrass, A.S.; Ammar, A.I.: A new multi-stage combined kernel filtering approach for ECG noise removal. J. Electrocardiol. 51(2), 265–275 (2018)

    Article  Google Scholar 

  29. Tripathy, R.K.; Paternina, M.R.; Arrieta, J.G.; Zamora-Méndez, A.; Naik, G.R.: Automated detection of congestive heart failure from electrocardiogram signal using Stockwell transform and hybrid classification scheme. Comput. Methods Programs Biomed. 173, 53–65 (2019)

    Article  Google Scholar 

  30. Acharya, U.R.; Fujita, H.; Oh, S.L.; Hagiwara, Y.; Tan, J.H.; Adam, M.; San Tan, R.: Deep convolutional neural network for the automated diagnosis of congestive heart failure using ECG signals. Appl. Intell. 49(1), 16–27 (2019)

    Article  Google Scholar 

  31. Sharma, A.; Garg, N.; Patidar, S.; San Tan, R.; Acharya, U.R.: Automated pre-screening of arrhythmia using hybrid combination of Fourier-Bessel expansion and LSTM. Comput. Biol. Med. 120, 103753 (2020)

    Article  Google Scholar 

  32. Ketu, S.; Mishra, P.K.: Empirical analysis of machine learning algorithms on imbalance electrocardiogram based arrhythmia dataset for heart disease detection. Arab. J. Sci. Eng. (2021). https://doi.org/10.1007/s13369-021-05972-2

    Article  Google Scholar 

  33. Murugappan, M.; Murugesan, L.; Jerritta, S.; Adeli, H.: Sudden Cardiac Arrest (SCA) Prediction Using ECG Morphological Features. Arab. J. Sci. Eng. 46(2), 947–961 (2021)

    Article  Google Scholar 

Download references

Acknowledgments

This study was performed in Siirt University Faculty of Engineering Machine Vision (MaVi) Laboratory. The authors of this article would like to thank the staff of MaVi Laboratory for their support.

Funding

No funding.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yılmaz Kaya.

Ethics declarations

Conflict of interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Ethical statement

The open-source dataset provided by Physionet (open-source) was used in the study (physionet.org).

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kaya, Y., Kuncan, F. & Tekin, R. A New Approach for Congestive Heart Failure and Arrhythmia Classification Using Angle Transformation with LSTM. Arab J Sci Eng 47, 10497–10513 (2022). https://doi.org/10.1007/s13369-022-06617-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s13369-022-06617-8

Keywords

Navigation