journal article·2020-02-03Open access

P-Wave Detection Using a Fully Convolutional Neural Network in Electrocardiogram Images

Rana N. Costandy, Safa M. Gasser, Mohamed S. El-Mahallawy, Mohamed W. Fakhr, Samir Y. Marzouk

Applied Sciences· Volume 10· Issue 3

Abstract

Electrocardiogram (ECG) signal analysis is a critical task in diagnosing the presence of any cardiac disorder. There are limited studies on detecting P-waves in various atrial arrhythmias, such as atrial fibrillation (AFIB), atrial flutter, junctional rhythm, and other arrhythmias due to P-wave variability and absence in various cases. Thus, there is a growing need to develop an efficient automated algorithm that annotates a 2D printed version of P-waves in the well-known ECG signal databases for validation purposes. To our knowledge, no one has annotated P-waves in the MIT-BIH atrial fibrillation database. Therefore, it is a challenge to manually annotate P-waves in the MIT-BIH AF database and to develop an automated algorithm to detect the absence and presence of different shapes of P-waves. In this paper, we present the manual annotation of P-waves in the well-known MIT-BIH AF database with the aid of a cardiologist. In addition, we provide an automatic P-wave segmentation for the same database using a fully convolutional neural network model (U-Net). This algorithm works on 2D imagery of printed ECG signals, as this type of imagery is the most commonly used in developing countries. The proposed automatic P-wave detection method obtained an accuracy and sensitivity of 98.56% and 98.78%, respectively, over the first 5 min of the second lead of the MIT-BIH AF database (a total of 8280 beats). Moreover, the proposed method is validated using the well-known automatically and manually annotated QT database (a total of 11,201 and 3194 automatically and manually annotated beats, respectively). This results in accuracies of 98.98 and 98.9%, and sensitivities of 98.97 and 97.24% for the automatically and manually annotated QT databases, respectively. Thus, these results indicate that the proposed automatic method can be used for analyzing long-printed ECG signals on mobile battery-driven devices using only images of the ECG signals, without the need for a cardiologist.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: ECG Monitoring and Analysis · Cardiac electrophysiology and arrhythmias · EEG and Brain-Computer Interfaces

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Basic and Applied Sciences, Arab Academy for Science, Technology and Maritime Transport, Cairo P.O. Box 2033, Egypt

Department of Electronics and Communications, Arab Academy for Science, Technology and Maritime Transport, Cairo P.O. Box 2033, Egypt

Department of Computer Engineering, Arab Academy for Science, Technology and Maritime Transport, Cairo P.O. Box 2033, Egypt

References (53)

Show source-provided references
1. Goss, J.R., and Australian Institute of Health and Welfare (2008). Projection of Australian Health Care Expenditure by Disease, 2003 to 2033.
2. Tun, H.M. (2017). Analysis on conversion process from paper record ECG to computer based ECG. MOJ Appl. Bionics Biomech., 1.10.15406/mojabb.2017.01.00011 ↗
3. ABC of clinical electrocardiography: Introduction. II—Basic terminology10.1136/bmj.324.7335.470 ↗
4. Investigating factors influencing the physicians’ adoption of electronic health record (EHR) in healthcare system of bangladesh: An empirical study10.1016/j.ijinfomgt.2018.09.016 ↗
5. Novel Tool for complete digitization of paper electrocardiography data10.1109/JTEHM.2013.2262024 ↗
6. Digitizing paper electrocardiograms: Status and challenges10.1016/j.jelectrocard.2016.09.007 ↗
7. R-peak detection algorithm for ECG using double difference and RR interval processing10.1016/j.protcy.2012.05.143 ↗
8. Mitra, R.N., Pramanik, S., Mitra, S., and Chaudhuri, B.B. (2012, January 28–29). A robust technique for delineation and features extraction of ECG signal from mobile-phone photography. Proceedings of the 2012 International Conference on Communications, Devices and Intelligent Systems (CODIS), West Bengal, India.10.1109/CODIS.2012.6422151 ↗
9. Heart rate variability in insomniacs and matched normal sleepers10.1097/00006842-199809000-00017 ↗
10. Dynamic heart rate variability: A tool for exploring sympathovagal balance continuously during sleep in men10.1152/ajpheart.1998.275.3.H946 ↗
11. Spectral analysis of the heart rate variability in sleep10.33549/physiolres.930645 ↗
12. A study of the dynamic interactions between sleep EEG and heart rate variability in healthy young men10.1016/S1388-2457(03)00215-3 ↗
13. Vegetative background of sleep: Spectral analysis of the heart rate variability10.1016/S0031-9384(97)00234-5 ↗
14. Autonomic activity during human sleep as a function of time and sleep stage10.1046/j.1365-2869.2001.00263.x ↗
15. Tsipouras, M.G., Fotiadis, D.I., and Sideris, D. (2002, January 22–25). Arrhythmia classification using the RR-interval duration signal. Proceedings of the Computers in Cardiology, Memphis, TN, USA.
16. A methodology for the automated creation of fuzzy expert systems for ischaemic and arrhythmic beat classification based on a set of rules obtained by a decision tree10.1016/j.artmed.2007.04.001 ↗
17. ECG arrhythmia recognition via a neuro-SVM–KNN hybrid classifier with virtual QRS image-based geometrical features10.1016/j.eswa.2011.08.025 ↗
18. A classification scheme for ventricular arrhythmias using wavelets analysis10.1007/s11517-012-0980-y ↗
19. ECG-based heartbeat classification for arrhythmia detection: A survey10.1016/j.cmpb.2015.12.008 ↗
20. Prediction of paroxysmal atrial fibrillation by analysis of atrial premature complexes10.1109/TBME.2003.821030 ↗
21. Characterization of premature atrial contraction activity prior to the onset of postoperative atrial fibrillation in cardiac surgery patients10.1378/chest.126.4_MeetingAbstracts.831S-a ↗
22. Automatic classification of heartbeats using ecg morphology and heartbeat interval features10.1109/TBME.2004.827359 ↗
23. Elgendi, M., Eskofier, B., Dokos, S., and Abbott, D. (2014). Revisiting QRS detection methodologies for portable, wearable, battery-operated, and wireless ECG systems. PLoS ONE, 9.10.1371/journal.pone.0084018 ↗
24. Multi-window detection for P-wave in electrocardiograms based on bilateral accumulative area10.1016/j.compbiomed.2016.09.012 ↗
25. Leutheuser, H., Gradl, S., Anneken, L., Arnold, M., Lang, N., Achenbach, S., and Eskofier, B.M. (2016, January 14–17). Instantaneous P- and T-wave detection: Assessment of three ECG fiducial points detection algorithms. Proceedings of the 2016 IEEE 13th International Conference on Wearable and Implantable Body Sensor Networks (BSN), San Francisco, CA, USA.10.1109/BSN.2016.7516283 ↗
26. Laguna, P., Mark, R.G., Goldberger, A., and Moody, G.B. (1997, January 7–10). A database for evaluation of algorithms for measurement of QT and other waveform intervals in the ECG. Proceedings of the IEEE Computers in Cardiology, Lund, Sweden.
27. The impact of the MIT-BIH arrhythmia database10.1109/51.932724 ↗
28. The European ST-T database: Standard for evaluating systems for the analysis of ST-T changes in ambulatory electrocardiography10.1093/oxfordjournals.eurheartj.a060332 ↗
29. Moody, G.B., and Mark, R.G. (2020, January 20). MIT-BIH Atrial Fibrillation Database 1992. Available online: https://physionet.org/content/afdb/1.0.0/.
30. PhysioBank, physiotoolkit, and physioNet: Components of a new research resource for complex physiologic signals10.1161/01.CIR.101.23.e215 ↗
31. (1995). Cuiwei Li; Chongxun Zheng; Changfeng Tai detection of ECG characteristic points using wavelet transforms. IEEE Trans. Biomed. Eng., 42, 21–28.10.1109/10.362922 ↗
32. Senhadji, L., Wang, F., Hernandez, A.I., and Carrault, G. (2002, January 22–25). Wavelets extrema representation for QRS-T cancellation and P wave detection. Proceedings of the Computers in Cardiology, Memphis, TN, USA.
33. Sovilj, S., Jeras, M., and Magjarevic, R. (2004, January 12–15). Real time P-wave detector based on wavelet analysis. Proceedings of the 12th IEEE Mediterranean Electrotechnical Conference (IEEE Cat. No.04CH37521), Dubrovnik, Croatia.
34. A new approach to wavelet-based P-wave detection
35. A wavelet-based ECG delineator: Evaluation on standard databases10.1109/TBME.2003.821031 ↗
36. Detection of P wave through wavelet transform and neural network
37. P wave detection and delineation in the ECG based on the phase free stationary wavelet transform and using intracardiac atrial electrograms as reference10.1515/bmt-2014-0161 ↗
38. Digital fractional order differentiation-based algorithm for P and T-waves detection and delineation10.1016/j.rbmret.2004.11.022 ↗
39. Automatic Detection of Wave Boundaries in Multilead ECG Signals: Validation with the CSE Database10.1006/cbmr.1994.1006 ↗
40. P and T wave detection and delineation of ECG signal using differential evolution (DE) optimization strategy10.1007/s13246-018-0629-8 ↗
41. A new method to detect P-wave based on quadratic function10.4028/www.scientific.net/AMR.267.462 ↗
42. Sbrollini, A., Mercanti, S., Agostinelli, A., Morettini, M., Di Nardo, F., Fioretti, S., and Burattini, L. (2017). AThrIA: A new adaptive threshold identification algorithm for electrocardiographic P waves. 2017 Computing in Cardiology (CinC), IEEE.10.22489/CinC.2017.237-179 ↗
43. A neural network with asymmetric basis functions for feature extraction of ECG P waves10.1109/72.950154 ↗
44. Abrishami, H., Campbell, M., Han, C., Czosek, R., and Zhou, X. (2018, January 4–7). P-QRS-T localization in ECG using deep learning. Proceedings of the 2018 IEEE EMBS International Conference on Biomedical & Health Informatics (BHI), Las Vegas, NV, USA.10.1109/BHI.2018.8333406 ↗
45. Peimankar, A., and Puthusserypady, S. (2019, January 12–17). An Ensemble of Deep Recurrent Neural Networks for P-wave Detection in Electrocardiogram. Proceedings of the ICASSP 2019—2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Brighton, UK.10.1109/ICASSP.2019.8682307 ↗
46. Krizhevsky, A., Sutskever, I., and Hinton, G.E. (2012, January 3–8). Imagenet classification with deep con-volutional neural networks. Proceedings of the Neural Information Processing Systems, Stateline, NV, USA.
47. Girshick, R., Donahue, J., Darrell, T., and Malik, J. (2013). Rich feature hierarchies for accurate object detection and semantic segmentation. arXiv.10.1109/CVPR.2014.81 ↗
48. Ciresan, D.C., Gambardella, L.M., Giusti, A., and Schmidhuber, J. (2012, January 3–8). Deep neural networks segment neuronal membranes in electron microscopy images. Proceedings of the Neural Information Processing Systems, Stateline, NV, USA.
49. Ronneberger, O., Fischer, P., and Brox, T. (2015). U-net: Convolutional networks for biomedical image segmentation. arXiv.10.1007/978-3-319-24574-4_28 ↗
50. Kao, P.-Y., Chen, J.W., and Manjunath, B.S. (2019). Improving 3D U-net for brain tumor segmentation by utilizing lesion prior. arXiv.
51. Automatic brain tumor detection and segmentation using u-net based fully convolutional networks10.1007/978-3-319-60964-5_44 ↗
52. Recent advances in convolutional neural networks10.1016/j.patcog.2017.10.013 ↗
53. Comparative study of algorithms for ECG segmentation10.1016/j.bspc.2017.01.013 ↗