CN113598785B - Electrocardiosignal denoising method based on wavelet domain sparse characteristic - Google Patents
Electrocardiosignal denoising method based on wavelet domain sparse characteristic Download PDFInfo
- Publication number
- CN113598785B CN113598785B CN202111017585.4A CN202111017585A CN113598785B CN 113598785 B CN113598785 B CN 113598785B CN 202111017585 A CN202111017585 A CN 202111017585A CN 113598785 B CN113598785 B CN 113598785B
- Authority
- CN
- China
- Prior art keywords
- electrocardiosignal
- iteration
- formula
- wavelet
- optimal solution
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/346—Analysis of electrocardiograms
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
- A61B5/7253—Details of waveform analysis characterised by using transforms
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Molecular Biology (AREA)
- Animal Behavior & Ethology (AREA)
- Pathology (AREA)
- Physics & Mathematics (AREA)
- Biomedical Technology (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Veterinary Medicine (AREA)
- Surgery (AREA)
- Biophysics (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Cardiology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physiology (AREA)
- Psychiatry (AREA)
- Signal Processing (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
An electrocardiosignal denoising method based on wavelet domain sparse characteristics carries out optimization calculation on electrocardiosignal wavelet coefficients, realizes accurate and efficient denoising, and can better keep the waveform characteristics of original electrocardiosignals. The obtained threshold function is continuous, and noise spikes and pseudo Gibbs oscillations which occur at discontinuous points in the traditional wavelet threshold denoising method can be avoided. The sparse characteristic of the electrocardiosignals in the wavelet domain is fully utilized, and a sparse solution can be obtained by selecting a non-convex sparse penalty function. By selecting proper regularization parameters, strict convexity of the objective function is guaranteed, a unique solution of a denoising problem can be obtained by a convex optimization method, and the optimization algorithm is high in calculation efficiency and high in convergence speed.
Description
Technical Field
The invention relates to the technical field of electrocardiosignal denoising, in particular to an electrocardiosignal denoising method based on wavelet domain sparse characteristics.
Background
Electrocardiogram (ECG) is the most commonly used tool for diagnosing human cardiac function, and it is the recording of the electrical activity of the heart that occurs during the cardiac cycle. The characteristic waveforms of a cardiac cycle of an electrocardiogram include the P-wave, QRS-wave and T-wave, these components contain important clinical information, and any changes in waveform pattern are characteristic of cardiac arrhythmias, e.g., the interval time of the QRS-wave provides information on heart rate variability, and other features extracted from the electrocardiographic signal can help identify various heart diseases. However, during the acquisition of the cardiac electrical signal, the signal is very susceptible to various noises, such as power frequency interference, baseline drift, electromyographic interference, motion artifacts, and the like, and most of the noises are in the frequency band of 0.05-100 Hz. These noise interferences make it difficult for a physician to extract valuable cardiac status information. Therefore, the effective analysis of the electrocardiosignals has important significance for preventing and diagnosing cardiovascular diseases, and the denoising is also an important component of an automatic electrocardiogram analysis system.
The electrocardiosignal not only has the sparse characteristic, but also the signal after wavelet transformation is still sparse, namely the electrocardiosignal also has the sparse characteristic in the wavelet domain. The denoising method of the electrocardiosignal comprises a filter bank, principal component analysis, Empirical Mode Decomposition (EMD), wavelet transformation, a denoising method based on sparse decomposition and the like. The traditional method for removing noise by filtering is based on time domain or frequency domain filtering, has a good effect of inhibiting noise outside a signal frequency range, but cannot well track the time-varying form of a signal. Denoising by using an empirical mode decomposition method usually discards some initial natural modes containing noise, thereby causing distortion of the reconstructed electrocardiosignal, especially distortion of a QRS waveform. The wavelet transformation method limits the electrocardiosignals to a specific frequency band through wavelet transformation, noise components with smaller amplitude are dispersed in different frequency bands, denoising of the electrocardiosignals is realized by setting a wavelet threshold, and a proper threshold is selected according to the signal-to-noise ratio of the signals, so that the noise can be effectively inhibited, and the effective components of the signals are not influenced or minimally influenced. However, the wavelet thresholding method is prone to introduce new noise, such as spurious noise peaks and pseudo gibbs' oscillations, while removing noise, due to the fact that the wavelet coefficients containing the noise exceed a set threshold or the non-zero wavelet coefficients are set to zero.
Disclosure of Invention
In order to overcome the defects of the technology, the invention provides a method for optimizing and estimating all wavelet coefficients by selecting a non-convex sparse penalty function, so as to achieve an accurate and efficient electrocardiosignal denoising effect.
The technical scheme adopted by the invention for overcoming the technical problems is as follows:
an electrocardiosignal denoising method based on wavelet domain sparse characteristics comprises the following steps:
a) establishing a mathematical model of the electrocardiosignal such as y (l) ═ x (l) + N (l) · l ═ 1,2N,RNIs a real number space of N dimensions, x is a clean electrocardiosignal, and x belongs to RNN is white Gaussian noise, n belongs to RNPerforming wavelet transformation on the electrocardiosignal x, wherein the wavelet coefficient of the electrocardiosignal x is s, s is Wx, W is a wavelet transformation matrix, and W satisfies WTW ═ γ I, I is the identity matrix, T is the matrix transpose, γ is a constant, γ > 0, sj,kIs the element of s, j is the wavelet scale, k is time;
b) establishing a convex optimization problem for the variable s, by formulaCalculating to obtain the optimal solution s of the convex optimization problem*In the formula | · | non-conducting phosphor2Is L2 norm, | · | | non-woven1L1 norm, F(s) is a non-convex cost function, arg represents a variable corresponding to the minimum value of F(s), D is a first order differential matrix, and D is equal to R(N-1)×N,λj、ajA is a constant, λj>0、aj>0、α>0,For a scaled very small maximum concave penalty function,
c) based on an alternating direction multiplier method, making s ═ v, and v as an auxiliary variable, and obtaining a convex optimization problem about the variables s and v;
d) by the formulaIteratively solving the minimization problem to obtain the optimal solution s of the ith step(i)Where w is (Wy + ρ (v-d))/(1+ ρ), ρ is a constant, ρ > 0, d is an optimization variable, and w is an integerj,kIs an element of w by the formulaCalculating to obtain the optimal solution of the (i + 1) th iterationSign (. cndot.) in the formulaThe function of the number of the signals,is w(i)Element of (a), w(i)Is the value of the ith iteration of w, w(i)=(Wy+ρ(v(i)-d(i)))/(1+ρ),v(i)Is the value of v step i iteration, d(i)D is the value of the ith iteration;
e) by the formulaIteratively solving the minimization problem to obtain the optimal solution v of the ith step(i)Let u be d + s to obtainSelecting a non-linear functionAccording to the semi-orthogonal linear transformation property of the adjacent operator, obtainingIn the formulaz is an auxiliary variable, h (z, u) is a function of the variable z, u, the maximum function of h (z, u) is selected as G (z, u),zifor the value of z step i iteration, ΛiIs a matrix of the order of N,is ΛiThe inverse of the matrix of (a) is,g (z, u) satisfies the condition that G (z, u) ≧ h (z, u), G (z)i,u)=h(ziU) thenObtained according to the inverse theorem of the matrixBy the formulaCalculating to obtain the optimal solution v of the (i + 1) th iteration(i +1),u(i+1)=d(i)+s(i+1),d(i)Is the value of the i-th iteration, s(i+1)The value of the iteration of the (i + 1) th step is obtained;
f) by the formula d(i+1)=d(i)-(v(i+1)-s(i+1)) Calculating to obtain the optimal solution d of the (i + 1) th iteration(i+1);
g) Given constant c0> 0, if a convergence condition is satisfiedExecuting step h), if the convergence condition is not met, repeatedly executing steps d) to f) until the convergence condition is met;
h) by the formula x ═ γ-1WTAnd s, calculating to obtain a clean electrocardiosignal x, and denoising the electrocardiosignal x. Further, in step c), the formula is usedEstablishing an optimization problem, s*Is the optimal solution of s, v*Is an optimal solution of v, wherein
The invention has the beneficial effects that: by optimizing and calculating wavelet coefficients of the electrocardiosignal, accurate and efficient denoising is realized, and meanwhile, the waveform characteristics of the original electrocardiosignal can be better reserved. The obtained threshold function is continuous, and noise spikes and pseudo Gibbs oscillations which occur at discontinuous points in the traditional wavelet threshold denoising method can be avoided. The sparse characteristic of the electrocardiosignals in the wavelet domain is fully utilized, and a sparse solution can be obtained by selecting a non-convex sparse penalty function. By selecting proper regularization parameters, strict convexity of the objective function is guaranteed, a unique solution of a denoising problem can be obtained by a convex optimization method, and the optimization algorithm is high in calculation efficiency and high in convergence speed.
Detailed Description
The present invention is further explained below.
An electrocardiosignal denoising method based on wavelet domain sparse characteristics comprises the following steps:
a) establishing a mathematical model of the electrocardiosignal such as y (l) ═ x (l) + N (l) · l ═ 1,2N,RNIs a real number space of N dimensions, x is a clean electrocardiosignal, and x belongs to RNN is white Gaussian noise, n belongs to RNPerforming wavelet transformation on the electrocardiosignal x, wherein the wavelet coefficient of the electrocardiosignal x is s, s is Wx, W is a wavelet transformation matrix, and W satisfies WTW ═ γ I, I is the identity matrix, T is the matrix transpose, γ is a constant, γ > 0, sj,kIs the element of s, j is the wavelet scale, k is time;
b) establishing a convex optimization problem for the variable s, by formulaCalculating to obtain the optimal solution s of the convex optimization problem*In the formula | · | non-conducting phosphor2Is L2 norm, | · | | non-woven1L1 norm, F(s) is a non-convex cost function, arg represents a variable corresponding to the minimum value of F(s), D is a first order differential matrix, and D is equal to R(N-1)×N,λj、ajA is a constant, λj>0、aj>0、α>0,Is a scaled minimax-concave penalty function,
c) based on an alternating direction multiplier method, making s ═ v, and v as an auxiliary variable, and obtaining a convex optimization problem about the variables s and v;
d) by the formulaIteratively solving the minimization problem to obtain the optimal solution s of the ith step(i)Where w is (Wy + ρ (v-d))/(1+ ρ), ρ is a constant, ρ > 0, d is an optimization variable, and w is an integerj,kIs an element of w by the formulaCalculating to obtain the optimal solution of the (i + 1) th iterationWherein sign (. cndot.) is a sign function,is w(i)Element of (a), w(i)Is the value of the ith iteration of w, w(i)=(Wy+ρ(v(i)-d(i)))/(1+ρ),v(i)Is the value of v step i iteration, d(i)D is the value of the ith iteration;
e) by the formulaIteratively solving the minimization problem to obtain the optimal solution v of the ith step(i)Let u be d + s to obtainSelecting a non-linear functionAccording to the semi-orthogonal linear transformation property of a Proximity Operator (Proximity Operator), obtainingIn the form ofInz is an auxiliary variable, h (z, u) is a function of the variable z, u, the maximum function of h (z, u) is selected as G (z, u),zifor the value of z step i iteration, ΛiIs a matrix of the order of N,is ΛiThe inverse of the matrix of (a) is,g (z, u) satisfies the condition that G (z, u) ≧ h (z, u), G (z)i,u)=h(ziU) thenObtained according to the inverse theorem of the matrixBy the formulaCalculating to obtain the optimal solution v of the (i + 1) th iteration(i +1),u(i+1)=d(i)+s(i+1),d(i)Is the value of the i-th iteration, s(i+1)The value of the iteration of the (i + 1) th step is obtained;
f) by the formula d(i+1)=d(i)-(v(i+1)-s(i+1)) Calculating to obtain the optimal solution d of the (i + 1) th iteration(i+1);
g) Given constant c0> 0, if a convergence condition is satisfiedExecuting step h), if the convergence condition is not met, repeatedly executing steps d) to f) until the convergence condition is met;
h) by the formula x ═ γ-1WTAnd s, calculating to obtain a clean electrocardiosignal x, and denoising the electrocardiosignal x. By optimizing and calculating wavelet coefficients of the electrocardiosignal, accurate and efficient denoising is realized, and meanwhile, the waveform characteristics of the original electrocardiosignal can be better reserved. The obtained threshold function is continuous, and noise spikes and pseudo Gibbs oscillations which occur at discontinuous points in the traditional wavelet threshold denoising method can be avoided. The sparse characteristic of the electrocardiosignals in the wavelet domain is fully utilized, and a sparse solution can be obtained by selecting a non-convex sparse penalty function. By selecting proper regularization parameters, strict convexity of the objective function is guaranteed, a unique solution of a denoising problem can be obtained by a convex optimization method, and the optimization algorithm is high in calculation efficiency and high in convergence speed.
Further, in step c), the formula is usedEstablishing an optimization problem with s as s*Of the optimal solution, v*Is an optimal solution of v, wherein
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (2)
1. An electrocardiosignal denoising method based on wavelet domain sparse characteristics is characterized by comprising the following steps:
a) establishing a mathematical model of the electrocardiosignal such as y (l) ═ x (l) + N (l) · l ═ 1,2N,RNIs a real number space of N dimensions, x is a clean electrocardiosignal, and x belongs to RNN is white Gaussian noise, n belongs to RNPerforming wavelet transformation on the electrocardiosignal x, wherein the wavelet coefficient of the electrocardiosignal x is s, s is Wx, W is a wavelet transformation matrix, and W satisfies WTW ═ γ I, I is the identity matrix, T is the matrix transpose, γ is a constant, γ > 0, sj,kIs the element of s, j is the wavelet scale, k is time;
b) establishing a convex optimization problem for the variable s, by formulaCalculating to obtain the optimal solution s of the convex optimization problem*In the formula | · | non-conducting phosphor2Is L2 norm, | · | | non-woven1L1 norm, F(s) is a non-convex cost function, arg represents a variable corresponding to the minimum value of F(s), D is a first order differential matrix, and D is equal to R(N-1)×N,λj、ajA is a constant, λj>0、aj>0、α>0,For a scaled very small maximum concave penalty function,
c) based on an alternating direction multiplier method, making s ═ v, and v as an auxiliary variable, and obtaining a convex optimization problem about the variables s and v;
d) by the formulaIteratively solving the minimization problem to obtain the optimal solution s of the ith step(i)Where w is (Wy + ρ (v-d))/(1+ ρ), ρ is a constant, ρ > 0, d is an optimization variable, and w is an integerj,kIs an element of w by the formulaCalculating to obtain the optimal solution of the (i + 1) th iterationWherein sign (. cndot.) is a sign function,is w(i)Element of (a), w(i)Is the value of the ith iteration of w, w(i)=(Wy+ρ(v(i)-d(i)))/(1+ρ),v(i)Is the value of v step i iteration, d(i)D is the value of the ith iteration;
e) by the formulaIteratively solving the minimization problem to obtain the optimal solution v of the ith step(i)Let u be d + s to obtainSelecting a non-linear functionAccording to the semi-orthogonal linear transformation property of the adjacent operator, obtainingIn the formulaH (z, u) is a function of the variables z, u, the maximum function of h (z, u) is selected as G (z, u),zifor the value of z step i iteration, ΛiIs a matrix of the order of N,is ΛiThe inverse of the matrix of (a) is,g (z, u) satisfies the condition that G (z, u) ≧ h (z, u), G (z)i,u)=h(ziU) thenObtained according to the inverse theorem of the matrixBy the formulaCalculating to obtain the optimal solution v of the (i + 1) th iteration(i +1),u(i+1)=d(i)+s(i+1),d(i)Is the value of the i-th iteration, s(i+1)The value of the iteration of the (i + 1) th step is obtained;
f) by the formula d(i+1)=d(i)-(v(i+1)-s(i+1)) Calculating to obtain the optimal solution d of the (i + 1) th iteration(i+1);
g) Given constant c0> 0, if a convergence condition is satisfiedExecuting step h), if the convergence condition is not met, repeatedly executing steps d) to f) until the convergence condition is met;
h) by the formula x ═ γ-1WTAnd s, calculating to obtain a clean electrocardiosignal x, and denoising the electrocardiosignal x.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111017585.4A CN113598785B (en) | 2021-08-31 | 2021-08-31 | Electrocardiosignal denoising method based on wavelet domain sparse characteristic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111017585.4A CN113598785B (en) | 2021-08-31 | 2021-08-31 | Electrocardiosignal denoising method based on wavelet domain sparse characteristic |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113598785A CN113598785A (en) | 2021-11-05 |
CN113598785B true CN113598785B (en) | 2022-02-18 |
Family
ID=78342497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111017585.4A Active CN113598785B (en) | 2021-08-31 | 2021-08-31 | Electrocardiosignal denoising method based on wavelet domain sparse characteristic |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113598785B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115105088B (en) * | 2022-06-20 | 2023-03-14 | 山东省人工智能研究院 | Improved electrocardiosignal denoising method based on wavelet domain sparse characteristic |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8935308B2 (en) * | 2012-01-20 | 2015-01-13 | Mitsubishi Electric Research Laboratories, Inc. | Method for recovering low-rank matrices and subspaces from data in high-dimensional matrices |
WO2016014354A1 (en) * | 2014-07-25 | 2016-01-28 | Siemens Aktiengesellschaft | Iterative analysis-based non-convex prior for enhanced sparse recovery |
US10515724B2 (en) * | 2016-05-10 | 2019-12-24 | Macau University Of Science And Technolog | Method and system for determining an association of biological feature with medical condition |
CN111222257B (en) * | 2020-02-27 | 2023-05-02 | 东南大学 | Electric heating water multipotency flow cooperative scheduling method based on convex optimization |
CN111553863B (en) * | 2020-04-30 | 2023-03-03 | 河南大学 | Image enhancement method based on non-convex full-variation typing regularization |
CN112526451B (en) * | 2020-10-29 | 2024-04-19 | 清华大学 | Compressed beam forming and system based on microphone array imaging |
CN112515637B (en) * | 2020-12-02 | 2021-06-15 | 山东省人工智能研究院 | Electrocardiosignal noise reduction method based on group sparsity characteristic |
-
2021
- 2021-08-31 CN CN202111017585.4A patent/CN113598785B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113598785A (en) | 2021-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Rakshit et al. | An efficient ECG denoising methodology using empirical mode decomposition and adaptive switching mean filter | |
Alfaouri et al. | ECG signal denoising by wavelet transform thresholding | |
Sayadi et al. | Multiadaptive bionic wavelet transform: Application to ECG denoising and baseline wandering reduction | |
Boda et al. | A hybrid method for removal of power line interference and baseline wander in ECG signals using EMD and EWT | |
Haritha et al. | A survey on modern trends in ECG noise removal techniques | |
CN110680308B (en) | Electrocardiosignal denoising method based on fusion of improved EMD and threshold method | |
CN110974217B (en) | Dual-stage electrocardiosignal noise reduction method based on convolution self-encoder | |
CN111616697B (en) | Electrocardiosignal denoising algorithm based on new threshold function wavelet transform | |
Butt et al. | Denoising practices for electrocardiographic (ECG) signals: a survey | |
CN106419898A (en) | Method removing electrocardiosignal baseline drift | |
CN113786191B (en) | Heart impact signal denoising method based on multi-channel singular spectrum analysis | |
Bhateja et al. | A non-linear approach to ECG signal processing using morphological filters | |
CN113598785B (en) | Electrocardiosignal denoising method based on wavelet domain sparse characteristic | |
Iravanian et al. | A novel algorithm for cardiac biosignal filtering based on filtered residue method | |
Rakshit et al. | An improved EMD based ECG denoising method using adaptive switching mean filter | |
Lu et al. | Model-based ECG denoising using empirical mode decomposition | |
CN110292374B (en) | Electrocardiosignal baseline-removing drifting method based on singular spectrum analysis and variational modal decomposition | |
Saha et al. | Noise suppressing cascaded IIR elliptic filter design for ECG signals | |
CN112515637B (en) | Electrocardiosignal noise reduction method based on group sparsity characteristic | |
Suchetha et al. | Empirical mode decomposition-based subtraction techniques for 50 Hz interference reduction from electrocardiogram | |
Dubey et al. | Two-stage nonlocal means denoising of ECG signals | |
Paul et al. | Data processing of stress ECGs using discrete cosine transform | |
CN115105088B (en) | Improved electrocardiosignal denoising method based on wavelet domain sparse characteristic | |
Mohammed et al. | Independent component analysis and extended kalman filter for ECG signal filtering | |
Sherly et al. | ECG signal noises versus filters for signal quality improvement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |