Skip to main content
Log in

QRS detection of ECG signal using U-Net and DBSCAN

  • 1176: Artificial Intelligence and Deep Learning for Biomedical Applications
  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

QRS detection is a crucial task for ECG signal analysis, which is the preliminary and essential step to further recognition and diagnosis. This paper proposes a U-Net based method for QRS detection. The method consists of three steps including preprocessing, U-Net model, and density-based spatial clustering of applications with noise(DBSCAN). The normalization is carried out using the Z-score method in preprocessing. In this study, location prediction is conducted by the U-Net model. Subsequently, the U-Net outputs are thresholded and clustered by DBSCAN. Finally, the middle points of the cluster are regards as the R-peak of the QRS complex. We demonstrate that the proposed method achieving high accuracy on ECG signals from the MIT-BIH Arrhythmia Database(MITDB). The experimental results show an average sensitivity of 99.98 %, positive predictivity of 99.95 %, accuracy of 99.93 %, and F1-score of 99.97 %. Compared with other existing methods, the overall performance is comparable and even better in terms of accuracy and F1-score.

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

Similar content being viewed by others

References

  1. Arzeno NM, Deng Z, Poon C (2008) Analysis of first-derivative based QRS detection algorithms. IEEE Trans Biomed Eng 55(2):478–484. https://doi.org/10.1109/TBME.2007.912658

    Article  Google Scholar 

  2. Benitez DS, Gaydecki PA, Zaidi A, Fitzpatrick AP (2000) A new QRS detection algorithm based on the Hilbert transform. In: Computers in Cardiology. vol 27 (Cat. 00CH37163), 24–27 Sept (2000 2000), pp379–382. https://doi.org/10.1109/CIC.2000.898536

  3. Cai W, Hu D (2020) QRS complex detection using novel deep learning neural networks. IEEE Access 8:97082–97089. https://doi.org/10.1109/access.2020.2997473

    Article  Google Scholar 

  4. Ester M, Kriegel H-P, Sander J, Xu XA (1996) Density-based algorithm for discovering clusters in large spatial databases with noise. In: The 2nd International Conference on Knowledge Discovery and Data Mining, Portland, WA, pp 226–231

  5. Farashi S (2016) A multiresolution time-dependent entropy method for QRS complex detection. Biomed Signal Process Control 24:63–71. https://doi.org/10.1016/j.bspc.2015.09.008

    Article  Google Scholar 

  6. Goldberger AL, Amaral LAN, Glass L, Hausdorff JM, Ivanov PC, Mark RG, Mietus JE, Moody GB, Peng CK, Stanley HE (2000) PhysioBank, PhysioToolkit, and PhysioNet - Components of a new research resource for complex physiologic signals. Circulation 101(23):E215–E220. https://doi.org/10.1161/01.CIR.101.23.e215

    Article  Google Scholar 

  7. Hamdi S, Ben Abdallah A, Bedoui MH (2017) Real time QRS complex detection using DFA and regular grammar. Biomed Eng Online 16:1–20. https://doi.org/10.1186/s12938-017-0322-2

  8. Hannun AY, Rajpurkar P, Haghpanahi M, Tison GH, Bourn C, Turakhia MP, Ng AY (2019) Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network. Nat Med 25(1):65-65+. https://doi.org/10.1038/s41591-018-0268-3

  9. Jia M, Li F, Wu J, Chen Z, Pu Y (2020) Robust QRS detection using high-resolution wavelet packet decomposition and time-attention convolutional neural network. IEEE Access 8:16979–16988. https://doi.org/10.1109/access.2020.2967775

    Article  Google Scholar 

  10. Kiranyaz S, Ince T, Gabbouj M (2016) Real-time patient-specific ECG classification by 1-D convolutional neural networks. IEEE Trans Biomed Eng 63(3):664–675. https://doi.org/10.1109/tbme.2015.2468589

    Article  Google Scholar 

  11. Labati RD, Munoz E, Piuri V, Sassi R, Scotti F (2019) Deep-ECG: Convolutional Neural Networks for ECG biometric recognition. Pattern Recogn Lett 126:78–85. https://doi.org/10.1016/j.patrec.2018.03.028

  12. Lee JS, Lee SJ, Choi M, Seo M, Kim SW (2019) QRS detection method based on fully convolutional networks for capacitive electrocardiogram. Expert Syst Appl 134:66–78. https://doi.org/10.1016/j.eswa.2019.05.033

  13. Manikandan MS, Soman KP (2012) A novel method for detecting R-peaks in electrocardiogram (ECG) signal. Biomed Signal Process Control 7(2):118–128. https://doi.org/10.1016/j.bspc.2011.03.004

  14. Merah M, Abdelmalik TA, Larbi BH (2015) R-peaks detection based on stationary wavelet transform. Comput Methods Prog Biomed 121(3):149–160. https://doi.org/10.1016/j.cmpb.2015.06.003

    Article  Google Scholar 

  15. Moody GB, Mark RG (2001) The impact of the MIT-BIH arrhythmia database. IEEE Eng Med Biol Mag 20(3):45–50. https://doi.org/10.1109/51.932724

    Article  Google Scholar 

  16. Nakai Y, Izumi S, Nakano M, Yamashita K, Fujii T, Kawaguchi H, Yoshimoto M (2014) Noise tolerant QRS detection using template matching with short-term autocorrelation. In: 36th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, 26–30 Aug. 2014 2014. pp 34–37. https://doi.org/10.1109/EMBC.2014.6943522

  17. Nayak C, Saha SK, Kar R, Mandal D (2019) An optimally designed digital differentiator based preprocessor for R-peak detection in electrocardiogram signal. Biomed Signal Process Control 49:440–464. https://doi.org/10.1016/j.bspc.2018.09.005

  18. Oh SL, Ng EYK, Tan RS, Acharya UR (2018) Automated diagnosis of arrhythmia using combination of CNN and LSTM techniques with variable length heart beats. Comput Biol Med 102:278–287. https://doi.org/10.1016/j.compbiomed.2018.06.002

  19. Pan J, Tompkins WJ (1985) A real-time QRS detection algorithm. IEEE Trans Biomed Eng BME 32(3):230–236. https://doi.org/10.1109/TBME.1985.325532

    Article  Google Scholar 

  20. Peimankar A, Puthusserypady S (2021) DENS-ECG: A deep learning approach for ECG signal delineation. Expert Syst Appl 165. https://doi.org/10.1016/j.eswa.2020.113911

  21. Phukpattaranont P (2015) QRS detection algorithm based on the quadratic filter. Expert Syst Appl 42(11):4867–4877. https://doi.org/10.1016/j.eswa.2015.02.012

  22. Qin Q, Li J, Yue Y, Liu C (2017) An adaptive and time-efficient ECG R-peak detection algorithm. J Healthc Eng 2017:1–14. https://doi.org/10.1155/2017/5980541

    Article  Google Scholar 

  23. Rakshit M, Das S (2017) An efficient wavelet-based automated R-peaks detection method using Hilbert transform. Biocybern Biomed Eng 37(3):566–577. https://doi.org/10.1016/j.bbe.2017.02.002

    Article  Google Scholar 

  24. Ronneberger O, Fischer P (2015) Brox TU-Net: Convolutional Networks for Biomedical Image Segmentation. In: Navab N, Hornegger J, Wells WM, Frangi AF (eds) Medical image computing and computer-assisted intervention – MICCAI 2015. Springer International Publishing, Cham, pp 234–241

  25. Sarlija M, Jurisic F, Popovic S (2017) A convolutional neural network based approach to QRS detection. In: Kovacic S, Loncaric S, Kristan M, Struc V, Vucic M (eds) Proceedings of the 10th International Symposium on Image and Signal Processing and Analysis. International Symposium on Image and Signal Processing and Analysis, pp 121–125

  26. Sharma T, Sharma KK (2017) QRS complex detection in ECG signals using locally adaptive weighted total variation denoising. Comput Biol Med 87:187–199. https://doi.org/10.1016/j.compbiomed.2017.05.027

  27. Wang X, Zou QQRS (2019) Detection in ECG signal based on residual network. In: 2019 IEEE 11th International Conference on Communication Software and Networks (ICCSN), 12–15 June 2019, pp 73–77. https://doi.org/10.1109/ICCSN.2019.8905308

  28. Xiang Y, Lin Z, Meng J (2018) Automatic QRS complex detection using two-level convolutional neural network. Biomed Eng Online 17:1–17. https://doi.org/10.1186/s12938-018-0441-4

  29. Xu X, Liu Y (2004) ECG QRS complex detection using slope vector waveform (SVW) algorithm. Conference proceedings: Annual International Conference of the IEEE Engineering in Medicine and Biology Society IEEE Engineering in Medicine and Biology Society Annual Conference 2004, pp. 3597–3600

  30. Yang H, Huang M, Cai Z, Yao Y, Liu CA, Faster R (2019) CNN-based real-time QRS detector. In: 2019 Computing in cardiology (CinC), 8–11 Sept. 2019. pp 4. https://doi.org/10.23919/CinC49843.2019.9005798

  31. Zhou Y, Hu X, Tang Z, Ahn AC (2016) Sparse representation-based ECG signal enhancement and QRS detection. Physiol Meas 37(12):2093–2110. https://doi.org/10.1088/0967-3334/37/12/2093

Download references

Acknowledgements

This work is supported by Wenfeng Innovation Foundation of CQUPT, University Innovation Team Construction Plan Funding Project of Chongqing (Smart Medical System and Key Techniques), Chongqing Key Laboratory Improvement Plan (Chongqing Key Laboratory of Photoelectronic Information Sensing and Transmitting Technology), National Natural Science Foundation of China (62001276, 61971079), Guangdong Basic and Applied Basic Research Fundation (2019A1515110560), Chongqing Research Program of Basic Research and Frontier Technology (cstc2017jcyjAX0328),the Science and Technology Research Program of Chongqing Municipal Education Commission (KJQN201800614, KJQN201800643, KJQN202000604), the Regional Creative Cooperation Program of Sichuan (2020YFQ0025), the Innovation Group of Chongqing (cstc2020jcyj-cxttX0002), the Scientific Research Foundation of CQUPT(A2016-73).

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Junchao Wang or Gwanggil Jeon.

Ethics declarations

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Additional information

Publisher’s Note

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

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Wang, H., He, S., Liu, T. et al. QRS detection of ECG signal using U-Net and DBSCAN. Multimed Tools Appl 81, 13319–13333 (2022). https://doi.org/10.1007/s11042-021-10994-x

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-021-10994-x

Keywords

Navigation