Fetal electrocardiogram extraction system and method based on convolutional coding and decoding neural network

文档序号:1344085 发布日期:2020-07-21 浏览:16次 中文

阅读说明:本技术 基于卷积编解码神经网络的胎儿心电提取系统及方法 (Fetal electrocardiogram extraction system and method based on convolutional coding and decoding neural network ) 是由 王国利 钟伟 郭雪梅 于 2019-01-15 设计创作,主要内容包括:本发明公开了一种基于卷积编解码神经网络的胎儿心电提取系统以及其方法,所述系统包括数据采集装置:用于采集真实的孕妇腹部电信号;母体心电成分估计装置:用于采用卷积编解码神经网络对孕妇腹部电信号中的母体心电成分进行预估,训练时将仿真腹部电信号作为神经网络的输入,仿真腹部电信号中的母体心电成分作为网络标签进行训练,测试时将真实的孕妇腹部电信号作为神经网络的输入,神经网络的输出为对腹部电信号中的预估的母体心电成分;胎儿心电成分提取装置:用于从采集到的孕妇腹部电信号中减去上述所得的母体心电成分,从而提取出孕妇腹部电信号中的胎儿心电成分。所述方法包括数据预处理、预估母体心电成分和胎儿心电成分提取。通过本技术方案,能够有效提高胎儿心电提取的效率和准确率。(The invention discloses a fetal electrocardiogram extraction system based on a convolutional encoding and decoding neural network and a method thereof, wherein the system comprises a data acquisition device: the device is used for collecting real abdomen electric signals of the pregnant woman; maternal electrocardiogram component estimation device: the method is used for estimating maternal electrocardio components in the maternal abdominal electric signals by adopting a convolution coding and decoding neural network, taking the simulated abdominal electric signals as input of the neural network during training, taking the maternal electrocardio components in the simulated abdominal electric signals as network tags for training, taking the real maternal abdominal electric signals as input of the neural network during testing, and outputting the neural network as the estimated maternal electrocardio components in the abdominal electric signals; fetus electrocardio composition extraction element: is used for subtracting the obtained maternal electrocardio component from the collected maternal abdomen electric signal so as to extract the fetal electrocardio component in the maternal abdomen electric signal. The method comprises the steps of data preprocessing, and extraction of estimated maternal electrocardio components and fetal electrocardio components. Through the technical scheme, the efficiency and the accuracy of fetal electrocardiogram extraction can be effectively improved.)

1. A fetal electrocardiogram extraction system based on a convolutional coding and decoding neural network is characterized by comprising the following devices:

a data acquisition device: is used for collecting the abdomen electric signals of the pregnant woman;

maternal electrocardiogram component estimation device: the training device is used for constructing a convolutional coding and decoding neural network to be trained and training the convolutional coding and decoding to be trained according to the simulated pregnant woman abdominal electric signals; when real fetal electrocardio components are measured, single-channel pregnant woman abdominal electric signals collected by a data collecting device are input into a trained convolutional encoding and decoding neural network, and estimated maternal electrocardio components of the real abdominal electric signals are obtained through the trained convolutional encoding and decoding neural network;

fetus electrocardio composition extraction element: the pregnant woman abdominal electric signal acquisition module is used for subtracting the estimated maternal electrocardio component from the acquired pregnant woman abdominal electric signal so as to extract the fetal electrocardio component in the pregnant woman abdominal electric signal;

the convolution coding and decoding neural network in the executive program of the maternal electrocardio component estimation device is composed of a plurality of convolution-deconvolution modules and a full-connection module in series, and the convolution kernel size of a convolution layer in each convolution-deconvolution module is 1 × 3, 1 × 4 or 1 × 5.

2. A fetal electrocardiogram extraction system as claimed in claim 1 wherein the data acquisition means further executes the following procedures:

and after the pregnant woman abdominal electric signal is subjected to an amplification and/or filtering processing program, the electric signal is converted into a digital signal through an AD conversion program.

3. A fetal electrocardiogram extraction system as claimed in claim 2 wherein the data acquisition means further executes the following procedures:

and cutting the digital signal into a size matched with the input of the convolutional encoding and decoding neural network.

4. A fetal electrocardiogram extraction system as claimed in claim 1 wherein the simulated abdominal electrical signal used by the maternal electrocardiogram component estimation device in training is comprised of a superposition of simulated maternal and fetal electrocardiogram components and some noise.

5. A fetal electrocardiogram extraction system as claimed in claim 1 wherein the maternal electrocardiogram component estimation means performs the following procedures for the training process:

training a convolution decoding neural network by using an open full-layer network parameter updating mode and adopting a mean square error as a loss function;

preferably, the convolutional codec neural network is trained using a gradient descent method and a back propagation algorithm.

6. A fetal electrocardiogram extraction system as claimed in claim 5 wherein the loss function is:

wherein M is the number of training samples,the estimated maternal electrocardio component is output by the network, and X is a network label, namely the maternal electrocardio component in the simulated abdominal electric signal.

7. A fetal ecg extraction system as claimed in claim 1 wherein the fully connected module is also directly connected to the output layer and the fully connected module is comprised of one or more fully connected layers, the convolution-deconvolution module connected to the fully connected module is comprised of a convolution layer, a deconvolution layer and a non-linear layer, all other convolution-deconvolution modules including a convolution layer, a deconvolution layer and two non-linear layers; and a direct connection mode is adopted between two adjacent convolution-deconvolution modules.

8. A fetal electrocardiogram extraction system as claimed in claim 1 wherein the system further comprises a display means for stitching and displaying the extracted fetal electrocardiogram components into a complete signal.

9. The fetal electrocardiogram extraction method based on the convolutional encoding and decoding neural network is characterized by comprising the following steps of:

data acquisition: collecting a path of abdomen electric signals of the pregnant woman;

estimation of maternal electrocardiogram components: constructing a convolutional encoding and decoding neural network to be trained, and training the convolutional encoding and decoding neural network to be trained by adopting an artificial abdomen electric signal; when the real fetal electrocardio components are measured, the real single-channel pregnant woman abdominal electric signals are input into the trained convolutional encoding and decoding neural network, and the estimated maternal electrocardio components in the real abdominal electric signals are obtained through the trained convolutional encoding and decoding neural network.

Extracting fetal electrocardio components: subtracting the estimated maternal electrocardio component from the acquired pregnant woman abdominal electric signal, thereby extracting a fetal electrocardio component from the pregnant woman abdominal electric signal;

preferably, the process of converting the maternal abdominal electrical signals into digital signals comprises an amplification and/or filtering processing procedure and an a/D conversion procedure;

more preferably, the data preprocessing step further comprises cutting the digital signal into a size matched with the input of the convolutional encoding and decoding neural network;

preferably, the training method in the estimation of the maternal electrocardiogram components is to use an open full-layer network parameter updating mode and to train a network model by using a mean square error as a loss function;

preferably, the convolutional encoding and decoding neural network in the maternal electrocardiogram component estimation is formed by connecting a plurality of convolutional-deconvolution modules and a full-connection module in series;

the convolution-deconvolution module connected with the full-connection module consists of a convolution layer, a deconvolution layer and a nonlinear layer, and all other convolution-deconvolution modules comprise the convolution layer, the deconvolution layer and two nonlinear layers; and a direct connection mode is adopted between two adjacent convolution-deconvolution modules. Preferably, the activation function of the non-linear layer is a tanh function.

Preferably, the method further comprises splicing the extracted fetal electrocardiogram components into a complete signal and displaying;

preferably, the technical scheme trains the convolutional encoding and decoding neural network by adopting a gradient descent method and a back propagation algorithm.

10. The fetal electrocardiogram extraction method of claim 9 wherein the loss function is:

wherein M is the number of training samples,the estimated maternal electrocardio component is output by the network, and X is a network label, namely the maternal electrocardio component in the simulated abdominal electric signal.

Technical Field

The invention relates to the technical field of fetal electrocardiogram extraction, in particular to a fetal electrocardiogram extraction system based on a convolutional encoding and decoding neural network, and further provides a method for using the system.

Background

Fetal heart monitoring is a means for monitoring fetus in utero, can reflect the biological and physical activity of fetus in real time, and is widely applied to clinical practice. Plays an important role in reducing perinatal mortality. Perinatal mortality reflects, to some extent, the combined economic development and health care status of a country and region.

The fetal electrocardiosignals can be used for calculating the heart rate of the fetus, more morphological information can be provided, the information records the action condition of the heart of the fetus, various states of physiological activities in the fetus uterus are objectively reflected, and medical personnel can judge the development degree and position of the fetus, and whether the fetus is acidotic or arrhythmia, so that the current health condition of the fetus is obtained. One of the difficulties in extracting the fetal electrocardiosignals is that the abdominal electric signals contain the electrocardio components of the mother, the electrocardio components of the mother usually have larger amplitude than the fetal electrocardio components, and the electrocardio components of the mother and the electrocardio components of the fetus are overlapped in time domain and frequency domain, so that great interference is brought to the extraction of the fetal electrocardio. Therefore, it is a challenging task to extract fetal ecg signals from the mixed signal of the maternal abdomen.

Disclosure of Invention

In order to overcome the defects of the prior art, the invention provides a fetal electrocardiogram extraction system which is based on a convolutional coding and decoding neural network and can improve the extraction efficiency and the extraction accuracy and a method using the system.

In order to solve the first technical problem, the technical scheme adopted by the invention specifically comprises the following steps:

a fetal electrocardiogram extraction system based on a convolutional encoding and decoding neural network comprises the following devices:

a data acquisition device: the device is used for collecting real abdomen electric signals of the pregnant woman;

maternal electrocardiogram component estimation device: the method is used for constructing a convolutional encoding and decoding neural network to be trained, during training, a simulated abdomen electrical signal is used as the input of the neural network, a parent electrocardio component in the simulated abdomen electrical signal is used as a network tag to train the convolutional encoding and decoding neural network to change parameters (namely weight coefficient and deviation) in the neural network, the training is stopped until the error of the neural network is completely converged (the error is completely converged, namely the obtained parent electrocardio component is compared with the known parent electrocardio component in the simulated abdomen electrical signal until no error exists or the error is in a reasonable range), and all the parameters are stored to obtain a trained convolutional encoding and decoding neural network unit. When the real pregnant woman abdominal electric signals are measured, the real single-channel pregnant woman abdominal electric signals collected by the data collecting device are substituted into the trained convolutional encoding and decoding neural network unit as the input of the neural network, and the obtained output of the neural network is the estimated maternal electrocardio component in the abdominal electric signals.

The convolution coding and decoding neural network in the executive program of the maternal electrocardio component estimation device is composed of a plurality of convolution-deconvolution modules and a full-connection module in series, and the convolution kernel size of a convolution layer in each convolution-deconvolution module is 1 × 3, 1 × 4 or 1 × 5.

Preferably, the technical scheme trains the convolutional encoding and decoding neural network by adopting a gradient descent method and a back propagation algorithm. The simulated abdominal electrical signals are obtained according to data in an existing simulation database and can be divided into a training set and a verification set.

When the convolutional encoding and decoding neural network is trained by adopting a gradient descent method and a back propagation algorithm, in normal operation, firstly, the abdominal electric signals of a simulated pregnant woman in a training set are input into the convolutional encoding and decoding neural network after being preprocessed, the convolutional encoding and decoding neural network is trained, the electrocardio components of a mother body are evaluated through a loss function, then, the gradients of all parameters in the convolutional neural network are calculated through the back propagation algorithm (the gradient descent method), all parameters are updated according to gradient changes (derivatives of all parameters), the training set is substituted into the convolutional encoding and decoding neural network again for training, and all parameters are stored and the model is reserved until the model with the minimum loss function is found through iteration. When real pregnant woman abdominal electric signals need to be tested, calling a convolutional neural network model, preprocessing the real pregnant woman abdominal electric signals acquired by the data acquisition device, inputting the preprocessed real pregnant woman abdominal electric signals into a convolutional encoding and decoding neural network, acquiring estimated maternal electrocardio components, and subtracting the estimated maternal electrocardio components from the real acquired pregnant woman abdominal electric signals, so that fetal electrocardio components in the pregnant woman abdominal electric signals are extracted.

Fetus electrocardio composition extraction element: the method is used for subtracting the obtained estimated maternal electrocardio component from the collected maternal abdomen electric signal so as to extract the fetal electrocardio component in the maternal abdomen electric signal.

It should be noted that, in order to improve the efficiency and accuracy of fetal electrocardiogram extraction in the detection process, the inventor provides an extraction system in the technical scheme, which is convenient for an operator to realize signal processing through the system and is convenient for subsequent detection and diagnosis. The inventor creates a scheme for estimating maternal electrocardio components in the maternal abdomen electric signals by using a convolution coding and decoding neural network innovatively in the technical scheme and subtracting the acquired maternal electrocardio components from the acquired maternal abdomen electric signals so as to extract fetal electrocardio components in the maternal abdomen electric signals.

It should be noted that the data acquisition device also converts the abdomen electrical signals of the pregnant woman into digital signals, which are convenient to be processed on digital equipment such as a computer.

Preferably, the data acquisition device further executes the following program:

and the pregnant woman abdominal electric signals are processed by processing programs such as amplification and/or filtering, and then converted into digital signals by an A/D conversion processing program.

More preferably, the data acquisition device further executes the following program:

preferably, the digital signal is cropped to a size that matches the convolutional codec neural network input, the cropped size of the digital signal is 1 × 1000, where the value in each signal of 1 × 1 is the electrocardiogram value (amplitude) at a point, and 1000 has 1000 points, each point representing the value (amplitude) in the electrocardiogram at a different time.

By tailoring to a matching size, the following training using convolutional codec neural networks can be performed more efficiently.

Preferably, the maternal cardiac component estimation device executes the following procedure during the training process:

the network model is trained using an open full-layer network parameter update approach and using the mean square error as a loss function. That is, the present application adopts a back propagation algorithm (gradient descent method), and the gradient of all parameters in the convolutional neural network needs to be calculated during calculation, and all parameters are updated according to the gradient change (the derivative of each parameter).

Preferably, the loss function is:

wherein M is the number of training samples,for the estimation of maternal electrocardio components output by the network, X is a network label, namely the maternal electrocardio components in the simulated abdominal electric signals. By adopting the loss function, the characteristics of maternal electrocardio can be completely and quickly learned.

Preferably, when training is performed, the maximum number of iterations is 10000, and the learning rate is 0.0001.

Preferably, the convolution coding and decoding neural network in the executive program of the maternal electrocardiogram component estimation device is formed by connecting a plurality of convolution-deconvolution modules and a full-connection module in series;

the convolution-deconvolution module comprises a convolution layer, a deconvolution layer and a nonlinear layer, wherein the convolution-deconvolution module connected with the full-connection module comprises one or more full-connection layers, the convolution-deconvolution module connected with the full-connection module comprises one convolution layer, one deconvolution layer and two nonlinear layers, the direct connection mode is adopted between every two adjacent convolution-deconvolution modules, the activation function of the nonlinear layer is preferably a tanh function, the convolution kernel size of the convolution layer is preferably 1 × 3, 1 × 4 or 1 × 5, and the convolution kernel is relatively proper, so that local feature extraction is not excessive, and a part of local features cannot be lost due to the large convolution kernel size.

It should be noted that, the convolutional encoding and decoding neural network adopting the above structure can effectively capture the characteristics of maternal electrocardio, accelerate the convergence rate of network training, and simultaneously has a good effect on the problem of gradient dispersion. It should be noted that, by adopting a direct connection mode between two adjacent convolution-deconvolution modules, the shallow features can be transferred to the deep layers, so that more detailed features of the maternal electrocardiogram are retained, and the efficiency and accuracy are further improved.

Preferably, the system further comprises a display device for splicing the extracted fetal electrocardiogram components into a complete signal and displaying the complete signal.

It should be noted that the signal is cut into a shorter length for learning, and after learning is completed, the network output is spliced into a complete signal, so that more detailed features can be learned by the network, and the effect of fetal electrocardiogram extraction is improved.

Preferably, all parameters of the network are initialized with small random numbers before training is started. Firstly, if the parameter is small, the protection network can not enter a saturation state due to the fact that the weight is too large at the beginning, so that training fails, secondly, the randomized parameter is realized to ensure that the initial value of each parameter is different, and the situation that the same parameter is obtained in each training is avoided. The numerical range of the small random number is 0-1.

In order to solve the second technical problem, the technical scheme adopted by the invention specifically comprises the following steps:

a fetal electrocardiogram extraction method based on a convolutional encoding and decoding neural network comprises the following steps:

data preprocessing: collecting abdominal electric signals of a pregnant woman;

estimation of maternal electrocardiogram components: estimating maternal electrocardio components in the maternal abdominal electric signals by adopting a convolution coding and decoding neural network, namely, taking simulated abdominal electric signals as input of the neural network during training, taking maternal electrocardio components in the simulated abdominal electric signals as network tags for training, taking real single-channel maternal abdominal electric signals as input of the neural network during testing, and outputting the neural network as the estimated maternal electrocardio components in the abdominal electric signals;

elimination of maternal electrocardiographic components: and subtracting the obtained maternal electrocardio component from the acquired pregnant woman abdominal electric signal so as to extract a fetal electrocardio component in the pregnant woman abdominal electric signal.

In order to improve the efficiency and the accuracy of fetal electrocardio extraction, the inventor creatively estimates the maternal electrocardio component in the pregnant woman abdominal electric signal by using a convolution coding and decoding neural network in the technical scheme, and subtracts the obtained maternal electrocardio component from the collected pregnant woman abdominal electric signal so as to extract the fetal electrocardio component in the pregnant woman abdominal electric signal. In the technical scheme, the convolutional encoding and decoding neural network is adopted, the technology has stronger robustness, and the fetal electrocardiosignals can still be extracted under the interference conditions of contact noise, respiratory noise and the like. Moreover, the method performs well when the signal-to-noise ratio between the fetal signal and the maternal signal is low and there is overlap between the QRS wave of the fetus and the QRS wave of the mother. Through the technical means, the relevant noise can be eliminated to a greater extent, so that the extraction is more accurate and the efficiency is higher. The clear fetal electrocardiosignals extracted by the method can provide information such as fetal heart rate and the like, and have important clinical application value and considerable social benefit.

More preferably, the digital signal is obtained by a/D conversion after processing including amplification and/or filtering.

Further, the data preprocessing step further comprises cutting the digital signal into a size matched with the input of the convolutional encoding and decoding neural network.

Preferably, the training method in the estimation of the maternal electrocardiogram components is to use an open full-layer network parameter updating mode and to train a convolutional encoding and decoding neural network model by using a mean square error as a loss function;

preferably, the loss function is:

wherein M is the number of training samples,the estimated maternal electrocardio component is output by the network, and X is a network label, namely the maternal electrocardio component in the simulated abdominal electric signal.

Preferably, the convolution coding and decoding neural network in the maternal electrocardiogram component estimation device is formed by connecting a plurality of convolution-deconvolution modules and a full-connection module in series;

the convolution-deconvolution module connected with the full-connection module consists of a convolution layer, a deconvolution layer and a nonlinear layer, and all other convolution-deconvolution modules comprise the convolution layer, the deconvolution layer and two nonlinear layers; and a direct connection mode is adopted between two adjacent convolution-deconvolution modules.

Preferably, the technical scheme trains the convolutional encoding and decoding neural network by adopting a gradient descent method and a back propagation algorithm.

Preferably, the method further comprises splicing the extracted fetal electrocardiogram components into a complete signal and displaying the complete signal.

Compared with the prior art, the invention has the beneficial effects that:

1. the fetal electrocardiogram extraction system based on the convolutional encoding and decoding neural network adopts the convolutional encoding and decoding neural network, has stronger robustness, can still extract fetal electrocardiogram signals under the interference conditions of contact noise, breathing noise and the like, can remove relevant noise to a greater extent, and ensures that the extraction is more accurate and the efficiency is higher;

2. according to the fetal electrocardiogram extraction system based on the convolutional encoding and decoding neural network, signals are cut into short lengths for learning, and after learning is completed, network outputs are spliced into complete signals, so that more detailed characteristics can be learned by the network, and the effect of fetal electrocardiogram extraction is improved;

3. the fetal electrocardiogram extraction method based on the convolutional encoding and decoding neural network can realize the extraction purpose by applying the system to execute the corresponding process.

The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented in accordance with the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more clearly understood, the following preferred embodiments are described in detail with reference to the accompanying drawings.

Drawings

FIG. 1 is a schematic view of a flow framework of a preferred embodiment of a fetal electrocardiogram extraction method based on a convolutional encoding and decoding neural network according to the present invention;

FIG. 2 is a schematic diagram of a simulated abdominal signal and corresponding maternal electrocardiac components during training in one embodiment of the method of the present invention;

FIG. 3 is a schematic diagram of the fetal ECG signal obtained according to the method, the corresponding real abdominal signal and the maternal ECG component output by the network;

fig. 4 is a schematic structural diagram of a convolutional codec neural network.

Detailed Description

To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the embodiments, structures, features and effects according to the present invention with reference to the accompanying drawings and preferred embodiments is as follows:

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于导引脑波的头戴式装置、系统及其导引方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!