Next Article in Journal
Modeling and Validation of Vertical Direction Force Estimation with a Three-Dimensional Force Measurement Instrument Based on a Zero-Compliance Mechanism
Next Article in Special Issue
Unobtrusive Mattress-Based Identification of Hypertension by Integrating Classification and Association Rule Mining
Previous Article in Journal
High Sensitive Night-time Light Imaging Camera Design and In-orbit Test of Luojia1-01 Satellite
Previous Article in Special Issue
Cigarette Smoking Detection with An Inertial Sensor and A Smart Lighter
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

ECG Noise Cancellation Based on Grey Spectral Noise Estimation

1
Department of Computer Science and Information Engineering, Chaoyang University of Technology, Taichung 41349, Taiwan
2
Biomedical Information Technology Laboratory, The University of Aizu, Fukushima 965-8580, Japan
3
Department of Electrical Engineering, National Taipei University of Technology, Taipei 10608, Taiwan
*
Author to whom correspondence should be addressed.
Sensors 2019, 19(4), 798; https://doi.org/10.3390/s19040798
Submission received: 13 January 2019 / Revised: 4 February 2019 / Accepted: 12 February 2019 / Published: 15 February 2019
(This article belongs to the Collection Wearable and Unobtrusive Biomedical Monitoring)

Abstract

:
In recent years, wearable devices have been popularly applied in the health care field. The electrocardiogram (ECG) is the most used signal. However, the ECG is measured under a body-motion condition, which is easily coupled with some noise, like as power line noise (PLn) and electromyogram (EMG). This paper presents a grey spectral noise cancellation (GSNC) scheme for electrocardiogram (ECG) signals where two-stage discrimination is employed with the empirical mode decomposition (EMD), the ensemble empirical mode decomposition (EEMD) and the grey spectral noise estimation (GSNE). In the first stage of the proposed GSNC scheme, the input ECG signal is decomposed by the EMD to obtain a set of intrinsic mode functions (IMFs). Then, the noise energies of IMFs are estimated by the GSNE. When an IMF is considered as noisy one, it is forwarded to the second stage for further check. In the second stage, the suspicious IMFs are reconstructed and decomposed by the EEMD. Then the IMFs are discriminated with a threshold. If the IMF is considered as noisy, it is discarded in the reconstruction process of the ECG signal. The proposed GSNC scheme is justified by forty-three ECG signal datasets from the MIT-BIH cardiac arrhythmia database where the PLn and EMG noise are under consideration. The results indicate that the proposed GSNC scheme outperforms the traditional EMD and EEMD based noise cancellation schemes in the given datasets.

1. Introduction

The wearable device has been widely studied in recent years. In the related researches, it is essential to monitor the cardiac and physical activities in users with congestive heart issues at home. The electrocardiogram (ECG) is an important signal in monitoring the cardiac activity. A Holter ECG device is frequently applied to record long-term ECG signals and helps to find arrhythmic heartbeats within twenty-four hours [1]. Another apparatus is called an Event Recorder that is able to record one-minute ECG signals when a user feels uncomfortable on the chest region [2]. Currently, the commercial Holter ECG apparatus or Event Recorder only record the ECG signals, and is lacking in the real time analysis of the ECG signals. Moreover, the user has been encouraged to neither do any severe exercises nor take a shower, because these two kinds of devices do not have a high ingress protection rating.
An ECG patch is a wearable device, which not only records ECG signal, but also shows some cardiac information on the smart phone in real time [3]. However, its function for the arrhythmic beat detection is not better than the ECG Holter analysis. The problem is that the ECG patch is used under a body-motion condition, which is easily coupled with some noise, like motion artifact and electromyogram (EMG). Therefore, how to cancel the noise in real time would help to develop the applications of ECG patch. In the measurement of ECG signals, it is vulnerable to various noises and interferences, such as the EMG, 50 or 60Hz power line noise (PLn), baseline drift and measurement noise and so on. In [4,5], it was found that for complex QRS wave of a standard ECG signal, its power is within the frequencies lower than 30Hz, and its peak power is within the range between 4 Hz and 12 Hz. Generally, the high frequencies in the PLn and EMG noise are able to cover up the characteristic of an ECG signal such that the QRS wave group cannot be located accurately [5]. Besides, it is known that ECG signals affected by noises will lead to erroneous diagnosis by physicians. Therefore, it is crucial to remove the PLn and EMG noise in the ECG monitoring and clinical diagnosis.
Traditionally, ECG noise cancellation methods applied a low-pass filter [6] to remove the high-frequency components in noise while a high-pass filter and adaptive filter are used to rid of low-frequency vibrations, such as baseline drift [7,8] and respiratory interference [9]. Since most of the noises in ECG signals are distributed at the high-frequency components, and the traditional low-pass filters cannot solve the problem that signal and noise co-exist within the same bandwidth. Augustyniak [10] used the time-frequency transform to rescale the ECG coupled with different noises and then eliminated the noises to enhance the signal noise ratio. Rundo et al. [11] applied the bio-inspired nonlinear system to cancel the noise in an ECG signal and then to align the ECG and pulse wave. Some ECG denoising methods employ the frequency decomposition technique, such as the wavelet transform [12], the empirical mode decomposition (EMD) [13] and the ensemble empirical mode decomposition (EEMD) [14]. The EMD is a pre-processing algorithm of Hilbert-Huang Transform (HHT) which was introduced by Huang et al. [15] with a capability to perform time-frequency transformation for non-linear and non-stationary signals. In recent years, the EMD has been widely applied in biomedical signal processing, such as ECG [13,14], EMG [16] and blood pressure waves [17].
The basic idea for ECG noise cancellation consists of two main stages. First, an ECG signal is decomposed by the EMD into a set of IMFs through which the noisy IMFs are discriminated and discarded. Second, the ECG is reconstructed by the retained IMFs. By this doing, the noise in the ECG signal is reduced or cancelled. To be successful in the EMD-based noise cancellation, a fundamental problem is to estimate the noise energy appropriately in each IMF. In addition, the problem of mode mixing occurs during the EMD decomposition. The problem of mode mixing comes from either an IMF mingled with signals of different scales or other IMF appeared in the combination of other components. To overcome the mode mixing problem in the EMD, the EEMD [18] was proposed with an additive white noise into the ECG signal. The EEMD is able to reduce the mode mixing effect on the next IMF scale. The EEMD has been widely applied in noise cancellation. For example, Chang et al. presented a scheme to cancel the white noise in ECG signals where noisy low-order IMFs were removed by a predefined threshold [12]. Jenitta et al. used the zero-crossing ratio of adjacent IMFs to discriminate noisy IMFs by its noise energy [19]. Yannis et al. proposed a scheme according to the energy of the first-order IMF through which noise cancellation was performed among IMFs for ECG signals [20]. Kumaravel et al. presented a genetic algorithm to determine the noise energy threshold in the first-order IMF for the PLn cancellation in ECG signals [21].
The methods described above generally deal with white noise and the PLn only. Besides, All of them estimates the noise energy in the first-order IMF. However, only considering the noise energy in the first-order IMF might not be appropriate especially when the signal energy of the related IMF is high. This will lead to over-cancellation and result in distortion in the reconstructed ECG signal. Consequently, this paper considers noise energies in every IMFs through the noise magnitude spectrum.
As we know, very few approaches to ECG noise cancellation are based on noise magnitude spectrum. In this paper, two-stage discrimination scheme is proposed to estimate and cancel the PLn and EMG noise in ECG signals according to IMFs’ noise magnitude spectrum where the EMD, the EEMD and the grey spectral noise estimation (GSNE) are employed. In the first stage, the EMD decomposes the input ECG signal into IMFs. Then the GSNE is used to estimate noise in IMFs and calculate the related noise energies through its noise magnitude spectrum. By a user-defined threshold, noisy IMFs are identified and put into the second stage. In the second stage, the noisy IMFs are reconstructed and decomposed by the EEMD. Then the IMFs are rechecked in a similar manner to the first stage. If an IMF is considered as noisy, it is discarded. The procedure is repeated for each IMF. At last, the ECG signal is reconstructed with all retained IMF components. To evaluate the performance, a noise energy ratio in dB ( N E R d B ) is employed in this paper.
This paper is organized as follows. Section 2 describes the ECG signals with additive noise and the ECG signal decomposition algorithms, the EMD and the EEMD. Section 3 introduces the GSNE based on the first-order grey model of one variable, GM(1,1) model [22,23], and then describes how the GSNE is applied to ECG noise cancellation. Next, the proposed GSNC scheme is introduced in Section 4. In Section 5, the proposed GSNC scheme is justified by forty-three datasets from the MIT-BIH database [24]. Discussions about the EMD, the EEMD and the proposed GSNC are given in Section 6. Finally, the conclusion is given in Section 7.

2. The ECG Signal, EMD and EEMD

In this section, the ECG signals with additive noise, the EMD and the EEMD for the ECG signals used in the proposed GSNC scheme are described in the following.

2.1. ECG Signal

In this paper, the real ECG signals are from the cardiac arrhythmia database in the MIT-BIH database [24] from which datasets are selected. Each dataset has a continuous period of 30 minutes with the sampling frequency of 360 Hz. The ECG signals in the database were processed by the Butterworth filter with bandwidth from 0.3 Hz to 40 Hz. The processed ECG signal is considered as clean ECG signal, s ( k ) . The PLn and EMG noise are added into s ( k ) where the PLn is generated from the sinusoidal wave with frequencies from 59.5 Hz to 60.5 Hz and the sampling frequency of 360 Hz. As for the EMG noise, its bandwidth is from 100 Hz to 500 Hz with the sampling frequency 1000 Hz. The additive noise, the PLn or EMG noise, is denoted as n ( k ) . And the noisy ECG signal is denoted as x ( k ) which is expressed as
x ( k ) = s ( k ) + n ( k ) .
In this paper, the signal-to-noise ratio ( S N R ) from 5   dB to 20   dB is under consideration whose definition is given as
S N R = k = 1 N s s 2 ( k ) k = 1 N s n 2 ( k ) ,
where N s is the length of s ( k ) .

2.2. The EMD Algorithm

This subsection briefly reviews the EMD which will be applied to decompose an ECG signal in the proposed GSNC scheme. For details, one may consult [15]. The EMD algorithm consists of the following steps.
Step 1.
Find the local maxima and minima in x ( k ) .
Step 2.
Obtain the upper envelope by the local maxima and the lower envelope by local minima, respectively.
Step 3.
Calculate the average of the upper and lower envelops, m ( k ) .
Step 4.
Find the difference signal d ( k ) = x ( k ) m ( k ) .
Step 5.
Check if d ( k ) is a zero-average process. If yes, then stop and treat d ( k ) as the first-order IMF (IMF 1), denoted as c 1 ( k ) ; otherwise, replace x ( k ) with d ( k ) and go back to Step 1.
Step 6.
Calculate the residual signal r ( k ) = x ( k ) c 1 ( k ) .
Step 7.
Replace x ( k ) with r ( k ) and repeat Step 1 to Step 6 to find the second-order IMF (IMF 2), i.e., c 2 ( k ) .
Step 8.
Repeat Step 1 to Step 7 till c M ( k ) is obtained where M is the total number of IMFs.
After the EMD, the original signal can be expressed as
x ( k ) = i = 1 M c i ( k ) + r ( k ) ,
where r ( k ) is generally considered as c M + 1 ( k ) .

2.3. The EEMD Algorithm

Here, the EEMD algorithm is briefly reviewed. For details, one may consult [18]. The EEMD algorithm is given in the following.
Step 1.
Add a white noise sequence w ( k ) into the target signal x ( k ) , i.e., x 1 ( k ) = x ( k ) + w ( k ) . In this study, noise with S N R = 5   dB is used which will be verified in Section 5.1.
Step 2.
Apply the EMD algorithm to decompose x 1 ( k ) , as described in Section 2.2.
Step 3.
Repeat Steps 1 and 2 until the predefined number of trials, N T , is reached. Each trial uses the same noise power level. Then a set of IMF components c i j ( k ) is obtained where i is the iteration number and j is the order of IMFs.
Step 4.
Calculate the ensemble average of c i j ( k ) as follows
EEMD c j ( k ) =   1 N T i = 1 N T c i j ( k ) ,
where N T is the total number of trials.

3. Application of GSNE to ECG Noise Cancellation

In this section, the noise estimation based on a grey model is introduced. Section 3.1 briefly reviews the first-order grey model with one variable, denoted as GM(1,1). Next, the grey spectral noise estimation (GSNE) based on GM(1,1) model is proposed in Section 3.2. Then the way to determine noisy IMFs by the GSNE is given in Section 3.3.

3.1. GM(1,1) Model

In this subsection, GM(1,1) model is briefly reviewed. For details, one may refer [22,23]. The GM(1,1) modeling is described in the following. Given a non-negative sequence { x ( k ) ,   1 k K } , then x ( k ) is put into the first-order accumulated generating operation (1-AGO) to convert into a new data sequence x ( 1 ) ( k ) as
x ( 1 ) ( k ) = i = 1 k x ( i ) .
By x ( k ) and x ( 1 ) ( k ) , a grey difference equation is formed as
x ( k ) + a z ( 1 ) ( k ) = b ,
for 2 k K , where parameters a and b are called the developing coefficient and the grey input, respectively; and z ( 1 ) ( k ) is the background value and defined as
z ( 1 ) ( k ) = 0.5 [ x ( 1 ) ( k ) + x ( 1 ) ( k 1 ) ] .
Let
y = [ x ( 2 ) x ( 3 ) x ( K ) ]  
and
B = [ z ( 1 ) ( 2 ) 1 z ( 1 ) ( 3 ) 1   z ( 1 ) ( K ) 1 ]  
Then (6) can be written as
y = B [ a b ]
where parameters a and b are found by
[ a b ] = ( B T B ) 1 B T y .
It can be shown that the solution of x ( 1 ) ( k ) is given as
x ( 1 ) ( k ) = [ x ( 1 ) b a ] e a ( k 1 ) + b a   .
By the first-order inverse accumulated generating operation (1-IAGO), the estimate of x ( k ) , x ^ ( k ) , is obtained as
x ^ ( k ) = x ( 1 ) ( k ) x ( 1 ) ( k 1 ) .
In the GM (1, 1) modeling, the minimum number of samples is 4, i.e., K = 4.

3.2. Grey Spectral Noise Estimation

In this subsection, the grey spectral noise estimation (GSNE) based on GM(1,1) is introduced where an additive signal model is assumed, that is, x ( k ) = s ( k ) + n ( k ) for 1 k L , where s ( k ) , n ( k ) , and L stand for the signal component, noise component and the length of x ( k ) , respectively. The block diagram of GSNE is shown in Figure 1 whose implementation steps are given as follows.
Step 1.
Level up x ( k ) by a constant C , i.e., x ( k ) x ( k ) + C such that the condition x ( k ) > 0 is met.
Step 2.
Divide x ( k ) into N s s   subsets as { x i ( k ) ,   1 i N s s   } , for 1 + ( K 1 ) ( i 1 ) k K + ( K 1 ) ( i 1 )   , where K is the number of data used in GM(1,1) model. Figure 2 indicates how x ( k ) is divided into N s s   subsets with K = 4 where the square refers to the overlapped sample.
Step 3.
For each subset i , obtain the estimate of x i ( k ) , x ^ i ( k ) , by the GM(1,1) model described in Section 3.1. Then, x ^ i ( k ) is considered as the estimate of s i ( k ) , s ^ i ( k ) , that is, s ^ i ( k ) = x ^ i ( k ) . Finally, calculate the estimation error of GM(1,1) model as   e i ( k ) =   x i ( k ) x ^ i ( k ) .
Step 4.
Since the additive noise n i ( k ) is not equal but related to the estimation error e i ( k ) . Consequently, n ^ i ( k ) is estimated as α e i ( k ) where α > 0 is the user-defined scaling factor and determined by experiences.
Step 5.
Apply Fast Fourier Transform (FFT) on n ^ i ( k ) , i.e.,   N ^ ( f ) = FFT { n ^ ( k ) } and find the magnitude of N ^ ( f ) , | N ^ ( f ) | where n ^ ( 1 ) = n ^ ( 2 ) is used.
Step 6.
Calculate the standard deviation of | N ^ ( f ) | ,   σ | N ^ ( f ) | , as an indicator of noise energy.
Note that the energy preserving property in Parseval’s theorem [25] which proves the sum of the square of n ^ i ( k ) , i.e., energy of n ^ i ( k ) , is related to the sum of the square of | N ^ ( f ) | as
  i = 1 L [   n ^ i ( k ) ] 2 = 1 L   i = 1 L [ | N ^ ( f ) | ] 2 .
Since the standard deviation σ | N ^ ( f ) | is a statistics of | N ^ ( f ) | related to noise energy, it thus can be used as an indicator of noise energy in the IMF under consideration.

3.3. Noisy IMF Determination by the GSNE

In this section, the determination of noisy IMFs and the ECG noise cancellation based on the GSNE are described. In the experiment, we randomly select 100 ECG signal segments with the continuous duration of 10 seconds from the mitdb/100 dataset. Then σ | N ^ ( f ) | is calculated for each of the ECG signals with and without noises. With S N R = 5   dB , Figure 3 shows the differences of σ | N ^ ( f ) | in IMF 1, i.e., c 1 ( k ) , where ECG raw denotes the original ECG signal,   ECG PLn the ECG signal with the PLn and ECG EMG the ECG signal with EMG noise, respectively. As shown in Figure 3, σ | N ^ ( f ) | with and without noise has apparently different levels. Besides, the fluctuation is very small both for cases with and without noise. Thus, it gives us a hope to discriminate noisy and non-noisy c i ( k ) by a predefined threshold τ . According to our experiments, τ = 10 4 works well for most cases. If σ | N ^ ( f ) | > τ , the related c i ( k ) is considered as noisy and is rechecked further in the proposed GSNC scheme. With the idea, c i ( k ) is modified as c ¯ i ( k ) which is given as
c ¯ i ( k )   = { c i ( k )   ,   σ | N ^ ( f ) | ,   i < τ   0   , σ | N ^ ( f ) | ,   i > τ ,
for i = 1 ,   2 ,   , M .
By c ¯ i ( k ) , the ECG signal after noise cancellation, denoted as y ˜ ( k ) , is reconstructed, as follows,
y ˜ ( k ) = i = 1 M c ¯ i ( k ) + r ( k )   .
In order to justify the fixed threshold τ = 10 4 works well for most cases, further experiments are conducted with six MIT-BIH cardiac arrhythmia datasets which are mitdb/100, mitdb/105, mitdb/108, mitdb/203, mitdb/223 and mitdb/228. In the experiments, ECG signal segments with the continuous duration of 10 seconds are randomly selected in the six datasets where S N R = 5   dB both for PLn and EMG noise. The results are shown in Table 1 for the PLn and Table 2 for the EMG noise, respectively. As shown in Table 1, the σ | N ^ ( f ) | of x ( k ) decreases as the order of IMF increases and most cases are determined correctly except for mistaken cases. The noisy IMFs considered as clean are shadowed according to the threshold τ = 10 4 . The mistaken cases found in IMF 1 are in datasets mitdb/100 and mitdb/223. For those cases, clean IMFs are considered as noisy ones. These mistakes will be rechecked in the second stage of the proposed GSNE scheme described later in Section 4. The mistaken cases found in IMF 4 and IMF 5 consider noisy IMFs as clean ones. The cases are not a major concern since they have little impact on ECG noise cancellation. Thus, they are neglected in this paper.
As for the EMG noise, Table 2 shows most of the clean and noisy cases are determined correctly except some cases. Two clean cases are mistaken as noisy happened in IMF 1 in mitdb/100 and in mitdb/223. For those noisy IMFs, the proposed GSNC scheme introduced later in Section 4 will recheck them further. Similar to the PLn cases, most of the noisy cases are considered as clean found in IMF 4 and IMF 5. Since those cases have little effect on the performance for ECG noise cancellation, thus we do not deal with them further. By the results, shown in Table 1 and Table 2, the fixed threshold τ = 10 4 is justified working well for most cases.

4. The Proposed GSNC Scheme

Figure 4 shows the flowchart of the proposed two-stage ECG noise cancellation scheme based on the GSNE. The proposed scheme is called grey spectral noise cancellation (GSNC). The working flow of the proposed GSNC scheme is described as follows. In the first stage, the input ECG signal is decomposed into a set of IMFs by the EMD. Then the noise spectral energy of IMFs are estimated by the GNSE and the magnitude standard deviation of each noise spectral energy, σ | N ^ ( f ) | , is calculated. Next, σ | N ^ ( f ) | is compared with a user-defined threshold τ . If σ | N ^ ( f ) | > τ , the IMF is considered as noisy. Due to the IMFs may mix each other, the second stage is performed to avoid mistakes. In the second stage, the noisy IMFs considered in the first stage are reconstructed and decomposed by the EEMD. The decomposed IMFs are then checked by the GNSE as in the first stage. If σ | N ^ ( f ) | > τ , the corresponding IMF is discriminated as noisy and discarded. Finally, the ECG is reconstructed with all retained IMFs. This finishes the procedure.
To evaluate the performance of the proposed GSNC scheme, a performance index to evaluate the improvement based on the noise energy ratio in dB ( N E R d B ) is employed which is defined as
N E R d B = 10 log [ k = 1 N s ( x ( k ) s ( k ) ) 2 k = 1 N s ( y ˜ ( k ) s ( k ) ) 2 ] ,  
where s ( k ) is the true ECG signal; x ( k ) and y ˜ ( k ) are the input noisy ECG signal and the reconstructed ECG signal after noise cancellation; N s is the total number of samples in x ( k ) .

5. Results

In this section, the proposed GSNC scheme is justified by forty-three datasets from the MIT-BIH cardiac arrhythmia database. In Section 5.1, the energy of white noise added in the EEMD is investigated. In Section 5.2, two types of noise, the PLn and EMG noise, are considered in the experiments.

5.1. Effect of White Noise in the EEMD

In this subsection, the effect of white noise energy on the EEMD employed in the proposed GSNC is investigated. It is observed that the energy of white noise added in the EEMD affects the performance of noise cancellation. Consequently, several levels of white noise energy are added into the EEMD to find an appropriate one. In the experiments, three S N R used in the EEMD are 2 dB, 5 dB and 10 dB where an ECG signal with EMG noise of S N R = 5   dB is under consideration. Besides, the number of trials N T = 100 is employed in the EEMD. Figure 5 shows parts of the original ECG signal and the ECG signals after noise cancellation by the proposed GSNC scheme. The corresponding N E R d B are 7.84 dB, 7.92 dB and 5.26 dB for the cases with S N R = 2 dB, 5 dB and 10 dB in the EEMD, respectively. By the N E R d B , it suggests that the white noise with S N R = 5   dB results in the best performance of ECG noise cancellation. Consequently, it is employed in the EEMD which is applied in the second stage of the proposed GSNC for better performance.

5.2. Results for the PLn and EMG Noise

The PLn and EMG noise are generated artificially and added into the original ECG signals whose S N R = 5   dB and all forty-three MIT-BIH datasets are involved. As for the GSNE, the parameters K = 4 and α = 1 are set. In the experiment, the proposed GSNC scheme is also compared with the traditional noise cancellation schemes based on the EMD and the EEMD. As with the first experiment, the PLn with S N R = 5   dB is considered. Table 3 shows the N E R d B for the proposed GSNC and compared schemes. In Table 3, the EMD scheme has the N E R d B ranged from−12.83 dB to 7.96 dB with the largest standard deviation of 5.21 dB among the compared schemes. For the EEMD scheme, its N E R d B ranges from −5.67 dB to 7.90 dB in the given datasets with a smallest standard deviation of 3.21 dB. As for the proposed GSNC scheme, its N E R d B ranges from −5.33 dB to 9.97 dB. On the average of N E R d B , the proposed GSNC scheme has the best result (3.34   ±   4.03 dB) which is followed by the EEMD (2.20   ±   3.21 dB) and EMD (0.10   ±   5.21 dB) schemes.
In the second experiment, the EMG noise of S N R = 5   dB is under study. Table 4 gives the N E R d B for the proposed GSNC, EMD and EEMD schemes. In this experiment, a similar result to the first experiment is found. In the EMD scheme, the N E R d B ranges from −8.03 dB to 12.19 dB with the largest standard deviation of 4.52 dB. The EEMD scheme has the range of N E R d B from −6.66 dB to 12.47 dB with the smallest standard deviation of 4.27 dB. And the N E R d B for the proposed GSNC scheme is within −5.14 dB to 13.21 dB. On the average of N E R d B , the proposed GSNC scheme has the highest value (6.14   ±   4.29 dB) followed by the EEMD scheme (3.85   ±   4.27 dB) and the EMD scheme (3.52   ±   4.52 dB).
To investigate the proposed GSNC scheme further, the ECG signal with various noise energies in the PLn and EMG noise are under consideration. The SNR for the PLn and EMG noise used in the experiments are −5 dB, 0 dB, 5 dB, 10 dB, 15 dB and 20 dB. Six datasets from MIT-BIH database are selected, including mitdb/100, mitdb/105, mitdb/108, mitdb/203, mitdb/223 and mitdb/228. For the case of PLn, Figure 6 shows the overall average of N E R d B for the proposed GSNC scheme and the compared EMD and EEMD schemes. On the average of N E R d B for all cases with the corresponding standard deviation, the EMD scheme obtains 4.16   ±   1.79 dB, 5.24   ±   1.81 dB, 3.82   ±   4.32 dB, 4.53   ±   2.57 dB, 4.72   ±   2.88 dB and −0.22   ±   8.29 dB for S N R = −5 dB, 0 dB, 5 dB, 10 dB, 15 dB and 20 dB, respectively. The results for the EEMD scheme are 5.07   ±   2.13 dB, 6.41   ±   0.99 dB, 4.46   ±   1.98 dB, 3.39   ±   3.17 dB, 1.67   ±   4.68 dB and −3.09   ±   3.36 dB for S N R =   −5 dB, 0 dB, 5 dB, 10 dB, 15 dB and 20 dB, respectively. And the proposed GSNC scheme has 4.5   ± 1.69 dB, 7.28   ±   1.41 dB, 5.44   ±   1.14 dB, 5.88   ±   2.07 dB, 6.08 ±   0.91 dB and 5.07   ±   3.02 dB for S N R = −5 dB, 0 dB, 5 dB, 10 dB, 15 dB and 20 dB, respectively. As shown in Figure 6, the proposed GSNC scheme always has better N E R d B than the compared schemes except the case S N R = 5   dB .
In the case of EMG noise, Figure 7 depicts the averages of N E R d B for different SNR. The N E R d B and standard deviations for the EMD scheme are 8.88   ±   2.59 dB, 7.29   ±   3.75 dB, 5.13   ±   4.20 dB, 4.94   ±   4.21 dB, 2.13   ±   1.97 dB and −3.81   ±   10.24 dB for SNR −5 dB, 0 dB, 5 dB, 10 dB, 15 dB and 20 dB, respectively. For the EEMD scheme, the average N E R d B with corresponding standard deviations are 10.52   ±   7.50 dB, 7.50   ±   1.93 dB, 6.50   ±   2.48 dB, 2.46   ±   5.32 dB, −2.13   ±   4.66 dB and −3.98   ±   4.56 dB for S N R =   −5 dB, 0 dB, 5 dB, 10 dB, 15 dB and 20 dB, respectively. The results for the proposed GSNC scheme are 10.89   ±   2.68 dB, 7.40   ±   2.56 dB, 7.32   ±   1.97 dB, 6.93   ±   2.70 dB, 2.41   ±   0.84 dB and −0.72   ± 9.0 dB for S N R = −5 dB, 0 dB, 5 dB, 10 dB, 15 dB and 20 dB, respectively. For all cases, the proposed GSNC scheme is superior to the compared schemes by N E R d B except slightly less than the EEMD scheme in the case of SNR = 0   dB . By Figure 6 and Figure 7, it suggests that the proposed GSNC scheme generally shows better performance when compared with the EMD and EEMD schemes in terms of average N E R d B , both for the PLn and EMG noise.

6. Discussion

The EMD acts like a filter-bank and has no strict bandwidth restriction with the IMFs. The frequency range of each IMF is adaptive, depending on the original signal content. Generally, the bandwidths of the PLn and EMG noise are assumed in the ranges 59.5–60.5 Hz and 100–500 Hz, respectively. Thus the PLn is considered as a lower frequency noise while the EMG noise is considered as a medium and higher frequency noise. Note that the noise energy is mainly distributed in the low order IMF components after the EMD. Because of different bandwidths, the performance for the EMG noise is better than that for the PLn in the EMD scheme for ECG noise cancellation. As shown in Table 3 and Table 4, the average N E R d B for the PLn is 0.10 dB and 3.52 dB for the EMG noise.
Compared with the EMD, the EEMD has more concentrated band-limit IMF components. With the iterative EMD computation, the average of IMF with the same order yielded a sharper band transition than a single EMD-derived IMF, that is, the transition band overlap between adjacent IMFs is narrower than the EMD result. In other words, with the same filter specification the EEMD acts like a higher-order filter while the EMD works like a lower-order filter. Consequently, the performance of the EEMD scheme is better than the EMD scheme, as shown in Table 3 and Table 4 where the average N E R d B for PLn and the EMG noise by the EEMD scheme are 2.20 dB and 3.85 dB, respectively. They are higher than the corresponding N E R d B by the EMD scheme. However, the EEMD pays the price of computational complexity, that is, it takes more time to cancel the ECG noise. This hinders the realization in an ECG patch if only the EEMD is applied in the ECG noise cancellation. On contrarily, the proposed GSNC scheme decomposes the input ECG signal by the EMD in the first stage. When σ | N ^ ( f ) | ,   i < τ , the proposed GSNC scheme stops further decomposition. This makes the proposed GSNC scheme possible to be embedded in an ECG patch. Moreover, the proposed GSNC scheme employs two-stage discrimination for noisy IMFs while the conventional EMD and EEMD schemes use one-stage discrimination. Thus, the proposed GSNC scheme is expected to have better performance since suspicious IMFs in the first stage can be rechecked in the second stage to avoid mistakes while the one-stage EMD and EEMD scheme fails to.
In [17], Liu et al. showed that the energy of a lower frequency in the EMG noise is found in the first-order IMF component. In other words, the EMD or the EEMD like a filter-bank is able to decompose different intrinsic components in an ECG signal. This is also true for the PLn case. The results. shown in Table 1 and Table 2 have justified the idea where the IMFs for clean and noisy ECG signals can be discriminated in most cases. Another evidence is in Table 3 and Table 4. The results indicate that the average N E R d B are positive. That is, intrinsic noise and additive noise can be dealt and cancelled in the EMD, the EEMD and the proposed GSNC schemes. Among the three schemes, the proposed GSNC scheme has the best performance with the average N E R d B 3.34 dB for the PLn and 6.14 dB for the EMG noise, as shown in Table 3 and Table 4, respectively. It implies that the proposed GSNC scheme is able to estimate the noise appropriately and the two-stage discrimination can relieve the over-cancellation problem which generally happens in the one-stage discrimination.
In order to show the proposed GSNC scheme does not affect the morphology of arrhythmic beat, the arrhythmic ECG dataset mitdb/210 is given as an example where two premature ventricular contraction (PVC) beats are within the duration. The denoised results for the PLn and EMG noise ( S N R = 5   dB ) by the proposed GSNC scheme are given in Figure 8. As shown in Figure 8b,c, the proposed GSNC scheme is able to retain subtle signs in the denoised ECG signal, when compared with Figure 8a.

7. Conclusions

This paper has presented a grey spectral noise cancellation (GSNC) scheme for ECG signals. In the proposed GSNC scheme, two-stage discrimination for noisy IMFs was employed which included the EMD, the EEMD and grey spectral noise estimation (GSNE). In general condition, the lower order IMFs would be easily coupled with the noise. The GSNE was applied to estimate the noise energy through the standard deviation of noise magnitude spectrum σ | N ^ ( f ) | . By σ | N ^ ( f ) | , noisy IMFs were determined and discarded in the process of reconstruction. The proposed GSNC scheme has been verified by forty-three datasets from the MIT-BIH database where different SNR levels for the PLn and EMG noise were considered. The results indicated that the proposed GSNC scheme was generally superior to the compared EMD and EEMD schemes in terms of average N E R d B in the given datasets. The proposed GNSC scheme provides a new approach, based on the noise magnitude spectrum, to estimate the noise energy in the IMFs. The proposed GNSC scheme could be implemented in an embedded system, like the ECG patch, to deal with noises in the ECG signals.

Author Contributions

Conceptualization: S.-H.L. and C.-H.H.; methodology: S.-H.L., C.-H.H., and W.C.; software: T.-H.T.; writing—original draft preparation: S.-H.L. and C.-H.H.; writing—review and editing: S.-H.L.; C.-H.H., and W.C.

Funding

This research was funded by the grants of the Ministry of Science and Technology of the Republic of China MOST 106-2221-E-324-011 and MOST 106-2221-E-324-001.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Holter Monitor. Available online: http://www.heart.org/HEARTORG/Conditions/HeartAttack/SymptomsDiagnosisofHeartAttack/Holter-Monitor_UCM_446437_Article.jsp#.Vxlo9nlJnGI (accessed on 20 December 2018).
  2. Cardiac Event Recorder. Available online: http://www.heart.org/HEARTORG/Conditions/Arrhythmia/PreventionTreatmentofArrhythmia/C ardiac-Event-Recorder_UCM_447317_Article.jsp#.VxloV3lJnGI (accessed on 20 December 2018).
  3. Liu, S.-H.; Wang, J.-J.; Su, C.-H.; Tan, T.-H. Development of a patch-type electrocardiographic monitor for real time heartbeat detection and heart rate variability analysis. J. Med Biol. Eng. 2018, 38, 411–423. [Google Scholar] [CrossRef]
  4. Pan, J.; Tompkins, W.J. A real-time QRS detection algorithm. IEEE Trans. Biomed. Eng. 1985, BME-32, 230–236. [Google Scholar] [CrossRef]
  5. Friesen, G.M.; Jannett, T.C.; Jadallah, M.A.; Yates, S.L.; Quint, S.R.; Troynagle, H. A comparison of the noise sensitivity of nine QRS detection algorithms. IEEE Trans. Biomed. Eng. 1990, 37, 85–98. [Google Scholar] [CrossRef] [PubMed]
  6. Slonim, T.; Slonim, M.; Ovsyscher, E. The use of simple FIR filters for filtering of ECG signals and a new method for post-filter signal reconstruction. Int. Proc. Comput. Cardiol. 1993, 871–873. [Google Scholar]
  7. Liu, S.-H. Motion artifact reduction in electrocardiogram using adaptive filter. J. Med Biol. Eng. 2011, 31, 67–72. [Google Scholar] [CrossRef]
  8. Thakor, N.; Zhu, Y. Applications of adaptive filtering to ECG analysis: Noise cancellation and arrhythmia detection. IEEE Trans. Biomed. Eng. 1991, 38, 785–794. [Google Scholar] [CrossRef]
  9. Sankar, A.B.; Kumar, D.; Seethalakshmi, K. Performance study of various adaptive filter algorithms for noise cancellation in respiratory signals. Signal Process. Int. J. 2010, 4, 267–278. [Google Scholar]
  10. Augustyniak, P. Time–frequency modelling and discrimination of noise in the electrocardiogram. Physiol. Meas. 2003, 24, 1–15. [Google Scholar] [CrossRef]
  11. Rundo, F.; Conoci, S.; Ortis, A.; Battiato, S. An advanced bio-inspired photoplethysmography (PPG) and ECG pattern recognition system for medical assessment. Sensors. 2018, 18, 405. [Google Scholar] [CrossRef]
  12. Erçelebi, E. Electrocardiogram signals de-noising using lifting-based discrete wavelet transform. Comput. Biol. Med. 2004, 34, 479–493. [Google Scholar] [CrossRef]
  13. Blanco-Velasco, M.; Weng, B.; Barner, K.E. ECG signal denoising and baseline wander correction based on the empirical mode decomposition. Comput. Biol. Med. 2008, 38, 1–13. [Google Scholar] [CrossRef] [PubMed]
  14. Chang, K.-M.; Liu, S.-H. Gaussian noise filtering from ECG by Wiener filter and ensemble empirical mode decomposition. Signal Process. Syst. 2011, 64, 249–264. [Google Scholar] [CrossRef]
  15. Wu, Z.; Huang, N.E. A study of the characteristics of white noise using the empirical mode decomposition method. Int Proc. R. Soc. 2004, 460, 1597–1611. [Google Scholar] [CrossRef]
  16. Wu, Z.; Huang, N.E. Ensemble empirical mode decomposition: A noise-assisted data analysis method. Adv. Adapt. Data Anal. 2009, 1, 1–41. [Google Scholar] [CrossRef]
  17. Liu, S.H.; Chang, K.M.; Cheng, D.C. The progression of muscle fatigue during exercise estimation with the aid of high-frequency component parameters derived from ensemble empirical mode decomposition. IEEE J. Biomed. Health Inf. 2014, 18, 1647–1658. [Google Scholar] [CrossRef] [PubMed]
  18. Wu, H.-T.; Lee, C.-H.; Sun, C.-K.; Hsu, J.-T.; Huang, R.-M.; Tang, C.-J. Arterial waveforms measured at the wrist as indicators of diabetic endothelial dysfunction in the elderly. IEEE Trans. Instrum. Meas. 2012, 61, 162–169. [Google Scholar] [CrossRef]
  19. Jebaraj, J.; Arumugam, R. Ensemble empirical mode decomposition-based optimised power line interference removal algorithm for electrocardiogram signal. IET Signal Process. 2016, 10, 583–591. [Google Scholar] [CrossRef]
  20. Kopsinis, Y.; McLaughlin, S. Development of EMD-Based denoising methods inspired by wavelet thresholding. IEEE Trans. Signal Process. 2009, 57, 1351–1362. [Google Scholar] [CrossRef]
  21. Kumaravel, N.; Nithiyanandam, N. Genetic-algorithm cancellation of sinusoidal power line interference in electrocardiograms. Med. Biol. Eng. Comput. 1998, 36, 191–196. [Google Scholar] [CrossRef]
  22. Deng, J.L. Control problems of grey system. Syst. Control Lett. 1982, 1, 288–294. [Google Scholar]
  23. Deng, J.L. Introduction to grey system theory. J. Grey Syst. 1989, 1, 1–24. [Google Scholar]
  24. Massachusetts Institute of Technology. MIT-BIH Database Distribution; Massachusetts Institute of Technology: Cambridge, MA, USA, 1998. [Google Scholar]
  25. Kammler, D.W. A First Course in Fourier Analysis; Prentice-Hall: Upper Saddle River, NJ, USA, 2000; p. 74. [Google Scholar]
Figure 1. The block diagram of the the grey spectral noise estimation (GSNE).
Figure 1. The block diagram of the the grey spectral noise estimation (GSNE).
Sensors 19 00798 g001
Figure 2. One sample overlapped subsets in the GNSE ( K = 4 ) .
Figure 2. One sample overlapped subsets in the GNSE ( K = 4 ) .
Sensors 19 00798 g002
Figure 3. Differences of σ | N ^ ( f ) | (a) ECG raw vs ECG PLn (b) ECG raw vs ECG EMG .
Figure 3. Differences of σ | N ^ ( f ) | (a) ECG raw vs ECG PLn (b) ECG raw vs ECG EMG .
Sensors 19 00798 g003
Figure 4. The flowchart of the proposed GSNC scheme.
Figure 4. The flowchart of the proposed GSNC scheme.
Sensors 19 00798 g004
Figure 5. The original ECG signal and ECG signals after the proposed GSNC scheme with different SNR of white noise in the ensemble empirical mode decomposition (EEMD) (EMG noise, SNR = 5   dB ).
Figure 5. The original ECG signal and ECG signals after the proposed GSNC scheme with different SNR of white noise in the ensemble empirical mode decomposition (EEMD) (EMG noise, SNR = 5   dB ).
Sensors 19 00798 g005
Figure 6. Comparison of overall average N E R d B with various SNR for the proposed GSNC, EMD and EEMD schemes (PLn).
Figure 6. Comparison of overall average N E R d B with various SNR for the proposed GSNC, EMD and EEMD schemes (PLn).
Sensors 19 00798 g006
Figure 7. Comparison of overall average N E R d B with various SNR for the proposed GSNC, EMD and EEMD schemes (EMG noise).
Figure 7. Comparison of overall average N E R d B with various SNR for the proposed GSNC, EMD and EEMD schemes (EMG noise).
Sensors 19 00798 g007
Figure 8. The arrhythmic ECG signals, (a) the original ECG signal with two PVC beats, (b) the ECG with PLn, (c) the denoised ECG with PLn, (d) the ECG with EMG noise (e) the denoised ECG with EMG noise.
Figure 8. The arrhythmic ECG signals, (a) the original ECG signal with two PVC beats, (b) the ECG with PLn, (c) the denoised ECG with PLn, (d) the ECG with EMG noise (e) the denoised ECG with EMG noise.
Sensors 19 00798 g008
Table 1. The σ | N ^ ( f ) | for clean signal s ( k ) and noisy signal x ( k ) with PLn ( S N R = 5   dB ).
Table 1. The σ | N ^ ( f ) | for clean signal s ( k ) and noisy signal x ( k ) with PLn ( S N R = 5   dB ).
mitdb/100mitdb/105mitdb/108mitdb/203mitdb/223mitdb/228
IMF 1 s ( k ) 1.16 × 10−47.90 × 10−56.97 × 10−58.37 × 10−51.27 × 10−47.84 × 10−5
x ( k ) 2.56 × 10−34.54 × 10−32.78 × 10−34.40 × 10−36.39 × 10−32.60 × 10−3
IMF 2 s ( k ) 5.18 × 10−53.91 × 10−52.93 × 10−54.23 × 10−55.065 × 10−53.24 × 10−5
x ( k ) 6.58 × 10−41.22 × 10−36.52 × 10−41.13 × 10−31.61 × 10−36.81 × 10−4
IMF 3 s ( k ) 2.66 × 10−53.05 × 10−51.70 × 10−52.37 × 10−52.98 × 10−51.57 × 10−5
x ( k ) 2.08 × 10−43.51 × 10−42.06 × 10−43.31 × 10−44.85 × 10−42.02 × 10−4
IMF 4 s ( k ) 1.43 × 10−51.36 × 10−59.01 × 10−61.25 × 10−52.51 × 10−57.02 × 10−6
x ( k ) 8.93 × 10−51.01 × 10−46.09 × 10−51.05 × 10−41.65 × 10−45.63 × 10−5
IMF 5 s ( k ) 6.58 × 10−66.85 × 10−65.22 × 10−67.67 × 10−61.12 × 10−53.80 × 10−6
x ( k ) 3.28 × 10−54.26 × 10−52.40 × 10−53.59 × 10−56.25 × 10−52.61 × 10−5
Table 2. The σ | N ^ ( f ) | for clean signal s ( k ) and noisy signal x ( k ) with EMG noise ( S N R = 5   dB ).
Table 2. The σ | N ^ ( f ) | for clean signal s ( k ) and noisy signal x ( k ) with EMG noise ( S N R = 5   dB ).
mitdb/100mitdb/105mitdb/108mitdb/203mitdb/223mitdb/228
IMF 1 s ( k ) 1.16 × 10−47.90 × 10−56.97 × 10−58.37 × 10−51.27 × 10−47.84 × 10−5
x ( k ) 1.36 × 10−32.51 × 10−31.43 × 10−32.37 × 10−33.42 × 10−31.37 × 10−3
IMF 2 s ( k ) 5.18 × 10−53.91 × 10−52.93 × 10−54.23 × 10−55.06 × 10−53.24 × 10−5
x ( k ) 4.00 × 10−47.75 × 10−44.75 × 10−47.04 × 10−41.03 × 10−34.82 × 10−4
IMF 3 s ( k ) 2.66 × 10−53.05 × 10−51.70 × 10−52.37 × 10−52.98 × 10−51.57 × 10−5
x ( k ) 1.40 × 10−42.06 × 10−41.30 × 10−42.09 × 10−43.17 × 10−41.20 × 10−4
IMF 4 s ( k ) 1.43 × 10−51.36 × 10−59.01 × 10−61.25 × 10−52.5 × 10−57.02 × 10−6
x ( k ) 5.53 × 10−56.60 × 10−53.93 × 10−55.89 × 10−59.61 × 10−53.92 × 10−5
IMF 5 s ( k ) 6.58 × 10−66.85 × 10−65.22 × 10−67.67 × 10−61.12 × 10−53.80 × 10−6
x ( k ) 2.14 × 10−53.13 × 10−51.28 × 10−52.14 × 10−53.65 × 10−51.52 × 10−5
Table 3. The N E R d B for the proposed GSNC and the compared schemes with the PLn ( S N R = 5   dB ) .
Table 3. The N E R d B for the proposed GSNC and the compared schemes with the PLn ( S N R = 5   dB ) .
DatasetEMDEEMDGSNCDatasetEMDEEMDGSNC
mitdb/100−4.596.366.51mitdb/2051.59−1.145.08
mitdb/1011.010.322.83mitdb/2074.126.929.48
mitdb/103−1.721.091.17mitdb/208−4.452.79−2.07
mitdb/1056.043.535.02mitdb/209−7.96−0.60−5.02
mitdb/106−5.320.12−1.48mitdb/2106.584.247.68
mitdb/1083.296.523.50mitdb/212−11.33−3.40−5.33
mitdb/1097.967.909.97mitdb/2133.97−3.157.10
mitdb/1114.191.535.48mitdb/214−2.725.24−0.91
mitdb/1126.755.247.52mitdb/215−2.110.081.22
mitdb/113−2.12−1.81−0.72mitdb/219−8.315.232.91
mitdb/114−0.752.782.99mitdb/220−1.13−0.520.40
mitdb/115−3.01−1.500.10mitdb/2212.232.873.46
mitdb/116−3.523.773.32mitdb/2220.97−0.396.22
mitdb/1173.110.315.65mitdb/2235.485.626.24
mitdb/118−1.84−0.53−0.19mitdb/2287.311.676.27
mitdb/1192.030.373.32mitdb/230−1.580.32−0.26
mitdb/1212.762.833.88mitdb/231−6.55−5.67−4.45
mitdb/1225.464.189.73mitdb/232−2.656.475.64
mitdb/123−0.52−0.42−2.01mitdb/2330.736.186.68
mitdb/1245.825.616.74mitdb/234−5.210.66−0.22
mitdb/201−12.835.446.72
mitdb/2027.834.538.42Mean0.102.203.34
mitdb/2035.403.075.15Std.5.213.214.03
Table 4. The N E R d B for the proposed GSNC and the compared schemes with the EMG noise ( S N R = 5   dB ) .
Table 4. The N E R d B for the proposed GSNC and the compared schemes with the EMG noise ( S N R = 5   dB ) .
DatasetEMDEEMDGSNCDatasetEMDEEMDGSNC
mitdb/100−3.028.667.94mitdb/2051.711.9110.87
mitdb/1010.142.182.65mitdb/20711.3212.4713.21
mitdb/103−2.791.700.77mitdb/208−2.116.442.81
mitdb/1056.447.688.21mitdb/2090.31−1.441.65
mitdb/1065.032.215.42mitdb/2107.793.669.50
mitdb/1086.617.393.87mitdb/212−1.29−4.15−5.14
mitdb/10910.8411.1712.61mitdb/2132.557.525.96
mitdb/1118.233.799.44mitdb/2147.644.5910.04
mitdb/1121.503.161.97mitdb/2152.130.143.66
mitdb/113−0.921.761.43mitdb/2197.624.169.44
mitdb/1144.969.5012.16mitdb/2200.42−1.531.11
mitdb/1151.43−2.90−0.77mitdb/2214.545.956.93
mitdb/1163.276.249.45mitdb/2225.323.547.06
mitdb/117−0.53−0.086.12mitdb/2236.308.597.63
mitdb/118−1.63−1.98−0.57mitdb/2285.253.476.55
mitdb/1197.591.128.68mitdb/2300.820.273.21
mitdb/12112.199.679.94mitdb/231−2.91−6.66−0.49
mitdb/1222.732.505.21mitdb/232−8.037.157.64
mitdb/1232.86−1.123.38mitdb/2338.987.0511.14
mitdb/1248.536.7411.42mitdb/234−0.394.082.93
mitdb/2016.677.819.34
mitdb/2024.107.989.79Mean3.523.856.14
mitdb/2039.213.269.72Std.4.524.274.29

Share and Cite

MDPI and ACS Style

Liu, S.-H.; Hsieh, C.-H.; Chen, W.; Tan, T.-H. ECG Noise Cancellation Based on Grey Spectral Noise Estimation. Sensors 2019, 19, 798. https://doi.org/10.3390/s19040798

AMA Style

Liu S-H, Hsieh C-H, Chen W, Tan T-H. ECG Noise Cancellation Based on Grey Spectral Noise Estimation. Sensors. 2019; 19(4):798. https://doi.org/10.3390/s19040798

Chicago/Turabian Style

Liu, Shing-Hong, Cheng-Hsiung Hsieh, Wenxi Chen, and Tan-Hsu Tan. 2019. "ECG Noise Cancellation Based on Grey Spectral Noise Estimation" Sensors 19, no. 4: 798. https://doi.org/10.3390/s19040798

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop