Next Article in Journal
An Enhanced Paradigm for Cognitive Cooperation Networks: Two-to-One Energy and Spectrum Dual-Cooperation
Next Article in Special Issue
Automated Method for Discrimination of Arrhythmias Using Time, Frequency, and Nonlinear Features of Electrocardiogram Signals
Previous Article in Journal
Proximal Optical Sensors for Nitrogen Management of Vegetable Crops: A Review
Previous Article in Special Issue
Study of the Home-Auxiliary Robot Based on BCI
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adaptive Noise Reduction Algorithm to Improve R Peak Detection in ECG Measured by Capacitive ECG Sensors

1
Department of Electrical Engineering, Pohang University of Science and Technology, Pohang 37673, Korea
2
Department of Creative IT Engineering and Future IT Innovation Laboratory, Pohang University of Science and Technology, Pohang 37673, Korea
*
Author to whom correspondence should be addressed.
Sensors 2018, 18(7), 2086; https://doi.org/10.3390/s18072086
Submission received: 21 May 2018 / Revised: 16 June 2018 / Accepted: 26 June 2018 / Published: 29 June 2018
(This article belongs to the Special Issue Sensors for Biosignal Processing)

Abstract

:
Electrocardiograms (ECGs) can be conveniently obtained using capacitive ECG sensors. However, motion noise in measured ECGs can degrade R peak detection. To reduce noise, properties of reference signal and ECG measured by the sensors are analyzed and a new method of active noise cancellation (ANC) is proposed in this study. In the proposed algorithm, the original ECG signal at QRS interval is regarded as impulsive noise because the adaptive filter updates its weight as if impulsive noise is added. As the proposed algorithm does not affect impulsive noise, the original signal is not reduced during ANC. Therefore, the proposed algorithm can conserve the power of the original signal within the QRS interval and reduce only the power of noise at other intervals. The proposed algorithm was verified through comparisons with recent research using data from both indoor and outdoor experiments. The proposed algorithm will benefit a noise reduction of noisy biomedical signal measured from sensors.

1. Introduction

The electrocardigram (ECG) is used to diagnose diseases, such as heart disease, by displaying bioinformation, such as R peak magnitude and interval [1,2]. Heart rate, which can be calculated using R peaks, often needs to be monitored for patients with diseases, as well as healthy individuals. To perform an ECG, Ag-AgCl electrodes must be attached to the patient’s body directly, which may be inconvenient in practice.
To overcome measurement limitations, capacitive ECG (cECG) sensors were developed to use capacitive coupling to measure voltage changes. Because ECGs in other intervals than QRS interval are relatively weak in power, the ECGs measured from the cECG sensors are mainly used to effectively detect R peaks, which can be used to derive a lot of medical information. Because of the convenience of cECG sensors, they are widely used in many situations where conventional ECG measurement is difficult but necessary [3,4,5]. For example, ECG measurement cannot be easily performed while driving, but evaluation of a driver may be necessary to prevent emergency situations that can be caused if a driver has a heart attack or falls asleep while driving. Therefore, cECG sensors could be mounted into the driver’s seat to obtain ECGs of drivers [6,7,8].
However, cECG sensors are sensitive to the noise caused by motion. As a result, accurate R peak detection is not possible. It is impossible to limit motion caused by breathing, vibrations, and various other actions of daily life; therefore, noise reduction via signal processing is necessary. Many methods for noise reduction have been suggested using bandpass filters [9], wavelet filters [10,11], independent component analysis [12], injection signals [13], spectro-temporal filtering [14], extended Kalman Filters [15], and active noise cancellation (ANC) [16,17,18]. Among them, adaptive filters, which are used in ANC, can effectively reduce noise that constantly changes by updating the filter weight adaptively as the noise changes. ANC has been studied to find a reference signals that can improve noise-reduction performance, but the commonly used reference signal that is obtained from acceleration sensors was not efficient in removing the noise from cECGs [17,18].
Recently, new reference signals obtained from additional cECG sensors were suggested to reflect the characteristics of the motion noise but not the bioinformation [6]. ANC using the new reference signal was verified to improve R peak detection by comparing the proposed algorithm to previous algorithms. Furthermore, reliability of the reference signal was shown by verifying the assumptions for ANC. However, the assumption for correlation with the reference noise was not clearly verified and it was sometimes wrong according to the subjects. Moreover, the adaptive filter of ANC was updated without considering that the power of the ECG within the QRS interval is much larger than the noise or the intermittence of the QRS interval. These problems caused a reduction in the power of the ECG and degraded R peak detection. Therefore, a new structure is needed for ANC to conserve the power of the ECG while reducing the power of the noise.
This study analyzes the properties of the ECG and the reference signal, and their effect on the update of the filter weight. As the filter weight within the QRS interval is updated as impulsive noise is added, we regard the measured ECG at the QRS interval to be impulsive noise. Accordingly, this paper proposes a new ANC structure using a robust variable step size affine projection sign algorithm (RVSS APA) that does not affect impulsive noise [19]. As a result, the power of the ECG signal within the QRS interval is conserved while the power of the noise is reduced to improve R peak detection.

2. Material

2.1. Measurement System

In recent research [6], four cECG sensors were mounted in a row on the back of a chair and driver’s seat (Figure 1). Conductive fabric was placed on the bottom of the seat and connected to a driven right leg circuit to reduce the common noise component of the measured ECG. cECGs s i g L and s i g R were obtained from the two sensors outside in a row and additional cECGs s i g a L and s i g a R were obtained from two other sensors, which were close to the center. This study used signals that were defined and used in the existing research [6]. The difference between s i g L and s i g R is filtered through a band pass filter (BPF) with a 0.05–35 Hz pass-band; this was defined as a measured ECG ( E C G m ):
E C G m = BPF s i g L s i g R .
Two reference signals, r L and r R , were obtained from the two sensors of each part as
r L = s i g L s i g a L ,
r R = s i g R s i g a R .
r L and r R were selected because they contain motion information, but do not have bioinformation [6]. Then, we used an NI 9205 (National Instruments, Austin, TX, USA) with 16 bits to convert the obtained analog signals to digital signals at 200 Hz.

2.2. Data Acquirement

The data were acquired from both indoor and outdoor experiments. Nineteen subjects participated in the indoor experiment.The participants were between 20 and 30 years old; one was female and the others were male. Ten subjects participated in the outdoor experiment. The participants were between 20 and 30 years old; all were male. All subjects wore cotton T-shirts during the experiments. During both experiments, cECGs were obtained from the cECG sensors. In addition, E C G c o n t a c t was simultaneously obtained from conventional contact electrodes to obtain true R peaks.
During the indoor experiment, the subjects sat on the chair in which the measurement system had been installed. Then, they conducted the indoor experiment for 30 min according to following guidelines. For the first 5 min, the subjects remained stable without any movement to obtain an cECG without the noise. Leaning their backs against the cECG sensors, the subjects moved their bodies randomly to obtain an cECG with the noise for 25 min. The size and shape of the movement varied, and short breaks were given between movements. As a result, there was noise with a variety of power and frequency in the measured cECG, as can be assumed to be true for many situations.
During the outdoor experiment, the subjects sat in the driver’s seat, in which the measurement system had been installed (similar to the chair in the indoor experiment). The subjects were asked to drive along a course in the Pohang, Kyungbuk province of Korea. It took an average of 55 min for the participants to drive 31.8 km. The driving course consisted of 2.2 km of on-campus roads, 9.3 km of city roads, 9.2 km of national highway, and 11.1 km of highway. There were road signs and variations along the course, such as signal-induced stops, speed bumps, and unpaved roads. As a result, various types of noise were mixed into the measured cECG. In this experiment, the subjects were required to drive normally and not be concerned with leaning against the cECG sensors.
R peaks in the ECGs obtained during the experiments were detected using an R peak detection algorithm with the Pan and Tompkins algorithm [20] owing to ease of implementation and prior researches [6,16,21]. E C G c o n t a c t was used to obtain true R peak positions and to evaluate the accuracy of obtained R peaks from the E C G m .

3. Methods

3.1. Active Noise Cancellation

3.1.1. ANC Using Affine Projection Algorithm

ANC is used to remove noise from the measured signal [22,23,24] and its block diagram is depicted in (Figure 2). d ( i ) is a sequence of E C G m and equals s ( i ) + n ( i ) , where i denotes the iteration. s ( i ) is the original ECG and n ( i ) is the noise from the motion of the subject and the vehicle. The reference signal n i is filtered through an adaptive filter to produce the output y ( i ) . Then, the error signal e ( i ) = d ( i ) y ( i ) is obtained and used as the output of ANC.
During ANC, noise can be cancelled when n i is correlated with n ( i ) , and s ( i ) is not strongly correlated with n ( i ) and n i [6,22]. The expectation value of squared e ( i ) is obtained as
E e 2 ( i ) = E ( s ( i ) + n ( i ) y ( i ) ) 2 = E s 2 ( i ) + E n ( i ) y ( i ) 2 + 2 E s ( i ) n ( i ) y ( i ) = E s 2 ( i ) + E ( n ( i ) y ( i ) ) 2 ,
where E · denotes the expectation. The weight of the adaptive filter is updated to minimize E e 2 ( i ) so that min E e 2 ( i ) = E s 2 ( i ) + min E n ( i ) y ( i ) . As a result, n ( i ) y ( i ) approaches zero and e ( i ) approximates s ( i ) . The reduction of noise depends on the extent to which the correlation conditions are satisfied. Therefore, the selection of the reference signal is the most important step and has been researched to satisfy these conditions [6,17,18]. Reference noise n i , determined using the differences between the cECGs from adjacent sensors, has been suggested to improve R peak detection by reducing the noise of E C G m [6]:
n i = r L ( i ) , r L ( i 1 ) , , r L ( i L + 1 ) , r R ( i ) , r R ( i 1 ) , , r R ( i L + 1 ) T ,
where L denotes half the length of the filter weight and T denotes its transpose. In addition, an affine projection algorithm (APA) is used to update the weight of the adaptive filter. As n i itself is highly correlated and the correlation reduces the convergence rate of the filter weight [25], the APA can improve the convergence rate. The filter weight w ^ i = w ^ 1 ( i ) , w ^ 2 ( i ) , , w ^ 2 L ( i ) T of the APA is updated every iteration as follows:
U i = n i , n i 1 , , n i P + 1 , e i = d i U i T w ^ i 1 , d i = [ d ( i ) , d ( i 1 ) , , d ( i P + 1 ) ] T , w ^ i = w ^ i 1 + μ U i U i T U i 1 e i ,
where P is the projection order and μ is the step size of the APA. P determines the number of input vectors of U i and μ determines the convergence rate of the filter weight. The convergence rate is important in ANC because it determines the noise reduction performance when noise with different statistical characteristics is added. e i = [ e 1 ( i ) , e 2 ( i ) , , e P ( i ) ] T is the error vector and its first-tap error e ( i ) = e 1 ( i ) is the output sequence of ANC.

3.1.2. Properties of Reference Signal and ECG

Although ANC reduces noise, it cannot improve R peak detection because it reduces the power of QRS interval (Figure 3) as well. To investigate this problem, s ( i ) has to be examined. In r L ( i ) and r R ( i ) , s ( i ) is expected to be removed and only the signal correlated with the n ( i ) is expected to remain only motion information by subtracting each other’s cECG obtained from the adjacent cECG sensors. However, r L ( i ) and r R ( i ) are still correlated with s ( i ) because s ( i ) is not completely removed (Figure 4c). As a result, the correlation condition is not satisfied and the power of s ( i ) is reduced after filtering. In addition, the QRS interval of E C G m is intermittent and the power of s ( i ) at the QRS interval is large enough to ignore n ( i ) . Therefore, within the interval, Equation (4) approximates E e 2 ( i ) E ( s ( i ) y ( i ) ) 2 . As a result, the filter weight w ^ ( i 1 ) is updated to remove s ( i ) from the output signal e ( i ) of the ANC even though the filter weight had been updated to reduce n ( i ) before the QRS interval. When E C G m (Figure 4a) is filtered through ANC, the power of the filtered ECG (Figure 4b) decreases at the QRS interval and more incorrect R peaks are detected, where the green o denotes the true R peak position and the red * denotes detected R peaks. Within the QRS interval, the first-tap filter weight dynamically changes (Figure 4d) and the updated quantity of the total filter weight increases (Figure 5a) compared to the S-Q interval (Figure 3). The filter weight has been continuously updated to remove the noise that exists in the S-Q interval, but s ( i ) within the QRS interval is large within the short time frame, causing the filter weight to be updated significantly to remove s ( i ) .
To conserve the power of s ( i ) at the QRS interval, a dramatic update of the filter weight should be prevented by slowing the convergence rate. For a slow convergence rate, step size should be small; however, step size adjustment is hard because there is a serious trade-off problem. When the step size is small for slow convergence rate, the power of s ( i ) within QRS interval is conserved, but the power of n ( i ) is not reduced. In contrast, when the step size is large, the power of s ( i ) is reduced. In addition, the step size adjustment depends on the characteristics of each subject’s ECG.
To improve R peak detection with ANC, the filter weight at the QRS interval should be updated only for baseline noise reduction. Further, at the S-Q interval, which is defined as the entire interval except for the QRS interval (Figure 3), the filter weight should converge fast to reduce the noise. Based on the properties of s ( i ) , we regard s ( i ) at the QRS interval as impulsive noise that requires a dramatic update of the filter weight when it is added. Therefore, robust algorithm against impulsive noise should be applied at the QRS interval, whereas the APA works for noise reduction at the other interval.

3.2. Robust Variable Step Size APA

Robust variable step size (RVSS) APA was introduced [19]. The RVSS APA updates its filter weight while switching the APA with the affine projection sign algorithm (APSA) [25]. The cost function of the APSA is L 1 -norm of the a p o s t e r i o r i error vector e p , i = d ( i ) U i T w ^ i and the constraint is the update quantity of the filter weight w ^ i w ^ i 1 2 2 δ 2 , where δ 2 is a parameter for limited update quantity [26]. The update equation is obtained by solving the minimization problem:
w ^ i = w ^ i 1 + δ U i · sgn e p , i sgn e p , i U i T U i sgn e p , i ,
where sgn ( · ) denotes the sign function. APSA is robust against dynamic changes in filter weight, and its convergence rate is slow, so it should be used when update quantity by APA is large. Furthermore, the APA should be used to update the filter weight when the robustness of APSA is not necessary. In RVSS APA, w ^ i 1 is updated by the APA when the update quantity of the APA w ^ i w ^ i 1 2 = U i U i T U i 1 e i 2 does not exceed threshold δ ( i 1 ) . Otherwise, w ^ i 1 is updated by the APSA with δ ( i 1 ) update quantity:
w ^ i = w ^ i 1 + U i U i T U i 1 e i , if U i U i T U i 1 e i 2 < δ ( i 1 ) w ^ i 1 + δ ( i 1 ) U i · sgn e i sgn e i U i T U i sgn e i , otherwise .
In the equation to update the APSA of the RVSS APA, e p , i is replaced with e i . The δ ( i ) is recursively obtained as follows:
δ ( i ) = α δ ( i 1 ) + ( 1 α ) min | e ( i ) | n i , δ ( i 1 ) ,
where α is a memory factor within [0,1] and generally close to one.

3.3. Proposed Algorithm with RVSS APA

At the QRS interval, the APSA is used to conserve power and reduce only the baseline noise because s ( i ) is considered impulsive noise. At the S-Q interval, APA is used to reduce the noise where n ( i ) is dominant. To satisfy with both goals, RVSS APA should be used with appropriate parameters, such as threshold and step sizes for the ECG-denoising system:
w ^ i = w ^ i 1 + μ 1 U i U i T U i 1 e i , if μ 1 U i U i T U i 1 e i 2 < β δ ( i 1 ) w ^ i 1 + μ 2 ( i ) U i · sgn e i sgn e i U i T U i sgn e i , otherwise ,
where μ 1 is the APA step size, μ 2 ( i ) is the APSA step size, and β δ ( i 1 ) is the threshold that determines when APSA is used.

3.3.1. Step Size μ 1 and μ 2

The parameter μ 1 decides the convergence rate of APA. The noise of the ECG is reduced by the APA especially within the S-Q interval. When μ 1 becomes large and close to one, the noise is better reduced because the fast convergence rate can quickly reflect the constantly varying characteristic of the noise. However, when μ 1 is too large, it can remove Q and S waves at the boundary of QRS interval. As a result, R peak detection can be degraded because Q and S waves are important to detect precise R peaks. Therefore, μ 1 does not have to be too large.
In the APSA, μ 2 equals δ ( i 1 ) [19,25,26]. However, δ ( i 1 ) is not small and constantly varies because the filter weight has been constantly updated due to the varying system. As a result, s ( i ) at the QRS interval can be removed with μ 2 = δ ( i 1 ) , which is not desirable. Therefore, μ 2 has to be smaller than δ ( i 1 ) , but not zero. If μ 2 is zero, the filter cannot adjust for the constantly varying system change. Therefore, μ 2 is a function of δ ( i ) to reflect the system change:
μ 2 = γ δ ( i 1 ) .
where the γ is a scaling factor less than one.

3.3.2. Threshold β δ

During every iteration, the update quantity of the APA is compared to β δ ( i ) , and APSA is used instead of APA when the update quantity exceeds β δ ( i ) . The update quantity of the filter weight is constantly changing due to experimental environment factors, such as ambient noise, the subjects, and experimental equipment. If δ ( i ) is constant, only the APSA is used so that the noise is not removed, or only the APA is used so that s ( i ) at the QRS interval is removed. The β δ ( i ) has to be at the boundary of QRS and S-Q intervals. Therefore, δ ( i ) has to be a function of the update quantity of the APA as β δ ( i ) is compared with only the update quantity of the APA as follows:
δ ( i ) = α δ ( i 1 ) + ( 1 α ) μ 1 U i U i T U i 1 e i 2 , if μ 1 U i U i T U i 1 e i 2 < β δ ( i 1 ) δ ( i 1 ) , otherwise .
From this update, δ ( i ) can reflect the constantly varying update quantity of the APA. In addition, β is a scaling parameter to find only the boundary of the QRS and S-Q intervals. The update quantities of the APA at every iteration are shown in (Figure 5a) when E C G m is filtered through the proposed algorithm using RVSS APA. β should be within an appropriate range to locate the boundary and detect only the QRS interval. The update quantity is adjusted by the proposed algorithm (Figure 5b).

3.4. Postprocessing

In the research to developethe reference signal, a simple and reasonable postprocessing method is used [6] to prevent incorrect updates owing to exceptional situations that occur in practice. The filtered ECG was verified by two rules using two intervals from three consecutively detected R peaks and the power of ECG. When the filtered ECG is abnormal, its raw ECG is used instead. Owing to the simplicity and reliability of the postprocessing and the fair comparisons in following experiments, postprocessing is used in the proposed algorithm.

4. Experimental Results and Discussion

4.1. Performance Index

To verify the proposed algorithm with the new structure of the ANC, sensitivity ( Se ) and positive predictivity ( P + ) were used as performance indices for detected R peaks. Se and P + is obtained by
Se = T P T P + F N × 100 ,
P + = T P T P + F P × 100 .
A search window is defined as a 80-ms period centered on each true R peak [6]. True positive (TP) denotes the number of accurately detected R peaks within the search windows, false negative (FN) denotes the number of undetected R peaks within the search windows, and false positive (FP) denotes the number of detected R peaks outside the search windows. Se decreases when the peaks to be found are not detected and P + decreases when the wrong peaks are recognized as R peaks. In addition, their average is defined as A v g = ( Se + P + ) / 2 .
Also, SNR ^ is used as a signal quality index. Because s ( i ) and n ( i ) are difficult to distinguish and obtain in practice, we assumed the original ECG power is the same as the power of the 100 ms centered around a true R peak as we considered the dominance of their power based on the quality index of ECG [27]. In the ECG measured by the cECG sensors, the complete PQRST wave is difficult to obtain, but complete QRS interval can be obtained. Therefore, the S-Q interval is considered the interval including only the noise. In this study, SNR ^ is defined as
SNR ^ = P ^ s P ^ n ,
where P ^ s is the power of the 100-ms ECGs centered on the detected R peaks and P ^ n is the power of the ECG outside those 100-ms ECGs (Figure 3). SNR ^ decreases when the power at the QRS interval is not conserved by filtering.

4.2. Experimental Environment

To consider near-real-time noise reduction of the ECG, a 6-s processing window was set to process the length of the ECG, which the previously used 2-s data overlaps. The overlapped data enable R peaks at the boundary to be detected stably.
S e , P + , and SNR ^ , as obtained from E C G m , E C G A P A , and E C G R V S S in the indoor and outdoor experiments, are shown in Table 1, where E C G A P A is the ECG filtered by the ANC using APA [6] and E C G R V S S is the ECG filtered by the proposed algorithm using RVSS APA. The same postprocessing was also applied to ANC. For both experiments, the step size of ANC using APA was experimentally set to 0.05, which can lead to the best performance for the comparison. Furthermore, μ 1 , γ , and β were set as 0.4, 0.01, and 3.5. S e and P + were obtained using the entire length of each data set without exception. However, SNR ^ was obtained using only the initial 5-min length to ignore the baseline noise and noise during driving and motion because power is sensitive to large magnitudes of noise even if they do not last long. An increase in A v g compared to that of E C G m is defined as d_Avg and shown in each table to identify performance differences clearly.
The length of the data from the outdoor experiment is so long that the A v g increase seen is small. Therefore, the data were divided into 5 sections based on the roads that were driven. S e and P + are shown in Table 2. The 1st section is the initial 5-min section where every subject stayed stable, the 2nd section is the general road section in which many curves, speed bumps, and stops existed, the 3rd section is general road in which speed bumps and stops did not exist and fast driving was possible, the 4th section is a highway in which the noise constantly exited due to vehicle vibrations caused by faster speed, and the 5th section is national highway in which few curves and stops existed and fast driving was sometimes possible.
The SNR ^ of E C G R V S S was compared to that of E C G m , E C G A P A and E C G L_APA , which is the ECG filtered by the ANC using APA with a large step size of 0.4 in Table 3 to show the tradeoff in step size. Furthermore, E C G m , E C G A P A , E C G L_APA , and E C G R V S S are plotted (Figure 6) to show the actual shape of the ECGs after being filtered.

4.3. S e and P + Comparison

In general, the A v g are used to evaluate the overall R peak detection performance, as both S e and P + are important. The A v g for E C G R V S S increased by 8.22 (mean) ± 5.55 (standard deviation)% in the indoor experiment and 6.28 ± 3.92% in the outdoor experiment, whereas the A v g for E C G A P A increased by 5.58 ± 4.42% and 3.45 ± 2.32% in the indoor and outdoor experiment (Table 1). For indoor data 19, the A v g increased at most by 21.49%, and for outdoor data 4, the A v g increased at most by 14.11%. Actually, for several of the indoor and outdoor data sets, S e of E C G R V S S was less than that of E C G A P A , but P + was much larger, causing the A v g to be larger.
In addition, P + for E C G R V S S was 5.62 ± 5.00% larger than P + of E C G A P A although S e for E C G R V S S was −0.33 ± 2.92% larger than S e of E C G A P A in the indoor experiments. Likewise, P + for E C G R V S S was 5.48 ± 3.28% larger than that of E C G A P A although S e for E C G R V S S was −0.20 ± 0.83% larger than that of E C G A P A in outdoor experiments. The reason P + increased is that the proposed algorithm could filter ECG to reduce the power of the noise within the S-Q interval than the ANC using APA did. Thus, the proposed algorithm could prevent the detection of incorrect R peaks outside the search window, decreasing FP.
For more accurate results analysis (Table 2), the performance increase ratio (PIR) of each section were obtained and shown in the last column where
PIR = d_Avg   of   E C G R V S S d_Avg   of   E C G A P A .
The two largest PIR were shown in Section 3 and Section 4. In those sections, the subjects could drive fast without curves, speed bumps, and stops so that only trivial and moderate noise occurred due to the vibration of the vehicle caused by fast driving and there was no abnormal noise. As a result, the proposed algorithm could reduce the noise and conserve the QRS interval compared to the ANC using APA. In the other sections, the PIR were lower than or similar to the PIR of the total section. There were curves, speed bumps, stops, and unpaved roads, so abnormal noise occurred. The severe vibration of the vehicle (i.e., driving on unpaved roads) resulted in noise which had statistical characteristics similar to QRS interval of original signal so that the QRS interval could not be distinguished (Figure 7a; left plot). Also, the separation of the body and sensor (i.e., steering, driving over speed bumps) resulted in large noise which caused wrong update of the filter weight (Figure 7; right plot). As a result, neither algorithms could reduce the abnormal noise (Figure 7b,c) and PIR did not increase. In conclusion, the performance depended on the type of noise. The proposed algorithm achieved improved results when moderate noise was mixed, but it showed the limitation that abnormal noise was not reduced.

4.4. ECGs and S N R ^ Comparison

To investigate how much noise was removed and how much the QRS interval was preserved by filtering, ECGs and SNR ^ were compared. E C G m , E C G A P A , E C G L_APA , and E C G R V S S from outdoor data 2 in were plotted in the same chart (Figure 6). Although all R peaks were detected in the E C G m , two incorrect R peaks were detected due to motion noise. In E C G A P A , the motion noise was not removed sufficiently using the small step size even though the QRS-interval power was conserved. In contrast, in E C G L_APA , the motion noise was removed using a large step size, but the QRS-interval power was not conserved. Because of these problems, step size adjustment does not contribute significantly to improving SNR, which leads to performance degradation. As a result, the R peak detection algorithm detected wrong R peaks. However, the proposed algorithm removed the motion noise and conserved QRS-interval power. Then, SNR of E C G R V S S was larger than that of the other ECGs. As a result, only correct R peaks were detected without incorrect R peaks.
On average, SNR ^ of the E C G R V S S obtained from both experiments was larger than that of the E C G m , E C G A P A , and E C G L_APA (Table 3). For indoor data 8, 11, 13, and outdoor data 4, SNR ^ was smaller than E C G A P A . The quality of the E C G m to be filtered was abnormally noisy (Table 1), so the E C G m was hard to filter. In addition, SNR ^ of the E C G A P A was larger than that of E C G L_APA because E C G L_APA reduced QRS-interval power more than noise power. This led to performance degradation so that the A v g for the E C G L_APA were, on average, 79.35 ± 15.16% for the indoor experiment and 83.26 ± 5.96% for the outdoor experiment. When APA is used for noise reduction in ECG, its step size μ is normally selected between 0 and 1. Because there is a significant trade off with conservation of QRS interval and noise reduction, appropriate step size must be selected in the range according to experimental environments; in the 29 data of the both experiments, μ = 0.05 , on average, resulted in the largest A v g among μ = 0.01 , 0.02 , , 0.09 , 0.1 , 0.2 , …, 1. However, in only two data, A v g s were the largest at μ = 0.05 , but A v g s were the largest at various size of μ in the other data. The difference between A v g at μ = 0.05 and the largest A v g in each data was 0.59 ± 0.70%. However, the step size of the proposed algorithm has a significant role for only noise reduction, so the proposed algorithm with step size near 0.4 which is large enough to remove noise achieved high SNR ^ and improved R peak detection; in the 29 data, μ = 0.4 , on average, resulted in the largest A v g . Furthermore, in 11 data, A v g s were the largest at μ = 0.4 . Also, in most data, A v g s were the largest at μ near 0.4. The difference between A v g at μ = 0.4 and the largest A v g in each data was 0.25 ± 0.29%. In conclusion, the step size of the ANC using APA must be selected differently depending on the experimental environments for the best performance. However, the best performance of the proposed algorithm is achieved when the step size is near 0.4 regardless of the experimental environments.

5. Conclusions

This study proposed a new ANC structure considering the properties of the ECG and the reference signal obtained from cECG sensors. The weight of the adaptive filter is significantly updated at the QRS interval because the correlation condition is not satisfied, and the original signal is regarded as impulsive noise within that interval. Because filter weight is updated if impulsive noise is present in the QRS interval, ANC using RVSS APA with appropriate parameters was suggested to be robust against the QRS-interval original signal. As a result, the raw ECG is filtered out as the power at the QRS interval is conserved and the power of the noise at the S-Q interval is reduced. SNR ^ of the filtered ECG increased, so improved R peak detection was achieved. Motion noise at S-Q interval was reduced; therefore, the inaccurate detection of R peaks in the raw ECG decreased. In the indoor and outdoor experiments, the proposed algorithm could reduce the noise of the raw ECG more than previous research of ANC using APA. As a result, A v g increased. In addition, the proposed algorithm achieves improved R peak detection when its step size is near 0.4 although there is a significant trade off with conservation of QRS interval and noise reduction in ANC using APA. It is because the proposed algorithm focuses on only noise reduction so step size which is large enough to reduce the noise can achieve improved R peak detection under various experimental environments.
However, the proposed algorithm could not reduce abnormal noise which causes wrong update of the filter weight. Then, the noise reduction performance depended on the types of noise. Furthermore, the proposed algorithm has a negative effect of losing other bioinformation (i.e., P wave, T wave) after adaptive filtering because the proposed algorithm focuses on the conservation of only QRS interval and noise reduction in S-Q interval containing P wave, and T wave for improved R peak detection. This negative effect can result in degraded signal quality. However, P wave and T wave are hardly measured by cECG sensors due to the limitation of the sensors and the measurement noise. Therefore, the proposed algorithm aimed at QRS interval and achieved improved R peak detection.
To improve R peak detection in our system, additional channel data can be used for noise reduction by mounting more sensors into the seat or by using the signal from the sensors already installed. As more channels can share the intervals among the R peaks, the QRS interval can be easily found and the power can be better conserved. More channel data can improve R peak detection by using a channel selection method with the proposed algorithm. The proposed algorithm can be applied to many applications measuring noisy biomedical signal.

Author Contributions

M.S. wrote this paper and proposed the main idea of this research and conducted the data analysis and simulation of adaptive filter. M.C. developed hardware and measurement system. J.S.L. performed the experiments. S.W.K. managed the whole process and assisted the development of the proposed method and data analysis.

Funding

This research was supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (NRF-2015R1D1A1A09059377).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kleiger, R.E.; Stein, P.K.; Bigger, J.T. Heart rate variability: Measurement and clinical utility. Ann. Noninvasive Electrocardiol. 2005, 10, 88–101. [Google Scholar] [CrossRef] [PubMed]
  2. Camm, A.J.; Malik, M.; Bigger, J.T.; Breithardt, G.; Cerutti, S.; Cohen, R.J.; Coumel, P.; Fallen, E.L.; Kennedy, H.L.; Kleiger, R.E.; et al. Heart rate variability. Standards of measurement, physiological interpretation, and clinical use. Eur. Heart J. 1996, 17, 354–381. [Google Scholar]
  3. Castro, I.D.; Varon, C.; Torfs, T.; Van Huffel, S.; Puers, R.; Van Hoof, C. Evaluation of a Multichannel Non-Contact ECG System and Signal Quality Algorithms for Sleep Apnea Detection and Monitoring. Sensors 2018, 18, 577. [Google Scholar] [CrossRef] [PubMed]
  4. Lee, H.J.; Hwang, S.H.; Yoon, H.N.; Lee, W.K.; Park, K.S. Heart rate variability monitoring during sleep based on capacitively coupled textile electrodes on a bed. Sensors 2015, 15, 11295–11311. [Google Scholar] [CrossRef] [PubMed]
  5. Lee, J.S.; Heo, J.; Lee, W.K.; Lim, Y.G.; Kim, Y.H.; Park, K.S. Flexible capacitive electrodes for minimizing motion artifacts in ambulatory electrocardiograms. Sensors 2014, 14, 14732–14743. [Google Scholar] [CrossRef] [PubMed]
  6. Choi, M.; Jeong, J.J.; Kim, S.H.; Kim, S.W. Reduction of motion artifacts and improvement of R peak detecting accuracy using adjacent non-intrusive ECG sensors. Sensors 2016, 16, 715. [Google Scholar] [CrossRef] [PubMed]
  7. Choi, M.; Kim, S.W. Driver’s movement monitoring system using capacitive ECG sensors. In Proceedings of the IEEE 6th Global Conference on Consumer Electronics (GCCE), Nogaya, Japan, 24–27 Octorber 2017. [Google Scholar]
  8. Walter, M.; Eilebrecht, B.; Wartzek, T.; Leonhardt, S. The smart car seat: Personalized monitoring of vital signs in automotive applications. Pers. Ubiquitous Comput. 2011, 15, 707–715. [Google Scholar] [CrossRef]
  9. Tong, D.A.; Bartels, K.A.; Honeyager, K.S. Adaptive reduction of motion artifact in the electrocardiogram. In Proceedings of the Second Joint 24th Annual Conference and the Annual Fall Meeting of the Biomedical Engineering Society Engineering in Medicine and Biology, Houston, TX, USA, 23–26 Octorber 2002; Volume 2, pp. 1403–1404. [Google Scholar]
  10. Chen, S.W.; Chen, Y.H. Hardware design and implementation of a wavelet de-noising procedure for medical signal preprocessing. Sensors 2015, 15, 26396–26414. [Google Scholar] [CrossRef] [PubMed]
  11. Martínez, J.P.; Almeida, R.; Olmos, S.; Rocha, A.P.; Laguna, P. A wavelet-based ECG delineator: Evaluation on standard databases. IEEE Trans. Biomed. Eng. 2004, 51, 570–581. [Google Scholar] [CrossRef] [PubMed]
  12. Wartzek, T.; Bruser, C.; Walter, M.; Leonhardt, S. Robust sensor fusion of unobtrusively measured heart rate. IEEE J. Biomed. Health Inf. 2014, 18, 654–660. [Google Scholar] [CrossRef] [PubMed]
  13. Serteyn, A.; Vullings, R.; Meftah, M.; Bergmans, J.W. Motion artifacts in capacitive ECG measurements: Reducing the combined effect of DC voltages and capacitance changes using an injection signal. IEEE Trans. Biomed. Eng. 2015, 62, 264–273. [Google Scholar] [CrossRef] [PubMed]
  14. Vallejo, D.T.; Falk, T. Adaptive spectro-temporal filtering for electrocardiogram signal enhancement. IEEE J. Biomed. Health Inf. 2016, 22, 421–428. [Google Scholar]
  15. Hesar, H.D.; Mohebbi, M. An Adaptive Particle Weighting Strategy for ECG Denoising Using Marginalized Particle Extended Kalman Filter: An Evaluation in Arrhythmia Contexts. IEEE J. Biomed. Health Inf. 2017, 21, 1581–1592. [Google Scholar] [CrossRef] [PubMed]
  16. Thakor, N.V.; Zhu, Y.S. Applications of adaptive filtering to ECG analysis: Noise cancellation and arrhythmia detection. IEEE Trans. Biomed. Eng. 1991, 38, 785–794. [Google Scholar] [CrossRef] [PubMed]
  17. Eilebrecht, B.; Wartzek, T.; Willkomm, J.; Schommartz, A.; Walter, M.; Leonhardt, S. Motion artifact removal from capacitive ECG measurements by means of adaptive filtering. In 5th European Conference of the International Federation for Medical and Biological Engineering; Springer: Berlin/Heidelberg, Germany, 2011; pp. 902–905. [Google Scholar]
  18. Zhang, Z.; Silva, I.; Wu, D.; Zheng, J.; Wu, H.; Wang, W. Adaptive motion artefact reduction in respiration and ECG signals for wearable healthcare monitoring systems. Med. Biol. Eng. Comput. 2014, 52, 1019–1030. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  19. Vega, L.R.; Rey, H.; Benesty, J. A robust variable step-size affine projection algorithm. Signal Proc. 2010, 90, 2806–2810. [Google Scholar] [CrossRef]
  20. Pan, J.; Tompkins, W.J. A real-time QRS detection algorithm. IEEE Trans. Biomed. Eng. 1985, 3, 230–236. [Google Scholar] [CrossRef] [PubMed]
  21. Andreotti, F.; Malberg, H.; Zaunseder, S. Non-Invasive Fetal ECG Signal Quality Assessment for Multichannel Heart Rate Estimation. IEEE Trans. Biomed. Eng. 2017, 64, 2793–2802. [Google Scholar] [CrossRef] [PubMed]
  22. Widrow, B.; Glover, J.R.; McCool, J.M.; Kaunitz, J.; Williams, C.S.; Hearn, R.H.; Zeidler, J.R.; Dong, J.E.; Goodlin, R.C. Adaptive noise cancelling: Principles and applications. Proc. IEEE 1975, 63, 1692–1716. [Google Scholar] [CrossRef]
  23. Alzahrani, A.; Hu, S.; Azorin-Peris, V.; Barrett, L.; Esliger, D.; Hayes, M.; Akbare, S.; Achart, J.; Kuoch, S. A multi-channel opto-electronic sensor to accurately monitor heart rate against motion artefact during exercise. Sensors 2015, 15, 25681–25702. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  24. Al-Kadi, M.I.; Reaz, M.B.I.; Ali, M.A.M. Evolution of electroencephalogram signal analysis techniques during anesthesia. Sensors 2013, 13, 6605–6635. [Google Scholar] [CrossRef] [PubMed]
  25. Shao, T.; Zheng, Y.R.; Benesty, J. An affine projection sign algorithm robust against impulsive interferences. IEEE Signal Process. Lett. 2010, 17, 327–330. [Google Scholar] [CrossRef]
  26. Vega, L.R.; Rey, H.; Benesty, J.; Tressens, S. A new robust variable step-size NLMS algorithm. IEEE Trans. Signal Process. 2008, 56, 1878–1893. [Google Scholar] [CrossRef]
  27. Wartzek, T.; Eilebrecht, B.; Lem, J.; Lindner, H.J.; Leonhardt, S.; Walter, M. ECG on the road: Robust and unobtrusive estimation of heart rate. IEEE Trans. Biomed. Eng. 2011, 58, 3112–3120. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The measurement system.
Figure 1. The measurement system.
Sensors 18 02086 g001
Figure 2. The block diagram of ANC.
Figure 2. The block diagram of ANC.
Sensors 18 02086 g002
Figure 3. Definition of QRS interval, S-Q interval, P ^ s , and P ^ n in the ECG.
Figure 3. Definition of QRS interval, S-Q interval, P ^ s , and P ^ n in the ECG.
Sensors 18 02086 g003
Figure 4. ECG filtered by the APA: (a) E C G m , (b) ECG filter by the ANC with reduced power at the QRS interval, (c) r R , s i g R , and s i g a R , and (d) the trajectory of the first-tap filter weight.
Figure 4. ECG filtered by the APA: (a) E C G m , (b) ECG filter by the ANC with reduced power at the QRS interval, (c) r R , s i g R , and s i g a R , and (d) the trajectory of the first-tap filter weight.
Sensors 18 02086 g004
Figure 5. Update quantity of the filter weight: (a) update quantity by APA and (b) update quantity by the proposed algorithm using RVSS APA.
Figure 5. Update quantity of the filter weight: (a) update quantity by APA and (b) update quantity by the proposed algorithm using RVSS APA.
Sensors 18 02086 g005
Figure 6. Comparison of E C G R V S S to E C G m , E C G A P A and E C G L_APA .
Figure 6. Comparison of E C G R V S S to E C G m , E C G A P A and E C G L_APA .
Sensors 18 02086 g006
Figure 7. ECGs with abnormal noise filtered by the APA: (a) E C G m with abnormal noise, (b) E C G A P A , and (c) E C G R V S S .
Figure 7. ECGs with abnormal noise filtered by the APA: (a) E C G m with abnormal noise, (b) E C G A P A , and (c) E C G R V S S .
Sensors 18 02086 g007
Table 1. S e , P + , and A v g in the indoor and outdoor experiments.
Table 1. S e , P + , and A v g in the indoor and outdoor experiments.
Data ECG m ECG APA ECG RVSS
Se P + Avg Se P + Avg d_Avg Se P + Avg d_Avg
Indoor180.5770.0075.28 87.4282.5084.969.68 86.2684.9785.6110.33
292.4287.8390.13 94.8492.6993.773.64 95.2595.3595.305.18
395.8395.9895.91 96.3897.1196.740.84 96.3497.3896.860.95
491.7494.0292.88 93.7793.4493.610.72 92.5894.4693.520.64
591.7682.6987.23 94.6489.9192.285.05 94.7994.7994.797.56
685.1082.2083.65 90.8189.0689.936.29 88.3289.6588.995.34
791.4886.9389.20 95.1690.5392.853.64 94.2094.2094.205.00
840.5538.4039.47 52.8448.3550.5911.12 49.4953.3851.4411.97
992.1169.6280.87 93.5578.6186.085.21 93.7388.3891.0510.19
1058.2154.8456.52 62.3856.5459.462.94 62.4861.2761.875.35
1152.1339.9646.05 54.0040.4247.211.16 63.9361.8662.8916.84
1265.7663.3464.55 72.2166.9469.585.03 68.1969.1268.654.10
1363.7749.2456.50 69.1952.6960.944.44 64.8258.1261.474.97
1490.1172.9381.52 95.6785.9190.799.27 96.3394.6395.4813.96
1583.8770.0576.96 84.4871.0377.750.79 84.4882.5983.546.58
1674.7463.5969.16 83.2176.3279.7710.60 83.1385.1084.1214.95
1773.3784.4078.88 82.6187.6185.116.23 82.1891.1886.687.80
1895.4490.9793.20 95.8793.9994.931.73 95.8396.7196.273.07
1981.3062.9272.11 92.7086.7789.7317.62 93.1394.0793.6021.49
Mean78.9671.5775.27 83.7777.9280.855.58 83.4583.5483.498.22
Outdoor182.3172.2077.26 84.7476.9980.863.61 86.1184.1885.157.89
290.1774.9982.58 90.0978.2084.141.56 90.8684.5687.715.13
386.6990.3888.53 87.1490.3088.720.18 86.4890.5588.52-0.02
480.0464.7972.42 86.2674.4780.377.95 87.3784.9286.1513.73
585.2470.7077.97 88.3577.7983.075.10 88.3087.4387.879.89
693.5289.9191.72 96.4792.9094.682.96 96.3495.6896.014.30
781.1379.9380.53 82.9483.1583.052.52 82.3584.7483.553.02
893.3584.3488.84 94.4489.3491.893.05 95.1894.0994.645.79
988.3279.1483.73 91.9987.3889.695.96 92.4992.7692.638.90
1080.0364.9772.50 80.5267.6274.071.57 79.4273.9876.704.20
Mean86.0877.1481.61 88.2981.8185.053.45 88.4987.2987.896.28
Table 2. A v g , d_Avg , and PIR in each section from the outdoor experiment.
Table 2. A v g , d_Avg , and PIR in each section from the outdoor experiment.
Section ECG m ECG APA ECG RVSS PIR
Avg Avg d_Avg Avg d_Avg
1–581.61 85.053.45 87.896.281.82
187.12 89.832.71 91.794.671.72
282.08 85.993.91 88.326.231.59
382.62 84.331.71 86.523.902.28
478.11 81.403.29 84.886.772.06
581.50 84.122.62 86.354.851.85
Table 3. SNR ^ comparisons from the indoor and outdoor experiment.
Table 3. SNR ^ comparisons from the indoor and outdoor experiment.
Data SNR ^
ECG m ECG APA ECG L_APA ECG RVSS
Indoor12.002.101.405.22
22.873.412.217.96
36.788.555.1819.67
45.916.954.2725.82
54.104.903.4111.25
62.583.933.1910.14
72.513.672.8810.39
81.470.900.440.69
92.831.230.741.56
107.419.406.5126.95
112.521.050.430.64
121.211.080.641.13
131.230.500.200.25
142.022.351.383.72
152.331.451.022.03
161.851.490.882.09
173.335.673.1417.01
182.863.572.5210.90
190.871.150.692.69
Mean2.983.332.168.43
Outdoor15.152.882.8112.58
23.594.682.417.88
36.4911.134.2529.91
42.090.810.520.62
52.562.791.965.86
64.046.853.3914.41
72.543.662.296.43
85.197.265.3820.61
93.645.693.4114.50
102.042.051.114.86
Mean3.734.782.7511.77

Share and Cite

MDPI and ACS Style

Seo, M.; Choi, M.; Lee, J.S.; Kim, S.W. Adaptive Noise Reduction Algorithm to Improve R Peak Detection in ECG Measured by Capacitive ECG Sensors. Sensors 2018, 18, 2086. https://doi.org/10.3390/s18072086

AMA Style

Seo M, Choi M, Lee JS, Kim SW. Adaptive Noise Reduction Algorithm to Improve R Peak Detection in ECG Measured by Capacitive ECG Sensors. Sensors. 2018; 18(7):2086. https://doi.org/10.3390/s18072086

Chicago/Turabian Style

Seo, Minseok, Minho Choi, Jun Seong Lee, and Sang Woo Kim. 2018. "Adaptive Noise Reduction Algorithm to Improve R Peak Detection in ECG Measured by Capacitive ECG Sensors" Sensors 18, no. 7: 2086. https://doi.org/10.3390/s18072086

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