SciELO - Scientific Electronic Library Online

 
vol.14 issue1A Systematic Literature Review on Intrusion Detection ApproachesModels for predicting perishable products demands in food trading companies author indexsubject indexarticles search
Home Pagealphabetic serial listing  

My SciELO

Services on Demand

Journal

Article

Indicators

  • Have no cited articlesCited by SciELO

Related links

  • Have no similar articlesSimilars in SciELO

Share


Revista Cubana de Ciencias Informáticas

On-line version ISSN 2227-1899

Rev cuba cienc informat vol.14 no.1 La Habana Jan.-Mar. 2020  Epub Mar 01, 2020

 

Artículo de revisión

Baseline wander removal methods for ECG signals: A comparative study

Métodos para eliminación de las derivas de línea base en señales de ECG: Estudio comparativo

Francisco Perdigón Romero1  * 
http://orcid.org/0000-0002-6101-3871

Liset Vázquez Romaguera1 
http://orcid.org/0000-0001-9731-6789

Cícero Ferreira Fernandes Costa-Filho2 
http://orcid.org/0000-0003-3325-5715

Marly Guimarães Fernandes2 
http://orcid.org/0000-0002-6839-1402

João Evangelista Neto3 
http://orcid.org/0000-0002-5100-0719

Carlos Román Vázquez-Seisdedos4 
http://orcid.org/0000-0002-3167-2585

1 École Polytechnique de Montréal, 2900 Edouard Montpetit Blvd, Montreal, QC H3T 1J4, Canada. {francisco.perdigon, liset.vazquez}@polymtl.ca.

2 Center for R&D in Electronic and Information Technology, Universidade Federal do Amazonas, Av. Octávio Hamilton Botelho Mourão - Coroado, Manaus - AM, Brasil. {ccosta, mcosta}@ufam.edu.br.

3 Universidade Estadual do Amazonas, Brasil, Avenida Djalma Batista 3578 -69005-010 Manaus - AM, Brasil. joao_evangelista_neto@yahoo.com

4 Center for Neuroscience Studies, Images and Signals Processing, Universidad de Oriente, Ave. Las Américas S/N, 90400 Santiago de Cuba, Cuba. cvazquez@uo.edu.cu.

ABSTRACT

Cardiovascular diseases are the leading cause of death worldwide, accounting for 17.3 million deaths per year. The electrocardiogram (ECG) is a non-invasive technique widely used for the detection of cardiac diseases. To increase diagnostic sensitivity, ECG is acquired during exercise stress tests or in ambulatory way. Under these acquisition conditions, the ECG is strongly affected by some types of noises, mainly by baseline wander (BLW). In this work, nine methods, widely used, for the elimination of BLW were implemented, which are: interpolation using cubic splines, finite impulse response (FIR) filter, infinite impulse response (IIR) filter, least mean square adaptive filtering, moving-average filter, independent component analysis, interpolation and successive subtraction of median values in RR interval, empirical mode decomposition, and wavelet filtering. For the quantitative evaluation, the following similarity metrics were used: absolute maximum distance, the sum of squares of distances and percentage root-mean-square difference. Several experiments were performed using synthetic ECG signals generated by ECGSYM software, real ECG signals from QT Database, artificial BLW generated by software and real BLW from the Noise Stress Test Database. The best results were obtained by the method based on FIR high-pass filter with a cut-off frequency of 0.67 Hz.

Keywords: ECG; baseline wander; ICA; EMD; FIR filters.

RESUMEN

Las enfermedades cardiovasculares son la principal causa de muerte en el mundo, y representan 17,3 millones de muertes por año. El electrocardiograma (ECG) es una técnica no invasiva ampliamente utilizada para la detección de enfermedades cardíacas. Para aumentar la sensibilidad diagnóstica, el ECG se adquiere durante las pruebas de esfuerzo o de forma ambulatoria. En estas condiciones, el ECG se ve fuertemente afectado por algunos tipos de ruidos, principalmente por las derivas de línea base (BLW). En este trabajo se implementaron nueve métodos ampliamente utilizados para la eliminación de BLW, que son: interpolación utilizando splines cúbicos, filtro de respuesta a impulso finita (FIR), filtro de respuesta a impulso infinita (IIR), filtrado adaptativo de mínimos cuadrados medios, filtro de media móvil, análisis de componentes independientes, interpolación y substracción sucesiva de los valores de la mediana en el intervalo RR, descomposición en modos empíricos y filtrado de wavelets. Para la evaluación cuantitativa, se utilizaron las siguientes métricas de similitud: distancia máxima absoluta, la suma de los cuadrados de las distancias y la diferencia porcentual de la raíz media cuadrática. Se realizaron varios experimentos utilizando: señales de ECG sintéticas generadas por el software ECGSYM, señales de ECG reales de la base de datos QT, BLW artificiales generadas por software y BLW reales de la base de datos “Noise Stress Test Database”. Los mejores resultados se obtuvieron mediante el método basado en el filtro FIR paso alto con una frecuencia de corte de 0,67 Hz.

Palabras clave: ECG; derivas de línea de base; ICA; EMD; filtros FIR

INTRODUCCIÓN

Cardiovascular diseases are the leading cause of sudden cardiac death in the world (World Health Organization, 2014). Therefore, there is a great demand for specialized medical services such as diagnostic tools for the study and treatment of patients with these diseases.

The electrocardiogram (ECG) is the simplest non-invasive technique and, at the same time, the most used in the diagnosis of heart diseases. The ECG signal is the electrical manifestation of the heartbeat over time and can be recorded under various conditions in order to detect different types of abnormalities in the heart. These conditions of registration are: at rest, in ambulatory conditions or during stress tests (Barrett, 2013).

The resting ECG records the electrical activity of the heart while the subject is in the dorsal decubitus position. Since these recordings have a short duration, the detection of events that vary over long periods or related to certain physical activities are not detected. Examples of these events are the identification of left ventricular hypertrophy and left atrial overload, among others.

The ambulatory ECG is acquired while the patient performs his daily activities, during a period of 24 hours or more, so the probability of registering one or more of the events mentioned above is greater. In the physical exercise test, the patient performs a controlled physical effort on a bicycle or on an electric treadmill during a short period of time (5 - 15 min). In this test, it is possible to assess, through the ECG, the functional capacity of the heart of the subject under evaluation, being able to detect possible arrhythmias and the occurrence of myocardial ischemia, among others.

ECG records acquired on an ambulatory way or in stress tests are heavily contaminated with noise (Sörnmo &Laguna, 2005). One of the main sources of noise is the baseline wander (BLW) which are a low frequency noise (0.05 - 3 Hz in stress tests) (Romero et al., 2016; Sörnmo & Laguna 2005) due to chest movement during breathing, patient movements, poor contact between electrode cables and ECG recording equipment, inadequate skin preparation where the electrode is placed and dirty electrodes.

BLW severely limits the usefulness of ECG signal during ambulatory or stress tests records. Most of the algorithms for the detection of cardiac pathologies or events associated with the activity of the heart present a malfunction in the presence of BLW. Thus, the elimination of this kind of noise is necessary to guarantee a better clinical evaluation.

There are previous works in which the authors compiled and explained several methods for the elimination of BLW (Sonali & Patial 2013; Kumar et al., 2015; Chaudhary et al., 2014; Narwaria et al., 2011; Joshi et al., 2013). It is important to emphasize that the previously mentioned works do not include the implementation and comparison of all the compiled methods using different metrics.

Next, we will mention some works in which the authors compared some methods for the BLW elimination. Kumar et al. presented a comparison of methods based on classic digital filtering. The metrics used were signal to noise ratio (SNR) and mean square error (MSE) (Kumar et al., 2015).

Chaudhary et al. performed a comparison between different wavelets and thresholds in order to find the combination that generates the least distortion in the ECG signal when eliminating the BLW. The metrics used in this work were MSE and SNR (Chaudhary et al, 2014).

On the other hand, Narwaria et al. made a comparison between different types of IIR filters (Butterworth, Elliptic, Chebyshev I and Chebyshev II). The metrics used were SNR and a qualitative evaluation of the modification of the ECG waveforms (Narwaria et al., 2011).

Another work is that of Joshi et al., which compared methods based on Kalman filter, moving-average filter, and cubic splines. The metrics used were MSE and the standard deviation (Joshi et al., 2013).

Although some methods are compared in the aforementioned works, there are other modern and more complex that are not considered, such as those based on empirical mode decomposition, independent component analysis, cascade adaptive filter and based on interpolation and successive subtraction of median values in RR intervals. On the other hand, in most of these works the metrics used were the MSE or the SNR. These metrics are not the most adequate to quantify the level of distortion suffered by the ECG signal during the BLW elimination. The SNR is a measure of quality, not of similarity. Therefore, when used in the context of BLW elimination, this can show good results even though the ECG signal presents considerable distortions. On the other hand, the MSE, despite being a measure of similarity, can mask large distortions of the signal as it performs an average of the error (Sabarimalai et al., 2008; Nygaard et al., 2001). Considering this, in our comparative study we will use similarity metrics based on the distance that does not perform average.

Although there are many works on the elimination of BLW (Van Alsté & Schilder, 1985; Pottala et al., 1990; Meyer & Keiser, 1977; Laguna et al., 1992; Canan et al., 1997; Barati & Ayatollahi, 2006; Chouhan & Mehta, 2007; Blanco-Velasco et al., 2008; Mozaffary & Tinati, 2005), this remains an open problem. In addition, most of the referenced works use their own database and different performance metrics, so it impossible to perform an impartial comparison between the most commonly used methods for BLW removal.

In the present work, we carry out a comparative study of nine of the most cited methods for BLW removal using a set of common signals and the same similarity metrics for all the methods. This represents a novelty since, to the best of our knowledge; it has not been made in similar works. The implementation of these methods and metrics used in this work are available on the GitHub platform as open source. Therefore, this will facilitate that other researchers compare new methods for BLW removal using a common framework.

Bibliographic review

The methods selected for this study were selected according to the relevance shown by the search engines used and the number of citations (Romero, 2016). In Table 1 we present the selected methods with their citations scores. The databases used were: IEEEXplore (IE), Web of Science (WoS) and Google Scholar (GS).

The method based on finite impulse response high pass filter: Currently among the most used methods for BLW removal are classic digital filters. In the work carried out by Van Alsté and Schilder, the authors calculated and implemented an FIR high pass filter using a size 28 Kaiser window with 51 coefficients (Van Alsté & Schilder, 1985). The analysis of the distortion in the signal was qualitative.

The method based on the infinite impulse response high pass filter: This type of filter can reach an accentuated transition region with fewer coefficients than a FIR filter. However, IIR filters have a non-linear phase response that distorts the ECG signal. Bi-directional filters are used to avoid this distortion. The IIR filter implemented by Pottala and collaborators used a small window so that it can be used in real-time applications (Pottala et al., 1990). The analysis of the distortion in the signal was qualitative.

The method based on interpolation using cubic splines: Meyer and Keizer estimated a point in the isoelectric PR-segment of each beat (Meyer & Keiser, 1977). For this, they used the point R as a reference and estimated a point 66 ms before the detected R-point with normally point to the PR isoelectric point. Then, based on those points, they performed an interpolation using cubic splines to estimate the BLW and finally subtracted the estimated BLW from the ECG signal. The cubic splines are differentiable curves that are formed from polynomials of degree 3. The analysis of the distortion in the signal was qualitative.

Table 1 Citation scores of the implemented methods. 

The method based on cascade least mean square filter: Laguna and collaborators proposed a 2-stage cascade LMS filter for the elimination of BLW (Laguna et al., 1992). In the two stages, adaptive LMS filters were used. In the first stage, a high-pass Notch filter was used as input of the adaptive filter. The second stage was formed by a correlated filter of adaptive impulse. The analysis of the distortion in the signal was qualitative.

The method based on the moving-average filter: Canan and collaborators used a moving-average filter to eliminate BLW which behaves like a low pass filter but works in the time domain (Canan et al., 1997). In this technique, an estimated BLW was first extracted. Then it was subtracted from the original signal. It was necessary to fill with zeros at the beginning and at the end of the estimated BLW due to the loss of samples that occurs when using a sliding window. The authors affirmed that this method allowed eliminating the BLW in a simple way, without having to calculate the coefficients of the FIR or IIR filters. The analysis of the distortion in the signal was qualitative.

The method based on independent components analysis: In that work, the authors used the independent component analysis technique to eliminate the BLW (Barati & Ayatollahi, 2006). To use this technique it is necessary that the signal has multiple channels. When only one channel is available, as is the case of ECG signals used by the authors, the method described by Lee can be used (Lee et al., 2004). In this approach, versions of the same signal with different delays work as a set of multiple channels. Barati and Ayatollahi generated 60 channels from a single ECG signal using versions with delays between 11 and 20 samples, which form the input set called mixed element matrix. They used the FastICA algorithm. The independent components corresponding to BLW were detected automatically using the kurtosis. The kurtosis is the fourth statistical moment and, according to Delorme’s research(Delorme et al., 2001), when it is negative corresponds to BLW. Finally, the components that were detected as BLW are set to zero and the original matrix is recomposed to extract the original ECG. The analysis of the distortion in the signal was quantitative and the metrics used were: sensitivity, specificity and accuracy.

The method based on interpolation and subtraction of values of the median of the signal in the RR intervals: Chouhan and Mehta proposed a method based on the analysis of RR intervals for the BLW removal (Chouhan & Mehta, 2007). In this approach, the median value of the ECG signal in each RR interval is calculated and subtracted from the values of each sample in the RR interval under analysis. The previous process is repeated until the median values of all RR intervals have a small difference defined by a threshold. The authors did not use any metric to evaluate the performance of this method. The analysis of the distortion in the signal was qualitative.

The method based on the empirical mode decomposition: Blanco-Velasco and collaborators presented an EMD based technique to eliminate the BLW (Blanco-Velasco et al., 2008). First, the ECG was decomposed in several intrinsic mode functions (IMF). According to the authors, the higher order IMF contains the information referring to the BLW. The authors emphasize that higher order IMF must be filtered using a type IIR low pass filter. Then, an estimated BLW was obtained which is subtracted from the original ECG signal. The analysis of the distortion in the signal was quantitative, through the mean square error.

Method based on Wavelet filter: One of the pioneering works that used Wavelet filter for the elimination of BLW was presented by Mozaffary and Tinati in 2005 (Mozaffary & Tinati, 2005). Later, in 2015, Chaudhary and collaborators made a comparative study (Chaudhary et al., 2014) to determine which of the wavelet families (Haar, Db5, Coif3, Bior3.1, Db4, Sym8, Sym10, Bior6.8, Db6, Coif4) and what type of threshold (Hard, Soft, Semi-soft, Stein) should be used. The combination that yielded the best results was Wavelet Sym10 with a Semi-soft threshold. The analysis of the distortion in the signal was quantitative. To calculate the distortion in the ECG signal, the mean square error metric was used.

Methods

For the experiments, records belonging to the QT Database (Laguna et al., 1997) of Physionet (PhysioBank, 2000) were used. This database contains 105 15-min two-lead ECG recordings sampled at 250 Hz. The records chosen for the experiments were 3: sel100m, sel102m, and sel116m. For the experiments, the first 5 min of channel 1 of each selected record was used. These three records were chosen due they present a practically zero BLW, which is very convenient. Figure 1 shows a 5 s segment of the sel100m signal.

Fig. 1 A 5 s segment of the signal sel100m. 

The artificial ECG signals were generated using the ECGSYM software (McSharry et al, 2003) of Physionet (PhysioBank, 2000) which allows configuring several ECG parameters such as the heart rate, sampling frequency of the resulting signal, number of beats, the morphology of the ECG waves (P, Q, R, S and T), amplitude and duration parameters, etc. For the experiments, a sampling frequency was set to 360 Hz and the duration of the signal to 5 min. Signals with different heart rates were generated, the first at 70 beats per minute (bpm) which is considered normal and the other at 120 bpm which simulates a person's heart rate during the performance of a physical exertion test. Figure 2 shows a 5 s segment of an artificial ECG signal of 70 bpm generated by the ECGSYM software.

Fig. 2 A 5 s segment of artificial ECG signal of 70 bpm generated by the ECGSYM software. 

In the experiments, we add a real BLW to the ECG signal. The real BLW were obtained from the MIT-BIH Noise Stress Test Database (NSTDB) (Moody et al., 1984) of Physionet (PhysioBank, 2000), which contains 12 ECG records of 30 min and 3 records of 30 min of typical noises present in the ECG during the stress tests: baseline wander produced by the patient's breathing, artifacts generated by the movement of the electrodes and electromyographic noise. In this database, the ECG records are contaminated randomly with the noise present in the 3 noise channels. The sampling frequency is 360 Hz. Noisy records were acquired while volunteers performed physical stress tests through electrodes placed at limb positions where the ECG cannot be captured. For the experiments, we used the records that contained the baseline wander generated by respiration and the recording with artifacts generated by the movement of the electrodes, see Figure 3. The methods were implemented using MATLAB R2014a.

Fig. 3 A 5 s segment of the NSTDB (a) record "bw" channel 1, BLW generated by the breath (b) record "em" channel 1 artifact generated by the movement of the electrodes. 

For the implementation of the ICA-based method, the FastICA-CIS toolbox developed at the Laboratory of Information and Computer Science at the Helsinki University of Technology, Finland was used (Gävert et al., 2005). For the implementation of the EMD-based method, the EMB-Bivariate-Empirical-Mode-Decomposition-Approach toolbox, developed at Laboratoire de Physique, Ecole Normale Superieure de Lyon, France was used Rilling & Flandrin 2007. For the experiments, the MATLAB 2014a software was used in a Core I3 computer with 6 GB of RAM memory with Ubuntu GNU/Linux 14.04 operating system.

To evaluate the distortion of the ECG signal in a quantitative way, an analysis of several similarity metrics was made, these are:

  1. Metrics based on statistics: Mean square error (MSE), Cross-correlation (CC), Signal noise ratio.

  2. Metrics based on distance: Absolute maximum distance (MAD), sum of the square of the distances (SSD), percentage root-mean-square difference (PRD).

As was mentioned before, according to studies published in (Sabarimalai et al., 2008; Nygaard et al., 2001), distance-based metrics are the most suitable for the evaluation of signal similarity. Below we explain the selected metrics.

Absolute maximum distance: It is one of the most common similarity metrics used to determine the quality of ECG signals after performing a compression process (Nygaard et al., 2001)and can be defined by the following expression:

(1)

where s1 and s2 are the signals to be compared, m is the number of the current sample of the signals and r is the maximum number of samples of the s1 and s2 signals.

Sum of the square of the distances: It is another of the similarity metrics used to evaluate the distortion between signals. It allows to measure the accumulated error and gives an idea of how different the signals are in all their extension Nygaard et al., 2001.

(2)

Where s1 and s2 are the signals to be compared, m is the number of the current sample of the signals and r is the maximum number of samples of the s1 and s2 signals.

Percentage root-mean-square difference: It is a widely used similarity metric that, despite using the mean which is a measure of central tendency, is based mainly on distance (Nygaard et al., 2001).

(3)

Where s1 and s2 are the signals to be compared, m is the number of the current sample of the signals and r is the maximum number of samples of the s1 and s2 signals.

To carry out the comparative study of the nine methods, these metrics were evaluated in ECG signals artificially generated by the ECGSYM software (McSharry et al., Smith 2003)and in real signals from the QT Database (Laguna et al., 1997). These signals were contaminated with artificial BLW (sine signals at different frequencies) and by real BLW from the MIT-BIH Noise Stress Test Database (Moody et al., 1984). After applying the nine methods for the elimination of the BLW, the three selected metrics were calculated. Because the signals of the QT Database have a sampling frequency of 250 Hz, the noise of the NSTDB was resampled to this frequency since it was originally sampled at 360 Hz. Table 2 shows the characteristics of the experiments performed.

Table 2 Experiments description. 

During the experiments, the methods using high-pass filtering were configured with the cut-off frequency of 0.67 Hz, which is the value recommended by the AHA (Romero et al., 2016). To standardize the level of contamination with the different BLW, a value of 0.5 a.u. of MAD metric was set with respect to the original signal.

RESULTS AND DISCUSSION

In this section, the results of the experiments will be discussed. The reader interested in seeing other related experiments can consult the reference (Romero, 2016).

In addition to the numerical result in the columns, in the lasts columns of the table were placed the positions that each of the methods reached according to each of the metrics. The legend of the tables contains important information regarding the signal (artificial or real), the heart rate in the case of artificial signals (hr), type of noise (artificial or real) and cut-off frequency (fc) of the methods that use filtering.

For the qualitative analysis of the results, images of the signals will be shown at the point where the MAD metric obtained the highest (worst) results.

Table 3 shows that, in the three metrics used, the method based on interpolation using cubic splines showed the best performance. This is due to the combination of 2 factors: the first is that the heart rate is 120 bpm (in 1 s the algorithm detects 2 points for interpolation) and the second is that the noise to be interpolated is a sinusoid, which is a low complexity signal. This combination allows the algorithm to work in almost ideal conditions.

Figure 4 shows the performance of the method based on interpolation using cubic splines on artificial ECG, 1 s segment, centered on the point of greatest distortion, according to the MAD metric.

Table 3 Performance of the implemented methods evaluated in artificial ECG (hr = 120 bpm), artificial BLW (sine wave 0.60 Hz) and cut-off frequency, fc = 0.67 Hz. 

Splines: Interpolation using cubic splines; FIR: FIR filter; IIR: IIR filter; AF: Adaptive filter; MAF: Moving-average filter; ICA: Independent components analysis; ISSM: Interpolation and subtraction of values of the median of the signal in RR intervals; EMD: Empirical mode decomposition WT: Wavelet Transform filter; MAD: Absolute maximum distance; SSD: Sum of the square of the distances; PRD: Percentage root-mean-square difference.

Fig. 4 Performance of the method based on interpolation using cubic splines in artificial ECG. 1 s segment, centered on the point of greatest distortion, according to the MAD metric. The green trace shows the original signal. The blue trace shows the signal processed by the method. The red trace shows the difference between the two analysed signals. 

The second-best performance, according to the MAD and PRD metrics, was yielded by FIR filter method. Although this kind of filter presents a computational cost greater than other digital filters, it is very efficient. The use of many coefficients allows the filter to have a high slope, which contributes to noise efficient elimination. In Figure 5 can be observed that there is almost no distortion in the morphology of the signal. Also, the difference between both signals is practically a straight line, which allows us to infer that it is almost a bias value.

Fig. 5 Performance of the method based on FIR filter on artificial ECG. 1 s segment, centered on the point of greatest distortion, according to the MAD metric. The green trace shows the original signal. The blue trace shows the signal processed by the method. The red trace shows the difference between the two analysed signals. 

According to the MAD and PRD metrics, the third best performance was reached by the method based on wavelet transform. In Figure 6 can be observed that the distortion in the morphology of the signal is very small. Interestingly, despite being in 8th place, according to the MAD metric and 5th place, according to the PRD metric, the method based on adaptive filters is in 2nd place according to the SSD metric. With the help of Figure 7, we can explain the reason for this behavior. The SSD metric measures the accumulated error. This means that, although the error had high values ​​in certain points of the signal, as shown in Figure 7, the sum of these errors is less than the sum of the errors generated by the other methods. It is important to mention that the distortion of the R point shown in Figure 7 is due to the proper functioning of the method since, from all R point, the windows where the filters applied are created. The effect of the distortion that is observed is generated because the windows are not correctly joined by the algorithm.

Fig. 6 Performance of the method based on wavelet transform in artificial ECG. 1 s segment, centered on the point of greatest distortion, according to the MAD metric. The green trace shows the original signal. The blue trace shows the signal processed by the method. The red trace shows the difference between the two analyzed signals. 

Fig. 7 Performance of the method based on adaptive filter in artificial ECG. 1 s segment, centered on the point of greatest distortion, according to the MAD metric. The green trace shows the original signal. The blue trace shows the signal processed by the method. The red trace shows the difference between the 2 analyzed signals. 

In the last position, according to all the metrics, is the method based in ICA. In Figure 8 can be observed that the output signal is completely distorted. This apparent malfunction of the method can be explained through the theoretical bases of the independent components analysis. In the work of Hyvärinen and Oja (Hyvärinen & Oja, 2000) was explained that one of the restrictions of ICA is that the components have to be statistically independent or not correlated. This means that the covariance of the signals must be zero. Figure 9 (a) and (b) show a graph of the covariance between the artificial ECG of 120 bpm and the simulated ECG signal, through a sinusoid of 0.60 Hz. As can be observed, covariance presents high values ​​close to half the peak value of the signal and a sinusoidal shape. Given the characteristics of the signal and noise, it is understandable that the ICA-based method presents the obtained performance.

Fig. 8 Performance of the method based on ICA in artificial ECG. 1 s segment, centered on the point of greatest distortion, according to the MAD metric. The green trace shows the original signal. The blue trace shows the signal processed by the method. The red trace shows the difference between the two analysed signals. 

Fig. 9 Graphs showing the covariance between the artificial ECG signal with hr = 120 bpm and an artificial BLW simulated through a 0.6 Hz sinusoid. (a) Covariance plot in the 5 min of the two signals, (b) Extended graph. 

Table 4 shows the results of the experiments with real signals of the QT Database and the real noise of the NSTDB. These experiments, despite being in a controlled environment, are the most similar to real situations.

Table 4 Performance of the implemented methods evaluated in real ECG (QT Database), real BLW (NSTDB) and cut-off frequency, fc = 0.67 Hz.  

Splines: Interpolation using cubic splines; FIR: FIR filter; IIR: IIR filter; AF: Adaptive filter; MAF: Moving-average filter; ICA: Independent components analysis; ISSM: Interpolation and subtraction of values of the median of the signal in RR intervals; EMD: Empirical mode decomposition WT: Wavelet filter; MAD: Absolute maximum distance; SSD: Sum of the square of the distances; PRD: Percentage root-mean-square difference.

The best performance, according to the three metrics used, was yielded by the method based on FIR filter. As previously explained, this kind of filter is more computationally expensive than other digital filters. However, given the advances of the microprocessors used in current embedded systems, it can be implemented in such systems as well as in those based on personal computers. Figure 10 shows the performance of the method based on FIR filter on real ECG contaminated with real noise, in a segment of 1 s, centered on the point of greatest distortion, according to the MAD metric.

The second best performance, according to the metrics used, was yielded by the method based on IRR filter. This kind of digital filter, despite being less efficient than the FIR filter, has shown a good performance. Figure 10 shows the performance of the method based on FIR filter on real ECG contaminated with real noise, in a segment of 1 s, centered on the point of greatest distortion, according to the MAD metric.Figure 11

Fig. 10 Performance of the method based on FIR filter on real ECG contaminated with real noise. 1 s segment, centered on the point of greatest distortion, according to the MAD metric. The green trace shows the original signal. The blue trace shows the signal processed by the method. The red trace shows the difference between the two analysed signals. 

Fig. 11 Performance of the method based on IIR filter on real ECG contaminated with real noise. 1 s segment, centered on the point of greatest distortion, according to the MAD metric. The green trace shows the original signal. The blue trace shows the signal processed by the method. The red trace shows the difference between the two analysed signals. 

The third best performance, according to the three metrics used, was reached by the method based on the moving average filter, which is a kind of filter that works in the time domain. Despite the place obtained, in Figure 12 can be observed that the point where the greatest distortion is found, according to the MAD metric, is on the P wave of the ECG signal and it is a considerable distortion.

According to the MAD metric, the method based on adaptive filters shows the worst performance. In Figure 13 can be observed that the greatest distortion is close to R point. As was explained before this is due to the proper functioning of the method.

According to the accumulated error metrics SSD and PRD, the worst performance was obtained by the ICA-based method. The possible reasons are those mentioned in the results of the experiments with artificial ECG and noise signals. The BLW due to respiration is very similar to sinusoids and the P and T waves of the ECG are very similar to the positive semi-cycles of a sinusoid. This makes the covariance between the BLW and the ECG high and causes the malfunction of this method. Figure 14 shows the performance of the ICA-based method in real ECG contaminated with real noise, in a window of 1 s, centered on the point of greatest distortion, according to the MAD metric.

Fig. 12 Performance of the method based on moving-average filter on real ECG contaminated with real noise. 1 s segment, centered on the point of greatest distortion, according to the MAD metric. The green trace shows the original signal. The blue trace shows the signal processed by the method. The red trace shows the difference between the two analysed signals. 

The difference in the results obtained by the methods in Table 3 and Table 4 is mainly due to the nature of the BLW used in each experiment. The most relevant case is that the method based on cubic splines in Table 3 is in the first position and in Table 4 it goes to the sixth position. As previously analyzed, this is due to the fact that in the experiment analyzed in Table 3 the BLW is modeled through a sine wave of 0.6 Hz which is very simple to interpolate using cubic splines while the real BLWs are more complex.

Fig. 13 Performance of the method based on adaptive filtering on real ECG contaminated with real noise. 1 s segment, centered on the point of greatest distortion, according to the MAD metric. The green trace shows the original signal. The blue trace shows the signal processed by the method. The red trace shows the difference between the two analysed signals. 

Fig. 14 Performance of the ICA-based method in real ECG contaminated with real noise. 1 s segment, centered on the point of greatest distortion, according to the MAD metric. The green trace shows the original signal. The blue trace shows the signal processed by the method. The red trace shows the difference between the two analysed signals. 

CONCLUSIONES

In this work was presented a quantitative and qualitative comparison of the performance of the nine most cited methods for the elimination of baseline wanderings, based on the maximum similarity between the input and output signals (i.e. minimum distortion in the ECG signal). The novelty of the study is that, unlike other previous works, the performance of the evaluated methods has been carried out in equal conditions: using identical ECG signals (artificial and real) that are representative of situations of ambulatory monitoring or stress tests, and using three similarity metrics based on distance and not on perform average. The best performance using real signals, according to the three metrics used, was obtained by the method based on digital FIR filter with a cut-off frequency of 0.67 Hz. Considering the low distortion, simple implementation and the low computational cost with respect to other methods, we recommend the use of FIR filter for the elimination of BLW in ECG signals both in embedded devices and in the ECG process using personal computers.

REFERENCIAS

Barati, Z. And Ayatollahi, A., 2006. Baseline Wandering Removal by Using Independent Component Analysis to Single-Channel ECG data. 2006 International Conference on Biomedical and Pharmaceutical Engineering. 2006. No. 1, p. 152-156. [ Links ]

Barrett, Ke, 2013. Ganong fisiología médica. [online]. 2013. [Accessed 10 May 2016]. Available from: Available from: https://scholar.google.com.br/scholar?cluster=11586919927323905669&hl=es&as_sdt=0,5#0Links ]

Blanco-Velasco, Manuel, Weng, Binwei And Barner, Kenneth E, 2008. ECG signal denoising and baseline wander correction based on the empirical mode decomposition. Computers in biology and medicine. 2008. Vol. 38, no. 1, p. 1-13. [ Links ]

Canan, Suleyman, Ozbay, Yuksel And Karlik, Bekir, 1997. A method for removing low varying frequency trend from ECG signal. In: Biomedical Engineering Days, 1998. Proceedings of the 1998 2nd International Conference. IEEE. 1997. p. 144-145. ISBN 0780342429. [ Links ]

Chaudhary, Mahipal Singh, Kapoor, Rajiv Kumar And Sharma, Akshay Kumar, 2014. Comparison between different wavelet transforms and thresholding techniques for ECG denoising. In: 2014 International Conference on Advances in Engineering and Technology Research, ICAETR 2014. 2014. p. 1-6. ISBN 9781479963935. [ Links ]

Chouhan, Vs S And Mehta, Sarabjeet Singh Ss, 2007. Total removal of baseline drift from ECG signal. In: Computing: Theory and Applications, 2007. ICCTA’07. International Conference on [online]. IEEE. 2007. p. 512-515. [Accessed 12 January 2017]. ISBN 0769527701. Available from: Available from: http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=4127422Links ]

Delorme, A, Makeig, S And Sejnowski, T, 2001. Automatic artifact rejection foe EEG data using high-order statistics and independent component analysis. [online]. 2001. [Accessed 5 May 2016]. Available from: Available from: http://www.inc.ucsd.edu/ica2001/117-delorme.pdfLinks ]

Gävert, Hugo, Hurri, Jarmo, Särelä, Jaakko and Hyvärinen, Aapo, 2005. The FastICA package for MATLAB. Lab Comput Inf Sci Helsinki Univ. Technol. 2005. [ Links ]

Hyvärinen, A And Oja, E, 2000. Independent component analysis: algorithms and applications. Neural networks [online]. 2000. [Accessed 5 May 2016]. Available from: Available from: http://www.sciencedirect.com/science/article/pii/S0893608000000265Links ]

Joshi, S. L., Vatti, R. A. And Tornekar, R. V., 2013. A Survey on ECG Signal Denoising Techniques. 2013 International Conference on Communication Systems and Network Technologies [online]. 2013. P. 60-64. DOI 10.1109/CSNT.2013.22. Available from:Available from: http://ieeexplore.ieee.org/document/6524358/Links ]

Kumar, K. Sravan, Yazdanpanah, Babak And Kumar, P Rajesh, 2015. Removal of noise from electrocardiogram using digital FIR and IIR filters with various methods. In: 2015 International Conference on Communications and Signal Processing (ICCSP) [online]. IEEE. April 2015. p. 0157-0162. [Accessed 6 May 2016]. ISBN 978-1-4799-8081-9. Available from: Available from: http://ieeexplore.ieee.org/lpdocs/epic03/wrapper.htm?arnumber=7322780Links ]

Laguna, P, Jane, Raimon And Caminal, Pere, 1992. Adaptive filtering of ECG baseline wander. In: Engineering in Medicine and Biology Society, 1992 14th Annual International Conference of the IEEE. 1992. p. 508-509. [ Links ]

Laguna, P, Mark, Rg, Goldberg, A And Moody, G.B., 1997. A database for evaluation of algorithms for measurement of QT and\nother waveform intervals in the ECG. Computers in Cardiology 1997 [online]. 1997. Vol. 24, p. 673-676. [Accessed 1 November 2016]. DOI 10.1109/CIC.1997.648140. Available from: Available from: http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=648140Links ]

Lee, J, Lee, K J And Yoo, S K, 2004. Development of a new signal processing algorithm based on independent component analysis for single channel ECG data. Conference proceedings : ... Annual International Conference of the IEEE Engineering in Medicine and Biology Society. IEEE Engineering in Medicine and Biology Society. Annual Conference [online]. January 2004. Vol. 1, p. 224-6. [Accessed 5 May 2016]. DOI 10.1109/IEMBS.2004.1403132. Available from: Available from: http://www.ncbi.nlm.nih.gov/pubmed/17271650Links ]

Mcsharry, Patrick E., Clifford, Gari D., Tarassenko, Lionel And Smith, Leonard A., 2003. A dynamical model for generating synthetic electrocardiogram signals. IEEE Transactions on Biomedical Engineering [online]. March 2003. Vol. 50, no. 3, p. 289-294. [Accessed 23 June 2016]. DOI 10.1109/TBME.2003.808805. Available from: Available from: http://ieeexplore.ieee.org/lpdocs/epic03/wrapper.htm?arnumber=1186732Links ]

Meyer, C R And Keiser, H N, 1977. Electrocardiogram baseline noise estimation and removal using cubic splines and state-space computation techniques. Computers and Biomedical Research [online]. 1977. Vol. 10, no. 5, p. 459-470. [Accessed 22 June 2016]. DOI 10.1016/0010-4809(77)90021-0. Available from: Available from: http://www.sciencedirect.com/science/article/pii/0010480977900210Links ]

Moody, George B, Muldrow, W And Mark, Roger G, 1984. A noise stress test for arrhythmia detectors. Computers in cardiology. 1984. Vol. 11, no. 3, p. 381-384. [ Links ]

Mozaffary, Behzad And Tinati, Mohammad A, 2005. ECG Baseline Wander Elimination using Wavelet Packets. World Academy of Science, Engineering and Technology [online]. 2005. Vol. 3, no. January, p. 14-16. [Accessed 11 January 2017]. Available from: Available from: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.308.6789&rep=rep1&type=pdfLinks ]

Narwaria, Ravindra Pratap, Verma, Seema And Singhal, P K, 2011. Removal of Baseline Wander and Power Line Interference from ECG Signal - A Survey Approach. International Journal of Electronics Engineering. 2011. Vol. 3, no. 1, p. 107-111. [ Links ]

Nygaard, R., Melnikov, G. And Katsaggelos, A. K., 2001. A rate distortion optimal ECG coding algorithm. IEEE Transactions on Biomedical Engineering. 2001. Vol. 48, no. 1, p. 28-40. DOI 10.1109/10.900246. [ Links ]

Physiobank, Physiotoolkit, 2000. PhysioNet: components of a new research resource for complex physiologic signals. Circulation . v101 i23. e215-e220. 2000. [ Links ]

Pottala, Erik W., Bailey, James J., Horton, Martha R. And Gradwohl, Jake R., 1990. Suppression of baseline wander in the ECG Using a bilinearly transformed, null-phase filter. Journal of Electrocardiology [online]. January 1990. Vol. 22, p. 243-247. [Accessed 6 May 2016]. DOI 10.1016/S0022-0736(07)80134-8. Available from: Available from: http://www.sciencedirect.com/science/article/pii/S0022073607801348Links ]

Rilling, Gabriel And Flandrin, Patrick, 2007. Bivariate empirical mode decomposition. … Processing Letters , IEEE [online]. 2007. Vol. 33, no. 0, p. 1-10. DOI 10.1109/LSP.2007.904710. Available from: http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=4358014Links ]

Romero, F P, Meléndez, E F P, Romaguera, L V, Costa, M G F And Seisdedos C R V, 2016. Caracterização espectral das flutuações da linha base em sinais de ECG durante provas de esforço. In: XXV Congresso Brasileiro de Engenharia Biomédica - CBEB 2016. Foz de Iguazu. 2016. [ Links ]

Romero, Francisco Perdigón, 2016. Métodos para a eliminação de flutuações de linha base em sinais de eletrocardiograma: estudo comparativo [online]. Available 2016 from: Available 2016 from: https://sucupira.capes.gov.br/sucupira/public/consultas/coleta/trabalhoConclusao/viewTrabalhoConclusao.jsf?popup=true&id_trabalho=4622495Links ]

Sabarimalai Manikandan, M. And Dandapat, S., 2008. ECG distortion measures and their effectiveness. Proceedings - 1st International Conference on Emerging Trends in Engineering and Technology, ICETET 2008. 2008. P. 705-710. DOI 10.1109/ICETET.2008.248. [ Links ]

Sonali And Patial, Payal, 2013. Different Techniques of Baseline Wandering Removal - A Review. International Journal of Enhanced Research in Science Technology & Engineering. 2013. Vol. 2, no. 5, p. 37-43. [ Links ]

Sörnmo, Leif And Laguna, Pablo, 2005. Bioelectrical signal processing in cardiac and neurological applications. [online]. 2005. [Accessed 10 May 2016]. Available from: Available from: https://books.google.com/books?hl=es&lr=&id=RQv7tFFXYyIC&pgis=1Links ]

Van Alsté, J A And Schilder, T S, 1985. Removal of base-line wander and power-line interference from the ECG by an efficient FIR filter with a reduced number of taps. IEEE transactions on bio-medical engineering [online]. December 1985. Vol. 32, no. 12, p. 1052-60. [Accessed 6 May 2016]. DOI 10.1109/TBME.1985.325514. Available from: Available from: http://www.ncbi.nlm.nih.gov/pubmed/4077083Links ]

World Health Organization, 2014. Global status report on noncommunicable diseases 2014. . 2014. P. 176. DOI ISBN 9789241564854. [ Links ]

Received: September 01, 2019; Accepted: November 29, 2019

*Autor para la correspondencia: francisco.perdigon@polymtl.ca

There is no interest conflict

Francisco Perdigón Romero: wrote the Matlab scripts for the experiments and wrote the manuscript.

Liset Vázquez Romaguera: collaborated on the design of the experiment and on the manuscript writing.

Cícero Ferreira Fernandes Costa Filho: Provided guidance and collaborated on the manuscript writing.

Marly Guimarães Fernandes: Provided guidance and collaborated on the manuscript writing.

João Evangelista Neto: Provided guidance and collaborated on the manuscript writing.

Carlos Román Vázquez-Seisdedos: Provided guidance and collaborated on the manuscript writing.

Creative Commons License This is an open-access article distributed under the terms of the Creative Commons Attribution License