CN110680308A - ECG signal denoising method based on fusion of improved EMD and threshold method - Google Patents

ECG signal denoising method based on fusion of improved EMD and threshold method Download PDF

Info

Publication number
CN110680308A
CN110680308A CN201911070409.XA CN201911070409A CN110680308A CN 110680308 A CN110680308 A CN 110680308A CN 201911070409 A CN201911070409 A CN 201911070409A CN 110680308 A CN110680308 A CN 110680308A
Authority
CN
China
Prior art keywords
imf
signal
point
emd
denoising
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.)
Granted
Application number
CN201911070409.XA
Other languages
Chinese (zh)
Other versions
CN110680308B (en
Inventor
郭树理
何昆仑
尹俭芳
韩丽娜
范利
曹丰
刘宏斌
王春喜
李玉龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Technology
Chinese PLA General Hospital
Original Assignee
Beijing University of Technology
Chinese PLA General Hospital
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing University of Technology, Chinese PLA General Hospital filed Critical Beijing University of Technology
Priority to CN201911070409.XA priority Critical patent/CN110680308B/en
Publication of CN110680308A publication Critical patent/CN110680308A/en
Application granted granted Critical
Publication of CN110680308B publication Critical patent/CN110680308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7203Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • Veterinary Medicine (AREA)
  • Public Health (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Physiology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Psychiatry (AREA)
  • Cardiology (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

本发明提出了一种基于改进EMD与阈值法融合的心电信号去噪方法,属于信号滤波技术领域。本发明通过叠加不同权重系数的白噪声解决模态混叠问题,通过最小二乘支持向量机的方法解决端点问题,通过保形样条插值的方法构造信号上下包络线,利用保形分段法来构造具有二阶逼近精度、分段少、运算量小的三次样条插值,该方法可以抑制包络拟合过冲/欠冲的问题,通过分解出的IMF的正交性与能量性质,提出IMF分量“筛分”终止的判据,保证了EMD分解的正交性与完备性,通过互信息的原则判定筛分出的IMF信号含有噪声的多少,来决定是否对其进行滤波处理,增加了EMD算法的快速性;改进了阈值函数,该阈值函数结合了软硬阈值的优点,对含有噪声的IMF进行滤波处理。

Figure 201911070409

The invention proposes an electrocardiographic signal denoising method based on the fusion of improved EMD and threshold method, and belongs to the technical field of signal filtering. The invention solves the modal aliasing problem by superimposing white noises of different weight coefficients, solves the end point problem by the method of least squares support vector machine, constructs the upper and lower envelopes of the signal by the method of conformal spline interpolation, and uses conformal segmentation. The method can construct cubic spline interpolation with second-order approximation accuracy, less segmentation and less computation. This method can suppress the problem of overshoot/undershoot of envelope fitting. The orthogonality and energy properties of the decomposed IMFs , put forward the criterion for the termination of "sieving" of IMF components, which ensures the orthogonality and completeness of EMD decomposition. The principle of mutual information is used to determine how much noise the sieved IMF signal contains to decide whether to filter it or not. , which increases the rapidity of the EMD algorithm; improves the threshold function, which combines the advantages of soft and hard thresholds to filter IMFs containing noise.

Figure 201911070409

Description

基于改进EMD与阈值法融合的心电信号去噪方法ECG signal denoising method based on fusion of improved EMD and threshold method

技术领域technical field

本发明涉及一种心电信号去噪的方法,特别是基于改进EMD与阈值法融合进行心电信号去噪方法,属于信号滤波技术领域。The invention relates to a method for denoising an electrocardiogram signal, in particular to a method for denoising an electrocardiogram signal based on the fusion of improved EMD and a threshold method, and belongs to the technical field of signal filtering.

背景技术Background technique

心电信号是一种典型的非平稳、微弱生物电信号,广泛应用于各种心脏疾病的诊断与治疗。心电信号中常伴有非常严重的高频、低频噪声,且噪声频带常与心电信号频带有重叠,滤波预处理较困难。ECG signal is a typical non-stationary and weak bioelectric signal, which is widely used in the diagnosis and treatment of various heart diseases. The ECG signal is often accompanied by very serious high-frequency and low-frequency noise, and the noise frequency band often overlaps with the ECG signal frequency band, so filtering and preprocessing are difficult.

传统的生物医学信号处理主要是以傅立叶理论为基础的。傅立叶信号处理技术在信号频谱分析方面以及与其相关联的数据压缩、信号检测、滤波等信号处理领域几乎无可替代。但傅氏变换的积分区间是由正无穷到负无穷的,它无法得到信号在某一段时间内的频谱含量。而小波变换由于其优良的时频分析特性和处理非平稳随机信号的能力,成为了处理心电等生物医学信号的一种行之有效的方法。同样,EMD由于其在分析非线性和非平稳性信号时所表现出的良好的适应性也己经开始被应用到了生物医学的处理领域。如心电图信号分析、血压信号去噪、心跳信号分析等,都已得到成功应用。Traditional biomedical signal processing is mainly based on Fourier theory. Fourier signal processing technology is almost irreplaceable in signal spectrum analysis and its associated data compression, signal detection, filtering and other signal processing fields. However, the integral interval of Fourier transform is from positive infinity to negative infinity, and it cannot obtain the spectral content of the signal in a certain period of time. The wavelet transform has become an effective method for processing biomedical signals such as ECG because of its excellent time-frequency analysis characteristics and the ability to process non-stationary random signals. Similarly, EMD has also begun to be applied to the field of biomedical processing due to its good adaptability in analyzing nonlinear and non-stationary signals. Such as electrocardiogram signal analysis, blood pressure signal denoising, heartbeat signal analysis, etc., have been successfully applied.

经验模态分解(Empirical modedecomposition,EMD)将信号分解成有限个本征模函数(Intrinsic mode function,IMF)之和。EMD分解充分考虑了信号本身的局部尺度特征,这样得到的每个IMF分量表示了原信号的一种尺度特征,包含了原信号真实的物理信息。EMD作为一种新的自适应信号时频处理方法,在机械故障诊断、特征提取、地球物理探测、医学分析等方面都有了广泛的应用,并且EMD方法也已扩展到二维信号处理领域。在图像边缘检测少、纹理分析、图像融合、图像压缩、图像滤波等领域都得到了很好的应用,这些都说明了EMD的有效性。Empirical mode decomposition (EMD) decomposes the signal into the sum of a finite number of intrinsic mode functions (IMF). The EMD decomposition fully considers the local scale features of the signal itself, and each IMF component obtained in this way represents a scale feature of the original signal and contains the real physical information of the original signal. As a new adaptive signal time-frequency processing method, EMD has been widely used in mechanical fault diagnosis, feature extraction, geophysical detection, medical analysis, etc., and the EMD method has also been extended to the field of two-dimensional signal processing. It has been well applied in the fields of less image edge detection, texture analysis, image fusion, image compression, image filtering, etc., which all illustrate the effectiveness of EMD.

现如今的EMD方法还存在一些缺陷还需作进一步的研究。如:EMD快速算法的研究、EMD模态混叠问题、端点效应、信号的包络拟合问题以及IMF分量“筛分”终止的判据研究。方法中包络曲线拟合的好坏直接影响到的分解结果,原采用三次样条函数插值的方法是以极值点为已知点完成的,因为极值点分布的不均匀性,导致了其是非均匀点的拟合,会引起极值欠冲或过冲的问题,造成分解的较大误差。模态混叠问题是EMD使用过程中经常会遇到的一个问题,其主要由间断事件和信号的相互作用两方面原因引起。There are still some shortcomings in the current EMD method and further research is needed. Such as: research on EMD fast algorithm, EMD modal aliasing problem, end effect, signal envelope fitting problem and IMF component "sieve" termination criterion research. The quality of the envelope curve fitting in the method directly affects the decomposition results. The original method of using cubic spline function interpolation is completed with extreme points as known points. Because of the uneven distribution of extreme points, it leads to It is the fitting of non-uniform points, which will cause the problem of extreme undershoot or overshoot, resulting in a larger error of decomposition. Mode aliasing is a problem often encountered in the use of EMD, which is mainly caused by discontinuous events and signal interaction.

本发明针对上述存在的缺陷,提出一种基于改进EMD与阈值法融合的心电信号去噪方法,致力于提高心电信号经验模态分解的质量并提高去除噪声的效果。Aiming at the above-mentioned defects, the present invention proposes an ECG signal denoising method based on the fusion of improved EMD and threshold method, aiming to improve the quality of ECG signal empirical mode decomposition and improve the effect of noise removal.

发明内容SUMMARY OF THE INVENTION

针对现有技术中存在的不足,本发明的目的在于提出一种改进EMD与阈值法融合技术,以完成对心电信号的分解并去除心电信号的噪声。本发明通过叠加不同权重系数的白噪声解决模态混叠问题,通过最小二乘支持向量机的方法解决端点问题,通过保形样条插值的方法构造信号上下包络线,利用保形分段法来构造具有二阶逼近精度、分段少、运算量小的三次样条插值,该方法可以抑制包络拟合过冲/欠冲的问题,避免传统插值方法导致的插值误差随着分解过程的持续进行而出现的误差不断累积。通过分解出的IMF的正交性与能量性质,提出IMF分量“筛分”终止的判据,保证了EMD分解的正交性与完备性。通过互信息的原则判定筛分出的IMF信号含有噪声的多少,来决定是否对其进行滤波处理,这大大增加了EMD算法的快速性。并提出了一种改进的阈值函数,该阈值函数结合了软硬阈值的优点,对含有噪声的IMF进行滤波处理。In view of the deficiencies in the prior art, the purpose of the present invention is to propose an improved fusion technology of EMD and threshold method, so as to complete the decomposition of the ECG signal and remove the noise of the ECG signal. The invention solves the modal aliasing problem by superimposing white noises of different weight coefficients, solves the end point problem by the method of least squares support vector machine, constructs the upper and lower envelopes of the signal by the method of conformal spline interpolation, and uses conformal segmentation. This method can suppress the problem of overshoot/undershoot of envelope fitting, and avoid the interpolation error caused by the traditional interpolation method with the decomposition process. The errors that occur as the continuous process continues to accumulate. Based on the orthogonality and energy properties of the decomposed IMFs, the criterion for the termination of "sieving" of the IMF components is proposed, which ensures the orthogonality and completeness of the EMD decomposition. The principle of mutual information is used to determine how much noise the filtered IMF signal contains to decide whether to filter it, which greatly increases the speed of the EMD algorithm. An improved threshold function is proposed, which combines the advantages of soft and hard thresholds to filter IMFs containing noise.

本发明旨在解决使用EMD分解时,造成的模态混叠问题,提出一种基于改进EMD与阈值法融合的心电信号去噪方法。The invention aims to solve the problem of modal aliasing caused by using EMD decomposition, and proposes an electrocardiographic signal denoising method based on the fusion of improved EMD and threshold method.

一种基于改进EMD与阈值法融合的心电信号去噪方法,包括如下步骤:An ECG signal denoising method based on the fusion of improved EMD and threshold method, comprising the following steps:

步骤1:对心电信号进行改进的EMD分解;Step 1: Improved EMD decomposition of ECG signal;

步骤1.1:对心电信号加入白噪声的方法可以表示为:Step 1.1: The method of adding white noise to the ECG signal can be expressed as:

Figure BDA0002259653930000021
Figure BDA0002259653930000021

其中,

Figure BDA0002259653930000022
代表对心电信号第a次加入正系数白噪声后的信号;
Figure BDA0002259653930000023
代表对心电信号第a次加入与正系数相对应的负系数白噪声后的信号;y(t)代表心电信号;n(t)代表均值为零,单位方差的白噪声;ωa为权重系数。以下步骤1.2~1.5是加入正系数白噪声的处理方法,加入负系数白噪声的处理方法与此类似,仅需将上标“+”改为“-”,含义表示与之对应的加入负系数白噪声的情况。in,
Figure BDA0002259653930000022
Represents the signal after adding positive coefficient white noise to the ECG signal for the a-th time;
Figure BDA0002259653930000023
Represents the signal after adding the negative coefficient white noise corresponding to the positive coefficient to the ECG signal for the ath time; y(t) represents the ECG signal; n(t) represents the white noise with zero mean and unit variance; ω a is weight factor. The following steps 1.2 to 1.5 are the processing method of adding positive coefficient white noise, and the processing method of adding negative coefficient white noise is similar to this, only need to change the superscript "+" to "-", which means that the corresponding negative coefficient is added. case of white noise.

步骤1.2:为避免信号插值拟合时出现两端发散现象,即端点效应。通过利用最小二乘支持向量机延拓信号两端;对步骤1.1处理后的信号进行采样,首先,对

Figure BDA0002259653930000024
进行采样,信号采样序列为
Figure BDA0002259653930000025
N为采样点数。训练样本集为A={(h1,g1),(h2,g2),···,(hl,gl)},其中:hi为输入向量,
Figure BDA0002259653930000026
gi为输出向量,
Figure BDA0002259653930000027
1≤i≤l;l为训练样本集个数;测试样本集B={(hN-S+1,gN-S+1),(hN-S+2,gN-S+2),···,(hN,gN)},其中:1≤S为测试样本数;Step 1.2: In order to avoid divergence at both ends during signal interpolation and fitting, that is, end point effect. Extend the two ends of the signal by using the least squares support vector machine; sample the signal processed in step 1.1, first, for
Figure BDA0002259653930000024
For sampling, the signal sampling sequence is
Figure BDA0002259653930000025
N is the number of sampling points. The training sample set is A={(h 1 ,g 1 ),(h 2 ,g 2 ),...,(h l ,g l )}, where: h i is the input vector,
Figure BDA0002259653930000026
g i is the output vector,
Figure BDA0002259653930000027
1≤i≤l; l is the number of training sample sets; test sample set B={(h N-S+1 , g N-S+1 ), (h N-S+2 , g N-S+2 ),...,(h N ,g N )}, where: 1≤S is the number of test samples;

通过测试样本集,最小二乘支持向量机的输出是

Figure BDA0002259653930000028
其中,
Figure BDA0002259653930000029
为延拓后的第一个信号,再将作为原始数据新的边界点,以同样的方法得到第2个数据序列延拓值
Figure BDA0002259653930000031
以此类推,根据需要延拓数据点的个数可以得到全部延拓序列其中,M为向右延拓的信号点数,对于给定数据序列向左延拓的方法与向右延拓的方法相同,并记向左延拓的序列为:
Figure BDA0002259653930000033
最终延拓后的序列记为 With the test sample set, the output of the least squares support vector machine is
Figure BDA0002259653930000028
in,
Figure BDA0002259653930000029
is the first signal after extension, and then As the new boundary point of the original data, the second data sequence extension value is obtained in the same way
Figure BDA0002259653930000031
By analogy, all the extended sequences can be obtained by extending the number of data points as needed. Among them, M is the number of signal points extended to the right. For a given data sequence, the method of extending to the left is the same as the method of extending to the right, and the sequence of extending to the left is recorded as:
Figure BDA0002259653930000033
The final extended sequence is denoted as

步骤1.3:通过保形样条插值的方法构造信号的上下包络线。Step 1.3: Construct the upper and lower envelopes of the signal by means of conformal spline interpolation.

步骤1.3.1:通过比较步骤1.2得到的序列Z(ti)中某点与其左右邻近点的大小关系来判断该点是否为极值点。具体操作如下:Step 1.3.1: Determine whether the point is an extreme point by comparing the magnitude relationship between a point in the sequence Z(t i ) obtained in step 1.2 and its left and right neighboring points. The specific operations are as follows:

当判断端点..与

Figure BDA0002259653930000035
时:When judging endpoint .. with
Figure BDA0002259653930000035
Time:

Figure BDA0002259653930000036
则点
Figure BDA0002259653930000037
为极大值点。like
Figure BDA0002259653930000036
then point
Figure BDA0002259653930000037
is the maximum point.

则点为极小值点。like then point is the minimum point.

则点

Figure BDA00022596539300000311
为极大值点。like then point
Figure BDA00022596539300000311
is the maximum point.

Figure BDA00022596539300000312
则点
Figure BDA00022596539300000313
为极小值点。like
Figure BDA00022596539300000312
then point
Figure BDA00022596539300000313
is the minimum point.

当判断除上述端点以外的其它点时:When judging points other than the above endpoints:

Figure BDA00022596539300000314
-M+1≤i≤N+M-1,则点
Figure BDA00022596539300000315
为极大值点。like
Figure BDA00022596539300000314
-M+1≤i≤N+M-1, then point
Figure BDA00022596539300000315
is the maximum point.

Figure BDA00022596539300000316
-M+1≤i≤N+M-1,则点
Figure BDA00022596539300000317
为极小值点。like
Figure BDA00022596539300000316
-M+1≤i≤N+M-1, then point
Figure BDA00022596539300000317
is the minimum point.

通过上述方法可得序列

Figure BDA00022596539300000318
的极大值点序列为:The sequence can be obtained by the above method
Figure BDA00022596539300000318
The maximum point sequence of is:

{xmax(t0),xmax(t1),...,xmax(tb)},其中b为极大值点个数;{x max (t 0 ),x max (t 1 ),...,x max (t b )}, where b is the number of maximum points;

极小值点序列为:The sequence of minimum points is:

{xmin(t0),xmin(t1),...,xmin(tc)},其中c为极大值点个数。{x min (t 0 ),x min (t 1 ),...,x min (t c )}, where c is the number of maximum points.

步骤1.3.2:通过极大值点构造上包络线。Step 1.3.2: Construct the upper envelope through the maximum points.

在每两个极大值点间插入两个数值点,定义如下:Insert two numerical points between every two maximum points, defined as follows:

其中,tij为位于时间ti-1与ti之间的第j个插入点。where t ij is the j-th insertion point between times t i-1 and t i .

插入数值点后的序列为:The sequence after inserting the numerical points is:

{xmax(t0),xmax(t11),xmax(t12),xmax(t1),xmax(t21),xmax(t22),xmax(t3),...,xmax(tb)}{x max (t 0 ), x max (t 11 ), x max (t 12 ), x max (t 1 ), x max (t 21 ), x max (t 22 ), x max (t 3 ), ...,x max (t b )}

将上述序列作为T-B样条曲线的控制顶点,上包络线即T-B样条曲线可表达如下:Taking the above sequence as the control vertex of the T-B spline curve, the upper envelope, namely the T-B spline curve, can be expressed as follows:

Figure BDA0002259653930000041
Figure BDA0002259653930000041

其中,j表示拟合的第j段T-B样条曲线;U表示上包络线;hij(t)为T-B样条基函数,当拟合t0到t1段曲线时,hij(t)的表达式如下:Among them, j represents the fitted j-th TB spline curve; U represents the upper envelope; h ij (t) is the TB spline basis function. When fitting the curve from t 0 to t 1 , h ij (t ) is expressed as follows:

Figure BDA0002259653930000042
Figure BDA0002259653930000042

Figure BDA0002259653930000043
Figure BDA0002259653930000043

Figure BDA0002259653930000044
Figure BDA0002259653930000044

Figure BDA0002259653930000045
Figure BDA0002259653930000045

其中:in:

Figure BDA0002259653930000046
Figure BDA0002259653930000046

Figure BDA0002259653930000047
Figure BDA0002259653930000047

Figure BDA0002259653930000049
Figure BDA0002259653930000049

Figure BDA00022596539300000410
Figure BDA00022596539300000410

Figure BDA00022596539300000411
Figure BDA00022596539300000411

Figure BDA00022596539300000412
Figure BDA00022596539300000412

Figure BDA0002259653930000051
Figure BDA0002259653930000051

Figure BDA0002259653930000052
Figure BDA0002259653930000052

拟合t1:t2、t2:t3、···、tb-1:tb段曲线时,hij(t)的表达式与上述类似。When fitting t 1 : t 2 , t 2 : t 3 , ···, t b-1 : t b segment curves, the expression of h ij (t) is similar to the above.

步骤1.3.3:通过极小值点构造下包络线,构造方法与构造上包络线的方法类似,下包络线的表达如下:Step 1.3.3: Construct the lower envelope through the minimum value points. The construction method is similar to the method of constructing the upper envelope. The expression of the lower envelope is as follows:

Figure BDA0002259653930000056
Figure BDA0002259653930000056

其中,D表示下包络线;Among them, D represents the lower envelope;

步骤1.4:求上下包络线的均值:Step 1.4: Find the mean of the upper and lower envelopes:

Figure BDA0002259653930000057
Figure BDA0002259653930000057

其中,ma(t)为第a次加入正系数白噪声后所得到的上下包络线的均值;Among them, m a (t) is the mean value of the upper and lower envelopes obtained after adding positive coefficient white noise for the ath time;

计算信号

Figure BDA0002259653930000058
与ma(t)的差值:Calculate the signal
Figure BDA0002259653930000058
Difference from m a (t):

Figure BDA0002259653930000059
Figure BDA0002259653930000059

如果C(t)不满足IMF定义截止条件,则重复步骤1.3;否则提取C(t)作为

Figure BDA00022596539300000510
Figure BDA00022596539300000511
为第a次加入正系数白噪声经第i次EMD分解的IMF;剩余量
Figure BDA00022596539300000512
If C(t) does not meet the IMF definition cut-off condition, repeat step 1.3; otherwise extract C(t) as
Figure BDA00022596539300000510
Figure BDA00022596539300000511
is the IMF decomposed by the i-th EMD after adding positive coefficient white noise for the a-th time;
Figure BDA00022596539300000512

步骤1.5:将步骤1.4的剩余量r(t)作为一个新的信号,即r(t)=y(t),再经步骤1.1~步骤1.4进行筛选来获得下一个更低频率的IMF,直到筛选出来的IMF分量满足如下规则,则停止筛分。Step 1.5: Take the remaining amount r(t) of step 1.4 as a new signal, that is, r(t)=y(t), and then filter through steps 1.1 to 1.4 to obtain the next lower frequency IMF, until If the screened IMF components satisfy the following rules, the screening is stopped.

IMF分量“筛分”终止的停止准则为:The stopping criterion for the termination of IMF component "sieving" is:

其中:IMFi(t)为第i次EMD分解的IMF,n为IMFi(t)的长度;Where: IMF i (t) is the IMF of the i-th EMD decomposition, and n is the length of IMF i (t);

当ZSD<θ时,停止筛分,作为优选,θ=0.03。When ZSD<θ, stop sieving, preferably, θ=0.03.

步骤1.6:经上述分解后的信号可表达为如下公式:Step 1.6: The decomposed signal can be expressed as the following formula:

Figure BDA0002259653930000061
Figure BDA0002259653930000061

其中:d为心电信号经EMD分解后的IMF的个数,

Figure BDA0002259653930000062
为第a次加入正系数白噪声经第i次EMD分解的IMF,rd(t)为进行第d次分解时的残差。Among them: d is the number of IMFs decomposed by EMD of the ECG signal,
Figure BDA0002259653930000062
is the IMF decomposed by the i-th EMD after adding positive coefficient white noise for the a-th time, and r d (t) is the residual when the d-th time decomposition is performed.

与步骤1.1~步骤1.5相似,计算对心电信号加入负系数白噪声后的EMD分解,分解后的信号可表达为如下公式:Similar to steps 1.1 to 1.5, calculate the EMD decomposition after adding negative coefficient white noise to the ECG signal. The decomposed signal can be expressed as the following formula:

Figure BDA0002259653930000063
Figure BDA0002259653930000063

其中,

Figure BDA0002259653930000064
为第a次加入负系数白噪声经第i次EMD分解的IMF。in,
Figure BDA0002259653930000064
It is the IMF decomposed by the i-th EMD after adding the negative coefficient white noise for the a-th time.

步骤1.7:对步骤1.6得到加入正系数及负系数白噪声后的IMF进行累加求平均,可得:Step 1.7: Accumulate and average the IMFs obtained in step 1.6 after adding positive and negative coefficient white noises, to obtain:

Figure BDA0002259653930000065
Figure BDA0002259653930000065

其中:in:

Figure BDA0002259653930000066
Figure BDA0002259653930000066

步骤2:通过排列互信息判断每个IMF与原信号的线性关系,对由步骤1得到的IMF进行有效信号判定,公式如下:Step 2: Determine the linear relationship between each IMF and the original signal by arranging mutual information, and determine the effective signal of the IMF obtained in Step 1. The formula is as follows:

QI(IMF(k),y)=S(IMF(k))+S(y)-S(IMF(k),y) (13)QI(IMF (k) ,y)=S(IMF (k) )+S(y)-S(IMF (k) ,y) (13)

其中:S(IMF(k))和S(y)分别为IMF(k)(t)和y(t)的排列熵,S(IMF(k))计算公式如下:Among them: S(IMF (k) ) and S(y) are the permutation entropy of IMF (k) (t) and y(t) respectively, and the calculation formula of S(IMF (k) ) is as follows:

Figure BDA0002259653930000067
Figure BDA0002259653930000067

其中p(·)表示排列(·)的联合概率密度,计算公式如下:where p( ) represents the joint probability density of permutation ( ), which is calculated as follows:

其中i=1,2,···,n-(d-1)τ,n为时间序列的长度,d为给定的嵌入维数,τ为时间延迟;#表示集合内元素数,

Figure BDA0002259653930000069
为IMF(k)的一个状态向量,对应的排列是(πi);排列(πi)表示时间序列IMF(k)(t)映射到d维空间后每个状态向量所对应的一个排列顺序;where i=1,2,...,n-(d-1)τ, n is the length of the time series, d is the given embedding dimension, τ is the time delay; # represents the number of elements in the set,
Figure BDA0002259653930000069
is a state vector of IMF (k) , and the corresponding arrangement is (π i ); arrangement (π i ) represents an arrangement order corresponding to each state vector after the time series IMF (k) (t) is mapped to the d-dimensional space ;

假设时间序列{IMF(k)(t)}映射到d维相空间,定义其联合状态向量为:Assuming that the time series {IMF (k) (t)} is mapped to the d-dimensional phase space, the joint state vector is defined as:

其状态向量用以表征第i时刻序列的轨迹,通过此定义可以得到映射到状态空间的轨迹状态矩阵:Its state vector is used to represent the trajectory of the i-th time sequence. Through this definition, the trajectory state matrix mapped to the state space can be obtained:

通过比较每个状态矩阵的行向量的近邻值的大小关系得一个排列顺序,即可得轨迹矩阵的排列矩阵:By comparing the size relationship of the neighbor values of the row vector of each state matrix to obtain an arrangement order, the arrangement matrix of the trajectory matrix can be obtained:

S(y)与S(IMF(k))的计算类似。S(y) is calculated similarly to S(IMF (k) ).

S(IMF(k),y)表示IMF(k)(t)和y(t)的联合排列熵,计算公式如下:S(IMF (k) ,y) represents the joint arrangement entropy of IMF (k) (t) and y(t), and the calculation formula is as follows:

Figure BDA0002259653930000073
Figure BDA0002259653930000073

其中p(πij)表示排列(πij)的联合概率密度,计算公式如下:where p(π i , π j ) represents the joint probability density of permutations (π i , π j ), and the calculation formula is as follows:

Figure BDA0002259653930000074
Figure BDA0002259653930000074

其中下标i'=1,2,···,n-(d-1)τ,一对状态空间轨迹矩阵,其对应的排列是(πij);排列(πij)表示IMF(k)(t)和y(t)时间序列映射到d维空间后每个状态向量所对应的一个排列顺序,其表示方式如下:假设时间序列{IMF(k)(t)}和{y(t)}映射到d维相空间,定义其联合状态矩阵为:where the subscript i'=1,2,...,n-(d-1)τ, A pair of state space trajectory matrices, the corresponding arrangement is (π i , π j ); the arrangement (π i , π j ) indicates that the time series of IMF (k) (t) and y(t) are mapped to the d-dimensional space. An arrangement order corresponding to the state vectors is represented as follows: Assuming that the time series {IMF (k) (t)} and {y(t)} are mapped to the d-dimensional phase space, the joint state matrix is defined as:

Figure BDA0002259653930000076
Figure BDA0002259653930000076

其状态向量用以表征第i时刻序列的轨迹,通过此定义可以得到映射到状态空间的轨迹状矩阵:Its state vector is used to represent the trajectory of the i-th time sequence. Through this definition, the trajectory-like matrix mapped to the state space can be obtained:

Figure BDA0002259653930000077
Figure BDA0002259653930000077

通过比较每个状态矩阵的行向量的近邻值的大小关系得一个排列顺序,即可得轨迹矩阵的排列矩阵:By comparing the size relationship of the neighbor values of the row vector of each state matrix to obtain an arrangement order, the arrangement matrix of the trajectory matrix can be obtained:

Figure BDA0002259653930000078
Figure BDA0002259653930000078

根据每个IMF与原信号的互信息QI值判断每个IMF受噪声干扰的程度,其噪声量越多,QI值越小。将明显QI值小的IMF选出进行去噪处理。According to the mutual information QI value of each IMF and the original signal, the degree of interference of each IMF by noise is judged. The more noise, the smaller the QI value. The IMFs with obviously small QI values are selected for denoising.

步骤3:对步骤2选出来需要去噪的IMF进行阈值去噪处理,阈值公式如下:Step 3: Perform threshold denoising processing on the IMFs selected in step 2 that need to be denoised. The threshold formula is as follows:

Figure BDA0002259653930000081
Figure BDA0002259653930000081

其中:可调参数

Figure BDA0002259653930000082
可调参数α为正数,可调参数m为正数;阈值λ1的计算公式如下:Where: Tunable parameter
Figure BDA0002259653930000082
The adjustable parameter α is a positive number, and the adjustable parameter m is a positive number; the calculation formula of the threshold λ 1 is as follows:

阈值

Figure BDA0002259653930000083
σ为各个IMF分量中噪声标准差,σ=median(IMFi)/0.6745,median(·)为求中位数;threshold
Figure BDA0002259653930000083
σ is the noise standard deviation in each IMF component, σ=median(IMF i )/0.6745, median( ) is the median;

阈值λ2的计算公式如下: The calculation formula of the threshold λ 2 is as follows:

步骤4:步骤2剩下的IMF与步骤3进行处理后的信号进行信号重构,计算公式如下:Step 4: The remaining IMFs in step 2 are reconstructed with the signal processed in step 3. The calculation formula is as follows:

Figure BDA0002259653930000085
Figure BDA0002259653930000085

其中,y'(t)表示去噪后的信号。Among them, y'(t) represents the denoised signal.

至此,由步骤1到步骤4,完成了一种基于改进EMD与阈值法融合的心电信号去噪的过程。So far, from step 1 to step 4, a process of ECG signal denoising based on the fusion of improved EMD and threshold method is completed.

有益效果beneficial effect

一种基于改进EMD与阈值法融合的心电信号去噪方法,相比于现有技术,本方法有如下有益效果:An ECG signal denoising method based on the fusion of improved EMD and threshold method, compared with the prior art, the method has the following beneficial effects:

1.本方法采用分别多次加入不同权重系数的正负白噪声的方法有效地解决了EMD中由于两个信号的相互作用导致的模态混叠问题,提高了算法的频率分辨率(这里所说的频率分辨率是指区分两个相邻频率分量的能力);1. This method adopts the method of adding positive and negative white noise with different weight coefficients for multiple times, which effectively solves the modal aliasing problem caused by the interaction of two signals in EMD, and improves the frequency resolution of the algorithm (here Said frequency resolution refers to the ability to distinguish two adjacent frequency components);

2.本方法使用最小二乘支持向量机的方法对信号进行延拓并加窗,避免了利用三次样条插值方法对信号进行拟合,导致分解时出现的失真现象;2. This method uses the least squares support vector machine method to extend and add windows to the signal, which avoids the distortion phenomenon that occurs when the signal is decomposed by using the cubic spline interpolation method to fit the signal;

3.本方法使用保形样条插值的方法构造信号上下包络线,该方法利用保形分段法来构造具有二阶逼近精度、分段少、运算量小的三次样条插值方法来抑制包络拟合过冲/欠冲问题,避免传统插值方法导致的插值误差随着分解过程的持续进行而出现误差不断累积,造成严重误差。3. This method uses the shape-preserving spline interpolation method to construct the upper and lower envelopes of the signal. This method uses the shape-preserving segmentation method to construct the cubic spline interpolation method with second-order approximation accuracy, less segmentation and less computation to suppress the signal. The envelope fitting overshoot/undershoot problem avoids the interpolation error caused by the traditional interpolation method and the continuous accumulation of errors as the decomposition process continues, resulting in serious errors.

4.本方法直接采用阈值法对IMF去噪,该方法有效的降低了运算时间。并改进了阈值函数,该阈值函数更好地保留有用信号的细节和边缘特性,在实现信号降噪的基础上,更好地提出了有效信号,保证信号的保幅度,提高了去噪效果,降低了运算时间。4. This method directly uses the threshold method to denoise the IMF, which effectively reduces the operation time. And improve the threshold function, the threshold function better retain the details and edge characteristics of useful signals, on the basis of realizing signal noise reduction, better propose effective signals, ensure the amplitude of the signal, and improve the denoising effect, Reduced operation time.

5.本方法流程简单,易于实现,可以用于心电信号分析领域内相关软件的设计工作。5. The method has a simple process and is easy to implement, and can be used in the design of related software in the field of electrocardiographic signal analysis.

附图说明Description of drawings

图1为本发明的步骤示意图;Fig. 1 is the step schematic diagram of the present invention;

图2为本发明的流程图;Fig. 2 is the flow chart of the present invention;

图3为本发明EMD分解的详细示意图;Fig. 3 is the detailed schematic diagram of EMD decomposition of the present invention;

具体实施方式Detailed ways

下面根据附图和实例对本发明进行详细说明,但本发明的具体实施方式不仅于此。The present invention will be described in detail below according to the accompanying drawings and examples, but the specific embodiments of the present invention are not limited thereto.

本实施例中的数据来源于中国人民解放军总医院心血管内科的患者采样数据,采用心电图仪对患者进行心电信号采集,信号时长5s,采样频率360Hz,获取患者在日常自由活动(非剧烈运动)情境下的心电信号数据。The data in this example comes from patient sampling data from the Department of Cardiovascular Medicine, General Hospital of the Chinese People's Liberation Army. The ECG is used to collect ECG signals from the patient. The signal duration is 5s and the sampling frequency is 360Hz. ) in the context of ECG data.

本实施例阐述了将本发明“基于改进EMD与阈值法融合的心电信号去噪方法”应用于心电信号去噪场景下的流程。This embodiment describes the process of applying the "ECG signal denoising method based on the fusion of improved EMD and threshold method" of the present invention to an ECG signal denoising scenario.

图1为本方法步骤示意图,图2为具体的流程图,从图中可以看出,先采集心电信号,然后进行如下步骤:Figure 1 is a schematic diagram of the steps of the method, and Figure 2 is a specific flow chart. It can be seen from the figure that the ECG signal is collected first, and then the following steps are performed:

步骤A:对采集到的信号进行改进的EMD分解;图3为本发明EMD分解的详细示意图,具体如下:Step A: carry out improved EMD decomposition to the collected signal; Fig. 3 is a detailed schematic diagram of the EMD decomposition of the present invention, which is specifically as follows:

步骤A1:对采集到的信号y(t)加入正ω1倍的均值为零,单位方差的白噪声n(t);Step A1: Add positive ω 1 times white noise n(t) with zero mean and unit variance to the collected signal y(t);

具体到本实施例,白噪声幅值为心电信号标准差的0.05倍,即ω1=0.5,记加入噪声后的信号为x1(t);Specifically to this embodiment, the amplitude of the white noise is 0.05 times the standard deviation of the ECG signal, that is, ω 1 =0.5, and the signal after adding noise is denoted as x 1 (t);

步骤A2:利用最小二乘支持向量机对步骤A.1得到的x1(t)信号进行延拓;Step A2: use the least squares support vector machine to extend the x 1 (t) signal obtained in step A.1;

对x1(t)进行采样得采样序列{x(1),x(2),x(3),···,x(N)},N为采样点数,训练样本集为B={(h1,g1),(h2,g2),···,(hl,gl)}。Sampling x 1 (t) to get the sampling sequence {x(1), x(2), x(3), . . . , x(N)}, N is the number of sampling points, and the training sample set is B={( h 1 ,g 1 ),(h 2 ,g 2 ),...,(h l ,g l )}.

具体到本实施例,采样点数为2000,训练样本为100,可得其训练样本:输入样本为100×1900维数据。Specifically, in this embodiment, the number of sampling points is 2000 and the number of training samples is 100, so the training samples can be obtained: the input samples are 100×1900 dimensional data.

向右延拓的第一个预测值为x(N+1);再将x(N+1)作为原始数据新的边界点,以同样的方法得到第2个数据序列延拓值x(N+2)。以此类推,根据需要延拓数据点的个数可以得到全部延拓序列x(N+1),x(N+2)…,x(N+M),对于给定数据序列向前延拓的方法与向后延拓的方法相同。The first prediction value extended to the right is x(N+1); then x(N+1) is used as the new boundary point of the original data, and the second data sequence extension value x(N) is obtained in the same way +2). By analogy, according to the need to extend the number of data points, all the extended sequences x(N+1), x(N+2)..., x(N+M) can be obtained. For a given data sequence, the forward continuation The method is the same as the method of backward continuation.

由信号的两端点处向两侧各延拓100个采样点,即M=100得扩展序列为:{x(1),x(2),x(3),···,x(2200)}。Extending 100 sampling points from the two ends of the signal to both sides, that is, M=100, the extended sequence is: {x(1),x(2),x(3),...,x(2200) }.

步骤A3:利用保形样条插值的方法构造信号包络线;Step A3: Construct the signal envelope using the method of conformal spline interpolation;

具体到本实施例,通过比较步骤A.2得到的序列中的每一点与其左右邻近点的大小关系来判断该点是否为极值点,根据比较规则,比较后的极大值序列为{xmax(t0),xmax(t1),...,xmax(tb)},其中b为极大值点个数;通过公式(2)再两个极大值点间插入两个值作为T-B样条的控制顶点,利用公式(3)构造出信号的上包络线,记为构造下包络线的方法与上包络线的类似,记为 Specifically to this embodiment, it is determined whether the point is an extreme point by comparing the size relationship between each point in the sequence obtained in step A.2 and its left and right neighboring points. According to the comparison rule, the compared maximum value sequence is {x max (t 0 ),x max (t 1 ),...,x max (t b )}, where b is the number of maximum points; by formula (2), insert two points between the two maximum points The value is used as the control vertex of the TB spline, and the upper envelope of the signal is constructed by formula (3), which is denoted as The method of constructing the lower envelope is similar to that of the upper envelope, denoted as

步骤A4:利用公式(6)计算上下包络线的均值ma(t);Step A4: use formula (6) to calculate the mean value m a (t) of the upper and lower envelopes;

步骤A5:利用公式(7)计算步骤A.2得到的信号x1'(t)和均值ma(t)的差值;Step A5: use formula (7) to calculate the difference between the signal x 1 '(t) obtained in step A.2 and the mean value m a (t);

根据公式(8)判断C(t)是否满足IMF的定义截至条件,即满足当ZSD<0.3时,则提取C(t)作为IMF;否则利用公式

Figure BDA0002259653930000103
计算剩余量,并使剩余量为原始信号,重复步骤A1—步骤A5,直到剩余分量为单调函数时停止筛分。According to formula (8), judge whether C(t) satisfies the definition cut-off condition of IMF, that is, when ZSD<0.3, then extract C(t) as IMF; otherwise, use formula
Figure BDA0002259653930000103
Calculate the remaining amount, and make the remaining amount the original signal, repeat steps A1 to A5, and stop sieving until the remaining component is a monotonic function.

步骤A6:改变步骤A.1的权重因子ω,并进行m次步骤A.1~步骤A.5的筛分;Step A6: Change the weighting factor ω of Step A.1, and perform the sieving of Steps A.1 to A.5 m times;

具体到本实施例,白噪声幅值可为心电信号标准差的0.05倍,0.06和0.04倍,加入共100次;Specifically to this embodiment, the white noise amplitude can be 0.05 times, 0.06 times and 0.04 times the standard deviation of the ECG signal, adding a total of 100 times;

步骤A7:利用公式(12)可得信号经EMD分解的所有IMF分量;Step A7: use formula (12) to obtain all IMF components of the signal decomposed by EMD;

步骤B:通过排列互信息对得到的每个IMF进行有效信号判定;Step B: judging the effective signal of each IMF obtained by arranging the mutual information;

步骤B1:求时间序列的排列熵;Step B1: Find the permutation entropy of the time series;

具体到本实施例,嵌入维数为1001,时间延迟为1。根据排列概率密度函数的香农熵计算出时间序列IMF(k)(t)和y(t)的排列熵S(IMF(k))和S(y);利用公式(18)计算出联合时间序列(IMF(k)(t),y(t))的联合排列熵S(IMF(k),y)。Specifically to this embodiment, the embedding dimension is 1001, and the time delay is 1. According to the Shannon entropy of the permutation probability density function, the permutation entropy S(IMF (k) ) and S(y) of the time series IMF (k) (t) and y(t) are calculated; the joint time series is calculated by formula (18). The joint permutation entropy S(IMF (k) ,y) of (IMF (k )(t),y(t)).

步骤B2:利用公式(13)计算排列互信息;Step B2: utilize formula (13) to calculate permutation mutual information;

步骤B3:根据每个IMF与原信号的互信息QI值判断每个IMF受噪声干扰的程度,其噪声量越多,QI值越小。将明显QI值小的IMF选出进行去噪处理。Step B3: Judging the degree of interference of each IMF by noise according to the mutual information QI value of each IMF and the original signal, the greater the amount of noise, the smaller the QI value. The IMFs with obviously small QI values are selected for denoising.

步骤C:对步骤B选出来需要去噪的IMF进行阈值去噪处理;Step C: perform threshold denoising processing on the IMFs selected in step B that need to be denoised;

具体到本实施例,将选出的IMF利用公式(23)对其进行去噪处理。Specifically to this embodiment, the selected IMFs are denoised by using the formula (23).

步骤D:步骤B剩下的IMF与步骤C进行处理后的信号进行信号重构。Step D: The remaining IMFs in Step B are reconstructed with the signal processed in Step C.

通过公式(24)对信号进行重构。The signal is reconstructed by equation (24).

至此,从步骤A到步骤D完成了本实施例一种基于改进EMD与阈值法融合的心电信号去噪方法。So far, from step A to step D, an ECG signal denoising method based on the fusion of improved EMD and threshold method in this embodiment has been completed.

Claims (10)

1.一种基于改进EMD与阈值法融合的心电信号去噪方法,包括步骤:1. An electrocardiographic signal denoising method based on the fusion of improved EMD and threshold method, comprising the steps: A.对采集到的信号进行改进的EMD分解,具体地:A. Perform an improved EMD decomposition on the acquired signal, specifically: A1.对采集到的信号y(t)加入ωa倍的均值为零、单位方差的正系数白噪声n(t),得到信号
Figure FDA0002259653920000011
下标a表示第a次加入白噪声;
A1. Add positive coefficient white noise n(t) with zero mean and unit variance of ω a times to the collected signal y(t) to obtain the signal
Figure FDA0002259653920000011
The subscript a means adding white noise for the ath time;
A2.用最小二乘支持向量机对信号两端进行延拓,得到延拓序列;A2. Use the least squares support vector machine to pair the signal The two ends are extended to obtain the extended sequence; A3.用保形样条插值的方法构造所述延拓序列的上包络线
Figure FDA0002259653920000013
及下包络线
Figure FDA0002259653920000014
j表示第j段T-B样条拟合曲线;
A3. Construct the upper envelope of the continuation sequence by means of conformal spline interpolation
Figure FDA0002259653920000013
and lower envelope
Figure FDA0002259653920000014
j represents the jth segment TB spline fitting curve;
A4.计算第a次加入白噪声后所得到上下包络线的均值以及信号
Figure FDA0002259653920000016
与ma(t)的差值
Figure FDA0002259653920000017
如果C(t)不满足IMF定义的截止条件,则重复步骤A3;否则提取C(t)作为表示第a次加入正系数白噪声经第i次EMD分解的IMF;计算剩余量
Figure FDA0002259653920000019
A4. Calculate the mean value of the upper and lower envelopes obtained after adding white noise for the ath time and signal
Figure FDA0002259653920000016
Difference from m a (t)
Figure FDA0002259653920000017
If C(t) does not meet the cut-off condition defined by IMF, repeat step A3; otherwise, extract C(t) as Represents the IMF decomposed by the i-th EMD after adding the positive coefficient white noise for the a-th time; calculate the residual amount
Figure FDA0002259653920000019
A5.将步骤A4的剩余量r(t)作为一个新的信号,即r(t)=y(t),再经步骤A1~A4进行筛选来获得下一个更低频率的IMF,直到筛选出来的IMF分量满足ZSD<θ,则停止筛分,其中,θ为设定的阈值,ZSD计算式为:A5. Use the remaining amount r(t) of step A4 as a new signal, that is, r(t)=y(t), and then filter through steps A1 to A4 to obtain the next lower frequency IMF until it is screened out The IMF component of satisfies ZSD<θ, then stop the sieving, where θ is the set threshold, and the ZSD calculation formula is:
Figure FDA00022596539200000110
Figure FDA00022596539200000110
IMFi(t)为第i次EMD分解的IMF,n为IMFi(t)的长度;IMF i (t) is the IMF of the ith EMD decomposition, and n is the length of IMF i (t); A6.经A1~A5分解后的信号表示为
Figure FDA00022596539200000111
其中,d为心电信号经EMD分解后的IMF的个数,
Figure FDA00022596539200000112
为第a次加入正系数白噪声经第i次EMD分解的IMF,rd(t)为进行第d次分解时的残差;
A6. The signal decomposed by A1~A5 is expressed as
Figure FDA00022596539200000111
Among them, d is the number of IMFs after the ECG signal is decomposed by EMD,
Figure FDA00022596539200000112
is the IMF decomposed by the i-th EMD after adding positive coefficient white noise for the a-th time, and r d (t) is the residual during the d-th decomposition;
与步骤A1~A5相似,对心电信号加入负系数白噪声后的信号进行EMD分解,分解后的信号表示为
Figure FDA00022596539200000113
其中,
Figure FDA00022596539200000114
为第a次加入负系数白噪声经第i次EMD分解的IMF;
Similar to steps A1 to A5, EMD decomposition is performed on the ECG signal after adding negative coefficient white noise, and the decomposed signal is expressed as
Figure FDA00022596539200000113
in,
Figure FDA00022596539200000114
is the IMF decomposed by the i-th EMD after adding the negative coefficient white noise for the a-th time;
A7.对步骤A6得到的加入正系数及负系数白噪声后IMF进行累加求平均,得
Figure FDA00022596539200000115
其中,
Figure FDA00022596539200000116
A7. Accumulate and average the IMF obtained in step A6 after adding positive coefficient and negative coefficient white noise to obtain
Figure FDA00022596539200000115
in,
Figure FDA00022596539200000116
B.通过排列互信息判断每个IMF与原信号的线性关系,对由步骤A得到的IMF进行有效信号判定;B. Judging the linear relationship between each IMF and the original signal by arranging mutual information, and judging the effective signal of the IMF obtained in step A; C.对步骤B选出来需要去噪的IMF进行阈值去噪处理;C. Perform threshold denoising processing on the IMFs selected in step B that need to be denoised; D.步骤B剩下的IMF与步骤C进行处理后的信号进行信号重构。D. The remaining IMFs in step B are reconstructed with the signal processed in step C.
2.如权利要求1所述的心电信号去噪方法,其特征在于,所述A2包括:对
Figure FDA0002259653920000021
进行采样得到采样序列为
Figure FDA0002259653920000022
N为采样点数;通过测试样本集,所述最小二乘支持向量机的输出是
Figure FDA0002259653920000023
其中,
Figure FDA0002259653920000024
为延拓后的第一个信号;再将
Figure FDA0002259653920000025
作为原始数据新的边界点,得到第2个数据序列延拓值
Figure FDA0002259653920000026
以此类推,根据需要延拓数据点的个数得到全部延拓序列
Figure FDA0002259653920000027
Figure FDA0002259653920000028
其中,M为向右延拓的信号点数;对于给定数据序列向左延拓得到
Figure FDA0002259653920000029
最终延拓序列为
Figure FDA00022596539200000210
2. The method for denoising an ECG signal according to claim 1, wherein the A2 comprises:
Figure FDA0002259653920000021
The sampling sequence is obtained by sampling as
Figure FDA0002259653920000022
N is the number of sampling points; through the test sample set, the output of the least squares support vector machine is
Figure FDA0002259653920000023
in,
Figure FDA0002259653920000024
is the first signal after extension;
Figure FDA0002259653920000025
As the new boundary point of the original data, the second data sequence extension value is obtained
Figure FDA0002259653920000026
And so on, according to the need to extend the number of data points to get all the extended sequence
Figure FDA0002259653920000027
Figure FDA0002259653920000028
Among them, M is the number of signal points extended to the right; for a given data sequence extended to the left, we get
Figure FDA0002259653920000029
The final extension sequence is
Figure FDA00022596539200000210
3.如权利要求1或2所述的心电信号去噪方法,其特征在于,所述A3包括:比较所述延拓序列中某点与其左右邻近点的大小关系来判断该点是否为极值点;通过极大值点构造上包络线
Figure FDA00022596539200000211
通过极小值点构造下包络线
Figure FDA00022596539200000212
3. The method for denoising an ECG signal as claimed in claim 1 or 2, wherein the A3 comprises: comparing the magnitude relationship between a certain point in the continuation sequence and its left and right adjacent points to determine whether the point is a pole or not Value points; construct the upper envelope through the maximum value points
Figure FDA00022596539200000211
Construct the lower envelope through the minimum points
Figure FDA00022596539200000212
4.如权利要求3所述的心电信号去噪方法,其特征在于,所述判断该点是否为极值点的方法:对于端点
Figure FDA00022596539200000213
Figure FDA00022596539200000214
Figure FDA00022596539200000215
则点
Figure FDA00022596539200000216
为极大值点,否则,点
Figure FDA00022596539200000217
为极小值点;若
Figure FDA00022596539200000218
则点为极大值点,否则,点
Figure FDA00022596539200000220
为极小值点;
4. The method for denoising an ECG signal as claimed in claim 3, wherein the method for judging whether the point is an extreme point: for an endpoint
Figure FDA00022596539200000213
and
Figure FDA00022596539200000214
like
Figure FDA00022596539200000215
then point
Figure FDA00022596539200000216
is the maximum point, otherwise, the point
Figure FDA00022596539200000217
is the minimum point; if
Figure FDA00022596539200000218
then point is the maximum point, otherwise, the point
Figure FDA00022596539200000220
is the minimum point;
对于除上述端点以外的其它点:若
Figure FDA00022596539200000221
则点
Figure FDA00022596539200000222
为极大值点;若
Figure FDA00022596539200000223
则点
Figure FDA00022596539200000224
为极小值点,其中,-M+1≤i≤N+M-1。
For points other than the above endpoints: if
Figure FDA00022596539200000221
then point
Figure FDA00022596539200000222
is the maximum point; if
Figure FDA00022596539200000223
then point
Figure FDA00022596539200000224
is the minimum point, where -M+1≤i≤N+M-1.
5.如权利要求1所述的心电信号去噪方法,其特征在于,所述步骤B包括:5. The method for denoising an ECG signal according to claim 1, wherein the step B comprises: B1.计算时间序列IMF(k)(t)和y(t)的排列熵S(IMF(k))和S(y);B1. Calculate the permutation entropy S(IMF (k) ) and S(y) of the time series IMF (k) (t) and y(t); B2.计算排列互信息;B2. Calculate permutation mutual information; B3.根据每个IMF与原信号的互信息QI值判断每个IMF受噪声干扰的程度,将QI值小的IMF选出进行去噪处理。B3. According to the mutual information QI value of each IMF and the original signal, the degree of interference of each IMF by noise is judged, and the IMF with the smaller QI value is selected for denoising processing. 6.如权利要求1或5所述的心电信号去噪方法,其特征在于,所述排列互信息的计算式为:6. The electrocardiographic signal denoising method according to claim 1 or 5, wherein the calculation formula of the arrangement mutual information is: QI(IMF(k),y)=S(IMF(k))+S(y)-S(IMF(k),y),其中,S(IMF(k))和S(y)分别为IMF(k)(t)和y(t)的排列熵,S(IMF(k),y)为IMF(k)(t)和y(t)的联合排列熵。QI(IMF (k) ,y)=S(IMF (k) )+S(y)-S(IMF (k) ,y), where S(IMF (k) ) and S(y) are IMFs respectively (k) The permutation entropy of (t) and y(t), S(IMF (k) , y) is the joint permutation entropy of IMF (k) (t) and y(t). 7.如权利要求6所述的心电信号去噪方法,其特征在于,所述S(IMF(k))的排列熵的计算式为:
Figure FDA0002259653920000031
其中p(·)表示排列(·)的联合概率密度。
7. ECG signal denoising method as claimed in claim 6, is characterized in that, the calculation formula of the arrangement entropy of described S (IMF (k) ) is:
Figure FDA0002259653920000031
where p(·) represents the joint probability density of permutations (·).
8.如权利要求6所述的心电信号去噪方法,其特征在于,所述IMF(k)(t)和y(t)的联合排列熵S(IMF(k),y)的计算式为其中,排列(πij)表示IMF(k)(t)和y(t)时间序列映射到d维空间后每个状态向量所对应的一个排列顺序,联合概率密度下标i'=1,2,···,n-(d-1)τ,
Figure FDA0002259653920000034
是一对状态空间轨迹矩阵,其对应的排列是(πij)。
8. The electrocardiographic signal denoising method according to claim 6, wherein the calculation formula of the joint arrangement entropy S(IMF (k) ,y) of the IMF (k) (t) and y(t) for Among them, the arrangement (π i , π j ) represents an arrangement order corresponding to each state vector after the IMF (k) (t) and y(t) time series are mapped to the d-dimensional space, and the joint probability density Subscript i'=1,2,...,n-(d-1)τ,
Figure FDA0002259653920000034
is a pair of state-space trajectory matrices whose corresponding permutations are (π ij ).
9.如权利要求1所述的心电信号去噪方法,其特征在于,所述步骤C中所述阈值计算式为:9. The electrocardiographic signal denoising method according to claim 1, wherein the threshold calculation formula in the step C is:
Figure FDA0002259653920000035
Figure FDA0002259653920000035
其中,可调参数m为正数,可调参数
Figure FDA0002259653920000036
α为正数,
Figure FDA0002259653920000037
σ为各个IMF分量中噪声标准差,σ=median(IMFi)/0.6745,median(·)为求中位数;
Figure FDA0002259653920000038
Among them, the adjustable parameter m is a positive number, and the adjustable parameter
Figure FDA0002259653920000036
α is a positive number,
Figure FDA0002259653920000037
σ is the noise standard deviation in each IMF component, σ=median(IMF i )/0.6745, median( ) is the median;
Figure FDA0002259653920000038
10.如权利要求1所述的心电信号去噪方法,其特征在于,所述步骤D中所述信号重构计算式为
Figure FDA0002259653920000039
其中,y'(t)表示去噪后的信号。
10. The method for denoising an ECG signal according to claim 1, wherein the signal reconstruction calculation formula in the step D is:
Figure FDA0002259653920000039
Among them, y'(t) represents the denoised signal.
CN201911070409.XA 2019-11-04 2019-11-04 ECG signal denoising method based on fusion of improved EMD and threshold method Active CN110680308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911070409.XA CN110680308B (en) 2019-11-04 2019-11-04 ECG signal denoising method based on fusion of improved EMD and threshold method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911070409.XA CN110680308B (en) 2019-11-04 2019-11-04 ECG signal denoising method based on fusion of improved EMD and threshold method

Publications (2)

Publication Number Publication Date
CN110680308A true CN110680308A (en) 2020-01-14
CN110680308B CN110680308B (en) 2021-04-20

Family

ID=69116188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911070409.XA Active CN110680308B (en) 2019-11-04 2019-11-04 ECG signal denoising method based on fusion of improved EMD and threshold method

Country Status (1)

Country Link
CN (1) CN110680308B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111643068A (en) * 2020-05-07 2020-09-11 长沙理工大学 Electrocardiosignal denoising algorithm, electrocardiosignal denoising equipment and storage medium based on EMD and energy thereof
CN112364291A (en) * 2020-11-17 2021-02-12 哈工大机器人(合肥)国际创新研究院 Pre-filtering extreme point optimization set empirical mode decomposition method and device
CN113253300A (en) * 2021-06-18 2021-08-13 湖南国天电子科技有限公司 Optical echo signal denoising method and system for laser cloud measuring radar machine
CN113503915A (en) * 2021-07-01 2021-10-15 北京工商大学 Pollutant data prediction method and device, storage medium and electronic equipment
CN113616213A (en) * 2021-07-29 2021-11-09 山东大学 Electrocardiosignal denoising method, equipment and storage medium based on BP neural network and improved EMD method
CN114469124A (en) * 2022-01-30 2022-05-13 北京理工大学 Method for identifying abnormal electrocardiosignals in motion process
CN115881276A (en) * 2023-02-22 2023-03-31 合肥工业大学 Time/frequency double barcode feature image generation method and storage medium of electrocardiographic signal
CN117420346A (en) * 2023-12-19 2024-01-19 东莞市兴开泰电子科技有限公司 Circuit protection board overcurrent value detection method and system
CN117435907A (en) * 2023-08-14 2024-01-23 北京体育大学 A sports record detection method and device based on data analysis
CN119130976A (en) * 2024-09-06 2024-12-13 南京工业大学 A method for characterization and assessment of marine corrosion under paint based on pulsed eddy current thermography and BEMD noise reduction

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853242A (en) * 2010-06-23 2010-10-06 哈尔滨工业大学 False alarm filtering method of equipment or system internal test signal based on empirical mode decomposition
CN104702244A (en) * 2013-12-05 2015-06-10 中国科学院深圳先进技术研究院 Adaptive filter for filtering power frequency interference in electromyography signal based on EEMD (Ensemble Empirical Mode Decomposition) algorithm
CN105030232A (en) * 2015-06-30 2015-11-11 广东工业大学 Baseline drift correction method for electrocardiosignal
CN107885940A (en) * 2017-11-10 2018-04-06 吉林大学 A kind of signal characteristic extracting methods for distributed optical fiber vibration sensing system
CN108288058A (en) * 2018-04-12 2018-07-17 大连理工大学 A kind of improved wavelet threshold knee joint swinging signal Denoising Algorithm
CN109589114A (en) * 2018-12-26 2019-04-09 杭州电子科技大学 Myoelectricity noise-eliminating method based on CEEMD and interval threshold
CN109785854A (en) * 2019-01-21 2019-05-21 福州大学 The sound enhancement method that a kind of empirical mode decomposition and wavelet threshold denoising combine
CN109998527A (en) * 2019-04-09 2019-07-12 湖北工业大学 A kind of heart disease detection method based on multi-scale entropy

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853242A (en) * 2010-06-23 2010-10-06 哈尔滨工业大学 False alarm filtering method of equipment or system internal test signal based on empirical mode decomposition
CN104702244A (en) * 2013-12-05 2015-06-10 中国科学院深圳先进技术研究院 Adaptive filter for filtering power frequency interference in electromyography signal based on EEMD (Ensemble Empirical Mode Decomposition) algorithm
CN105030232A (en) * 2015-06-30 2015-11-11 广东工业大学 Baseline drift correction method for electrocardiosignal
CN107885940A (en) * 2017-11-10 2018-04-06 吉林大学 A kind of signal characteristic extracting methods for distributed optical fiber vibration sensing system
CN108288058A (en) * 2018-04-12 2018-07-17 大连理工大学 A kind of improved wavelet threshold knee joint swinging signal Denoising Algorithm
CN109589114A (en) * 2018-12-26 2019-04-09 杭州电子科技大学 Myoelectricity noise-eliminating method based on CEEMD and interval threshold
CN109785854A (en) * 2019-01-21 2019-05-21 福州大学 The sound enhancement method that a kind of empirical mode decomposition and wavelet threshold denoising combine
CN109998527A (en) * 2019-04-09 2019-07-12 湖北工业大学 A kind of heart disease detection method based on multi-scale entropy

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张红 等: "《一种用CEEMDAN和排列熵去除脉搏信号噪声的方法》", 《中国科技论文》 *
王亚东等: "《基于LS-SVM回归对EMD中端点效应的研究》", 《河南城建学院学报》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111643068A (en) * 2020-05-07 2020-09-11 长沙理工大学 Electrocardiosignal denoising algorithm, electrocardiosignal denoising equipment and storage medium based on EMD and energy thereof
CN111643068B (en) * 2020-05-07 2023-05-23 长沙理工大学 ECG signal denoising algorithm, equipment and storage medium based on EMD and its energy
CN112364291A (en) * 2020-11-17 2021-02-12 哈工大机器人(合肥)国际创新研究院 Pre-filtering extreme point optimization set empirical mode decomposition method and device
CN112364291B (en) * 2020-11-17 2024-05-14 哈工大机器人(合肥)国际创新研究院 Empirical mode decomposition method and device for pre-filtering extreme point optimization set
CN113253300A (en) * 2021-06-18 2021-08-13 湖南国天电子科技有限公司 Optical echo signal denoising method and system for laser cloud measuring radar machine
CN113503915A (en) * 2021-07-01 2021-10-15 北京工商大学 Pollutant data prediction method and device, storage medium and electronic equipment
CN113616213B (en) * 2021-07-29 2023-02-28 山东大学 Electrocardiosignal denoising method, electrocardiosignal denoising device and electrocardiosignal denoising storage medium based on BP neural network and improved EMD method
CN113616213A (en) * 2021-07-29 2021-11-09 山东大学 Electrocardiosignal denoising method, equipment and storage medium based on BP neural network and improved EMD method
CN114469124A (en) * 2022-01-30 2022-05-13 北京理工大学 Method for identifying abnormal electrocardiosignals in motion process
CN114469124B (en) * 2022-01-30 2024-04-09 北京理工大学 Method for identifying abnormal electrocardiosignals in movement process
CN115881276A (en) * 2023-02-22 2023-03-31 合肥工业大学 Time/frequency double barcode feature image generation method and storage medium of electrocardiographic signal
CN117435907A (en) * 2023-08-14 2024-01-23 北京体育大学 A sports record detection method and device based on data analysis
CN117420346A (en) * 2023-12-19 2024-01-19 东莞市兴开泰电子科技有限公司 Circuit protection board overcurrent value detection method and system
CN117420346B (en) * 2023-12-19 2024-02-27 东莞市兴开泰电子科技有限公司 Circuit protection board overcurrent value detection method and system
CN119130976A (en) * 2024-09-06 2024-12-13 南京工业大学 A method for characterization and assessment of marine corrosion under paint based on pulsed eddy current thermography and BEMD noise reduction

Also Published As

Publication number Publication date
CN110680308B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN110680308B (en) ECG signal denoising method based on fusion of improved EMD and threshold method
Rakshit et al. An efficient ECG denoising methodology using empirical mode decomposition and adaptive switching mean filter
Smital et al. Adaptive wavelet wiener filtering of ECG signals
CN103405227B (en) Double-layer morphological filter based electrocardiosignal preprocessing method
CN108113665B (en) A method for automatic noise reduction of ECG signals
Malghan et al. A review on ECG filtering techniques for rhythm analysis
CN102499670A (en) Electrocardiogram baseline drifting correction method based on robust estimation and intrinsic mode function
Singh et al. ECG signal denoising based on empirical mode decomposition and moving average filter
CN117158999B (en) A method and system for denoising EEG signals based on PPMCC and adaptive VMD
CN108272451A (en) A kind of QRS wave recognition methods based on improvement wavelet transformation
CN102973264A (en) Electrocardiosignal preprocessing method based on morphological multiresolution decomposition
Butt et al. Denoising practices for electrocardiographic (ECG) signals: a survey
CN116720056A (en) An ECG signal reconstruction method based on enhanced decoding AE-GAN
Kaur et al. An efficient R-peak detection using Riesz fractional-order digital differentiator
El Bouny et al. Convolutional denoising auto-encoder based awgn removal from ecg signal
Rakshit et al. An improved EMD based ECG denoising method using adaptive switching mean filter
Islam et al. Wavelet based denoising algorithm of the ECG signal corrupted by WGN and Poisson noise
CN113040784B (en) An EMG Noise Filtering Method for ECG Signals
CN107212881B (en) T-wave electricity alternative detection method
CN117243583A (en) Ballistocardiogram signal noise reduction method based on EEMD-DFA-TFPF
CN115105088B (en) Improved electrocardiosignal denoising method based on wavelet domain sparse characteristic
CN109602416A (en) A method for ECG signal combined baseline correction and noise reduction
Kaur et al. Adaptive wavelet thresholding for noise reduction in electrocardiogram (ECG) signals
Gon et al. Removal of noises from an ECG signal using an adaptive S-median thresholding technique
Malhotra et al. A real time wavelet filtering for ECG baseline wandering removal

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