Method and system for prewarning stool based on countermeasure generation network

文档序号:1943755 发布日期:2021-12-10 浏览:11次 中文

阅读说明:本技术 基于对抗生成网络的二便预警方法与系统 (Method and system for prewarning stool based on countermeasure generation network ) 是由 邹焱飚 吴盛红 张铁 于 2021-11-11 设计创作,主要内容包括:本发明公开了一种基于对抗生成网络的二便预警方法与系统。所述方法包括以下步骤:采集若干个志愿者的胃电信号数据;对采集的胃电信号数据进行预处理;利用特征提取器对预处理后的数据进行特征提取;将提取的特征样本分为训练集和测试集,构建二便预警模型并利用生成对抗网络对其进行训练,得到训练好的二便预警模型;将训练好的二便预警模型迁移到嵌入式微处理器上,连接EGG胃电传感器,EGG胃电传感器实时采集胃电信号数据输入嵌入式微处理器;嵌入式微处理器对实时采集的胃电信号数据进行预处理并根据预处理后的数据进行二便预警判断。本发明能够解决失能老人长期照护困难、节约社会成本,具有一定的实用价值和社会效益。(The invention discloses a method and a system for giving an early warning of stool based on an confrontation generation network. The method comprises the following steps: collecting stomach electrical signal data of a plurality of volunteers; preprocessing the acquired stomach electrical signal data; performing feature extraction on the preprocessed data by using a feature extractor; dividing the extracted characteristic samples into a training set and a testing set, constructing a stool early warning model, and training the stool early warning model by using a generated countermeasure network to obtain a trained stool early warning model; transferring the trained stool and urine early warning model to an embedded microprocessor, connecting an EGG gastric electric sensor, and acquiring gastric electric signal data in real time by the EGG gastric electric sensor and inputting the data into the embedded microprocessor; the embedded microprocessor preprocesses the stomach electric signal data collected in real time and carries out the early warning judgment of stool and urine according to the preprocessed data. The invention can solve the problem that the disabled old people are difficult to care for a long time, saves social cost and has certain practical value and social benefit.)

1. The stool and urine early warning system based on the confrontation generation network is characterized by comprising a gastric electrical sensor, a signal preprocessing module, a feature extractor, a stool and urine early warning model training module and an embedded microprocessor;

the stomach electrical sensor collects stomach electrical signal data and sends the stomach electrical signal data to the signal preprocessing module for preprocessing, and the signal preprocessing module sends the preprocessed stomach electrical signal data to the feature extractor for feature extraction; the method comprises the following steps that a stool early warning model training module divides extracted feature samples into a training set and a testing set, constructs a stool early warning model and trains the stool early warning model by utilizing a generated countermeasure network to obtain a trained stool early warning model; the trained stool early warning model is migrated on the embedded microprocessor, and stool early warning judgment is carried out after stomach electric signal data collected by the stomach electric sensor is received in real time and preprocessed.

2. The confrontation generation network-based stool emission early warning system according to claim 1, wherein the stomach electrical signal data of several volunteers are collected by the stomach electrical sensor at three time periods, respectively, in the morning, in the evening, and the collected stomach electrical signal data are classified into fasting state, non-fasting state, stool state and stool state according to the current state of the volunteers, wherein the data in the time period set before stool emission is marked as stool state, and the data in the rest time periods are stool state.

3. The warfare agent pre-warning system based on the countermeasure generation network as claimed in claim 2, wherein in the signal preprocessing module, the gastric electrical signal data collected by the gastric electrical sensor is filtered to remove the background noise, and then the gastric electrical signal data after the background noise is removed is processed by using fast fourier transform to obtain the frequency domain information.

4. The countermeasure generation network-based stool pre-warning system of claim 3, wherein the feature extractor is a one-dimensional convolutional neural network, the feature extractor comprising a first convolutional layer, a second convolutional layer, a third convolutional layer, a fourth convolutional layer, 4 normalization layers, 2 pooling layers, and 2 full-connection layers; the first convolution layer and the second convolution layer are connected through a normalization layer, the output of the second convolution layer is connected with a third convolution layer through a normalization layer and a pooling layer, the third convolution layer and the fourth convolution layer are connected through a normalization layer, the output of the fourth convolution layer is connected with two full-connection layers through a normalization layer and a pooling layer, and the convolution kernel of the neural network is one-dimensional;

and inputting the frequency domain information obtained by adopting fast Fourier transform as a one-dimensional frequency spectrum into a feature extractor, and extracting the features of the stomach electrical signal data when the stomach electrical signal data is convenient.

5. The confrontation generation network-based stool early warning system as claimed in claim 4, wherein in the stool early warning model training module, the generation confrontation network comprises a generator G and a discriminator D, the generator G and the discriminator D adopt the Maxim game for simultaneous training, and the purpose of the generator G is to learn the characteristics of input real data so as to generate stomach electric signal data capable of deceiving the discriminator D; the discriminator D improves discrimination ability after training, and distinguishes real stomach electrical signal data and generates stomach electrical signal data;

the trained stool and urine early warning model adopts a trained discriminator D, and judges whether the stomach electrical signal data acquired in real time is satisfactory or not by using the discriminator D;

the objective function for generating the countermeasure network is as follows:

where E (dash) represents the mathematical expectation, x represents the training data, z represents the incoming random noise,which represents the distribution of the training data,representing the distribution of random noise, D (dash) representing the probability that the input came from training data, and G (z) representing the image data generated by generator G.

6. The warrior system based on countermeasure generation network of claim 5, wherein the embedded microprocessor comprises a Bluetooth module and a USB3.0 interface.

7. The confrontation generation network-based stool pre-warning system according to claim 6, wherein the stomach electrical signal data collected by the stomach electrical sensor in real time is transmitted to the embedded microprocessor through Bluetooth or USB3.0 interface in real time.

8. The stool early warning system based on the countermeasure generation network according to claim 7, wherein the stomach electrical signal data is preprocessed on the embedded microprocessor and then input into a trained stool early warning model to judge whether the testee is free of stool, and if not, real-time monitoring is continued; if yes, the stool and urine early warning is generated.

9. The warrior system based on countermeasure generation network of claim 8, wherein the embedded microprocessor employs a Jetson tx2 development board.

10. The stool early warning method based on the countermeasure generation network is characterized by comprising the following steps of:

s1, collecting stomach electrical signal data of a plurality of volunteers;

s2, preprocessing the acquired stomach electrical signal data;

s3, extracting the characteristics of the preprocessed data by using a characteristic extractor;

s4, dividing the extracted characteristic samples into a training set and a testing set, constructing a stool early warning model, and training the stool early warning model by using a generated countermeasure network to obtain a trained stool early warning model;

s5, transferring the trained stool and urine early warning model to an embedded microprocessor, connecting a stomach electric sensor, and acquiring stomach electric signal data in real time by the stomach electric sensor and inputting the data into the embedded microprocessor;

s6, the embedded microprocessor preprocesses the stomach electric signal data collected in real time and carries out the early warning judgment according to the preprocessed data.

Technical Field

The invention relates to a medical technology and a data processing technology, in particular to a portable early warning system and a portable early warning method based on an antagonism generation network.

Background

The aging problem of the population in China is gradually prominent since the 21 st century, a large number of old people need to be cared for, and if all the old people adopt manual care, the old people have a lot of inconveniences. How to realize the semi-automatic monitoring and even the full-automatic monitoring of the disabled old people, the care requirement of the disabled old people is met, and the wide attention of people is brought. The aging problem of the population of China is getting more and more serious, and the number of the disabled elderly accounts for a certain proportion. The disabled old people can suffer from various complications caused by long-term bed-lying, including inconvenience in movement or loss of defecation related functions, thereby affecting normal excretion of excrement and urine, seriously affecting the life quality and mental health of the old people, and even affecting the life of the old people. Most nursing beds on the market at present are cleaned by specially-assigned persons after defecation or cleaned the defecation part of a user through wearable equipment, and the nursing beds have certain limitations and are all subjected to defecation after treatment and do not have system equipment capable of sending out an early warning signal before defecation. Therefore, a simple and accurate defecation early warning method is urgently needed to solve the problem that the old people are difficult to care for a long time.

An intelligent nursing bed for defecation monitoring based on multi-sensor fusion is provided in the thesis of intelligent nursing bed defecation monitoring method based on data fusion (university of Taiyuan Liu Xiao military student' S academic paper), a data acquisition system based on STM32 is designed to acquire temperature and humidity and ammonia sensor information, and after experimental data are preprocessed, the intelligent nursing bed is subjected to defecation monitoring by utilizing a neural network and an improved D-S evidence theory.

The prior art has some defects and shortcomings:

(1) ammonia and humiture data are easily influenced by the environment and cannot be widely applied.

(2) The existing method has complex circuit and higher cost.

Therefore, a signal acquisition device for the early warning of the urine and stool, which can monitor and early warn in real time and has lower cost, is urgently needed.

Disclosure of Invention

The invention aims to provide a defecation early warning system and a defecation early warning method based on an antagonistic generation network by utilizing a gastric electricity acquisition system, and aims to solve the problem of difficulty in long-term care of old people in bed due to incontinence of urine and feces caused by excretion related function loss through real-time monitoring and early warning. The invention starts from population aging trend and clinical requirements, trains a defecation early warning model by adopting a convolutional neural network and an confrontation generation network strategy, establishes the relationship between physiological parameters of a nursed person and defecation early warning, and explores a novel scientific old-age-keeping mode.

In order to solve the problems, a portable early warning system based on a generation countermeasure network (GAN) by utilizing a stomach electric signal acquisition system is provided by adopting a convolutional neural network and a GAN generation countermeasure learning strategy, combining a hardware EGG stomach electric sensor and an embedded microprocessor based on real-time monitoring of stomach electric physiological parameters of a human body.

The purpose of the invention is realized by at least one of the following technical solutions.

The stool and urine early warning system based on the confrontation generation network comprises a gastric electrical sensor, a signal preprocessing module, a feature extractor, a stool and urine early warning model training module and an embedded microprocessor;

the stomach electrical sensor collects stomach electrical signal data and sends the stomach electrical signal data to the signal preprocessing module for preprocessing, and the signal preprocessing module sends the preprocessed stomach electrical signal data to the feature extractor for feature extraction; the method comprises the following steps that a stool early warning model training module divides extracted feature samples into a training set and a testing set, constructs a stool early warning model and trains the stool early warning model by utilizing a generated countermeasure network to obtain a trained stool early warning model; the trained stool early warning model is migrated on the embedded microprocessor, and stool early warning judgment is carried out after stomach electric signal data collected by the stomach electric sensor is received in real time and preprocessed.

Further, in three time periods of morning, noon and evening, the stomach electric sensors are used for collecting stomach electric signal data of a plurality of volunteers, the collected stomach electric signal data are divided into fasting state, non-fasting state, defecation feeling and defecation feeling according to the current state of the volunteers, wherein the data in the set time period before defecation is marked as defecation feeling, and the data in the rest time periods are defecation feeling.

Furthermore, in the signal preprocessing module, the stomach electric signal data collected by the stomach electric sensor is filtered to remove background noise, and then the stomach electric signal data after the background noise is removed is processed by utilizing fast Fourier transform to obtain frequency domain information.

Further, the feature extractor is a one-dimensional convolutional neural network, and comprises a first convolutional layer, a second convolutional layer, a third convolutional layer, a fourth convolutional layer, 4 normalization layers, 2 pooling layers and 2 full-connection layers; the first convolution layer and the second convolution layer are connected through a normalization layer, the output of the second convolution layer is connected with a third convolution layer through a normalization layer and a pooling layer, the third convolution layer and the fourth convolution layer are connected through a normalization layer, the output of the fourth convolution layer is connected with two full-connection layers through a normalization layer and a pooling layer, and the convolution kernel of the neural network is one-dimensional;

and inputting the frequency domain information obtained by adopting fast Fourier transform as a one-dimensional frequency spectrum into a feature extractor, and extracting the features of the stomach electrical signal data when the stomach electrical signal data is convenient.

Further, in the stool early warning model training module, the generation countermeasure network comprises a generator G and a discriminator D, the generator G and the discriminator D adopt the maximum and minimum game for simultaneous training, and the generator G aims to learn the characteristics of input real data so as to generate gastric electricity signal data capable of deceiving the discriminator D; the discriminator D improves discrimination ability after training, and distinguishes real stomach electrical signal data and generates stomach electrical signal data;

the trained stool and urine early warning model adopts a trained discriminator D, and judges whether the stomach electrical signal data acquired in real time is satisfactory or not by using the discriminator D;

the objective function for generating the countermeasure network is as follows:

where E (dash) represents the mathematical expectation, x represents the training data, z represents the incoming random noise,which represents the distribution of the training data,representing the distribution of random noise, D (dash) representing the probability that the input came from training data, and G (z) representing the image data generated by generator G.

Furthermore, the embedded microprocessor comprises a Bluetooth module and a USB3.0 interface, and the stomach electric signal data acquired by the stomach electric sensor in real time is transmitted to the embedded microprocessor in real time through Bluetooth;

preprocessing stomach electrical signal data on an embedded microprocessor, inputting the preprocessed stomach electrical signal data into a trained stool and urine early warning model, judging whether a testee is free of stool, and if not, continuing to monitor in real time; if yes, the stool and urine early warning is generated.

Further, the embedded microprocessor employs a Jetson tx2 development board.

The stool early warning method based on the countermeasure generation network comprises the following steps:

s1, collecting stomach electrical signal data of a plurality of volunteers;

s2, preprocessing the acquired stomach electrical signal data;

s3, extracting the characteristics of the preprocessed data by using a characteristic extractor;

s4, dividing the extracted characteristic samples into a training set and a testing set, constructing a stool early warning model, and training the stool early warning model by using a generated countermeasure network to obtain a trained stool early warning model;

s5, transferring the trained stool and urine early warning model to an embedded microprocessor, connecting a stomach electric sensor, and acquiring stomach electric signal data in real time by the stomach electric sensor and inputting the data into the embedded microprocessor;

s6, the embedded microprocessor preprocesses the stomach electric signal data collected in real time and carries out the early warning judgment according to the preprocessed data.

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

(1) according to the invention, research is carried out on the relation between the gastric electrical signal and the excrement pre-warning based on the strategy of generating the countermeasure network, the trained model can accurately pre-warn excrement and urine, and the whole pre-warning system has the characteristics of real-time synchronization and high prediction accuracy. (2) The invention is expected to be applied to multiple scenes such as hospitals, nursing institutions, families and the like, can solve the problem of difficulty in long-term care of disabled people, saves social cost, and has certain practical value and social benefit.

Drawings

FIG. 1 is a flow chart illustrating the steps of a countermeasure generation network (GAN) based binary early warning method according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of the structure of an embodiment of the gastric electrical sensor of the present invention;

FIG. 3 is a diagram of the electrode location of a gastric electrical sensor in accordance with an embodiment of the present invention;

fig. 4 is a schematic structural diagram of a feature extractor in an embodiment of the invention.

Detailed Description

The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited thereto.

Example (b):

the stool and urine early warning system based on the confrontation generation network comprises a gastric electrical sensor, a signal preprocessing module, a feature extractor, a stool and urine early warning model training module and an embedded microprocessor;

the stomach electrical sensor collects stomach electrical signal data and sends the stomach electrical signal data to the signal preprocessing module for preprocessing, and the signal preprocessing module sends the preprocessed stomach electrical signal data to the feature extractor for feature extraction; the method comprises the following steps that a stool early warning model training module divides extracted feature samples into a training set and a testing set, constructs a stool early warning model and trains the stool early warning model by utilizing a generated countermeasure network to obtain a trained stool early warning model; the trained stool early warning model is migrated on the embedded microprocessor, and stool early warning judgment is carried out after stomach electric signal data collected by the stomach electric sensor is received in real time and preprocessed.

Respectively collecting stomach electrical signal data of a plurality of volunteers by using a stomach electrical sensor in three time periods of morning, noon and evening, wherein the collected stomach electrical signal data are divided into fasting state and non-fasting state, defecation intention and defecation intention according to the current state of the volunteer, in the embodiment, the data of 15 minutes before defecation is marked as defecation intention, and the data of the rest time periods are defecation intention; during data acquisition, volunteers need to lie on the bed and cannot speak, and stable breathing is kept.

In one embodiment, as shown in fig. 2, the gastric electrical sensor comprises three measuring electrodes 4 and a signal transmission interface 5; three measuring electrodes 4 of a stomach electric sensor (EGG stomach electric sensor) are attached to the position near the stomach of a patient, as shown in figure 3, the three measuring electrodes 4 of the stomach electric sensor are respectively attached to the positions 1, 2 and 3, as shown in figure 3, 3 is a reference electrode position, in the figure, three dotted lines are equidistant, the distance is 5cm, the stomach electric sensor is used for collecting stomach electric signals of a human body, and the stomach electric signal data are monitored in real time.

In the signal preprocessing module, the stomach electric signal data collected by the stomach electric sensor are filtered to remove background noise, and then the stomach electric signal data after the background noise is removed are processed by utilizing fast Fourier transform to obtain frequency domain information.

As shown in fig. 4, the feature extractor is a one-dimensional convolutional neural network, and includes a first convolutional layer, a second convolutional layer, a third convolutional layer, a fourth convolutional layer, 4 normalization layers, 2 pooling layers, and 2 full-link layers; the first convolution layer and the second convolution layer are connected through a normalization layer, the output of the second convolution layer is connected with a third convolution layer through a normalization layer and a pooling layer, the third convolution layer and the fourth convolution layer are connected through a normalization layer, the output of the fourth convolution layer is connected with two full-connection layers through a normalization layer and a pooling layer, and the convolution kernel of the neural network is one-dimensional;

and inputting the frequency domain information obtained by adopting fast Fourier transform as a one-dimensional frequency spectrum into a feature extractor, and extracting the features of the stomach electrical signal data when the stomach electrical signal data is convenient.

In one embodiment, the specific structure of the feature extractor is shown in table 1.

Further, in the stool early warning model training module, the generation countermeasure network comprises a generator G and a discriminator D, the generator G and the discriminator D adopt the maximum and minimum game for simultaneous training, and the generator G aims to learn the characteristics of input real data so as to generate gastric electricity signal data capable of deceiving the discriminator D; the discriminator D improves discrimination ability after training, and distinguishes real stomach electrical signal data and generates stomach electrical signal data;

the trained stool and urine early warning model adopts a trained discriminator D, and judges whether the stomach electrical signal data acquired in real time is satisfactory or not by using the discriminator D;

the objective function for generating the countermeasure network is as follows:

where E (dash) represents the mathematical expectation, x represents the training data, z represents the incoming random noise,which represents the distribution of the training data,representing the distribution of random noise, D (dash) representing the probability that the input came from training data, and G (z) representing the image data generated by generator G.

The embedded microprocessor comprises a Bluetooth module and a USB3.0 interface, and the stomach electric signal data acquired by the stomach electric sensor in real time is transmitted to the embedded microprocessor in real time through Bluetooth;

preprocessing stomach electrical signal data on an embedded microprocessor, inputting the preprocessed stomach electrical signal data into a trained stool and urine early warning model, judging whether a testee is free of stool, and if not, continuing to monitor in real time; if yes, the stool and urine early warning is generated.

In one embodiment, the embedded microprocessor employs a Jetson TX2 development board. The Jetson TX2 development board includes: the NVIDIA Pascal TM architecture is provided with a GPU with 256 NVIDIA CUDA cores, a CPU of a dual-core CPU and a CPU of a quad-core ARM A57 Complex, and is connected with external equipment through a Micro USB, a USB3.0, an HDMI, a Bluetooth module and the like. In this example, the Jetson TX2 development board can satisfy the hardware requirement, and carries an Open CV image processing platform, can receive the stomach electric signal in real time through bluetooth.

In one embodiment, the gastric electrical sensor is a gastric electrical sensor configured as a Biosignals series 4-channel physiological recording monitor from Shanghai digital technologies, Inc., and is intended to facilitate the user in recording the electrical activity of the stomach, and multiple sensors can be used simultaneously in an economically efficient and straightforward manner to assess both intestinal motility and overall gastric activity. The bipolar configuration has two measuring electrodes and the potential of a selected specific stomach region can be detected relative to a reference electrode (placed in a region where bioelectrical activity is low). The resulting signal is an amplified difference between the two leads, eliminating the common unwanted signals. Its convenient form factor can be applied discretely at typical EGG locations.

The stool early warning method based on the countermeasure generation network comprises the following steps:

s1, collecting stomach electrical signal data of a plurality of volunteers;

s2, preprocessing the acquired stomach electrical signal data;

s3, extracting the characteristics of the preprocessed data by using a characteristic extractor;

s4, dividing the extracted characteristic samples into a training set and a testing set, constructing a stool early warning model, and training the stool early warning model by using a generated countermeasure network to obtain a trained stool early warning model;

s5, transferring the trained stool and urine early warning model to an embedded microprocessor, connecting an EGG gastric electric sensor, and acquiring gastric electric signal data in real time by the EGG gastric electric sensor and inputting the data into the embedded microprocessor;

s6, the embedded microprocessor preprocesses the stomach electric signal data collected in real time and carries out the early warning judgment according to the preprocessed data.

The above examples of the present invention are merely examples for clearly illustrating the present invention and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. It is not necessary or necessary to exhaust all embodiments, and all changes, modifications, substitutions, combinations, and simplifications that come within the spirit and scope of the invention are intended to be embraced therein.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种骨质疏松预防诊断装置

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!