ORIGINAL RESEARCH article

Front. Physiol., 21 October 2022

Sec. Computational Physiology and Medicine

Volume 13 - 2022 | https://doi.org/10.3389/fphys.2022.941827

A wavelet-based VCG QRS loop boundaries and isoelectric coordinates detector

  • 1. Department of Cybernetics and Biomedical Engineering, Faculty of Electrical Engineering and Computer Science, VSB—Technical University of Ostrava, Ostrava—Poruba, Czechia

  • 2. Department of Surgical Studies, Faculty of Medicine of the University of Ostrava, Ostrava, Czechia

  • 3. Faculty of Electrical Engineering and Information Technology, University of Žilina, Žilina, Czechia

Article metrics

View details

2

Citations

1,6k

Views

482

Downloads

Abstract

This paper deals with a wavelet-based algorithm for automatic detection of isoelectric coordinates of individual QRS loops of VCG record. Fiducial time instants of QRS peak, QRS onset, QRS end, and isoelectric PQ interval are evaluated on three VCG leads together with global QRS boundaries of a record to spatiotemporal QRS loops alignment. The algorithm was developed and optimized on 161 VCG records of PTB diagnostic database of healthy control subjects (HC), patients with myocardial infarction (MI) and patients with bundle branch block (BBB) and validated on CSE multilead measurement database of 124 records of the same diagnostic groups. The QRS peak was evaluated correctly for all of 1,467 beats. QRS onset, QRS end were detected with standard deviation of 5,5 ms and 7,8 ms respectively from the referee annotation. The isoelectric 20 ms length PQ interval window was detected correctly between the P end and QRS onset for all the cases. The proposed algorithm complies the limits for the QRS onset and QRS end detection and provides comparable or better results to other well-known algorithms. The algorithm evaluates well a wide QRS based on automated wavelet scale switching. The designed multi-lead approach QRS loop detector accomplishes diagnostic VCG processing, aligned QRS loops imaging and it is suitable for beat-to-beat variability assessment and further automatic VCG classification.

Introduction

Analysis of the electrocardiogram (ECG) which is an image of the electrical cardiac activity is widely used method for diagnostics of many heart diseases. Automatic detection of fiducial points of cardiac cycle: QRS peak, P, QRS, T waves onsets and ends is essential for ECG diagnostics, signal processing and further automatic heart diseases classification. Isoelectric line detection allows ECG beats alignment in order to averaging and ectopic ECG beats evaluation (Gatzoulis et al., 2018) and ECG record intra-individual variability assessment (Matveev et al., 2007; Penhaker et al., 2014).

Besides the common 12-leads ECG imaging, the vectorcardiography (VCG) with its three leads provides us three-dimensional imaging fully sufficient for description of cardioelectric space (Pavlov and Abel, 1975; Burch, 1985). Compared to common 12-leads ECG, the VCG is more advantageous method for computer processing due to fewer signals containing no redundant information and more accurate with corrected orthogonal leads, although clinical use is not common yet (Malmivuo and Plonsey, 1995). In both cases, the diagnostic information is evaluated from the characteristic P, QRS, T waves of common 12 ECG or 3 VCG leads.

We can find different approaches for automatic QRS detection and P, QRS, T waves segmentation based on the first and second derivative (e.g., Pan-Tompkins algorithm (Pan and Tompkins, 1985; Arzeno et al., 2006)), low-pass differentiation (LPD) (Chazal and Celler, 1996; Laguna et al., 1994), adaptive filtering (Soria-Olivas et al., 1998), wavelet transform (WT) (Martínez et al., 2004; Mahmoodabadi et al., 2005; Sahambi et al., 1997), morphology and gradient (TDMG) (Mazomenos, 2012), dynamic time warping (DTW) (Vullings et al., 1998a) or artificial neural networks (Dokur et al., 1997). An appropriate algorithm selection depends on a few factors like real-time (Pan and Tompkins, 1985; Mazomenos, 2012; Guven et al., 2014) or offline data processing (Martínez et al., 2004; Mahmoodabadi et al., 2005; Vullings et al., 1998a; Dokur et al., 1997), requirements for robustness of the detector in evaluation of records of purely healthy or also pathological cases, ability to recognize noisy signals with motion and other artifacts, processing of a standard quality or a diagnostic high resolution and high sampling rates ECG records, including single or multi-leads approaches.

Featured work follows on from the previous study of intra-individual variability of VCG record evaluation (Penhaker et al., 2014), where VCG loops were spatially aligned based on manually annotated isoelectric coordinates by cardiologist, time synchronized by QRS peaks and compared on specified QRS length (global QRS boundaries) for the intra-individual variability assessment. The proposed algorithm automates the process of the isoelectric coordinates and global QRS boundaries detection and follows the QRS peak detector based on wavelet transform and biorthogonal wavelet presented in previous work (Penhaker et al., 2014), as an alternative to Daubechies wavelet used in studies (Martínez et al., 2004; Mahmoodabadi et al., 2005; Sahambi et al., 1997). The properties of the biorthogonal wavelets were found ideally suited for ECG parameters estimation in (Sivannarayana and Reddy, 1999) since they excite various morphologies of ECG’s better at different scales. The wavelet scales for the proposed algorithm were experimentally established for QRS complex detection (QRS onset and QRS end) including wide-QRS conditions assessment detected on a different scale unlike previous studies (Martínez et al., 2004; Mahmoodabadi et al., 2005; Sahambi et al., 1997) using the same scales for various QRS morphologies. The QRS peak, QRS onset and QRS end detection is performed based on standardly used techniques of searching for maxima, minima, zero crossings and energy of wavelet coefficients in combination of time-domain signal analysis for QRS onset and QRS end adjusting by slope performed on a temporal search window. A time-domain signal analysis technique was already used in TDGM algorithm (Mazomenos, 2012) including signal preprocessing, QRS complex feature extraction employing Pan-Tompkins detection method (Pan and Tompkins, 1985) and temporal search windows followed by P-wave and T-wave feature extraction. While WT is quite robust in the presence of noise and baseline wander situations (Sivannarayana and Reddy, 1999; Dinh et al., 2001), the TDGM performed better in intricate ECG morphologies (Mazomenos, 2012). To benefit from both techniques, the proposed algorithm uses signal preprocessing before applying WT followed by time-domain-analysis. The signal preprocessing is performed by digital finite impulse response (FIR) high pass filter with 1 Hz cuttoff frequency in passband (0 dB signal attenuation) and infinite impulse response (IIR) 50 Hz or 60 Hz notch filter used for powerline distorted signals, meeting requirements for diagnostic ECG frequency bands (Klingfield et al., 2007; Medteq, 2022). The isoelectric line is searched on a temporal window localized before QRS onset as a flattest interval of a PQ segment, where the PQ segment appears to be the most acceptable location of zero cardiac activity, which is suitable for most pathological cases (Guven et al., 2014). In case of VCG leads, the isoelectric lines of the (X, Y, Z) leads defines coordinates with zero electrical activity situated in origin of the Cartesian coordinate system. With this assumption, the spatiotemporal VCG QRS loops alignment is performed by QRS loop isoelectric coordinates offsets removal and ECG beats synchronized with QRS peaks detected in one of the , , or leads (Matveev et al., 2007). To compare individual QRS loops of a record, time-intervals to the left and to the right of the synchronization QRS peak are evaluated. In proposed algorithm, QRS global boundaries common for all QRS loops of a record are computed based on QRS onsets and QRS ends as number of samples to the left of the QRS peak () and to the right of the QRS peak ().

The algorithm was developed and optimized on 161 records of 58 healthy control subjects (HC), 69 patients with myocardial infarction (MI), and 34 patients with bundle branch block (BBB) of the PTB (Physikalisch-Technische Bundesanstalt) diagnostic database of 12 standard ECG leads and 3 Frank VCG leads. All recordings are 2 min long, sampled at 1,000 Hz (Matveev et al., 2007; Bousseljot et al., 1995). The diagnostic ECG data are processed offline based on 3 VCG leads increasing robustness of the detector. Validation of the QRS detector and QRS onset and QRS end time instants detection was performed on CSE (Common Standards for Quantitative Electrocardiography) multilead database dataset 3 with 12 standard leads and 3 Frank leads of 125 biological ECGs. All recordings are 10 s long sampled at 500 Hz (Goldberger et al., 2000).

Used methods

One of possible signal analysis is its comparison with a set of the test functions, where is set of test functions for well-known Fourier transform (FT), that contain all the dilatations and reductions of the periodic function by the factor (Willems et al., 1985). Another option for the time-frequency analysis is application of the WT similar to the FT. While the FT decomposes signal into a series of sine waves of different frequencies, WT decomposes signal into the “wavelets”, dilated and translated versions of the so-called Mother wavelet . Wavelet is nonzero only at the finite time interval, or the values outside the interval are negligibly small. Consequently, whatever value of the spectrum is used, based on the wavelet, it is influenced only by the corresponding time interval of the analysed signal. Wavelet basis functions cover the entire time span of the analysed signal in parts. Therefore, the full information is preserved. Compared to the smooth sinusoidal curve of an infinite length, wavelet is compact and irregular shaped. With these features, wavelet is an ideal tool for unsteady signals with discontinuities and sharp changes analyses and possibilities of localization in time (Aldroubi and Unser, 1996).

Continuous wavelet transform

If the base fiction is used, we obtain the continuous wavelet transform of the signal (Aldroubi and Unser, 1996):where is so-called dilatation scaling parameter, is translation parameter, is complex conjugate of and where is mother wavelet—oscillation function.

Continuous wavelet transform (CWT) uses a sampled data, but the process of translation is a smooth operation across the length of the sampled data. The scaling can be defined from a minimum (original signal scale) to a maximum selected by the user, making a finer resolution possible. The disadvantage compared to discrete wavelet transform (DWT) is increasing of the computational time and higher memory requirement for wavelet coefficients calculation (Aldroubi and Unser, 1996).

Wavelet type used

Wavelets can be classified as orthogonal, non-orthogonal and biorthogonal. Only biorthogonal wavelets provide the time symmetry and prevent phase shifts of the transformed signal (Altmann, 1996). For the ECG signal analysis, the shape of the signal in the time-domain is important, while a signal reconstruction (inverse-transform) is not required. From this standpoint, the biorthogonal wavelets are advantageous for the ECG signal analysis. The shape of the biorthogonal wavelet 2.2 used in this work resembles the shape of the ECG waveform (see Figure 1) which excite various morphologies of ECG waveforms better at different scales (Sivannarayana and Reddy, 1999). Application of biorthogonal wavelets for the ECG parameters (P, QRS, and T) estimation is known from the literature (Sivannarayana and Reddy, 1999; Louis et al., 1997) and it was already used for QRS peak detection in the previous work (Penhaker et al., 2014). The central frequency of the biorthogonal wavelet 2.2: has a relation to scale from the Eq. 1 and pseudofrequency at the scale according to the relation (3) and Table 1, further explained in the next chapter 2.3.

FIGURE 1

FIGURE 1

Biorthogonal wavelet 2.2 with the central frequency used in the presented QRS detector algorithm.

TABLE 1

10 100
30 33.4
50 20
70 14.3
120 8.3

Pseudofrequencies for the scales , central frequency and sampling period .

Scalogram and coefficients of the continuous wavelet transform

In Figure 2 there is the scalogram of continuous wavelet transform for biorthogonal wavelet 2.2 which is used in this work. The input signal is one VCG lead of healthy control patient (HC), a patient with inferior myocardial infarction (MI) and a patient with the left bundle branch block (LBBB).

FIGURE 2

FIGURE 2

Scalogram of the continuous wavelet transform for biorthogonal wavelet 2.2, scale parameter and corresponding pseudofrequencies . The input signal is one lead VCG of one cardiac cycle of the named records of the diagnostic PTB database: from the left the “s0130lre” of a HC patient, the “s0235lre” of a MI patient, “the s0448_re” of a LBBB patient. The single Q, R, S waves are marked by dashed lines in the input signal.

The scalogram represents the percentage of energy of wavelet coefficients at the given scale and location of the wave by the relation:where is number of the scales, is number of the translations corresponding to the number of samples of the input signal.

The scaling parameter is selected in the range of . For the related scales the corresponding pseudofrequencies are calculated (Kumar et al., 2018):where is pseudofrequency at the scale , is the central frequency of the wavelet, is scale and is sampling period.

Among the scale and frequency there is only an approximate relationship since the wavelet contains other frequency components in addition to the calculated central frequency . The selected range of the scales was specified on the basis of the power spectrum of the QRS. To a frequency about the P and T waves spectra and the motion artefacts can be shown. The representation of the frequencies above is relatively low and the high-frequency interference is shown in this band. For the central frequency of the biorthogonal wavelet used (Figure 1) and the sampling period there are computed the pseudofrequencies at the desired scales shown in the Table 1.

The scalogram (see Figure 2) shows the highest percentage of energy of coefficients concentrated at the R wave and Q, S wave times for the record of healthy patient in the entire range of scales . The record of patient with inferior MI has a small R wave amplitude considering the P, T waves and has a high-frequency noise. For this record, there appear brighter areas in time intervals of the T and P waves for the scale in the scalogram. The last record of patient with LBBB with a wide QRS complex and therefore with the higher proportion of lower frequencies has a relatively small percentage of energy for the scale .

The coefficients of wavelet transform for discrete scale values are plotted in Figure 3. At the scale , there are relatively large frequency noise and low values of coefficients. At the scale and there are good localisations of Q, R, S waves with a small amplitude for the P and T waves. The higher scales are suitable for Q, R, S localisation for the records with a wide QRS.

FIGURE 3

FIGURE 3

Coefficients of the wavelet transform for the scale parameter and the mother biorthogonal 2.2 wavelet. The input signal is one VCG lead of one cardiac cycle of the named records of the diagnostic PTB database: from the left the “s0130lre” of a HC patient, the “s0235lre” of a MI patient, “the s0448_re” of a LBBB patient. The single Q, R, S waves are marked by dashed lines in the input and transformed signals.

Algorithm description

A flowchart of the algorithm is shown in Figure 4. Individual parts of the algorithm are described in figures from Figures 510. The input signals of the algorithm are VCG leads () with indexes , samples of the signal record are marked as , where is the total number of samples. Functional values of the input signals are marked as in units , where is gain of the signal. The signals are sampled with the sampling frequency . The outputs of algorithm are the time instants of the QRS peak, QRS onset and QRS end, and PQ interval onset and offset for each QRS complex and each signal of the VCG record. These time instants are stored in the matrixes , , , , where the indexes of each matrix element corresponds to the signal index and the sequential number of the heartbeat detected. Another output is the QRS loop global boundaries marked as and . The boundaries indicate the number of samples on left and right to the synchronizing QRS peaks detected, evaluated globally for a record. As the synchronizing wave the QRS peak time instant in the lead is selected. An example of QRS boundaries and isoelectric lines detection is in Figure 11.

FIGURE 4

FIGURE 4

Algorithm flowchart.

FIGURE 5

FIGURE 5

QRS detection flowchart.

FIGURE 6

FIGURE 6

Founded zero points to the left of the and to the right of the in the bounds. The zero points met the condition corresponding to the green denoted intervals and the elements and .

FIGURE 7

FIGURE 7

QRS onset detection flowchart.

FIGURE 8

FIGURE 8

Adjusting the QRS onset for a wide QRS. In the first graph from the top: the original signal (wide QRS). In the second graph from the top: with the set of points found and delimited by the . In the third graph from the top: and zero points from to detected in the range of , the time interval of the zero point is coloured by red, where , the new zero point found and the QRS onset . In the fourth graph from the top: for comparison to scalogram. In the fifth graph from the top: and and maximum energy in the range of , the neighbourhood coloured by red is the zone for the high energy detection by the defined condition. In the neighbourhood there were not any thresholds for exceeded, however, at the scale there was the double energy related to the scale in the range defined by . On condition for the wide QRS was met and the QRS was qualified as wide.

FIGURE 9

FIGURE 9

Marking of the shifting window with the width of , initial point in the point, end point in the point and shift step . In each window, there is the line slope evaluated. In the case of the QRS onset and offset adjustment, the line slope is evaluated only from the initial and end points of the window. The new point marked in the graph is defined based on the parameter.

FIGURE 10

FIGURE 10

QRS loop boundaries detection flow chart.

FIGURE 11

FIGURE 11

Illustration of the QRS loop boundaries detection and the individual time instants , , , . The function value in the synchronising point is marked by the red triangle, next there are marked the function values in the points , (empty triangle), function values in the points of the QRS onsets (blue circle), function values in the points of the QRS ends (green circle), function values in the points of the sets of the PQ segments (black circle). The boundaries of the QRS loop , marked with violet colour. Isoelectric coordinates marked with blue isolelectric lines.

Signal preprocessing

The VCG leads () signal preprocessing is performed to remove noise added from powerline interference and baseline wander caused by respiratory and motion artefacts. The baseline wander removal is accomplished by digital FIR high pass filter with 1 Hz cuttoff frequency in passband (−0 dB) and 0,5 Hz cutoff frequency in stopband (−61 dB). The properties of the FIR filter type used allows to preserve useful ECG frequency bands with no additional signal distortion, meeting requirements of American Heart Association (AHA) (Klingfield et al., 2007) for diagnostic ECG. The powerline interference is filtered by notch 50 Hz or 60 Hz filter depending on the presence of the interfering signals. Used 0.17 Hz narrowband notch with an attenuation greater than 60 dB affects the original signal only in the narrow frequency band around the 50 Hz or 60 Hz interference with a negligible effect on the useful ECG frequency band (Klingfield et al., 2007), (Medteq, 2022).

QRS peak detection

QRS detection is based on waletet transform of input signals on scale (see Figure 3). At first, the threshold of wavelet transform function for each signal is defined, where parameter is the oscillation ratio of the absolute maximum value of function. Then, the sets are formed, where each set represents the estimated time instants of the heartbeat. The criterion for the sets definition is the parameter , which indicates the maximum number of samples between the two subsequent heartbeats. From each set of the points with the function values lower then are excluded. Then the comparison of the QRS detected (represented by sets) between signals is done. If the QRS is detected in a single lead then the QRS (corresponding ) is excluded. If the QRS is detected in two of three leads, the new point of QRS detection is added to the corresponding set. All the QRS detected at the edge of the record within the limits of the record are excluded. Then the matrix with the elements is created, where is one element from each set defined as the maximum function value of the . In the neighbourhood of the point , where the neighbourhood of the point is defined as , the maximum amplitude of the function is found. This point indicates the time instant of the QRS occurrence and it is added to the matrix. Simplified flowchart of the QRS peak detection is in Figure 5.

QRS onset and QRS end detection

Detection of the QRS onset and QRS end is based on the zero crossing of the function . zero points in the neighbourhood of are searched for, where are elements of the matrix. The neighbourhood is defined by the parameter . In the left neighbourhood of the the zero points are searched for, where , is the number of zero points in the left neighbourhood of the . In the right neighbourhood of the zero points are searched for, where , is the number of zero points in the right neighbourhood of the . , there is defined the oscillation threshold of the function by the parameter .

For the QRS onset detection, there is the partial function defined, where for each zero point , where is the function value assigned if the condition is met or the function value is assigned if the condition is not met.

An example of zero points in the

neighbourhood finding and the

definition is shown in the

Figure 6

. The elements of

is the sequence of values

and

, where

corresponds to the suitable interval of the signal

and

correspond to the non suitable interval, where

,

. There are the rules for the QRS onset

detection established:

  • • If the length of one last non suitable interval is lower then , the interval is assigned as the suitable one.

  • • As the zero point of the QRS onset, the zero-point located after couple of the unsuitable intervals is assigned or the zero-point located after an unsuitable interval with the length higher then is assigned.

The QRS onset is than accurately traced in the interval between the zero points and . The criterion for the QRS onset assignment is the signal shape of the function in the right neighbourhood of the . The founded QRS onset is put into the matrix . The flowchart of the QRS onset detection is in Figure 7.

The QRS end is detected by analogy in the right neighbourhood of the . The founded QRS end is put in the matrix .

Wide QRS onset and QRS end detection

Adjusting the QRS onset or QRS end is performed in the case of meet the condition of exceeding the percentage of energy of the wavelet coefficients 2) in the QRS onset or QRS end neighbourhood. It is compared the energy percentage at scales and in the time window width, given by the parameter and the percentage of energy at these scales in the neighbourhood for the QRS onset, and and neighbourhood for the QRS end. The adjusting of the QRS onset and QRS end is based on the zero crossing of the function , when the similar process as for the QRS onset and QRS end detection is kept. there are the zero points and found in the neighbourhood , given by the parameter . The are the points with the local maximum of the function where . Parameter . An example for the QRS onset adjustment for the wide QRS is shown in Figure 8.

QRS onset and QRS end adjustment by slope

QRS onset and QRS end adjustment by slope is based on the linear regression method and line slope calculation on the time window of the input signal in the section before the QRS onset ( point), and after the QRS end ( point).

For the QRS onset adjusting there are some parameters set: the window width , the initial point of the investigation—number of samples before the , , the end point of the investigation—number of samples after the , , the movement step of the window, . The line slope is evaluated based on the linear regression of the initial and end points of the time window. The threshold for the slope exceeding is set to . If the slope is exceeded for , where is the accumulate shift of the window , then the first window in the sequence with the slope is found and the new QRS onset is defined. If there is not any time window that met the condition, the new QRS onset is defined in the point . The QRS onset adjustment by slope is shown in Figure 9.

Finding the slope in the right neighbourhood of the and finding the new QRS end is carried out analogously.

QRS onset and QRS end alignment between signals

Aligning of the QRS onsets or QRS ends between the three VCG leads is performed in case of exceeding the distances between the , or points for the given and triple of signals by the defined threshold . If the condition is met, the farthest point is shifted on the mean value of the remaining two points and the new QRS onset or QRS end is found.

PQ detection

PQ isoelectric interval detection is based on linear regression and line slope evaluation on the temporal search window of the input signal in the neighbourhood of the QRS onset point . By the experimental work of the PQ detector, there were any other parameters evaluated on the time window (line slope difference, the mean value of the signal, standard deviation difference). However, only one parameter—the line slope was chosen for the algorithm. The time window is given by parameters: the window width , the initial point of the investigation—the number of samples before the , , the end point of the investigation—number of samples after the , , the movement step of the window, . The line slope is evaluated based on the linear regression of the function on the time window. The time window with the minimum line slope is selected and defined as looked-for part of the PQ segment. Although the PQ segment is usually longer than , its entire interval is known as isoelectric. For this reason, it is sufficient to choose only the suitable part of the PQ segment for isoelectric line evaluation. The beginning and end of the time window founded are put into the set and into the matrix.

QRS loop boundaries detection

The QRS loop boundaries detection is performed based on the QRS peak detected ( matrix), the PQ segment detected ( matrix) and the QRS end detected ( matrix). the maximum distance of the and is computed, where is the time instant of the QRS detected in the lead , specified as a synchronising wave for all the three leads and given . Median of these distances is assigned as —the left boundary of the QRS, its value is the number of samples to the left of the synchronising wave. there is computed the maximum distance of and . Median of these distances is assigned as —the right boundary of the QRS loop, its value is the number of samples to the right of the synchronising wave, where and are identical for all (all the QRS loops of the record). The flowchart of the QRS loop boundaries detection is in Figure 10.

QRS loop isoelectric coordinates detection

Isoelectric coordinates are evaluated for each of the QRS loop of the record based on the mean voltage levels in the PQ intervals detected for the signals from the relation (4):where is the sequence number of QRS loop detected, is index of the signal, is the input signal, is sample of the signal, is set of beginning and end point of the PQ interval, is a mean value.

Results

Validation of the QRS detector and QRS onset and QRS end time instants was performed on CSE multilead database dataset 3 with 12 standard leads and 3 Frank leads of 125 biological ECGs. All recordings are 10 s long sampled at 500 Hz with 1 µV resolution. Patients with various diagnoses including bundle branch blocks and aspecific conduction defects with significant changes in ECG image causing a wide QRS (>120 ms) was observed in 21 of total of 125 cases. Number of cases for four main groups of diagnoses can be seen in Table 2 (Goldberger et al., 2000), (Zhao et al., 2004), (Willems et al., 1990).

TABLE 2

Diagnose Number of cases
Healthy control 33
Bundle branch blocks and fascicular blocks 33
Myocardial infarction 33
Other 26
Total 125

Preview of CSE validation database diagnoses.

To use the records sampled a at 500 Hz, the records were firstly resampled to 1,000 Hz in the context of preserving original filters and frequency scales of wavelet transform. Form the total of 125 records, one record with an artificial pacemaker was excluded.

Median referee annotation based on five referee cardiologists and median program annotation based on nine different ECG analysis programs are provided in CSE database together with ECG waveforms in digital data file format. The cardiologists only analysed every fifth record and additionally some waves, for which a set of analysis programs differed significantly. For this study, the records were divided into two groups, where in the first group the results were compared with median referee annotation, while for the second group only the median program annotation was available. However, the median wave recognition results of the nine ECG analysis programs are almost identical to the final visual estimates obtained by the referees and thus can be used as a substitute of the reference annotation (Zhao et al., 2004).

In the CSE database we obtained 3 different sets of annotations, one for each channel . For selecting a single location for each characteristic point, we used a rule consisting of ordering the 3 single-lead annotations and selecting as the onset (end) of QRS the first (last) annotation whose nearest neighbor lay within smallest ms interval. This rule had been already used in (Chazal and Celler, 1996), (Laguna et al., 1994), (Martínez et al., 2004), where values to and to were used for 12 or 15 single leads annotations.

To evaluate the QRS peak detector, we use the sensitivity () and positive predictivity () formulas:where is number of true postive detections, is number of false negative detections and is number of false positive misdetections

For total of 1,467 beats, we obtained a sensitivity of and a positive predictivity of .

To assess QRS onset and QRS end time delineation performance, mean value and standard deviation of time differences between presented algorithm and reference annotation were calculated. The algorithm accomplishes the two standard deviations tolerances (“loose criteria”) for both QRS onset and QRS end time evaluation (see Table 3), where the criteria is a robust estimation of the “median reader” of what can be expected from an expert cardiologist (Willems et al., 1990). This criterion was also used in (Laguna et al., 1994; Martínez et al., 2004; CSE WORKING PARTY, 1985; Vila et al., 2000), while for others (Chazal and Celler, 1996), the one standard deviation criteria (“strict criteria”) should be attained. The delineation results comparison between LPD methods presented in (Chazal and Celler, 1996; Laguna et al., 1994) and WT methods presented in (Martínez et al., 2004; Sahambi et al., 1997) in the CSE database are already available in (Martínez et al., 2004), where the proposed algorithm achieves comparable or better results for the QRS onset and QRS end detection than others except for (Sahambi et al., 1997), where lower error standard deviation is reported. However, we have no information about what dataset and what one-lead to multilead rule were used.

TABLE 3

References QRS onset QRS end
Median referee annotation (32) 3.0 ± 5.6 (27) -0.1 ± 7.9
Median program annotations (92) 0.9 ± 5.4 (97) 1.7 ± 7.7
Combined (124) 1.4 ± 5.5 (124) 1.3 ± 7.8
Tolerances (Willems et al., 1990) 6.5 11.6

ORS onset and QRS end delineation performance.

To evaluate the isoelectric PQ segments detection accuracy, a condition was established: The PQ interval of the temporal 20 ms window must be located between the end of the P wave and the beginning of the QRS onset annotated by a referee. The condition was met for all the 124 records.

Requirements for the global and QRS boundaries detection, calculated by relations (see Figure 11) were to include all QRS loops of the record between these two bounds with respect to intra-individual variability of the record (Penhaker et al., 2014). The detected in isoelectric PQ segment and detected in the most probably QRS end was ideal for QRS loops comparing and visualisation.

Conclusion

Designed QRS loop detector evaluates zero crosses of the wavelet transform, linear regression and percentage of energy of the wavelet coefficients on specified scales and uses the experimentally set logical terms to select an appropriate interval between zero crossings to QRS onset and QRS end evaluation. To provide a finer resolution an accurate localisation in time, a continuous WT and biorthogonal wavelet versus quadratic spline in other studies is used. To adjust fiducial points, the problem is transferred to time-domain on pre-defined temporal windows. The PQ isoelectric interval is found on temporal search window as the flattest part of the PQ segment.

Detected isoelectric coordinates of the individual QRS loops of a VCG record allows the spatiotemporal QRS loops alignment synchronized by QRS peaks with the length of QRS determined by automatically detected QRS bounds of the record. The spatiotemporal QRS loops alignment allows the QRS loops comparison, averaging, ectopic QRS loops evaluation and intra-individual variability assessment which was addressed in the previous study.

Compared to other algorithms, the proposed solution combines both WT as a robust method in the presence of noise as well as in baseline wander situations, and time-domain techniques for better performance in intricate ECG morphologies to adjust QRS onset, QRS end, and isoelectric PQ interval detected on temporal search window. Special care is given to wide pathological QRS, where fiducial points are evaluated on different scale for experimentally set conditions. The algorithm uses multilead approach, where three VCG leads are used simultaneously for detection of QRS onset and QRS end.

The results of QRS peak, QRS onset and QRS end detection was compared with other published approaches and have shown that the developed algorithm provides a reliable and accurate delineation of the ECG signal better or comparable with other algorithms with standard deviation complying limits for the CSE database, promising extension of P and T waves detection for further VCG processing and automatic VCG classification.

Statements

Data availability statement

Publicly available datasets were analyzed in this study. This data can be found in the PTB Diagnostic ECG Database: https://physionet.org/content/ptbdb/1.0.0/. Requests to access the CSE database should be directed to .

Author contributions

JK developed signal processing algorithm on input data. The processed VCG signals and results were assesed and consulted by physicians PV and PZ under the guidance of research work MP.

Funding

This publication has been produced with the support of the Integrated Infrastructure Operational Program for the project: Creation of a Digital Biobank to support the systemic public research infrastructure, ITMS: 313011AFG4, co-financed by the European Regional Development Fund.

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.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

Summary

Keywords

vectorcardiography, QRS detection, segmentation, wavelet transform, isoelectric line detection

Citation

Kijonka J, Vavra P, Zonca P and Penhaker M (2022) A wavelet-based VCG QRS loop boundaries and isoelectric coordinates detector. Front. Physiol. 13:941827. doi: 10.3389/fphys.2022.941827

Received

12 May 2022

Accepted

04 October 2022

Published

21 October 2022

Volume

13 - 2022

Edited by

Rajesh Kumar Tripathy, Birla Institute of Technology and Science, India

Reviewed by

Sibghatullah Khan, Sreenidhi Institute of Science and Technology, India

Rishi Raj Sharma, Defence Institute of Advanced Technology (DIAT), India

Updates

Copyright

*Correspondence: Jan Kijonka,

This article was submitted to Computational Physiology and Medicine, a section of the journal Frontiers in Physiology

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics