Short Single-Lead ECG Signal Delineation-Based Deep Learning: Implementation in Automatic Atrial Fibrillation Identification
Abstract
:1. Introduction
- To propose a framework of automatic identification with a single-lead ECG-based delineation approach.
- To develop the stacked CNNs-Bi-LSTM architecture for ECG waveform delineation with a massive amount of data.
- To implement the combination of delineation approach and medical knowledge base learning to aggregate the information in an ECG signal simultaneously to detect the absence of P-wave, the ventricular response, and the irregularity of the RR interval.
- To evaluate the proposed model for automatic AF interpretation with clinical data from single-lead personal ECG devices.
2. Methodology
2.1. Dataset Preparation
2.2. Noise Removal
2.3. Segmentation
2.4. CNN-Bi-LSTM
2.5. Model Delineation Evaluation
2.6. AF Identification
- -
- Each ECG device has a different frequency sampling and to produce the generalization model of delineation, to determine one beat, it was segmented again around 0.2 s before the and 0.45 s after the .
- -
- From the delineation result, we can determine the occurrence P-wave pattern; however, the QRS complex should be processed to determine heart-rate irregularity. To measure the distance between - or RR, intervals were calculated using the following equation:
- -
- From the RR interval result, the ECG signal was checked to determine whether there was a continuous change in ventricular response in five to seven beats to indicate whether the ECG has a regular or an irregular rhythm in the ECG recording.
- -
- The three BPM ranges of ventricular response are needed to ensure whether a signal is normal or AF condition, as (i) the normal ventricular response group has the RR interval value ranged between 60 and 100 BPM; (ii) the slow ventricular response group has the RR interval value less than 60 BPM (<60 BPM); and (iii) the rapid ventricular response group has the RR interval greater than 100 BPM (>100 BPM).
- -
- After determining the ventricular response of the ECG signal, then the regular or irregular rhythm is determined. An ECG signal is said to be a Regular Rhythm if that rhythm has a pattern. The rhythm pattern can be a normal, rapid, or slow ventricular response. On the other hand, if there is no pattern occurred in the ECG signal, then the signal is categorized as an irregular rhythm.
- -
- By using two inputs, the AF or NSR was interpreted according to the following rules:
- If the P-wave was present and the rhythm regular, then the condition was normal.
- If the P-wave was absent and the rhythm regular, then the condition was normal.
- If the P-wave was present and the rhythm irregular, the condition was AF.
- If the P-wave was absent and the rhythm irregular, the condition was AF.
3. Results and Discussion
3.1. Model Evaluation of the Delineation Process
3.2. AF Identification Results
- The China Physiological Signal Challenge 2018 database was collected from 11 hospitals and contained 12-lead ECG recordings lasting 6–60 s, this study used only lead II. In the identification process, we used about 826 NSR records and 988 AF records. The results showed that we had 95.40% PPV, 84.55% NPV, and an 89.65% F1-score. There were 38 (4.6%) records that had a false negative (FN), and 144 (14.5%) records that had a false positive (FP).
- The PhysioNet Computing in Cardiology Challenge 2017 database was collected from a short single-lead ECG recording between 30 and 60 s in length. ECG recordings were collected using a mobile Cardia with the AliveCor device. We utilized about 3154 NSR records and 771 AF records. The experiment reached 86.51% PPV, 95.95% NPV, and an 90.43% F1-score. There were 457 (14.4%) records with FN and 114 (1.4%) records with FP.
- The General Mohammad Hossein Hospital (Palembang, Indonesia) database was collected from a short single-lead ECG recording between 30 and 60 s in length. ECG recordings were collected using a mobile Cardia with the AliveCor device. We utilized about 78 NSR records and 45 AF records. The experiment reached 85.61% PPV, 97.10% NPV, and a 90.41% F1-score. There were 12 (15.3%) records with FN and two (4.4%) records with FP.
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Jonas, D.E.; Kahwati, L.C.; Yun, J.D.; Middleton, J.C.; Coker-Schwimmer, M.; Asher, G.N. Screening for atrial fibrillation with electrocardiography: Evidence report and systematic review for the US preventive services task force. JAMA 2018, 320, 485–498. [Google Scholar] [CrossRef] [PubMed]
- Zheng, J.; Zhang, J.; Danioko, S.; Yao, H.; Guo, H.; Rakovski, C. A 12-lead electrocardiogram database for arrhythmia research covering more than 10,000 patients. Sci. Data 2020, 7, 48. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Haverkamp, H.T.; Fosse, S.O.; Schuster, P. Accuracy and usability of single-lead ECG from smartphones—A clinical study. Indian Pacing Electrophysiol. J. 2019, 19, 145–149. [Google Scholar] [CrossRef] [PubMed]
- Hammad, M.; Zhang, S.; Wang, K. A novel two-dimensional ECG feature extraction and classification algorithm based on convolution neural network for human authentication. Future Gener. Comput. Syst. 2019, 101, 180–196. [Google Scholar] [CrossRef]
- Hajimolahoseini, H.; Redfearn, D.; Krahn, A. A Deep Learning Approach for Diagnosing Long QT Syndrome without Measuring QT Interval. In Canadian Conference on Artificial Intelligence; Springer: Cham, Switzerland, 2019; pp. 440–445. [Google Scholar]
- Hagiwara, Y.; Fujita, H.; Oh, S.L.; Tan, J.H.; San Tan, R.; Ciaccio, E.J.; Acharya, U.R. Computer-aided diagnosis of atrial fibrillation based on ECG signals: A review. Inf. Sci. 2018, 467, 99–114. [Google Scholar] [CrossRef]
- Peimankar, A.; Puthusserypady, S. DENS-ECG: A deep learning approach for ECG signal delineation. Expert Syst. Appl. 2021, 165, 113911. [Google Scholar] [CrossRef]
- Cosoli, G.; Spinsante, S.; Scardulla, F.; D’Acquisto, L.; Scalise, L. Wireless ECG and cardiac monitoring systems: State of the art, available commercial devices and useful electronic components. Measurement 2021, 177, 109243. [Google Scholar] [CrossRef]
- Smith, S.W.; Rapin, J.; Li, J.; Fleureau, Y.; Fennell, W.; Walsh, B.M.; Rosier, A.; Fiorina, L.; Gardella, C. A deep neural network for 12-lead electrocardiogram interpretation outperforms a conventional algorithm, and its physician overread, in the diagnosis of atrial fibrillation. IJC Heart Vasc. 2019, 25, 100423. [Google Scholar] [CrossRef]
- Mant, J.; Fitzmaurice, D.A.; Hobbs, F.R.; Jowett, S.; Murray, E.T.; Holder, R.; Davies, M.; Lip, G.Y. Accuracy of diagnosing atrial fibrillation on electrocardiogram by primary care practitioners and interpretative diagnostic software: Analysis of data from screening for atrial fibrillation in the elderly (SAFE) trial. BMJ 2007, 335, 380. [Google Scholar] [CrossRef] [Green Version]
- Nurmaini, S.; Umi Partan, R.; Caesarendra, W.; Dewi, T.; Naufal Rahmatullah, M.; Darmawahyuni, A.; Bhayyu, V.; Firdaus, F. An Automated ECG Beat Classification System Using Deep Neural Networks with an Unsupervised Feature Extraction Technique. Appl. Sci. 2019, 9, 2921. [Google Scholar] [CrossRef] [Green Version]
- Nurmaini, S.; Darmawahyuni, A.; Sakti Mukti, A.N.; Rachmatullah, M.N.; Firdaus, F.; Tutuko, B. Deep Learning-Based Stacked Denoising and Autoencoder for ECG Heartbeat Classification. Electronics 2020, 9, 135. [Google Scholar] [CrossRef] [Green Version]
- Zhu, F.; Ye, F.; Fu, Y.; Liu, Q.; Shen, B. Electrocardiogram generation with a bidirectional LSTM-CNN generative adversarial network. Sci. Rep. 2019, 9, 6734. [Google Scholar] [CrossRef] [Green Version]
- Nurmaini, S.; Tondas, A.E.; Darmawahyuni, A.; Rachmatullah, M.N.; Effendi, J.; Firdaus, F.; Tutuko, B. Informatics in Medicine Unlocked Electrocardiogram signal classification for automated delineation using bidirectional long short-term memory. Inform. Med. Unlocked 2021, 22, 100507. [Google Scholar] [CrossRef]
- Malali, A.; Hiriyannaiah, S.; Siddesh, G.M.; Srinivasa, K.G.; Sanjay, N.T. Supervised ECG wave segmentation using convolutional LSTM. ICT Express 2020, 6, 166–169. [Google Scholar] [CrossRef]
- Ma, F.; Zhang, J.; Chen, W.; Liang, W.; Yang, W. An automatic system for atrial fibrillation by using a CNN-LSTM Model. Discret. Dyn. Nat. Soc. 2020, 2020, 1–9. [Google Scholar] [CrossRef]
- Laguna, P.; Mark, R.G.; Goldberg, A.; Moody, G.B. A database for evaluation of algorithms for measurement of QT and other waveform intervals in the ECG. In Computers in Cardiology 1997; IEEE: Piscataway, NJ, USA, 1997; pp. 673–676. [Google Scholar]
- Kalyakulina, A.I.; Yusipov, I.I.; Moskalenko, V.A.; Nikolskiy, A.V.; Kosonogov, K.A.; Osipov, G.V.; Zolotykh, N.Y.; Ivanchenko, M.V. Ludb: A new open-access validation tool for electrocardiogram delineation algorithms. IEEE Access 2020, 8, 186181–186190. [Google Scholar] [CrossRef]
- Goldberger, A.L.; Amaral, L.A.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Mietus, J.E.; Moody, G.B.; Peng, C.K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation 2000, 101, e215–e220. [Google Scholar] [CrossRef] [Green Version]
- Liu, F.; Liu, C.; Zhao, L.; Zhang, X.; Wu, X.; Xu, X.; Liu, Y.; Ma, C.; Wei, S.; He, Z.; et al. An open access database for evaluating the algorithms of electrocardiogram rhythm and morphology abnormality detection. J. Med. Imaging Health Inform. 2018, 8, 1368–1373. [Google Scholar] [CrossRef]
- Nurmaini, S.; Darmawahyuni, A.; Rachmatullah, M.N.; Effendi, J.; Sapitri, A.I.; Firdaus, F.; Tutuko, B. Beat-to-Beat Electrocardiogram Waveform Classification Based on a Stacked Convolutional and Bidirectional Long Short-Term Memory. IEEE Access 2021, 9, 92600–92613. [Google Scholar] [CrossRef]
- Almumri, A.; Balakrishnan, E.; Narasimman, S. Discrete Wavelet Transform Based Feature Extraction in Electrocardiogram Signals. Glob. J. Pure Appl. Math. 2021, 17, 63–77. [Google Scholar]
- Darmawahyuni, A.; Nurmaini, S.; Rachmatullah, M.N.; Firdaus, F.; Tutuko, B. Unidirectional-bidirectional recurrent networks for cardiac disorders classification. Telkomnika 2021, 19, 902–910. [Google Scholar] [CrossRef]
- Ghorbani, A.; Ouyang, D.; Abid, A.; He, B.; Chen, J.H.; Harrington, R.A.; Liang, D.H.; Ashley, E.A.; Zou, J.Y. Deep learning interpretation of echocardiograms. NPJ Digit. Med. 2020, 3, 10. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Jimenez-Perez, G.; Alcaine, A.; Camara, O. Delineation of the electrocardiogram with a mixed-quality-annotations dataset using convolutional neural networks. Sci. Rep. 2021, 11, 863. [Google Scholar] [CrossRef] [PubMed]
- Cai, W.; Hu, D. QRS complex detection using novel deep learning neural networks. IEEE Access 2020, 8, 97082–97089. [Google Scholar] [CrossRef]
- Sodmann, P.; Vollmer, M.; Nath, N.; Kaderali, L. A convolutional neural network for ECG annotation as the basis for classification of cardiac rhythms. Physiol. Meas. 2018, 39, 104005. [Google Scholar] [CrossRef] [PubMed]
Database | Records | Description | Frequency Sampling |
---|---|---|---|
Delineation Model | |||
QTDB | 10 subjects NSR | Training/validation | 250–500 Hz |
15 subjects Arrhythmias | Training/validation | ||
Two subjects NSR | Testing | ||
LUDB | 200 subjects for NSR, tachycardia, bradycardia, arrhythmia, irregular rhythm, AF, atrial flutter | Other data set for model validated | 500 Hz |
Medical knowledge-based learning | |||
PhysioNet/CinC Challenge 2017 database | 5154 subjects NSR | AF identification | 300 Hz |
771 subjects AF | |||
The China Physiological Signal Challenge 2018 database | 918 subjects NSR | AF identification | 500 Hz |
1098 subjects AF | |||
ECG recordings from Mohammad Hoesin Indonesian Hospital. | 78 subjects NSR | AF identification | 300 Hz |
Data | Training (Beats) | Validation (Beats) | Testing (Beats) |
---|---|---|---|
QTDB | 14,376 | 1639 | 100 |
LUDB | 1096 | 122 | - |
Layer | Input Nodes | Filter Number | Kernel Size/Pool Size | Output Nodes | Feature Interpretation |
---|---|---|---|---|---|
Input | 370, 1 | - | - | - | ECG amplitude for one beat |
Convolution 1 | 370 × 1 | 8 | 3 × 1, stride 1 | 370 × 8 | 8 feature maps |
Convolution 2 | 370 × 8 | 16 | 3 × 1, stride 1 | 370 × 16 | 16 feature maps |
Convolution 3 | 370 × 16 | 32 | 3 × 1, stride 1 | 370 × 32 | 32 feature maps |
Convolution 4 | 370 × 32 | 64 | 3 × 1, stride 1 | 370 × 64 | 64 feature maps |
Bi-LSTM | 370 × 64 | - | - | 370 × 1024 | Two directions of feature data (512 nodes for both forward and backward directions) |
Output | - | - | 370 × 5 | 370 nodes with five classes (P-wave QRS-complex, T-wave, No-wave, and zero padding) |
Database | Records | Scenario | Classification Performance (%) | ||||
---|---|---|---|---|---|---|---|
Sen. | Prec. | Spec. | Acc. | F1-Score | |||
QTDB | 10 | Intra-patient (NSR) | 98.91 | 99.01 | 99.79 | 99.79 | 98.96 |
15 | Intra-patient (Arrythmia) | 97.44 | 97.53 | 99.57 | 99.31 | 97.48 | |
2 | Inter-patient (NSR) | 89.90 | 94.30 | 97.86 | 97.33 | 91.70 | |
LUDB | 200 | Intra-patient (Various Conditions) | 95.61 | 95.93 | 99.18 | 98.77 | 95.76 |
Architecture | Performance (%) | ||||
---|---|---|---|---|---|
Sen. | Prec. | Spec. | Acc. | F1-Score | |
Uni-LSTM | 98.71 | 98.80 | 99.75 | 99.64 | 98.75 |
Bi-LSTM | 98.84 | 98.97 | 99.68 | 99.68 | 98.91 |
Convolutional-Bi-LSTM | 98.91 | 99.01 | 99.79 | 99.79 | 98.96 |
Architecture | Detection | Performance (%) | ||||
---|---|---|---|---|---|---|
Sen. | Prec. | Spec. | Acc. | F1-Score | ||
Convolutional LSTM [7] | P-wave, QRS-complex, T-wave, and No wave | 97.95 | 95.68 | - | - | 96.78 |
Convolutional Neural Network-UNet [25] | P-wave, QRS-complex, and T-wave | 99.51 | 95.83 | - | - | - |
Convolutional Long Short-Term Memory [15] | P-wave, QRS-complex, and T-wave | 94.47 | 94.19 | - | 94.75 | 94.66 |
Convolutional Neural Network [26] | QRS-complex | 99.97 | 99.99 | - | - | 99.98 |
Convolutional Neural Network [27] | QRS-complex | 99.10 | 99.00 | - | - | - |
Proposed model | P-wave, QRS-complex, T-wave, and Isoelectric line (no-wave) | 98.91 | 99.01 | 99.79 | 99.79 | 98.96 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Tutuko, B.; Rachmatullah, M.N.; Darmawahyuni, A.; Nurmaini, S.; Tondas, A.E.; Passarella, R.; Partan, R.U.; Rifai, A.; Sapitri, A.I.; Firdaus, F. Short Single-Lead ECG Signal Delineation-Based Deep Learning: Implementation in Automatic Atrial Fibrillation Identification. Sensors 2022, 22, 2329. https://doi.org/10.3390/s22062329
Tutuko B, Rachmatullah MN, Darmawahyuni A, Nurmaini S, Tondas AE, Passarella R, Partan RU, Rifai A, Sapitri AI, Firdaus F. Short Single-Lead ECG Signal Delineation-Based Deep Learning: Implementation in Automatic Atrial Fibrillation Identification. Sensors. 2022; 22(6):2329. https://doi.org/10.3390/s22062329
Chicago/Turabian StyleTutuko, Bambang, Muhammad Naufal Rachmatullah, Annisa Darmawahyuni, Siti Nurmaini, Alexander Edo Tondas, Rossi Passarella, Radiyati Umi Partan, Ahmad Rifai, Ade Iriani Sapitri, and Firdaus Firdaus. 2022. "Short Single-Lead ECG Signal Delineation-Based Deep Learning: Implementation in Automatic Atrial Fibrillation Identification" Sensors 22, no. 6: 2329. https://doi.org/10.3390/s22062329
APA StyleTutuko, B., Rachmatullah, M. N., Darmawahyuni, A., Nurmaini, S., Tondas, A. E., Passarella, R., Partan, R. U., Rifai, A., Sapitri, A. I., & Firdaus, F. (2022). Short Single-Lead ECG Signal Delineation-Based Deep Learning: Implementation in Automatic Atrial Fibrillation Identification. Sensors, 22(6), 2329. https://doi.org/10.3390/s22062329