Professional Documents
Culture Documents
Wavelets Extrema Representation For QRS-T Cancellation and P Wave Detection
Wavelets Extrema Representation For QRS-T Cancellation and P Wave Detection
³
-3
x 10 ECG reconstruction using DWT extrema
DWT f ( j , t ) = f ( u ) ⋅ψ 2 j
,t
( u ) du where j is an 2
−∞
1
integer, t is the time position and
0
−1/ 2 § t·
u −
ψ¨ ¸ ( {2 }
j
ψ a ,t ( u ) = a is the set of dyadic -1
0 200 400 600 800 1000 1200 1400 1600 1800 2000
© a ¹
-4
j∈' x 10 Reconstruction residual error
4
0
(6), the DWT defines a complete, stable and reversible
-2
representation. Fast algorithms, for analysis and synthesis -4
0 200 400 600 800 1000 1200 1400 1600 1800 2000
are then derived. The behavior of the DWT modulus local
Figure 1 Example of an ECG estimation based on its
maxima from scale to scale, allows characterizing the
DWT extrema (MIT-BIH records 108).
local regularity/singularity of the signal. Moreover, using
the set of local maxima, a numerically stable
This approach is explored for isolating the atrial
approximation of the signal with about 1% (mean square
activity observed during a cardiac cycle. The proposed
error) is possible (6).
QRS-T cancellation procedure may involve one or two
Investigations conducted in our group showed that ECG channels.
wavelets are suitable tools for analyzing ECG (7, 8). We Single channel case: the ECG signal is decomposed by
propose to use the DWT of surface ECG for QRS-T means of DWT and, for each scale, only the local
interval cancellation. The procedure exploits the extrema of the transformation are kept while the other
possibility of reconstructing numerically an values are set equal to zero. The QRS-T cancellation is
approximation of a signal based on the local extrema of conducted in the transformed domain by keeping, level
its DWT and relies on the frames theory (6). The set of by level, only the DWT extrema present around the QRS-
wavelets associated to the local extrema is a non T position. The signal reconstructed from the residual
orthogonal system. This frame has a pseudo-inverse and extrema contains only information outside the QRS-T
an iterative method combining the gradient conjugates interval. Figure 2 illustrates these remarks. By comparing
algorithm and the fast DWT algorithms of decomposition to direct methods of QRS-T cancellation previously
and synthesis allows its estimation (6). The inversion mentioned, the residual signal including the P wave
leads to a good estimate of the original signal. Figure 1 presents only few discontinuities induced by edge effect
shows an example of reconstruction of a normal ECG of the window. Furthermore, this approach allows
from its DWT local extrema. The signal is decomposed reducing both high frequency noise and baseline drifts.
on nine levels (j from 1 to 9) and only the local extrema Two channels case: the two channels are chosen so that
exceeding a threshold, defined level by level, are retained one of the two exhibits small P wave amplitudes. This
for representing the signal. The iterative procedure of one, noted ECG2, is used for canceling the QRS-T
reconstruction applied to these extrema leads to a good interval from the other channel noted ECG1. We
estimate of the original ECG with a relative error (norm postulate that, for the two derivations, the QRS-T
of the zero-mean error signal reported to the norm of the interval, which is the electrical signature of the
zero-mean original signal) about 8,5 %. This ventricular activity, occupies approximately the same
approximation method was applied for estimating a frequency band. It is then described statistically by the
deterministic signal in presence of additive gaussian same wavelets but with variable coefficients from one
white noise (6). Recently, fetal ECG extraction from the channel to another one. The two signals are decomposed
mixture of maternal and fetus ECG has been considered to produce DWTECG1 ( j , t ) , DWTECG 2 ( j , t ) and the two
using such a method and exploiting two surface ECG
associated sets S1 and S2, of local extrema. S2 contains
leads (abdominal and precordial strongly dominated
extrema mainly due to the ventricular activity whereas
respectively by fetal ECG and maternal ECG). (9) To
extrema in S1 are related to both atrial and ventricular
estimate the fetal ECG from these two mixtures, the
activities. A temporal matching procedure is conducted
DWT extrema of precordial channel is matched with
between S1 and S2 to derive a subset S of S1 mainly
those of the abdominal lead. The signal, reconstructed
describing the ventricular activity. Using S, an
from the "matching" extrema of the two decompositions,
approximation of the ventricular activity observed in
provides an estimation of the maternal ECG observed on
ECG1 is derived and then subtracted from ECG1 leading
the abdominal lead. By subtraction of this activity, an
to a beat-to-beat QRS-T cancellation.
estimation of the cardiac signal of the foetus is derived.
38
Raw ECG
50 the presence of the transient artifact on the second
0 channel. Moreover, it allows enhancing the P wave,
-50
partially hidden by the PVC beat. The example depicted
-100
in Figure 6 shows that in the presence of a PVC having
-150
similar morphology of that of a normal QRS in one
-200
0 200 400 600 800 1000 1200 1400 1600 1800 2000
channel, all the P waves, even the isolated one, are
Partial recons truction
60 enhanced.
40 40
Smoothing of the risidue
20 20
0 0
-20 -20
-40 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
0 200 400 600 800 1000 1200 1400 1600 1800 2000
500 1000 1500 2000 2500 3000 3500 4000 4500 5000
reconstruction procedure to attenuate these perturbations 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
ECG2
by omitting some analysis scales. In fact, muscular 1100
1000
activity is mainly located in low scales and baseline drifts
900
influence primarily high scales. Only intermediate scales 800
are then kept (in S). An illustration of this approach is 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
proposed Figure 3. Two remarks can be made: i) baseline Figure 3 partial reconstruction of ECG1 using the subset
drifts, even different from one channel to the other, do S of extrema. The QRS-T interval is canceled and the P
not influence the enhancement of the P waves, ii) the waves are enhanced. Wavelet filtering allows attenuating
method is insensitive to QRS morphological changes EMG activity and baseline drifts (MIT-BIH record 108).
(here, progressive and disturbing only one ECG channel).
This approach requires neither the QRS detection nor the ECG2
implicit hypothesis that a P wave precedes the QRS. DWT Extrema
Therefore, it is applicable in arrhythmia situations with Extrema - E2 E2f
A-V dissociation. Partial Rec.
association
We have retained this second approach and introduced ECG1
+
a variation in order to strengthen its P waves DWT Extrema Partial Rec.
-
enhancement capabilities. A block diagram summarizing + E1 E1f
the method is reported in Figure 4. The outputs E1f and
E1 correspond to the signals show in panels 1 and 2 of
Figure 4 Block diagram of QRS-T interval cancellation.
Figure 3. The new output E2 is derived by subtracting the
QRS-T activity estimate of ECG1 from the
approximation of ECG1 obtained by means of 4. Quantitative results
DWTECG1 ( j , t ) extrema reconstruction (and not from the
For the objective evaluation of the above QRS-T
raw ECG1). cancellation method, we have adopted the evaluation
scheme described in (5). We defined the signal to noise
3. Qualitative results ratio (SNR) as being the logarithm of the ratio between
Qualitative comparisons between E1, E1f, E2 and E2f the power of the PQ interval and the power of the QRS-T
where conducted on real ECG signals exhibiting both interval. This quantity is estimated before and after QRS-
normal and abnormal rhythms. The reported examples T cancellation. Boxplots are used to visualize the
show that the E2f output provides a good approximation behavior of the evaluation criteria. First we explored the
of the P waves sequence. ECG signals shown in Figure 5, influence of the number of decomposition levels of the
display a PVC beat which overlaps the P wave of the DWT on the signals E1, E1f, E2 and E2f. Using the MIT-
sinus rhythm and a transient artifact disturbing the BIH records 100, 107 and 108, SNR boxplots (not shown
baseline during the compensate pose. Our method is here) indicate that a number of 6 levels is appropriate for
neither sensitive to the abrupt QRS-T morphological the P waves enhancement and that E2f performs better
changes affecting simultaneously the two channels, nor to than the other outputs. Using 6 levels and E2f, we
39
compare based on records MIT-BIH 100 and 108, our in the literature. Work in progress focuses on a large
method with the most powerful approaches reported in scale SNR comparisons and the definition of a new
(5) : Hernandez, Thakor, Dufault and Stridh, noted robust P wave detection statistics.
60
respectively St1(2), Stb4, Stb5 and Stb6. Boxplots
50
highlight the significant improvement of the SNR after
QRS-T cancellation and show that our method (WT) 40
-10
200
CG1 0 -20
-200 -30
100
-40
CG2 0 ECG1 WT st1(2) Stb4 Stb5 Sornm
-100
-200 Figure 7 SNR before and after QRS-T cancellation for
40
20 the compared methods.
E1 0
-20
References
20
E1f 0 [1] DuFault R, Wilcox A. Automatic P-wave detection in
-20
40
surface ECGs. In: Proc. IEEE/EMBS; 1986; Chicago, USA:
20 Engineering in Medicine and Biology Society; 1986. p. 325-
E2 0
-20 328.
[2] Thakor NV, Zhu YS. Applications of adaptive filtering to
20
E2f 0 ECG analysis: noise cancellation and arrhythmia detection.
-20 IEEE Transactions On Biomedical Engineering 1991;38(8):785-
500 1000 1500 2000 2500 3000 3500 4000
94.
Figure 5 Behavior of the QRS-T cancellation procedure
[3] Stridh M, Sornmo L. Spatiotemporal QRST cancellation
in presence of QRS-T morphology changes over techniques for analysis of atrial fibrillation. IEEE Trans Biomed
channels, occurrence of isolated artifact and overlapping Eng 2001;48(1):105-11.
of P and T waves (MIT-BIH record 108). [4] Hernández AI, Carrault G, Mora F. Improvement of a P-
wave detector by a bivariate classification stage. Transactions of
100 the institute of measurement and control 2000;22(3):231-242.
EEG1 0
-100 [5] Hernandez AI, Carrault G, Mora F, Passariello G,
Hernandez MI, Schleich J. Quantitative comparison of atrial
EEG2 0
-100
activity detection approaches. In: Computers in Cardiology;
-200 1997 1997; Lund, Sweden: Practical; 1997. p. 481-484.
40 [6] Mallat SG. A wavelet tour of signal processing. 2nd ed. San
20
E1 0 Diego: Academic Press; 1999.
-20
[7] Senhadji L, Carrault G, Bellanger JJ, Passariello G.
20 Comparing wavelet transforms for recognizing cardiac patterns.
E1f 0
-20
IEEE Engineering in Medicine and Biology Magazine
1995;14(2):167-173.
20
E2 0
[8] Senhadji L, Thoraval L, Carrault G. Continuous wavelet
-20 transform: ECG recognition based on phase and modulus
20 representations and hidden Markov models. In: Aldroubi A,
E2f 0 editor. Wavelets in medicine and biology. NY: CRC Press.;
-20
500 1000 1500 2000 2500 3000 3500 4000
1996. p. 439-463.
Figure 6 Behavior of the QRS-T cancellation procedure [9] Khamene A, Negahdaripour S. A new method for the
extraction of fetal ECG from the composite abdominal signal.
in presence of QRS-T morphology change mainly on one
Biomedical Engineering, IEEE Transactions on 2000;47(4):
lead and a non-conducted P wave (MIT-BIH record 108). 507-- 516.
5. Conclusion Address for correspondence.
The proposed DWT based QRS-T cancellation
methods uses two channels and appears very attractive. It Prof. Lotfi SENHADJI,
is insensitive to QRS morphology changes, ectopic beats, LTSI, Bât.: 22, Université de Rennes 1
F-35042 Cedex, Rennes France.
transient artifacts, baseline drifts, isolated P waves and E-mail: Lotfi.Senhadji@univ-rennes1.fr
performs well compared to methods recently introduced
40