Skip to main content

Using the HAAR Wavelet Transform and K-nearest Neighbour Algorithm to Improve ECG Detection and Classification of Arrhythmia

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 12799))

Abstract

This study attempted to enhance ECG detection and classification of arrhythmias by using ECG arrhythmia classification algorithm implemented from the Haar wavelet transform and the k-nearest neighbor (k-NN) classifier. The development of the ECG arrhythmia classification algorithm consisted of five essential phases which included pre-processing, R-peak detection, feature extraction, feature selection, and classification. The pre-processing phase involved the band-pass Butterworth filter and zero-phase digital filter. The Haar wavelet transform and thresholding process were used to detect the R-peaks of the ECG signals. The morphological features were extracted from the R-peak locations, whereas the statistical features were extracted from the wavelet decomposition of Haar wavelet transform in the feature extraction phase. The feature selection phase utilized the neighborhood component analysis (NCA) and hyper-parameter optimization to select relevant features for the classification model. The classification model was developed by using the k-nearest neighbor (k-NN) classifier. The ECG signals obtained from the MIT-BIH arrhythmia database were used to evaluate the performance of the classification algorithm as proposed in this study. The result of this study showed average accuracy (ACC) of 97.30%.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. WebMD: When Your Heart Rhythm Isn’t Normal. WebMD (2020). https://www.webmd.com/heart-disease/atrial-fibrillation/heart-disease-abnormal-heart-rhythm#1-2. Accessed 12 Mar 2020

  2. Heart Foundation: Arrhythmias. Heart Foundation (2020). https://www.heartfoundation.org.au/your-heart/heart-conditions/arrhythmias. Accessed 13 Mar 2020

  3. Stanford Medicine: What is an electrocardiogram? Stanford Medicine (2020). https://stanfordhealthcare.org/medical-tests/e/ekg.html. Accessed 12 Mar 2020

  4. Das, M.K., Ari, S.: ECG beats classification using mixture of features. Int. Sch. Res. Not. 2014, 1–12 (2014)

    Article  Google Scholar 

  5. Anwar, S.M., Gul, M., Majid, M., Alnowami, M.: Arrhythmia classification of ECG signals using hybrid features. Comput. Math. Methods Med. 2018 (2018)

    Google Scholar 

  6. Chashmi, A.J., Amirani, M.C.: An efficient and automatic ECG arrhythmia diagnosis system using DWT and HOS features and entropy-based feature selection procedure. J. Electr. Bioimpedance 10(1), 47–54 (2019)

    Article  Google Scholar 

  7. Deshmukh, S.: ECG Feature Extractor. MathWorks (2017)

    Google Scholar 

  8. Plawiak, P.: ECG signals (1000 fragments). Mendeley Data (2017)

    Google Scholar 

  9. Sahoo, S., Kanungo, B., Behera, S., Sabut, S.: Multiresolution wavelet transform based feature extraction and ECG classification to detect cardiac abnormalities. Meas. J. Int. Meas. Confed. 108, 55–66 (2017)

    Article  Google Scholar 

  10. Li, P., et al.: High-performance personalized heartbeat classification model for long-term ECG signal. IEEE Trans. Biomed. Eng. 64(1), 78–86 (2017)

    Article  Google Scholar 

  11. Sahoo, S., Mohanty, M., Behera, S., Sabut, S.K.: ECG beat classification using empirical mode decomposition and mixture of features. J. Med. Eng. Technol. 41(8), 652–661 (2017)

    Article  Google Scholar 

  12. Nguyen, M.T., Shahzad, A., Van Nguyen, B., Kim, K.: Diagnosis of shockable rhythms for automated external defibrillators using a reliable support vector machine classifier. Biomed. Signal Process. Control 44, 258–269 (2018)

    Article  Google Scholar 

  13. Raj, S., Ray, K.C.: Automated recognition of cardiac arrhythmias using sparse decomposition over composite dictionary. Comput. Methods Programs Biomed. 165, 175–186 (2018)

    Article  Google Scholar 

  14. Yang, W., Si, Y., Wang, D., Guo, B.: Automatic recognition of arrhythmia based on principal component analysis network and linear support vector machine. Comput. Biol. Med. 101, 22–32 (2018)

    Article  Google Scholar 

  15. Rai, H.M., Chatterjee, K.: A novel adaptive feature extraction for detection of cardiac arrhythmias using hybrid technique MRDWT & MPNN classifier from ECG big data. Big Data Res. 12, 13–22 (2018)

    Article  Google Scholar 

  16. Oh, S.L., Ng, E.Y.K., Tan, R.S., Acharya, U.R.: Automated diagnosis of arrhythmia using combination of CNN and LSTM techniques with variable length heart beats. Comput. Biol. Med. 102, 278–287 (2018)

    Article  Google Scholar 

  17. Sannino, G., De. Pietro, G.: A deep learning approach for ECG-based heartbeat classification for arrhythmia detection. Futur. Gener. Comput. Syst. 86, 446–455 (2018)

    Article  Google Scholar 

  18. Mathews, S.M., Kambhamettu, C., Barner, K.E.: A novel application of deep learning for single-lead ECG classification. Comput. Biol. Med. 99, 53–62 (2018)

    Article  Google Scholar 

  19. Xu, X., Liu, H.: ECG heartbeat classification using convolutional neural networks. IEEE Access 8, 8614–8619 (2020)

    Article  Google Scholar 

  20. Yang, H., Wei, Z.: Arrhythmia recognition and classification using combined parametric and visual pattern features of ECG morphology. IEEE Access 8, 47103–47117 (2020)

    Article  Google Scholar 

  21. Atal, D.K., Singh, M.: Arrhythmia classification with ECG signals based on the optimization-enabled deep convolutional neural network. Comput. Methods Programs Biomed. 196, 105607 (2020)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to A. M. Khairuddin .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Khairuddin, A.M., Ku Azir, K.N.F. (2021). Using the HAAR Wavelet Transform and K-nearest Neighbour Algorithm to Improve ECG Detection and Classification of Arrhythmia. In: Fujita, H., Selamat, A., Lin, J.CW., Ali, M. (eds) Advances and Trends in Artificial Intelligence. From Theory to Practice. IEA/AIE 2021. Lecture Notes in Computer Science(), vol 12799. Springer, Cham. https://doi.org/10.1007/978-3-030-79463-7_26

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-79463-7_26

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-79462-0

  • Online ISBN: 978-3-030-79463-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics