Method for predicting a user's glycemic state within a predefined prediction time horizon and method for operating a control unit to generate an optimal insulin dosage signal

WO2026195599A1PCT designated stage Publication Date: 2026-09-24UNIVERSITY OF BERN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2026/057365
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-03-18
Filing Date
2026-03-17
Publication Date
2026-09-24

Smart Images

  • Figure EP2026057365_24092026_PF_FP_ABST
    Figure EP2026057365_24092026_PF_FP_ABST
Patent Text Reader

Abstract

The invention pertains to a computer- or processor-implemented method for predicting a user's glycemic state within a specified prediction time horizon. It involves estimating the user's current metabolic state using an Extended Kalman Filter, with hyperparameters derived from the user's historical continuous glucose monitoring data, insulin, and optionally meal records. The method further predicts the user's glycemic state utilizing a personalized glucose prediction model tailored for a specific demographic group. This model customization involves determining parameters and further refining n≥2 key parameters relevant to personalizing the model, utilizing the user's historical data and meal records for enhanced accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Method for predicting a user’s glycemic state within a predefined prediction time horizon and method for operating a control unit to generate an optimal insulin dosage signal

[0002] Technical Field

[0003] The present invention relates to a method for predicting a user's glycemic state as well as controlling insulin delivery using computing technologies, specifically targeting the diabetic care field. The method incorporates a personalized glucose prediction model and an Extended Kalman Filter to estimate a user's metabolic and glycemic states using historical and current data from continuous glucose monitoring, insulin administration, and optionally meal records. It also describes a control unit, which is designed to optimize and regulate insulin delivery in response to predicted glycemic changes, ensuring the user's blood glucose levels remain within a target range.

[0004] Background of the invention

[0005] The management of Type 1 Diabetes (T 1 D) is a complex and demanding task that requires continuous monitoring and precise control of blood glucose levels. This is crucial to prevent both acute complications, such as hypoglycemia and hyperglycemia, and long-term complications, including cardiovascular disease, neuropathy, and retinopathy. Traditionally, individuals with T1D have relied on manual methods of monitoring and insulin administration, which can be burdensome and prone to human error.

[0006] Recent advancements in technology have led to the development of Automated Insulin Delivery (AID) systems, which aim to alleviate some of these challenges by automating the process of insulin administration. These systems typically integrate continuous glucose monitors (CGMs) with insulin pumps, using algorithms to predict future glucose levels and adjust insulin delivery accordingly. However, the effectiveness of these systems is often limited by their reliance on population-based models or poorly individualized algorithms. Such models may not accurately reflect theunique physiological and lifestyle factors of individual users, leading to suboptimal insulin delivery decisions.

[0007] One of the primary limitations of current AID systems is their inability to fully capture the dynamic nature of glucose-insulin interactions. Most systems employ models, which may not adequately represent the complex physiological processes involved in glucose regulation. This can result in inaccurate predictions and control actions, compromising the system's ability to maintain glucose levels within a target range.

[0008] Furthermore, existing systems often lack the capability to adapt to changes in an individual's metabolic state over time. Factors such as stress, illness, physical activity, and dietary habits can significantly influence glucose metabolism, necessitating a more flexible and responsive approach to insulin delivery. Without the ability to personalize and continuously update the prediction and control models, these systems may fail to provide optimal glycemic control.

[0009] The goal of the present invention is therefore to propose novel methods and systems with which the above-mentioned drawbacks can be eliminated or at least greatly diminished.

[0010] Summary of the invention

[0011] Thus, the object of the present invention is to provide methods and a unit for accurately predicting a user's glycemic state and determining optimal insulin dosage signal using a personalized model predicated on individual metabolic parameters.

[0012] According to the present invention, these objects are achieved in particular through the elements of the independent claims. Advantageous embodiments follow moreover from the dependent claims and the description.

[0013] In particular, the objects of the present invention are, in a first aspect, achieved by a computer- or processor-implemented method for predicting a user’sglycemic state within a predefined prediction time horizon, the method comprising the following steps:

[0014] a. Estimating the user’s current metabolic state based on a current glucose monitoring user’s data by means of an Extended Kalman Filter, wherein the hyperparameters of the Extended Kalman Filter have been previously inferred from user’s historical continuous glucose monitoring data and insulin and, advantageously meal records, including meal timing and composition;

[0015] b. Predicting the user's glycemic state within the predefined prediction time horizon based on the estimated current metabolic state and a physiological personalized glucose prediction model, wherein the m parameters of the glucose prediction model are determined for a specific demographic group except for a subset of n parameters, where n≥2 and n<m, identified as being most influential for userspecific model personalization, and wherein the said n parameters are inferred from user’s historical continuous glucose monitoring data and insulin and, advantageously meal records, including meal timing and composition.

[0016] This allows for a more accurate and individualized prediction of glycemic states by integrating a wide range of user-specific data, including historical glucose monitoring, insulin usage, and advantageously meal records. The use of a personalized EKF provides a robust mechanism for estimating the current metabolic state by effectively integrating multiple data types, such as glucose levels and insulin administration. This integration results in a more precise representation of the user's metabolic state compared to traditional methods that rely on non-personalized models. An important aspect of the present invention is that the personalization of the EKF is done off-line and not for every prediction of the user’s glycemic state within a predefined prediction time horizon. This allows to reduce to computing effort required to predict the user’s glycemic state as the metabolic state can be estimate at step a. with little effort as is used the already initialized and personalized EKF. At step b. this easily estimated current metabolic state is used to predict the user’s glycemic state by means of a personalized physiological glucose prediction mode. In the present context, a “physiological glucose prediction mode” refers to a model that represents at least one physiological process governing glucose metabolism in a subject. Such a modelincorporates physiological parameters and relationships associated with glucose regulation, including, for example, insulin action, glucose absorption, hepatic glucose production, glucose utilization, and / or interstitial glucose dynamics, and uses such physiological representations together with measured or estimated input data to generate a prediction of a future glucose level or glucose trend. Important to understand, is that a physiological glucose prediction model differs from purely data-driven or statistical prediction approaches in that the prediction is generated using a model that explicitly represents physiological mechanisms of glucose regulation in the body.

[0017] The personalization of the glucose prediction model further enhances the accuracy of glycemic state predictions. By identifying and tailoring the subset of the n parameters being the most influential parameters for each user among the m parameters of the glucose prediction model, the model can account for individual physiological differences and lifestyle factors, leading to more precise predictions. This dual-step approach ensures that both the estimation of the metabolic state and the subsequent prediction of glycemic states are as accurate as possible, providing a significant improvement over generic models that may not adequately reflect individual variations.

[0018] In practical terms, this method can lead to better-informed decision-making for users with diabetes, such as optimizing dietary choices and insulin administration. By enhancing the accuracy and relevance of glycemic predictions, the method supports more effective management of blood sugar levels, potentially reducing the risk of complications associated with diabetes.

[0019] In a first preferred embodiment of the first aspect of the present invention, the most influential n parameters in the physiological glucose prediction model are identified considering specific glucose-related states, such as postprandial and post-absorptive states, and events, such as used-induced correction boluses, using a timedependent Sobol analysis.

[0020] This allows for a more precise and contextually relevant personalization of the glucose prediction model. By focusing on specific physiological states and useractions, the method can capture the dynamic nature of glucose metabolism more accurately. The time-dependent Sobol analysis evaluates the impact of each parameter over different times, which helps in understanding how glucose levels respond to various stimuli and conditions. This results in a model that is better tailored to the individual's distinct metabolic responses, leading to more accurate predictions of glycemic states. As a result, this enhances the effectiveness of insulin delivery systems by providing more reliable data for decision-making, improving blood glucose management for users with diabetes.

[0021] In another preferred embodiment of the first aspect of the present invention, the hyperparameters of the Extended Kalman Filter are periodically adapted based on user’s historical continuous glucose monitoring, meal and insulin records.

[0022] This embodiment involves the periodic adaptation of the hyperparameters of the Extended Kalman Filter (EKF) based on the user's historical continuous glucose monitoring, meal, and insulin records. This dynamic adjustment allows the method to remain aligned with the user's current metabolic state, accounting for changes in factors such as meal composition and insulin dosage signal. By periodically updating the hyperparameters of the EKF, the system can provide more accurate estimation of the user’s current metabolic state that in turns allows for better prediction of the user’s glycemic state within the predefined prediction time horizon.

[0023] In another preferred embodiment of the first aspect of the present invention, the n most influential parameters of the physiological glucose prediction model are continuously adapted based on user’s continuous glucose monitoring, meal and insulin records.

[0024] This embodiment involves the continuous adaptation of the parameters of the glucose prediction model based on the user's continuous glucose monitoring, meal, and insulin records. By continuously updating these parameters, the system can provide more accurate and responsive predictions of the user's glycemic state. The continuous adaptation ensures that the method can quickly respond to changes in the user's behavior or health status, such as variations in meal timing or insulin administration patterns, thereby maintaining optimal glycemic control. This methodsupports better-informed decision-making for users, improving the management of blood sugar levels and potentially reducing the risk of complications associated with diabetes.

[0025] In yet another preferred embodiment of the first aspect of the present invention, the physiological glucose prediction model is the Hovorka glucose-insulin regulatory (GRM) model [1], the Subcutaneous Oral Glucose Minimal Model (SOGMM) [2], the double triangular Subcutaneous Oral Glucose Minimal Model (dSOGMM) [3] or the Madgelaine’s Model [4].

[0026] The Hovorka model is a well-established framework that has been developed through extensive empirical data and clinical validation, providing a high degree of accuracy and biological plausibility in its predictions.

[0027] In a further preferred embodiment of the first aspect of the present invention, the hyperparameters of the Extended Kalman Filter, in particular the process noise covariance matrix, the measurement noise covariance matrix, and / or the initial state covariance matrix are inferred from user’s historical continuous glucose monitoring data and insulin and meal records including meal timing and composition.

[0028] This approach allows the EKF to be finely tuned to the individual user's physiological and behavioral patterns, rather than relying on generic or fixed values. By tailoring these hyperparameters to the user's historical data, it is possible to more accurately model the user's metabolic state, leading to improved estimation accuracy. This personalization reduces the estimation errors that might arise from generic assumptions about noise levels or initial states, thereby enhancing the reliability of the metabolic state estimates.

[0029] Furthermore, the periodic adaptation of these matrices ensures that the EKF remains robust under dynamic and varying conditions, such as changes in meal timing, insulin administration patterns, and glucose variability. This adaptability makes the method more resilient to inconsistencies or noise in the input data, further enhancing the accuracy of metabolic state estimation. The synergy between the EKF and the glucose prediction model is strengthened, as both components are aligned withuser-specific characteristics, improving the overall predictive accuracy. This alignment allows for more precise glycemic state predictions that account for individual variations in insulin sensitivity, meal effects, and other physiological factors, leading to more effective diabetes management.

[0030] In another preferred embodiment of the first aspect of the present invention, the physiological glucose prediction model is a nonlinear model and wherein for each prediction of the user’s glycemic state at step b., the model is linearized around the estimated current metabolic state.

[0031] This allows for a more accurate representation of the complex biological systems involved in glucose regulation, such as insulin dynamics and meal effects, which are often characterized by nonlinear relationships. By linearizing the model around the estimated current metabolic state, it is possible to make precise predictions within the specified prediction time horizon, minimizing errors that may arise from assuming linear behavior in biological systems while keeping the computing resources needed low. This iterative process of re-linearizing the model as the user’s glycemic state evolves ensures that predictions remain accurate and relevant, enhancing the overall performance of the method.

[0032] In another preferred embodiment of the first aspect of the present invention, the hyperparameters of the Extended Kalman Filter are inferred from user’s historical continuous glucose monitoring data and insulin and meal records, including meal timing and composition.

[0033] By taking into account meal records, including meal timing and composition, the EKF can be better personalized and can thus give better estimation of the user’s current metabolic state.

[0034] In another preferred embodiment of the first aspect of the present invention, the said n most influential parameters for user-specific model personalization are inferred from user’s historical continuous glucose monitoring data and insulin and meal records, including meal timing and composition.By taking into account meal records, including meal timing and composition, the n parameters of the physiological glucose prediction model identified as being most influential for user-specific model personalization, can be more precisely inferred for the specific user, allowing for a better prediction of the user's glycemic state within the predefined prediction time horizon.

[0035] In a second aspect, the objects of the present invention are achieved by a method for operating a control unit comprising a Model Predictive Control (MPC) system to generate an optimal insulin dosage signal, wherein the method comprises the following steps:

[0036] a. Acquiring a user's current glucose level, preferably via a continuous glucose monitor;

[0037] b. Predicting the user's glycemic state within a specified prediction time horizon by means of the method of the first aspect of the present invention;

[0038] c. Determining an optimal insulin dosage signal within the specified prediction time horizon, to minimize glucose level deviations from a predefined target range;

[0039] d. Outputting the optimal insulin dosage signal for use in controlling an insulin delivery device;

[0040] wherein steps a. to d. are repeated at a predetermined frequency.

[0041] The integration of real-time glucose monitoring with advanced glycemic state prediction enables a dynamic and responsive operation of a control unit to generate an optimal insulin dosage signal. By continuously acquiring glucose levels and predicting future glycemic states by means of the method of the present invention, which provides a user-specific prediction model, the system can adjust for user-specific insulin dosage signal in real-time, allowing that, when the determined optimal insulin dosage signal is used to control an insulin delivery device, blood glucose levels remain within a predefined target range. This adaptability is important for allowing to managethe user-specific fluctuations in glucose levels that occur due to various factors such as meals, physical activity, and stress.

[0042] The use of a Model Predictive Control system enables the calculation of optimal insulin dosage signals by considering both current glucose levels and predicted trends. This approach minimizes deviations from target glucose ranges, allowing to enhance user comfort and to reduce the risk of complications associated with diabetes, such as hypoglycemia and hyperglycemia.

[0043] In a first preferred embodiment of the second aspect of the present invention, the glucose prediction model is a nonlinear model and wherein for each prediction of the user’s glycemic state at step b., the model is linearized around the estimated current metabolic state [5],

[0044] This allows for a more accurate representation of the complex biological systems involved in glucose regulation, such as insulin dynamics and meal effects, which are often characterized by nonlinear relationships. By linearizing the model around the estimated current metabolic state, the system can make precise predictions within the specified prediction time horizon, minimizing errors that may arise from assuming linear behavior in biological systems while keeping the computing resources needed low. This iterative process of re-linearizing the model as the user’s glycemic state evolves ensures that predictions remain accurate and relevant, enhancing the overall performance of the method. The integration of this linearized model with the MPC system allows for real-time optimization of the optimal insulin dosage signal, taking into account both current glucose levels and predicted trends, resulting in more effective glycemic control. This approach anticipates changes in blood sugar levels and responds accordingly, providing a dynamic and responsive system that adapts to the user's physiological state.

[0045] In another preferred embodiment of the second aspect of the present invention, the prediction of the user's glycemic state at step b. incorporates user-provided meal announcements data.This allows the method to refine predictions by considering real-time user dietary inputs, which are important for accurately forecasting blood glucose fluctuations. By utilizing meal timing and composition data directly from the user, the method can adjust the optimal insulin dosage signal to better anticipate and respond to the glycemic impact of upcoming meals. This approach enhances the precision of glycemic predictions by aligning them with the user's actual dietary habits, rather than relying solely on historical data or generic assumptions. As a result, the method can make more informed adjustments to insulin dosage signal, particularly around mealtimes, thereby allowing to minimize deviations from target glucose levels. This user-centric method allows to improve the adaptability and responsiveness of an insulin delivery system, leading to more effective blood glucose management and potentially reducing the risk of postprandial hyperglycemia. Additionally, the seamless integration of meal announcements simplifies user interaction, making the method more intuitive and practical for daily use.

[0046] In yet another preferred embodiment of the second aspect of the present invention, the optimal insulin dosage signal determined at step c. is computed taking into account eventual user’s manual insulin injection(s) and / or insulin injection(s) triggered by a hyperglycemia supervisor module of the control unit.

[0047] This correction mechanism ensures that the insulin delivery system remains responsive to both automated and user-initiated inputs, thereby enhancing the precision of insulin administration. By integrating manual and automated insulin delivery actions, the method can determine an optimal insulin dosage signal that maintains a more accurate balance of insulin levels, reducing the risk of hypoglycemia or hyperglycemia. This approach allows for a more comprehensive management of blood glucose levels by considering all sources of insulin input, leading to improved glycemic control. The correction step ensures that the method adapts to real-time changes in insulin needs, providing a more reliable and user-friendly experience for individuals managing diabetes.

[0048] In a further preferred embodiment of the second aspect of the present invention, the method further comprises a step of evaluating the determined optimal insulin dosage signal against one or more safety thresholds prior to step d.This step allows to introduce a safety mechanism, ensuring that the calculated dosage signal is within safe and acceptable limits. By incorporating this evaluation, the method can prevent potential errors such as overdosing or underdosing, which are significant in diabetes management where precise dosing is necessary to avoid complications like hypoglycemia or hyperglycemia. This additional layer of verification enhances the reliability and trustworthiness of the method, providing assurance that all dosage signals meet safety criteria before outputting the determined optimal insulin dosage signal to an insulin delivery device. The integration of safety thresholds ensures that the method remains robust and reliable, adapting to individual user needs while maintaining optimal glycemic control.

[0049] In another preferred embodiment of the second aspect of the present invention, the method further comprises:

[0050] i. Maintaining an estimate of Insulin On Board representing the residual effect of recently administered insulin;

[0051] ii. At step c., incorporating the estimate of Insulin On Board, the current glucose level and the current glucose rate of change as constraint, to avoid excessive insulin stacking; and

[0052] iii. Updating the estimate of Insulin On Board after each step d.

[0053] An IOB estimator provides a semi-continuous estimate of the amount of active insulin remaining in the body from previous insulin injections. In the computation, it compensates for the diffusion lag between plasma glucose concentration and glucose concentration in interstitial tissues, and takes into account the current glucose value and rate of change (trend) to estimate the insulin action exponential decay curve. Finally, a penalty factor tracks the changes in insulin sensitivity related to the circadian rhythm.

[0054] By maintaining an estimate of IOB, the method can accurately account for the residual effects of previously administered insulin, which is important for preventing insulin stacking — a condition where overlapping insulin doses lead to excessive insulinlevels in the body. This approach ensures that the method can make more informed decisions about future insulin dosage signals, reducing the risk of hypoglycemia caused by an insulin dosage signal that would lead to an excessive insulin administration.

[0055] Incorporating the IOB estimate, along with the current glucose level and rate of change, as constraints in the dosage signal determination process allows the method to dynamically adjust insulin delivery in response to real-time physiological data. This integration enhances the precision of insulin dosing by considering the ongoing metabolic state of the user, leading to more stable blood glucose control.

[0056] Updating the IOB estimate after each insulin administration ensures that the method continuously adapts to the user's current insulin needs, maintaining an accurate representation of insulin activity over time. This real-time adaptability is important for managing the dynamic nature of glucose metabolism, particularly in response to factors such as meals, physical activity, and stress.

[0057] Finally, by incorporating the estimate of Insulin On Board, the current glucose level and the current glucose rate of change, it is possible to discourage sudden or large changes in insulin dosage signal by introducing and continuously adapting a penalty on rate of change of optimal insulin dosage signal in the determination process at step c.

[0058] In a third aspect, the invention relates to a control unit communicatively coupled to an insulin delivery system and a continuous glucose monitoring device and comprising means adapted to execute the steps of the method of the second aspect of the present invention.

[0059] This also allows the integration of real-time glucose monitoring with advanced glycemic state prediction enabling a dynamic and responsive insulin delivery system. With a control unit communicatively coupled to an insulin delivery system, such as an insulin pump, and a continuous glucose monitoring device and comprising means adapted to execute the steps of the method of the second aspect of the present invention, it is possible to continuously acquire glucose levels and predict futureglycemic states. The control unit can thus adjust for user-specific insulin dosage signal in real-time, ensuring that blood glucose levels remain within a predefined target range. This adaptability is important for managing the user-specific fluctuations in glucose levels that occur due to various factors such as meals, physical activity, and stress.

[0060] The use of a Model Predictive Control system enables the calculation of optimal insulin dosage signals by considering both current glucose levels and predicted trends. This approach minimizes deviations from target glucose ranges, enhancing user comfort and reducing the risk of complications associated with diabetes, such as hypoglycemia and hyperglycemia.

[0061] The integration with existing systems is another notable benefit, as it allows for seamless interaction between the control unit, the insulin pump, and the glucose monitor. This connectivity enables the system to utilize the latest data for predictions and decisions, ensuring optimal performance and accuracy over time. Additionally, the use of nonlinear models in combination with personalized EKF, as detailed above, allows to improve the precision of glycemic predictions. This reduction in prediction errors can help minimize the risks associated with hypo- and hyper-glycemic episodes, making the control unit more reliable for users with diabetes. The ability to adapt dosage signals not just according to static thresholds but also to personal health data can lead to a more customized and effective treatment plan.

[0062] In further aspects, the present invention relates to a computer program product comprising instructions to cause the control unit of the present invention to execute the steps of the method according to the second aspect of the present invention and to a computer-readable medium having stored thereon the computer program of the present invention.

[0063] Brief description of the drawings

[0064] - Figure 1 illustrates a flowchart depicting the workflow of a computer- or processor implemented method for predicting a user’s glycemic state within a predefined prediction time horizon according to a preferred embodiment of the first aspect of the present invention;- Figure 2 illustrates a flowchart outlining the method for operating a control unit comprising a Model Predictive Control (MPC) system to generate an optimal insulin dosage signal according to a preferred embodiment of the present invention;

[0065] - Figure 3 presents a schematic diagram of a control unit according to a preferred embodiment of the present invention;

[0066] - Figure 4 illustrates the Hovorka glucose-insulin regulatory model;

[0067] - Figure 5 shows sensitivity analysis of Hovorka model for one participant from an in-silico dataset over two days;

[0068] - Figure 6 shows sensitivity analysis of Hovorka model for one participant from a real dataset over two days;

[0069] - Figure 7 shows the ranking of parameters of Hovorka model using in-silico data averaged over two days; and

[0070] - Figure 8 shows the ranking of parameters of Hovorka model using real data averaged over two days.

[0071] Detailed description of preferred embodiments and presentation of experimental results

[0072] Figure 1 illustrates a flowchart depicting the workflow of a computer- or processor implemented method 100 for predicting a user’s glycemic state within a predefined prediction time horizon according to a preferred embodiment of the first aspect of the present invention.

[0073] The workflow begins at step 101 with estimating the user’s current metabolic state based on a current glucose monitoring user’s data by means of an Extended Kalman Filter. The hyperparameters of the Extended Kalman Filter have been previously inferred from user’s historical continuous glucose monitoring data andinsulin and, advantageously meal records, including meal timing and composition. The glucose monitoring user’s data is obtained continuously from a Continuous Glucose Monitoring (CGM) device.

[0074] Subsequently, at step 102, the user's glycemic state within the predefined prediction time horizon is predicted based on the estimated current metabolic state and a personalized physiological glucose prediction model. The m parameters of the glucose prediction model are determined for a specific demographic group except for a subset of n parameters, where n≥2 and n<m, identified as being most influential for user-specific model personalization. The said n parameters are inferred from user’s historical continuous glucose monitoring data and insulin and, advantageously meal records, including meal timing and composition. The glucose prediction model is advantageously the Hovorka glucose-insulin regulatory model [1],

[0075] Figure 2 illustrates a flowchart outlining the method 200 for operating a control unit 300 comprising a Model Predictive Control (MPC) system to generate an optimal insulin dosage signal according to a preferred embodiment of the present invention. At step 201 user's current glucose level is acquired via a continuous glucose monitor. At step 202, the user's glycemic state within a specified prediction time horizon is predicted by means of the method of Figure 1. At step 203, an optimal insulin dosage signal within the specified prediction time horizon is determined, to minimize glucose level deviations from a predefined target range. Finally, at step 204, the determined optimal insulin dosage signal is outputted for use in controlling an insulin delivery device. As illustrated by the dashed arrow 205, steps 201 to 204 are repeated at a predetermined frequency.

[0076] Figure 3 presents a schematic diagram of a control unit comprising a Model Predictive Control (MPC) system 300 communicatively coupled to an insulin delivery system and a continuous glucose monitoring device according to a preferred embodiment of the present invention. The control unit 300 comprises a processor 301, responsible for executing instructions stored in memory 302 to perform the steps of the described methods. The memory 302 serves as a storage unit, housing executable instructions for method execution, intermediate data results, and other relevant information. It can consist of various types of volatile and non-volatile memorytechnologies, such as random-access memory (RAM), flash memory, or hard disk drives. The unit features a user-friendly user interface 303 that facilitates interaction between users and the unit 300. The user interface comprises a display 304, typically a monitor or touchscreen device, for visualizing for instance current glucose levels and scheduled insulin deliveries. Input devices 305, such as keyboard, or touchpad, enabling users to manually enter information on manual insulin bolus or meal intakes are provided.

[0077] To facilitate data exchange between the unit 300 and a CGM and an insulin delivery device a communication module 306 is integrated. This interface enables the receipt and the transmission to these external devices.

[0078] Moreover, the control unit 300 includes a hyperglycaemia supervisor module 307, which can trigger immediate insulin injection if the glucose level measure by the CGM is above a predetermined threshold. The unit 300 comprises further an IOB estimator module 308 as well as a check point module 309 for evaluating the determined optimal insulin dosage signal against one or more safety thresholds prior to outputting it to the insulin delivery device. Finally, the unit 300 comprises a bolus module 310 for manual insulin injection.

[0079] The unit 300 can be implemented using any suitable hardware and software technologies and can function either as an independent standalone system or integrated into larger systems, depending on specific use cases and deployment requirements.

[0080] A more detailed description of the personalization process for the glucose prediction model, using the Hovorka model as an example, in particular the determination of the most influential parameter of the model for its personalisation, is provided below.

[0081] The Hovorka glucose-insulin regulatory model, a control-oriented compartmental mathematical model for glucose prediction, is illustrated in Figure 4. It consists of three sub-models: (i) the subcutaneous insulin absorption sub-model, which describes insulin transport within the subcutaneous system, (ii) the glucose-regulatorysystem sub-model, which characterizes the physiological regulation of glucose in the body [1], and (iii) the carbohydrate (CHO) absorption sub-model proposed in [6],

[0082] The model can be defined as:

[0083] ẋc(t) = f(xc(t),θH,uc(t)) (1) ŷc(t) = g(xc(t),θH) (2)

[0084] where xc(t) are the states, θHthe parameters, ŷc(t) the outputs, and uc(t) the inputs. The mathematical equations are described from (1) to (Eq. (16)), and Table 1 details the inputs, states, and parameters of the model.

[0085] Name Description Unit

[0086] Inputs ( )

[0087] u(t) Units of insulin per minutes mU / min

[0088] d(t) Grams of CHO per minute g / min

[0089] Output ( )

[0090] G(t) Glucose concentration in blood mmol / L

[0091] stream

[0092] States ( )

[0093] Q1(t) Glucose mass in the accessible mmol or mmol / kg compartment

[0094] Q2(t) Glucose mass in the non- mmol or mmol / kg accessible compartment

[0095] x1(t) Effects of insulin on glucose min-1distribution / transport

[0096] x2(t) Effect of insulin on glucose min-1

[0097] disposal

[0098] x3(t) Effect of insulin on Endogenous min-1

[0099] glucose production

[0100] S1(t) Short-acting insulin subsystem mU or mU / kg S2(t) Short-acting insulin subsystem mU or mU / kg I(t) Plasma insulin concentration mU / L

[0101] D1(t) CHO absorption compartment 1 mmol or mmol / kg

[0102]

[0103] D2(t) CHO absorption compartment 2 mmol or mmol / kg Parameters ( ) with population values

[0104] k12Transfer rate min-1EGP0Endogenous glucose production mmol kg-1min-1extrapolated to zero insulin

[0105] concentration

[0106] kaDeactivation rate min-1

[0107] SI1= kb / kaInsulin sensitivity of distribution / transport min-1per L / mU

[0108] kaDeactivation rate min-1kbInsulin sensitivity of disposal min-1per L / mU SI2= kb / ka

[0109] kaDeactivation rate min-1kbInsulin sensitivity of EGP min-1per L / mU SI3= kb / ka

[0110] τSInsulin absorption constant min

[0111] keInsulin elimination rate min-1

[0112] AG Carbohydrate availability NA

[0113] MwgGlucose molecular weight g / mol

[0114] τDCHO absorption rate min

[0115] VG Glucose distribution volume L / kg

[0116] VI Insulin distribution volume L / kg

[0117] F01Non-insulin dependent glucose flux mmol kg-1min-1

[0118]

[0119] Table 1. Inputs, outputs, states and parameters details for Hovorka glucose -insulin regulatory model

[0120] dQ1(t) / dt = UG(t) - x1(t)Q1(t) - Fc01(t) - FR(t) + k12Q2(t) + EGP0[1 - x3(t)]

[0121] (3) dQ2(t) / dt = x1(t)Q1(t) - [k12+ x2(t)]Q2(t) (4) dx1(t) / dt = -ka1x1(t) + kb1I(t)

[0122] (5) dx2(t) / dt = -ka2x2(t) + kb2I(t)

[0123] (6) dx3(t) / dt = -ka3x3(t) + kb3I(t)

[0124]

[0125] (7)dS1(t) / dt = u(t) - S1(t) / τS

[0126] dI(t) / dt = S2(t) / (τSVI) - keI(t)

[0127] dD1(t) / dt = (1000 AG) / (Mwg) d(t) - D1(t) / τD; dD2 / dt = D1(t) / τD- D2(t) / τD

[0128] Q1(t) / VG

[0129] Fc01(t) = F01, G(t) ≥ 4.5 mmol / L; F01G(t) / 4.5, G(t) < 4.5 mmol / L

[0130] FR(t) = 0.003(G(t) - 9)VG, G(t) ≥ 9 mmol / L; 0, G(t) < 9 mmol / l

[0131]

[0132] G(t) < 9 mmol / 1 (15) Where,

[0133] SIi= ka / kb∀i = 1,2,3. (16)

[0134]

[0135] Name Description Unit

[0136] Inputs ( )

[0137] u(t) Units of insulin per minutes mU / min

[0138] d(t) Grams of CHO per minute g / min

[0139] Output ( )

[0140] G(t) Glucose concentration in blood mmol / L

[0141] stream

[0142] States ( )

[0143] Q1(t) Glucose mass in the accessible mmol or mmol / kg compartment

[0144] Q2(t) Glucose mass in the non- mmol or mmol / kg accessible compartment

[0145]

[0146] x1(t) Effects of insulin on glucose min-1distribution / transport

[0147] x2(t) Effect of insulin on glucose min-1

[0148] disposal

[0149] x3(t) Effect of insulin on Endogenous min-1

[0150] glucose production

[0151] S1(t) Short-acting insulin subsystem mU or mU / kg S2(t) Short-acting insulin subsystem mU or mU / kg I(t) Plasma insulin concentration mU / L

[0152] D1(t) CHO absorption compartment 1 mmol or mmol / kg D2&) CHO absorption compartment 2 mmol or mmol / kg Parameters ( ) with population values

[0153] k12Transfer rate min-1EGP0Endogenous glucose production mmol kg-1min-1extrapolated to zero insulin

[0154] concentration

[0155] kaDeactivation rate min-1SI1= kb / kaInsulin sensitivity of distribution / transport min-1per L / mU

[0156] Ea2Deactivation rate min~A

[0157] Insulin sensitivity of disposal min~t per L / mU SI

[0158] s’2■

[0159] kaDeactivation rate min-1kbInsulin sensitivity of EGP min-1per L / mU SI3= kb / ka

[0160] τSInsulin absorption constant min

[0161] keInsulin elimination rate min-1

[0162] AG Carbohydrate availability NA

[0163] MwgGlucose molecular weight g / mol

[0164] τDCHO absorption rate min

[0165] VG Glucose distribution volume L / kg

[0166] VI Insulin distribution volume L / kg

[0167] F01Non-insulin dependent glucose flux mmol kg-1min-1

[0168]

[0169] Table 1. Inputs, outputs, states and parameters details for Hovorka glucose-insulin regulatory modelPhenomenological models stand out due to their descriptive capacity. However, while population-level parameters are documented, identifying which parameters impact the model’s output the most is essential for personalization. This personalization process improves prediction accuracy. Below a personalization methodology based on the Sobol sensitivity analysis is presented.

[0170] The Sobol method is a well-established global sensitivity analysis technique that quantifies the contribution of input variables to the variance of a model’s output. This method decomposes the total variance into fractions and attributes them to the model’s inputs (Eq. (17)). A model is considered more sensitive to those inputs whose contribution results in a higher impact on the total variance [7],

[0171] n n 핍(Y) = Vθ₁+ Vθᵢ,θⱼ+... + Vθ₁,θ₂,...,θₙ(17)

[0172]

[0173] i=l i<j Here, the impact of the model parameters (Eq. (18)) and their possible interactions (Eq. (19)) in the total variance of the output are considered. Based on this, Sobol indices are computed as presented in [8], Two Sobol indices are used: first-order Sobol indices (Sθᵢ), which measure the contribution of single parameters (θᵢ) to the variance of the model by (Eq. (20)), and total-order Sobol indices (ST_θᵢ), calculated as (Eq. (21), which account for both single parameters (0Z) and all their interactions.

[0174] ^e = Vei(Ee> N)’ (18)

[0175] Vθᵢ,θⱼ= 핍θᵢ(피θ~ᵢ[Y | θᵢ,θⱼ]) - Vθᵢ- Vθⱼ(19)

[0176] V9. ^=^)’^e [0’1]Vi e{1(20)

[0177] ST_θᵢ= Sθᵢ+ Σ Sθᵢ,θⱼ+ ... + Sθ₁,θ₂,...,θₙ= 1 - Varθ~ᵢ(피θᵢ[Y | θ~ᵢ]) / Var(Y) (21) j∈{1,...,n}, j≠i

[0178]

[0179] In practical cases, these indices are typically estimated using a Monte Carlo approach. Based on this, the specific methodology used here is detailed in [9],

[0180] Sobol indices are typically computed for models that do not account for time dependency. To adapt them for a time-dependent model, first-order (Stₛ,θᵢ) and total-order (ST_tₛ,θᵢ) Sobol indices at each time step (ts) of the prediction are computed.

[0181] Since model variance changes over time, typically increasing as the prediction horizon progresses, a direct comparison of the indices is not straightforward. To address this, each Sobol index is normalized as in (Eq. (22)) to (Eq. (24)),

[0182] S*tₛ,θᵢ= wtₛStₛ,θᵢ, S*tₛ,θᵢ∈ [0,1], ∀i ∈ {1,...,n}

[0183] STtsBi= St^’SrtsBi6[O’1]’V'6f1. (23) With wtsdefined as,

[0184] wtₛ= 핍tₛ(Y) / maxtₛ≤PH핍tₛ(Y), wtₛ∈ [0,1], (24)

[0185]

[0186] ts≤ PH

[0187] and then average as in (Eq. (25)) and (Eq. (26)) to obtain a single first (S̄θᵢ) and total (S̄T_θᵢ) order Sobol index value for the entire prediction:

[0188] PH

[0189] ’S~e‘e [o’i]’e {i.n} (25)ts=l PH

[0190] S̄T_θᵢ= (1 / PH) Σtₛ=1PHS*T_tₛ,θᵢ, S̄T_θᵢ∈ [0,1], ∀i ∈ {1,...,n}. (26)

[0191]

[0192] ts=l

[0193] Finally, parameters are ranked based on their S̄θᵢ, with higher values indicating a more significant influence on the model variance.

[0194] This approach was applied to identify the most influential parameters in the Hovorka GRM. Numerical analyses were performed using simulated (in-silico) and realdata from three adults with T1 D each. Data was collected over 10 days, including CGM measurements, insulin records, and meal intake.

[0195] In-silico data is generated from a modified version of the UVA / Padova simulator

[0010] incorporating insulin sensitivity variability and random meal in- take on participants with an open-loop insulin-infusion system. Real data comes from a randomized crossover clinical trial, where participants in free-living conditions used a closed-loop AID system. 576 data points from in-silico and real dataset were used.

[0196] Figures 5 and 6 show the results of the proposed approach on in-silico and real data, respectively. The top panel in both figures show the estimated values of S̄θᵢ. Values for S̄T_θᵢare not shown for simplicity, however their values are always slightly higher and the dynamic trend is the same as for S̄θᵢ. In both figures, the middle panel illustrates the CHO content of the meals, and the bottom panel shows insulin infusions, with vertical gray lines indicating the 2-hour time windows where predictions were made.

[0197] Even though Figures 5 and 6 provide a clear illustration of the model’s sensitivity to parameters over the studied time-lapse, it is not straightforward to obtain a global ranking of the parameters visually. To address this, Figures 7 and 8 show the average parameter impact on the model’s output, for in-silico and real datasets, considering the entire data by the S̄θᵢavgand the S̄T_θᵢavgmetrics. Note that the y-axis of top panels is unitless, as the indices are dimensionless.

[0198] These results show that S̄T_θᵢis consistently slightly higher than S̄θᵢindex across all parameters in both simulated and real data. This is expected as S̄T_θᵢshould be higher than S̄θᵢ; however, the slight difference between both indices suggests that the variance of the model is mainly caused by the individual contribution of the parameters, rather than by their interactions. The volume of insulin distribution (VI) and insulin elimination from plasma (ke) are the two key parameters with higher S̄θᵢand S̄T_θᵢindices in both datasets. Nevertheless, their importance decreases as insulin sensitivity of distribution / transport (SI1), insulin sensitivity of disposal (SI2), CHOabsorption constant (τD), insulin absorption constant (τS), and glucose distribution volume (VG) become more relevant at specific times, especially during postprandial events, indicating that parameter relevance depends on meal intake. This sensitivity analysis provides a systematic means of highlighting / raking significance of parameters for the given participant data during different metabolic conditions. Based on the underlying results, a choice can be made to determine the number of parameters to be personalized. In this case, six parameters are identified as the main parameters for model personalization. The three most influential parameters during post-absorptive periods (ke, VI, and SI2) to fit baseline glucose levels, and the three most influential in postprandial stages (τD, τS, and VG) to fit the onset and end of this phase. It is important to understand that the relevance of parameters computed by the timedependent Sobol method is highly dependent on the richness of the data. For instance, a dataset with a high number of meal events will highlight the significance of parameters related to the meal compartment more than a dataset with a lower number of meal events. Thus, given that the parameter ranking is different depending on the richness of the data, it is important to determine the subset of influential parameters to calibrate in each dataset. Selecting the optimal parameter subset to calibrate ensures proper personalization and improves accuracy in glucose predictions.

[0199] To assess the impact of their personalization, the performance of the model was analysed by using three different sets of parameters: (a) Population, where all parameters used population values as per Hovorka et al. [1]; Wilinska et al. [3]; (b) Arbitrary, where parameters used population values except for a set of parameters (θA= (τD, F01, ka3, AG, EGP0, k12)) that were arbitrarily selected for personalization, and (c) SA, where parameters used population values except for the parameters chosen through our proposed sensitivity analysis (θSA= (ke, VI, SI2, τD, τS, VG)).

[0200] Personalization was performed using data from seven days with a nonlinear least-squares solver in MATLAB, while the remaining data from three days were used for validation. 2-h glucose predictions were computed using the Hovorka GRM. Table 2 presents the median[IQR] for the Root Mean Squared Error (RMSE) (mg / dL) over the entire prediction in the validation data for three participants in both the simulated and real datasets.Calibration Strategy

[0201] Data Population Arbitrary SA

[0202] Simulated 40.2 7.7 4.6[22.9, 62.0] [3.9, 20.4] [2.1, 9.9]

[0203] Real 34.2 26.8 23.5

[0204] [18.4, 59.6] [15.5, 41.6] [14.4, 40.0] Table 2

[0205] Compared to population values, an arbitrary set of calibrated parameters reduces RMSE by 80% and 22% of RMSE for simulated and real data, respectively. However, personalizing parameters based on the proposed sensitivity analysis achieved reductions of 90% and 32% for simulated and real data respectively, demonstrating that selecting the most influential parameters significantly enhances the prediction capability of the model under consideration.

[0206] Finally, the decrease in the RMSE between the calibration of θA(arbitrary) and θSA(sensitivity analysis) parameters is similar for simulated and real data (≈ 10%). However, the overall improvement in the RMSE when comparing the personalization of θH(population) and the θSAparameters is lower for the real data. This is due to other sources of variability unrelated to the physical systems that the calibrated parameters are intended to explain

[0207] Adapting Sobol indices to a dynamic time series shows that parameters that primarily influence the output’s variability of physiological models change under varying dynamic conditions. By calibrating the parameters ranked by the timedependent Sobol index, the prediction accuracy rendered a reduction in RMSE by 90% and 32% in simulated and real data respectively. This demonstrates the advantage to apply the time-dependent Sobol index for parameter identification, improving glucose prediction accuracy in any physiological models and enhancing model-based digital therapeutics performance.

[0208] References[1] R. Hovorka et al., “Nonlinear model predictive control of glucose concentration in subjects with type 1 diabetes,” Physiol Meas, vol. 25, no. 4, pp. 905-920, Aug. 2004, doi: 10.1088 / 0967-3334 / 25 / 4 / 010.

[0209] [2] Patek SD, Lv D, Ortiz EA, et al. Empirical representation of blood glucose variability in a compartmental model. In: Kirchsteiger H, Jorgenson JB, Renard E, del Re L, eds. Prediction Methods for Blood Glucose Concentration. Cham: Springer; 2016:133-157.

[0210] [3] Corbett, J. P., Colmegna, P., Garcia-Tirado, J. and Breton, M. D., 2020.

[0211] Anticipating meals with behavioral Profiles in an artificial pancreas system-An informed multistage model predictive control approach. IFAC-PapersOnLine, 53(2), pp.16305-16310.

[0212] [4] N. Magdelaine, L. Chaillous, and C. H. Moog, “A long-term model of the glucose-insulin dynamics of type 1 diabetes,” IEEE Transactions on Biomedical Engineering, vol. 62, no. 6, pp. 1546-52, 2015.

[0213] [5] A. Zhakatayev, B. Rakhim, O. Adiyatov, A. Baimyshev, and H. A. Varol, “Successive linearization-based model predictive control of variable stiffness actuated robots”. In 2017 IEEE international conference on advanced intelligent mechatronics (AIM), pp. 1774-1779, July 2017.

[0214] [6] M. E. Wilinska, L. J. Chassin, C. L. Acerini, J. M. Allen, D. B. Dunger, and R. Hovorka, “Simulation Environment to Evaluate Closed-Loop Insulin Delivery Systems in Type 1 Diabetes,” 2010. [Online], Available: www.journalofdst.org

[0215] [7] T. Homma and A. Saltelli, “Importance measures in global sensitivity analysis of nonlinear models,” Reliab Eng Syst Saf, vol. 52, no. 1, pp. 1-17, Apr. 1996, doi:

[0216] 10.1016 / 0951-8320(96)00002-6.

[0217] [8] J. Norton, “An introduction to sensitivity assessment of simulation models,” Environmental Modelling & Software, vol. 69, pp. 166-174, Jul. 2015, doi:

[0218] 10.1016 / j.envsoft.2015.03.020.[9] I. M. Sobol’ and E. E. Myshetskaya, “Monte Carlo estimators for small sensitivity indices,” Monte Carlo Methods Appl, vol. 13, no. 5-6, Jan. 2008, doi:

[0219] 10.1515 / mcma.2007.023

[0220]

[0010] Dalla-Man, C., Micheletto, F., Lv, D., Breton, M., Ko- vatchev, B., and Cobelli, C. (2014). The uva / padova type 1 diabetes simulator: new features. Journal of diabetes science and technology, 8(1), 26-34

Claims

Claims1. Computer- or processor-implemented method (100) for predicting a user’s glycemic state within a predefined prediction time horizon, the method comprising the following steps:a. Estimating the user’s current metabolic state based on a current glucose monitoring user’s data by means of an Extended Kalman Filter, wherein the hyperparameters of the Extended Kalman Filter have been previously inferred from user’s historical continuous glucose monitoring data and insulin and, advantageously meal records, including meal timing and composition (101);b. Predicting the user's glycemic state within the predefined prediction time horizon based on the estimated current metabolic state and a personalized physiological glucose prediction model, wherein the m parameters of the glucose prediction model are determined for a specific demographic group except for a subset of n parameters, where n≥2 and n<m, identified as being most influential for userspecific model personalization, and wherein the said n parameters are inferred from user’s historical continuous glucose monitoring data and insulin and, advantageously meal records, including meal timing and composition (102).

2. Method (100) according to claim 1, wherein the most influential n parameters in the physiological glucose prediction model are identified considering specific glucose-related states, such as postprandial and post-absorptive states, and events, such as used-induced correction boluses, using a time-dependent Sobol analysis.

3. Method (100) according to any one of the claims 1 or 2, wherein the hyperparameters of the Extended Kalman Filter are periodically adapted based on user’s historical continuous glucose monitoring, meal and insulin records.

4. Method (100) according to any one of the claims 1 to 3, wherein the n most influential parameters of the physiological glucose prediction model arecontinuously adapted based on user’s continuous glucose monitoring, meal and insulin records.

5. Method (100) according to any one of the preceding claims, wherein the physiological glucose prediction model is the Hovorka glucose-insulin regulatory model, the Subcutaneous Oral Glucose Minimal Model (SOGMM), the double triangular Subcutaneous Oral Glucose Minimal Model (dSOGMM) or the Madgelaine’s Model.

6. Method (100) according to any one of the preceding claims, wherein the hyperparameters of the Extended Kalman Filter inferred from user’s historical continuous glucose monitoring data and insulin and meal records including meal timing and composition are the process noise covariance matrix, the measurement noise covariance matrix, and / or the initial state covariance matrix.

7. Method (100) according to any one of the preceding claims, wherein the physiological glucose prediction model is a nonlinear model and wherein for each prediction of the user’s glycemic state at step b., the model is linearized around the estimated current metabolic state.

8. Method (100) according to any one of the preceding claims, wherein the hyperparameters of the Extended Kalman Filter are inferred from user’s historical continuous glucose monitoring data and insulin and meal records, including meal timing and composition.

9. Method (100) according to any one of the preceding claims, wherein the said n most influential parameters for user-specific model personalization are inferred from user’s historical continuous glucose monitoring data and insulin and meal records, including meal timing and composition.

10. A method (200) for operating a control unit (300) comprising a Model Predictive Control (MPC) system to generate an optimal insulin dosage signal, wherein the method comprises the following steps:a. Acquiring a user's current glucose level, preferably via a continuous glucose monitor (201);b. Predicting the user's glycemic state within a specified prediction time horizon by means of the method of any one of the claims 1 to 9 (202);c. Determining an optimal insulin dosage signal within the specified prediction time horizon, to minimize glucose level deviations from a predefined target range (203);d. Outputting the optimal insulin dosage signal for use in controlling an insulin delivery device (204);wherein steps a. to d. are repeated at a predetermined frequency (205).

11. Method (200) according to claim 10, wherein the prediction of the user's glycemic state at step b. incorporates user-provided meal announcements data.

12. Method (200) according to any one of the claims 9 or 11, wherein the optimal insulin dosage signal determined at step c. is computed taking into account eventual user’s manual insulin injection(s) and / or insulin injection(s) triggered by a hyperglycemia supervisor module (307) of the control unit (300).

13. Method (200) according to any one of the claims 9 to 12, comprising a step of evaluating the determined optimal insulin dosage signal against one or more safety thresholds prior to step d.

14. Method according to any one of the claims 9 to 13, further comprising: i. Maintaining an estimate of Insulin On Board representing the residual effect of recently administered insulin;ii. At step c., incorporating the estimate of Insulin On Board, the current glucose level and the current glucose rate of change as constraint, to avoid excessive insulin stacking; andiii. Updating the estimate of Insulin On Board after each step d.

15. A control unit (300) communicatively coupled to an insulin delivery system and a continuous glucose monitoring device and comprising means adapted to execute the steps of the method of any one of the claims 10 to 14.

16. A computer program product comprising instructions to cause the control unit of claim 15 to execute the steps of the method of any one of the claims 10 to 14.

17. A computer-readable medium having stored thereon the computer program of claim 16.