Professional Documents
Culture Documents
* Universidade Federal de Santa Maria -Camobi, Santa Maria, CEP 97105900 Brazil
Table 1: λSURE
D6
level SURE1 SURE2
1 0.175125706 0.196140791
Figure 1: PR1-signal with its sequence of noisy details. 2 0.228918654 0.228918654
3 0.207307705 0.207307705
0 0.82 1.64 2.46 3.28 4.1 4 0.125072163 0.182797776
5 0.195903862 0.167917596
6 0.533142846 0.102091183
ECG
The four finest scales are completely noisy, as can be
D1 observed on figure 1. Both strategies, SURE1 and SURE2,
D2
remove this amount of high frequency noise and preserve
the essential information of the signal contained at
D3 coarsest levels of the wavelet transformation.
In each level of the wavelet transform, we compute the
D4
maximum detail modules and define 8 subintervals for the
possible details magnitude values. For each level we
D5 count the amount of wavelet coefficients contained in
each subinterval, before and after the thresholding
D6 operation. The remaining quantities after thresholding for
levels 5 and 6 are shown on figure 4, illustrating the
Figure 2: PR1-ECG filtered by SURE1 strategy and the difference between both strategies for these levels.
sequence of significant details. After the SURE thresholding, only levels 5 and 6 have
a significant number of coefficients. It enables the signal
The graphic on figure 1 presents in the first row the reconstruction without high frequency noise.
original ECG (PR1) and below it, the sequence of details
(wavelet coefficients) from scale 1 to 6 without filtering.
ECG
D1
D2
D3
Figure 4: Number of wavelet coefficients after SURE1
thresholding (left column) and SURE2 (right column).
D4
Through the application of the same wavelet transform
D5 to PR3 and PR4 pathological ECGs, we have observed
that SURE2 provides better filtering results than SURE1.
D6 From figures 5 and 6 we observe that SURE1 can not
filter appropriately the noise contained on the first details
Figure 3: PR1-ECG filtered by SURE2 strategy and the level of the PR3 signal, while SURE2 filter it. The same
sequence of significant details. behaviour can be observed for the PR4, whose graphics
are presented on figures 7 and 8. Low frequencies
information is carried into these coarsest coefficients, Table 2: λSURE
once information associated to high frequencies are level SURE1 SURE2
contained in fine scale details. 1 0.103365948 0.188243678
2 0.268627183 0.268627183
0 0.82 1.64 2.46 3.28 4.1 3 0.248895115 0.248895115
4 0.140817613 0.18685414
5 0.218718358 0.160188093
ECG 6 0.609695838 0.138567236
D1
The last pathological ECG presented is PR4 and the
result of the filtering process by using SURE2 estimator
D2 associated with the wavelet transform is much more
effective. Again SURE2 was able to filter noise associated
D3 to high frequencies, which are concentrated in fine scales.
D5 ECG
D1
D6
D2
Figure 5: PR3 ECG filtered by SURE1 strategy and
sequence of significant wavelet coefficients. D3
D5
ECG
D6
D1
1
5. QRS Detection
0.5
As previously mentioned, QRS detection has been
studied in several approaches [13]. In this section we 0
propose a simpler one, based on Haar transform, to obtain -0.5
a lightweight detection algorithm. On our algorithm, P 0.6 b) D1
and T waves are not detected, since it is focused on 0.4
counting and localizing abnormal QRS patterns for long 0.2
time ECG analysis.
0
After we filtered the signal with the db4 wavelet
transform associated to the SURE thresholding strategy, -0.2
we apply Haar wavelet transform in order to capture small -0.4
scale variations, which are intrinsic to the signal. These 0.15 c) D2
variations will localize the QRS complex in each scale. 0.1
Even in abnormal cases, this behaviour is observed.
0.05
The following algorithm summarizes the procedure for
detecting QRS localization through Haar wavelet 0
coefficients: -0.05
1. apply Haar wavelet transform of ECG with 213 points -0.1
( c 0 ) in J levels; -0.15
2. for each level find the maximum wavelet coefficient 0.4 d) D3
( max(d j ) ); 0.2
3. for each level select the details ( d j ,i ) associated to
0
QRS complex using α 1 = 0.5 (a weight of max(d j ) ):
-0.2
then position i ∈ QRS complex
if d j ,i > α 1 max(d j ) -0.4
else position i ∉ QRS complex
0.8 e) D4
4. identify different QRS complexes:
0.4
d j ,i and d j ,i ' are consecutive selective coefficients;
0
α 2 = 0.1 is 0.1*(standard QRS time duration);
1
∆t = f
= 0.0005s ; -0.4
3
[1] J. D. Bronzino, The biomedical engineering
handbook (Boca Raton – FL: CRC Press, 2000).
[2] M. Akay, Wavelet applications in medicine,
2 Biomedical Engineering, IEEE Spectrum, may 1997,
50-56.
[3] Y. Ishikawa, F. Mochimaru, Wavelet theory analysis
1
of high – frequency, high – resolution
electrocardiograms: a new concept for clinical uses,
Process in Biomedical Research, 7(3), sep
2002,179-184.
0
[4] O. M. Nielsen, Wavelets in scientific computing
(Ph.D. Thesis, Technical University of Denmark,
-1
mar 1998).
[5] M. Jansen, Noise reduction by wavelet thresholding
0 1 2 3 4
(New York, Springer Verlag, 2000).
Figure 10: anomalous PR3 ECG: QRS detection by level [6] C. Li, C. Zheng, C. Tai, Detection of ECG
characteristic points using wavelet transforms, IEEE
3 Trans. on Biomedical Engineering, 42(1), 1995, 21-
28.
2 [7] C. M. Stein, Estimation of the mean of a
multivariate normal distribution, Annals of Statistics
9, 1981, 1135-1151.
1
[8] S. G. Mallat, A theory for multiresolution signal
decomposition, the wavelet representation, IEEE,
0 Transactions on Pattern Analysis and Machine
Intelligence 11, 1989, 674-693.
[9] W. Härdle, G. Kerkyacharian, D. Picard, A.
-1
Tsybakov, Wavelets, approximation and statistical
applications, Seminaire Paris-Berlin, Paris, sep
-2
1997, 1-284.
0 1 2 4
3 [10] D. Donoho, I. Johnstone, Adapting to unknown
Figure 11: anomalous PR4 ECG: QRS detection smoothness via wavelet shrinkage, Journal of the
American Statistical Association 90, 1995, 1200-
1224.
6. Conclusion [11] F. Mochimaru, Y. Fujimoto, Y. Ishikawa, Detecting
the fetal electrocardiogram by wavelet theory-based
In this work we pointed out the advantage of using
methods, Progress in Biomedical Research, 7(3),
wavelet transform associated with an adaptive
sep 2002, 185-193.
thresholding strategy. Further, the possibility of detecting
[12] J. P. Martínez, R. Almeida, S. Olmos, A. P. Rocha,
positions of great variations in normal and abnormal ECG
P. Laguna, A wavelet-based ECG delineator:
signals is investigated and a lightweight wavelet
evaluation on standard databases, IEEE Trans.
coefficients based algorithm is proposed.
Biom. Eng., 51(4), apr 2004, 570-581.
Through the SURE adaptive wavelet thresholding all
[13] B. U. Köhler, C. Hennig, R. Orglmeister, The
irrelevant noise are removed of the signal, allowing the
principles of software QRS detection, IEEE Eng
utilization of a simple wavelet transform in the QRS
Biol. Mag., 21, jan/feb 2002, 42-57.
detection. The main advantage of this kind of detection is
a less time consuming analysis for long time ECG signal.