Skip to main content
Log in

Removal of baseline wander from ECG signal based on a statistical weighted moving average filter

  • Published:
Journal of Zhejiang University SCIENCE C Aims and scope Submit manuscript

Abstract

Baseline wander is a common noise in electrocardiogram (ECG) results. To effectively correct the baseline and to preserve more underlying components of an ECG signal, we propose a simple and novel filtering method based on a statistical weighted moving average filter. Supposed a and b are the minimum and maximum of all sample values within a moving window, respectively. First, the whole region [a, b] is divided into M equal sub-regions without overlap. Second, three sub-regions with the largest sample distribution probabilities are chosen (except M<3) and incorporated into one region, denoted as [a 0, b 0] for simplicity. Third, for every sample point in the moving window, its weight is set to 1 if its value falls in [a 0, b 0]; otherwise, its weight is 0. Last, all sample points with weight 1 are averaged to estimate the baseline. The algorithm was tested by simulated ECG signal and real ECG signal from www.physionet.org. The results showed that the proposed filter could more effectively extract baseline wander from ECG signal and affect the morphological feature of ECG signal considerably less than both the traditional moving average filter and wavelet package translation did.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Similar content being viewed by others

References

  • Boucheham, B., Ferdi, Y., Batouche, M.C., 2005. Piecewise linear correction of ECG baseline wander: a curve simplification approach. Comput. Methods Programs Biomed., 78(1):1–10. [doi:10.1016/j.cmpb.2004.10.008]

    Article  Google Scholar 

  • Burattini, L., Zareba, W., Burattini, R., 2006. The effect of baseline wandering in automatic T-wave alternans detection from holter recordings. Comput. Cardiol., 33:257–260.

    Google Scholar 

  • Chen, H.Y., Huang, M., Jiang, Y.X., Hai, J., 2006. Detection of ST segment in electrocardiogram by wavelet transform. Electr. Mach. Control, 10(5):531–533 (in Chinese).

    MATH  Google Scholar 

  • Clifford, G.D., Azuaje, F., McSharry, P.E., 2006. Advanced Methods and Tools for ECG Data Analysis. Artech House, Norwood, MA, p.135–191.

    Google Scholar 

  • Coifman, R.R., Wickerhauser, M.V., 1992. Enthropy-based algorithms for best basis selection. IEEE Trans. Inform. Theory, 38(2):713–718. [doi:10.1109/18.119732]

    Article  MATH  Google Scholar 

  • Hu, X., Gao, Y., Liu, W.X., 2009. Pattern recognition of surface electromyography signal based on wavelet coefficient entropy. Health, 1(2):121–126. [doi:10.4236/health.2009.12020]

    Article  Google Scholar 

  • Hu, X., Xiao, Z., Liu, C.H., 2010. Reduction Arithmetic for Power Line Interference from ECG Based on Estimating Sinusoidal Parameters. 3rd Int. Conf. on Biomedical Engineering and Informatics, p.2089–2092. [doi:10.1109/BMEI.2010.5640006]

  • Jeong, G.Y., Yu, K.H., Yoon, M.J., Inooka, E., 2010. ST shape classification in ECG by constructing reference ST set. Med. Eng. Phys., 32(9):1025–1031. [doi:10.1016/j.medengphy.2010.07.003]

    Article  Google Scholar 

  • Leski, J.M., Henzel, N., 2005. ECG baseline wander and powerline interference reduction using nonlinear filter bank. Signal Process., 85(4):781–793. [doi:10.1016/j.sigpro.2004.12.001]

    Article  MATH  Google Scholar 

  • Momot, A., 2009. Methods of weighted averaging of ECG signals using Bayesian inference and criterion function minimization. Biomed. Signal Process. Control, 4(2): 162–169. [doi:10.1016/j.bspc.2009.01.002]

    Article  MathSciNet  Google Scholar 

  • NIBIB and NIGMS, 1999. PhysioNet Resource. National Institutes of Health. Available from http://www.physionet.org/

  • Shi, L., Yang, C.Y., Fei, M.R., 2008. Electrocardiogram R-wave and ST segment extraction based on wavelet transform. Chin. J. Sci. Instrum., 29(4):804–809 (in Chinese).

    Google Scholar 

  • Sörnmo, L., 1993. Time-varying digital filtering of ECG baseline wander. Med. Biol. Eng. Comput., 31(5):503–508. [doi:10.1007/BF02441986]

    Article  Google Scholar 

  • Xu, L.S., Zhang, D., Wang, K.Q., Li, N.M., Wang, X.Y., 2007. Baseline wander correction in pulse waveforms using wavelet-based cascaded adaptive filter. Comput. Biol. Med., 37(5):716–731. [doi:10.1016/j.compbiomed.2006.06.014]

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xiao Hu.

Additional information

Project supported by the Science and Technology Project of Guangdong Province (No. 2009B060700124) and the Science and Technology Project of Guangzhou Municipality, Guangdong Province, China (No. 2010Y1-C801)

Rights and permissions

Reprints and permissions

About this article

Cite this article

Hu, X., Xiao, Z. & Zhang, N. Removal of baseline wander from ECG signal based on a statistical weighted moving average filter. J. Zhejiang Univ. - Sci. C 12, 397–403 (2011). https://doi.org/10.1631/jzus.C1010311

Download citation

  • Received:

  • Revised:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1631/jzus.C1010311

Key words

CLC number

Navigation