Closed-loop artificial pancreas drug infusion control system

By combining rMPC and rPID algorithms with blood glucose risk space transformation and delay compensation, the insulin infusion rate is optimized, solving the problems of instability of PID algorithm and large computational load of MPC algorithm in the existing technology, and realizing precise control of closed-loop artificial pancreas drug infusion system.

CN116020011BActive Publication Date: 2026-04-14MEDTRUM TECH
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
MEDTRUM TECH
Filing Date
2021-11-04
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

In existing technologies, PID algorithms are unstable in the face of complex disturbance scenarios, while MPC algorithm models are difficult to establish and have a large computational load, resulting in insufficient accuracy of artificial pancreas drug infusion control systems.

Method used

By employing the rMPC and rPID algorithms, combined with the composite artificial pancreas algorithm, and optimizing insulin infusion calculation through blood glucose risk space transformation and delay compensation, closed-loop control is achieved.

Benefits of technology

It provides reliable drug infusion control in various complex scenarios, ensures stable blood glucose levels, and improves the accuracy and reliability of the closed-loop artificial pancreas drug infusion system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116020011B_ABST
    Figure CN116020011B_ABST
Patent Text Reader

Abstract

The application discloses a closed-loop artificial pancreas medicine infusion control system, which comprises an infusion module for outputting medicine, a program module comprising an input end and an output end, the input end comprising a plurality of electric connection areas for receiving a current blood glucose value, the program module being further provided with an algorithm, the output end being electrically connected with the infusion module, the algorithm being used for calculating a required medicine amount of a user according to the received current blood glucose value, and the program module being used for controlling the infusion module to output the medicine; an infusion tube with a conductive area, the infusion tube being a medicine infusion channel; and a plurality of electrodes for detecting blood glucose, the conductive area of the infusion tube serving as at least one conductive area electrode, when the infusion tube is installed to a working position, the infusion tube is communicated with the infusion module, so that the medicine flows to the body through the infusion tube, and different electrodes are electrically connected with different electric connection areas to input the current blood glucose value into the program module. The algorithm is used for realizing accurate control of the closed-loop artificial pancreas medicine infusion system.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references to related applications

[0002] This application claims the benefit of and priority of the following patent application: PCT patent application filed on October 25, 2021, application number PCT / CN2021 / 126005. Technical Field

[0003] This invention relates primarily to the field of medical devices, and in particular to a closed-loop artificial pancreas drug infusion control system. Background Technology

[0004] In a healthy person, the pancreas automatically secretes the necessary insulin / glucagon based on blood glucose levels, thus maintaining a reasonable range of blood sugar fluctuations. However, in diabetic patients, pancreatic function is abnormal, and the pancreas is unable to secrete the required insulin normally. Diabetes is a metabolic disease and is a lifelong condition. Current medical technology cannot cure diabetes; it can only control the occurrence and development of diabetes and its complications by stabilizing blood sugar levels.

[0005] Diabetic patients need to have their blood glucose levels checked before insulin injection. Current methods allow for continuous glucose monitoring, sending the data in real-time to a display device for user viewing. This method is called Continuous Glucose Monitoring (CGM). The device is attached to the skin, with its probe inserted into the subcutaneous fluid to perform the measurement. Based on the CGM reading, the infusion device delivers the required amount of insulin subcutaneously, creating a closed-loop or semi-closed-loop artificial pancreas.

[0006] Currently, proportional-integral-derivative (PID) and model-predictive-control (MPC) algorithms are widely studied to achieve closed-loop or semi-closed-loop control of artificial pancreas. However, due to the simple structure of the PID algorithm, it is not suitable for scenarios with large and complex disturbances, while the MPC algorithm faces the dilemma of difficulty in establishing accurate models and large computational load, which may lead to infusion deviations in prediction.

[0007] Therefore, there is an urgent need in the current technology for a closed-loop artificial pancreas drug infusion control system that incorporates an optimized artificial pancreas algorithm. Summary of the Invention

[0008] This invention discloses a closed-loop artificial pancreas drug infusion control system. The system is pre-programmed with one or more of the following algorithms: rMPC algorithm, rPID algorithm, and composite artificial pancreas algorithm. It fully utilizes the advantages of rPID and rMPC algorithms to deal with complex scenarios, enabling the artificial pancreas to provide reliable types and amounts of drugs to control blood sugar under various conditions, thereby achieving ideal blood sugar levels and realizing precise control of the closed-loop artificial pancreas drug infusion system.

[0009] This invention discloses a closed-loop artificial pancreas drug infusion control system, comprising: an infusion module for outputting drugs; a program module including an input terminal and an output terminal, the input terminal including multiple electrical connection areas to receive the current blood glucose value, the program module also having a preset algorithm, the algorithm being one or more of the rMPC algorithm, rPID algorithm, or composite artificial pancreas algorithm; after the output terminal is electrically connected to the infusion module, the algorithm calculates the amount of drugs required by the user based on the received current blood glucose value, and the program module controls the infusion module to output drugs according to the calculated amount of drugs required by the user; an infusion tube with a conductive area, the infusion tube serving as a drug infusion channel; and multiple electrodes for detecting the current blood glucose value, the electrodes including conductive area electrodes and tube wall electrodes, the conductive area of ​​the infusion tube serving as at least one conductive area electrode, and one or more tube wall electrodes disposed on the tube wall of the infusion tube; when the infusion tube is installed in the working position, the infusion tube is connected to the infusion module, allowing the drugs to flow into the body through the infusion tube, and different electrodes are electrically connected to different electrical connection areas, with the current blood glucose value input to the program module.

[0010] According to one aspect of the present invention, the rMPC algorithm and the rPID algorithm, based on the classical PID algorithm and the classical MPC algorithm respectively, transform the asymmetric blood glucose in the original physical space into the approximately symmetric blood glucose risk in the risk space, and calculate the current required drug infusion volume based on the blood glucose risk.

[0011] According to one aspect of the present invention, the blood glucose risk space transformation method of the rMPC algorithm and the rPID algorithm includes one or more of the following: piecewise weighting method, relative value transformation, blood glucose risk index transformation, and improved control variability grid analysis transformation.

[0012] According to one aspect of the present invention, the blood glucose risk space transformation method of the rMPC algorithm and the rPID algorithm further includes the following:

[0013] One or more processing methods:

[0014] ① The proportionate component of the estimated plasma concentration of hypoglycemic or hyperglycemic drugs after deducting and predicting the concentration.

[0015] ②Deduct the amount of blood sugar-lowering or blood sugar-raising drugs that have not yet taken effect in the body;

[0016] ③ An autoregressive method was used to compensate for the sensing delay of tissue fluid glucose concentration and blood glucose.

[0017] According to one aspect of the present invention, the composite artificial pancreas algorithm includes a first algorithm and a second algorithm. The first algorithm calculates a first insulin infusion volume I1, the second algorithm calculates a second insulin infusion volume I2, and the composite artificial pancreas algorithm optimizes the calculation of the first insulin infusion volume I1 and the second insulin infusion volume I2 to obtain a final insulin infusion volume I3.

[0018] According to one aspect of the invention, the final insulin infusion volume I3 is optimized by averaging the first insulin infusion volume I1 and the second insulin infusion volume I2:

[0019] ① Calculate the average value of the first insulin infusion volume I1 and the second insulin infusion volume I2.

[0020] ② Average value Substitute these parameters into the first and second algorithms and adjust the algorithm parameters accordingly.

[0021] ③ Based on the current blood glucose level, the first algorithm and the second algorithm after parameter adjustment, recalculate the first insulin infusion volume I1 and the second insulin infusion volume I2;

[0022] ④ Repeat steps ① to ③ until I1 = I2, and finally the insulin infusion volume I3 = I1 = I2.

[0023] According to one aspect of the invention, the final insulin infusion volume I3 is optimized by a weighted average of the first insulin infusion volume I1 and the second insulin infusion volume I2:

[0024] ① Calculate the weighted value of the first insulin infusion volume I1 and the second insulin infusion volume I2. Where α and β are the weighting coefficients of the first insulin infusion volume I1 and the second insulin infusion volume I2, respectively;

[0025] ②Weighted values Substitute these parameters into the first and second algorithms and adjust the algorithm parameters accordingly.

[0026] ③ Based on the current blood glucose level, the first algorithm and the second algorithm after parameter adjustment, recalculate the first insulin infusion volume I1 and the second insulin infusion volume I2;

[0027] ④ Repeat steps ① to ③ until I1 = I2, and finally the insulin infusion volume I3 = I1 = I2.

[0028] According to one aspect of the invention, the final insulin infusion volume I3 is obtained by comparing the first insulin infusion volume I1 and the second insulin infusion volume I2 with the statistical analysis result I4 of historical data:

[0029]

[0030] According to one aspect of the present invention, the first algorithm and the second algorithm are classical PID algorithm, classical MPC algorithm, rPID algorithm or rMPC algorithm.

[0031] According to one aspect of the invention, the infusion tubing includes an infusion needle and a flexible tube fitted over the outer surface of the infusion needle, the needle cavity of which is used for infusing drugs.

[0032] According to one aspect of the present invention, the infusion needle is a conductive region electrode, and the tube wall electrode is disposed on the outer or inner surface of the tube wall, or on the outer wall surface of the infusion needle.

[0033] According to one aspect of the present invention, the infusion module includes a plurality of infusion sub-modules, each of which is electrically connected to an output terminal, and the program module selects and controls the infusion sub-modules to output the drug according to the calculated amount of drug required by the user.

[0034] According to one aspect of the present invention, the drug is a blood glucose-raising drug and a blood glucose-lowering drug.

[0035] According to one aspect of the present invention, a closed-loop artificial pancreas drug infusion control system comprises multiple parts, with the infusion module and the program module located in different parts and electrically connected by multiple electrical contacts.

[0036] Compared with the prior art, the technical solution of the present invention has the following advantages:

[0037] The closed-loop artificial pancreas drug infusion control system disclosed in this invention is pre-programmed with one or more of the following algorithms: rMPC algorithm, rPID algorithm, and composite artificial pancreas algorithm. It fully utilizes the advantages of rPID and rMPC algorithms to deal with complex scenarios, enabling the artificial pancreas to provide reliable types and amounts of drugs to control blood sugar under various conditions, thereby achieving ideal blood sugar levels and realizing precise control of the closed-loop artificial pancreas drug infusion system.

[0038] Furthermore, the final output of the composite artificial pancreas algorithm is a consistent result obtained by calculating using the rMPC and rPID algorithms, which is more feasible and reliable.

[0039] Furthermore, the final output of the composite artificial pancreas algorithm is the same result obtained by averaging or weighting the different results calculated by the first and second algorithms. The two algorithms compensate for each other, further improving the accuracy of the output results.

[0040] Furthermore, the final output of the composite artificial pancreas algorithm is obtained by combining the calculation results of the rMPC algorithm and the rPID algorithm. This processing, combined with the statistical analysis of historical control data, ensures the reliability of insulin infusion from another perspective.

[0041] Furthermore, the infusion tubing includes an infusion needle and a flexible tube fitted over the outer wall of the needle. The needle lumen of the infusion needle is used for drug infusion. Designing electrodes on the surface of the flexible tube is relatively simple, reducing the manufacturing difficulty and improving efficiency. Secondly, the tube wall material can be selected as needed, allowing only specific blood glucose levels to pass through, reducing interference from other substances and improving the accuracy of blood glucose detection.

[0042] Furthermore, the infusion module includes multiple infusion sub-modules, each electrically connected to the output terminal. The program module selects and controls whether the infusion sub-modules output medication. Different medications are placed in the multiple sub-modules, and the program module selects and sends medication infusion commands to different infusion sub-modules to achieve precise blood glucose control.

[0043] Furthermore, the infusion volume of each drug is calculated using the same algorithm, ensuring consistency of the underlying conditions during calculation and making the calculation results more stable. Attached Figure Description

[0044] Figure 1 This is a flowchart illustrating the operation of a closed-loop artificial pancreas drug infusion control system according to an embodiment of the present invention.

[0045] Figure 2 This is a comparison diagram of the relationship between blood glucose levels in the risk space and the original physical space, obtained by segmented weighting and relative value conversion in one embodiment of the present invention.

[0046] Figure 3 This is a comparison chart of the relationship between blood glucose levels in the risk space obtained by conversion using the BGRI and CVGA methods according to an embodiment of the present invention and the original physical space.

[0047] Figure 4 An insulin IOB curve according to an embodiment of the present invention;

[0048] Figure 5 This is a schematic diagram illustrating four mainstream clinically optimal baseline rate settings cited in one embodiment of the present invention;

[0049] Figure 6a This is a cross-sectional schematic diagram of the infusion tube of a closed-loop artificial pancreas drug infusion control system according to an embodiment of the present invention, located at the installation position.

[0050] Figure 6bThis is a cross-sectional schematic diagram of the infusion tube in the working position of a closed-loop artificial pancreas drug infusion control system according to an embodiment of the present invention.

[0051] Figures 7a-7b This is a top view schematic diagram of a closed-loop artificial pancreas drug infusion control system according to another embodiment of the present invention;

[0052] Figures 8a-8b This is a partial longitudinal cross-sectional view of the infusion tube and electrode according to an embodiment of the present invention;

[0053] Figures 9a-9b This is a partial longitudinal cross-sectional view of the infusion tube and electrode according to another embodiment of the present invention;

[0054] Figure 10 This is a partial longitudinal cross-sectional view of the infusion tube and three electrodes according to yet another embodiment of the present invention;

[0055] Figure 11 This is a partial longitudinal cross-sectional view of the infusion steel needle sheath tubing according to yet another embodiment of the present invention;

[0056] Figure 12a This is a partial longitudinal cross-sectional view of an infusion tube having multiple conductive regions according to yet another embodiment of the present invention;

[0057] Figures 12b-12c This is a partial transverse cross-sectional view of an infusion tube having multiple conductive regions according to yet another embodiment of the present invention;

[0058] Figure 13 This is a schematic diagram of the closed-loop artificial pancreas drug infusion control system and remote device according to another embodiment of the present invention. Detailed Implementation

[0059] As mentioned earlier, due to the simple structure of the PID algorithm, it is not suitable for scenarios with large and complex disturbances, while the MPC algorithm faces the dilemma of difficulty in establishing an accurate model and large computational load, which may lead to prediction infusion deviation.

[0060] To address this problem, the present invention provides a closed-loop artificial pancreas drug infusion control system. This system is pre-programmed with one or more of the following algorithms: rMPC algorithm, rPID algorithm, and composite artificial pancreas algorithm. It fully utilizes the advantages of rPID and rMPC algorithms to cope with complex scenarios, enabling the artificial pancreas to provide reliable types and dosages of drugs for blood glucose control under various conditions, thereby achieving ideal blood glucose levels and realizing precise control of the closed-loop artificial pancreas drug infusion system.

[0061] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be understood that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments should not be construed as limiting the scope of the invention.

[0062] Furthermore, it should be understood that, for ease of description, the dimensions of the various components shown in the accompanying drawings are not necessarily drawn to actual scale; for example, the thickness, width, length, or distance of some units may be enlarged relative to other structures.

[0063] The following description of exemplary embodiments is merely illustrative and is not intended to limit the invention or its application or use in any way. Techniques, methods, and apparatus known to those skilled in the art may not be discussed in detail herein, but where applicable, such techniques, methods, and apparatus should be considered part of this specification.

[0064] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined or described in a figure, it will not need to be discussed further in the subsequent description of the figures.

[0065] Figure 1 This is a flowchart illustrating the closed-loop artificial pancreas drug infusion control system according to an embodiment of the present invention.

[0066] The closed-loop artificial pancreas drug infusion control system of this invention comprises three basic parts: electrodes, a program module, and an infusion module. Blood glucose parameter information is acquired by the electrodes and converted into electrical signals. These electrical signals are transmitted to the program module via the electrodes and / or electrode wires. The program module reads the current blood glucose value G, and the program module contains a preset algorithm and a target blood glucose value G. B The algorithm calculates the user's required medication dosage (such as insulin or glucagon) based on the current blood glucose level G. The program module sends this calculated dosage to the infusion module to control the infusion and stabilize blood glucose. The current blood glucose level is monitored in real-time by electrodes, and the infusion cycle is continuously monitored. This process requires no human intervention and is directly accomplished through program analysis to control blood glucose stability.

[0067] Specifically, the preset algorithm in the program module is the rPID (proportional-integral-derivative) algorithm, which converts the asymmetric blood glucose in the original physical space to the approximately symmetric blood glucose risk in the risk space. The rPID algorithm is obtained by transforming the classic PID (proportional-integral-derivative) algorithm. The specific processing method will be detailed below. Based on the corresponding infusion instruction calculated by the rPID algorithm, the program module controls the infusion module to infuse insulin.

[0068] The classic PID algorithm can be expressed by the following formula:

[0069]

[0070] in:

[0071] K P It is the gain coefficient of the proportional part;

[0072] K I It is the gain coefficient of the integral part;

[0073] K D It is the gain coefficient of the differential part;

[0074] G represents the current blood glucose level;

[0075] G B Indicates the target blood glucose level;

[0076] C represents a constant;

[0077] PID(t) represents the infusion instruction sent to the insulin infusion system.

[0078] Considering the actual distribution characteristics of glucose concentration in diabetic patients, such as the normal blood glucose range of 80-140 mg / dL, which can be relaxed to 70-180 mg / dL, hypoglycemia can reach 20-40 mg / dL, while hyperglycemia can reach 400-600 mg / dL.

[0079] The distribution of high / low blood glucose exhibits significant asymmetry in the original physical space. In clinical practice, the risks of high and low blood glucose corresponding to the same degree of deviation from the normal range can be significantly different. For example, a decrease of 70 mg / dL from 120 mg / dL to 50 mg / dL is considered severe hypoglycemia, carrying a high clinical risk and requiring emergency measures such as carbohydrate supplementation. On the other hand, an increase of 70 mg / dL from 120 mg / dL to 190 mg / dL is only slightly above the normal range. For diabetic patients, this degree of hyperglycemia is not serious and is frequently reached in daily life, generally requiring no intervention.

[0080] To address the asymmetric nature of clinical risk associated with glucose concentration, the algorithm transforms the asymmetric blood glucose levels in the original physical space into approximately symmetrical blood glucose risk in the risk space, making the PID algorithm more robust.

[0081] Accordingly, the rPID algorithm formula is transformed into the following form:

[0082]

[0083] in:

[0084] rPID(t) represents the infusion instruction sent to the insulin infusion system after risk conversion;

[0085] r indicates blood sugar risk;

[0086] The meanings of the other symbols are as described above.

[0087] To maintain the stability of the PID integral, and considering the physiological effect of insulin in lowering blood glucose, in one embodiment of the present invention, the input parameter of the PID—blood glucose deviation Ge = GG B Processing is required, such as setting Ge=GG B Perform segmented weighted processing as follows:

[0088]

[0089] In another embodiment of the invention, for blood glucose levels greater than the target G... B The deviation is converted using relative values, as follows:

[0090]

[0091] Figure 2 This is a comparison diagram of the blood glucose risk space obtained through segmented weighting and relative value transformation with the blood glucose relationship in the original physical space.

[0092] In the original PID algorithm, the blood glucose risk (Ge) on both sides of the target blood glucose value exhibits a severe asymmetry consistent with the original physical space. After being transformed into the blood glucose risk space, the blood glucose risk on both sides of the target blood glucose value is approximately symmetrical, so the integral term can remain stable, making the rPID algorithm more robust.

[0093] In another embodiment of the invention, a fixed zero-risk point exists during risk transformation, and data deviating from the zero-risk point are processed. Original parameters corresponding to values ​​greater than the zero-risk point are positive when transformed into the risk space, while original parameters corresponding to values ​​less than the zero-risk point are negative. Specifically, the classic Blood Glucose Risk Index (BGRI) method can be used as a reference. This method, based on clinical practice, considers hypoglycemia at 20 mg / dL and hyperglycemia at 600 mg / dL to have comparable clinical risk, and uses logarithmic transformation to comprehensively process blood glucose levels within the 20-600 mg / dL range. The blood glucose value corresponding to the zero-risk point of this method is set as the target blood glucose value G. B The risk space transformation formula is as follows:

[0094]

[0095] in:

[0096] r(G) = 10 * f(G) 2

[0097] The transformation function f(G) is as follows:

[0098] f(G) = 1.509 * [(ln(G)) 1.084 -5.381]

[0099] In the classic glycemic risk index method, the blood glucose value corresponding to the zero-risk point is 112 mg / dL. In other embodiments of the present invention, the blood glucose value at the zero-risk point can also be adjusted based on the risk and data trends in clinical practice, and is not specifically limited here. A risk space for blood glucose values ​​greater than the zero-risk point is fitted, and the specific fitting method is also not specifically limited.

[0100] In another embodiment of the present invention, an improved Control Variability Grid Analysis (CVGA) method is used. The original CVGA defined the zero-risk point blood glucose value as 110 mg / dL and assumed the following equally risky blood glucose value pairs (90 mg / dL, 180 mg / dL; 70 mg / dL, 300 mg / dL; 50 mg / dL, 400 mg / dL). In this embodiment of the present invention, considering the actual risk in clinical practice and the trend characteristics of the data, adjustments are made. The equally risky data pair (70 mg / dL, 300 mg / dL) is corrected to (70 mg / dL, 250 mg / dL), and the zero-risk point blood glucose value is set as the target blood glucose value G. B A multinomial model was then fitted to it, yielding the following risk functions for processing both sides of the zero-risk point:

[0101]

[0102] And its maximum value was limited:

[0103] |r| = min(|r|, n)

[0104] The maximum value n is limited to a range of 0 to 80 mg / dL, and preferably, the value of n is 60 mg / dL.

[0105] In other embodiments of the present invention, the zero-risk point blood glucose value and the equivalent risk data can also be adjusted in combination with the actual risk and data trend in clinical practice, without being specifically limited here. Then, the equivalent risk point is fitted, and the specific fitting method is not specifically limited; the specific value used to limit the maximum value is also not specifically limited.

[0106] Figure 3 This is a comparison chart showing the relationship between blood glucose risk converted to the risk space using the BGRI and CVGA methods and blood glucose levels in the original physical space.

[0107] Similar to Zone-MPC, the glycemic risk converted by BGRI and CVGA methods is quite mild within the normal blood glucose range, especially in the 80-140 mg / dL range. Unlike Zone-MPC, which is completely zero in this range and loses the ability to further optimize, rPID, while having a mild risk within this range, still has a stable and slow adjustment ability, allowing blood glucose to be further adjusted towards the target value for more precise glycemic control.

[0108] In another embodiment of the present invention, data deviating from the zero-risk point can be processed using a uniform method, as in the aforementioned embodiments, where data deviating from the zero-risk point can be processed using either the BGRI or CVGA method; alternatively, different processing methods can be used, such as combining the BGRI and CVGA methods simultaneously. In this case, the same zero-risk point blood glucose value, such as the target blood glucose value G, can be used. B When the blood glucose level is lower than the target blood glucose level (G) B When using the BGRI method, the blood glucose level is greater than the target blood glucose level (G). B When using the CVGA method, at this time:

[0109] r = -r(G), if G ≤ G B ,

[0110] in:

[0111] r(G) = 10 * f(G) 2

[0112] The transformation function f(G) is as follows:

[0113] f(G) = 1.509 * [(1n(G)) 1.084 -5.381]

[0114] r = -4.8265 * 10 4 -4*G 2 +0.45563*G-44.855, if G>G B .

[0115] Similarly, this can also be done when the blood glucose level is lower than the target blood glucose level (G). B When using the CVGA method, the blood glucose level is greater than the target blood glucose level (G). B When using the BGRI method, at this time:

[0116] r = r(G), if G > G B ,

[0117] in:

[0118] r(G) = 10 * f(G) 2

[0119] Under the transformation function f(G):

[0120] f(G) = 1.509 * [(1n(G)) 1.084 -5.381]

[0121] r = GG B if G≤G B .

[0122] It also allows setting a limit on the maximum value:

[0123] |r| = min(|r|, n)

[0124] The maximum value n is limited to a range of 0 to 80 mg / dL, and preferably, the value of n is 60 mg / dL.

[0125] In other embodiments of the present invention, the blood glucose value at the zero-risk point can also be set as the target blood glucose value G. B For blood glucose levels less than or equal to the target blood glucose value (G) B The data were obtained using the BGRI method, and for values ​​greater than the target blood glucose level (G... B The data is processed using deviation methods, such as segmented weighting or relative value processing.

[0126] When segmented weighted processing is used, then:

[0127] r = -r(G), if G ≤ G B ,

[0128] in:

[0129] r(G) = 10 * f(G) 2

[0130] Under the transformation function f(G):

[0131] f(G) = 1.509 * [(ln(G)) 1.084 -5.381]

[0132]

[0133] When using relative values:

[0134] r = -r(G), if G ≤ G B ,

[0135] in:

[0136] r(G) = 10 * f(G) 2

[0137] Under the fitted symmetric transformation function f(G):

[0138] f(G) = 1.509 * [(1n(G)) 1.084 -5.381]

[0139] r = 100 * (GG B ) / G, if G>G B

[0140] When the blood glucose value corresponding to the zero risk point is the target blood glucose value (G) B When, for blood glucose levels less than or equal to the target blood glucose value G B The processing function remains consistent when using segmented weighting, relative value processing, and CVGA methods for data. Therefore, when processing data less than or equal to the target blood glucose value G... B The data is processed using segmented weighting or relative value processing. When the BGRI method is used for data with blood glucose values ​​greater than the zero risk point, the processing result is equivalent to the aforementioned processing when the blood glucose value is less than or equal to the target blood glucose value G. B When using the CVGA method, the blood glucose level is greater than the target blood glucose level (G). B The BGRI method is used, and its calculation formula will not be repeated here.

[0141] It should be noted that, in the various embodiments of the present invention, the target blood glucose value G... B The target blood glucose level is 80–140 mg / dL, preferably G. B The concentration is 110–120 mg / dL.

[0142] The above processing methods can transform the asymmetric blood glucose in the original physical space into an approximately symmetric blood glucose risk in the risk space. This retains the simplicity and robustness of the PID algorithm while also providing targeted and clinically valuable blood glucose risk control, thus achieving precise control of the closed-loop artificial pancreas drug infusion system.

[0143] Three major delays exist in closed-loop artificial pancreas control systems: delayed insulin absorption (approximately 20 minutes from subcutaneous tissue to the bloodstream, and approximately 100 minutes to the liver), delayed insulin onset of action (approximately 30-100 minutes), and delayed sensing of interstitial fluid glucose concentration and blood glucose (approximately 5-15 minutes). Any attempt to accelerate closed-loop responsiveness may lead to unstable system behavior and system oscillations. To compensate for the delayed insulin absorption in the closed-loop artificial pancreas control system, an insulin feedback compensation mechanism is introduced in one embodiment of the invention. The amount of insulin not yet absorbed in the body is subtracted from the output, resulting in a component proportional to the estimated plasma insulin concentration. (In reality, human insulin secretion also uses the insulin concentration in the blood plasma as a negative feedback regulatory signal). The formula is as follows:

[0144]

[0145] in:

[0146] PID(t) represents the infusion instruction sent to the insulin infusion system;

[0147] PID c (t) indicates a compensated infusion instruction sent to the insulin infusion system;

[0148] γ represents the compensation coefficient of the estimated plasma insulin concentration to the algorithm output. A larger coefficient will make the algorithm more conservative, while a smaller coefficient will make it more aggressive. Therefore, in the embodiments of the present invention, the range of γ is 0.4-0.6, and preferably, γ is 0.5.

[0149] Estimates of plasma insulin concentration can be obtained using various conventional prediction algorithms, such as direct calculation from the infused insulin based on the insulin pharmacokinetic curve, or by using conventional autoregressive methods.

[0150]

[0151] in:

[0152] This represents an estimate of the current plasma insulin concentration.

[0153] PID c (n-1) represents the compensated output from the previous time step;

[0154] This represents an estimate of the plasma insulin concentration at the previous moment.

[0155] This represents an estimate of the plasma insulin concentration at the previous time step.

[0156] K0 represents the coefficient of the compensated output part in the previous time step;

[0157] K1 represents the coefficient of the estimated portion of the plasma insulin concentration at the previous moment;

[0158] K2 represents the coefficient of the estimated plasma insulin concentration at the previous time step;

[0159] Wherein, initial value The time intervals can be selected according to actual needs.

[0160] Accordingly, the compensation output formula after risk conversion using the aforementioned method is as follows:

[0161]

[0162] in:

[0163] rPIDc(t) represents the compensated infusion instruction sent to the insulin infusion system after risk conversion;

[0164] rPID(t) represents the infusion instruction sent to the insulin infusion system after risk conversion;

[0165] The meanings of the other characters are as described above.

[0166] To compensate for the delayed onset of insulin in the closed-loop artificial pancreas control system, in one embodiment of the present invention, insulin IOB (insulin on board) that has not yet taken effect in the body is introduced. IOB is deducted from the insulin output to prevent insulin accumulation and overdose, which could lead to risks such as postprandial hypoglycemia.

[0167] Figure 4 This is the insulin IOB curve according to an embodiment of the present invention.

[0168] according to Figure 4 The IOB curve shown can be used to calculate the cumulative residual amount of previously infused insulin. The specific curve can be selected based on the user's actual insulin action time.

[0169] PID′(t) = PID(t) - IOB(t)

[0170] in:

[0171] PID'(t) represents the infusion instruction sent to the insulin infusion system after deducting IOB;

[0172] PID(t) represents the infusion instruction sent to the insulin infusion system;

[0173] IOB(t) represents the amount of insulin in the body that has not yet taken effect at time t.

[0174] Accordingly, the output formula after risk conversion using the aforementioned method, minus the amount of insulin that has not yet taken effect in the body, is as follows:

[0175] rPID′(t)=rPID(t)-IOB(t)

[0176] in:

[0177] rPID′(t) represents the infusion instruction sent to the insulin infusion system after risk conversion, after deducting the amount of insulin that has not yet taken effect in the body;

[0178] rPID(t) represents the infusion instruction sent to the insulin infusion system after risk conversion;

[0179] The meanings of the other characters are as described above.

[0180] To achieve a more ideal control effect, the calculation of IOB was processed as follows: IOB m IOB o These correspond to the IOBs for mealtime insulin and other insulins (excluding mealtime insulin), respectively. The formulas are as follows:

[0181] IOB(t) = IOB m,t +IOB o,t

[0182] in:

[0183]

[0184] in:

[0185] IOB m,t This represents the amount of insulin consumed after a meal that has not yet taken effect in the body at time t.

[0186] IOB o,t This represents the amount of non-meal insulin that has not yet taken effect in the body at time t;

[0187] D i (i = 2 - 8) represent the corresponding coefficients of the lOB curves for insulin action time i;

[0188] I m,t Indicates the amount of insulin consumed after a meal;

[0189] I 0,t This indicates the amount of insulin not consumed after a meal;

[0190] IOB(t) represents the amount of insulin in the body at time t that has not yet taken effect.

[0191] Differentiating between mealtime and non-mealtime insulin administration for IOB allows for faster insulin clearance during meals and periods of high blood glucose, resulting in greater insulin output and quicker blood glucose regulation. Conversely, when approaching the target level, a longer insulin action time curve is used, leading to slower insulin clearance and more conservative and stable blood glucose regulation.

[0192] When PID'(t) > 0 or rPID'(t) > 0, the final amount of insulin infused is PID'(t) or rPID'(t);

[0193] When PID'(t) < 0 or rPID'(t) < 0, the final amount of insulin infused is 0.

[0194] To compensate for the sensing delay of tissue fluid glucose concentration and blood glucose in the closed-loop artificial pancreas control system, an autoregressive method is used in one embodiment of the present invention, as shown in the following formula:

[0195]

[0196] in,

[0197] G SC (n) represents the glucose concentration in the interstitial fluid at the current moment, i.e., the measurement value of the sensing system;

[0198] This indicates the estimated blood glucose concentration at the previous moment;

[0199] G SC (n-1) and G SC (n-2) represent the glucose concentrations in the interstitial fluid at the previous and previous time points, respectively;

[0200] K0 represents the coefficient of the estimated blood glucose concentration at the previous moment;

[0201] K1 and K2 represent the coefficients of interstitial fluid glucose concentration at the previous and previous time points, respectively.

[0202] At the initial moment,

[0203] By estimating blood glucose concentration using interstitial fluid glucose concentration, the sensing delay between interstitial fluid glucose concentration and blood glucose is compensated, making the PID algorithm more accurate. Correspondingly, the rPID algorithm can also more accurately calculate the actual insulin requirement of the human body.

[0204] In this embodiment of the invention, the delays in insulin absorption, insulin onset, tissue fluid glucose concentration, and blood glucose sensing can be partially or fully compensated. Preferably, all delay factors are considered and fully compensated to make the rPID algorithm more accurate.

[0205] In another embodiment of the present invention, the program module is pre-set with an rMPC (Risk-Model-Prediction-Control) algorithm that converts blood glucose that is asymmetric in the original physical space into blood glucose risk that is approximately symmetric in the risk space. The rMPC algorithm is obtained by conversion processing based on the classic MPC (Model-Prediction-Control) algorithm. According to the corresponding infusion instruction calculated by the rMPC algorithm, the program module controls the infusion module to infuse insulin.

[0206] The classic MPC algorithm consists of three elements: a prediction model, a value function, and constraints. The classic MPC prediction model is as follows:

[0207] x t+1 =Ax t +BI t

[0208] G t =Cx t

[0209] in:

[0210] x t+1 Indicates the state parameters at the next moment.

[0211] x t This represents the state parameters at the current moment.

[0212] I t This indicates the current insulin infusion volume;

[0213] G t This indicates the blood glucose concentration at the current moment.

[0214] The parameter matrix is ​​as follows:

[0215]

[0216]

[0217] C = [1 0 0]

[0218] b1, b2, b3, and K are prior values.

[0219] The value function of MPC consists of the sum of squares of the deviations in the output G (blood glucose level) and the sum of squares of the changes in the input I (insulin level). MPC aims to find the minimum solution to the value function.

[0220]

[0221] in:

[0222] I' t+j This indicates the change in insulin infusion volume after step j;

[0223] This represents the difference between the predicted blood glucose concentration and the target blood glucose value after step j;

[0224] t represents the current time;

[0225] N and P are the number of steps within the control time window and the prediction time window, respectively;

[0226] R is the weighting coefficient for the insulin component.

[0227] The insulin infusion volume in step j is I.t +I′ t+j .

[0228] In this embodiment of the invention, the control time window T c =30min, prediction time window T p =60min, the weighting coefficient R of insulin amount is 11000. It should be noted that although the control time window used in the calculation is 30min, only the first step calculation result of insulin output is used in actual operation. After running, the minimum solution of the above value function is recalculated based on the latest blood glucose value.

[0229] In this embodiment of the invention, the infusion time step within the control time window is j. n j n The value range is 0–30 min, preferably 2 min. Number of steps N = T c / j n The range of j is from 0 to N.

[0230] In other embodiments of the present invention, the weighting coefficients for the control time window, prediction time window, and insulin amount can be selected as other values, which are not specifically limited here.

[0231] As mentioned earlier, due to the significant asymmetry in the distribution of high / low blood glucose (original physical space), the risks of high and low blood glucose corresponding to the same degree of deviation from the normal range in clinical practice will be significantly different. To address the asymmetry in clinical risk related to glucose concentration, the asymmetric blood glucose risk in the original physical space is transformed into a nearly symmetrical blood glucose risk in the risk space, making the MPC algorithm more accurate and flexible. The value function of the rMPC algorithm after risk transformation is as follows:

[0232]

[0233] in,

[0234] r t+j This represents the blood glucose risk value after step j;

[0235] I' t+j This indicates the change in insulin infusion volume after step j.

[0236] The deviation of blood glucose values ​​is converted into corresponding blood glucose risk, and the specific conversion method is consistent with that in the aforementioned rPID algorithm, such as segmented weighting and relative value processing. It also includes setting a fixed zero-risk point in the risk space, where the blood glucose concentration can be set as the target blood glucose value. Data deviating from the zero-risk point on both sides are processed, such as using BGRI and improved CVGA methods; it also includes using different methods to process data deviating from the target blood glucose value on both sides.

[0237] Specifically, when using segmented weighted processing:

[0238]

[0239] When using relative values:

[0240]

[0241] When using the classic glycemic risk index method:

[0242]

[0243] in:

[0244] r(G t+j )=10*f(G t+j ) 2

[0245] Transformation function f(G) t+j )as follows:

[0246] f(G t+j )=1.509*[(ln(G t+j )) 1.084 -5.381]

[0247] When using a controlled volatile grid analysis method:

[0248]

[0249] At the same time, its maximum value was also limited:

[0250] |r t+j |=min(|r t+j |,n)

[0251] The maximum value n is limited to a range of 0 to 80 mg / dL, and preferably, the value of n is 60 mg / d.

[0252] When blood glucose level is lower than the target blood glucose level (G) B When using the BGRI method, the blood glucose level is greater than the target blood glucose level (G). B When using the CVGA method:

[0253] r t+j =-r(G t+j ), if G t+j ≤G B

[0254] in:

[0255] r(G t+j )=10*f(G t+j )2

[0256] Transformation function f(G) t+j )as follows:

[0257] f(G t+j )=1.509*[(ln(G t+j )) 1.084 -5.381]

[0258] r t+j = -4.8265 * 10 4 -4*G t+j 2 +0.45563*G t+j -44.855, if G t+j >G B

[0259] When blood glucose levels are lower than the target blood glucose level (G) B When using the CVGA method, the blood glucose level is greater than the target blood glucose level (G). B When using the BGRI method:

[0260] r t+j =r(G t+j ), ifG t+j >G B ,

[0261] in:

[0262] r(G t+j )=10*f(G t+j ) 2

[0263] Transformation function f(G) t+j )as follows:

[0264] f(G t+j )=1.509*[(ln(G t+j )) 1.084 -5.381]

[0265] r t+j =G t+j -G B , if G t+j ≤G B .

[0266] It also allows setting a limit on the maximum value:

[0267] |r t+j |=min(|r t+j |,n)

[0268] The maximum value n is limited to a range of 0 to 80 mg / dL, and preferably, the value of n is 60 mg / dL.

[0269] When blood glucose level is lower than the target blood glucose level (G) B When using the BGRI method, the blood glucose level is greater than the target blood glucose level (G). B When using a segmented weighted method:

[0270] r t+j =-r(G t+j ), if G t+j ≤G B

[0271] in:

[0272] r(G t+j )=10*f(G t+j ) 2

[0273] Transformation function f(G) t+j )as follows:

[0274] f(G t+j )=1.509*[(ln(G t+j )) 1.084 -5.381]

[0275]

[0276] When blood glucose level is lower than the target blood glucose level (G) B When using the BGRI method, the blood glucose level is greater than the target blood glucose level (G). B When using relative value conversion:

[0277] r t+j =-r(G t+j ), if G t+j ≤G B

[0278] in:

[0279] r(G t+j )=10*f(G t+j ) 2

[0280] Transformation function f(G) t+j )as follows:

[0281] f(G t+j )=1.509*[(ln(G t+j )) 1.084 -5.381]

[0282]

[0283] When the target blood glucose level is less than or equal to G B The data is processed using segmented weighting or relative value processing. When the BGRI method is used for data with blood glucose values ​​greater than the zero risk point, the processing result is equivalent to the aforementioned processing when the blood glucose value is less than or equal to the target blood glucose value G. B When using the CVGA method, the blood glucose level is greater than the target blood glucose level (G). B The BGRI method is used, and its calculation formula will not be repeated here.

[0284] It should be noted that in the above conversion formulas:

[0285] r t+j This represents the blood glucose risk value at step j.

[0286] G t+j This represents the blood glucose level detected at step j.

[0287] Target blood glucose level G B The target blood glucose level is 80–140 mg / dL, preferably G. B The concentration is 110–120 mg / dL.

[0288] The beneficial effects after risk conversion and the comparison of the relationship between blood glucose and blood glucose risk are consistent with those in the rPID algorithm, and will not be repeated here.

[0289] Similarly, insulin feedback compensation can be used to compensate for insulin uptake delay; IOB compensation can be used to compensate for insulin onset delay; and autoregressive compensation can be used to compensate for the sensing delay of tissue fluid glucose concentration and blood glucose concentration. The specific compensation methods are consistent with those in the rPID algorithm.

[0290] The compensation formula for delayed insulin uptake is as follows:

[0291]

[0292] in:

[0293] I t+j This indicates the infusion instruction sent to the insulin infusion system at step j;

[0294] rI c(t+j) This indicates the infusion instruction sent to the insulin infusion system at step j after risk conversion;

[0295] γ represents the compensation coefficient of the estimated plasma insulin concentration to the algorithm output. A larger coefficient will make the algorithm more conservative, while a smaller coefficient will make it more aggressive. Therefore, in the embodiments of the present invention, the range of γ is 0.4-0.6, and preferably, γ is 0.5. This represents the estimated plasma insulin concentration at step j.

[0296] For delayed insulin onset, the compensation formula is as follows:

[0297] rI′ t+j =rI t+j -IOB(t+j)

[0298] in:

[0299] rI′ t+j This indicates the infusion instruction sent to the insulin infusion system after deducting IOB at step j following risk conversion;

[0300] rl t+j This indicates the infusion instruction sent to the insulin infusion system at step j after risk conversion;

[0301] IOB(t+j) represents the amount of insulin in the body that has not yet taken effect at time t+j.

[0302] Similarly, IOB(t+j) can be distinguished between being in a meal and not being in a meal, in which case:

[0303] IOB(t+j)=IOB m,t+j +IOB o,t+j

[0304] in:

[0305]

[0306] in:

[0307] IOB m,t+j This represents the amount of insulin consumed after a meal that has not yet taken effect in the body at time t+j.

[0308] IOB o,t+j This represents the amount of non-meal insulin that has not yet taken effect in the body at time t+j;

[0309] D i (i = 2 - 8) represent the corresponding coefficients of the IOB curves for insulin action time i;

[0310] I m,t+j This represents the insulin level at time t+j after the meal.

[0311] I 0,t+j This represents the non-meal insulin amount at time t+j;

[0312] IOB(t+j) represents the amount of insulin in the body at time t+j that has not yet taken effect.

[0313] When rI′ t+j When >0, the final infused insulin volume is rI′. t+j;

[0314] When rI′ t+j When <0, the final amount of insulin infused is 0.

[0315] For the sensing delay of tissue fluid glucose concentration and blood glucose concentration, autoregressive compensation can also be used, as shown in the following formula:

[0316]

[0317] in,

[0318] G SC (t+j) represents the glucose concentration in the interstitial fluid at time t+j, which is the measured value of the sensing system;

[0319] This represents the estimated blood glucose concentration at time t+j-1;

[0320] G SC (t+j-1) and G SC (t+j-2) represent the glucose concentrations in the interstitial fluid at times t+j-1 and t+j-2, respectively;

[0321] K0 represents the coefficient of the estimated blood glucose concentration at time t+j-1;

[0322] K1 and K2 represent the coefficients of interstitial fluid glucose concentration at time t+j-1 and t+j-2, respectively.

[0323] At the initial moment,

[0324] The beneficial effects of various compensation methods are consistent with those of the rPID algorithm, and will not be repeated here.

[0325] It should be noted that, in the rMPC algorithm, it is preferable to compensate for the delay in insulin onset and the sensing delay in tissue fluid glucose concentration and blood glucose concentration.

[0326] In another embodiment of the present invention, the program module is pre-set with a composite artificial pancreas algorithm, which includes a first algorithm and a second algorithm. When the electrode detects the current blood glucose value and sends the current blood glucose value to the program module, the first algorithm calculates the first insulin infusion volume I1, the second algorithm calculates the second insulin infusion volume I2, and the composite artificial pancreas algorithm optimizes the calculation of the first insulin infusion volume I1 and the second insulin infusion volume I2 to obtain the final insulin infusion volume I3, and sends the final insulin infusion volume I3 to the infusion module. The infusion module performs insulin infusion according to the final infusion volume I3.

[0327] The first and second algorithms are one of the classic PID algorithm, the classic MPC algorithm, the rMPC algorithm, or the rPID algorithm. The rMPC algorithm or the rPID algorithm is an algorithm that transforms blood glucose levels that are asymmetric in the original physical space into blood glucose risk levels that are approximately symmetric in the risk space. The transformation method of blood glucose risk in the rMPC algorithm and the rPID algorithm is as described above.

[0328] When I1 = I2, I3 = I1 = I2;

[0329] When I1 ≠ I2, the arithmetic mean of I1 and I2 can be substituted into the first and second algorithms respectively to re-optimize the algorithm parameters. After parameter optimization, the required insulin infusion volume at the current time is calculated again using the first and second algorithms respectively. If I1 and I2 are still different, the arithmetic mean of I1 and I2 is taken again and the above process is repeated until I1 and I2 are the same, that is:

[0330] ① Calculate the average value of the first insulin infusion volume I1 and the second insulin infusion volume I2.

[0331] ② Average value Substitute these parameters into the first and second algorithms respectively, and adjust the algorithm parameters accordingly;

[0332] ③ Based on the current blood glucose level, the first algorithm and the second algorithm after parameter adjustment, recalculate the first insulin infusion volume I1 and the second insulin infusion volume I2;

[0333] ④ Repeat steps ① to ③ until I1 = I2, and the final insulin infusion volume I3 = I1 = I2.

[0334] At this point, when the first or second algorithm is a PID or rPID algorithm, the algorithm parameter is K. P And K D =T D / K P T D You can take 60-90 minutes, K I =T I *K P T I The timeframe can be 150min-450min. When the first or second algorithm is an MPC or rPMC algorithm, the algorithm parameter is K.

[0335] When I1 ≠ I2, I1 and I2 can be weighted, and the weighted values ​​can be substituted into the first and second algorithms to re-optimize the algorithm parameters. After parameter optimization, the required insulin infusion volume at the current time can be calculated again using the first and second algorithms. If I1 and I2 are still different, I1 and I2 can be weighted again, the weighting coefficients adjusted, and the above process repeated until I1 and I2 are the same.

[0336] ① Calculate the weighted value of the first insulin infusion volume I1 and the second insulin infusion volume I2. Where α and β are the weighting coefficients of the first insulin infusion volume I1 and the second insulin infusion volume I2, respectively;

[0337] ②Weighted values Substitute these parameters into the rMPC and rPID algorithms and adjust the algorithm parameters accordingly.

[0338] ③ Based on the current blood glucose level, the rMPC algorithm and rPID algorithm with adjusted parameters recalculate the first insulin infusion volume I1 and the second insulin infusion volume I2;

[0339] ④ Repeat steps ① to ③ until I1 = I2, and the final insulin infusion volume I3 = I1 = I2.

[0340] Similarly, when the first or second algorithm is a PID or RPID algorithm, the algorithm parameter is K. P And K D =T D / K P T D You can take 60-90 minutes, K I =T I *K P T I The timeframe can be 150min-450min. When the first or second algorithm is an MPC or rPMC algorithm, the algorithm parameter is K.

[0341] In this embodiment of the invention, α and β can be adjusted according to the magnitude of the first insulin infusion volume I1 and the second insulin infusion volume I2. When I1≥I2, α≤β; when I1≤I2, α≥β; preferably, α+β=1. In other embodiments of the invention, α and β can also be other ranges of values, which are not specifically limited here.

[0342] When the calculation results of the two algorithms are the same, i.e., I3 = I1 = I2, it can be considered that the insulin infusion volume at the current moment can bring the blood glucose level to the ideal level. Through the above processing, the algorithms refer to each other. Preferably, the rMPC algorithm and the rPID algorithm refer to each other to further improve the accuracy of the output results and make the results more feasible and reliable.

[0343] In another embodiment of the present invention, the program module is further provided with a memory for storing information such as the user's historical physical state, blood glucose level, and insulin infusion volume. Statistical analysis can be performed based on the information in the memory to obtain the current statistical analysis result I4. When I1 ≠ I2, I1, I2, and I4 are compared respectively to calculate the final insulin infusion volume I3. The one between I1 and I2 that is closer to the statistical analysis result I4 is selected as the final calculation result of the composite artificial pancreas algorithm, i.e., the final insulin infusion volume I3. The program module sends the final insulin infusion volume I3 to the infusion module for infusion; that is:

[0344]

[0345] By comparing with historical data, the reliability of insulin infusion volume is ensured from another perspective.

[0346] In another embodiment of the present invention, when I1 and I2 are inconsistent and have a large difference, they can be adjusted to be similar by changing the blood glucose risk space transformation method and / or the compensation method for the delay effect in the rMPC algorithm and / or rPID algorithm. Then, the output result of the composite artificial pancreas algorithm is finally determined by the above arithmetic mean, weighted processing, or comparison with the statistical analysis results.

[0347] In another embodiment of the present invention, the closed-loop artificial pancreas control system further includes a meal recognition module and an exercise recognition module. These modules are used to identify whether the user is eating or exercising. A common method for meal recognition is based on the rate of change in blood glucose levels, determined by a specific threshold. The rate of change in blood glucose levels can be calculated from two consecutive moments or obtained through linear regression over a period of time. Specifically, when using the rate of change from two consecutive moments, the calculation formula is:

[0348] dG t / dt=(G t -G t-1 ) / Δt

[0349] in:

[0350] G t This indicates the current blood glucose level;

[0351] G t-1 This indicates the blood glucose level at the previous moment;

[0352] Δt represents the time interval between the current moment and the previous moment.

[0353] When using the formula for calculating the rate of change at three points, the formula is:

[0354] dG t / dt=(3G t -4G t-1 +G t-2 ) / 2Δt

[0355] in:

[0356] G t This indicates the current blood glucose level;

[0357] G t-1 This indicates the blood glucose level at the previous moment;

[0358] G t-2 This indicates the blood glucose level at the time two hours ago;

[0359] Δt represents the time interval between the current moment and the previous moment.

[0360] Before calculating the rate of change in blood glucose, the raw continuous glucose data can be filtered or smoothed. The threshold can be set between 1.8 mg / mL and 3 mg / mL, or it can be customized.

[0361] Similar to meal recognition, since exercise causes a rapid drop in blood glucose, exercise recognition can also be based on the rate of blood glucose change and determined using a specific threshold. The calculation of the rate of blood glucose change can also be performed as described above, and the threshold can be customized. To more quickly determine the occurrence of exercise, the closed-loop artificial pancreas drug infusion control system also includes a motion sensor (not shown). The motion sensor is used to automatically detect the user's physical activity, and the program module can receive information about the user's physical activity status. The motion sensor can automatically and accurately sense the user's physical activity state and send the activity status parameters to the program module, improving the reliability of the composite artificial pancreas algorithm's output in exercise scenarios.

[0362] The motion sensor can be located in the program module or the infusion module. Preferably, in this embodiment of the invention, the motion sensor is located in the program module.

[0363] It should be noted that the embodiments of the present invention do not limit the number of motion sensors or the placement of multiple motion sensors, as long as the conditions for motion sensors to sense user activity are met.

[0364] The motion sensor includes a three-axis accelerometer or a gyroscope. A three-axis accelerometer or gyroscope can more accurately sense the intensity, pattern, or posture of body activity. Preferably, in this embodiment of the invention, the motion sensor is a combination of a three-axis accelerometer and a gyroscope.

[0365] It should be noted that during the calculation process, the blood glucose risk conversion methods used by the rMPC algorithm and the rPID algorithm can be the same or different, and the compensation methods for the delay effect can also be the same or different. Adjustments can also be made during the calculation process according to the actual situation.

[0366] In another embodiment of the present invention, the program module is pre-set with a hybrid artificial pancreas algorithm, which includes a cPID algorithm and / or a cMPC algorithm, wherein the input of the cPID algorithm is the intermediate value of the MPC algorithm, and the input of the cMPC algorithm is the output value of the PID algorithm.

[0367] Specifically: The cPID algorithm is calculated based on the current blood glucose level predicted by the MPC prediction model, that is:

[0368]

[0369] in:

[0370] K P It is the gain coefficient of the proportional part;

[0371] K I It is the gain coefficient of the integral part;

[0372] K D It is the gain coefficient of the differential part;

[0373] G MPC(t) This represents the blood glucose level at the current moment, predicted by the MPC prediction model.

[0374] G B Indicates the target blood glucose level;

[0375] C represents a constant;

[0376] cPID(t) represents the infusion instruction sent to the drug infusion system.

[0377] Similarly, the cPID algorithm can be transformed using the risk transformation method described above to further improve the robustness of the hybrid artificial pancreas algorithm. That is:

[0378]

[0379] in:

[0380] K PIt is the gain coefficient of the proportional part;

[0381] K I It is the gain coefficient of the integral part;

[0382] K D It is the gain coefficient of the differential part;

[0383] r MPC(t) This represents the blood glucose risk after risk conversion based on the current blood glucose value predicted by the MPC prediction model.

[0384] G B Indicates the target blood glucose level;

[0385] C represents a constant;

[0386] rcPID(t) represents the infusion instruction sent to the drug infusion system.

[0387] The current insulin infusion rate in the cMPC algorithm's prediction model is calculated using the PID algorithm; that is, the cMPC algorithm's prediction model is:

[0388] x t+l =Ax t +BI PID(t)

[0389] G t =Cx t

[0390] in:

[0391] x t+1 Indicates the state parameters at the next moment.

[0392] x t This represents the state parameters at the current moment.

[0393] I PID(t) This represents the insulin infusion volume at the current moment, calculated using the PID algorithm.

[0394] G t This indicates the blood glucose concentration at the current moment.

[0395] The parameter matrix is ​​as follows:

[0396]

[0397]

[0398] C = [1 0 0]

[0399] b1, b2, b3, and K are prior values.

[0400] Similarly, the current insulin infusion rate in the cMPC algorithm's prediction model can also be calculated using the rPID algorithm, with the specific blood glucose risk conversion method described above. That is, the cMPC model is:

[0401] x t+1 =Ax t +BI rPID(t)

[0402] G t =Cx t

[0403] in:

[0404] x t+1 Indicates the state parameters at the next moment.

[0405] x t This represents the state parameters at the current moment.

[0406] I rPID(t) This represents the insulin infusion volume at the current moment, calculated using the rPID algorithm.

[0407] G t This indicates the blood glucose concentration at the current moment.

[0408] The parameter matrix is ​​as follows:

[0409]

[0410]

[0411] C = [1 0 0]

[0412] b1, b2, b3, and K are prior values.

[0413] The value function of the cMPC algorithm can be composed of the sum of squares of the deviations in the output G (blood glucose level) and the sum of squares of the changes in the input I (insulin level). MPC aims to find the minimum solution of the value function.

[0414]

[0415] in:

[0416] I' t+j This indicates the change in insulin infusion volume after step j;

[0417] This represents the difference between the predicted blood glucose concentration and the target blood glucose value after step j;

[0418] t represents the current time;

[0419] N and P are the number of steps within the control time window and the prediction time window, respectively;

[0420] R is the weighting coefficient for the insulin component.

[0421] The insulin infusion volume in step j is I. t +I′ t+j .

[0422] Similarly, the output G (blood glucose level) in the value function of the cMPC algorithm can also undergo risk transformation. The transformed value function of the cMPC algorithm is:

[0423]

[0424] in,

[0425] r t+j This represents the blood glucose risk value after step j;

[0426] I' t+j This indicates the change in insulin infusion volume after step j;

[0427] t represents the current time;

[0428] N and P are the number of steps within the control time window and the prediction time window, respectively;

[0429] R is the weighting coefficient for the insulin component.

[0430] In this embodiment of the invention, the cMPC algorithm is a combination of a prediction model calculated by the PID algorithm or rPID algorithm for the current insulin infusion volume and a value function with or without risk transformation. It flexibly utilizes the advantages of the PID algorithm, the MPC algorithm and blood glucose risk transformation to deal with complex scenarios, so that the artificial pancreas can provide a reliable drug infusion volume under various conditions, thereby enabling blood glucose to reach the ideal level at the expected time and realizing precise control of the closed-loop artificial pancreas drug infusion system.

[0431] In the PID and MPC algorithms at each stage mentioned above, the risk conversion methods are as described above and will not be repeated here. The conversion methods can be the same or different. Similarly, the three major delay effects can also be compensated in the aforementioned manner.

[0432] In one embodiment of the present invention, the hybrid artificial pancreas algorithm includes only the cPID algorithm or the cMPC algorithm.

[0433] In another embodiment of the present invention, the hybrid artificial pancreas algorithm includes a cPID algorithm and a cMPC algorithm, one of which is used to calculate the insulin required by the user, and the other algorithm is reserved.

[0434] In another embodiment of the present invention, the hybrid artificial pancreas algorithm includes a cPID algorithm and a cMPC algorithm. The cPID algorithm is used to calculate the first insulin infusion volume I1, and the cMPC algorithm is used to calculate the second insulin infusion volume I2. The hybrid artificial pancreas algorithm then optimizes the first insulin infusion volume I1 and the second insulin infusion volume I2 to obtain the final insulin infusion volume I3. The specific optimization method is as described above, namely:

[0435] When I1 = I2, I3 = I1 = I2;

[0436] When I1 ≠ I2, substitute the arithmetic mean or weighted value of the two into the algorithm to recalculate the current insulin infusion volume I1 and I2. If the data are still different, repeat the above process until I3 = I1 = I2, that is:

[0437] ① Calculate the average value of the first insulin infusion volume I1 and the second insulin infusion volume I2.

[0438] ② Average value Substitute these parameters into the cPID and cMPC algorithms and adjust the algorithm parameters.

[0439] ③ Based on the current blood glucose level, the cPID algorithm and cMPC algorithm with adjusted parameters recalculate the first insulin infusion volume I1 and the second insulin infusion volume I2;

[0440] ④ Repeat steps ① to ③ until I1 = I2, and finally the insulin infusion volume I3 = I1 = I2.

[0441] or:

[0442] ① Calculate the weighted value of the first insulin infusion volume I1 and the second insulin infusion volume I2. Where α and β are the weighting coefficients of the first insulin infusion volume I1 and the second insulin infusion volume I2, respectively;

[0443] ②Weighted values Substitute these parameters into the cPID and cMPC algorithms and adjust the algorithm parameters.

[0444] ③ Based on the current blood glucose level, the cPID algorithm and cMPC algorithm with adjusted parameters recalculate the first insulin infusion volume I1 and the second insulin infusion volume I2;

[0445] ④ Repeat steps ① to ③ until I1 = I2, and the final insulin infusion volume I3 = I1 = I2.

[0446] When the two differ, they can be statistically analyzed against historical information such as the user's past physical condition, blood glucose levels, and insulin infusion volume to obtain the current statistical analysis result I4. The one that is closer to the statistical analysis result I4 between I1 and I2 is selected as the final insulin infusion volume I3, i.e.:

[0447]

[0448] The beneficial effects of optimizing the first insulin infusion volume I1 and the second insulin infusion volume I2 described above are as previously stated and will not be repeated here.

[0449] Figures 6a-6b These are cross-sectional views of the closed-loop artificial pancreas drug infusion control system 100 according to an embodiment of the present invention. The closed-loop artificial pancreas drug infusion control system 100 is an integral structure. Figure 6a With infusion tubing 130 in the installation position, Figure 6b The infusion tube 130 is in the working position.

[0450] Program module 120 includes an input terminal 121 and an output terminal 122. Input terminal 121 is used to receive the current blood glucose value G. In this embodiment, input terminal 121 includes electrical connection areas 121a and 121b. In the working state, the electrical connection areas are electrically connected to electrodes or electrode wires to receive parameter signals. In other embodiments of the invention, depending on the number of electrodes, input terminal 121 may also include more electrical connection areas. Output terminal 122 is electrically connected to infusion module 110 to enable program module 120 to control infusion module 110.

[0451] During the use of the closed-loop artificial pancreas drug infusion control system of this invention, the infusion tube 130 and the input end 121 will slide relative to each other; therefore, the input end 121 is designed as an elastic element. The elastic element is selected to ensure an interference fit between the infusion tube 130 and the input end 121 to avoid poor electrical contact. The elastic element includes: conductive rubber strips, directional conductive silicone, conductive rings, conductive balls, etc. When the number of electrodes is relatively large, the electrical connection area is relatively dense; in this case, depending on the different structural designs, one or more combinations of the above-mentioned elements can be selected as the elastic element.

[0452] In this embodiment of the invention, the infusion tube 130 is mounted on the mounting device 150. When the infusion tube 130 is in the mounting position, the mounting device 150 protrudes from the surface of the housing of the closed-loop artificial pancreas drug infusion control system 100, as shown below. Figure 6a As shown. When the infusion tube 130 is installed in the working position, the installation device 150 enters the closed-loop artificial pancreas drug infusion control system 100, and its top becomes an integral structure with the housing of the closed-loop artificial pancreas drug infusion control system 100, as shown. Figure 6bAs shown. Before use, the installation device 150, carrying the infusion tube 130, is in the installation position. When using the device, the user attaches the closed-loop artificial pancreas drug infusion control system 100 to the surface of the body, presses the installation device 150 to complete the installation, and the closed-loop artificial pancreas drug infusion control system can then begin normal operation. Compared to other infusion tube installation methods, the installation method of this embodiment reduces the number of steps required for user installation, making installation more convenient and flexible, and improving the user experience.

[0453] There are various ways in which the infusion tube 130 can be arranged in the mounting device 150, and no specific limitation is made here. Specifically, in this embodiment of the invention, a portion of the infusion tube 130 protrudes from the other side of the mounting device 150. Figure 6a and 6b (As shown by the dashed line in the middle), it is used for subsequent connection with the outlet of the infusion module 110 to realize drug flow.

[0454] In embodiments of the present invention, the infusion tube 130 includes one or more conductive regions. Here, a conductive region refers to the tube wall at different locations of the infusion tube 130, and the tube wall itself is conductive. The material of the conductive region includes stainless steel, metal alloys, or other conductive materials, and is not specifically limited here. Specifically, in an embodiment of the present invention, the entire material of the infusion tube 130 is stainless steel. In this case, the entire infusion tube 130 serves as a conductive region. The infusion tube 130 itself acting as an electrode reduces the number of electrodes required and lowers the manufacturing complexity of the electrode design.

[0455] In other embodiments of the invention, the infusion tube 130 further includes an electrical contact area 140 connected to the input terminal 121. For example... Figure 6a As shown, when the infusion tube 130 is in the installation position, the electrical contact area 140 is not electrically connected to the input terminal 121. Furthermore, the other end of the infusion tube 130 is not connected to the outlet of the infusion module 110. Figure 6b As shown, when the infusion tubing 130 is installed in the working position, one end of the infusion tubing 130 is inserted subcutaneously. Figure 6b (Screenshot of the solid line portion of the infusion tube), the other end ( Figure 6b (The dotted line portion of the infusion tube is shown in the diagram) It is connected to the outlet of the infusion module 110, thereby establishing a flow channel for the drug from the infusion module 110 to the human tissue fluid. At the same time, the electrical contact area 140 reaches the electrical connection area of ​​the input end 121, realizing the electrical connection between the program module 120 and the electrical contact area 140.

[0456] It should be noted that even when the infusion tube 130 and the infusion module 110 are connected, and the input terminal 121 is electrically connected to the electrical contact area 140 of the infusion tube 130, the program module 120 will be in a non-working state as long as the infusion tube 130 is not inserted subcutaneously. In this state, the closed-loop artificial pancreas drug infusion control system will not generate a blood glucose level detection value, nor will it issue a command to initiate infusion. Therefore, in other embodiments of the present invention, when the infusion tube 130 is in the installation position, the electrical contact area 140 can also be electrically connected to the electrical connection area of ​​the input terminal 121, or the infusion tube 130 can also be connected to the outlet of the infusion module 110; no specific limitations are imposed here.

[0457] In this embodiment of the invention, a medical adhesive tape 160 is also included for attaching the closed-loop artificial pancreas drug infusion control system 100 to the skin surface, so as to attach the program module 120, infusion module 110, electrode and infusion tube 130 as a whole to the skin. When the infusion tube 130 is installed in the working position, the portion of the infusion tube 130 inserted under the skin is 13.

[0458] Figure 7a This is a top view of a closed-loop artificial pancreas drug infusion control system 100 according to another embodiment of the present invention.

[0459] In one embodiment of the present invention, the closed-loop artificial pancreas drug infusion control system 100 includes two parts. A program module 120 is disposed in one part, and an infusion module 110 is disposed in the other part. The two parts are electrically connected by multiple electrical contacts 123. Compared to connectors configured as plug-in terminals, electrical contacts have a smaller contact area, allowing for flexible design and effectively reducing the volume of the control structure. Simultaneously, the electrical contacts can be directly connected to internal circuits or electrical components, or can be directly soldered onto a circuit board, optimizing the design of the internal circuit and effectively reducing circuit complexity, thus saving costs and reducing the size of the infusion device. The electrical contacts 123 can be rigid metal contacts or elastic conductive elements. Elastic conductive elements include conductive springs, conductive silicone, conductive rubber, or conductive sheets, etc.

[0460] The part containing the infusion module 110 can be discarded after one use, while the part containing the program module 120 can be reused, saving users costs.

[0461] In other embodiments of the present invention, the closed-loop artificial pancreas drug infusion control system 100 may be composed of more parts, and the parts that do not require electrical connection can be connected by ordinary waterproof plugs.

[0462] Figure 7b This is a top view of a closed-loop artificial pancreas drug infusion control system 100 according to another embodiment of the present invention.

[0463] In this embodiment of the invention, the closed-loop artificial pancreas drug infusion control system 100 comprises two parts, and the infusion module 110 includes two infusion sub-modules 110a and 110b. Infusion sub-modules 110a and 110b can hold different drugs, such as hypoglycemic drugs like insulin, hypoglycemic drugs like glucagon, antibiotics, nutrient solutions, analgesics, morphine, anticoagulants, gene therapy drugs, cardiovascular drugs, or chemotherapy drugs, and other drugs. Infusion sub-modules 110a and 110b are electrically connected to output terminals 122a and 122b, respectively, enabling the program module 120 to control the infusion module 110. The outlets of infusion sub-modules 110a and 110b are respectively connected to infusion tubing sections 130a and 130b. Infusion tubing sections 130a and 130b are respectively connected to infusion tubing section 130c. The infusion tube 130c is inserted subcutaneously, thus establishing a channel for the two drugs to flow from the infusion module 110 into the body fluid. That is, the closed-loop artificial pancreas drug infusion control system still only inserts the drug at one location subcutaneously. In this embodiment of the invention, when the current blood glucose value is transmitted to the program module 120, the program module 120 uses a preset rMPC algorithm, rPID algorithm, composite artificial pancreas algorithm, or hybrid artificial pancreas algorithm to calculate the amount of medication required by the user based on the received current blood glucose value. The program module 120 can output different infusion signals to different infusion sub-modules to control whether medication needs to be infused and the required amount, achieving precise detection and control of blood glucose to stabilize the user's physiological state.

[0464] In one embodiment of the invention, the infusion volume of a hypoglycemic drug and / or the current infusion volume of a hypoglycemic drug is estimated by comparing blood glucose concentrations. P With target blood glucose level G B The resulting blood glucose concentration estimate G P Blood glucose levels can be estimated using the rMPC prediction model or other suitable blood glucose prediction algorithms; blood glucose-lowering drug infusion data and / or blood glucose-raising drug infusion data can be calculated using the aforementioned rMPC algorithm, rPID algorithm, composite artificial pancreas algorithm, or hybrid artificial pancreas algorithm. Specifically:

[0465] When G P ≥G B At that time, the infusion module 110 begins to calculate the hypoglycemic drug infusion data I based on the rMPC algorithm, rPID algorithm, composite artificial pancreas algorithm, or hybrid artificial pancreas algorithm. t Administer hypoglycemic drugs via infusion;

[0466] When G P <G B At that time, the infusion module 110 begins to calculate the blood glucose-raising drug infusion data D based on the rMPC algorithm, rPID algorithm, composite artificial pancreas algorithm, or hybrid artificial pancreas algorithm. tAdminister blood glucose-raising medication via infusion.

[0467] In another embodiment of the present invention, the infusion volume of the hypoglycemic drug and / or the current infusion volume of the hyperglycemic drug can be directly calculated by determining the required amount of the hypoglycemic drug I. t To determine the required amount of blood sugar-lowering medication I t The calculation can be performed using the aforementioned rMPC algorithm, rPID algorithm, composite artificial pancreas algorithm, or hybrid artificial pancreas algorithm. Specifically:

[0468] When I t When the blood glucose level is ≥0, the infusion module 110 starts calculating the blood glucose-lowering drug infusion data I based on the rMPC algorithm, rPID algorithm, composite artificial pancreas algorithm, or hybrid artificial pancreas algorithm. t Administer hypoglycemic drugs via infusion;

[0469] When I t When <0, the infusion module 110 starts calculating the blood glucose-raising drug infusion data D based on the rMPC algorithm, rPID algorithm, composite artificial pancreas algorithm, or hybrid artificial pancreas algorithm. t Administer blood glucose-raising medication via infusion.

[0470] It should be noted that in the above embodiments, the calculation methods for the hypoglycemic drug infusion data and glucagon infusion data at each stage can be the same or different. Preferably, the same algorithm architecture is used for calculation to ensure the consistency of the basic conditions during calculation and to make the calculation results more accurate. More preferably, a composite artificial pancreas algorithm or a hybrid artificial pancreas algorithm is used for calculation to fully utilize the advantages of PID algorithm, MPC algorithm and blood glucose risk conversion to deal with complex scenarios and achieve a more ideal blood glucose control level.

[0471] In other embodiments of the present invention, more infusion sub-modules may be provided according to actual needs, and multiple infusion sub-modules may be set in different parts of the closed-loop artificial pancreas drug infusion control system 100, without specific limitations.

[0472] Figures 8a-8b This is a partial longitudinal cross-sectional view of the infusion tube 130.

[0473] In an embodiment of the present invention, the closed-loop artificial pancreas drug infusion control system 100 includes multiple electrodes for detecting blood glucose levels. These electrodes are conductive regions of the infusion tube, and are thus conductive region electrodes. Alternatively, the electrodes are disposed on the wall of the infusion tube 130, and are thus wall electrodes.

[0474] In one embodiment of the present invention, a tube wall electrode 172 is plated on the outer surface of the infusion tube 130 wall. The tube wall 132 itself serves as a conductive region electrode 171, and the lumen 131 is used for drug infusion. Generally, an insulating layer (not shown) is provided between the conductive region electrode 171 and the tube wall electrode 172 to isolate them. Clearly, in this embodiment of the present invention, the infusion tube 130 itself serves as both an electrode and an infusion conduit. This design reduces the number of skin puncture sites in the closed-loop artificial pancreas drug infusion control system, allowing for blood glucose testing and drug infusion to be completed in a single puncture at the same location, thus reducing the risk of infection for the user. Simultaneously, this method of integrally electroplating an electrode layer on the tube wall 132 of the infusion tube 130 simplifies the manufacturing process of the infusion tube 130 and facilitates process implementation.

[0475] To facilitate electrical connection between the electrodes and electrical connection areas 121a and 121b, at electrical contact area 140 ( Figure 8a (At the location indicated by the dashed line) the stainless steel tube wall 132 needs to be exposed, while other parts of the infusion tube 130 are plated with an electrode layer. For example... Figure 8b As shown, when the infusion tube 130 is installed in the working position, the conductive area electrode 171 and the tube wall electrode 172 are directly electrically connected to the electrical connection areas 121a and 121b of the input end, respectively, and the current blood glucose value is transmitted to the program module 120 in the form of an electrical signal.

[0476] It should be noted that, in this embodiment of the invention, when the infusion tube 130 is installed in the working position, a portion of the tube wall electrode 172 is located in the subcutaneous tissue fluid, and a portion is located on the skin, enabling the transmission of electrical signals on the tube wall electrode 172. The corresponding electrode settings in other embodiments described below have the same function and will not be detailed further.

[0477] In one embodiment of the invention, the closed-loop artificial pancreas drug infusion control system 100 has only two electrodes: the conductive region electrode 171 is the working electrode, and the tube wall electrode 172 is the auxiliary electrode. In another embodiment of the invention, the conductive region electrode 171 is the auxiliary electrode, and the tube wall electrode 172 is the working electrode. The auxiliary electrode is a counter electrode.

[0478] Figures 9a-9b This is a partial longitudinal cross-sectional view of the infusion tube 130 according to another embodiment of the present invention. For ease of labeling and description, the electrode wires and the infusion tube are... Figure 9a The following diagrams show the structure in the same way as those shown here, and will not be repeated hereafter.

[0479] In this embodiment, the tube wall 132 itself serves as a conductive region electrode 271. The tube wall electrode 272 is disposed on a portion of the surface of the tube wall 132, and an electrode wire 2720 electrically connected to the tube wall electrode 272 is also disposed on the surface of the tube wall 132. An insulating material layer (not shown) is formed between the electrode wire 2720 and the tube wall 132. When the infusion tube 130 is installed in the working position, the electrical connection areas 121a and 121b at the input end are electrically connected to the conductive region electrode 271 and the electrode wire 2720, respectively. At this time, the tube wall electrode 272 is indirectly electrically connected to the input end, and the blood glucose signal can still be transmitted to the program module.

[0480] Figure 9b The tube wall electrode 272 is configured as a ring, and the ring-shaped tube wall electrode 272 surrounds the outer surface of a portion of the tube wall 132. The tube wall electrode 272 can also have other shapes, which are not specifically limited here.

[0481] Figure 10 This is a partial longitudinal cross-sectional view of the infusion tube 130 according to another embodiment of the present invention.

[0482] In this embodiment of the invention, three electrodes are provided on the infusion tube 130: a conductive region electrode 371, a tube wall electrode 372, and a tube wall electrode 373. The tube wall 132 of the infusion tube 130 itself serves as the conductive region electrode 371, and the tube wall electrodes 372 and 373 are respectively disposed on a portion of the outer surface of the tube wall 132. Simultaneously, electrode wires 3720 and 3730, respectively electrically connected to the tube wall electrodes 372 and 373, are also provided on the surface of the tube wall 132. When the infusion tube 130 is installed in the working position, the conductive region electrode 371, electrode wires 3720 and 3730 are electrically connected to the input terminal electrical connection areas 121a, 121b, and 121c, respectively, thereby realizing the electrical connection between the input terminal and each electrode. The shapes of the tube wall electrodes 372 and 373 can vary, and no specific limitation is made here.

[0483] In this embodiment of the invention, to simplify the design of the electrical connection area, the elastic element at the input end is conductive silicone or a conductive ring. Doping the silicone with different elements can achieve directional conductivity, such as horizontal conductivity and vertical non-conductivity. With this design, even if 121a and 121c are in contact and adjacent, they are still mutually insulated. The electrical connection area 121b can use conductive adhesive strips or conductive balls, etc., without specific limitations.

[0484] In this embodiment of the invention, the conductive region electrode 371 is the working electrode, while the tube wall electrodes 372 and 373 are auxiliary electrodes. At this time, the conductive region electrode 371 and the tube wall electrode 372 or 373 can form different electrode combinations, meaning that two electrode combinations share the conductive region electrode 371. The program module 120 can select different electrode combinations to detect the current blood glucose value. After forming an electrode combination, on the one hand, if one working electrode combination malfunctions, the program module 120 can select other electrode combinations for detection as needed, ensuring uninterrupted blood glucose signal detection. On the other hand, the program module 120 can select multiple electrode combinations to work simultaneously, statistically analyzing multiple sets of data with the same parameters at the same time, improving the accuracy of blood glucose readings, and thus outputting a more accurate drug infusion signal.

[0485] Similarly, the conductive region electrode 371, the tube wall electrode 372, and the tube wall electrode 373 include one working electrode and two auxiliary electrodes, which can be arbitrarily selected according to actual needs. In another embodiment of the present invention, the conductive region electrode 371, the tube wall electrode 372, and the tube wall electrode 373 include one auxiliary electrode and two working electrodes, which can also be arbitrarily selected according to actual needs, and no specific limitation is made here.

[0486] In one embodiment of the present invention, the conductive region electrode 371 is the working electrode, and the tube wall electrodes 372 and 373 are both auxiliary electrodes. The tube wall electrodes 372 and 373 are used as the counter electrode and the reference electrode, respectively, thus forming a three-electrode system. Similarly, the three electrodes can be arbitrarily selected according to actual needs, and no specific restrictions are imposed here.

[0487] Similarly, in other embodiments of the present invention, more electrodes may be provided. The electrodes include multiple working electrodes and multiple auxiliary electrodes, but it should be ensured that the conductive area of ​​the infusion tube 130 serves as at least one electrode. In this case, each electrode combination includes a working electrode and an auxiliary electrode, thus multiple electrodes can form multiple electrode combinations. As needed, the program module 120 can select one or more electrode combinations to detect the current blood glucose level.

[0488] Figure 11 This is a partial longitudinal cross-sectional view of the infusion tube 130 according to another embodiment of the present invention. For ease of labeling and description, Figure 11 The inner wall of the flexible tube 180 and the outer wall of the infusion needle 170 are shown separately.

[0489] In this embodiment of the invention, the infusion tube 130 includes an infusion needle 170 and a flexible tube 180 sleeved on the outer wall of the infusion needle 170. The flexible tube 180 is used because its surface makes it easier to set electrodes, reducing the difficulty of electrode manufacturing and improving preparation efficiency. Furthermore, the wall material of the flexible tube 180 can be selected as needed; for example, its wall can only allow specific blood glucose levels to pass through, reducing interference from other substances and improving the accuracy of blood glucose parameter detection.

[0490] The infusion needle's cavity 131 serves as a drug infusion channel, and the infusion tubing 130's wall includes the outer wall of the needle and the tubing wall. The infusion needle 170 itself acts as a conductive electrode 471, with a tubing wall electrode 472 disposed on the outer surface of the infusion needle 170 and a tubing wall electrode 473 disposed on the outer surface of the tubing 180. In this case, the tubing wall electrode 472 is located within the wall of the infusion tubing 130.

[0491] In the above embodiments, the tube wall electrode 472 can be partially or completely covered by the tubing 180, or the tube wall electrode 472 can be exposed in the tissue fluid. The tube wall electrode 473 can also be disposed on the inner surface of the tubing 180, that is, between the steel needle wall and the tubing wall, and the tube wall electrode 473 is electrically connected to the electrical connection area 121c through the electrode wire 4730. When the tube wall electrode 472 (the electrode wire of the tube wall electrode 472 is not shown) is partially or completely covered by the tubing 180, or when the tube wall electrode 473 is disposed on the inner surface of the tubing 180, the tube wall material of the tubing 180 is a permeable membrane or a semi-permeable membrane. This choice facilitates the permeation of blood glucose through the tube wall of the tubing 180 and its detection by the electrode, thereby improving the flexibility of the electrode placement design without affecting the detection.

[0492] In this embodiment of the invention, when the infusion tubing 130 is installed in the working position, the depth to which the tubing 180 and the infusion needle 170 penetrate the subcutaneous tissue is related. Here, depth refers to the distance between the distal end of the tubing 180 or the infusion needle 170 penetrating the subcutaneous tissue and the skin surface, respectively. Figure 11 As shown. Generally, the hardness of an infusion needle of 170 is greater than that of a tubing of 180. For example... Figure 11 As shown, within the subcutaneous portion 13, the depth to which the tubing 180 enters the subcutaneous tissue is d1, and the depth to which the infusion needle 170 enters the subcutaneous tissue is d2, where d1 ≤ d2. This design allows the infusion tubing 130 to be smoothly inserted into the subcutaneous tissue.

[0493] Figures 12a-12c This is a partial longitudinal cross-sectional view of the infusion tube 130 according to another embodiment of the present invention. Figure 12a This is a longitudinal cross-sectional view of the infusion tube 130. Figure 12b and Figure 12c This is a cross-sectional view of the infusion tube 130.

[0494] Please refer to Figure 12aand Figure 12b , Figure 12b for Figure 12a Schematic diagram of the transverse section of the infusion tube 130.

[0495] In this embodiment of the invention, the wall 132 of the infusion tube 130 includes multiple conductive regions, one or more of which serve as electrodes. For example, when the wall 132 includes two conductive regions, they serve as conductive region electrode 571 and conductive region electrode 572, respectively. Conductive region electrode 571 and conductive region electrode 572 can be a working electrode and an auxiliary electrode, respectively, and are electrically connected to electrical connection areas 121a and 121b, respectively, for electrical signal transmission. Using different conductive regions of the infusion tube itself as electrodes further reduces the electrode design on the tube wall surface and reduces the production process of the infusion tube. The insulating part 190 provides electrical insulation between the two conductive regions of the infusion tube 130.

[0496] Please refer to Figure 12c The infusion tube 130 consists of three conductive regions, with adjacent conductive regions separated by an insulating portion 190. The infusion tube 130 itself serves as three electrodes: conductive region electrodes 671, 672, and 673. Conductive region electrode 671 is the working electrode, while conductive region electrodes 672 and 673 are auxiliary electrodes, or selected according to the actual needs described above.

[0497] Please refer to Figure 13 Signal transmission between the remote device 200 and the closed-loop artificial pancreas drug infusion control system 100.

[0498] This embodiment of the invention also includes a remote device 200. The remote device 200 includes, but is not limited to, a handheld device, a mobile terminal, etc. The remote device 200 and the program module 120 transmit wireless signals to each other. The program module 120 can send the current blood glucose level or medication infusion information (including whether or not to infuse) to the remote device 200. The remote device 200 can receive, record, store, and display blood glucose or infusion information, as well as other functional options. Users can view historical or real-time information at any time through the remote device 200. Through the remote device 200, users can also manually select infusion information remotely and wirelessly transmit the information to the program module 120. Provided the program module 120 deems it safe, it can control whether the infusion module performs medication infusion, thereby achieving remote manual control.

[0499] In some embodiments of the present invention, the closed-loop artificial pancreas drug infusion control system 100 further includes multiple electrodes, thereby forming multiple electrode combinations as described above. Users can manually select different electrode combinations to detect blood glucose levels as needed.

[0500] In summary, this invention discloses a closed-loop artificial pancreas drug infusion control system. This system is pre-programmed with one or more of the following algorithms: rMPC algorithm, rPID algorithm, and composite artificial pancreas algorithm. It fully utilizes the advantages of rPID and rMPC algorithms to cope with complex scenarios, enabling the artificial pancreas to provide reliable types and dosages of drugs for blood glucose control under various conditions, thereby achieving ideal blood glucose levels and realizing precise control of the closed-loop artificial pancreas drug infusion system.

[0501] While specific embodiments of the invention have been described in detail by way of examples, those skilled in the art should understand that the above examples are for illustrative purposes only and are not intended to limit the scope of the invention. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.

Claims

1. A closed-loop artificial pancreas drug infusion control system, characterized in that, include: Infusion module, the infusion module being used to dispense drugs; The program module includes an input terminal and an output terminal. The input terminal includes multiple electrical connection areas to receive the current blood glucose value. The program module also has a preset algorithm, which is one or more of the rMPC algorithm, rPID algorithm, or composite artificial pancreas algorithm. After the output terminal is electrically connected to the infusion module, the algorithm calculates the amount of medication required by the user based on the received current blood glucose value. The program module controls the infusion module to output the medication according to the calculated amount of medication required by the user. An infusion tube having a conductive area, wherein the infusion tube is a drug infusion channel; and Multiple electrodes for detecting blood glucose levels are provided. Each electrode includes a conductive region electrode and a tube wall electrode. The conductive region of the infusion tube serves as at least one conductive region electrode. One or more tube wall electrodes are disposed on the tube wall of the infusion tube. When the infusion tube is installed in the working position, the infusion tube is connected to the infusion module, allowing the drug to flow into the body through the infusion tube. Different electrodes are electrically connected to different electrical connection areas to input the current blood glucose value into the program module. The rMPC algorithm and the rPID algorithm, based on the classic MPC algorithm and the classic PID algorithm, respectively, transform the asymmetric blood glucose risk in the original physical space into a blood glucose risk that is approximately symmetric in the risk space, and calculate the current required drug infusion volume based on the blood glucose risk; wherein, the blood glucose risk is calculated by converting the deviation between the blood glucose value and the target blood glucose value, and characterizes the degree of deviation of the blood glucose value relative to the target blood glucose value; The composite artificial pancreas algorithm includes a first algorithm and a second algorithm. The first algorithm calculates a first insulin infusion volume I1, and the second algorithm calculates a second insulin infusion volume I2. The composite artificial pancreas algorithm further optimizes the first insulin infusion volume I1 and the second insulin infusion volume I2 to obtain the final insulin infusion volume I3. The value function of the rMPC algorithm after risk transformation is expressed by the following formula: Where, r t+j I′ represents the blood glucose risk value after step j; t+j This represents the change in insulin infusion volume after step j, where R is the weighting coefficient of the insulin component, and N and P are the number of steps within the control time window and the prediction time window, respectively. The rPID algorithm is expressed by the following formula: Where rPID(t) represents the infusion instruction sent to the insulin infusion system after risk transformation, r represents glycemic risk, C represents a constant, and K... P K is the gain coefficient of the proportional part. I K is the gain coefficient of the integral part. D It is the gain coefficient of the differential part; The blood glucose risk space transformation method of the rMPC algorithm and the rPID algorithm is an improved control variability grid analysis transformation: Among them G B Indicates the target blood glucose level; G t+j This represents the blood glucose value at step j; At the same time, its maximum value is limited: |r t+j |=min(|r t+j |,n) The maximum value n is limited to a range of 0–80 mg / dL.

2. The closed-loop artificial pancreas drug infusion control system according to claim 1, characterized in that, The blood glucose risk space transformation methods of the rMPC and rPID algorithms also include one or more of the following processing methods: ① The proportionate component of the estimated plasma concentration of hypoglycemic or hyperglycemic drugs after deducting and predicting the concentration. ②Deduct the amount of blood sugar-lowering or blood sugar-raising drugs that have not yet taken effect in the body; ③ An autoregressive method was used to compensate for the sensing delay of tissue fluid glucose concentration and blood glucose.

3. The closed-loop artificial pancreas drug infusion control system according to claim 1, characterized in that, The final insulin infusion volume I3 is optimized by averaging the first insulin infusion volume I1 and the second insulin infusion volume I2: ① Calculate the average value of the first insulin infusion volume I1 and the second insulin infusion volume I2. ② Average value Substitute these parameters into the first and second algorithms and adjust the algorithm parameters accordingly. ③ Based on the current blood glucose level, the first algorithm after parameter adjustment, and the second algorithm, recalculate the first insulin infusion volume I1 and the second insulin infusion volume I2; ④ Repeat steps ① to ③ until I1 = I2, and the final insulin infusion volume I3 = I1 = I2.

4. The closed-loop artificial pancreas drug infusion control system according to claim 1, characterized in that, The final insulin infusion volume I3 is optimized using a weighted average of the first insulin infusion volume I1 and the second insulin infusion volume I2: ① Calculate the weighted value of the first insulin infusion volume I1 and the second insulin infusion volume I2. Where α and β are the weighting coefficients of the first insulin infusion volume I1 and the second insulin infusion volume I2, respectively; ②Weighted values Substitute these parameters into the first and second algorithms and adjust the algorithm parameters accordingly. ③ Based on the current blood glucose level, the first algorithm after parameter adjustment, and the second algorithm, recalculate the first insulin infusion volume I1 and the second insulin infusion volume I2; ④ Repeat steps ① to ③ until I1 = I2, and the final insulin infusion volume I3 = I1 = I2.

5. The closed-loop artificial pancreas drug infusion control system according to claim 1, characterized in that, The final insulin infusion volume I3 is obtained by comparing the first insulin infusion volume I1 and the second insulin infusion volume I2 with the statistical analysis result I4 of historical data:

6. The closed-loop artificial pancreas drug infusion control system according to any one of claims 3-5, characterized in that, The first algorithm and the second algorithm are rPID algorithms or rMPC algorithms.

7. The closed-loop artificial pancreas drug infusion control system according to claim 1, characterized in that, The infusion tubing includes an infusion needle and a flexible tube fitted over the outer surface of the infusion needle, the needle cavity of which is used for drug infusion.

8. The closed-loop artificial pancreas drug infusion control system according to claim 7, characterized in that, The infusion needle is a conductive area electrode, and the tube wall electrode is disposed on the outer or inner surface of the tube wall of the flexible tube, or on the outer surface of the infusion needle.

9. The closed-loop artificial pancreas drug infusion control system according to claim 1, characterized in that, The infusion module includes multiple infusion sub-modules, each of which is electrically connected to the output terminal. The program module selects and controls the infusion sub-modules to output the drug according to the calculated amount of drug required by the user.

10. The closed-loop artificial pancreas drug infusion control system according to claim 9, characterized in that, The drugs mentioned are blood glucose-raising drugs and blood glucose-lowering drugs.

11. The closed-loop artificial pancreas drug infusion control system according to claim 1, characterized in that, The closed-loop artificial pancreas drug infusion control system consists of multiple parts, with the infusion module and the program module located in different parts and electrically connected through multiple electrical contacts.

Citation Information

Patent Citations

  • Method and system for a hybrid control-to-target and control-to-range model predictive control of an artificial pancreas

    CN104885086A

  • Velocity-weighting model predictive control of an artificial pancreas for type 1 diabetes applications

    CN107851224A

  • Artificial pancreas closed-loop control algorithm

    CN108261591A

  • Preprandial insulin dosage individualized decision-making system based on Gaussian process

    CN112133439A

  • Detection and infusion integrated closed-loop artificial pancreas equipment

    CN112237656A