A system to compensate for an unexpected meal ingested
The system addresses the challenge of delayed insulin response to unplanned meals by using a detection, estimation, and compensation module to calculate and administer insulin promptly, enhancing blood glucose management in type 1 diabetes.
Patent Information
- Application Number
- FR2022009159
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-09-13
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2042-09-13
AI Technical Summary
Current blood glucose management systems for type 1 diabetes, such as artificial pancreas systems, struggle to promptly compensate for unplanned meals due to delayed insulin action and reliance on user notifications, leading to increased HbAlc levels and long-term complications.
A system that includes a detection module to identify unplanned meals, an estimation module to determine the meal size, and a compensation module to calculate and administer insulin based on the estimated meal size, repeating these steps at a predetermined frequency to provide immediate compensation.
Enables immediate insulin administration to counteract the effects of unplanned meals, reducing the risk of hyperglycemia and HbAlc increases by estimating and compensating for meals without delay, thereby improving blood glucose management.
Smart Images

Figure 00000028_0000 
Figure 00000029_0000
Abstract
Description
Title of the invention: System for compensating for an unexpected meal ingested
[0001] DOMAIN OF INVENTION
[0002] The invention relates to the field of closed-loop or open-loop systems for managing a user's blood glucose levels. In particular, the invention relates to the field of estimating the amount of food consumed by a user.
[0003] TECHNOLOGICAL CONTEXT
[0004] Closed-loop systems for managing or controlling blood glucose in people with type 1 diabetes (TID), i.e., artificial pancreas (AP) systems, always rely on prior actions, such as meal notifications, to achieve effective control or management. Open-loop systems for managing or controlling blood glucose in people with type 1 diabetes (TID), for example, smart pens combined with a continuous glucose monitoring system, also always rely on prior actions, such as meal notifications, to achieve effective control or management.
[0005] Numerous studies have indicated that a large number of meal boluses are missed, particularly in adolescents during insulin pump therapy. For example, many studies have reported a link between glycated hemoglobin (HbAlc) levels and missed meal boluses, reporting an average increase of 4 mmol / mol (0.3%) in HbAlc over a 2-week period due to missed meal boluses.
[0006] Increases in HbAlc increase the risk of long-term complications, such as retinopathies, nephropathies, neuropathies, heart disease and strokes.
[0007] In healthy subjects, hypoglycemia and hyperglycemia are countered by a physiological control system including pancreatic hormones such as insulin, glucagon, and amylin. In the case of DTI, this control system malfunctions, which is particularly noticeable after a meal, with a significant postprandial increase in blood glucose. Meals are difficult for blood glucose management systems to compensate for due to the delayed onset of current rapid-acting insulin formulations and the 5- to 15-minute gap in the interstitial space present in CGS measurements. For this reason, these systems still require prior actions by the user, such as meal notifications. However, as mentioned previously, unplanned meals can occur and to have significant negative consequences.
[0008] Some systems have therefore been created to detect the occurrence of an unplanned meal. Some systems are based on optimal filtering or state observation. Others are based on the detection of anomalies in the flow of blood glucose values combined with machine learning techniques. Fuzzy systems or moving horizon estimation systems have also been proposed.
[0009] However, detection represents only one step towards obtaining a fully autonomous blood glucose management system. Indeed, an estimation of the detected unplanned meal is necessary to ensure reliable blood glucose management. Current meal detection systems and methods do not estimate the size of the detected meal, or do so with an additional delay. The delay for an estimate is approximately 20 minutes.
[0010] This delay is due to the fact that the detection is based on the integration of the rise in blood glucose and on the estimation of going below the curve.
[0011] For some systems and methods, compensation is achieved through a proportional and derivative action regulator, which implies further delays.
[0012] Other current meal replacement methods use bolus calculation systems based on an estimate of the glucose onset rate, which corresponds to the effect of ingested carbohydrates on the rise in blood glucose. In summary, compensation only begins once the unplanned meal has already produced certain effects.
[0013] Other methods also use the estimated rate of glucose onset and schedule a threshold triggering a meal bolus, followed by a compensatory bolus if the level remains above the threshold after 30 minutes. Here again, the compensatory bolus only starts once the unplanned meal has already produced some effects.
[0014] Therefore, a better method, especially a faster method, for compensating for unplanned meals must be implemented. Summary of the invention
[0015] Thus, the invention relates to a system for estimating the amount of insulin needed to compensate for an unexpected meal ingested by a user, this system comprising
[0016] - a detection module,
[0017] this detection module being adapted to apply a step of detecting an unexpected meal from the outset;
[0018] - an estimation module,
[0019] this estimation module being adapted to apply a size estimation step of the unexpected meal;
[0020] - a compensation module,
[0021] This compensation module being adapted to apply a step of calculating the quantity of insulin based at a minimum on the estimated size of the unexpected meal,
[0022] the estimation module and the compensation module being adapted to repeat the estimation step and the calculation step a determined number of times with a determined frequency.
[0023] The unplanned meal may be an unplanned meal with no notification of the amount of carbohydrates ingested.
[0024] The system allows, once an unexpected meal is detected, for immediate compensation (in whole or in part) without waiting for the detection of the end of the unexpected meal. To this end, the method repeats the estimation and calculation steps a predetermined number of times at a predetermined frequency.
[0025] Repeating these steps allows for smooth blood glucose management by administering insulin if necessary based on the estimation of the unplanned meal ingested during the unplanned meal and not after determining the end of the unplanned meal.
[0026] In one embodiment, the estimation module and the compensation module are adapted to repeat the estimation step and the calculation step consecutively.
[0027] In one embodiment, the system also includes a condition module, this condition module is adapted to check if at least one condition is met, the calculation step being launched by the compensation module if the condition is met.
[0028] In one embodiment, one of the minimum conditions is: an IOB(t) variable, representing the variation over time of the amount of active insulin in the user, is less than a predetermined value and / or a total amount of insulin calculated during a predetermined past period is less than a predetermined value.
[0029] The condition module acts as an output supervisor for compensation, since this module supervises the compensation module. This condition prevents the calculation and subsequent recommendation of an insulin dose to the user if the user already has enough insulin to compensate for the unexpected meal.
[0030] In one embodiment, the system also includes an estimation safety module, this estimation safety module being adapted to determine whether the estimated size of the unplanned meal exceeds a meal estimation threshold value and to set the estimated size to a value equal to the meal estimation threshold value if the estimated size of the unplanned meal exceeds the meal estimation threshold value.
[0031] The meal estimation threshold can be calculated based on a threshold parameter determined for a given time.
[0032] The safety module of the estimation plays a role of input supervisor for the compensation since it monitors the value of the estimated size of the unplanned meal which will be used by the compensation module to estimate the amount of insulin.
[0033] In one embodiment, the number of times determined is between 2 and 10, preferably between 3 and 5, and ideally equal to 4.
[0034] In one embodiment, the determined frequency is between 1 and 15 minutes, preferably between 1 and 10 minutes, and ideally equal to 5 minutes.
[0035] In one embodiment, the quantity of insulin calculated at each calculation step includes a residual component, the residual component being calculated by the compensation module based on a residual portion, using:
[0036] - at least a previous estimated size of a previous unforeseen meal; and
[0037] - a predetermined ingestion profile linked to and personalized according to the user.
[0038] The residual component is based on a diffusion curve or a predetermined intake profile. It aims to compensate for previous unplanned meals that would not have been fully compensated.
[0039] In one embodiment, the calculated quantity of insulin includes a meal component,
[0040] the meal component being calculated by the compensation module based on a predetermined meal ratio and the estimated size of the unforeseen meal.
[0041] The meal ratio [lU / gCHO] corresponds to the amount of insulin needed to compensate for a meal of 1 gCHO.
[0042] It may differ depending on the categorization of the type of meal of the unplanned meal based on the previous notified meal. For example, it may be based on the time when the detection of the unplanned meal occurred.
[0043] This component aims to compensate for the estimated size of the unexpected meal detected.
[0044] In one embodiment, the calculated insulin quantity includes a net IOB component, the net IOB component being calculated by the compensation module based on the user's net active insulin.
[0045] The net IOB component is a zero or negative component of the insulin quantity calculated by the compensation module. This component allows the compensation module to reduce the estimated insulin quantity if the user's net active insulin (IOB) is greater than a predetermined limit.
[0046] In one embodiment, the value of the net IOB component is equal to zero if the net active insulin is negative or zero.
[0047] In another aspect, the invention relates to a method for calculating the amount of insulin needed to compensate for an unexpected meal ingested by a user applied by a system according to the invention,
[0048] the method comprising:
[0049] - the detection module, which detects an unexpected meal from the outset;
[0050] - the estimation module, which performs the estimation step;
[0051] - the compensation module, which performs the calculation step
[0052] the estimation step and the calculation step being repeated a determined number of times with a determined frequency.
[0053] In another aspect, the invention relates to a computer program for estimating the amount of insulin needed to compensate for an unforeseen meal ingested by a user which is adapted, when run on a processor, to ask the processor to apply the method of the invention.
[0054] The computer program is adapted, when executed on a processor, to request the processor to apply each step of the method of the invention.
[0055] BRIEF DESCRIPTION OF THE SCHEMATICS
[0056] Embodiments of the invention are described below, in relation to the following diagrams:
[0057] [Fig.1] and [Fig.2] illustrate a possible algorithmic organization (and some variations) of the estimation method.
[0058] [Fig.1] corresponds to the first part of the algorithmic organization and [Fig.2] corresponds to the second part.
[0059] [Fig.3] and [Fig.4] illustrate a possible embodiment of an artificial pancreas 1 applying an estimation method.
[0060] [Fig.5] illustrates a possible embodiment of an artificial pancreas 1 comprising the modules required to estimate the amount of insulin needed to compensate for an unforeseen meal ingested by a user.
[0061] In the diagrams, the same reference symbols indicate identical or similar objects.
[0062] DEFINITIONS
[0063] Insulin unit
[0064] In this detailed description and in accordance with the WHO Expert Committee on Biological Standardization, one international insulin unit (1 U) is defined as the "biological equivalent" of 34.7 micrograms (pg) of pure crystalline insulin. This unit is the relevant unit for discussing the amount of insulin to be injected into a user, and it cannot be converted into the International System of Units (SI) because the conversion would depend on the type of insulin used. To facilitate the presentation of the present invention, it is important that the quantities of insulin be expressed in a system relevant to the invention, the readers, and the scientific community.
[0065] Closed-loop or open-loop system
[0066] A closed-loop control system is a set of mechanical or electronic devices that automatically regulate a process variable to a desired state or setpoint without human intervention. Closed-loop control systems differ from open-loop control systems, which require manual intervention.
[0067] Insulin Sensitivity Factor (ISF)
[0068] An insulin sensitivity factor (ISF) or correction factor describes how much one unit of rapid-acting or regular insulin lowers blood glucose levels. For example:
[0069] An FSI of 1 means: 1 unit of insulin lowers blood glucose by 1 mmol / L
[0070] An FSI of 2 means: 1 unit of insulin lowers blood glucose by 2 mmol / L
[0071] An FSI of 3 means: 1 unit of insulin lowers blood glucose by 3 mmol / L
[0072] Insulin / carbohydrate ratio
[0073] The insulin / carbohydrate ratio corresponds to the number of grams of carbohydrates covered by 1 unit of rapid-acting insulin. DETAILED DESCRIPTION
[0074] General presentation
[0075] An artificial pancreas 1 is a system that automatically regulates the insulin supply of a diabetic user based on their history of blood glucose, meals and insulin.
[0076] An artificial pancreas 1 is often a model-based artificial pancreas with different modules. These modules can be computerized. From a very general point of view, four modules can be distinguished within the artificial pancreas 1:
[0077] - a data acquisition system 2,
[0078] - a data processing system 3 comprising or in communication with a a blood glucose prediction module 31 and an insulin dose calculation module (and potentially also a glucagon dose calculation module) 32. These two modules can be combined in a data processing system 3 or simply communicate with each other,
[0079] - an active system 4 adapted to deliver a dose of insulin or glucagon
[0080] - a controller system 5.
[0081] The data processing system 3 includes a clock adapted to determine the time and duration of periods.
[0082] The data acquisition system 2 is responsible for managing the various sensors worn by the user or in communication with the artificial pancreas 1. It can manage a continuous glucose monitoring (CGM) system or communicate with it. The objective of the data processing system 3 is to process the different data collected by the data acquisition system 2 and to transmit a dose of insulin (or a dose of glucagon) to the active system 4.
[0083] The objective of the blood glucose prediction module 31 is to predict future blood glucose based on current blood glucose as well as on physiological variables or parameters capable of influencing the evolution of blood glucose.
[0084] The blood glucose prediction module 31 is adapted to make a prediction concerning a time value. This prediction is a prediction data value. Here, the time value is the blood glucose level.
[0085] To determine the predicted data value, the blood glucose prediction module 31 can be adapted to use a predictive model. The blood glucose prediction module 31 can be based on a physiological predictive model or on a deep learning or machine learning predictive model.
[0086] For example, the variables of the blood glucose prediction module 31 may be a current value of active insulin in the user's body, ingested carbohydrates (CHO), or meal history, and the physiological parameters used by the blood glucose prediction module 31 may be the insulin sensitivity factor (ISF) or the carbohydrate / insulin ratio. The blood glucose prediction module 31 is responsible for predicting a hypoglycemic or hyperglycemic state in the user.
[0087] This predictive model is adapted to determine or calculate a prediction P, that is, a predicted value P. This prediction is the result of the model from an algorithmic point of view. It can be called the predictive result of the model. This prediction concerns a physical characteristic of a temporal system, which varies over time, that is, a temporal parameter (or characteristic) representative of the temporal system. Here, the temporal variable or parameter is blood glucose.
[0088] Furthermore, this prediction relates to a predetermined future time.
[0089] By convention, starting from an initial instant To, a prediction P with a prior duration At is a temporal prediction Px made at the initial instant To for a future instant Tt = To + At, where At corresponds to a duration.
[0090] Here, the blood glucose prediction module 31 calculates or provides a blood glucose prediction PGly with a predetermined constant prior interval, for example, one, two, five, or ten minutes. The PGly prediction can apply to any upcoming duration AX. For example, it can correspond to the next five, ten, fifteen, or thirty minutes. It is also possible for several predictions to be made at the same initial time.
[0091] The objective of the insulin (and potentially also glucagon) dose calculation module 32 is to determine whether a dose of insulin (or glucagon) is necessary based on the current blood glucose level and the predicted blood glucose level calculated by the module of blood glucose prediction 31 to maintain or achieve a target blood glucose value or target blood glucose range and, if so, to calculate the appropriate dose of insulin (or glucagon) to maintain or achieve the target blood glucose value or target blood glucose range.
[0092] The active system 4 is responsible for administering insulin (or glucagon) based on the insulin (or glucagon) dose calculated by the insulin dose calculation module 32. The active system 4 includes an infusion system. For example, the insulin dose calculation module 32 can be located away from the active system 4 and adapted to communicate with it by any suitable means, whether wireless (radio frequency, such as Bluetooth) or wired.
[0093] The controller system 5 is responsible for the coordination and control of the different modules of the artificial pancreas 1.
[0094] In particular, the present invention relates to meal history and especially to unplanned meals ingested.
[0095] As described above, meal history is taken into account by the blood glucose prediction module 31. A recently ingested meal can also be considered, but, as previously mentioned, user input is then required. If the user does not indicate that a meal has been ingested and the amount of carbohydrates (CHO) ingested, the prediction made by the blood glucose prediction module 31 will likely be incorrect.
[0096] The failure to detect and estimate an unplanned meal results in a rise in blood glucose, which is only taken into account when detected by the CGS system. Subsequently, the insulin dose calculation module 32 calculates an insulin dose based on the rise in blood glucose due to the unplanned meal.
[0097] This process may be too slow to prevent a hyperglycemic state in the user.
[0098] It is therefore desirable to improve the performance of the artificial pancreas 1 and, more specifically, to improve the accuracy and responsiveness of the prediction model in order to better estimate insulin requirements and reduce the risk of hyperglycemia.
[0099] Solution - estimation of the unforeseen meal and compensation for that meal
[0100] Estimation method
[0101] Components of the general system applying the estimation method
[0102] The components required by the general system, i.e. the artificial pancreas 1, applying the estimation method are those which have been described previously in the general presentation:
[0103] - a data acquisition system 2;
[0104] - a data processing system 3 adapted for use with the types of detailed modules further on;
[0105] - a controller system 5.
[0106] Modules for the estimation method
[0107] Different modules can be used by the data processing system 3 of the general system, i.e. the artificial pancreas 1:
[0108] - a blood glucose acquisition module 21 adapted to receive a signal from Blood glucose (Gly) readings are sent by a blood glucose acquisition system and recorded in a 301 storage module.
[0109] - a 302 forecasting module adapted to determine a variation in blood glucose expected at a given moment by determining an expected blood glucose level and comparing it with the current blood glucose level,
[0110] - an estimation module (CHO module) 11, a correction module (module CHOcorr) 12, an aggressiveness module (CHOagr module) 14, an estimation security module (CHO sécu) 13, all these modules being adapted to perform mathematical operations with the values given by the signals sent by the other modules of the artificial pancreas 1 or with the values of different parameters recorded in the memory of the data processing system 3. In particular, the previous modules are adapted to perform additions, subtractions, divisions and multiplications.
[0111] These modules are computerized.
[0112] The blood glucose acquisition module 21 is adapted to receive a blood glucose signal (Gly) sent by a blood glucose acquisition system at a predetermined interval. For example, this interval may be one, two, five minutes, or any duration between one and ten minutes.
[0113] Estimation method - general proposal
[0114] It is assumed that a meal has already been detected.
[0115] The purpose of the method is to estimate the size of a meal that is either unplanned or planned without notification of the carbohydrate quantity. The suggested method is to convert a blood glucose deviation into a meal, or a carbohydrate estimate (CHO).
[0116] Preferably, the conversion takes place immediately after the detection of the discrepancy, for an instantaneous estimation.
[0117] The data processing system 3 also has in its memory a set of variables concerning the user or different temporal data fields: an FSI parameter which can be re-evaluated regularly, the history of insulin administered to the user, the user's active insulin determined by the history of insulin administered.
[0118] These variables may vary over time depending on updates to the set of parameters. However, at the time the method is applied, these variables are fixed and determined.
[0119] The proposal of the invention is, at a given point in the blood glucose time series, to compare the latest blood glucose measurements with previous blood glucose measurements and to detect a discrepancy between the latest blood glucose measurements and the expected blood glucose measurements. Then, the proposal is to use this discrepancy to estimate the size of the unplanned meal that caused the discrepancy.
[0120] It is assumed that the storage device has recorded a time series of blood glucose measurements sent over time by the blood glucose data acquisition module 21.
[0121] Based on these blood glucose measurements, potentially a notified ingested meal, and all the different parameters concerning the user, the prediction module 302 determines an expected variation in the user's blood glucose.
[0122] This expected variation in blood glucose can be determined using different approaches.
[0123] For example, the forecasting module 302 determines the expected variation in blood glucose at a given time based at a minimum on:
[0124] - the user's insulin sensitivity factor, and
[0125] - instantaneous consumption of insulin by the user.
[0126] In another example, the change in blood glucose can be determined by calculating an expected blood glucose level at a future time and the expected difference between the expected blood glucose level and the first subsequent blood glucose measurement. Then, this difference can be compared to the difference between the current blood glucose level and the first subsequent blood glucose measurement (i.e., two consecutive blood glucose measurements).
[0127] This expected blood glucose level can be determined for any time in the future. For example, the expected blood glucose level can be determined for a future time 5, 10, 15, 20, 25, 30 minutes later, or 5 to 30 minutes later. The future time is the given time at which the method is applied.
[0128] Based on this expected blood glucose at a future time, i.e. the given time, the forecasting module 302 compares the expected blood glucose to the current blood glucose at the future time, i.e. the given time, and determines the expected variation.
[0129] By extension, the expected variation can be determined for a future time located 5, 10, 15, 20, 25, 30 minutes later, 5 to 30 minutes later.
[0130] Based on this expected variation, the proposal is to detect a difference between the current blood glucose variation and the expected blood glucose variation at the given time.
[0131] Thanks to this feature, the method makes it possible to estimate the unplanned meal as soon as it is detected.
[0132] This deviation can be determined by a dedicated deviation module, the forecast module 302 or the estimation module 11.
[0133] In other words, the gap is a difference in variation between:
[0134] - a variation in blood glucose measured between a blood glucose value at time given and a blood glucose value at a point in the time series preceding the given moment, and
[0135] - the expected variation in blood glucose at the given time.
[0136] Then, based on this variation, at least one blood glucose value recorded for the time preceding the given moment and at least one user parameter linked to and customized according to the user, the estimation module 11 estimates the size of the unforeseen meal ingested.
[0137] Preferably, the user-related parameter linked to and customized according to the user is based on the user's weight as will be described more precisely in a detailed embodiment.
[0138] Based on this prediction, the blood glucose management system determines the amount of insulin to administer to the user. An overestimation can thus lead to an excessive amount of insulin, which could cause a hypoglycemic state in the user. To avoid such a dangerous state for the user, the method proposes using a safety module for the estimation 13.
[0139] The safety module of estimation 13 aims to prevent an overestimation of the size of the unplanned meal. To this end, the safety module of estimation 13 monitors two thresholds:
[0140] - a variation threshold linked to the difference in variation,
[0141] - a meal estimation threshold linked to the estimated size of the unforeseen meal.
[0142] The safety module of estimation 13 monitors the determined difference in variation and the estimated size, and sets the determined values of the difference in variation and the estimated size value at the threshold values.
[0143] These threshold values can be predetermined for the user.
[0144] Thus, the security module of estimate 13 determines:
[0145] - if the difference in variation determined by the estimation module 11 exceeds one threshold of variation and it defines the difference in variation at the level of this threshold in this case and / or
[0146] - if the size of the unplanned meal ingested estimated by estimation module 11 exceeds a meal estimation threshold and it defines the size at the level of this threshold in this case.
[0147] The meal estimation threshold can be calculated based on a threshold parameter determined for a given time.
[0148] In addition to these security measures, the method can also use a correction module 12 and an aggressiveness module 14 to personalize the estimation according to the user.
[0149] The correction module 12 is configured to correct the estimated size of the unplanned ingested meal estimated by the estimation module 11 by applying at least one co efficient correction, the minimum correction coefficient being predetermined according to a user profile based at a minimum on the user's age, weight, sex and / or insulin requirements.
[0150] This correction module 12 allows the estimation to be customized according to the user thanks to the minimum correction coefficient.
[0151] In a preferred embodiment, two correction coefficients are used by the correction module 12 to correct the estimated size with a linear correction.
[0152] The aggressiveness module 14 is configured to calculate a personalized aggressiveness estimate of the meal size by applying an aggressiveness factor to the size of the unforeseen ingested meal estimated by the estimation module 11.
[0153] The aggressiveness factor can also be customized according to and by the user.
[0154] These two customization steps applied by the correction module 12 and the aggressiveness module 14 can be combined in all possible ways: first the correction measure then the aggressiveness measure, or vice versa.
[0155] Detailed embodiment
[0156] In this embodiment, the estimation module 11 uses a blood glucose impact module to determine the user's expected blood glucose variation.
[0157] The blood glucose impact module calculates the impact of blood glucose. The impact of blood glucose corresponds to the expected blood glucose level at a given time. It can be considered as the instantaneous expected change in blood glucose.
[0158] For example, the blood glucose impact (BGI) is calculated using the following formula:
[0159] BGiu) = insulin activity(t) x FSKt) x Ar
[0160] where:
[0161] insulin_activity(t) is determined by the active insulin at time t,
[0162] FSI(t) is the user's insulin sensitivity factor [mg / dL / U] at time t, and
[0163] At is the interval between the given instants.
[0164] Insulin activity can be defined as the instantaneous disappearance or consumption of insulin.
[0165] If insulin activity is measured as negative, its value is equal to zero.
[0166] A model describes the gradual disappearance of insulin after a bolus injection, This is generally bell-shaped (slow disappearance shortly after injection, then peak insulin absorption, followed by slow consumption long after injection). The variable IOB(t) is the total amount of insulin available, and insulin activity is the negative of its derivative, the instantaneous disappearance of insulin. This insulin activity is derived from the model and is based on the timing and amount of insulin injected. When insulin is injected, the variable IOB(t) increases sharply, so the negative of its derivative is artificially negative for a short time. and its value is set to zero.
[0167] This zeroing for negative insulin activity also represents a safety step or measure, since insulin activity less than 0 has no physical meaning, so it is set to 0.
[0168] Therefore:
[0169] BGl(T^ - activity _insulb^ x FS 1(7^ x (tq-(Tq- A / ))
[0170] Next, the estimation module 11 of the data processing system 3 applies the following formulas at the given time:
[0171] - a difference G(T0) between a blood glucose value at T0 from the signal of blood glucose and a blood glucose value at the time preceding To in the time series Gly(To.Af):
[0172] G(Tq) = Gl^T^ - Gly(TQ - A t)
[0173] - a difference D(T0) between the blood glucose value G(T0) and the impact value of the blood glucose at T0 BGI(T0):
[0174] = _ BG^Tq]
[0175] - an estimated value of the CHO of the unplanned meal ingested by calculating the formula next: [0!76] CHO(TÇ) = D(T() x RappSucÇQ x 100
[0177] where RappSuc(t) is a predetermined sweetening ratio [g / g / L] based on the weight of the user.
[0178] The sweetening ratio depends on weight and is known from diabetes research for a portion of carbohydrates of 20 g CHO.
[0179] In this embodiment, a sugar ratio formula makes it possible to determine with precision a sugar ratio for a person weighing between 20 and 220 kg, and then to use this sugar ratio to determine the value of the CHO of the unplanned meal ingested.
[0180] The limit values for the sweetener ratio are 5 and 90 for example.
[0181] Since the ingestion of the meal has already been detected as assumed, it is likely that G(T0) is positive.
[0182] However, since the detected meal was not planned, it is also likely that G(T0) is greater than BGI(T0) and therefore that D(T0) is positive.
[0183] With a positive D(T0), the CHO(T0) of the unplanned ingested meal are estimated by the formula mentioned above.
[0184] Next, as described later, the estimated size is used to manage the impending rise in blood glucose. It can be used to control the administration of insulin and / or glucagon in order to manage the user's blood glucose.
[0185] Additional Modules
[0186] Some improvements will now be described. These improvements can be associated with and are applied by the following additional modules: the estimation security module 13 (13a; 13b), the correction module 12 and the aggressiveness module 14.
[0187] In one embodiment, the safety module of estimation 13a implements a safety measure related to hypoglycemia.
[0188] Indeed, this hypoglycemia safety measure serves to prevent an excessive response from the insulin dose calculation module 32 after the estimation of the unexpected ingested meal. The insulin dose calculated with a high estimated CHO amount can lead to hypoglycemia if the CHO estimate was inaccurate.
[0189] To implement this hypoglycemia safety measure, a first safety step compares the difference G(T0) to a predetermined safety threshold. This predetermined safety threshold can be named UMM_DEETA_G_MAX_SEOPE. Thus, the first safety step determines if
[0190] a)^) > UMM_DELTA_GMAXslope
[0191] Or
[0192] b)G(7J <UMM_DELTA_Gil,iXslm
[0193] If condition a) is verified, then the first security step parameter G(T0) on UMM_DEETA_G_MAX_SEOPE.
[0194] In other words, the difference G(T0) is limited by a higher value which avoids an excessive insulin administration response by the insulin dose calculation module 32.
[0195] The predetermined safety threshold UMM_DELTA_G_MAX_SLOPE is preferably between two and six mg / dL / min and, ideally, set at two, three, four, five or six mg / dL / min.
[0196] The safety module of estimation 13b applies a second safety step: a maximum size measurement. According to this measurement, the estimated size is capped by a maximum size CARBSMAX. Even if the deviation leads to the determination of an estimated size greater than the maximum size CARBSMAX, the second safety step sets the estimated size value to CARBSMAX.
[0197] For example, during the second safety step, the safety module of estimation 13 calculates the estimate of the safety ingested meal against the CHOsécu hypoglycemia by applying the following formula: [0Î98] CHOsecutT^ mn[CHO(T^ CARBSMAX- CHOtotaï)
[0199] where
[0200] CHOtotal is the sum of the estimated CHO, CHOcorr or CHOagr since the last meal detection, and
[0201] CARBSMAX can have two determined values UMM_M AX__ESTIM_CHO^PRANDIAL and UMM_MAX_ESTIM_CHO_OUT^PRANDIAL depending on the time of day:
[0202] -CARBSMAX = UMM MAX_ESTIM_CHO_PRANDIAL for mealtime,
[0203] -CARBSMAX = UMM _MAX_ESTIM _CHO_OUT _PRANDIAL during other periods.
[0204] For example, meal times correspond to the periods [11 a.m.; 2 p.m.] and [6 p.m.; 10 p.m.],
[0205] For example, the predetermined value of UMM_MAX_ESTIM_CHO_PRANDIAL is between 30 and 70 and
[0206] For example, the predetermined value of UMM_MAX_ESTIM_CHO_OUT_PRANDIAL is between 10 and 50.
[0207] The safety modules of estimates 13a and 13b can be combined into a single safety module of estimates 13 or constitute two separate modules. If the safety modules of estimates 13a and 13b are separate, it is possible to use only one of the two.
[0208] The correction module 12 aims to personalize the estimation according to the user.
[0209] To this end, the correction module 12 corrects the estimated size based on at least one correction factor.
[0210] For example, the correction module 12 calculates an improved CHOcorr estimate by applying a linear correction model of the meal estimate to the CHO of the ingested meal with the following formula: [02! i] CHOcorrÇT^ = UMM_A_C0RR* CHO(TQ) + UMM_B_CORR
[0212] where
[0213] The UMM_A_CORR and UMM_B_CORR coefficients are predetermined according to the user's profile based at a minimum on the user's age, weight and / or sex.
[0214] For example, for adolescents of average weight, UMM_A_CORR = 2.5 and UMM_B_CORR = 1.
[0215] UMM_B_CORR can be equal to zero. In this case, the correction module 12 uses only one correction factor.
[0216] In other words, it allows simple customization based on the user by based on a personalization of parameters according to a population classification.
[0217] In one embodiment, the estimation of CHO(T0) of the ingested meal can be parameterized or personalized according to the user (and potentially by the user) with a user-related aggressiveness factor represented by [3. This user-related aggressiveness factor must be compared to the standard aggressiveness factor [30.
[0218] For example, [3 can be customized by the user in the range [0,1 ; 2] and preferably in the range [0,3 ; 1,3].
[0219] For example, [30 is a standard aggressiveness factor whose value is in the range [0.1; 2] and is preferably equal to 0.7.
[0220] The aggressiveness module 14 calculates a personalized aggressiveness estimate CHOagr by applying an aggressiveness factor to the CHO(T0) estimated with the following formula: 102211 ^«^0) = CH^ * <
[0222] As mentioned previously, the embodiments can be combined. In other words, the aggressiveness module 14 can calculate a personalized aggressiveness estimate CHOagr by applying an aggressiveness factor to the improved estimate CHOcorr(To) with the following formula:
[0223] CHOagr^ (T,'} - CHOcorriT,] x | “L / iU„r' (yx (y:P0
[0224] These different embodiments are illustrated by the different variations in [Fig.2] in the relationships between the different modules.
[0225] As mentioned previously, the embodiments can be combined. Therefore, the safety module of estimation 13 can apply the second safety step to the improved CHOcorr estimation obtained from the estimated CHOs, to the personalized aggressiveness estimation CHOagr obtained from the estimated CHOs, and even to the personalized aggressiveness estimation CHOagr obtained from the improved CHOcorr estimation. These combinations correspond to the following formulas:
[0226] CHOsecuiT^ = min(CHOcorr(T^, CARBSMAX- CHOtotal)
[0227] CHOsecutT^ = min(CHOagr(T\ CARBSMAX- CHOtotal)
[0228] CHOsec(T^ = min(CHOagrCHO (TCARBSMAX- CHOtotal)
[0229] These different embodiments are also illustrated by the different variations in [Fig.2] in the relationships between the different modules.
[0230] Second embodiment
[0231] This embodiment differs only with regard to the way in which the The expected change in blood glucose at a given time, To, is determined.
[0232] In the preceding embodiment, the impact of blood glucose corresponds to the expected instantaneous blood glucose variation at a given time.
[0233] In this other embodiment, the expected blood glucose level is determined by the blood glucose prediction module 31.
[0234] As described previously, the blood glucose prediction module 31 can calculate a PGly AX prediction in advance with a constant interval. The reliability of this prediction can be tested over the AX duration. It is assumed that the reliability of the prediction has been evaluated for use by the data processing system 3.
[0235] In this alternative embodiment, the blood glucose prediction module 31 produces a PGly prediction every five minutes, thirty minutes in advance. Thus, at any given time To, the blood glucose prediction module 31 has already calculated a PGly(T0) prediction for time To.
[0236] This prediction PGly(T0) could have been made at any previous time as long as its reliability is evaluated.
[0237] Meanwhile, as described in the first embodiment, the blood glucose acquisition module 21 adapted to receive a blood glucose signal Gly sent by a blood glucose acquisition system receives the signal transmitted by the data acquisition system 2.
[0238] Therefore, for the same instant, the data processing system 3 has in its memory the prediction PGly made for that instant and the current blood glucose value Gly.
[0239] In the second embodiment, the difference D(T0) is calculated using the following formula:
[0240] - PGly{T^
[0241] Given this difference between the first embodiment and the second embodiment, the CHO(T0) are calculated by the estimation module 11 by applying the following formulas
[0242] CH0(T^ = D(T^ x RappSuc(T^ x 100
[0243] CHO(T^ = (G(T^ - PGI^Tq)} x RappSudJQ) x 100
[0244] Advantages of the estimation method
[0245] The estimation method resolves the drawbacks of the prior art mentioned above.
[0246] As a reminder, the concentration of blood glucose over time in a subject is considered a temporal system with a temporal inertia of approximately 30 minutes. In other words, there is a 30-minute delay between an insulin injection and the corresponding effect on blood glucose.
[0247] In particular, the method allows for an immediate estimation of the unplanned meal since the estimation starts as soon as the detection of an unplanned meal is confirmed.
[0248] This immediate estimate is possible by taking into account the difference D, which is based on the current blood glucose value Gly(T0) and past values.
[0249] Given that the time inertia is approximately 30 minutes, tolerating a delay for the algorithmic management of the unforeseen meal inevitably induces a rise in blood glucose which may have negative consequences for the user's health.
[0250] In addition, by immediately estimating the unplanned meal ingested, the method allows for an improvement in the prediction of future blood glucose and therefore a better calculation of the insulin dose needed to reach or maintain blood glucose in the target range or at the level of a target value.
[0251] In other words, the method allows for a virtuous algorithmic circle.
[0252] As detailed previously, the method allows the imminent rise to be managed from the start, here for example in 5 minutes, and therefore allows for smooth blood glucose management.
[0253] Compensation
[0254] Compensation represents the management of blood glucose by the artificial pancreas 1.
[0255] The compensation is applied by a system including an active system or a remote server, that is to say a server in communication with the user's system.
[0256] Components
[0257] The method and system of the invention can be used to improve blood glucose management in people with type 1 diabetes (T1D).
[0258] The components required by the general system, i.e. the artificial pancreas 1, to apply the compensation are those which have been described previously in the general presentation: - a data acquisition system 2; - a data processing system 3 adapted for use with the types of modules detailed later; - a controller system 5.
[0259] However, the artificial pancreas 1 requires an additional component compared to the components used for the estimation method: an active system 4, which includes a perfusion system.
[0260] It is also possible that the artificial pancreas 1 has an interface system allowing the user to view visual outputs of the data processing system 3 or to enter notifications into the data processing system 3.
[0261] For example, the data processing system 3 can be located away from the active system 4 and adapted to communicate with it by all suitable means, whether wireless (radio frequency, such as Bluetooth) or wired.
[0262] The method for estimating the size of an unexpected meal can be applied regularly by the blood glucose management system. This estimation is preferably performed every five minutes.
[0263] Next, the estimated size, whether or not it is enhanced by the additional modules detailed above, is used to manage the user's blood glucose.
[0264] Based on the estimated size of the unplanned meal, the blood glucose management system determines or estimates an insulin bolus to counteract the expected rise in blood glucose due to the unplanned meal.
[0265] System modules
[0266] Compensation can be applied by a system comprising different modules used by the data processing system 3. The system can be a terminal or a remote server in communication with a terminal.
[0267] These modules are as follows:
[0268] - a 101 detection module adapted or configured to detect an unexpected meal as soon as the departure,
[0269] - an estimation module 102 adapted or configured to estimate meal size unexpected event detected by detection module 101,
[0270] - a compensation module 103 adapted or configured to calculate the quantity of insulin to compensate for the detected and estimated unexpected meal.
[0271] The 101 detection module can detect an unplanned meal by applying any method.
[0272] In one embodiment, detection is based on a difference between the expected change in blood glucose and the actual change in blood glucose. The difference in change comparing a measured change in blood glucose between a blood glucose value at a given time and a blood glucose value at a time in the time series prior to the given time, used by the estimation module 102 involved in the estimation method, can be used by the detection module 101 involved in the compensation.
[0273] The estimation module 102 can be one of the following modules already presented: an estimation module (CHO module) 11, a correction module (CHOcorr module) 12, an aggressiveness module (CHOagr module) 14, an estimation security module (CHO sécu) 13.
[0274] As described previously, all these modules are adapted to estimate the size of the unplanned meal based on:
[0275] - a difference in variation between:
[0276] - a variation in blood glucose measured between a blood glucose value at time given and a blood glucose value at a point in the time series preceding the given moment, and
[0277] - the expected variation in blood glucose at the given time.
[0278] and
[0279] - at least one user setting linked to and customized according to the user.
[0280] The compensation module 103 is adapted or configured to calculate or estimate an amount of insulin based on the estimated size of the unforeseen meal.
[0281] Any method can be used to estimate or calculate the amount of insulin needed to lower blood glucose after it has risen due to an unexpected meal or, even better, to anticipate the rise in blood glucose due to an unexpected meal.
[0282] In particular embodiments, the system may also include a meal size safety module 23 adapted to determine whether the estimated size of the unexpected meal exceeds a meal estimation threshold value and to set the estimated size to a value equal to the meal estimation threshold value if the estimated size of the unexpected meal exceeds the meal estimation threshold value. This meal size safety module 23 may be the estimation safety module 13.
[0283] In another particular embodiment, the system further includes a condition module 15 adapted to monitor the compensation, and in particular the calculation step. The condition module 15 is adapted to check whether at least one condition is met, one of the minimum conditions being: an IOB(t) variable, representing the variation over time of the user's active insulin quantity, is less than a predetermined value and / or a total quantity of insulin calculated over a predetermined past period is less than a predetermined value.
[0284] If this minimum condition is met, then the calculation step is applied by the compensation module 103.
[0285] In a particular embodiment, the quantity of insulin calculated by the compensation module 103 may include one or more of the following components:
[0286] - a residual component based on at least one previous estimated size of a meal unforeseen previous event and a predetermined ingestion profile linked to and personalized according to the user.
[0287] - a meal component calculated based on a predetermined meal ratio and size estimated cost of the unexpected meal.
[0288] - a net IOB component calculated based on the user's net active insulin.
[0289] The meal component is calculated based on a predetermined meal ratio and the estimated size of the unexpected meal. For example, the following formula can be used:
[0290] Meal component = estimated meal size x meal ratio
[0291] The meal component is intended to compensate only for the unplanned meal.
[0292] The residual component is intended to compensate for a residual part of an unplanned meal previous which would not have been fully compensated by a previous quantity of insulin calculated by the compensation module 103.
[0293] First, the compensation module 103 must assess the extent to which the estimated last unplanned meal ingested has diffused into the user's bloodstream since the last estimate. For this purpose, a user-specific diffusion curve is used, linking a quantity (CHO) of an ingested meal to the corresponding diffusion time in the blood. According to the diffusion curve, the entirety of an ingested meal is diffused into the bloodstream after a user-specific time D.
[0294] The diffusion curve can be customized according to the user based on calibration measurements such as the user-specific duration D, but it can also be a user-type diffusion curve chosen from a number of user types or categories.
[0295] Based on the diffusion curve, the compensation module 103 can determine that a residual portion of the estimated last unplanned meal was not fully compensated by the last calculated amount of insulin. For example, the following formula can be used:
[0296] Residual meal (t) - Initial estimated meal size (t- Af) - Diffusion size (A t)
[0297] From the start of the estimation of the unexpected meal size, all residual meal quantities for the user-specific duration D are calculated based on the diffusion curve with a different 4t for each residual meal. Then, based on all the estimated residual quantities, the compensation module 103 estimates the residual component to compensate for the sum of the estimated residual quantities.
[0298] The start of the estimation of the size of the unplanned meal slides with a time interval Al.
[0299] The net IOB component calculated by the compensation module 103 reflects the previously injected insulin that is still active in the body and must be taken into account to avoid any potential insulin overdose. It is related to the baseline active insulin corresponding to the user's reference basal insulin.
[0300] A positive value for the net IOB implies active insulin above the baseline, while a negative value implies active insulin below the baseline. This value of the net IOB component is subtracted from the amount of insulin calculated by the compensation module 103 only in the case of a positive or zero value, in order to allow the compensation module 103 to reduce the calculated amount of insulin.
[0301] The net IOB component is therefore a zero or negative component of the quantity of insulin calculated by the compensation module 103.
[0302] Furthermore, in the preceding particular embodiment, the amount of insulin calculated by the compensation module 103 may also include another component defined as a blood glucose component.
[0303] The blood glucose component aims to maintain the user's blood glucose within a user target blood glucose range or at the level of a user target blood glucose value by reference to the current blood glucose measured (or received) before the detection of the unplanned meal ingested.
[0304] The compensation module assesses whether the current blood glucose level before the detection of the unplanned meal is below a predetermined hypoglycemia limit (for example, between 70 and 85 mg / dL) or above a user-predetermined target blood glucose level.
[0305] In this case, the compensation module 103 estimates the glucose component of the insulin quantity based on the current glucose level before detection of the unexpected meal, the user's predetermined target glucose level (or glucose limits) and a determined compensation ratio.
[0306] For example, the glycemic component of the amount of insulin can be estimated using the following formula:
[0307] Blood glucose component - (previous blood glucose) x compensation ratio
[0308] If the current blood glucose level before the detection of the unexpected meal is below the limit of predetermined hypoglycemia, then the previous formula induces a negative value of the glucose component, which means that the amount of insulin is reduced according to the negative value of the glucose component.
[0309] If the current blood glucose level before detection of the unplanned meal is above a user-predetermined target blood glucose level, then the preceding formula induces a positive value for the blood glucose component, meaning that the amount of insulin is increased to achieve the target blood glucose level and compensate for the unplanned meal (with the meal component).
[0310] If the current blood glucose level before detection of the unplanned meal is not within predetermined hypoglycemia limits (for example, between 70 and 85 mg / dL) and is not above a user-predetermined target blood glucose level, then the blood glucose component is equal to zero.
[0311] Compensation steps
[0312] From an algorithmic point of view, the compensation receives as input a quantity of ingested carbohydrates (CHO) and transmits as output a quantity of insulin to compensate for the ingested carbohydrates.
[0313] The method starts as soon as the unplanned meal ingested has been estimated by the estimation module 102, which can apply any embodiment of the estimation method.
[0314] As described previously, the method for estimating the size of an unplanned meal This can be applied regularly by the blood glucose management system. This estimate is preferably performed every five minutes.
[0315] Next, the compensation module 103 applies a step of calculating the quantity of insulin based at least on the estimated size of the unforeseen meal.
[0316] Any method may be used to estimate or calculate the amount of insulin.
[0317] However, the compensation can be supervised by the safety module of estimate 23 and / or the condition module 15.
[0318] The safety module of estimation 23 is adapted to determine whether the estimated size of the unplanned meal exceeds a meal estimation threshold value and to set the estimated size to a value equal to the meal estimation threshold value if the estimated size of the unplanned meal exceeds the meal estimation threshold value.
[0319] It can be considered as an input supervisor since the safety module of estimation 23 supervises the algorithmic input of compensation.
[0320] Thus, by controlling the maximum input value of the compensation module 103, the amount of insulin estimated by the compensation module 103 is also controlled. This is a first safety measure.
[0321] On the other hand, the condition module 15 can be considered as an output supervisor since it is suitable for checking whether at least one condition is met before applying compensation and, above all, the calculation step and / or before recommending to the user the estimate provided by the compensation module 103.
[0322] This condition can also be considered a safety requirement. To ensure user safety, it may be relevant to monitor the user's active insulin (OIB). The minimum condition can also be related to the total amount of insulin calculated over a predetermined past period, for example, the last hour. Therefore, the minimum condition could be: an IOB(t) variable, representing the change over time in the user's active insulin, is less than a predetermined value and / or a total amount of insulin calculated over a predetermined past period is less than a predetermined value.
[0323] If the minimum condition is not met, the calculation step is not applied or the output of the calculation step is set to zero or is null. The output can also be: "no recommendation".
[0324] Frequency
[0325] The compensation is applied by the system at the end of each predetermined period, for example, every five minutes. In this embodiment, the estimated size of the unplanned meal corresponds to a deviation in blood glucose levels over five minutes. This is generally a small deviation, which leads to a small estimated size and therefore a small insulin bolus when compared to a gap over a longer period, for example 15 minutes, as is usually the case.
[0326] For this reason, the estimation step and the calculation step are repeated by the estimation module 102 and the compensation module 103 a determined number of times, for example four times in succession, with a determined frequency, for example every five minutes.
[0327] The number of times determined may be between 2 and 10, preferably between 3 and 5, and ideally equal to 4, as described above.
[0328] The determined frequency is between 1 and 15 minutes, preferably between 1 and 10 minutes, and ideally equal to 5 minutes, as described above.
[0329] This short period allows for fine management of blood glucose from the start of an unexpected meal.
[0330] For example, an aperitif may last 20 minutes. Every five minutes, compensation is applied and an estimated size of the corresponding ingested meal is determined, then used to manage the imminent rise in blood glucose due to the five minutes of aperitif.
[0331] The system allows the imminent rise to be managed from the beginning, here the first 5 minutes, and therefore promotes smooth blood glucose management by administering insulin if necessary based on the estimate of the unforeseen meal ingested.
Claims
Demands
1. A system for estimating the amount of insulin needed to compensate for an unplanned meal ingested by a user, this system comprising: - a detection module (101), this detection module (101) being adapted to apply a step of detecting an unplanned meal from the outset; - an estimation module (102), this estimation module (102) being adapted to apply a step of estimating the size of the unplanned meal; - a compensation module (103), this compensation module (103) being adapted to apply a step of calculating the amount of insulin based at least on the estimated size of the unplanned meal, the estimation module (102) and the compensation module (103) being adapted to repeat the estimation step and the calculation step a predetermined number of times with a predetermined frequency.
2. A system for estimating the amount of insulin needed to compensate for an unplanned meal ingested by a user in accordance with the preceding claim, the system further comprising a condition module, this condition module being adapted to check if at least one condition is met, the calculation step being applied by the compensation module (103) if this minimum condition is met.
3. A system for estimating the amount of insulin needed to compensate for an unplanned meal ingested by a user in accordance with the preceding claim, wherein one of the minimum conditions is: an IOB(t) variable, representative of the variation over time of the amount of active insulin in the user, is less than a predetermined value and / or a total amount of insulin calculated during a predetermined past period is less than a predetermined value.
4. A system for estimating the amount of insulin needed to compensate for an unexpected meal ingested by a user in accordance with any one of the preceding claims, this system also comprising an estimation safety module, this estimation safety module being adapted to determine whether the If the estimated size of the unexpected meal exceeds a meal estimation threshold value, set the estimated size to a value equal to the meal estimation threshold value.
5. A system for estimating the amount of insulin needed to compensate for an unplanned meal ingested by a user in accordance with any of the preceding claims, wherein the number of times determined is between 2 and 10, preferably between 3 and 5 and ideally equal to 4.
6. A system for estimating the amount of insulin needed to compensate for an unplanned meal ingested by a user in accordance with any of the preceding claims, wherein the determined frequency is between 1 and 15 minutes, preferably between 1 and 10 minutes and ideally equal to 5 minutes.
7. A system for estimating the amount of insulin needed to compensate for an unplanned meal ingested by a user in accordance with any of the preceding claims, wherein the amount of insulin calculated at each calculation step includes a residual component, the residual component being calculated by the compensation module (103) according to a residual part based on: - at least one previous estimated size of a previous unplanned meal; and - a predetermined intake profile linked to and personalized according to the user.
8. A system for estimating the amount of insulin needed to compensate for an unplanned meal ingested by a user in accordance with any of the preceding claims, wherein the calculated amount of insulin includes a meal component, the meal component being calculated by the compensation module (103) according to a predetermined meal ratio and the estimated size of the unplanned meal.
9. A system for estimating the amount of insulin needed to compensate for an unexpected meal ingested by a user in accordance with any one of the preceding claims, wherein the calculated amount of insulin includes a net IOB component, the net IOB component being calculated by the compensation module (103) according to the user's net active insulin (IOB).
10. A system for estimating the amount of insulin needed to compensate for an unplanned meal ingested by a user in accordance with the preceding claim, wherein the value of the net IOB component is equal to zero if the net active insulin is negative or zero.
11. A method for calculating the amount of insulin needed to compensate for an unplanned meal ingested by a user, applied by a system according to any one of claims 1 to 10, the method comprising: - the detection module (101), which detects an unplanned meal from the start; - the estimation module (102), which applies the estimation step; - the compensation module (103), which applies the calculation step; the estimation and calculation steps being repeated a determined number of times with a determined frequency.
12. A computer program for estimating the amount of insulin needed to compensate for an unexpected meal ingested by a user, this computer program being adapted, when executed on a processor, to request the processor to apply the method of claim 11.