| Literature DB >> 35449228 |
Lucie Saclova1,2, Andrea Nemcova3, Radovan Smisek3,4, Lukas Smital3, Martin Vitek3, Marina Ronzhina3.
Abstract
Accurate automated detection of P waves in ECG allows to provide fast correct diagnosis of various cardiac arrhythmias and select suitable strategy for patients' treatment. However, P waves detection is a still challenging task, especially in long-term ECGs with manifested cardiac pathologies. Software tools used in medical practice usually fail to detect P waves under pathological conditions. Most of recently published approaches have not been tested on such the signals at all. Here we introduce a novel method for accurate and reliable P wave detection, which is success in both normal and pathological cases. Our method uses phasor transform of ECG and innovative decision rules in order to improve P waves detection in pathological signals. The rules are based on a deep knowledge of heart manifestation during various arrhythmias, such as atrial fibrillation, premature ventricular contraction, etc. By involving the rules into the decision process, we are able to find the P wave in the correct location or, alternatively, not to search for it at all. In contrast to another studies, we use three, highly variable annotated ECG databases, which contain both normal and pathological records, to objectively validate our algorithm. The results for physiological records are Se = 98.56% and PP = 99.82% for MIT-BIH Arrhythmia Database (MITDP, with MITDB P-Wave Annotations) and Se = 99.23% and PP = 99.12% for QT database. These results are comparable with other published methods. For pathological signals, the proposed method reaches Se = 96.40% and PP = 91.56% for MITDB and Se = 93.07% and PP = 88.60% for Brno University of Technology ECG Signal Database with Annotations of P wave (BUT PDB). In these signals, the proposed detector greatly outperforms other methods and, thus, represents a huge step towards effective use of fully automated ECG analysis in a real medical practice.Entities:
Mesh:
Year: 2022 PMID: 35449228 PMCID: PMC9023481 DOI: 10.1038/s41598-022-10656-4
Source DB: PubMed Journal: Sci Rep ISSN: 2045-2322 Impact factor: 4.996
Figure 1The overall process of P wave detection: (a) QRS complex detection using Phasor transform, (b) T wave detection based on the QRS complexes positions, (c) detection of PVC using morphological feature and correctness check, (d) detection of AFIB using Shannon entropy, (e) check of PVC or AFIB presence in ECG, (f) basic detection of P waves in physiological heart beats based on the QRS complexes positions, (g) detection of dissociated P waves within special demarcation area, (h) unification of P waves positions, check of P wave amplitude and verification of P wave positions correctness.
Figure 2The illustration of PVC detection. The PVC is detected by thresholding the area under QRS complex (AUC) calculated in the ECG segment demarcated from R(i) − 150 ms to R(i) + 150 ms, where R(i) is the position of current QRS (R wave).
Figure 3The illustration of AFIB detection. Top: Length of RR intervals. Bottom: Corresponding Shannon entropy with decision threshold (blue line) and ground truth AFIB annotations (red block). Shannon entropy values higher than the threshold (about 0.9–1 in this particular case) correspond with ECG segment, where AFIB manifestations are present (according to the annotations available from the database).
Figure 4Normal P waves detection. Searching areas (green blocks) are demarcated as R(i − 1) + 0.71 × RR(i) to R(i)-0.07 × RR(i)-60 ms and the P wave candidates (cP) are found as the maximum peaks in the areas processed by a phasor transform (not shown here).
Figure 5Demarcation of segments for P wave searching in the case of possible dissociated P waves presence.
List of pathologies present in BUT PDB, their abbreviations (Abb.), number of heartbeats and the number and IDs of signals with the given pathology.
| Abb. | Type of pathology | Number of heartbeats | Number of records | IDs of the records with the pathology |
|---|---|---|---|---|
| A | Atrial premature beat | 142 | 21 | 01,04,05,09,16,17,18,26,28,31,32,35,38,39,40,41,42,43,46,49,50 |
| SVTA | Supraventricular tachyarrhythmia | Included in A | 3 | 09,11,43 |
| AFIB | Atrial fibrillation | 1079 | 9 | 07,08,44,45,46,47,48,49, 50 |
| AFL | Atrial flutter | 86 | 1 | 38 |
| BI | 1st degree atrioventricular block | Included in L(140) | 1 | 22 |
| BII | 2nd degree atrioventricular block | 2 | 1,13 | |
| BIII | 3rd degree atrioventricular block | 1 | 3 | |
| E | Ventricular escape beat | 99 | 1 | 9 |
| F | Fusion beat | 76 | 7 | 06,10,14,19,32,35,36 |
| J | Nodal beat | 26 | 2 | 7,38 |
| L | Left bundle branch block beat | 448 | 4 | 21,22,36,41 |
| NA | Sinus arrhythmia | 129 | 1 | 24 |
| NOD | Nodal premature beat | 76 | 2 | 6,15 |
| P | Paced rhythm | 236 | 2 | 3,19 |
| PREX | Pre-excitation | 130 | 1 | 12 |
| R | Right bundle branch block beat | 717 | 6 | 01,06,13,26,33,34 |
| V | Ventricular premature beat | 547 | 27 | 02,03,05,08,10,14,20,21,22,25,26,27,28,29, |
| 30,31,32,33,35,36,37,39,40,41,42,45,47,50 | ||||
| B | Ventricular bigeminy | included in V | 3 | 02,14,27 |
| T | Ventricular trigeminy | included in V | 2 | 27,29 |
| IVR | Idioventricular rhythm | included in V | 1 | 30 |
| VP | Ventricular pair | included in V | 1 | 25 |
| VFL | Ventricular flutter | 66 | 1 | 33 |
| a | Aberrated atrial premature beat | 9 | 1 | 23 |
| N | Normal beat | 3772 |
The performance of the P wave detection algorithms on physiological signals from MITDB with annotations MIT PDB (Se—sensitivity; PP—positive predictivity; N/A—not available).
| Sig. no | PP rhythm tracking[ | Basic method[ | Previous method[ | Proposed method | ||||
|---|---|---|---|---|---|---|---|---|
| Se [%] | PP [%] | Se [%] | PP [%] | Se [%] | PP [%] | Se [%] | PP [%] | |
| 100 | N/A | N/A | 100.0 | 99.3 | 99.69 | 99.25 | 95.13 | 99.31 |
| 101 | N/A | N/A | 99.84 | 99.79 | 98.93 | 99.39 | 98.45 | 99.95 |
| 103 | N/A | N/A | 46.76 | 41.84 | 98.8 | 100 | 99.81 | 100.00 |
| 117 | N/A | N/A | 100 | 99.93 | 96.48 | 99.93 | 99.93 | 99.93 |
| 122 | N/A | N/A | 52.35 | 34.25 | 98.18 | 100 | 100.00 | 99.96 |
| Mean | 99.57 | 99.83 | 79.79 | 75.02 | 98.42 | 99.71 | 98.59 | 99.82 |
The performance of the P wave detection algorithms on physiological signals from the manually annotated part of QTDB (Se—sensitivity; PP—positive predictivity).
| Method | Se [%] | PP [%] |
|---|---|---|
| Proposed method | 99.23 | 99.12 |
| Previous method[ | 99.84 | 99.84 |
| Basic method[ | 99.85 | 99.83 |
| Phasor transform[ | 99.28 | 99.75 |
| Wavelet transform[ | 98.87 | 91.03 |
| Correlation of template[ | 99.63 | 98.00 |
| Parametric mixture Gaussian and dynamic programming[ | 96.13 | 97.70 |
| Differential evolution[ | 98.90 | 98.50 |
The performance of the P wave detection algorithms on pathological signals from the MITDB with annotations MIT PDB (Se—sensitivity; PP—positive predictivity).
| Sig. no | Type of pathology | Basic method[ | Previous method[ | Proposed method | |||
|---|---|---|---|---|---|---|---|
| Se [%] | PP [%] | Se [%] | PP [%] | Se [%] | PP [%] | ||
| 106 | PVC | 90.98 | 91.83 | 92.77 | 81.09 | 99.37 | 94.75 |
| 119 | PVC | 99.38 | 99.69 | 97.41 | 98.20 | 98.15 | 97.80 |
| 207 | NOD | 81.54 | 56.58 | 96.18 | 78.49 | 97.47 | 78.85 |
| 214 | PVC | 98.55 | 99.5 | 99.75 | 95.32 | 99.90 | 94.45 |
| 222 | NOD | 82.28 | 54.17 | 62.13 | 89.87 | 81.96 | 84.32 |
| 223 | PVC | 94.62 | 83.72 | 98.00 | 83.86 | 99.48 | 92.27 |
| 231 | AVB II | 78.39 | 99.68 | 100.00 | 98.66 | 98.50 | 98.45 |
| Mean | 89.39 | 83.59 | 93.88 | 89.31 | 96.40 | 91.56 | |
The performance of the P wave detection algorithms on pathological signals from BUT PDB (Se—sensitivity, PP—positive predictivity, NaN—the whole signal is AFIB, no P waves are present, A—atrial premature beat, AFIB—atrial fibrillation, AFL—atrial flutter, B—ventricular bigeminy, BI—atrioventricular block 1st degree, BII—atrioventricular block 2nd degree, BIII—atrioventricular block 3rd degree, E—ventricular escape beat, F—fusion of ventricular and normal beat, IVR—idioventricular rhythm, J—nodal beat, L—left bundle branch block beat, NA—sinus arrhythmia, NOD—nodal rhythm, P—paced rhythm, PREX—pre-excitation, R—right bundle branch block beat, SVTA—supraventricular tachyarrhythmia, T—ventricular trigeminy, V—ventricular premature beat, VFL—ventricular flutter, VP—ventricular pair, a—aberrated atrial premature beat).
| Signal no | Type of pathology | Basic method[ | Previous method[ | Proposed method | |||
|---|---|---|---|---|---|---|---|
| Se [%] | PP [%] | Se [%] | PP [%] | Se [%] | PP [%] | ||
| 1 | BII, R, A | 73.48 | 97.00 | 99.24 | 98.50 | 99.24 | 99.24 |
| 2 | V, B | 98.77 | 58.82 | 98.77 | 97.56 | 91.36 | 91.16 |
| 3 | BIII, V, P | 53.57 | 25.21 | 80.36 | 33.83 | 92.86 | 36.88 |
| 4 | A,V | 99.13 | 98.28 | 92.17 | 67.09 | 99.13 | 99.13 |
| 5 | A, V | 100.00 | 99.29 | 85.61 | 90.84 | 99.28 | 98.57 |
| 6 | NOD, F, R | 96.92 | 62.38 | 93.85 | 68.54 | 100.00 | 69.15 |
| 7 | AFIB, J | 92.59 | 54.35 | 98.15 | 51.46 | 98.15 | 77.94 |
| 8 | AFIB, V | NaN | NaN | NaN | NaN | NaN | NaN |
| 9 | E, A, SVTA | 40.00 | 7.81 | 52.00 | 13.27 | 60.00 | 11.36 |
| 10 | V, T, F | 80.87 | 84.09 | 34.97 | 82.05 | 81.42 | 97.39 |
| 11 | SVTA | 35.36 | 86.49 | 88.40 | 99.38 | 100.00 | 97.84 |
| 12 | PR | 65.15 | 100.00 | 98.48 | 98.48 | 99.24 | 99.24 |
| 13 | BII, R | 57.86 | 98.78 | 63.57 | 100.00 | 78.57 | 100.00 |
| 14 | V, B, F | 100.00 | 73.10 | 54.17 | 86.67 | 100.00 | 95.36 |
| 15 | J | 100.00 | 97.26 | 91.55 | 91.55 | 100.00 | 79.78 |
| 16 | A | 99.19 | 99.19 | 97.58 | 100.00 | 100.00 | 100.00 |
| 17 | A | 100.00 | 99.42 | 98.25 | 100.00 | 100.00 | 99.42 |
| 18 | A | 76.12 | 99.03 | 86.57 | 100.00 | 79.85 | 100.00 |
| 19 | P, F | 90.00 | 32.14 | 97.50 | 28.26 | 85.00 | 26.15 |
| 20 | V | 98.13 | 89.71 | 95.63 | 95.03 | 85.63 | 99.28 |
| 21 | L, V | 51.88 | 64.84 | 76.88 | 91.79 | 100.00 | 98.77 |
| 22 | BI, V | 56.83 | 94.05 | 72.66 | 98.06 | 99.28 | 98.57 |
| 23 | a | 99.17 | 97.56 | 100.00 | 78.57 | 100.00 | 98.37 |
| 24 | NA | 35.66 | 100.00 | 99.22 | 100.00 | 100.00 | 100.00 |
| 25 | V, VP | 93.67 | 96.10 | 93.04 | 100.00 | 93.04 | 100.00 |
| 26 | R, A, V | 100.00 | 100.00 | 82.14 | 88.46 | 100.00 | 100.00 |
| 27 | V, B, T | 88.30 | 66.40 | 59.57 | 58.95 | 97.87 | 96.84 |
| 28 | A, V | 28.45 | 91.67 | 100.00 | 99.15 | 100.00 | 98.31 |
| 29 | V | 100.00 | 99.00 | 98.99 | 100.00 | 100.00 | 99.00 |
| 30 | IVR, T, V | 94.44 | 90.43 | 100.00 | 91.84 | 100.00 | 88.24 |
| 31 | V, VT,A | 49.30 | 76.09 | 98.59 | 92.72 | 97.18 | 94.52 |
| 32 | V, F, VT,A | 71.18 | 87.05 | 98.82 | 95.45 | 99.41 | 99.41 |
| 33 | V, VFL,R | 83.33 | 32.79 | 89.58 | 64.18 | 87.50 | 79.25 |
| 34 | R | 93.42 | 98.84 | 88.95 | 93.87 | 100.00 | 99.42 |
| 35 | V, a, F | 96.14 | 97.55 | 14.98 | 96.88 | 98.07 | 99.02 |
| 36 | V, L, F | 62.77 | 87.76 | 87.59 | 100.00 | 100.00 | 95.80 |
| 37 | V, FIB | 100.00 | 52.80 | 89.55 | 48.00 | 98.51 | 66.00 |
| 38 | J, AFL, A | 94.25 | 56.16 | 78.16 | 68.00 | 3.45 | 60.00 |
| 39 | V, A | 97.50 | 59.39 | 49.17 | 100.00 | 59.17 | 97.26 |
| 40 | V, A | 100.00 | 78.49 | 76.71 | 98.25 | 100.00 | 98.65 |
| 41 | L, A, V | 93.02 | 96.00 | 18.60 | 85.71 | 98.45 | 96.95 |
| 42 | V, A | 85.84 | 65.99 | 64.60 | 86.90 | 100.00 | 83.70 |
| 43 | A, SVTA | 76.19 | 97.56 | 66.67 | 98.59 | 98.10 | 97.17 |
| 44 | AFIB | 100.00 | 63.64 | 74.03 | 65.52 | 98.70 | 79.17 |
| 45 | AFIB, V | 81.48 | 70.51 | 64.44 | 86.14 | 97.04 | 92.25 |
| 46 | AFIB, A | 93.22 | 27.36 | 88.14 | 54.17 | 98.31 | 84.06 |
| 47 | AFIB, A, V | 97.30 | 19.67 | 45.95 | 24.64 | 0.00 | 100.00 |
| 48 | AFIB | NaN | NaN | NaN | NaN | NaN | NaN |
| 49 | AFIB, A | 37.08 | 31.73 | 17.98 | 11.43 | 98.88 | 70.40 |
| 50 | AFIB, A, V | 100.00 | 3.33 | 50.00 | 3.80 | 0.00 | 100.00 |
| Mean | 80.79 | 72.04 | 78.13 | 79.67 | 93.07 | 88.60 | |
Figure 6Example of P waves detection in ECGs with various pathologies. Top: Record no. 35 with single PVC. Middle: Record no. 33 with ventricular flutter episode. Bottom: Record no. 14 with ventricular trigeminy. All ECGs are from BUT PDB.
Figure 7Example of P waves detection during AFIB (signal no. 48 from BUT PDB).
Figure 8Example of P waves detection in ECG with RBBB (signal no. 34 from BUT PDB) using the search areas defined based on the previous (grey lines, basic method) and improved (green lines, the proposed method) criteria.