repairing method for electrocardio-missing R wave collected on automobile steering wheel

文档序号:1777380 发布日期:2019-12-06 浏览:25次 中文

阅读说明:本技术 汽车方向盘上采集心电缺失r波的修复方法 (repairing method for electrocardio-missing R wave collected on automobile steering wheel ) 是由 丁云锋 于 2019-08-13 设计创作,主要内容包括:本发明公开了一种汽车方向盘上采集心电缺失R波的修复方法,在局部缺失的心电数据中尽可能多地实时插入合适的心电R波的方法,对缺失1到2个R波的情况的心电数据进行缺失修复。(the invention discloses a method for repairing electrocardio-missing R waves collected on an automobile steering wheel, which is a method for inserting proper electrocardio-R waves into local missing electrocardio data as much as possible in real time and carrying out missing repair on the electrocardio data missing 1 to 2R waves.)

1. A method for repairing the electrocardio-missing R waves collected on an automobile steering wheel is characterized in that firstly, the past measured electrocardio R waves are set to be rj-1, and rj-L, the current measured electrocardio R waves are rj, and L is the number of a section of measured normal electrocardio R waves (L takes a value of 60-100), and specifically, the method comprises the following steps of:

the method comprises the following steps: and judging whether R wave is missing or not, setting the threshold value for finding out the electrocardio R wave detection error, wherein the threshold value can be set to be 1500ms generally, judging that no electrocardio R wave is missing when rj is measured in the R wave and is less than or equal to the R wave, queuing the rj into an electrocardio R wave buffer area in a first-in first-out mode, and outputting y as rj.

Step 2: when rj is measured in the R wave to exceed, the electrocardio R wave is judged to be missing. When the electrocardio R wave is absent, the input variable xj is changed into a data set:

x=[r/2,r,...,r] (1)

Step three: recalculating current inputs and outputs

Initialization input x0 and output y 0:

Wherein xmax and xmin respectively correspond to the maximum value, the average value and the minimum value in xj;

And iteratively calculating an output estimation value, wherein the formula for iteratively calculating the kth input xk and the output yk is as follows:

y=y-bt(k=1,...,K) (5)

wherein wk and tk are calculated by equations (6) and (7)

t=xw(k=1,...,K) (7)

pk and bk are calculated by equations (8) and (9):

When the iteration is carried out until K is equal to K, yK is output as a preliminary estimation value;

step four: error correction values were calculated assuming that the first j-1R-waves were normal during the continuous test. When a loss occurs at the jth R-wave, then the corrected error ej, j-1 between the jth R-wave and the jth-1R-wave is defined as:

e=|r-r| (10)

step five: correcting the estimated output value to obtain a final repair output y:

y=y+e (11)。

2. the method for repairing the electrocardiographic loss R wave acquired on the automobile steering wheel according to claim 1, wherein the steps for repairing the two electrocardiographic R wave losses are as follows:

The method comprises the following steps: and when detecting that the jth electrocardio R wave is missing, the corresponding jth electrocardio R wave is repaired by continuously adopting a single electrocardio R wave missing repairing method.

Step two: when the j +1 th rj +1 measured in the R wave is less than or equal to the threshold, judging that no electrocardio R wave is missing at the moment, queuing the rj +1 into an electrocardio R wave buffer area in a first-in first-out mode, and outputting that the output is y ═ rj + 1.

step three: when the (j + 1) th rj +1 measured in the R wave exceeds, the electrocardio R wave is judged to be missing, the input variable xj +1 is changed into a data set:

x=[r/3,r,...,r] (12)

Step four: recalculating the current input and output, initializing input x0 and output y0 when K is 0, iteratively calculating an output estimated value when K is 1.

step four: error correction values are calculated assuming that the first j R-waves are normal during the continuous detection process. When a loss occurs at the j +1 th R-wave, then the corrected error ej +1, j between the j +1 th R-wave and the j th R-wave is defined as:

e=|r-r| (13)

step 6: correcting the estimated output value to obtain a final repair output y:

y=y+e (14)。

Technical Field

the invention relates to the technical field of automobiles, in particular to a method for repairing electrocardio-missing R waves collected on an automobile steering wheel.

background

In the actual driving process, when electrocardiosignals are collected by using electrodes on a steering wheel of an automobile, the situation of data loss in the collection sometimes occurs because the automobile has large vibration. When the electrocardio R wave is absent, the data analysis of the next 2-3 minutes is influenced, and finally the prediction of fatigue and cardiovascular diseases is seriously influenced. Obviously, the local deletion of the electrocardiographic data can seriously affect the result of the later-stage data analysis, so that the deletion repair of the electrocardiographic data is very important.

disclosure of Invention

Aiming at the problems, the invention provides a method for repairing the electrocardio-missing R waves collected on the steering wheel of the automobile, and provides a detailed repairing scheme for the condition of missing 1 to 2R waves.

in order to realize the technical scheme, the invention provides a method for repairing the electrocardio-missing R wave collected on an automobile steering wheel, which comprises the following steps of firstly setting the past measured electrocardio R wave as rj-1,.. and rj-L, setting the current measured electrocardio R wave as rj, and setting L as the number of a section of measured normal electrocardio R wave (L takes a value of 60-100), and specifically repairing the single electrocardio R wave missing:

The method comprises the following steps: and judging whether R wave is missing or not, setting the threshold value for finding out the electrocardio R wave detection error, wherein the threshold value can be set to be 1500ms generally, judging that no electrocardio R wave is missing when rj is measured in the R wave and is less than or equal to the R wave, queuing the rj into an electrocardio R wave buffer area in a first-in first-out mode, and outputting y as rj.

step two: when rj is measured in the R wave to exceed, the electrocardio R wave is judged to be missing. When the electrocardio R wave is absent, the input variable xj is changed into a data set:

x=[r/2,r,...,r] (1)

step three: recalculating current inputs and outputs

Initialization input x0 and output y 0:

Wherein xmax and xmin respectively correspond to the maximum value, the average value and the minimum value in xj;

And iteratively calculating an output estimation value, wherein the formula for iteratively calculating the kth input xk and the output yk is as follows:

y=y-bt(k=1,...,K) (5)

wherein wk and tk are calculated by equations (6) and (7)

t=xw(k=1,...,K) (7)

pk and bk are calculated by equations (8) and (9):

when the iteration is carried out until K is equal to K, yK is output as a preliminary estimation value;

step four: calculating error correction values, and assuming that the first j-1R waves are normal in the continuous detection process, when the loss occurs at the jth R wave, defining the correction error ej, j-1 between the jth R wave and the jth-1R wave as:

e=|r-r| (10)

Step five: correcting the estimated output value to obtain a final repair output y:

y=y+e (11)

The further improvement is that the steps for repairing the two electrocardio R wave deletions are as follows:

the method comprises the following steps: and when detecting that the jth electrocardio R wave is missing, the corresponding jth electrocardio R wave is repaired by continuously adopting a single electrocardio R wave missing repairing method.

Step two: when the j +1 th rj +1 measured in the R wave is less than or equal to the threshold, judging that no electrocardio R wave is missing at the moment, queuing the rj +1 into an electrocardio R wave buffer area in a first-in first-out mode, and outputting that the output is y ═ rj + 1.

Step three: when the (j + 1) th rj +1 measured in the R wave exceeds, the electrocardio R wave is judged to be missing, the input variable xj +1 is changed into a data set:

x=[r/3,r,...,r] (12)

Step four: recalculating the current input and output, initializing input x0 and output y0 when K is 0, iteratively calculating an output estimated value when K is 1.

step four: error correction values are calculated assuming that the first j R-waves are normal during the continuous detection process. When a loss occurs at the j +1 th R-wave, then the corrected error ej +1, j between the j +1 th R-wave and the j th R-wave is defined as:

e=|r-r| (13)

Step 6: correcting the estimated output value to obtain a final repair output y:

y=y+e (14)

The invention has the beneficial effects that: the invention provides a method for inserting proper electrocardio R waves into local missing electrocardio data in real time as much as possible, and provides a detailed repair scheme for the condition of missing 1 to 2R waves respectively.

drawings

FIG. 1 is a flow chart of the present invention.

Detailed Description

In order to further understand the present invention, the following detailed description will be made with reference to the following examples, which are only used for explaining the present invention and are not to be construed as limiting the scope of the present invention.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于奇异值分解的心电信号压缩及识别方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!