Next Article in Journal
An Estimator for the Kinematic Behaviour of a Mobile Robot Subject to Large Lateral Slip
Previous Article in Journal
Numerical Study on the Route of Flame-Induced Thermoacoustic Instability in a Rijke Burner
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

ECG Signal Denoising and Reconstruction Based on Basis Pursuit

Shandong Computer Science Center (National Supercomputer Center in Jinan), Shandong Artificial Intelligence Institute, Qilu University of Technology (Shandong Academy of Sciences), Jinan 250014, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(4), 1591; https://doi.org/10.3390/app11041591
Submission received: 18 November 2020 / Revised: 5 February 2021 / Accepted: 5 February 2021 / Published: 10 February 2021

Abstract

:
The electrocardiogram (ECG) is widely used for the diagnosis of heart diseases. However, ECG signals are easily contaminated by different noises. This paper presents efficient denoising and compressed sensing (CS) schemes for ECG signals based on basis pursuit (BP). In the process of signal denoising and reconstruction, the low-pass filtering method and alternating direction method of multipliers (ADMM) optimization algorithm are used. This method introduces dual variables, adds a secondary penalty term, and reduces constraint conditions through alternate optimization to optimize the original variable and the dual variable at the same time. This algorithm is able to remove both baseline wander and Gaussian white noise. The effectiveness of the algorithm is validated through the records of the MIT-BIH arrhythmia database. The simulations show that the proposed ADMM-based method performs better in ECG denoising. Furthermore, this algorithm keeps the details of the ECG signal in reconstruction and achieves higher signal-to-noise ratio (SNR) and smaller mean square error (MSE).

1. Introduction

Noise removal is a fundamental problem in signal processing. Electrocardiography (ECG) is a vital biomedical tool for heart disease diagnosis. ECG is a noninvasive technique which is a safe, harmless, and quick method of cardiovascular diagnosis. The accuracy of the information extracted from a signal requires proper characterization of waveform morphologies and that they are not contaminated by noises [1,2,3]. However, ECG is a fairly weak electric signal, and its amplitude is usually in the millivolt level. ECG noises include interference by the instrument itself, baseline wander, human activities, and other factors in the signal. Baseline wander is the most common noise in ECG signals, which has greatest interference to its amplitude. It usually causes the signal to deviate from the normal baseline level, affecting the ST segment and small waves such as P wave and T wave, etc. The changes of these morphological waves can seriously interfere with disease diagnosis [4,5,6]. The main cause of baseline wander is the effect of breathing. Compared with ECG signals, baseline wander is a low-frequency noise, with a frequency of 0.05~2 Hz [7].
Several techniques have been reported in the literature to address ECG components contaminated with different noises. Some solutions have been proposed, such as adaptive filter architecture, wavelet transform, neural networks, and nonlinear filter banks. Several ECG compression techniques have been developed in recent years, most of which are based on lossy schemes for their higher compression ratio [8]. These techniques have also been used to extract a noise-free signal from noisy ECG.
Compressed sensing (CS) is a data sampling technology which has emerged in recent years. Its main idea is to reconstruct and restore the signal with less sampled data [9,10,11,12]. CS subverts the traditional signal sampling method. It uses the sparse representation of the signal to ensure the main structure of the original signal, and then uses the reconstruction algorithm to accurately reconstruct the original signal. Some papers about image denoising schemes have been proposed using the CS methods. Ref. [13] introduced a family of entropy-based sparsity measures in the performance of the BP denoising algorithm. This paper offered a new deconvolution-based method for estimating unknown sparsity, which was more applicable and reliable. In [14], a new approach was proposed for level-set formulations, including basis pursuit denoising and residual-constrained low-rank formulations. Ref. [15] presented a mathematical reasoning for improvement using the Kronecker-based recovery over standard CS recovery procedure. Compared with the standard Kronecker-based recovery technique, this technique resulted in improvement in the quality of recovered measurements.
This article adopts CS theory for signal denoising, restores the original ECG and completes the noise removal according to the advantages of basis pursuit (BP) [16,17]. BP is a method in the field of sparse signal reconstruction [18]. The classic BP algorithm denoises the signal containing Gaussian white noise, so as to achieve the purpose of signal reconstruction [19]. It has a better denoising effect on Gaussian white noise. The classical BP model cannot fully adapt to the impulse noises mentioned above, so it needs improving [20]. In [21], a distributed algorithm is proposed to solve the optimization problem by BP. It solved BP on a distributed platform such as sensor networks and aimed to minimize the communication between nodes. It sought to obtain the sparsest representation of the signal from the set of complete functions, that is, to accurately represent the original signal with as few bases as possible, so as to obtain the intrinsic characteristics of the signal. The BP method uses the norm of the representation coefficient as a measure of signal sparsity, and defines the signal sparsity representation problem as a kind of constrained extreme value problem by minimizing the L1 norm, and then transforms it into a linear programming problem for solution. In contrast, the BP method has been little considered for ECG denoising.
Alternating direction method of multipliers (ADMM) is a computational framework for solving separable convex optimization problems [22]. ADMM is a simple but powerful iterative regularization algorithm that can be regarded as an attempt to combine the advantages of augmented Lagrangian methods and dual decomposition for constraint optimization [23,24]. Some research studies in [25], Ref. [26] considered ADMM, which was well suited to the distributed computation model for optimizing a sum of convex objective functions corresponding to multiple agents. Ref. [27] used the ADMM to reconstruct piecewise-smooth distributed parameters of elliptical partial differential equations from noisy and linear observations of the underlying field. The distributed parameters are estimated by solving an inverse problem with total variation regularization. The following paper [28] built an ADMM algorithm model to solve the inverse problem of ECG. It adopted the method of neural network training. Ref. [29] has developed a learning scheme for signal denoising using ADMM in which a single shrinkage function is constrained to be antisymmetric, firmly non-expansive, and learning from data via a simple projected gradient descent to minimize reconstruction error. Chan [30] proposed the Plug-and-Play ADMM algorithm. The papers mentioned above mainly deal with image processing.
In this paper, the ECG signal denoising and reconstruction method is proposed according to the BP algorithm and ADMM optimization (BP-ADMM). ADMM is used to transform the multi-variable non-convex optimization problem into an optimization problem for sub-problems, which reduces the computational complexity and difficulties.
The major contributions of this paper are summarized as follows:
(1)
In view of the phenomenon of large errors in signal reconstruction, the compressed sensing BP signal reconstruction algorithm is adopted. We constructed the measurement matrix and established the basis pursuit denoising (BPDN) mode considering the characteristics of ECG signals.
(2)
This paper proposes the BP-ADMM algorithm, which overcomes the problems of low reconstruction accuracy. This method introduces dual variables, reduces constraint conditions, and achieves the purpose of optimizing the original variable and the dual variable at the same time through alternate optimization.
(3)
A low-pass filter matrix is constructed for baseline wander correction and denoising through a zero-phase filter. The results show that the issue of the peak underestimation of the ECG signal is effectively improved, and the performance of the algorithm is systematically proposed.
(4)
The rest of this paper is organized as follows. The related techniques and mathematical methods are presented in Section 2. Section 3 introduces the system model. Section 4 shows the algorithm set-up process as well as the ECG signal denoising and reconstruction process. A detailed description of the simulation results under various algorithms is provided in Section 5, and Section 6 is the conclusion.

2. Technical Background

2.1. Basis Pursuit

In the theory of CS, the number of observations is much smaller than the length of the signal, so the signal reconstruction is faced with the problem of solving underdetermined equations. In order to solve this problem, the BP algorithm is proposed. The BP algorithm is a new method in signal sparse representation and also a principle of global optimization [14]. The observation matrix has restricted isometric properties (RIP). Moreover, RIP also provides a theoretical guarantee for accurately recovering signals from observed values. The classical basis pursuit algorithm is based on the above principles to achieve the purpose of reconstruction and Gaussian white noise denoising. At present, the basis pursuit method has good applications in the field of one-dimensional signal processing [31,32,33]. In the case of noisy observations, the model is as follows:
y = M x + f + n
where x R n is an unknown vector, y R m is the measuring signal, the baseline wander f , and the Gaussian white noise n . M R m × n is the perceptual matrix, and the goal is to recover the unknown vector x from the noisy signal y .

2.2. Review of the ADMM Method

The ADMM method is an algorithm for constraint minimization. ADMM is a powerful technique in linearly constrained optimization problems for splitting a large problem into smaller ones. It has been widely used in many areas including machine learning, signal processing, and other fields [34,35,36,37]. It can be decomposed into several sub-vectors, that is, its objective function can also be decomposed into:
f ( x ) = i = 1 r f i x ,   x i n i ,   i = 1 r n i = n
with variable x , and where f are convex. Then the large-scale optimization problem can be transformed into the distributed optimization problem. Accordingly, the equality constraint matrix A x = b is also divided into:
A = A 1 , A 2 , , A r ,   A x = i = 1 r A i x i = b
where A r × n is the measurement matrix, and b r is the projection vector. Therefore, the augmented Lagrange objective function L ρ x , λ can be written as follows:
L ρ x , λ = i = 1 r f i x i + λ T A i x i λ T b + ρ 2 i = 1 r A i x i b
where ρ > 0 is the penalty parameter, λ > 0 is a regular term parameter, and L ρ is the standard Lagrangian for the problem. The penalty function obtained is still the same as that obtained in the augmented Lagrange multiplier method. Then, the dual ascending method is adopted to obtain a decentralized algorithm that can carry out parallel operations:
x i k + 1 = arg min L i x i , λ i ,   i = 1 , 2 , , r
λ k + 1 = λ k + ρ k i = 1 r A i x i k + 1 b
The x i can be updated independently, because x i updates are done in an alternating or sequential manner, and they are alternating direction multiplicators.

3. System Model

The ECG signal is a multi-segment sequential, periodic signal. The value of the signal generally appears as a signal close to zero, and its waveform is composed of abrupt peaks returning to the baseline. The ECG signal appears as a form of sparse waveform distribution, and the signal has a certain periodicity. When the ECG signal is calculated by the third-order difference, it can be obtained that most of the values in the difference signal have tended to or approximated to zero. Therefore, the ECG signal can be regarded as a sparse signal.
An ECG recording signal affected by noise and baseline wander after collection can be viewed as the following three parts: the original clean ECG signal x ; the baseline wander f , and the Gaussian white noise n . Therefore, a mixed signal of length N can be modeled as follows:
y = x + f + n
When the signal itself is sparse or close to sparse representation, signal processing can be performed by the sparse optimization correlation method. It is well known that the L norm [38] is a representative of convex sparsity. The problem of sparse signal recovery can be transformed into an optimization problem for the following objective function. Therefore, the problem of sparse noise reduction is attributed to the optimization of the norm of the problem of minimization under the condition of data fidelity.
min F ( x ) x X = 1 2 y M x p 2 + α x 1
where p denotes p norm, α is the regularization factor, M is the measurement matrix, and the row vectors are orthogonal to each other. According to the signal model, the non-convex optimization problem of sparse signal estimation is expressed as a basis tracking denoising problem model, in which regularization parameters and signal norm control errors and sparsity are introduced.

4. Denoising Methods

4.1. BP Denoising

BP denoising (BPDN) is now mainly applied to image processing denoising, signal recovery, and reconstruction [39]. It is a typical noise reduction method based on the sparse signal model. It is defined by the minimization of a convex cost function that contains a quadratic data truth term and a nondifferentiable convex penalty term, whose penalty term is a compound term of a linear operator and a L1 norm [40]. When the signal or its differential signal is sparse, the noise in the signal can be effectively suppressed, which can be regarded as a convex optimization problem with quadratic data fidelity.
The BPDN algorithm extracts a subset y from the columns of M , and its goal is to minimize the number of extracted columns or minimize the number of non-zero items in the vector x . The x is reconstructed from the noisy data y . The BPDN algorithm transforms Equation (8) into the following optimization problem:
min 1 2 y M x 2 2 + λ x 1
In the BPDN model, the signal can be regarded as a linear combination of multiple basis functions. Most of the basis function coefficients are zero, while only a few of them have non-zero coefficients. The basis function here is called the atom, and all the combinations of atoms are called dictionaries. When the number of atoms in the dictionary is greater than the signal dimension, the dictionary is overcomplete or redundant. Sparse representation is to find the optimal solution in the whole signal space by redundant dictionary according to the sparse metric standard. The typical sparse metric is L0. The commonly used measurement matrix is the Gaussian random matrix. It has been proved that the high probability of such a matrix satisfies the RIP property [41]. Therefore, when the Gaussian random matrix is used to observe the original signals, the original signals can be accurately recovered from the measured value with a very high probability through the reconstruction algorithm.
The measurement matrix plays an important role in CS and signal reconstruction. The reconstruction error is smaller if the performance of the measurement matrix is better [42]. The measurement matrix M makes the dimension of ECG signals reconstructed from L measured values such as Figure 1. The measurement matrix M can be established according to the length of ECG signals N and the number of measurements L. So M is a matrix of L × N . In this model, considering the periodic pulse characteristics of the ECG signal on the time series and the need for real-time performance, an analysis dictionary is selected and constructed using short-time Fourier transform (STFT) [43].
y = M x = M ψ s
where M ψ satisfies the RIP feature. That is, for any sparse signal x and constant ξ , ξ 0 , 1 , then 1 ξ M x 2 2 / x 2 2 1 + ξ . The initial observation matrix M is a full-rank matrix. The row vectors of the measurement matrix M meet the orthogonal characteristics, and the energy is equal. That is
k = 1 N M i , k M j , k = 0 ,   i j E ,   i = j
The M column vector of the measurement matrix is normalized, namely:
i = 1 L M i , k 2 = 1 .   k = 1 , 2 , ....... L
Figure 2 shows the BP signal reconstruction and BPDN denoising process. Figure 2a shows the original ECG signals. Figure 2b is the signal reconstruction through BP algorithm. It can be seen from Figure 2c that the measurement process amplifies the variance of the original noise component, which is the phenomenon of noise folding. This is mainly because the compression measurement process aliases the noise corresponding to the zero component of the sparse signal into the signal, making the noise multiplied. The power of the sparse signal remains basically unchanged after being compressed and measured, resulting in a sharp drop in the signal-to-noise ratio and affecting the performance of compressed sensing reconstruction. It can be seen from Figure 2d that the noise reduction effect of the BPDN algorithm is not ideal.

4.2. Low-Pass Filter MATRIX Construction

Digital filters are mainly divided into finite impulse response (FIR) filters and infinite impulse response (IIR) filters. For a FIR filter, the impulse response decays to zero in a finite time, and its output depends only on the current and past input signal values. Finite length unit impulse response filter, also known as non-recursive filter, is the most basic element in digital signal processing systems [44]. It can guarantee arbitrary amplitude-frequency characteristics while having strict linear phase-frequency characteristics. Meanwhile, its unit sampling response is finite length, so the filter is a stable system. Therefore, FIR filters are widely applied to communication, image processing, pattern recognition, and other fields.
Our goal is to extract a clean signal x from the noisy signal y . In order to achieve this, the common solution is to use a traditional linear low-pass filtering system. We use a zero-phase filter because it can reduce the noise in the signal while keeping the QRS waveform from shifting after noise reduction. The transfer function of the zero-phase filter is:
H Z = Y ( Z ) X ( Z ) = i = 0 N a i Z i 1 j = 1 N b j 1 Z j
The effect of a linear time invariant (LTI) system on the input signal is to change the complex amplitude of each frequency component in the signal. The nature of this effect can be understood in detail by using the modulus phase representation to look at this effect. Take the discrete time situation as an example:
Y e j w = H e j w X e j w
where H e j w is called the gain of the system. The effect of an LTI system on the input Fourier transform model is to multiply it by the modulus of the system frequency response. The phase shift of the system can change the relative phase relationship among the components in the input signal, so that even if the gain of the system is constant for all frequencies, it is possible to produce great changes in the time-domain characteristics of the input. The vectorized output after filtering the input noise-containing data y is: y = H x [45].

4.3. BP-ADMM Methods

In this section we formulate our problem and derive an efficient distributed optimization algorithm via ADMM. In the case of noise, according to Equations (7) and (9) of the paper, it can be concluded that:
x ˜ = arg min x | | x | | 1 ,       s . t . y M x 2 2 ε
where ε represents a very small normal number error. In addition, according to the Lagrange multiplier theorem, a constant λ can be introduced to make the above optimization problem with constraints become an unconstrained minimization problem. Firstly, we set up the objective function:
x ˜ = L ( x , λ ) = arg min x 1 2 y M x 2 2 + λ x 1
In order to apply the ADMM to the BP method, we first transform the ADMM formula to an equivalent constrained problem. Then according to y y = H x of Section 4.2, it can be described as the following formula:
min F ( x ) x X = 1 2 y M x 2 2 + λ H y 1
We introduce new variables z = A x . Then the ECG denoising and reconstruction problem can be transformed into an unconstrained form, and the corresponding augmented Lagrange function is:
L ρ x , y , z , λ = i = 1 r z + λ T ( M x y ) + ρ 2 M x y 2 2 + u T ( A x z ) + μ 2 A x z 2 2
where λ is a dual variable, and ρ is the penalty operator. Use the alternate direction multiplier of the ADMM algorithm to solve the problem. Therefore, the variables x and z are updated in sequence, and then the dual variables are updated. In the second step of ADMM, substituting the augmented Lagrange function in Equation (18) into the ADMM algorithm framework shown in Equation (15), the new ADMM algorithm process can be drawn as:
x ( k + 1 ) = arg min x λ T ( M x y ) + ρ 2 M x y 2 2 + v T ( A x z ) + μ 2 A x z 2 2
z ( k + 1 ) = arg min z z + λ T ( A x z ) + ρ 2 A x z 2 2
λ ( k + 1 ) = λ k + ρ ( M x k y k )
v ( k + 1 ) = v k + μ ( A x k z )
Let us define:
G k x = λ T ( M x y ) + ρ 2 M x y 2 2 + v T ( A x z ) + μ 2 A x z 2 2
Obviously, to derive G k x in Equation (18) with respect to x , the derivation process is as follows:
d G k x d x = M T λ + ρ M T M x y + A T v + μ A T A x z
Finally, we update the dual variables. Let Equation (24) be 0, and then we get:
x ( k + 1 ) = ρ M T M + μ A T A μ A T z k + ρ M T y k M T λ A T v
z ( k + 1 ) = arg min z z + λ T ( A x z ) + ρ 2 A x z 2 2
The multiplier term and the penalty term are completely squared, and after discarding some constant terms, the optimization sub-problem can be transformed into:
z ( k + 1 ) = arg min z z + ρ 2 A x z λ ρ 2 2
In addition, the soft threshold function, the soft threshold operator S is defined as
S s o f t ( x , T ) = x + T x T 0 x T x T x T
Its iterative process turns into a soft threshold for point-by-point operation:
z ( k + 1 ) = S 1 ρ A x + λ ρ
But different from the general iterative algorithm, the ADMM algorithm is a dual-condition stop threshold judgment on the stop criterion of iterative convergence, that is, both the original problem residual and the dual residual must reach the convergence threshold.
In the ADMM algorithm, the selection of parameters λ and ρ have a relatively important impact on the accuracy of the image reconstruction algorithm [46]. In the image solution process, it is necessary to select a more appropriate balance factor λ value to maintain the balance between the regular part and the fidelity part. It is also necessary to select a more appropriate penalty parameter ρ value to determine the convergence of the iterative reconstruction, and the current academic circle does not propose a clear selection method for these two parameters, being only based on the balance of the fidelity term and the regular term. The selection of parameters is estimated, and the optimal value is selected according to the experiment. Therefore, in order to improve the accuracy of the signal generated by the iterative reconstruction process, this section has conducted multiple experiments to study the influence of the values of the two parameters λ and ρ on the experimental results of the ADMM algorithm, and obtained relatively appropriate parameter values.

5. Denoising Experiments

5.1. ECG Database

The algorithm in this paper is mainly verified by the currently popular MIT-BIH ECG database. In order to better simulate the patient’s ECG signals in the real state, we artificially add noises of different amplitudes. The MIT-BIH noise stress test database provides three common ECG noise signals: baseline drift, power-line interference, and motion artifacts. The frequency range of the first baseline drift is between 0.02 Hz and 2 Hz. The first baseline drift as the noise source is more representative [47]. Superimposing different signal-to-noise ratio (SNR) Gaussian white noise on ECG signals simulates the ECG with noises in the real state. We add different SNR noises during the experiment.

5.2. Performance Analysis

The existing literature generally uses signal-to-noise ratio and mean square error to measure the quality of the noise reduction effect [48]. In order to effectively evaluate the noise reduction effect of the algorithm proposed in this article and compare it with the existing algorithm, this article uses the following defined evaluation indicators. The output signal-to-noise ratio is defined as follows:
S N R = 10 * log 10 ( i = 1 i = N [ x ( i ) 2 ] i = 1 i = N [ x ( i ) x ( i ) ] 2 )
The mean square error is defined as follows:
M S E = 1 N i = 1 i = N [ x ( i ) x ( i ) ] 2

5.3. Simulation Results

We evaluate the denoising performance of our method in this section. To perform a comprehensive study of the proposed method, we consider different numbers of ECG data. We also study the performance of the BP-ADMM algorithm according to SNR and MSE in order to demonstrate its ability.
The first group of ECG data in the MIT-BIH arrhythmia database is recorded in file No. 100. The data in this group of data contain little noise and abnormal heart beats. This group of ECG data is preprocessed to obtain the first length 3000 pure ECG signal x in Figure 3a, which is linearly superimposed with the first baseline wandering noise in the BW file to obtain a noisy ECG signal y in Figure 3c.
The blue line represents the noisy signal, and the solid red line represents the signal after filtering the baseline wander noise and Gaussian white noise in Figure 4. It can be seen from the figure that after the algorithm filtering in this paper, the ECG signal that initially deviated from the baseline level returns to the baseline level, and the Gaussian white noise is effectively removed, which proves that the BP-ADMM algorithm can effectively remove baseline wander noise and Gaussian white noise. Before denoising, due to the large amount of white noise and baseline drift in the initial signal, the waveform diagram basically does not show the original characteristics of the ECG signal. However, after processing by the proposed algorithm, the waveform characteristics of pulse signals can be easily seen.
In order to further verify the effect of denoising, the values of the SNR before and after denoising of the pulse signal are calculated, respectively. The calculation results are shown in Table 1.
Table 1 is a comparison of SNR and MSE after filtering with wavelet, mean, and total variation (TV) noise reduction algorithms. In Table 1, the wavelet transform and the mean value method are not very effective in filtering Gaussian white noise, but the TV transform shows a good denoising effect. Even so, the denoising effect of the algorithm proposed in this article is still better than the three denoising algorithms mentioned above. The data in Table 1 show that the signal-to-noise ratio after denoising has been significantly improved compared to the ratio before denoising. The larger the value of the signal-to-noise ratio, the better the denoising effect, which indicates that the algorithm in this paper can effectively suppress a variety of noises and achieve a good denoising effect. We calculate the mean SNR of the above 28 pieces of ECG data shown in Table 2. Among them, the mean SNR of BP-ADMM is 7.129 which is the biggest among the four methods. This experiment is performed under the noise data input 5 dB.
In order to verify the effectiveness of the noise reduction algorithm proposed in this paper, we compare it with TV, wavelet, and mean filtering methods with different SNR noises. Figure 5 and Figure 6 show the results. It can be seen from Figure 6 and Figure 7 that the algorithm proposed in this paper performs better in preserving the detailed features of ECG signals after noise reduction. The guidance signal constructed by this method can contain most of the morphological characteristics of the original ECG signals. However, the algorithm proposed in this paper can filter the electrode interference noises very well while retaining the original morphological characteristics of the P wave and T wave. However, the reconstructed ECG signals offset the original signals and many stair-case artifacts, which cannot retain the detailed features from the other filtering methods. The noise reduction differences among these algorithms are shown in Figure 7.

6. Conclusions

In order to better remove baseline wander interference and Gaussian white noise, a BP-ADMM algorithm is proposed for ECG denoising and reconstruction through combining low-pass filtering and CS recovery. The BP-ADMM algorithm is studied on the basis of the traditional BP algorithm, which reconstructs the ECG signals with denoising. The method introduces dual variables, adds a secondary penalty term, and reduces constraint conditions through alternate optimization to optimize the original variables and the dual variables at the same time. The dual decomposition method improves the calculation speed by decomposing the objective function in parallel. The effectiveness of the algorithm is verified by the records from the MIT-BIH arrhythmia database. The experiments show that this denoising method can effectively remove baseline wander interference and random Gaussian white noise in ECG signals. The proposed framework outperforms the wavelet and average algorithms in SNR and MSE. The waveform of ECG signals is much smoother and more details are preserved.

Author Contributions

Conceptualization, R.L. and M.S.; methodology, R.L.; validation, R.L., C.C.; formal analysis, M.S. and R.L.; investigation, R.L.; resources, M.S. and C.C.; writing—original draft preparation, R.L.; writing—review and editing, C.C. and M.S.; supervision, M.S. and R.L.; project administration, M.S.; funding acquisition, M.S. and C.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Taishan Scholars Program: Distinguished Taishan Scholars in Climbing Plan (NO. tspd20181211), Young Taishan Scholars (NO. tsqn201909137).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Roonizi, E.K.; Sassi, R. A Signal Decomposition Model-Based Bayesian Framework for ECG Components Separation. IEEE Trans. Signal Process. 2016, 64, 665–674. [Google Scholar] [CrossRef]
  2. Chiang, H.T.; Hsieh, Y.Y.; Fu, S.W.; Hung, K.H.; Tsao, Y.; Chien, S.Y. Noise Reduction in ECG Signals Using Fully Convolutional Denoising Autoencoders. IEEE Access 2019, 7, 60806–60813. [Google Scholar] [CrossRef]
  3. Xiong, P.; Wang, H.; Liu, M.; Zhou, S.; Hou, Z.; Liu, X. ECG signal enhancement based on improved denoising auto-encoder. Eng. Appl. Artif. Intell. 2016, 52, 194–202. [Google Scholar] [CrossRef]
  4. Chandrakar, C.; Kowar, M.K. Denoising ECG signals using adaptive filter algorithm. Int. J. Soft Comput. Eng. 2012, 2, 120–123. [Google Scholar]
  5. Oster, J.; Behar, J.; Sayadi, O.; Nemati, S.; Johnson, A.E.; Clifford, G.D. Semi-supervised ECG ventricular beat classification with novelty detection based on switching Kalman filters. IEEE Trans. Biomed. Eng. 2015, 62, 2125–2134. [Google Scholar] [CrossRef] [PubMed]
  6. Rahman, M.Z.U.; Shaik, R.A.; Reddy, D.V.R.K. Efficient and simplified adaptive noise cancelers for ECG sensor based remote health monitoring. IEEE Sens. J. 2012, 12, 566–573. [Google Scholar] [CrossRef]
  7. Liu, S.; Li, Y.; Hu, X.; Liu, L.; Hao, D. A novel thresholding method in removing noises of electrocardiogram based on wavelet transform. J. Inf. Comput. Sci. 2013, 10, 5031–5041. [Google Scholar] [CrossRef] [Green Version]
  8. Rakshit, M.; Das, S. An efficient ECG denoising methodology using empirical mode decomposition and adaptive switching mean filter. Biomed. Signal Proc. Control 2018, 40, 140–148. [Google Scholar] [CrossRef]
  9. Von Gladiss, A.; Ahlborg, M.; Knopp, T.; Buzug, T.M. Compressed Sensing of the System Matrix and Sparse Reconstruction of the Particle Concentration in Magnetic Particle Imaging. IEEE Trans. Magn. 2015, 51, 1–4. [Google Scholar] [CrossRef]
  10. Lustig, M.; Donoho, D.; Pauly, J.M. Sparse MRI: The application of compressed sensing for rapid MR imaging. Magn. Reason. Med. 2007, 58, 1182–1195. [Google Scholar] [CrossRef] [PubMed]
  11. Candès, E.; Romberg, J.; Tao, T. Robust uncertainty principles: Exact signal reconstruction from highly incomplete frequency information. IEEE Trans. Inf. Theory 2006, 52, 489–509. [Google Scholar] [CrossRef] [Green Version]
  12. Donoho, D. Compressed sensing. IEEE Trans. Inf. Theory 2006, 52, 1289–1306. [Google Scholar] [CrossRef]
  13. Lopes, M.E. Unknown Sparsity in Compressed Sensing: Denoising and Inference. IEEE Trans. Inf. Theory 2016, 62, 5145–5166. [Google Scholar] [CrossRef] [Green Version]
  14. Baraldi, R.; Kumar, R.; Aravkin, A. Basis Pursuit Denoise with Nonsmooth Constraints. IEEE Trans. Signal Process. 2019, 67, 5811–5823. [Google Scholar] [CrossRef] [Green Version]
  15. Mitra, D.; Zand, H.; Rajan, S. Investigation of Kronecker-based Recovery of Compressed ECG Signal. IEEE Trans. Instrum. Meas. 2020, 69, 3642–3653. [Google Scholar] [CrossRef]
  16. Christian, K.; Wolfgang, E.; Mandy, A.; Patryk, S.; Tobias, K.; Buzug, T.M. Non-Equispaced System Matrix Acquisition for Magnetic Particle Imaging Based on Lissajous Node Points. IEEE Trans. Med. Imaging 2016, 35, 2476–2485. [Google Scholar]
  17. Zayyani, H.; Korki, M.; Marvasti, F. Dictionary Learning for Blind One Bit Compressed Sensing. IEEE Signal Process. Lett. 2015, 23. [Google Scholar] [CrossRef] [Green Version]
  18. Van den Berg, E.; Friedlander, M.P. Probing the pareto frontier for basis pursuit solutions. SIAM J. Sci. Comput. 2008, 31, 890–912. [Google Scholar] [CrossRef] [Green Version]
  19. Chen, S.S.; Donoho, D.L.; Saunders, M.A. Atomic decomposition by basis pursuit. SIAM Rev. 2001, 43, 129–159. [Google Scholar] [CrossRef] [Green Version]
  20. Lorenz, D.A. Constructing Test Instances for Basis Pursuit Denoising. IEEE Trans. Signal Process. 2012, 61, 1210–1214. [Google Scholar] [CrossRef] [Green Version]
  21. Mota, J.F.C.; Xavier, J.M.F.; Aguiar, P.M.Q.; Puschel, M. Distributed Basis Pursuit. IEEE Trans. Signal Process. 2012, 60, 1942–1956. [Google Scholar] [CrossRef]
  22. Wang, Y.; Yin, W.; Zeng, J. Global convergence of ADMM in nonconvex nonsmooth optimization. J. Sci. Comput. 2019, 78, 29–63. [Google Scholar] [CrossRef] [Green Version]
  23. Zhang, X.; Khalili, M.M.; Liu, M. Recycled ADMM: Improve privacy and accuracy with less computation in distributed algorithms. In Proceedings of the 2018 56th Annual Allerton Conference on Communication, Control, and Computing (Allerton), Monticello, IL, USA, 2–5 October 2018; pp. 959–965. [Google Scholar]
  24. Liu, Q.; Shen, X.; Gu, Y. Linearized ADMM for Nonconvex Nonsmooth Optimization with Convergence Analysis. IEEE Access 2019, 7, 76131–76144. [Google Scholar] [CrossRef]
  25. Nedic, A.; Ozdaglar, A. Distributed subgradient methods for multiagent optimization. IEEE Trans. Autom. Control 2009, 54, 48–61. [Google Scholar] [CrossRef]
  26. Shi, W.; Ling, Q.; Yuan, K.; Wu, G.; Yin, W. On the linear convergence of the ADMM in decentralized consensus optimization. IEEE Trans. Signal Process. 2014, 62, 1750–1761. [Google Scholar] [CrossRef] [Green Version]
  27. Bras, N.B. An Alternating Direction Algorithm for Total Variation Reconstruction of Distributed Parameters. IEEE Trans. Image Process. 2012, 21, 3004–3016. [Google Scholar] [CrossRef]
  28. Wang, L.; Wu, W.; Chen, Y.; Liu, C. An ADMM-net solution to inverse problem of electrocardiology. In Proceedings of the 2018 5th International Conference on Systems and Informatics (ICSAI), Nanjing, China, 10–12 November 2018. [Google Scholar]
  29. Nguyen, H.Q.; Bostan, E.; Unser, M. Learning Convex Regularizers for Optimal Bayesian Denoising. IEEE Trans. Signal Process. 2018, 66, 1093–1105. [Google Scholar] [CrossRef] [Green Version]
  30. Chan, S.H. Performance Analysis of Plug-and-Play ADMM: A Graph Signal Processing Perspective. IEEE Trans. Comput. Imaging 2018, 5, 274–286. [Google Scholar] [CrossRef] [Green Version]
  31. Aviyente, S. Compressed sensing framework for eeg compression. In Proceedings of the 14th IEEE Workshop on SSP, Madison, WI, USA, 26–29 August 2007; pp. 181–184. [Google Scholar]
  32. Van den Berg, E.; Friedlander, M.P. Sparse optimization with least- squares constraints. SIAM J. Optim. 2011, 21, 1201–1229. [Google Scholar] [CrossRef] [Green Version]
  33. Selesnick, W.; Chen, P.-Y. Group-sparse signal denoising: Non-convex regularization, convex optimization. IEEE Trans. Signal Process. 2014, 62, 3464–3478. [Google Scholar]
  34. Yang, J.; Zhang, Y. Alternating direction algorithms for L1-problems in compressive sensing. SIAM J. Sci. Comput. 2011, 33, 250–278. [Google Scholar] [CrossRef]
  35. Shen, C.; Chang, T.H.; Wang, K.Y.; Qiu, Z.; Chi, C.Y. Distributed robust multi-cell coordinated beamforming with imperfect CSI: An ADMM approach. IEEE Trans. Signal Process. 2011, 60, 2988–3003. [Google Scholar] [CrossRef] [Green Version]
  36. Almeida, M.S.; Figueiredo, M. Deconvolving images with unknown boundaries using the alternating direction method of multipliers. IEEE Trans. Image Process. 2013, 22, 3074–3086. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  37. Liavas, A.P.; Sidiropoulos, N.D. Parallel algorithms for constrained tensor factorization via alternating direction method of multipliers. IEEE Trans. Signal Process. 2014, 63, 5450–5463. [Google Scholar] [CrossRef] [Green Version]
  38. Zhong, F.; Zhang, J.; Li, D. Discriminant Locality Preserving Projections Based on L1-Norm Maximization. IEEE Trans. Neural Netw. Learn. Syst. 2017, 25, 2065–2074. [Google Scholar] [CrossRef] [PubMed]
  39. Zhang, Z.; Jung, T.P.; Makeig, S.; Rao, B.D. Compressed sensing for energy-efficient wireless telemonitoring of noninvasive fetal ECG via block sparse Bayesian learning. IEEE Trans Biomed Eng. 2012, 60, 300–309. [Google Scholar] [CrossRef] [Green Version]
  40. Wang, D.; Li, L.; Ji, Y.; Yan, Y. Model recovery for Hammerstein systems using the auxiliary model based orthogonal matching pursuit method. Appl. Math. Model. 2018, 54, 537–550. [Google Scholar] [CrossRef]
  41. Toth, R.; Sanandaji, B.M.; Poolla, K.; Vincent, T.L. Compressive system identification in the linear time-invariant framework. In Proceedings of the IEEE Conference on Decision and Control and European Control Conference, Orlando, FL, USA, 12–15 December 2011; pp. 783–790. [Google Scholar]
  42. You, J.; Liu, Y. Iterative identification for multivariable systems with time-delays based on basis pursuit de-noising and auxiliary model. Algorithms 2018, 11, 180. [Google Scholar] [CrossRef] [Green Version]
  43. Marcos, R.J.; Paredes, J.L. Robust transforms based on the weighted median operator. IEEE Signal Process. Lett. 2014, 22, 120–124. [Google Scholar]
  44. Shmaliy, Y.S. An unbiased FIR filter for TIE model of a local clock in applications to GPS-based timekeeping. IEEE Trans. Ultrason. Ferroelectr. Freq. Control 2006, 53, 862–869. [Google Scholar] [CrossRef] [PubMed]
  45. Jin, Z.; Dong, A.; Shu, M.; Wang, Y. Sparse ECG Denoising with Generalized Minimax Concave Penalty. Sensors 2019, 19, 1718. [Google Scholar] [CrossRef] [Green Version]
  46. Feng, C.; Xu, H.; Li, B. An alternating direction method approach to cloud traffic management. IEEE Trans. Parallel Distrib. Syst. 2017, 28, 2145–2158. [Google Scholar] [CrossRef] [Green Version]
  47. Moody, W.E.M.G.B.; Mark, R.G. A noise stress test for arrhythmia detectors. Comput. Cardiol. 1984, 11, 381–384. [Google Scholar]
  48. Zhan, C.; Yeung, L.F.; Yang, Z. A wavelet-based adaptive filter for removing ECG interference in EMGdi signals. J. Electromyogr. Kinesiol. 2010, 20, 542–549. [Google Scholar] [CrossRef]
Figure 1. Measurement matrix construction.
Figure 1. Measurement matrix construction.
Applsci 11 01591 g001
Figure 2. Basis pursuit denoising (BPDN) reconstruction of the noise reduction process. (a) Original ECG signal, (b) basis pursuit (BP) reconstruction, (c) reconstruction error, (d) BPDN effect.
Figure 2. Basis pursuit denoising (BPDN) reconstruction of the noise reduction process. (a) Original ECG signal, (b) basis pursuit (BP) reconstruction, (c) reconstruction error, (d) BPDN effect.
Applsci 11 01591 g002
Figure 3. Mixed ECG signal.
Figure 3. Mixed ECG signal.
Applsci 11 01591 g003
Figure 4. MIT-BIH no.105 denoising and reconstruction.
Figure 4. MIT-BIH no.105 denoising and reconstruction.
Applsci 11 01591 g004
Figure 5. ECG signal added noise with SNR = 10 dB.
Figure 5. ECG signal added noise with SNR = 10 dB.
Applsci 11 01591 g005
Figure 6. ECG signal added noise with SNR = 20 dB.
Figure 6. ECG signal added noise with SNR = 20 dB.
Applsci 11 01591 g006
Figure 7. Denoising and reconstruction details.
Figure 7. Denoising and reconstruction details.
Applsci 11 01591 g007
Table 1. (Signal-to-noise ratio) SNR and mean square error (MSE) comparison results.
Table 1. (Signal-to-noise ratio) SNR and mean square error (MSE) comparison results.
MIT-BIH No. 100103213
BP-ADMM5 dBSNR14.7114.8613.92
MSE0.0030.0040.024
15 dBSNR15.1316.0214.37
MSE0.0020.0020.003
Wavelet5 dBSNR5.31244.857.49
MSE0.02480.0860.127
15 dBSNR9.78635.148.22
MSE0.10020.0820.107
Average5 dBSNR2.33972.38373.0389
MSE0.50930.51771.1896
15 dBSNR3.29103.30113.4347
MSE0.26670.30710.9611
TV5 dBSNR4.63384.85809.2792
MSE0.30250.30640.2838
15 dBSNR10.710111.270212.7509
MSE0.04810.04830.0706
Table 2. SNR comparison results.
Table 2. SNR comparison results.
WaveletAverageTVBP-ADMM
mitdb/1055.4762.42944.91726.3297
mitdb/1065.56712.4335.41155.8936
mitdb/10711.34463.211811.660311.6715
mitdb/1084.44462.26654.24734.8901
mitdb/1097.7982.86777.66688.1662
mitdb/1113.01881.83482.76793.6756
mitdb/11211.71583.225611.43212.0141
mitdb/1136.6472.73426.44696.7013
mitdb/1142.90791.7392.51183.5163
mitdb/1157.7852.85547.55187.9067
mitdb/11613.23533.324113.073313.6521
mitdb/11711.26843.191110.621811.8165
mitdb/11812.15043.271311.800113.1671
mitdb/11912.40433.269411.845212.9172
mitdb/2006.31962.61596.00436.7027
mitdb/2013.64531.93713.28854.0273
mitdb/2022.95981.74622.42863.7509
mitdb/2036.09592.64275.87476.9253
mitdb/2055.87392.47315.3226.0851
mitdb/2075.05512.4054.84585.6361
mitdb/2087.41632.8217.49438.1552
mitdb/2093.62061.94733.29824.7622
mitdb/2103.51072.00533.22454.1386
mitdb/2124.7532.28694.59835.126
mitdb/2313.99132.08723.66024.5625
mitdb/2323.02071.78412.29333.6549
mitdb/2338.78042.98488.59759.2172
mitdb/2344.01292.12813.62014.5516
Mean SNR6.60062.51856.30377.129
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Liu, R.; Shu, M.; Chen, C. ECG Signal Denoising and Reconstruction Based on Basis Pursuit. Appl. Sci. 2021, 11, 1591. https://doi.org/10.3390/app11041591

AMA Style

Liu R, Shu M, Chen C. ECG Signal Denoising and Reconstruction Based on Basis Pursuit. Applied Sciences. 2021; 11(4):1591. https://doi.org/10.3390/app11041591

Chicago/Turabian Style

Liu, Ruixia, Minglei Shu, and Changfang Chen. 2021. "ECG Signal Denoising and Reconstruction Based on Basis Pursuit" Applied Sciences 11, no. 4: 1591. https://doi.org/10.3390/app11041591

APA Style

Liu, R., Shu, M., & Chen, C. (2021). ECG Signal Denoising and Reconstruction Based on Basis Pursuit. Applied Sciences, 11(4), 1591. https://doi.org/10.3390/app11041591

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