0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
−0.4
0.1
0.6
1.1
1.6
2.1
2.4
Time (sec)
Amplitude
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
−35
−30
−25
−20
−15
−10
−5
0
5
10
Time (sec)
Normalised distortion (dB)
Average ECG complex (MIT rec. 103)
Average RMS error without moving average
Average RMS error with moving average
Average disortion without moving average
Average distortion with moving average
Figure 6: RMS error with respect to the original ECG aver-
aged per P-QRS-T complex for the full MIT record no. 103
(up) and averaged distortion along the P-QRS-T complex
in dB, calculated as the inverse of the signal-to-error ratio
(down).
the bottom graph. Namely, the inverse of the instanta-
neous signal-to-error ratio averaged for all P-QRS-T
complexes has been chosen as a measure of distor-
tion. It can be seen that improvements of up to 5 dB
are achieved for the P-Q segment, the S wave and the
end of the T wave.
This effect can also be assessed in spectral do-
main by analysing the spectra of original and pro-
cessed ECG’s. These spectra are depicted in the bot-
tom graph of figure 3. While both baseline wander
removal algorithms remove the spectral peak below
0.5 Hz, the herein proposed system achieves so with-
out affecting the first harmonic of the ECG, while a
significant distortion is produced if the moving aver-
age is not used.
5 CONCLUSIONS
Within this paper an evolved adaptive system for
the removal of ECG baseline wander has been in-
troduced. Both the low computational complexity
and the short delay (about half a beat period) of the
scheme make it useful for real-time implementation.
At the same time, preliminary tests indicate that this
system may outperform other more complex systems
in terms of signal distortion without any averaging
that lasts for more than one heart beat, and with-
out any P-QRS-T averaging at all, thus avoiding the
masking of beat-to-beat variations.
A supplementary improvement on the proposed
baseline removing system could be achieved by
adapting the lengths of the filter W and the shift
register M to the beat-to-beat period. If, within
the ECG processing posterior to baseline wander re-
moval, QRS detection is to be performed, then the
reduced distortion in frequency domain should be
achieved exactly at the harmonics of the ECG funda-
mental frequency without specifically increasing the
computational complexity of the baseline filter.
ACKNOWLEDGEMENTS
This research was carried out within projects funded
by the Ministry of Science and Technology of
Spain (TEC2006-12887-C02) and the Universidad
Polit´ecnica de Madrid (AL06-EX-PID-033).
REFERENCES
Barati, Z. and Ayatollahi, A. (2006). Baseline wandering
removal by using independent component analysis to
single-channel ECG data. In Proc. of the International
Conference on Biomedical and Pharmaceutical Engi-
neering ICBPE 2006, pages 152–156. ID: 1.
Laguna, P., Jane, R., and Caminal, P. (1992). Adaptive fil-
tering of ECG baseline wander. In Proc. of the 14th
Annual International Conference of the IEEE Engi-
neering in Medicine and Biology Society, volume 14,
pages 508–509.
Physionet (2007). The MIT-BIH arrythmia database. URL:
http://www.physionet.org/physiobank/database/mitdb/.
S¨ornmo, L. (1991). Time-varying filtering for removal of
baseline wander in exercise ECGs. In Proc. of Com-
puters in Cardiology, pages 145–148.
S¨ornmo, L. and Laguna, P.(2005). Bioelectrical Signal Pro-
cessing in Cardiac and Neurological Applications. El-
sevier Academic Press.
Texas Instruments (2008). Digital signal pro-
cessing (DSP) development tools. URL:
http://www.ti.com/home p dsp.
Thakor, N. V. and Zhu, Y. (1991). Applications of adap-
tive filtering to ECG analysis: noise cancelation and
arrhythmia detection. IEEE Transactions on Biomed-
ical Engineering, 38(8):785–794.
Weng, B., Blanco-Velasco, M., and Barner, K. E. (2006).
Baseline wander correction in ECG by the empiri-
cal mode decomposition. In Proc. of the 32nd IEEE
Annual Northeast Bioengineering Conference, pages
135–136.
Zhang, D. (2005). Wavelet approach for ECG baseline wan-
der correction and noise reduction. In Proc. of the 27th
Annual International Conference of the IEEE Engi-
neering in Medicine and Biology Society IEMBS 05,
pages 1212–1215.
LOW-COST ADAPTIVE METHOD FOR REAL-TIME ECG BASELINE WANDER REMOVAL WITH REDUCED P
AND T WAVE DISTORTION
479