Closed-loop insulin infusion control method and system based on neural network feedback linearization

Through the neural network feedback linearized closed-loop insulin infusion control method, using the NARMA model and Taylor series expansion technology, combined with the active insulin estimation module, it solves the limitations of traditional intelligent control algorithms and insulin accumulation problems in individualized treatment, and achieves Wider blood sugar control effectiveness and safety.

CN117919546BActive Publication Date: 2024-10-01GUANGDONG FOOD & DRUG VOCATIONAL COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410112926.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-26
Publication Date
2024-10-01
Estimated Expiration
2044-01-26

AI Technical Summary

Technical Problem

Traditional intelligent control algorithms have limitations in personalized treatment of diabetic patients. Linear models are difficult to apply to all patients, and the artificial pancreas system can easily lead to insulin accumulation and increase the risk of hypoglycemia when adjusting the insulin injection rate.

Method used

A neural network-based feedback linearization closed-loop insulin infusion control method is used to describe the blood glucose-insulin relationship through a nonlinear autoregressive moving average model (NARMA), and implement feedback linearization of the model through Taylor series expansion, combined with active insulin estimation The module corrects the insulin infusion rate in real time.

Benefits of technology

It achieves good blood sugar control effects in a wider patient group, enhances the learning ability and safety of the model, and reduces the risk of hypoglycemia.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117919546B_ABST
    Figure CN117919546B_ABST
Patent Text Reader

Abstract

The present invention provides a closed-loop insulin infusion control method and system based on neural network feedback linearization, selects a nonlinear autoregressive moving average model NARMA to describe the patient's blood sugar-insulin relationship, and realizes the feedback linearization of the above model through Taylor series expansion. In the process of solving the model, the nonlinear function in the model is retained and the above nonlinear function is approximated by a neural network model. The appropriate insulin metabolism curve is selected according to the patient's physiological parameters to calculate the active insulin residue in the patient's body in real time, so as to correct the insulin infusion rate in real time to avoid hypoglycemia in patients. The present invention not only has the stability of a linear model, but also has the learning ability of a neural network, which can achieve good blood sugar control effects in a wider range of patient groups.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical device technology, and in particular to a closed-loop insulin infusion control method and system based on neural network feedback linearization. Background Art

[0002] The closed-loop insulin infusion system, also known as the artificial pancreas, is an effective treatment for diabetes. The artificial pancreas mainly consists of three parts: the continuous glucose monitoring system (CGMS), the intelligent control algorithm, and the insulin pump (IP). The CGMS system is responsible for monitoring the patient's blood sugar changes, and the intelligent control algorithm calculates the appropriate insulin infusion rate based on the detected blood sugar data and controls the insulin pump to complete the insulin infusion. In the entire system, the intelligent control algorithm plays a decisive and core role. So far, a variety of effective control algorithms have been applied to the closed-loop artificial pancreas control system.

[0003] Traditional intelligent control algorithms mostly use linear models to describe the blood glucose-insulin relationship of diabetic patients. Although linear models are relatively easy to build and have strong stability, they have major problems in personalized treatment of patients. Taking model predictive control as an example, the blood glucose-insulin metabolism model built by collecting data such as the patient's weight and insulin sensitivity is often difficult to apply to all diabetic patients. Adolescents with vigorous metabolism and hormone secretion levels often have higher insulin resistance. At the same time, the blood glucose-insulin metabolism of individual patients is also affected by many factors such as exercise and mood. Therefore, the linear blood glucose-insulin metabolism model often has great limitations in actual use.

[0004] Moreover, the current artificial pancreas as a continuous insulin infusion device has the following problems: (1) It takes a while for subcutaneously injected insulin to reach the blood and take effect. (2) Insulin needs to continue to play a blood sugar lowering role in the body until it is completely metabolized. If the artificial pancreas system only adjusts the insulin injection rate according to the patient's blood sugar, then the patient will often have an overdose of insulin infusion in the early stage after a meal. This insulin accumulation will often increase the risk of hypoglycemia in the patient in the later stage. Summary of the invention

[0005] The present invention provides a closed-loop insulin infusion control method and system based on neural network feedback linearization, which describes the patient's blood sugar-insulin relationship by selecting a nonlinear autoregressive moving average model NARMA, and realizes the feedback linearization of the above model by Taylor series expansion. In the process of solving the model, the nonlinear function in the model is retained and the above nonlinear function is approximated by the neural network model. Therefore, the closed-loop insulin infusion control method and system based on neural network feedback linearization proposed in the present invention not only have the stability of a linear model, but also have the learning ability of a neural network, which can achieve good blood sugar control effects in a wider range of patient groups.

[0006] Specifically, the closed-loop insulin infusion control method based on neural network feedback linearization described in the present invention includes:

[0007] S1: Real-time monitoring of human blood glucose parameters and recording of patients' insulin infusion rate.

[0008] S2: According to the monitoring results, based on the neural network closed-loop insulin infusion control model, the insulin infusion parameters are calculated, and the actual insulin infusion rate is calculated according to the insulin infusion parameters.

[0009] S3: completing the current round of insulin infusion according to the actual insulin injection rate, and returning to S1 to enter the next round of automatic monitoring.

[0010] The present invention adopts the nonlinear autoregressive moving average model NARMA to construct the patient's blood sugar-insulin relationship and calculate the insulin infusion rate. In the process of solving the model, the Taylor series expansion method is adopted to realize the feedback linearization of the model and the neural network is adopted to approximate the nonlinear function therein. The present invention designs an active insulin estimation module, selects a suitable insulin metabolism curve through the patient's physiological parameters, and then calculates the active insulin residual amount in the patient's body in real time, thereby correcting the insulin infusion rate in real time to avoid hypoglycemia in the patient.

[0011] In some implementations, the step S2 is specifically:

[0012] S21: Construct a neural network closed-loop insulin infusion control model: Use the nonlinear autoregressive moving average (NARMA) model to construct the relationship between patient blood glucose and insulin, and use the Taylor series expansion method to linearize the NARMA model feedback.

[0013] S22: Using a neural network model to train and optimize parameters of the NARMA model to approximate a nonlinear function.

[0014] S23: Introducing a reference curve to solve the NARMA model and obtaining a theoretical insulin infusion rate.

[0015] S24: Introduce an active insulin estimation module to calculate the amount of active insulin in the patient's body in real time.

[0016] The difference between the theoretical insulin infusion rate and the active insulin amount is the actual insulin infusion rate.

[0017] In some implementations, step S21 is specifically:

[0018] y(k+d)=N[y(k), y(k-1),..., y(k-n+1), u(k), u(k-1),...u(k-n+1)].

[0019] The NARMA model feedback is linearized using Taylor series expansion:

[0020] y(k+d)=f[y(k),y(k-1),…,y(k-n+1),u(k),…u(k-n+1)]+g[y(k),y(k-1),…,y(k-n+1),u(k),…,u(k-n+1)]·u(k+1).

[0021] Where y(k) is the patient's blood glucose value at time k; y(k+d) is the blood glucose value at time k+d, d is the prediction step, d≥2; N is the nonlinear function that needs to be approximated by the neural network; u(k) is the theoretical insulin infusion rate at time k; n is the measurement order of input and output, n≥2.

[0022] In some implementations, before step S22, the method further includes: performing system identification.

[0023] The neural network model is trained offline based on historical data; the historical data includes blood glucose data and insulin infusion rate data.

[0024] During offline training, the weights of the internal neurons of the neural network model are adaptively adjusted, and the training is iterated K times or iterated until the difference between the predicted blood sugar value and the currently monitored blood sugar value is within a preset range, then the current round of offline training is terminated.

[0025] In some implementations, step S23 includes:

[0026] Let y(k+d)=yr(k+d) so that the patient's blood glucose data at time k+d follows the value of the target curve at time k+d. Then the NARMA model in step S21 can be rewritten as:

[0027]

[0028] Among them, u(k+1) is the desired theoretical insulin infusion rate.

[0029] In some implementations, the step S23 further includes: referring to the curve y r The segmented design is as follows:

[0030] If the current patient's blood sugar y(t) is higher than the blood sugar warning value The reference curve y r The slope is -x k1 .

[0031] If the patient's current blood sugar y(t) is lower than the blood sugar warning value Higher than expected blood sugar level The reference curve y r The slope is -x k2 .

[0032] If the patient's current blood sugar y(t) is lower than the expected blood sugar value The reference curve y r The slope of is 0.

[0033] Among them, x>1,k1>k2>0.

[0034] In some implementations, step S24 includes:

[0035] According to the insulin metabolism curve, it is divided into t 1 ~t n Minute metabolic curves, corresponding to n physiological states.

[0036] The amount of active insulin in the patient's body is calculated based on physiological parameters under different physiological states.

[0037] The physiological parameters are at least heart rate and pulse; the physiological states are at least sleep, rest, daily life and exercise.

[0038] In a second aspect, the present invention further provides a closed-loop insulin infusion control system based on neural network feedback linearization, the system comprising at least:

[0039] The data monitoring unit is used to monitor the human blood sugar parameters in real time and record the patient's insulin infusion rate.

[0040] The first calculation unit adopts the NARMA model to construct the relationship between the patient's blood sugar and insulin, and adopts the Taylor series expansion method to linearize the NARMA model feedback, adopts the neural network model to train and tune the parameters of the NARMA model to approximate the nonlinear function, introduces the reference curve to solve the NARMA model, and obtains the theoretical insulin infusion rate; introduces the active insulin estimation module to calculate the active insulin amount in the patient's body in real time;

[0041] A second calculation unit is used to calculate the actual insulin infusion rate according to the monitoring result based on the neural network closed-loop insulin infusion control model;

[0042] An infusion unit is used to control the infusion amount according to the actual insulin infusion rate.

[0043] In some implementations, the control system further includes: an identification unit.

[0044] The identification unit performs offline training on the neural network model based on historical data, adaptively adjusts the weights of internal neurons of the neural network model, and iterates the training K times or until the difference between the predicted blood sugar value and the currently monitored blood sugar value is within a preset range.

[0045] In a third aspect, the present invention further provides an insulin infusion device, the device comprising at least:

[0046] A recording module, used to record the progress of this infusion after the infusion begins;

[0047] A sending module, used for sending the most recent infusion history record cached by the pump body to the controller, and for sending all infusion history records cached by the pump body to the controller;

[0048] A receiving module, used for receiving an infusion instruction sent by a controller;

[0049] The controller is used to complete the infusion according to the neural network feedback linearization closed-loop insulin infusion control method as described above.

[0050] As another preferred embodiment, the present invention also provides a storage medium, which is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the closed-loop insulin infusion control method based on a neural network as described above is implemented.

[0051] In a preferred solution, the computer program further supports a telemedicine access function, and the telemedicine access function includes the following contents:

[0052] If the medical staff determines that intervention is needed to control the insulin infusion based on the user's blood sugar level and the insulin infusion rate increment of the insulin pump, the corresponding instruction code of the control module can be input through the communication module. The instruction code has a priority, and the control module will give priority to controlling the infusion rate of the insulin pump according to the instruction code of the medical staff.

[0053] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0054] 1. Compared with the existing artificial pancreas intelligent control algorithm, the present invention adopts a linear control method, which is easy to build and has a stable model.

[0055] 2. The present invention uses a neural network to approximate the nonlinear function in the model, which enhances the learning ability of the model and increases the universality of the artificial pancreas system for different patients.

[0056] 3. The present invention adopts an active insulin estimation module to correct the patient's insulin infusion rate in real time, further reducing the patient's risk of hypoglycemia and increasing the safety of the artificial pancreas system. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 This is a flow chart of the closed-loop insulin infusion control method based on neural network feedback linearization described in the present invention.

[0058] Figure 2 for Figure 1 Schematic diagram of the closed-loop insulin infusion control method based on neural network feedback linearization.

[0059] Figure 3 Schematic diagram of the neural network topology structure based on NARMA-L2 described in the present invention.

[0060] Figure 4 This is a schematic diagram of the amount of active insulin in a patient according to the present invention.

[0061] Figure 5 This is a schematic diagram of the closed-loop insulin infusion control system based on neural network feedback linearization described in the present invention. DETAILED DESCRIPTION

[0062] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0063] Please refer to Figure 1-2, is a schematic diagram of a closed-loop insulin infusion control method based on neural network feedback linearization provided in the first embodiment of the present application.

[0064] The closed-loop insulin infusion control method based on neural network feedback linearization described in the present invention comprises:

[0065] S1: Real-time monitoring of human blood glucose parameters and recording of patients' insulin infusion rate.

[0066] S2: According to the monitoring results, based on the neural network closed-loop insulin infusion control model, the insulin infusion parameters are calculated, and the actual insulin infusion rate is calculated according to the insulin infusion parameters.

[0067] S3: Complete this round of insulin infusion according to the actual insulin infusion rate, and return to S1 to enter the next round of automatic monitoring.

[0068] The present invention adopts nonlinear autoregressive moving average model NARMA to construct the patient's blood sugar-insulin relationship and calculate the insulin infusion rate. In the process of solving the model, Taylor series expansion is adopted to realize the feedback linearization of the model and neural network is adopted to approximate the nonlinear function therein.

[0069] The present invention designs an active insulin estimation module, which selects a suitable insulin metabolism curve through the patient's physiological parameters and then calculates the active insulin residue in the patient's body in real time, thereby correcting the insulin injection rate in real time to avoid hypoglycemia in the patient.

[0070] The closed-loop insulin infusion control method and system based on neural network feedback linearization proposed in the present invention not only have the stability of a linear model, but also have the learning ability of a neural network, which can achieve good blood sugar control effects in a wider range of patient groups.

[0071] In some implementations, the step S2 is specifically:

[0072] S21: Construct a neural network closed-loop insulin infusion control model: Use the nonlinear autoregressive moving average (NARMA) model to construct the relationship between patient blood glucose and insulin, and use the Taylor series expansion method to linearize the NARMA model feedback.

[0073] S22: Using a neural network model to train and optimize parameters of the NARMA model to approximate a nonlinear function.

[0074] S23: Introducing a reference curve to solve the NARMA model and obtaining a theoretical insulin infusion rate.

[0075] S24: Introduce an active insulin estimation module to calculate the amount of active insulin in the patient's body in real time.

[0076] The difference between the theoretical insulin infusion rate and the active insulin amount is the actual insulin infusion rate.

[0077] In some implementations, step S21 is specifically:

[0078] y(k+d)=N[y(k), y(k-1),..., y(k-n+1), u(k), u(k-1),...u(k-n+1)].

[0079] The NARMA model feedback is linearized using Taylor series expansion:

[0080] y(k+d)=f[y(k),y(k-1),…,y(k-n+1),u(k),…u(k-n+1)]+g[y(k),y(k-1),…,y(k-n+1),u(k),…,u(k-n+1)]·u(k+1).

[0081] Where y(k) is the patient's blood glucose value at time k; y(k+d) is the blood glucose value at time k+d, d is the prediction step, d=5; N is the nonlinear function that needs to be approximated by the neural network; u(k) is the theoretical insulin infusion rate at time k; n is the measurement order of input and output, n=15.

[0082] Preferably, in step S22, BP neural network is used to approximate nonlinear functions f and g, and system identification is performed before use. Wherein, neural networks f and g include an input layer, a hidden layer and an output layer. Before calculating the insulin infusion parameters, the function g and function f based on the BP neural network can be trained offline according to historical data to enhance its prediction effect.

[0083] like Figure 3 As shown, it is preferred to adopt a neural network topology based on NARMA-L2, where TDL is a delay module; the functions g and f in the two dashed boxes are both approximated by BP neural network, IW 1,1 , IW 1,2 , IW 3,1 , IW 3,2 , LW 2,1 , LW 4,1They are respectively the weight matrix from the hidden layer of network g to u, the weight matrix from the hidden layer of network g to y, the weight matrix from the hidden layer of network f to u, the weight matrix from the hidden layer of network f to y, the weight matrix from the output layer of network g to the hidden layer, and the weight matrix from the output layer of network f to the hidden layer; ∑ is the summation module; φ and ψ are the activation functions of the hidden layer and output layer respectively; θ and α are the thresholds of the hidden layer and output layer respectively.

[0084] In some implementations, before step S22, the method further includes: performing system identification.

[0085] The neural network model is trained offline according to historical data; the historical data includes blood sugar data and insulin injection rate data.

[0086] During offline training, the weights of the internal neurons of the neural network model are adaptively adjusted, and the training is iterated K times or iterated until the difference between the predicted blood sugar value and the currently monitored blood sugar value is within a preset range, then the current round of offline training is terminated.

[0087] Preferably, the number of training iterations (epochs) k (k=100) needs to be set during the training process, and the training function trainlm algorithm is selected. The neural network is set to have 9 neurons in the hidden layer, 15 input delays, and 15 output delays.

[0088] In some implementations, step S23 includes:

[0089] Let y(k+d)=y r (k+d), so that the patient's blood glucose data at time k+d follows the value of the target curve at time k+d, then the NARMA model in step S21 can be rewritten as:

[0090]

[0091] Among them, u(k+1) is the desired theoretical insulin infusion rate.

[0092] In some implementations, the step S23 further includes: referring to the curve y r The segmented design is as follows:

[0093] If the current patient's blood sugar y(t) is higher than the blood sugar warning value The reference curve y r The slope is -x k1 .

[0094] If the patient's current blood sugar y(t) is lower than the blood sugar warning value Higher than expected blood sugar level The reference curve y r The slope is -xk2 .

[0095] If the patient's current blood sugar y(t) is lower than the expected blood sugar value The reference curve y r The slope of is 0.

[0096] Among them, x>1,k1>k2>0.

[0097] in, The value of x is the natural base e, k1=2, k2=1.

[0098] In order to calculate the amount of active insulin in the patient's body in real time, an active insulin estimation module can be introduced. The module estimates the amount of active insulin in the patient's body using a mathematical model or algorithm based on the patient's insulin infusion record and blood glucose monitoring data.

[0099] The active insulin estimation module can be calculated based on the input insulin infusion rate and blood glucose monitoring data. The specific method can be selected based on the results of research and practice, such as using a pharmacokinetic model, an insulin-blood glucose response model or other algorithms.

[0100] By calculating the amount of active insulin in real time, medical staff can better understand the drug levels in the patient's body and adjust the insulin infusion strategy more accurately. This helps to achieve better blood sugar control and personalized insulin management. It should be noted that the design and development of the active insulin estimation module may require reference to relevant research and domain expertise. In practical applications, the module also needs to be verified and tuned to ensure the accuracy and stability of the estimation of the amount of active insulin.

[0101] By introducing the active insulin estimation module, the amount of active insulin in the patient's body can be calculated in real time, providing more comprehensive information support for insulin management and helping to optimize blood sugar control strategies.

[0102] In some implementations, step S24 includes:

[0103] According to the insulin metabolism curve, it is divided into t 1 ~t n Minute metabolic curves, corresponding to n physiological states.

[0104] The amount of active insulin in the patient's body is calculated based on physiological parameters under different physiological states.

[0105] According to the physiological parameters under different physiological states, the amount of active insulin in the patient's body can be calculated. This requires more detailed physiological parameters and insulin metabolism models to reasonably control insulin infusion according to the patient's physiological state and insulin needs. It should be noted that each person's physiological state and insulin needs may vary, so customized insulin management is required according to the patient's individual situation. In addition, other factors such as diet, disease status, etc. will also affect insulin needs, so multiple factors need to be considered comprehensively in practical applications.

[0106] The physiological parameters are at least heart rate and pulse; the physiological states are at least sleep, rest, daily life and exercise. The following are four common physiological states and their corresponding heart rate and pulse ranges. The values ​​of heart rate and pulse may vary under different physiological states:

[0107] Sleeping state: During sleep, heart rate and pulse are usually lower, showing a more stable rhythm.

[0108] Resting state: In the resting state, the heart rate and pulse increase slightly but remain low.

[0109] Daily state: During daily activities, heart rate and pulse may increase slightly, but still within a relatively normal range.

[0110] Exercise state: When exercising, the heart rate and pulse increase significantly and are higher than the usual range.

[0111] Among them, the insulin metabolism curve is determined by the patient's heart rate. A heart rate between 50 and 60 beats per minute is defined as a sleeping state, between 60 and 80 beats per minute is defined as a resting state, between 80 and 100 beats per minute is defined as a daily state, and above 100 beats per minute is defined as an exercise state. The above standards can be modified by doctors according to the patient's heart rate level during actual use.

[0112] like Figure 4 As shown, in S24, the insulin metabolism curve is divided into t 1 ~t n Minute metabolic curves, corresponding to n physiological states. Here, n = 4, t 1 = 120 minutes, t 2 = 180 minutes, t 3 = 240 minutes, t 1 = 300 minutes, corresponding to the patient's four physiological states: exercise, daily life, rest and sleep. Assuming that the metabolism percentage of insulin over time in the four physiological states is as shown in Figure a, the metabolic rate t n / 2 and reaches its maximum, and the corresponding residual insulin amount is shown in Figure b.

[0113] If the patient is in daily state, t 2 = 180 minutes, then all the insulin injected in the past m≤180 minutes will remain, and the amount of active insulin remaining is Where u(tm) is the insulin injection rate at time tm, and the actual insulin injection rate is u(k+1)-I active

[0114] In order to better illustrate the closed-loop insulin infusion control method based on neural network feedback linearization of the present invention, the following preferred examples are specifically given here:

[0115] In this preferred solution, the performance of the algorithm is tested using T1DMS, a diabetes simulation treatment test software that can replace animal experiments. The software includes 10 virtual diabetic adult patients, 10 adolescent patients, and 10 child patient models, and provides virtual CGMS and insulin pumps. During the test, it is only necessary to implant the control algorithm into the test platform, select the test subject, set the meal plan and monitoring indicators, and then observe the blood sugar control effect of the insulin pump.

[0116] Patient Type Blood sugar control percentage during target period Percentage of time with hypoglycemic episodes Percentage of time with hyperglycemic episodes child 86% 4% 10% teenager 90% 2% 8% aldult 95% 0% 5%

[0117] As shown in the table above, after testing, the results in the table are obtained, showing the blood sugar control percentage of adult, adolescent and child patients, the target interval of blood sugar control is set to 70-180 mg / dl; the percentage of time when patients have hypoglycemia events, the hypoglycemia interval is set to <70 mg / dl; the percentage of time when patients have hyperglycemia events, the hyperglycemia interval is set to >180 mg / dl. Therefore, the invention shows good effectiveness and high safety in controlling blood sugar in patients.

[0118] Second, as Figure 5 As shown, the present invention also provides a closed-loop insulin infusion control system based on neural network feedback linearization, the system at least comprising:

[0119] The data monitoring unit is used to monitor the human blood sugar parameters in real time and record the patient's insulin infusion rate.

[0120] The first calculation unit adopts the NARMA model to construct the relationship between the patient's blood sugar and insulin, and adopts the Taylor series expansion method to linearize the NARMA model feedback, adopts the neural network model to train and tune the parameters of the NARMA model to approximate the nonlinear function, introduces the reference curve to solve the NARMA model, and obtains the theoretical insulin infusion rate; introduces the active insulin estimation module to calculate the active insulin amount in the patient's body in real time;

[0121] A second calculation unit is used to calculate the actual insulin infusion rate according to the monitoring result based on the neural network closed-loop insulin infusion control model;

[0122] The infusion unit is used to control the infusion amount according to the actual insulin injection rate.

[0123] In some implementations, the control system further includes: an identification unit.

[0124] The identification unit performs offline training on the neural network model based on historical data, adaptively adjusts the weights of internal neurons of the neural network model, and iterates the training K times or until the difference between the predicted blood sugar value and the currently monitored blood sugar value is within a preset range.

[0125] In a third aspect, the present invention further provides an insulin infusion device, the device comprising at least:

[0126] A recording module, used to record the progress of this infusion after the infusion begins;

[0127] A sending module, used for sending the most recent infusion history record in the pump body buffer to the controller, and for sending all infusion history records in the pump body buffer to the controller;

[0128] A receiving module, used for receiving an infusion instruction sent by a controller;

[0129] The controller is used to complete the infusion according to the closed-loop insulin infusion control method based on neural network feedback linearization as described above.

[0130] Preferably, the controller uses an ARM microcontroller chip FS32K146HNT0VLLT, but is not limited thereto.

[0131] At one end of the controller, an insulin pump is used to infuse insulin to the user, and the input end of the insulin pump is connected to the output end signal of the FS32K146HNT0VLLT chip.

[0132] In a preferred solution, the device further comprises a communication module, and the communication module is bidirectionally electrically connected to the control module.

[0133] In a preferred solution, the device further includes an SD memory card.

[0134] In this preferred embodiment, the communication module is used to send the user's blood sugar value and insulin infusion rate increment to the remote system / medical worker system, so that the medical worker can monitor the user's blood sugar changes at any time.

[0135] As another preferred embodiment, the present invention also provides a storage medium, which is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the closed-loop insulin infusion control method based on a neural network as described above is implemented.

[0136] In a preferred solution, the computer program further supports a telemedicine access function, and the telemedicine access function includes the following contents:

[0137] If the medical staff determines that intervention is needed to control the insulin infusion based on the user's blood sugar level and the insulin infusion rate increment of the insulin pump, the corresponding instruction code of the control module can be input through the communication module. The instruction code has a priority, and the control module will give priority to controlling the infusion rate of the insulin pump according to the instruction code of the medical staff.

[0138] As another preferred embodiment, the present invention also provides a storage medium, which is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the closed-loop insulin infusion control method based on a neural network as described above is implemented.

[0139] In a preferred solution, the computer program further supports a telemedicine access function, and the telemedicine access function includes the following contents:

[0140] If the medical staff determines that intervention is needed to control the insulin infusion based on the user's blood sugar level and the insulin infusion rate increment of the insulin pump, the corresponding instruction code of the control module can be input through the communication module. The instruction code has a priority, and the control module will give priority to controlling the infusion rate of the insulin pump according to the instruction code of the medical staff.

[0141] The above-mentioned embodiments 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. For those of ordinary skill in the art, other different forms of changes or variations can also be made on the basis of the above description. For example, different reference curves can be set for users of different age groups (adult patients, adolescent patients and children). Or different insulin metabolism curves can be set for users of different age groups (adults, adolescents and children), such as exponential form or piecewise function form, so that the insulin metabolism curve is more suitable for the patient's own metabolic characteristics, which is more conducive to reducing the probability of occurrence of hypoglycemia events. When the patient uses this embodiment, a selection is made so that the reference curve and the insulin metabolism curve are more suitable for the patient himself, achieving a better therapeutic effect. Alternatively, if the controller chip has a storage function, the program module can be stored in the controller, and an external storage module (such as an SD memory card) is not necessarily required for program storage. Alternatively, a communication module (such as a 4G communication module) can be added on the basis of the embodiment. The communication module can send the user's blood sugar value and the infusion rate of the insulin pump to a remote system / medical worker system, so that the medical worker can monitor the user's blood sugar changes at any time. If the medical staff determines that intervention is needed to control the insulin infusion through the user's blood sugar value and the infusion rate of the insulin pump, the corresponding instruction code of the infusion amount of the insulin pump can be input through the communication module. The instruction code has a priority, and the FS32K146HNT0VLLT chip will give priority to the medical worker's instruction code to increase the insulin infusion rate.

[0142] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present invention thereto. Various changes and modifications may be made therein by one of ordinary skill in the art without departing from the scope and spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as required by the appended claims.

[0143] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0144] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0145] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functions of some modules according to embodiments of the present invention. The present invention can also be implemented as a device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0146] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0147] Although the present invention is described in conjunction with the above specific embodiments, it is obvious that those skilled in the art can make many substitutions, modifications and changes according to the above content. Therefore, all such substitutions, improvements and changes are included in the spirit and scope of the appended claims.

Claims

1. A closed-loop insulin infusion control system based on neural network feedback linearization, It is characterized in that The control system comprises: Data monitoring unit, used to monitor human blood sugar parameters in real time and record the patient's insulin infusion rate; The first calculation unit adopts the NARMA model to construct the relationship between the patient's blood sugar and insulin, and adopts the Taylor series expansion method to linearize the NARMA model feedback, adopts the neural network model to train and tune the parameters of the NARMA model to approximate the nonlinear function, introduces the reference curve to solve the NARMA model, and obtains the theoretical insulin infusion rate; introduces the active insulin estimation module to calculate the active insulin amount in the patient's body in real time; A second calculation unit is used to calculate the actual insulin infusion rate according to the monitoring result based on the neural network closed-loop insulin infusion control model, wherein the neural network closed-loop insulin infusion control model is specifically: y(k+d)=N[y(k), y(k-1), ..., y(k-n+1), u(k), u(k-1), ...u(k-n+1)]; The NARMA model feedback is linearized using Taylor series expansion: y(k+d)=f[y(k), y(k-1),..., y(k-n+1), u(k),...u(k-n+1)] +g[y(k), y(k-1), ..., y(k-n+1), u(k), ..., u(k-n+1)] u(k+1) where y(k) is the patient's blood glucose value at time k; y(k+d) is the blood glucose value at time k+d, d is the prediction step, d≥2; N is the nonlinear function that needs to be approximated by the neural network; u(k) is the theoretical insulin infusion rate at time k; n is the measurement order of input and output, n≥2; an infusion unit, configured to control an infusion volume according to the actual insulin infusion rate; and an identification unit, which performs offline training on the neural network model according to historical data, adaptively adjusts the weights of the internal neurons of the neural network model, and iterates the training K times or until the difference between the predicted blood sugar value and the currently monitored blood sugar value is within a preset range.

2. The closed-loop insulin infusion control system based on neural network feedback linearization according to claim 1, It is characterized in that The second calculation unit is specifically: Construct a neural network closed-loop insulin infusion control model: Use the NARMA model to construct the relationship between patient blood glucose and insulin, and use the Taylor series expansion method to linearize the NARMA model feedback; A neural network model is used to train and optimize the parameters of the NARMA model to approximate a nonlinear function; a reference curve is introduced to solve the NARMA model to obtain a theoretical insulin infusion rate; Introducing the active insulin estimation module to calculate the amount of active insulin in the patient's body in real time; The difference between the theoretical insulin infusion rate and the active insulin amount is the actual insulin infusion rate.

3. The closed-loop insulin infusion control system based on neural network feedback linearization according to claim 2, It is characterized in that Before adopting the neural network model to train the NARMA model and optimize the parameters, the method also includes: performing system identification; Offline training of the neural network model according to historical data; the historical data includes blood glucose data and insulin infusion rate data; During offline training, the weights of the internal neurons of the neural network model are adaptively adjusted, and the training is iterated K times or iterated until the difference between the predicted blood sugar value and the currently monitored blood sugar value is within a preset range, then the current round of offline training is terminated.

4. The closed-loop insulin infusion control system based on neural network feedback linearization according to claim 3, It is characterized in that The introducing of the reference curve to solve the NARMA model and obtaining the theoretical insulin infusion rate comprises: Let y(k+d)=y r (k+d), so that the patient's blood glucose data at time k+d follows the value of the target curve at time k+d. The NARMA model can be rewritten as: Among them, u(k+1) is the desired theoretical insulin infusion rate.

5. The closed-loop insulin infusion control system based on neural network feedback linearization according to claim 4, It is characterized in that The introducing of the reference curve to solve the NARMA model further comprises: the reference curve y r The design is segmented; If the current patient's blood sugar y(t) is higher than the blood sugar warning value The reference curve y r The slope is -x k1 ; If the patient's current blood sugar y(t) is lower than the blood sugar warning value Higher than expected blood sugar level The reference curve y r The slope is -x k2 ; If the patient's current blood sugar y(t) is lower than the expected blood sugar value The reference curve y r The slope of is 0; Among them, x>1,k1>k2>0.

6. The closed-loop insulin infusion control system based on neural network feedback linearization according to claim 5, It is characterized in that The real-time calculation of the active insulin amount in the patient's body includes: According to the insulin metabolism curve, it is divided into t 1 ~t n Minute metabolic curves, corresponding to n physiological states; Calculate the amount of active insulin in the patient's body based on physiological parameters under different physiological states; The physiological parameters are at least heart rate and pulse; the physiological states are at least sleep, rest, daily life and exercise.

7. An insulin infusion device, It is characterized in that The device at least comprises a neural network feedback linearized closed-loop insulin infusion control system as described in any one of claims 1 to 6; and a recording module for recording the progress of this infusion after the infusion starts; A sending module, used for sending the most recent infusion history record in the pump body buffer to the controller, and for sending all infusion history records in the pump body buffer to the controller; A receiving module, used for receiving an infusion instruction sent by a controller; The controller is used to complete the infusion according to the neural network feedback linearized closed-loop insulin infusion control system.