Auxiliary medical system for blood sugar monitoring and early warning and use method thereof
Technical Field
The invention belongs to the technical field of auxiliary medical treatment, and particularly relates to an auxiliary medical treatment system for blood sugar monitoring and early warning and a using method thereof.
Background
With the rapid development of society, the life rhythm of people is faster and faster, and the incidence of diabetes of people in China is gradually increased. The main cause of diabetes is insulin deficiency or abnormal insulin receptor in human body, which leads to the blood sugar content being higher than the maximum filtering capacity of human body, the main manifestation of the diabetes is hyperglycemia, and the diabetes is divided into type I diabetes and type II diabetes according to different pathogenesis.
Currently, the insulin pump of Meidunli continuously carries out technical innovation by utilizing the strong market advantage, has become the outstanding one in the insulin pump market and occupies most of the insulin market. The insulin pump newly proposed by Meidun dynasty can flexibly adjust the needed insulin basal amount according to the self needs of a patient, and is a semi-closed loop type insulin pump. However, since the mayonnaise pump has no function of predicting blood glucose, there is a delay in administration and it is expensive. In addition, every insulin pump of force of meidun can only be directed against a patient and carry out the output of dosing, and the doctor can only see the undulant condition of blood glucose value of a patient, can't see a plurality of patients ' blood glucose data simultaneously, has increaseed doctor's the work degree of difficulty, consequently needs to provide one kind and can assist the doctor to carry out blood glucose monitoring and unusual early warning system to a plurality of patients in real time.
Although the change of blood sugar has a certain rule, the blood sugar fluctuation is influenced by many aspects, such as the blood sugar of a human body rises after eating, exercise or over-stress and anxiety, and the blood sugar of the human body drops, so that the blood sugar data is difficult to stabilize near a certain average value. The insulin has time lag when acting, and after the patient injects the insulin, the insulin usually acts after 15 to 30 minutes through metabolic cycle, thereby providing a difficult problem for accurate administration in clinic. Therefore, the solution to the prediction enables the doctor to predict the blood glucose fluctuation of the patient, helps the doctor to determine the insulin dosage better, and can expand the scenes used in blood glucose control in the aspect of blood glucose prediction.
Disclosure of Invention
Technical problem to be solved
Aiming at the existing technical problems, the invention provides an auxiliary medical system for monitoring and early warning of blood sugar and a using method thereof, which can not only enable a patient to see the own real-time blood sugar value and the dynamic forecast of blood sugar within 30 minutes, but also assist the doctor to monitor the real-time blood sugar information and the forecast information of a plurality of patients in an area and realize the function of early warning of high/low blood sugar according to the forecast blood sugar value by collecting information of a plurality of sensors through multiple channels.
(II) technical scheme
In order to achieve the purpose, the invention adopts the main technical scheme that:
an assisted medical system for blood glucose monitoring and early warning, comprising: the system comprises a multi-channel clinical blood glucose data acquisition device, a cloud server and a plurality of mobile terminals;
the multichannel clinical blood glucose data acquisition device is in communication connection with the cloud server and can send acquired blood glucose data to the cloud server;
the cloud server is in communication connection with the plurality of mobile terminals respectively;
the cloud server can predict blood sugar data according to the obtained blood sugar data to obtain blood sugar prediction result data;
the plurality of mobile terminals can obtain blood glucose prediction result data from the cloud server.
Preferably, the clinical blood glucose data acquisition device comprises: a continuous blood glucose monitoring sensor CGM and an insulin infusion information acquisition device sensor CSII;
the insulin infusion information collection device sensor CSII is capable of sending patient insulin injection data to the cloud server;
the continuous blood glucose monitoring sensor CGM is capable of transmitting blood glucose data of a patient to the cloud server.
Preferably, the multichannel clinical blood glucose data acquisition device is a UVA/Padova simulation platform;
the UVA/Padova simulation platform can generate virtual blood glucose data for the cloud server.
Preferably, the plurality of mobile terminals include at least: a patient client for use by a patient and a monitor interface information system client for use by a doctor.
Preferably, the cloud server includes at least: the system comprises a computing module and a cloud storage database;
the computing module can process the obtained blood sugar data into blood sugar prediction result data and store the blood sugar prediction result data into the cloud storage database.
The technical scheme also provides a use method of the medical system based on the above, which comprises the following steps:
the clinical blood sugar data acquisition device sends acquired or simulated blood sugar data of the patient to a cloud storage database;
the cloud storage database sends the received blood glucose data of the patient to the computing module;
the computing module carries out blood sugar prediction by utilizing the received blood sugar data of the patient to obtain blood sugar prediction result data after 30 minutes and feeds the blood sugar prediction result data back to the cloud storage database;
feeding back data information in the cloud storage database to the plurality of mobile terminals;
the data information at least comprises: patient blood glucose data and blood glucose prediction outcome data.
Preferably, the step of: the calculation module uses the received blood sugar data of the patient to predict the blood sugar, and further comprises the following substeps:
s1, preprocessing blood sugar data of the patient;
s2, decomposing the preprocessed blood sugar data by using a variational mode method VMD to obtain a group of sub-modes which are more stable than the original data;
and S3, establishing a GPR model for each sub-mode to predict the sub-modes, obtaining a predicted value of each sub-mode, and fusing and superposing all the obtained predicted values to obtain final blood sugar prediction result data.
Preferably, the step S2 further includes the following sub-steps:
s201, aiming at each sub-mode ukThe single-side spectrum is obtained by calculating an analytic signal related to the Hilbert transform, and the method comprises the following steps:
where H (t) is the modal resolution signal, δ (t) is the Dirac distribution, t is the sampling time point, { u {k}={u1,...,uK};
S202, aiming at each sub-mode, by aiming at the center frequency omegakCarrying out exponential term aliasing, and modulating each sub-mode to a corresponding fundamental frequency band, wherein the formula is as follows:
in the formulaIs omegakVector description on the complex plane, { omega }k}={ω1,...,ωK};
S203, estimating the bandwidth of each sub-mode, and calculating the square L of the gradient2Norm, and the constraint condition variation problem corresponding to the position is:
s204, introducing an augmented Lagrange function, obtaining a non-constrained problem by using a secondary penalty function term and a Lagrange multiplier, and finally solving the problem by the following formula:
wherein,is a penalty term and λ is the lagrange multiplier.
Preferably, the step S2 further includes:
a1, by alternate updatingAndto find the optimal solution, the convergence condition is:
wherein epsilon represents a convergence condition in which,representing the fourier transform, n is the number of iterations;
a2, obtaining ukAnd ω 1kFunction:
wherein,representing the current amount of the remaining,representing the center of gravity of the power spectrum of the current mode function.
Preferably, the kernel function of the GPR model in step S3 is:
wherein m is the length of the blood glucose input vector,is an output scale parameter;is the variance of the data.
(III) advantageous effects
The invention has the beneficial effects that: the invention provides an auxiliary medical system for blood sugar monitoring and early warning and a using method thereof, which have the following beneficial effects:
(1) the sensor information of a plurality of patients can be acquired by utilizing multiple channels, so that not only can the patients see the own real-time blood sugar values and the 30-minute dynamic blood sugar forecast, but also the real-time blood sugar information and the forecast information of the plurality of patients in the doctor monitoring area can be assisted.
(2) The system can provide blood sugar abnormity early warning function for the patient, and the patient can compensate for meals or take corresponding measures according to the condition.
(3) The VMD-GPR prediction model adopted by the invention can accurately predict the change trend of blood sugar, and is beneficial to blood sugar control.
Drawings
FIG. 1 is a schematic diagram of an auxiliary medical system for blood glucose monitoring and early warning according to the present invention;
FIG. 2 is a schematic diagram of a VMD-GPR algorithm in a method for using the auxiliary medical system for blood sugar monitoring and early warning provided by the invention;
FIG. 3 is a schematic diagram of an algorithm flow of a VMD-GPR algorithm in a method for using the auxiliary medical system for blood sugar monitoring and early warning provided by the invention;
FIG. 4 is a schematic diagram illustrating comparison between actual blood glucose values and predicted blood glucose outputs in a method of using an auxiliary medical system for blood glucose monitoring and early warning according to the present invention;
FIG. 5 is a diagram illustrating the effect of a predicted part of a method for using an assistant medical system for blood glucose monitoring and early warning according to the present invention;
FIG. 6 is a simulation diagram of prediction and early warning in a method of using an auxiliary medical system for blood glucose monitoring and early warning according to the present invention;
fig. 7 is a schematic diagram of a doctor monitoring interface information system of an auxiliary medical system for blood glucose monitoring and early warning according to the present invention.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
Example one
As shown in fig. 1: the embodiment discloses an auxiliary medical system for blood sugar monitoring and early warning, including: the system comprises a multi-channel clinical blood glucose data acquisition device, a cloud server and a plurality of mobile terminals.
The multichannel clinical blood glucose data acquisition device is in communication connection with the cloud server and can send acquired blood glucose data to the cloud server. The cloud server is in communication connection with the plurality of mobile terminals respectively; the cloud server can predict blood sugar data according to the obtained blood sugar data to obtain blood sugar prediction result data; the plurality of mobile terminals can obtain blood glucose prediction result data from the cloud server.
It should be noted that: the multichannel clinical blood glucose data acquisition device can be used for simultaneously acquiring blood glucose data of one or more patients in one region and sending the acquired blood glucose data to the cloud server.
Wherein the plurality of mobile terminals include at least: a patient client for use by a patient and a monitor interface information system client for use by a doctor.
In practical application, the patient client can be an APP (application) or other mobile terminals installed on the mobile phone client of the patient, and the monitoring interface information system client used by a doctor in the same way can be a mobile phone or a computer and other equipment.
The clinical blood glucose data acquisition device in this embodiment includes: a continuous blood glucose monitoring sensor CGM and an insulin infusion information acquisition device sensor CSII; the insulin infusion information collection device sensor CSII can send patient insulin injection data to the cloud server.
The continuous blood glucose monitoring sensor CGM is capable of transmitting blood glucose data of a patient to the cloud server.
Alternatively, the clinical blood glucose data collecting device in this embodiment may also be a UVA/Padova simulation platform, that is, a virtual data generation platform.
When the clinical data are not enough to drive the related algorithm, the virtual data of the UVA/Padova simulation platform are used for assisting generation.
The UVA/Padova simulation platform can provide virtual blood glucose data for the cloud server, and can simultaneously generate virtual blood glucose data of one or more patients.
Finally, it should be noted that in this embodiment, the cloud server at least includes: the system comprises a computing module and a cloud storage database.
The computing module can process the obtained blood sugar data into blood sugar prediction result data and store the blood sugar prediction result data into the cloud storage database.
Correspondingly, the cloud server in this embodiment can also provide information such as blood glucose abnormal alarm and blood glucose intelligent evaluation for the monitoring interface information client and the patient client according to the blood glucose data of the patient and the blood glucose prediction result data.
The embodiment also provides a use method of the medical system based on the above embodiment, which includes the following steps:
the multichannel clinical blood sugar data acquisition device transmits acquired or simulated blood sugar data of a patient to a cloud storage database;
the cloud storage database sends the received blood glucose data of the patient to the computing module;
the computing module carries out blood sugar prediction by utilizing the received blood sugar data of the patient to obtain blood sugar prediction result data after 30 minutes and feeds the blood sugar prediction result data back to the cloud storage database;
feeding back data information in the cloud storage database to the plurality of mobile terminals;
the data information at least comprises: patient blood glucose data and blood glucose prediction outcome data.
Of course, the data information described herein also includes abnormal blood glucose alarms and intelligent blood glucose assessment.
As shown in fig. 2 and 3: the steps described in this embodiment: the calculation module uses the received blood sugar data of the patient to predict the blood sugar, and further comprises the following substeps:
s1, preprocessing blood sugar data of the patient;
s2, decomposing the preprocessed blood sugar data by using a variational mode method VMD to obtain a group of sub-modes which are more stable than the original data;
and S3, establishing a GPR model for each sub-mode to predict the sub-modes, obtaining a predicted value of each sub-mode, and fusing and superposing all the obtained predicted values to obtain final blood sugar prediction result data.
The step S2 in this embodiment further includes the following sub-steps:
s201, aiming at each sub-mode ukThe single-side spectrum is obtained by calculating an analytic signal related to the Hilbert transform, and the method comprises the following steps:
where H (t) is the modal resolution signal, δ (t) is the Dirac distribution, t is the sampling time point, { u {k}={u1,...,uK};
S202, aiming at each sub-mode, by aiming at the center frequency omegakCarrying out exponential term aliasing, and modulating each sub-mode to a corresponding fundamental frequency band, wherein the formula is as follows:
in the formulaIs omegakVector description on the complex plane, { omega }k}={ω1,...,ωK};
S203, estimating the bandwidth of each sub-mode, and calculating the square L of the gradient2Norm, and the constraint condition variation problem corresponding to the position is:
s204, introducing an augmented Lagrange function, obtaining a non-constrained problem by using a secondary penalty function term and a Lagrange multiplier, and finally solving the problem by the following formula:
wherein,is a penalty term and λ is the lagrange multiplier.
Accordingly, the step S2 further includes:
a1, by alternate updatingAndto find the optimal solution, the convergence condition is:
wherein epsilon represents a convergence condition in which,representing the fourier transform, n is the number of iterations;
a2, obtaining ukAnd ωkFunction:
wherein,representing the current amount of the remaining,representing the center of gravity of the power spectrum of the current mode function.
Finally, it should be noted that: the kernel function of the GPR model in step S3 is:
wherein m is the length of the blood glucose input vector,is an output scale parameter;is the variance of the data.
Example two
The method of using the medical system provided in this embodiment may further include the steps of:
s1, if the patient is a real patient, first collecting sensor data, such as CGM blood glucose data and CSII injection data.
And if no clinical data exist, selecting a matlab simulation module to produce virtual patient data for system testing.
And S2, if the patient is a real patient, taking the sensor data of all the patients in the area diagnosed by the doctor and storing the sensor data by using MySQL cloud, and if the patient is a virtual patient, storing the data of a plurality of virtual patients together in the cloud.
And S3, predicting the blood glucose data of a plurality of patients stored in the data cloud by using a Python language through a VMD-GPR prediction model in a multi-channel mode, and feeding the prediction result back to the data cloud.
And S4, feeding back the data information in the data cloud to the patient client and the monitoring interface end information system of the doctor. The patient can see the real-time blood sugar value of the patient in the mobile terminal, forecast dynamic forecast in 30 minutes, early warning of blood sugar abnormity and intelligently evaluate the blood sugar abnormity. In the blood sugar early warning, firstly, a blood sugar dynamic prediction result is combined, and a clinically adopted blood sugar safety threshold range is combined to design a blood sugar abnormity on-line early warning system.
S5, the doctor can consult the real-time blood sugar values of all patients in the area to be treated, the dynamic predicted value of the blood sugar within 30 minutes, and give out administration suggestions and meal reminders for the blood sugar early warning patients by logging in the monitoring interface information system (IMS).
1. Randomly selecting one patient from the matlab platform, preprocessing the blood glucose data detected by the CGM of the patient, resampling the blood glucose data to obtain the blood glucose value of the patient, and displaying the blood glucose data of the VMD-GPR prediction model in the simulation for nearly 3 days as shown in FIG. 4, wherein a solid line is a real value and a dotted line is a predicted value.
As shown in fig. 5: aiming at the effect graph of the prediction part, the VMD-GPR model can accurately predict the blood sugar change trend by comparing the prediction sample with the test sample, and the RMSE (root mean square error) obtained by the evaluation function is 5.99, so that the online prediction result is accurate and the precision is high.
2. As shown in the figure, the blood sugar early warning part is divided into a step of starting a hyperglycemia warning when the blood sugar value exceeds 180mg/dl, a step of starting a hyperglycemia warning when the blood sugar value is 140mg/dl-180mg/dl, a step of starting a hypoglycemia warning when the blood sugar value is 70mg/dl-80mg/dl and a step of starting a hypoglycemia warning when the blood sugar value is below 70 mg/dl.
As shown in fig. 6: blood sugar prediction data are simulated in matlab aiming at the early warning system.
In the simulation result chart, + is a hyperglycemia alarm, ○ is a hyperglycemia early warning, and blood glucose value is in a normal range.
3. As shown in fig. 7: for the 30-minute glucose dynamic prediction part of the multichannel (three virtual patients as an example).
The technical principles of the present invention have been described above in connection with specific embodiments, which are intended to explain the principles of the present invention and should not be construed as limiting the scope of the present invention in any way. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive efforts, which shall fall within the scope of the present invention.