12-lead T wave extraction method fusing U-net network and filtering method

文档序号:836931 发布日期:2021-04-02 浏览:15次 中文

阅读说明:本技术 一种融合U-net网络和滤波方法的12导联T波提取方法 (12-lead T wave extraction method fusing U-net network and filtering method ) 是由 朱俊江 王雨轩 陈红岩 张青波 于 2020-11-11 设计创作,主要内容包括:本发明涉及一种融合U-net网络和滤波方法的12导联T波提取方法,对T波波峰位置的预测过程分为两部分,对两部分的结果进行综合评判得到最终预测值。其中,第一部分用每一个导联训练好的U-net网络模型得到12个T波波峰位置向量的结果;第二部分对每一导联的心电数据进行相同的滤波的方式得到的12个T波波峰位置向量的结果;将最终得到的24个T波波峰位置与每条心电信号的R波波峰位置向量作差后求方差,方差最小即为最终预测的T波波峰位置。(The invention relates to a 12-lead T wave extraction method fusing a U-net network and a filtering method, which divides the prediction process of the T wave peak position into two parts, and comprehensively judges the results of the two parts to obtain the final predicted value. The first part obtains the results of 12T wave peak position vectors by using a U-net network model trained by each lead; the second part obtains the result of 12T wave peak position vectors by carrying out the same filtering mode on the electrocardio data of each lead; and (4) calculating the variance after the difference is made between the finally obtained 24T wave peak positions and the R wave peak position vector of each electrocardiosignal, wherein the minimum variance is the finally predicted T wave peak position.)

1. A12-lead T wave extraction method fusing a U-net network and a filtering method is characterized by comprising the following steps:

s1, collecting a plurality of 12-lead electrocardiosignals which contain different T-wave waveforms and represent different arrhythmia types, wherein the 12-lead electrocardiosignals are marked with T-wave peaks and R-wave peaks;

s2, marking N sampling points of each electrocardiosignal of 12 leads according to the T wave peak position information marked on each electrocardiosignal through data preprocessing, and marking a data label which represents the T wave band position for the corresponding electrocardiosignal;

s3, forming the electrocardiosignal data of each lead setting data label into a training set, and training a U-net network of the corresponding lead;

s4, acquiring real-time 12-lead electrocardiosignal data to be detected, preprocessing the data according to S2, inputting the preprocessed data into a U-net network model of a corresponding lead, outputting N x 1 label vectors corresponding to the 12-lead electrocardiosignal, and identifying all T wave bands of the 12-lead electrocardiosignal and T wave peak positions corresponding to the T wave bands so as to obtain a first T wave peak position vector Tloc _1 corresponding to each lead;

s5: carrying out filtering processing on the 12-lead electrocardiosignal data to be detected in real time after preprocessing according to S2, identifying the T wave peak position of the 12-lead electrocardiosignal after filtering processing by utilizing R wave peak position information, and outputting a second T wave peak position vector Tloc _2 corresponding to each lead;

s6: solving a variance var _1 after the difference is made between the Tloc _1 and the R wave peak position vector;

s7: solving a variance var _2 after the difference is made between the Tloc _2 and the R wave peak position vector;

s8: if var _1 is less than var _2, the final T wave peak position is judged to be Tloc _ 1; and if var _1> var _2, the determined final T wave peak position is Tloc _ 2.

2. The U-net network and filtering method fused 12-lead T-wave extraction method according to claim 1, wherein the step of identifying all T-wave bands of the 12-lead electrocardiographic signal and T-wave peak positions corresponding to the T-wave bands comprises:

in the output N x 1 label vector, if the label values of m continuous sampling points are greater than a set threshold value, the wave band formed by the continuous set number of sampling points is considered to be a T-wave band, and m is greater than or equal to 50;

and taking a midpoint of each T wave band, wherein the midpoint is the peak position of the corresponding T wave band.

3. The U-net network and filtering method fused 12-lead T-wave extraction method according to claim 1, wherein in S5, the step of identifying the T-wave peak positions includes:

firstly, performing 0.06s window median filtering; secondly, performing median filtering in a 0.06s window; then, 0.1s mean filtering is carried out; and finally, marking the position of the maximum value which appears for the first time within 0.4s after the position of each R wave peak as the position of the T wave peak.

4. The method for extracting 12-lead T-wave fusing U-net network and filtering method according to claim 1, wherein in S6, the step of calculating the variance var _1 after subtracting Tloc _1 and R-wave peak position vector comprises:

s61, if the number of elements in the first T wave crest position vector Tloc _1 is equal to the number of elements in the R wave crest position vector, subtracting the value in the R wave crest position vector and the value in the first T wave crest position vector Tloc _1 in a one-to-one correspondence manner to obtain a new vector, and then calculating the variance of the new vector and marking as var _ 1;

s62, if the number of elements in the first T wave crest position vector Tloc _1 is larger than that in the R wave crest position vector, then R is added to each element value in the R wave crest position vectoriRespectively searching for greater than R in Tloc _1iAnd is closest to RiAnd saving the element values; the saved element values in Tloc _1 form a corrected T wave peak position vector, and then the variance var _1 is solved by adopting the method of S61;

s63, if the number of elements in the first T wave peak position vector Tloc _1 is less than that in the R wave peak position vector, then for each element value T in the T wave peak position vectoriRespectively searching element values which are smaller than Ti and closest to Ti in the R wave peak position vector, and storing the element values; the element values of the stored R-wave peak position vector constitute a corrected R-wave peak position vector, and then the variance var _1 is obtained by using the method of S61.

5. The method for extracting 12-lead T waves fusing a U-net network and a filtering method according to claim 1, wherein the step of calculating the variance var _2 after subtracting Tloc _2 from the R-wave peak position vector comprises:

and performing one-to-one correspondence difference between the value in the R wave peak position vector and the value in Tloc _2 to obtain a new vector, and calculating the variance of the new vector and recording the variance as var _ 2.

6. The U-net network and filtering method fused 12-lead T-wave extraction method according to claim 1, wherein the step of preprocessing the acquired 12-lead electrocardiographic signal data comprises:

firstly, performing wavelet filtering on the acquired electrocardiosignals of each lead;

secondly, according to the T wave peak position information labeled on the electrocardiosignals of each lead, marking the sampling points which are corresponding to the T wave peak positions towards the left 50 and the right 50 as 1, and defaulting the rest sampling points as 0, thereby setting a data label which represents the T wave band position for each electrocardiosignal of each lead.

7. The U-net network and filtering method integrated 12-lead T-wave extraction method according to claim 1, wherein an input layer of the U-net network is sequentially connected to a first convolutional layer and a second convolutional layer;

the output of the second convolution layer is the input of the first lower sampling layer, and the first lower sampling layer is sequentially connected with the third convolution layer and the fourth convolution layer;

the output of the fourth convolution layer is the input of a second down-sampling layer, and the second down-sampling layer is sequentially connected with the fifth convolution layer and the sixth convolution layer;

the output of the sixth convolution layer is the input of a third down-sampling layer, and the third down-sampling layer is sequentially connected with a seventh convolution layer and an eighth convolution layer;

the eighth convolution layer is connected with the first up-sampling layer, and the first up-sampling layer is sequentially connected with the ninth convolution layer and the tenth convolution layer;

the output of the tenth convolutional layer is the input of a second upsampling layer, and the second upsampling layer is sequentially connected with the eleventh convolutional layer and the twelfth convolutional layer;

the output of the twelfth convolutional layer is the input of the third upsampling layer, and the output of the third upsampling layer is sequentially connected with the thirteenth convolutional layer and the fourteenth convolutional layer, wherein the fourteenth convolutional layer is the output layer.

8. A computer storage medium on which a computer program is stored, the computer program being adapted to carry out the method of any one of claims 1-7 when executed by a processor.

Technical Field

The application belongs to the technical field of electrocardiogram waveform extraction, and particularly relates to a 12-lead T wave extraction method fusing a U-net network and a filtering method.

Background

Various signs caused by abnormalities in the cardiac electrical conduction system are called arrhythmias. The electrocardiosignal is an important tool for detecting arrhythmia diseases and is an electric signal generated when the heart of a human body moves. The T wave is used as an important component of an electrocardiographic waveform, reflects the repolarization process of ventricular muscle, physiological and pathological factors can change the form of the T wave, and each T wave change has different clinical significance and contains rich pathological information.

At present, identification aiming at T wave abnormality is widely applied to diagnosis and detection of diseases such as myocardial infarction, coronary heart disease, hypertension and the like. Therefore, the position of the peak of the T wave can be timely and accurately detected and positioned, and the front and back wave forms can be analyzed according to the position, so that the method has important significance for diagnosing corresponding heart diseases.

There have been some studies on extraction algorithms for individual waveforms of an electrocardiogram, for example, extracting ST segments by applying a fixed time window to the electrocardiogram, but this extraction method is not accurate enough when the heart rate varies.

Disclosure of Invention

The technical problem to be solved by the invention is as follows: in order to solve the problem of inaccurate electrocardiogram T wave extraction in the prior art, a 12-lead T wave extraction method which integrates a U-net network and a filtering method is provided.

In order to solve the technical problems, the invention provides a 12-lead T wave extraction method fusing a U-net network and a filtering method, which predicts T wave positions by respectively utilizing a U-net network model and filtering processing, calculates variance with R wave peak positions respectively, performs comprehensive analysis and comparison on variance values obtained by two prediction methods, and finally takes the T wave peak position corresponding to the minimum variance value as a final judgment result.

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

the invention provides a 12-lead T wave extraction method fusing a U-net network and a filtering method, which comprises the following steps:

s1, collecting a plurality of 12-lead electrocardiosignals which contain different T-wave waveforms and represent different arrhythmia types, wherein the 12-lead electrocardiosignals are marked with T-wave peaks and R-wave peaks;

s2, marking N sampling points of each electrocardiosignal of 12 leads according to the T wave peak position information marked on each electrocardiosignal through data preprocessing, and marking a data label which represents the T wave band position for the corresponding electrocardiosignal;

s3, forming the electrocardiosignal data of each lead setting data label into a training set, and training a U-net network of the corresponding lead;

s4, acquiring real-time 12-lead electrocardiosignal data to be detected, preprocessing the data according to S2, inputting the preprocessed data into a U-net network model of a corresponding lead, outputting N x 1 label vectors corresponding to the 12-lead electrocardiosignal, and identifying all T wave bands of the 12-lead electrocardiosignal and T wave peak positions corresponding to the T wave bands so as to obtain a first T wave peak position vector Tloc _1 corresponding to each lead;

s5: carrying out filtering processing on the 12-lead electrocardiosignal data to be detected in real time after preprocessing according to S2, identifying the T wave peak position of the 12-lead electrocardiosignal after filtering processing by utilizing R wave peak position information, and outputting a second T wave peak position vector Tloc _2 corresponding to each lead;

s6: solving a variance var _1 after the difference is made between the Tloc _1 and the R wave peak position vector;

s7: solving a variance var _2 after the difference is made between the Tloc _2 and the R wave peak position vector;

s8: if var _1 is less than var _2, the final T wave peak position is judged to be Tloc _ 1; and if var _1> var _2, the determined final T wave peak position is Tloc _ 2.

A second aspect of the invention provides a computer storage medium having stored thereon a computer program for implementing the method of the first aspect of the invention when executed by a processor.

The invention has the beneficial effects that: the T wave extraction method of the invention integrates U-net network and filtering, and the prediction process of the wave peak position of the 12-lead T wave is divided into two parts, wherein the first part obtains the results of 12T wave peak position vectors by using the U-net network model trained by each lead; the second part obtains the result of 12T wave peak position vectors by carrying out the same filtering mode on the electrocardio data of each lead; and (4) calculating the variance after the difference is made between the finally obtained 24T wave peak positions and the R wave peak position vector of each electrocardiosignal, wherein the minimum variance is the finally predicted T wave peak position. The extraction method can accurately identify the wave peak of the T wave and extract the T wave in the electrocardiogram.

Drawings

The technical solution of the present application is further explained below with reference to the drawings and the embodiments.

FIG. 1 is a flow chart of a method of an embodiment of the present application;

FIG. 2 is a diagram of a specific algorithmic framework for an embodiment of the present application;

fig. 3 is a diagram of a U-net network structure according to an embodiment of the present application.

Detailed Description

It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.

The technical solutions of the present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.

A first embodiment of the present invention provides a 12-lead T-wave extraction method that merges a U-net network and a filtering method, as shown in fig. 1 and 2, including:

s1, collecting a plurality of 12-lead electrocardiosignals which contain different T-wave waveforms and represent different arrhythmia types, wherein the 12-lead electrocardiosignals are marked with T-wave peaks and R-wave peaks;

s2, marking N sampling points of each electrocardiosignal of 12 leads according to the T wave peak position information marked on each electrocardiosignal through data preprocessing, and marking a data label which represents the T wave band position for the corresponding electrocardiosignal;

s3, forming the electrocardiosignal data of each lead setting data label into a training set, and training a U-net network of the corresponding lead;

s4, acquiring real-time 12-lead electrocardiosignal data to be detected, preprocessing the data according to S2, inputting the preprocessed data into a U-net network model of a corresponding lead, outputting N x 1 label vectors corresponding to the 12 leads, and identifying all T wave bands of the 12-lead electrocardiosignal and T wave peak positions corresponding to the T wave bands so as to obtain a first T wave peak position vector Tloc _1 corresponding to each lead;

s5: carrying out filtering processing on the 12-lead electrocardiosignal data to be detected in real time after preprocessing according to S2, identifying the T wave peak position of the 12-lead electrocardiosignal after filtering processing by utilizing R wave peak position information, and outputting a second T wave peak position vector Tloc _2 corresponding to each lead;

s6: solving a variance var _1 after the difference is made between the Tloc _1 and the R wave peak position vector;

s7: solving a variance var _2 after the difference is made between the Tloc _2 and the R wave peak position vector;

s8: if var _1 is less than var _2, the final T wave peak position is judged to be Tloc _ 1; and if var _1> var _2, the determined final T wave peak position is Tloc _ 2.

In the embodiment, 10s electrocardiographic signal data of clinical rest 12 leads, of which nearly 5000 known R-wave peak positions and T-wave peak positions are collected, and the sampling frequency of the electrocardiographic signal is 500 Hz. The length of the acquired electrocardiogram data is 10s, the clinical general measurement time is 1 minute, and a doctor selects a signal with less interference and good quality for diagnosis within 10 seconds. The sampling frequency is 500Hz, if not 500Hz, resampling to 500Hz is needed. The 12 leads are limb leads I, II and III, and the compression limb leads aVR, aVL and aVF and the chest leads V1-V6.

The acquired electrocardiosignal data comprise 12-lead electrocardiosignal data of different T-wave waveforms and different diseases, and the T-wave waveforms comprise waveform types of normal T-wave, low and flat T-wave, high and sharp T-wave, inverted T-wave, cut track T-wave and bidirectional T-wave.

After data acquisition is completed, data preprocessing is required, 5000 sampling points of each electrocardiosignal of each lead are marked through a data preprocessing process, each electrocardiosignal obtains a data label consisting of 5000 numbers, and the position of a T wave band can be identified according to the marking data of each sampling point in the data label.

And forming a training set for the preprocessed 12-lead electrocardiogram data, and training 12U-net networks corresponding to the 12 leads.

For 12-lead electrocardiogram data acquired in real time, after preprocessing, 5000 × 1 12-lead electrocardiogram data are obtained, and are respectively input into a U-net network corresponding to leads, 5000 × 1 label vectors corresponding to the 12 leads are output, and according to the data of the label vectors, all T wave bands of the 12-lead electrocardiogram data and T wave peak positions corresponding to the T wave bands are identified, so that 12 first T wave peak position vectors Tloc _1 corresponding to the 12 leads are obtained.

And performing filtering processing on the 12-lead electrocardiogram data with 5000 × 1 obtained after preprocessing, and identifying the T-wave peak positions by using the R-wave peak position information to obtain 12 second T-wave peak position vectors Tloc _2 corresponding to the 12 leads.

Calculating the variance after respectively making differences between the 12 first T wave peak position vectors Tloc _1 and the R wave peak position vector; calculating the variance after respectively subtracting the 12 second T wave peak position vectors Tloc _2 and the R wave peak position vector; and comprehensively analyzing and comparing the 24 variance values, and finally taking the T wave peak position corresponding to the minimum variance value as a final judgment result.

Optionally, the step of preprocessing the acquired 12-lead electrocardiographic signal data in this embodiment includes:

firstly, performing wavelet filtering on each collected electrocardiosignal of each lead;

secondly, according to the T wave peak position information labeled on the electrocardiosignals of each lead, marking the sampling points which are corresponding to the T wave peak positions towards the left 50 and the right 50 as 1, and setting the default of the rest sampling points as 0, thereby setting a data label which represents the T wave band position for the electrocardiosignals of each lead.

Preprocessing each 10s electrocardiosignal, and performing wavelet filtering; secondly, marking is carried out on each of 5000 points of each electrocardiosignal. In this embodiment, according to the T wave peak position information labeled by the electrocardiographic signal, sampling points at which the T wave peak position goes to the left 50 and the right 50 are both marked as 1, and the other points are all defaulted to 0.

For example, one cardiac signal is labeled with 5000 digital components [ 000000000000000111111111.. 1111000000.. 1111.. 11110000 ], where 111.. indicates that the segment is a band in which T waves exist; denote points other than the T-wave band (non-T-band). In order to facilitate the model training, the labels are subjected to the one-hot operation, the label with the length of 5000 corresponding to each electrocardiosignal is changed into a (5000,2) form, and 5000 rows and 2 columns are provided, wherein each row represents the type of one point.

Optionally, the step of identifying all T-wave bands of the 12-lead electrocardiographic signal and the T-wave peak positions corresponding to the T-wave bands includes:

in the output N x 1 label vector, if the label values of m continuous sampling points are greater than a set threshold value, the wave band formed by the continuous set number of sampling points is considered to be a T-wave band, and m is greater than or equal to 50;

and taking a midpoint of each T wave band, wherein the midpoint is the peak position of the corresponding T wave band.

Taking I lead as an example, the process of predicting the T wave peak position vector (Tloc _1) predicted by the I lead U-net model is as follows (the prediction process of the rest leads is the same):

inputting a clinical I-lead electrocardiosignal to be detected for 10s into a trained I-lead U-net model, outputting a label vector of 5000 x 1 by the I-lead U-net model, and if the label data values (continuous 0.1s) of continuous 50 sampling points in the output label vector are greater than 0.5, determining that the wave band where the 50 sampling points are located is a T-wave band, taking a midpoint of each T-wave band in the T-wave bands, wherein the position corresponding to each midpoint is the position of each T-wave peak.

For example: the model predicts a tag vector of [ 00000000.560.620.750.880.980.980.981111111.. 0.620.420000.. 00000.630.790.950.980.990.990.99111111.. 0.780.320.100000000. ], wherein 50 consecutive points from 0.56-0.62 are greater than 0.5, the segment is considered to be a T-wave band, and assuming that there are 68 points from 0.56-0.42, the 34 th point is found, wherein the 34 th point is indexed 368 in a vector of 5000 lengths, i.e., 368 is the position of the first T-wave peak of the cardiac signal of the segment.

By analogy, all the T wave peak positions of the 10s electrocardiosignals can be found to form a T wave peak position vector Tloc _ 1.

Optionally, in S5, the step of identifying the peak position of the T wave includes:

firstly, performing 0.06s window median filtering; secondly, performing median filtering in a 0.06s window; then, 0.1s mean filtering is carried out; and finally, marking the position of the maximum value which appears for the first time within 0.4s after the position of each R wave peak as the position of the T wave peak.

And (3) carrying out filtering processing on the 10s clinical 12-lead electrocardiosignals to be detected for three times, and judging the T wave peak position of the filtered electrocardiosignals by utilizing R wave peak position information.

Firstly carrying out 0.06s window median filtering, secondly carrying out 0.06s window median filtering, then carrying out 0.1s mean filtering, and finally marking the position of the maximum value which appears for the first time in 0.4s (namely 200 sampling points after the R wave crest) after the position of each R wave crest as the position of each T wave crest.

For example: the position of a certain R wave crest given by a doctor is 162, the size of 200 sampling points after the 162 th sampling point is judged, and the position of the point where the maximum value appears for the first time is found and recorded as the position of the T wave crest.

Optionally, in S6, the step of calculating the variance var _1 after subtracting the Tloc _1 from the R-wave peak position vector includes:

s61, if the number of elements in the T wave peak position vector Tloc _1 is equal to the number of elements in the R wave peak position vector, the value in the R wave peak position vector and the value in the T wave peak position vector Tloc _1 are subjected to one-to-one correspondence difference to obtain a new vector, and then the variance of the new vector is calculated and is marked as var _ 1;

s62, if the number of elements in the T wave crest position vector Tloc _1 is larger than that of elements in the R wave crest position vector, respectively searching and storing element values which are larger than Ri and closest to Ri in the Tloc _1 for each element value Ri in the R wave crest position vector; the saved element values in Tloc _1 form a corrected T wave peak position vector, and then the variance var _1 is solved by adopting the method of S61;

s63, if the number of elements in the T wave peak position vector Tloc _1 is less than that of elements in the R wave peak position vector, respectively searching and storing element values which are less than Ti and closest to Ti in the R wave peak position vector for each element value Ti in the T wave peak position vector; the element values of the stored R-wave peak position vector constitute a corrected R-wave peak position vector, and then the variance var _1 is obtained by using the method of S61.

Tloc _1 in this embodiment is a first T-wave peak position vector finally determined by the U-net network model.

(1) If the number of the element values in the Tloc _1 is equal to the number of the element values in the R wave crest position vector given by the doctor, subtracting the element value in the corresponding first T wave crest position vector Tloc _1 from the element value in each R wave crest position vector to obtain a new vector, calculating the variance of the vector, and marking as var _1, and finally obtaining 12 variance values var _ 1;

(2) if the number of the element values in the Tloc _1 is larger than the number of the element values in the R wave crest position vector given by the doctor, deleting the elements in the Tloc _1, wherein the deleting method comprises the following steps:

position R of each R wave peak in cyclic R wave peak position vectoriLooking for greater than R in Tloc _1iAnd is closest to RiThe value of (2) is saved. For example:

the R-wave peak position vector is [ 536136919372338 ], Tloc _1 is [ 6541523213425362912 ], and for the first element 536 in the R-wave peak position vector, greater than 536 in Tloc _1 and 654, the value closest to 536, is saved;

for the second element 1369 in the R-wave peak position vector, the value greater than 1369 in Tloc _1 and closest to 1369 is 1523, which is saved;

and sequentially looping, finishing searching each element in the R wave peak position vector, and finally obtaining the corrected Tloc _1 as [ 654152321342536 ].

And (4) solving the variance between the new Tloc _1 obtained after correction and the R wave peak position vector given by the doctor by adopting the method in (1) and recording the variance as var _ 1.

(3) If the number of the element values in the Tloc _1 is less than the number of the element values in the R wave peak position vector given by the doctor, deleting the R wave peak position vector, wherein the deleting method comprises the following steps:

and circulating the wave peak position Ti of each T wave, finding out the value which is smaller than the Ti in the wave peak position vector of the R wave and is closest to the Ti, storing and deleting the rest. For example: the R wave peak position is [ 5361369193723382742 ], Tloc _1 is [ 654152321342536 ], if Ti is 654, the value which is smaller than 654 and closest to 654 is 536 is found in the R wave peak position vector, and the process is circulated in sequence until Ti is 2536, the value which is smaller than 2536 in the R wave peak position vector is 536,1369,1937,2338, but the closest is 2338, so 2338 is saved, and finally the extra points 2742 in the R wave peak position vector are deleted. And finally, performing difference on the Tloc _1 vector and the corrected R wave peak position vector given by the doctor in the same step, and solving the variance to be marked as var _ 1.

Optionally, the step of calculating the variance var _2 after subtracting the Tloc _2 from the R-wave peak position vector includes:

tloc _2 is a T wave peak position vector finally judged by the waveform distribution characteristics of the electrocardiosignal after filtering. Because the Tloc _2 vector is determined by the maximum value appearing at 200 points after each R wave position, the situation that the number of the Tloc _2 vector is different from that of the R wave peak position vector does not exist, a new vector is obtained by directly using the element value in each Tloc _2 corresponding to the element value in each R wave peak vector, and then the variance of the new vector is calculated and recorded as var _ 2.

Optionally, as shown in fig. 3, the input layer of the U-net network is sequentially connected to the first convolution layer and the second convolution layer;

the output of the second convolution layer is the input of the first lower sampling layer, and the first lower sampling layer is sequentially connected with the third convolution layer and the fourth convolution layer;

the output of the fourth convolution layer is the input of a second down-sampling layer, and the second down-sampling layer is sequentially connected with the fifth convolution layer and the sixth convolution layer;

the output of the sixth convolution layer is the input of a third down-sampling layer, and the third down-sampling layer is sequentially connected with a seventh convolution layer and an eighth convolution layer;

the eighth convolution layer is connected with the first up-sampling layer, and the first up-sampling layer is sequentially connected with the ninth convolution layer and the tenth convolution layer;

the output of the tenth convolutional layer is the input of a second upsampling layer, and the second upsampling layer is sequentially connected with the eleventh convolutional layer and the twelfth convolutional layer;

the output of the twelfth convolutional layer is the input of the third upsampling layer, and the output of the third upsampling layer is sequentially connected with the thirteenth convolutional layer and the fourteenth convolutional layer, wherein the fourteenth convolutional layer is the output layer.

In the embodiment, the U-net network inputs 5000 × 1I-lead electrocardiographic signal data and outputs 5000 × 1 vectors, and the U-net network adopts a symmetrical U-shaped structure.

The down-sampling layer adopts a maximum pooling method, and the up-sampling layer adopts bilinear interpolation (upsamplle) and convolution to learn the characteristics of higher layers.

The number of filters in the first convolutional layer, the second convolutional layer, the third convolutional layer, the fourth convolutional layer, the fifth convolutional layer, the sixth convolutional layer, the seventh convolutional layer, the eighth convolutional layer, the ninth convolutional layer, the tenth convolutional layer, the eleventh convolutional layer, the twelfth convolutional layer, the thirteenth convolutional layer and the fourteenth convolutional layer is six, twelve, twenty-four, forty-eight, twenty-four, twelve, six and one in sequence. The convolution kernel sizes of the first convolution layer, the second convolution layer, the third convolution layer, the fourth convolution layer, the fifth convolution layer, the sixth convolution layer, the seventh convolution layer, the eighth convolution layer, the ninth convolution layer, the tenth convolution layer, the eleventh convolution layer, the twelfth convolution layer, the thirteenth convolution layer and the fourteenth convolution layer are all (3 x 1). The step sizes of the first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, and fourteenth convolutional layers are all 1, and the filling modes are all "same". Excitation functions of the first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, and thirteenth convolutional layers are all ReLU functions, and an excitation function of the fourteenth convolutional layer is a Softmax function. The first downsampling layer, the second downsampling layer and the third downsampling layer all adopt a maximum pooling method, and the pooling windows of the first downsampling layer, the second downsampling layer and the third downsampling layer are all set to be 2. The number of filters in the first upper sampling layer, the second upper sampling layer and the third upper sampling layer during convolution operation is twenty-four, twelve and six in sequence, the sizes of convolution kernels in the first upper sampling layer, the second upper sampling layer and the third upper sampling layer during convolution operation are all (2 x 1), the step lengths of convolution operations in the first upper sampling layer, the second upper sampling layer and the third upper sampling layer are all 1, the filling mode is 'same', and excitation functions in the first upper sampling layer, the second upper sampling layer and the third upper sampling layer during convolution operation are ReLU functions.

The loss functions all use the categorical _ crosssentryp. The training algorithm may be: a random gradient descent algorithm, an Adam algorithm, a RMSProp algorithm, an adagard algorithm, an adapelta algorithm, an Adamax algorithm, and the like.

The U-net network model of the embodiment can fuse low-layer features and high-layer features, and is beneficial to better learning the features. And the U-net network model is an automatic coding decoder, which can ensure the same input and output lengths, and is convenient for visually judging the position of the T wave in the whole section of electrocardiosignals.

In the embodiment, the prediction process of the T wave peak position is divided into two parts, and the results of the two parts are comprehensively judged to obtain the final predicted value. The first part obtains the results of 12T wave peak position vectors by using a U-net network model trained by each lead; the second part obtains the result of 12T wave peak position vectors by carrying out the same filtering mode on the electrocardio data of each lead; and (4) calculating the variance after the difference is made between the finally obtained 24T wave peak positions and the R wave peak position vector of each electrocardiosignal, wherein the minimum variance is the finally predicted T wave peak position.

The 12-lead T wave extraction algorithm fusing the Unet network and the filtering method provided by the embodiment can identify the T wave peak more accurately.

The second embodiment of the present invention also provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, is adapted to implement the method of the first embodiment of the present invention.

In light of the foregoing description of the preferred embodiments according to the present application, it is to be understood that various changes and modifications may be made without departing from the spirit and scope of the invention. The technical scope of the present application is not limited to the contents of the specification, and must be determined according to the scope of the claims.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于vPPG信号的端到端的非接触房颤自动检测系统和方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!