Dynamic electrocardiosignal baseline drift correction method for jump mutation noise

文档序号:1494689 发布日期:2020-02-07 浏览:9次 中文

阅读说明:本技术 一种跳跃突变噪声的动态心电信号基线漂移校正方法 (Dynamic electrocardiosignal baseline drift correction method for jump mutation noise ) 是由 谢小云 王英龙 刘辉 舒明雷 周书旺 刘照阳 于 2019-10-25 设计创作,主要内容包括:一种跳跃突变噪声的动态心电信号基线漂移校正方法,通过准确检测心电信号中包含的跳跃突变区域,并分段单独处理,可以改善传统滤波方法处理该类区域时基线提取不准确导致的心电信号变形问题。适用于各种含有基线漂移的心电信号的基线漂移校正处理,尤其是可穿戴式的动态心电信号。得到的基线漂移校正信号的波形明显优于其他方法。(A jump mutation noise dynamic electrocardiosignal baseline drift correction method can solve the problem of electrocardiosignal deformation caused by inaccurate baseline extraction when a traditional filtering method is used for processing a jump mutation region contained in an electrocardiosignal through accurately detecting the jump mutation region and carrying out segmentation and independent processing. The method is suitable for baseline drift correction processing of various electrocardiosignals containing baseline drift, in particular to wearable dynamic electrocardiosignals. The waveform of the resulting baseline drift correction signal is significantly better than other methods.)

1. A dynamic electrocardiosignal baseline drift correction method for jump mutation noise is characterized by comprising the following steps:

a) detecting a jumping and mutating region in the electrocardiosignal by using a computer to obtain a mild changing region and a jumping and mutating region in the electrocardiosignal;

b) the jump mutation region is independently processed, and a baseline bw _ u in the jump mutation region is extracted;

c) extracting a base line bw _ c in a gradual change area, and smoothing the extracted base line by using a moving average method;

d) and merging the extracted base line bw _ u in the jump mutation area and the base line bw _ c in the gradual change area to obtain an initial base line bw after merging, and obtaining corrected data, wherein the error between the jump mutation area and the connection point of the gradual change area is smoothed by a filtering combination method.

2. The baseline wander correction method for dynamic electrocardiographic signals of jump and jump noise according to claim 1, characterized in that: step a) is processed by the following steps:

a-1) filtering electrocardiosignals y containing baseline drift and jump mutation noise in the electrocardiosignals by using a median filter with the width of 200ms and 600ms by using a computer to obtain baseline signals y' without the influence of R waves;

a-2) by the formula

Figure RE-FDA0002282230480000011

a-3) defines a threshold thr _ min, which is 1.1 × min (L)i) Will signal LiIn satisfy LiAdding the region more than thr _ min into a candidate set, and not satisfying LiAdding a gentle change area into the area more than thr _ min, and calculating a converted signal LiThe fragrance concentration entropy H of the ith candidate area is calculatediAnd amplitude variation range AmpiDefining an amplitude variation threshold as thr _ a;

a-4) traversing each region in the candidate set, the condition H will be satisfiediH and AmpiRegions > thr _ a are added to the jump mutation region, and the condition H will not be metiH and AmpiThe region > thr _ a adds a gradual change region.

3. The baseline wander correction method for dynamic electrocardiographic signals of jump and jump noise according to claim 2, characterized in that: smoothing the median filtering baseline signal y' by using a moving average method in the step b) to obtain a baseline bw _ u in the jump mutation region.

4. The baseline wander correction method for dynamic electrocardiographic signals of jump and jump noise according to claim 2, characterized in that: in step c), each abrupt change region is processed independently by traversing the abrupt change regions, a base line in the region is defined as (1-thr _ r) times a noise-containing signal in the region, a processed base line is defined as bw _ c, wherein thr _ r is a scaling rate,

Figure RE-FDA0002282230480000021

5. the baseline wander correction method for dynamic electrocardiographic signals of jump and jump noise according to claim 2, characterized in that: step d) is processed by the following steps:

d-1) by the formula

Figure RE-FDA0002282230480000022

d-2) by the formulaCalculating a use width of wfAnd smoothing the initial smooth baseline bw1 by a smoothing filtering method of sample points to obtain a final baseline bw ', and calculating by using a formula y-bw' to obtain a final corrected signal.

6. The baseline wander correction method for dynamic electrocardiographic signals of jump and jump noise according to claim 2, characterized in that: in step a-3) by the formula

Figure RE-FDA0002282230480000025

Technical Field

The invention relates to the technical field of electrocardiosignal noise processing, in particular to a dynamic electrocardiosignal baseline drift correction method for jump mutation noise.

Background

Baseline wander is a common noise in cardiac electrical signals with frequencies less than 1 Hz. Baseline correction is important for correct diagnosis of ECG abnormalities such as ST-segment elevation or depression. The current common baseline correction methods include high-pass filtering, median filtering, wavelet transformation, spline interpolation, mathematical morphology filtering, adaptive filtering and the like.

With the wide use of dynamic electrocardiograph monitoring equipment such as Holter and the like, particularly the rapid development of miniaturized wearable and portable electrocardiograph monitoring terminals in recent years, motion interference becomes one of the main noise sources of electrocardiograph signals, baseline drift becomes more serious, the amplitude is increased, the frequency is increased, and the amplitude and the frequency are overlapped with the frequency of normal electrocardiograph signals to a certain extent. More seriously, the impedance between the skin of the human body and the electrodes rapidly increases or decreases with displacement changes under large amplitude movements, resulting in sudden jump changes in the amplitude of the acquired signal in a short time of less than 100ms, which may be as high as 0.5mV or more (as shown in the area A, B, C of FIG. 1).

However, the baseline correction methods do not process local signal features separately, and are not sensitive to jump mutation regions in baseline extraction, so that a severe baseline drift phenomenon generated in the mutation regions cannot be effectively corrected. Only the median filtering method can detect the position where the mutation occurs and correct it. But the median filtering method is inaccurate in positioning the mutation region or cannot detect and process the complete mutation region. Therefore, the correct identification and effective elimination of the jump mutation region in the dynamic electrocardiosignal is a great challenge in the baseline drift correction stage of the dynamic electrocardiosignal.

Disclosure of Invention

In order to overcome the defects of the technology, the invention provides the dynamic electrocardiosignal baseline drift correction method which can accurately position the region with jump mutation and obtain a better baseline drift correction result by independently processing the jump mutation region and the gentle change region in a segmented manner.

The technical scheme adopted by the invention for overcoming the technical problems is as follows:

a dynamic electrocardiosignal baseline drift correction method for jump mutation noise comprises the following steps:

a) detecting a jumping and mutating region in the electrocardiosignal by using a computer to obtain a mild changing region and a jumping and mutating region in the electrocardiosignal;

b) the jump mutation region is independently processed, and a baseline bw _ u in the jump mutation region is extracted;

c) extracting a base line bw _ c in a gradual change area, and smoothing the extracted base line by using a moving average method;

d) and merging the extracted base line bw _ u in the jump mutation area and the base line bw _ c in the gradual change area to obtain an initial base line bw after merging, and obtaining corrected data, wherein the error between the jump mutation area and the connection point of the gradual change area is smoothed by a filtering combination method.

Further, step a) is processed by the following steps:

a-1) filtering electrocardiosignals y containing baseline drift and jump mutation noise in the electrocardiosignals by using a median filter with the width of 200ms and 600ms by using a computer to obtain baseline signals y' without the influence of R waves;

a-2) by the formula

Figure BDA0002247125430000021

The baseline signal y' is subjected to signal length conversion processing with the width of 30ms to obtain a signal L with obvious P wave and T wave jump-inhibited mutation regionsiWhere w is 30ms, i is {0,1,2w},NwFor the number of windows in the segment, Δ yk=yk-yk-1Fs is the signal sampling frequency, ykIs the amplitude of the kth sampling point in the electrocardiosignal y, yk-1The amplitude of the kth-1 sampling point in the electrocardiosignal y is obtained;

a-3) defines a threshold thr _ min, which is 1.1 × min (L)i) Will signal LiIn satisfy LiAdding the region more than thr _ min into a candidate set, and not satisfying LiAdding a gentle change area into the area more than thr _ min, and calculating a converted signal LiThe fragrance concentration entropy H of the ith candidate area is calculatediAnd amplitude variation range AmpiDefining an amplitude variation threshold as thr _ a;

a-4) traversing each region in the candidate set, the condition H will be satisfiediH and AmpiRegions > thr _ a are added to the jump mutation region, and the condition H will not be metiH and AmpiThe region > thr _ a adds a gradual change region.

Further, smoothing the median filtered baseline signal y' by using a moving average method in the step b), so as to obtain a baseline bw _ u in the jump mutation region.

Further, in step c), each abrupt change region is processed separately by traversing the abrupt change region, a base line in the region is defined as (1-thr _ r) the noisy signal in the region, a processed base line is defined as bw _ c, wherein thr _ r is a scaling rate,

further, step d) is processed by the following steps:

d-1) by the formula

Figure BDA0002247125430000032

An initial smooth baseline bw1 was calculated, where S is 0.1 fs, where

Figure BDA0002247125430000033

Is a morphological open operation, and is a morphological close operation;

d-2) by the formulaCalculating a use width of wfAnd smoothing the initial smooth baseline bw1 by a smoothing filtering method of sample points to obtain a final baseline bw ', and calculating by using a formula y-bw' to obtain a final corrected signal.

Further, in step a-3), the formula is used

Figure BDA0002247125430000035

Calculating the aroma entropy H, wherein the signal is divided into n sections according to the amplitude, j is {0,1, 2.. K }, PjA probability value for the transformed signal belonging to the j-th segment; by the formula

Figure BDA0002247125430000036

Calculating the fragrance concentration entropy H of the ith candidate regioniIn which the signal is divided into k sections, P, according to its amplitudeLjThe probability value of the jth segment in the candidate area i is obtained; by the formula Ampi=abs(yi1-yiw) Calculating the amplitude variation range AmpiIn the formula yi1Is the value of the first element of the i-th region, yiwIs the value of the last element w of the ith region.

The invention has the beneficial effects that: by accurately detecting jump mutation areas contained in the electrocardiosignals and performing segmentation and independent processing, the problem of electrocardiosignal deformation caused by inaccurate baseline extraction when the traditional filtering method is used for processing the areas can be solved. The method is suitable for baseline drift correction processing of various electrocardiosignals containing baseline drift, in particular to wearable dynamic electrocardiosignals. The waveform of the resulting baseline drift correction signal is significantly better than other methods.

Drawings

FIG. 1 is a diagram illustrating an exemplary jump mutation region in an ECG signal;

FIG. 2 is a flowchart of the detection of the jump mutation region according to the present invention;

FIG. 3 is a flow chart of the gradual change region and jump change region baseline extraction of the present invention;

FIG. 4 is a flow chart of the smoothed baseline of the present invention;

FIG. 5 is a flow chart of the method of the present invention.

Detailed Description

The invention will be further explained with reference to fig. 1 and 2.

A dynamic electrocardiosignal baseline drift correction method for jump mutation noise comprises the following steps:

a) detecting a jumping and mutating region in the electrocardiosignal by using a computer to obtain a mild changing region and a jumping and mutating region in the electrocardiosignal;

b) the jump mutation region is independently processed, and a baseline bw _ u in the jump mutation region is extracted;

c) extracting a base line bw _ c in a gradual change area, and smoothing the extracted base line by using a moving average method;

d) and merging the extracted base line bw _ u in the jump mutation area and the base line bw _ c in the gradual change area to obtain an initial base line bw after merging, and obtaining corrected data, wherein the error between the jump mutation area and the connection point of the gradual change area is smoothed by a filtering combination method.

By accurately detecting jump mutation areas contained in the electrocardiosignals and performing segmentation and independent processing, the problem of electrocardiosignal deformation caused by inaccurate baseline extraction when the traditional filtering method is used for processing the areas can be solved. The method is suitable for baseline drift correction processing of various electrocardiosignals containing baseline drift, in particular to wearable dynamic electrocardiosignals. The waveform of the resulting baseline drift correction signal is significantly better than other methods.

Further, as shown in fig. 2, step a) is processed by the following steps:

a-1) filtering electrocardiosignals y containing baseline drift and jump mutation noise in the electrocardiosignals by using a median filter with the width of 200ms and 600ms by using a computer to obtain baseline signals y' without the influence of R waves;

a-2) by the formula

Figure BDA0002247125430000041

The baseline signal y' is subjected to signal length conversion processing with the width of 30ms to obtain a signal L with obvious P wave and T wave jump-inhibited mutation regionsiWhere w is 30ms, i is {0,1,2w},NwFor the number of windows in the segment, Δ yk=yk-yk-1Fs is the signal sampling frequency, ykIs the amplitude of the kth sampling point in the electrocardiosignal y, yk-1The amplitude of the kth-1 sampling point in the electrocardiosignal y is obtained;

a-3) defines a threshold thr _ min, which is 1.1 × min (L)i) Will signal LiIn satisfy LiAdding the region more than thr _ min into a candidate set, and not satisfying LiAdding a gentle change area into the area more than thr _ min, and calculating a converted signal LiThe fragrance concentration entropy H,Calculating the fragrance concentration entropy H of the ith candidate regioniAnd amplitude variation range AmpiDefining an amplitude variation threshold as thr _ a;

a-4) traversing each region in the candidate set, the condition H will be satisfiediH and AmpiRegions > thr _ a are added to the jump mutation region, and the condition H will not be metiH and AmpiThe region > thr _ a adds a gradual change region.

Further, as shown in fig. 3, the baseline signal y' of the median filter is smoothed in step b) by using a moving average method, so as to obtain the baseline bw _ u in the jump mutation region.

Further, as shown in fig. 3, in step c), each abrupt change region is processed individually by traversing the abrupt change region, a base line in the region is defined as (1-thr _ r) × the noisy signal in the region, and the processed base line is defined as bw _ c, where thr _ r is the scaling rate,

Figure BDA0002247125430000051

further, as shown in fig. 4, step d) is processed by the following steps:

d-1) by the formula

Figure BDA0002247125430000052

An initial smooth baseline bw1 was calculated, where S is 0.1 fs, where

Figure BDA0002247125430000056

The operation is morphological open operation and morphological close operation.

Figure BDA0002247125430000053

Namely, the bw is firstly subjected to the corrosion operation and then subjected to the expansion operation.

Figure BDA0002247125430000054

Namely, the expansion operation is carried out on bw firstly by S, and then the corrosion operation is carried out.

d-2) by the formula

Figure BDA0002247125430000055

Calculating a use width of wfAnd smoothing the initial smooth baseline bw1 by a smoothing filtering method of sample points to obtain a final baseline bw ', and calculating by using a formula y-bw' to obtain a final corrected signal.

Further, in step a-3), the formula is usedCalculating the aroma entropy H, wherein the signal is divided into n sections according to the amplitude, j is {0,1, 2.. K }, PjA probability value for the transformed signal belonging to the j-th segment; by the formula

Figure BDA0002247125430000062

Calculating the fragrance concentration entropy H of the ith candidate regioniIn which the signal is divided into k sections, P, according to its amplitudeLjThe probability value of the jth segment in the candidate area i is obtained; by the formula Ampi=abs(yi1-yiw) Calculating the amplitude variation range AmpiIn the formula yi1Is the value of the first element of the i-th region, yiwIs the value of the last element w of the ith region.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于多传感器融合的下肢运动位姿快速预测系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!