One kind judging automatically feed system and method
Technical field
The present invention relates to a kind of medical therapy technical fields, judge automatically feed system and side more particularly, to one kind
Method.
Background technique
Diabetes and obesity are the common public health problems in the whole world, and disease incidence is just in troubling speed
It rises.Type-2 diabetes mellitus case accounts for the overwhelming majority of all diabetes, and most of type 2 diabetes patient is by obesity
Cause.The drug therapy of two kinds of diseases because side effect or lack long-term efficacy due to prospect it is not good enough.
By the investigation of obesity potential treatment scheme, it was determined that weight can be caused to subtract by stomach and intestine electro photoluminescence
Gently, because it changes gastroenteritic power, increase satiety, reduce food intake.The treatment of stomach and intestine electro photoluminescence at present mainly with
Family is opened before diet, so that the satiety before user's diet is effectively improved, to reduce food when really starting diet
Object intake, but in actual application, often there is user and forgets to turn on stomach and intestine electrical stimulation apparatus before its diet
Situation, so that seriously affecting the therapeutic effect of user, there is room for improvement.
Summary of the invention
The object of the present invention is to provide a kind of effective analytical judgments for whether having feed to patient with realization, and are judging
At once stomach and intestine electrical stimulation apparatus is opened when user starts diet really, improves the effect of user's stomach and intestine electronic stimulation
Judge automatically feed system and method.
Foregoing invention purpose of the invention has the technical scheme that
One kind judging automatically feed system, and judging automatically feed system includes being implanted to mucous layer or the placenta percreta of stomach to record stomach
The Gastroenteric Electrical recording electrode of intestines electric signal is connected to Gastroenteric Electrical recording electrode to receive stomach and intestine electric signal and in response to stomach and intestine telecommunications
Number to analyze and determine whether human body has the signal processing module of feed, is connected to signal processing module to receive signal processing signal
And carry out artificial intelligence neural networks training with analyze artificial intelligence neural networks training analysis module that whether human body feed,
And be connected to artificial intelligence neural networks training analysis module and be controlled by artificial intelligence neural networks training analysis module with
Realize the stomach and intestine electrical stimulation treatment device of stomach and intestine electronic stimulation.
By using above-mentioned technical proposal, the Gastroenteric Electrical of patient can be effectively acquired by the setting of Gastroenteric Electrical recording electrode
Signal carries out corresponding signal processing to stomach and intestine electric signal by signal processing module, to facilitate subsequent artefacts' intelligence nerve net
Network training analysis module makees further judgement to human body feed, effectively increases the accurate judgement for whether having feed to user,
Really judge that user has under the precondition of feed, accordingly will start stomach and intestine electrical stimulation treatment device, to effectively increase
To the effect of user's stomach and intestine electronic stimulation.
The present invention is further arranged to: judging automatically feed system further includes being set at Gastroenteric Electrical recording electrode and signal
It manages between module with the signal amplification module for amplifying stomach and intestine electric signal.
By using above-mentioned technical proposal, stomach and intestine electric signal can effectively be amplified by the setting of signal amplification module, from
And avoid stomach and intestine electric signal by external interference signal weaker so that it cannot normal transmitting.
One kind judging automatically eating method, which comprises the following steps:
S1: the Gastroenteric Electrical signal condition of current individual is obtained in real time;
S2: the analytical judgment whether human body feeds is carried out by artificial intelligence neural networks training analysis module.
It, can be based on the personal Gastroenteric Electrical of acquisition by the setting of step S1, step S2 by using above-mentioned technical proposal
Whether signal condition has feed to make accurate judgement human body by artificial intelligence neural networks training analysis module.
The present invention is further arranged to: S2 the following steps are included:
S2.1: the stomach and intestine electric signal of several experimental subjects feeds front and back is obtained;
S2.2: the time domain for obtaining several experimental subjects by time-domain analysis based on the stomach and intestine electric signal of several experimental subjects is special
A is collected, while obtaining the frequency domain character collection B of several experimental subjects by frequency-domain analysis;
S2.3: using all features in temporal signatures collection A and frequency domain character collection B as input layer, whether experimental subjects have feed
Result as output layer, construct artificial neural network;
S2.4: based on the stomach and intestine electric signal of current individual, the temporal signatures of current individual are analyzed by time-domain analysis,
The frequency domain character that current individual is obtained by frequency-domain analysis is brought into the input layer of constructed artificial neural network, passes through classification
Device analyzes and determines out whether current individual has feed.
By using above-mentioned technical proposal, if the setting by step 2.1, step 2.2 can be obtained by time-domain analysis
The time-domain analysis result of dry experimental subjects forms temporal signatures collection A, similar, can obtain experiment accordingly by frequency-domain analysis
Individual frequency-domain analysis result formed frequency domain character collection B, finally using temporal signatures collection A, frequency domain character collection B all features as
Input layer, test it is personal whether fed state as output layer, constructs corresponding artificial neural network, and constructed by set
Artificial neural network and current individual Gastroenteric Electrical signal condition, effectively analyze and determine out whether current individual has feed.
The present invention is further arranged to: constructed artificial neural network is BP neural network, input layer in step S2.3
Number of plies range be [3,15], output layer is two, and 0 represents on an empty stomach, and 1 represents and has a meal, and the range of hidden layer is [1,3].
By using above-mentioned technical proposal, BP nerve net is set by artificial neural network constructed by step S2.3 herein
Network effectively increases the accuracy of building neural network building the known input layer and output layer the case where.
The present invention is further arranged to: step S2.2 is previously mentioned the fast wave constituent analysis that time-domain analysis is stomach and intestine electric signal,
Basic frequency and main power analysis of the frequency-domain analysis for stomach and intestine electric signal.
By using above-mentioned technical proposal, the object of step S2.2 time-domain analysis and frequency-domain analysis is disclosed.
Detailed description of the invention
Fig. 1 is the system block diagram that the present invention judges automatically feed system.
Fig. 2 is the framework schematic diagram for judging automatically neural network constructed by eating method
Fig. 3 is the step schematic diagram for judging automatically eating method.
Fig. 4 is the schematic diagram of step S2 in Fig. 3.
In figure, 1, Gastroenteric Electrical recording electrode;2, signal processing module;3, signal amplification module;4, artificial intelligence nerve net
Network training analysis module.
Specific embodiment
Below in conjunction with attached drawing, invention is further described in detail.
Referring to Fig.1, one kind judging automatically feed system, including being implanted to mucous layer or the placenta percreta of stomach to record Gastroenteric Electrical
The Gastroenteric Electrical recording electrode 1 of signal is connected to Gastroenteric Electrical recording electrode 1 to receive stomach and intestine electric signal and in response to stomach and intestine electric signal
To analyze and determine whether human body has the signal processing module 2 of feed, is connected to signal processing module 2 to receive signal processing signal
And artificial intelligence neural networks training is carried out to analyze the artificial intelligence neural networks training analysis module whether human body feeds
It 4 and is connected to artificial intelligence neural networks training analysis module 4 and is controlled by artificial intelligence neural networks training analysis module
4 to realize the stomach and intestine electrical stimulation treatment device of stomach and intestine electronic stimulation.
Stomach and intestine change in electric can be bigger before and after feed by known people, compared to its stomach and intestine electric signal before feeding after feed
Frequency and intensity can become larger, in addition stomach and intestine electric signal is further divided into fast wave and slow wave, will increase fast wave component on slow wave
Can effectively judge whether human body has feed at this time.
In view of once by the interference of external environment, its signal can die down when practical stomach and intestine electric signal is in transmitting,
It even can not normally be transmitted, judging automatically feed system further includes being set to Gastroenteric Electrical recording electrode 1 and signal processing
With the signal amplification module 3 for amplifying stomach and intestine electric signal between module 2.
The above are the introductions for judging automatically feed system, describe in detail below for eating method is judged automatically.
One kind judging automatically eating method, comprising the following steps: S1: obtaining the stomach and intestine electric signal feelings of current individual in real time
Condition;S2: the analytical judgment whether human body feeds is carried out by artificial intelligence neural networks training analysis module 4.
Wherein step S2 the following steps are included:
S2.1: obtaining the stomach and intestine electric signal of several experimental subjects feeds front and back, and experimental subjects herein are at least 100.
S2.2: based on the stomach and intestine electric signal of several experimental subjects by time-domain analysis obtain several experimental subjects when
Characteristic of field collection A, while the frequency domain character collection B of several experimental subjects is obtained by frequency-domain analysis, time-domain analysis is stomach and intestine electric signal
Fast wave constituent analysis, frequency-domain analysis be stomach and intestine electric signal basic frequency and main power analysis.
S2.3: using all features in temporal signatures collection A and frequency domain character collection B as input layer, whether experimental subjects have
The result of feed constructs artificial neural network as output layer, and constructed artificial neural network is preferably BP in step S3.3
Neural network can also be feedforward neural network, radial basis function neural network, kohonen self organizing neural network, recurrence mind
Through network, convolutional neural networks, modular neural network, the number of plies range of input layer is [3,15], and output layer is two, 0 generation
Table on an empty stomach, have a meal by 1 representative, and the range of hidden layer is [1,3].
S2.4: based on the stomach and intestine electric signal of current individual, the time domain of current individual is analyzed by time-domain analysis
Feature obtains the frequency domain character of current individual by frequency-domain analysis, brings into the input layer of constructed artificial neural network, passes through
Classifier analyzes and determines out whether current individual has feed, and classifier herein can be linear classifier or Nonlinear Classification
Device, wherein linear classifier is mainly used in the function of constructed hidden layer when be linear function, and Nonlinear Classifier is answered
When function used in constructed hidden layer is nonlinear function.
The embodiment of present embodiment is presently preferred embodiments of the present invention, not limits protection of the invention according to this
Range, therefore: the equivalence changes that all structures under this invention, shape, principle are done, should all be covered by protection scope of the present invention it
It is interior.