Piecewise linear correction of ECG baseline wander: a curve simplification approach

https://doi.org/10.1016/j.cmpb.2004.10.008Get rights and content

Summary

In this paper, we suggest a novel method for ECG baseline correction, exclusively based on pattern recognition tools, namely, dominant points (DPs). The DPs are computed by the Douglas–Peucker curve simplification algorithm. The so-computed DPs include peak and baseline points, the discrimination of which yields gradual piecewise linear estimation of the baseline wander (BaselineW) in two iterations. At each iteration, the current BaselineW is subtracted from the input signal according to the decomposition scheme: ECG  ECGZBLW + BaselineW, where ECGZBLW is the underlying baseline wander free ECG. The method targets many types of baseline deviations in a unified approach: baseline drift due to respiration, amplitude modulation due to perspiration and abrupt potential change due to electrode loose contact. We tested the developed method on a variety of ECG records including half synthesized records contaminated with different types of baseline deviations (simulated) noise, and on records from the MITBIH database presenting important baseline deviations, including normal and abnormal heart beats cases. The method showed good performance in computing a piecewise linear estimation of the baseline deviation and in extracting the ECGZBLW, which represents the clinically significant electrocardiogram information.

Introduction

Electrocardiogram (ECG) baseline wander removal is an important preprocessing phase for features detection, analysis and diagnosis, that not only eases clinician visual inspection, but also makes the automation process of the above tasks more accurate. For example, clinicians proceed to measurements of ST, RR and QT segments to depict any abnormalities in the cardiac activity. This difficult task is even harder for them in the case of ECG records contaminated with artifacts and noise. Common sources of such disturbances include power-line interference, electrode contact noise, motion artifacts, muscle contraction (EMG), respiration and also a combination of more than one of these sources. In this study, we propose a unified method capable of linearly estimating a variety of baseline deviations: baseline drift due to respiration, amplitude modulation due to perspiration and ECG abrupt potential change in case of electrode loose contact, due to patient movement. Targeting of these kinds of noise is motivating since they are ubiquitous in electrocardiograms, especially in ambulatory ECG (Holter) and exercise ECG.

The rest of this paper is organized as follows. In Section 2, some previous works related to the proposed method are cited. In Section 3, design considerations of the proposed method are presented. In Section 4, a general description as well as the details of important aspects of the method are presented. In Section 5, some of the experiments we have performed on the proposed algorithm are reported. In Section 6, results of the conducted experiments are discussed. In Section 7, the authors emit concluding thoughts and remarks.

Section snippets

Background

Previous works on ECG baseline correction include filtering methods (e.g. [1], [2]). This approach, basically, proceeds to decomposition of the ECG signal in its various participating frequencies, then elimination (filtering) of noisy frequencies. This type of processing requires a tremendous number of operations to perform, as the used filters are of narrow bandwidth type. The computational complexity could be reduced in such approach by the technique of sampling rate decimation (e.g. [1], [2]

Design considerations

In this study, we use the Douglas–Peucker algorithm [8] for the ECG curve simplification. This algorithm is known to be the most accurate curve simplification procedure at selecting perceptually dominant points of a given curve [9]. With regard to this quality, the algorithm possesses an interesting O(n log2(n)) temporal complexity order. Besides, this algorithm is one of the most widely used algorithms in cartography [10]. In the ECG case, the accordingly computed DPs include peak (PIC) and

Algorithm main steps

The used approach is based on the thesis that input ECG signal (ECGin) is composed of an underlying “true ECG” denoted hereinafter: Zero-Baseline-Wander ECG (ECGZBLW), the baseline deviation with respect to the isoelectric level, denoted hereinafter: BaselineW, and other high frequency noise, denoted hereinafter: Noise. This corresponds to the equation:ECGin=ECGZBLW+BaseLineW+NoiseSince, in this study, large magnitude high frequency noise is not considered, setting:ECGout=ECGZBLW+Noiseyields:ECG

Simulated baseline wander

In order to assess a baseline correction algorithm, one would need to acquire an ECG segment possessing an isoelectric level baseline, add a known signal simulating one or a combination of the above cited baseline deviation types, compute the baseline deviation from the (artificially) contaminated ECG and finally compute the error associated to the baseline extraction method. This evaluation scheme had been adopted by previous authors for baseline deviation extraction [2] and other ECG related

Method evaluation

The conducted experiments show the proposed method ability to correct most important baseline deviations of noisy ECG records, in a piecewise linear fashion. In particular, for half synthesized ECG experiments, both NRMSE for gold standard ECG and added baseline wander show the capacity of the developed algorithm to eliminate most added noise. Two observations can be issued from Table 2. First, the NMRSEg value is almost constant. This is due to using the same minimal inter-DPs distance (57

Future plans

In this study, we suggested a piecewise linear baseline correction method for ECG signal, as a preprocessing phase to later phases, such as modeling, feature recognition and analysis. The method uses the Douglas–Peucker algorithm for curve simplification. The study targeted many ECG ubiquitous types of disturbances: baseline drift due to respiration, amplitude modulation due to perspiration, abrupt potential change in case of electrode loose contact due to patient movement for example, and

Acknowledgments

The authors would like to thank the anonymous referees for their constructive comments and suggestions.

References (17)

  • Y. Ferdi et al.

    Un filtre numérique basé sur la dérivation non-entière pour l’analyse du signal électrocardiographique

    ITBM-RBM

    (2000)
  • J.A. Van Alsté et al.

    Removal of base-line wander and power-line interference from the ECG by an efficient FIR filter with a reduced number of taps

    IEEE Trans. Biomed. Eng.

    (1985)
  • L. Sörnmo

    Time-varying digital filtering of ECG baseline wander

    Med. Biol. Eng. Comput.

    (1993)
  • C.R. Meyer et al.

    Electrocardiogram baseline estimation and removal using cubic splines and state space computation

    Comp. Biomed. Res.

    (1977)
  • Q. Ji et al.

    Breakpoint detection using covariance propagation

    IEEE Trans. Pattern Anal. Mach. Intell.

    (1998)
  • G. Fernandez et al.

    A new plant image segmentation algorithm

    (1995)
  • H. Imai et al.

    An efficient encoding method for electrocardiography using Spline functions

    Syst. Comput. Jpn.

    (1985)
  • C. Li et al.

    Detection of ECG characteristic points using wavelet transforms

    IEEE Trans. Biomed. Eng.

    (1995)
There are more references available in the full text version of this article.

Cited by (27)

  • Reduced data similarity-based matching for time series patterns alignment

    2010, Pattern Recognition Letters
    Citation Excerpt :

    There are also other sources causing local disturbances in the measured ECG samples: High frequency local noise due to the local electromyography (EMG), mainly due to perspiration, and the baseline wander which is mostly due to interference of low frequency respiration signal with the true ECG. If the non-natural perturbation is possible to deal with, for instance through different proposed techniques for ECG noise removal, e.g. (Boucheham et al., 2005), the local natural variability of the heart cycles is a persistent aspect of the problem. To deal with these difficulties and hence take confident decisions, we came to the conclusion that long enough time series were necessary.

  • A novel application of sample entropy to the electrocardiogram of atrial fibrillation

    2010, Nonlinear Analysis: Real World Applications
    Citation Excerpt :

    The ECG recordings were preprocessed in order to improve later analysis. First, baseline wander was removed making use of bidirectional high pass filtering with a 0.5 Hz cut-off frequency [14,15]. Second, high-frequency noise was reduced with eight-order bidirectional IIR Chebyshev low-pass filtering, whose cut-off frequency was 70 Hz [16,17].

  • Surface ECG organization analysis to predict paroxysmal atrial fibrillation termination

    2009, Computers in Biology and Medicine
    Citation Excerpt :

    These ECG recordings were preprocessed in order to improve later analysis. Firstly, baseline wander was removed making use of bidirectional high pass filtering with 0.5 Hz cut-off frequency [19,20]. Secondly, high frequency noise was reduced with an eight-order bidirectional IIR Chebyshev low pass filtering, whose cut-off frequency was 70 Hz [21,22].

View all citing articles on Scopus
View full text