Evaluation and visualization of glycemic dysfunction

JP2024124491A5Active Publication Date: 2024-10-07DEXCOM INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024107335
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2018-12-28
Filing Date
2024-07-03
Publication Date
2024-10-07
Estimated Expiration
2039-12-19

AI Technical Summary

Technical Problem

Accurate tracking and timing of insulin boluses for diabetes management remains challenging, leading to poor glucose control despite the availability of reliable glucose data.

Method used

A method and system for determining glycemic dysfunction by analyzing the timing shift of meal boluses, quantifying the amount of dysfunction through replay analysis, and providing visualizations to improve diabetic dietary management.

Benefits of technology

Enhances insulin dosing strategies by identifying inefficient or mistimed boluses, reducing glycemic risk through optimal dosing and timing adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide evaluation and visualization of glycemic dysfunction.SOLUTION: An amount of glycemic dysfunction associated with mis-timing (e.g., delay) of meal boluses based on replay analysis is determined. The amount of dysfunction of historical or estimated bolusing compared to an optimally timed bolus based on the replay analysis is quantified and visualized. Inferences may be made about diabetes meal management regarding inputs from a patient.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] INCORPORATION BY REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 62 / 786,149, entitled "EVALUATION AND VISUALIZATION OF GLYCEMIC DYSFUNCTION," filed December 28, 2018. The aforementioned application is incorporated by reference in its entirety and expressly made a part hereof. [Background technology]

[0002] With the widespread use of CGM (continuous glucose monitoring) and connected devices, the availability and reliability of glucose time series data has increased in recent years. However, despite the availability of reliable glucose data, accurately tracking insulin and meal data and optimally and effectively timing mealtime insulin boluses continues to be a problem for many people with diabetes, resulting in poor glucose control. Summary of the Invention [Means for solving the problem]

[0003] Based on the replay analysis, the amount of glycemic dysfunction associated with mis-timing (e.g., delay) of a meal bolus is determined. The amount of dysfunction of a past or estimated bolus compared to an optimally timed bolus based on the replay analysis is quantified and visualized. Inferences can be made about the dietary management of diabetes with respect to input from the patient.

[0004] According to one embodiment, the estimated time, user announced time, adjusted estimated time, or adjusted user announced time for a meal is compared to when the subject administered insulin. The benefit (e.g., risk reduction) of altering the insulin to optimal dose and optimal pre-meal timing is evaluated.

[0005] In an implementation, a method of determining an amount of glycemic dysfunction is provided that includes receiving continuous glucose monitoring (CGM) and insulin data for a subject, the CGM and insulin data including an insulin bolus amount and a timing of the insulin bolus amount, performing a replay analysis of the CGM and insulin data, quantifying the amount of glycemic dysfunction using the replay analysis, and providing an output representative of the amount of glycemic dysfunction.

[0006] In an implementation, a system for determining an amount of glycemic dysfunction is provided that includes a processor that receives continuous glucose monitoring (CGM) and insulin data for a subject, the CGM and insulin data including insulin bolus amounts and timing of insulin bolus amounts, a replay analyzer that uses the CGM and insulin data to generate a replay analysis, a quantifier that uses the replay analysis to quantify the amount of glycemic dysfunction, and an output device that provides an output representative of the amount of glycemic dysfunction.

[0007] In an implementation, a method for determining an amount of glycemic dysfunction is provided, the method includes receiving past blood glucose (BG) data and past insulin data with a replay analyzer, performing a plurality of replay analyses of past boluses and estimated meals using the past BG data and the past insulin data, performing at least one remaining insulin (IOB) data analysis using at least one of the plurality of replay analyses, performing at least one BG data analysis using at least one of the plurality of replay analyses, performing at least one discrepancy analysis and at least one comparison using the at least one IOB data analysis and the at least one BG data analysis, and providing an output based on the at least one discrepancy analysis and the at least one comparison.

[0008] In an implementation, a system for determining an amount of glycemic dysfunction includes an input device configured to receive blood glucose (BG) data, insulin data, and a plurality of functions, a replay analyzer configured to receive the BG data, the insulin data, and the plurality of functions, and to perform a plurality of replay analyses on past boluses and on estimated meals using the BG data, the insulin data, and the plurality of functions, a residual insulin (IOB) assessor configured to perform a plurality of IOB assessments using at least one of the insulin data or the plurality of replay analyses, a BG risk profiler configured to perform a plurality of BG risk profiles using the BG data or at least one of the plurality of replay analyses, and a replay analyzer configured to perform a plurality of IOB assessments using at least one of the BG data or the plurality of replay analyses. an IOB profiler configured to perform a plurality of IOB profiles using at least one of the IOB risk profile plots, a BG risk comparator configured to determine at least one of a risk profile plot or a BG risk score using output of the BG risk profiler; a discrepancy analyzer configured to perform a plurality of discrepancy analyses using the IOB profiles and the IOB assessment to determine at least one of an IOB profile plot, an IOB discrepancy plot, or an IOB trace similarity score; and an output device configured to output at least one of the risk profile plot, the BG risk score, the IOB profile plot, the IOB discrepancy plot, or the IOB trace similarity score.

[0009] In an implementation, a method for providing a recommendation based on glycemic risk is provided, the method includes: receiving at least one of a subject's past blood glucose (BG) data or past insulin data, the BG data and the insulin data including an insulin bolus amount and a timing of the insulin bolus amount; determining a first risk score of glycemic dysfunction of the subject based on at least one of the past BG data or past insulin data; receiving at least one of optimal BG data or optimal insulin data for the subject; determining a second risk score of glycemic dysfunction of the subject based on at least one of the past BG data or past insulin data; comparing the first risk score to the second risk score; and outputting a recommendation based on the comparison of the first risk score and the second risk score.

[0010] In an implementation, a method for assessing glycemic risk is provided, which includes: determining a past risk score of glycemic dysfunction based on at least one of past blood glucose (BG) data or past insulin data, where the past BG data and the past insulin data include an insulin bolus amount and a timing of the insulin bolus amount; determining an optimal risk score of glycemic dysfunction based on at least one of optimal BG data or optimal insulin data; determining a difference between the past risk score and the optimal risk score; and providing a recommendation based on the difference and based on a threshold value.

[0011] In an implementation, the method includes calculating a first IOB trace based on the actual bolus recording, calculating a second IOB trace of an optimal treatment, comparing the first IOB trace to the second IOB trace to determine an IOB similarity score, and using the IOB similarity score to modify at least one of a smart alert behavior, a user recommendation, a reporting function, and a visualization.

[0012] In an implementation, the system includes a discrepancy analyzer configured to determine an IOB similarity score using a comparison of a first IOB trace based on an actual bolus recording and a second IOB trace of an optimal treatment, and an output device configured to output the IOB similarity score.

[0013] This Summary is provided to introduce some concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

[0014] The foregoing summary, as well as the following detailed description of exemplary embodiments, will be better understood when read in conjunction with the appended drawings. For the purpose of illustrating the embodiments, there are shown in the drawings exemplary configurations of the embodiments, but the embodiments are not limited to the specific methods and instrumentalities disclosed. The drawings are as follows: [Brief description of the drawings]

[0015] [Figure 1] FIG. 1 is a high level functional block diagram of one embodiment of the present invention. [Diagram 2] 1 is an illustration of an exemplary environment for assessing and visualizing glycemic dysfunction. [Figure 3A] 1 shows a schematic block diagram of an exemplary system implementation with associated methods for assessing and visualizing glycemic dysfunction. [Figure 3B] 1 shows a schematic block diagram of an exemplary system implementation with associated methods for assessing and visualizing glycemic dysfunction. [Figure 4] 1A-1D are diagrams of various risk profile plots, according to an embodiment. [Diagram 5] 1 is a diagram of a risk zone, according to an embodiment. [Figure 6] FIG. 13 is a diagram of zones that may be significantly improved by altering bolus dosage or bolus timing, according to an embodiment. [Figure 7A] FIG. 2 is a diagram of various residual insulin (IOB) profile plots according to an embodiment. [Figure 7B] FIG. 2 is a diagram of various residual insulin (IOB) profile plots according to an embodiment. [Figure 8] FIG. 13 is an IOB discrepancy plot of bolus administration at past time points, according to an example. [Figure 9] FIG. 2 is an illustration of an IOB mismatch zone plot, according to an embodiment. [Figure 10] FIG. 13 is an IOB discrepancy plot for optimal bolus administration at estimated mealtime, according to an embodiment. [Figure 11] FIG. 13 is an IOB mismatch error zone plot for optimal bolus administration at estimated mealtime, according to an embodiment. [Figure 12] FIG. 13 is an exemplary summary report. [Figure 13] 11A-11C are diagrams of various risk profile plots according to another embodiment. [Figure 14A] 4A-4D are diagrams of various IOB profile plots according to another embodiment. [Figure 14B] 4A-4D are diagrams of various IOB profile plots according to another embodiment. [Figure 15A] 6A-6C are diagrams of various IOB mismatch plots in accordance with another embodiment. [Figure 15B] 6A-6C are diagrams of various IOB mismatch plots in accordance with another embodiment. [Figure 16] 1 is an operational flow of an implementation of a method for determining the amount of glycemic dysfunction. [Figure 17] 1 is an operational flow of another implementation of a method for determining the amount of glycemic dysfunction. [Figure 18] 1 is an operational flow of another implementation of a method for determining the amount of glycemic dysfunction. [Figure 19] 1 is an operational flow of another implementation of a method for determining the amount of glycemic dysfunction. [Figure 20]1 is an operational flow of another implementation of a method for determining the amount of glycemic dysfunction. [Figure 21] 1 illustrates an exemplary computing environment in which exemplary embodiments and aspects may be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] The claimed subject matter is described with reference to the drawings, wherein like reference numerals are used to refer to like elements throughout. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the claimed subject matter. However, it may be apparent that the claimed subject matter can be practiced without these specific details. In other instances, structures and devices are shown in block diagram form to facilitate description of the claimed subject matter.

[0017] The present invention contemplates replay use, which means that the impact of an inefficient or suboptimal bolus in a subject's own historical data can be explained in terms of glycemic risk or insulin delivery profile relative to optimal bolus administration in the same data set. Replay bolus timing effect is determined. Pre-meal bolus compliance is determined. Implementations of the present invention aim to quantify the impact of meal misinformation (both in terms of timing and configuration) in a specific way. The benefit of insulin (e.g., risk reduction) is evaluated in terms of optimal dose and in terms of changing optimal pre-meal timing. A meal can be of any length, depending on the implementation. A meal can be an event with a length of time or an event that spans a time window. A time window can be of any duration or length of time, depending on the implementation. In some implementations, the length of time or time window can vary from meal to meal or can be of a fixed duration. Those skilled in the art should understand that a meal is a time window, and that time window can be defined in various ways.

[0018] As further described herein, the amount of glycemic dysfunction associated with a mistimed (e.g., delayed) meal bolus of the subject is determined based on the replay analysis, and the amount of dysfunction of the past or estimated bolus administration compared to an optimally timed bolus based on the replay analysis may then be quantified and output in a visual form for the subject or user. Inferences about diabetes dietary management can be made using inputs provided by the subject or user. Adjustments of past and replay meal boluses can be used to distinguish between two categories for improving diabetes management: mistimed boluses and missed meal boluses.

[0019] The embodiments described herein address the problem of identifying inefficient bolus doses and mistimed bolus patterns and their impact on blood glucose levels in diabetic patients. Complicating this problem is the fact that a patient's perception of bolus efficiency and / or timing adequacy is determined by whether or not they consistently follow prescribed insulin self-treatment guidelines. For example, under physician guidance to administer boluses at or immediately before meals, a patient may generally consider themselves to be maximally benefiting from insulin therapy by following this strategy for only two of three meals per day, when in fact delaying bolus administration for the third meal may disproportionately contribute to glycemic dysfunction in the form of exposure to hypoglycemia or hyperglycemia. Vague memories of "compliant behavior" are often far from accurate assessments, even with extensive analysis of retrospective data. As a result, conventional methods involving subjective recall or partially complete data records do not provide a clear understanding of the presence of inefficient insulin treatment, or the impact of inefficient treatment, to patients and their caregivers alike.

[0020] Implementations described herein provide a technically non-obvious solution to (i) deriving a mechanism by which the glycemic impact of alternative dosing can be estimated on past records by exhaustive analysis of blood glucose records, associated records of insulin data, and possibly other metabolism-related information, (ii) a sequence of meal events (including carbohydrate, fat, and protein content) from meals published or estimated in accordance with blood glucose and insulin records, (iii) deriving a mechanism by which the glycemic impact of alternative dosing can be estimated on past records, (iv) systematically applying this mechanism to determine the impact on glycemic levels of numerically optimal dosing at past bolus times and at verified meal event times, including performing replay simulations at past boluses or before estimated meals, (v) comprehensively quantifying glycemic dysfunction associated with inefficient insulin delivery, including the impact in terms of risk of exposure to hypoglycemia and hyperglycemia, and (vi) taking into account systematic discrepancies in insulin delivery between past bolus doses and numerically optimal bolus doses, including an overall similarity score between optimal bolus doses and past insulin dosing patterns, and identifying times of day when, on average, past insulin doses deviate from numerically optimal insulin doses.

[0021] Advantages are provided over existing self-assessment or clinical tools. The system and method described herein is systematic and considers all available blood glucose and insulin data, easily outperforming "pencil and paper" analysis, as well as "spreadsheet" analysis using standard statistical assessments. The system and method is comprehensive in identifying correlations of the complex relationships between blood glucose, insulin, and food records through the lens of patient-specific mathematical models. Thus, patterns of inefficient bowling and patterns of glycemic abnormalities are revealed through statistical analysis of these patient-specific interactions. The system and method described herein is not subject to cognitive biases introduced (i) by the patient when recalling insulin delivery and / or meal events, or (ii) by the physician when formulating questions about the patient's experience that can lead to misinterpretation of the patient's treatment routine.

[0022] Depending on the implementation, various calculated metrics can be used, including, for example, but not limited to, hg_min, which is the minimum level of historical glycemic dysfunction required (which can be measured as BG risk, time in range, average, etc. and can be broken down by time of day in hours, minutes, or other useful increments), gdiff_min, which is the minimum level of improvement in glycemic outcome measured as the difference between historical and simulated glucose derived metrics, and ifif_min, which is the minimum level of normalized change in insulin treatment required for improved outcome (which can be frequency-based and / or magnitude-based).

[0023] 1 is a high-level functional block diagram 100 of an embodiment of the present invention. A processor 130 communicates with an insulin device 110 and a glucose monitor 120. The insulin device 110 and the glucose monitor 120 communicate with a subject 140 to deliver insulin to the subject 140 and monitor the glucose level of the subject 140, respectively. The processor 130 is configured to perform calculations as further described herein. The insulin device 110 and the glucose monitor 120 may be implemented as separate devices or as a single device, within a single device, or across multiple devices. The processor 130 may be implemented locally to the insulin device 110, the glucose monitor 120, or as a standalone device, shown in dashed lines as standalone device 132 (or in any combination of two or more of the insulin device 110, the glucose monitor 120, or a standalone device). The processor 130 or a portion of the system may be located remotely, such as in a server or cloud-based system.

[0024] Examples of insulin devices, such as the insulin device 110, include insulin syringes, external pumps, and patch pumps that deliver insulin to a subject, typically to subcutaneous tissue. The insulin device 110 also includes devices that deliver insulin by different means, such as insulin inhalers, insulin jet injectors, intravenous infusion pumps, and implantable insulin pumps. In some embodiments, a subject will use a combination of two or more insulin delivery devices, for example injecting long-acting insulin with a syringe and using inhaled insulin before a meal. In other embodiments, these devices can deliver other drugs that help control glucose levels, such as glucagon, pramlintide, or glucose-like peptide-1 (GLP1).

[0025] Examples of glucose monitors, such as glucose monitor 120, include continuous glucose monitors that record glucose values ​​at regular intervals, such as 1, 5, or 10 minutes. These continuous glucose monitors can use electrochemical or optical sensors that are, for example, inserted percutaneously, fully implanted, or non-invasively measure tissue. Examples of glucose monitors, such as glucose monitor 120, also include devices that periodically draw blood or other fluids to measure glucose, such as intravenous blood glucose monitors, microperfusion sampling, or periodic fingersticks. In some embodiments, glucose measurements are provided in near real time. In other embodiments, glucose measurements determined by the glucose monitor can be stored in the glucose monitor itself for subsequent retrieval.

[0026] The insulin device 110, glucose monitor 120, and standalone device 132 can be implemented using a variety of computing devices, such as smartphones, desktop computers, laptop computers, and tablets. Other types of computing devices may be supported. A suitable computing device is shown in FIG. 21 as computing device 2100 and cloud-based applications.

[0027] The insulin device 110, glucose monitor 120, and standalone device 132 may communicate through a network. The network may be a variety of network types including the public switched telephone network (PSTN), a cellular network, and a packet-switched network (e.g., the Internet). Although only one insulin device 110, one glucose monitor 120, and one processor 130 (in one standalone device 132) are shown in FIG. 1, there is no limit to the number of insulin devices, glucose monitors, processors, and standalone devices that may be supported. An activity monitor 150 and / or smartphone 160 may also be used to collect dietary and / or activity data from or associated with the subject 140 and provide the dietary and / or activity data to the processor 130.

[0028] The processor 130 may execute an operating system and one or more applications. The operating system may control which applications are executed by the insulin device 110, the glucose monitor 120, and the standalone device 132 and how the applications interact with one or more sensors, services, or other resources of the insulin device 110, the glucose monitor 120, and the standalone device 132.

[0029] The processor 130 receives data from the insulin device 110 and glucose monitor 120, and in some implementations, from the subject 140, and performs a replay analysis to evaluate the patient's current meal bolus dosing strategy and compare it with alternative bolus dosing times and insulin amounts.

[0030] More specifically, Figure 2 is a diagram of an exemplary environment 200 for assessing and visualizing glycemic dysfunction. Computing device 201 includes one or more processors, such as processor 130, that can implement replay analyzer 220, residual insulin (IOB) assessor 225, blood glucose (BG) profiler 230, IOB profiler 235, BG risk comparator 240, discrepancy analyzer 245, and output device 250. Computing device 201 can be implemented in a computing device shown in Figure 21 as computing device 2100, and can also be implemented using a processor located on a microcontroller or within insulin device 110, glucose monitor 120, or other insulin delivery device, or as a standalone component (or a combination of two or more of insulin device 110, glucose monitor 120, or other insulin delivery device, or standalone component).

[0031] The computing device 201 is in communication with the target computing device 205, for example via a network and / or communications interface, and is configured to receive data 210 and functions 215 via the network and / or communications interface from the insulin device 110 and the glucose monitor 120, as well as one or more devices or processors maintained by or associated with a physician, caregiver, health care provider, hospital, clinic, university, etc.

[0032] A subject computing device 205 (such as an activity monitor 150, a smartphone 160, or other type of computing device such as the computing device 2100 described with respect to FIG. 21) may be used by the subject 140 to input data (subject-provided data 207) regarding the subject's meals and boluses (e.g., timing, amount, etc.). In some implementations, this data may be considered unreliable data because it is subject to human error, bias, and / or behavioral inconsistencies or anomalies. Data 210 may include data that is not subject-provided data 207, such as past blood glucose amounts, past insulin doses, meal information, the subject's initial (e.g., pre-prandial) state, insulin dosing strategy, etc. In some implementations, this data is considered reliable data because it is machine-provided, machine-verified, determined to have a confidence value above a predefined threshold, and / or is free from, resistant to, and / or subject to human error, bias, or behavioral inconsistencies or anomalies. The functions 215 may include one or more metabolic modeling functions, such as a diet compiler (e.g., diet compiler 303) and a replay compiler (e.g., replay compiler 304) that generates a replay prediction function (e.g., replay prediction function 305), as well as one or more risk, profiling, and assessment functions as further described herein.

[0033] The replay analyzer 220 uses the subject provided data 207, data 210, and functions 215 to perform one or more replay analyses, such as a replay with optimal bolus at past bolus times and a replay with optimal bolus at assessed meal times, as described further herein. Depending on the implementation, one or more of the outputs from the replay analyzer 220 may be provided to one or more of the IOB assessor 225, the BG risk profiler 230, and the IOB profiler 235. Thus, in an implementation, the replay analyzer 220 may function as a data processor that receives CGM and insulin data associated with the subject. In some implementations, alternatively or additionally, the replay analyzer 220 may function as a data generator that generates CGM and insulin data associated with the subject.

[0034] The IOB assessor 225 can perform one or more IOB assessments, such as an IOB assessment of historical data, an IOB assessment of optimal bolus at past time, and an IOB assessment of optimal bolus at estimated meal time, etc. Depending on the implementation, one or more of the outputs from the IOB assessor 225 can be provided to one or more of the IOB profiler 235 and the discrepancy analyzer 245.

[0035] The BG risk profiler 230 may generate one or more BG risk profiles, such as a BG risk profile for optimal bolus at past time and a BG risk profile for optimal bolus at estimated mealtime. Depending on the implementation, one or more of the outputs from the BG risk profiler 230 may be provided to one or more of the BG risk comparator 240 and the discrepancy analyzer 245. Thus, in an implementation, the BG risk profiler 230 functions as a quantifier that quantifies the amount of glycemic dysfunction using replay analysis.

[0036] The IOB profiler 235 may generate one or more IOB profiles, such as an IOB profiling for optimal bolus at past time and an IOB profiling for optimal bolus at estimated meal time, etc. Depending on the implementation, one or more of the outputs from the IOB profiler 235 may be provided to a discrepancy analyzer 245.

[0037] The BG risk comparator 240 performs a BG risk profile comparison function to generate a risk profile plot and an overall BG risk score, which may be stored, displayed, and / or transmitted by the output device 250.

[0038] The mismatch analyzer 245 may perform one or more IOB mismatch analyses and provide one or more plots and scores to the output device 250 for storage, display, and / or transmission.

[0039] 3A and 3B show a schematic block diagram of an exemplary implementation of a system 300 in a related method for assessing and visualizing glycemic dysfunction. The system is directed to a replay analysis tool that evaluates a subject's current meal bolus strategy and compares it with alternative bolus times and insulin amounts.

[0040] The output of the system 300 can be used to identify behavioral problems, for example, by isolating the effects of bolus timing, carbohydrate count, and carbohydrate ratio relative to a subject's meal. Replay simulation analysis can be used to assess the impact of a numerically optimal bolus (removing inaccurate carbohydrate counts or improper carbohydrate ratios) on past bolus times, and to assess the impact of a numerically optimal bolus on estimated past meal times.

[0041] In an implementation, once the replay simulator determines that it is time to calculate a numerically optimal bolus, it generates a set of candidate boluses, simulates future BG values ​​associated with each candidate bolus, "scores" the simulated BG trajectory for each candidate bolus using risk analysis, such as rate-dependent risk analysis, selects and implements the best bolus, and continues replaying the simulation until the time of the next bolus. Candidate boluses via replay can be replayed at times within a target window near the adjusted meal time or past medication time, in addition to or instead of replaying at their exact times.

[0042] The system 300 uses accurate assessment of both meal timing and amount in historical data. Inputs including data 210 (e.g., received from storage) and / or subject-provided data 207 from the subject computing device 205 are directed to CGM (continuous glucose monitoring) data and insulin data, including insulin bolus amount and timing. In an implementation, historical BG data 301 ({bg(t)} t=0、1、 ...) and past insulin 302 ({i(t)} t=0、1、 …) is a time series that is used as input. Note that this is the original data.

[0043] Undocumented meal times are estimated using CGM data (e.g., historical BG data 301) and insulin data (e.g., historical insulin data 302), and possibly user acknowledgement of meals, to estimate the time and amount of all carbohydrate events. Other inputs that may be used in other implementations include exercise (e.g., to determine how to optimize therapy for exercise), rescue carbohydrates (e.g., to determine amounts needed), other meal bolus strategies (e.g., split, delayed, extended bolus), and Type 2 therapy including oral medications, etc. This data may be reliable or unreliable.

[0044] In an implementation, the CGM and insulin data are "discretized" in time (e.g., snapped to the nearest 5 minute sample) and appropriately aggregated. For example, if there are two or more boluses in a 5 minute interval, the insulin value of the corresponding sample will be the sum of the boluses (and the basal effect). This CGM and insulin data form the basic input for replay state estimation, which is then a step towards building a replay simulator for that dataset.

[0045] The historical BG data 301 and historical insulin data 302 are provided to a meal compiler 303 and a replay compiler 304, which then output a replay prediction function 305 and an estimated meal assessed sequence 306. The replay prediction function 305 provides the ability to predict, from any point in the past record, the blood glucose outcome that would be associated with an alternative insulin delivery (i.e., deviating from the historical insulin delivery). Specifically, the alternative insulin time series 302 ({i alt (t)} t=0,1,… ) to the predicted blood glucose data time series ({bg alt (t)} t=0,1,… (which can be expressed as

[0046] The meal compiler 303 analyzes historical BG and insulin delivery data, and possibly other sources of historical data including meal events recorded and / or recalled directly from the patient. The output sequence of estimated meals 306 represents the reconciliation between (i) meal events that can be detected / estimated from correlations between historical blood glucose and insulin delivery data, and (ii) meal events inferred or directly recalled from other sources of data. Meals detected / estimated from historical blood glucose and insulin data can be derived from various mechanisms including deconvolution or normalized deconvolution (see, for example, Patek SD et al., “Empirical Representation of Blood Glucose Variability in a Compartmental Model” Kirchsteiger H. et al. (eds) Prediction Methods for Blood Glucose Concentration (Lecture Notes in Bioengineering), 2016).

[0047] Meal times can also be estimated from the same data set using other approaches known to those skilled in the art of metabolic modeling. Metabolic models describe whole body and local glucose metabolism (see, for example, Cobelli C. et al., “Modeling Glucose Metabolism in Man: Theory and Practice”, Hormone and Metabolic Research, Supplemental Series, 1990, 24:1-10, https: / / www.ncbi.nlm.nih.gov / pubmed / 2272612). These models describe the levels and distribution of glucose and other metabolites in different compartments of the body, the levels and distribution of insulin, and other hormones and drugs in different compartments of the body, glucose transport dynamics between compartments representing consumption and production. These models can be used in clinical settings where samples (e.g., venous blood or interstitial fluid) are taken and clinical analyzers are used to track the inputs and outputs of the compartments. Tracer studies also exist that track the distribution of metabolites. In these studies, inputs (e.g., diet, insulin, exercise) and outputs are carefully controlled and measured. The resulting metabolic model can provide a patient-specific model of glucose excursions from a meal, which can be compared to the patient's glucose monitor to estimate the characteristics of the meal.

[0048] There are also methods to detect timing and magnitude of meal excursions from patterns and features of glucose monitor traces. Examples include detecting acceleration or upward changes in CGM data or fitting meal excursion models (e.g., minimal models) to the time series. Meal information can also be obtained directly from clinical studies or patient records. Reconciliation between detected / estimated meals and sources of uncertain or unreliable meal data can be achieved, for example, by clustering detected and reported meals and averaging meal contents. An assessed sequence 306 of estimated meals is determined and output from the compiler 303, 304.

[0049] In an implementation, the meal compiler 303 estimates meal times and / or effective sizes from past blood glucose measurements (e.g., CGM), insulin dosage (e.g., pump or pen), and optionally meal announcements.

[0050] The replay compiler 304 also analyzes other sources of historical data, including historical BG and insulin delivery data, and possibly meal events recorded directly from the patient and / or recalled. It generates a replay prediction function 305, a mathematical function that can be expressed in a variety of ways (including computer algorithms), providing the ability to predict, from any point in the historical record, the blood glucose outcome that would be associated with an alternative insulin delivery (i.e., deviating from the historical insulin delivery). The replay prediction function 305 evaluates whether an alternative insulin dosing strategy for the same meal would result in a better outcome (e.g., lower glycemic risk). The replay prediction function 305 takes as input the patient's initial state (pre-meal), one or more meal events, and an insulin dosing strategy, and maps it to the resulting glucose excursion for that meal / day. The replay prediction function features can be derived from blood glucose data by inserting the validated sequences of the estimated meals into the mathematical models from which they are derived (see, for example, Patek SD et al., “Empirical Representation of Blood Glucose Variability in a Compartmental Model” Kirchsteiger H. et al. (eds) Prediction Methods for Blood Glucose Concentration (Lecture Notes in Bioengineering), 2016). Alternatively, other blood glucose simulation methodologies can be applied to the validated sequences of the estimated meals, including simulators derived from compartmental models or data-driven methods.

[0051] The past BG 301 may also be provided to a BG risk profiler (such as BG risk profiler 230) for use in determining BG risk profiling for an optimal bolus at a past time 322. The past insulin 302 may also be provided to an IOB assessor (such as IOB assessor 225) for use in determining an IOB assessment of the past data 316, and to a replay analyzer (such as replay analyzer 220) for use in replaying at an optimal bolus at the time of the past bolus 312.

[0052] Other functions that the system 300 can use include a BG risk function 307 that is used to identify a numerically optimal bolus to be inserted into the replay prediction function 305 at the past bolus time or at the verified meal event time, a BG risk profiling function 308 that is used to derive an aggregate assessment of the risk of exposure to hypoglycemia and hyperglycemia in either the past blood glucose records or the replayed blood glucose records from the replay prediction function, and an IOB assessment function 310.

[0053] The IOB assessment function 310 is a calculation that tracks how much insulin remains in the body from the previous dose, including the time course over which the injected insulin acts in the body, including how the insulin is absorbed in the body, begins to affect glucose levels, clears the body, etc. For example, a fast acting insulin may reach peak action in 1 hour, with a total action time of 4 hours. The IOB function can take a variety of mathematical forms to represent the time it takes for insulin to reach its peak value and the subsequent decay curve. These IOB functions are used in bolus calculators (insulin pumps and phone apps) that help diabetic subjects estimate bolus insulin dosages (see, e.g., Zisser H. et al., “Bolus Calculator: A Review of Four 'Smart' Insulin Pumps”, Diabetes Technology & Therapeutics, December 2008, 10(6):441-4, doi:10.1089 / dia.2007.0284, https: / / www.ncbi.nlm.nih.gov / pubmed / 19049372. In some embodiments, the IOB functions use parameters provided by the patient, their healthcare provider, or the insulin manufacturer. In other embodiments, the IOB assessment function can be optimized to generate a patient-specific insulin action curve.

[0054] In an implementation, the regenerative prediction function 305 maps the original data (e.g., meals and insulin) to the observations (e.g., CGM) with sufficient accuracy, maps alternative dosing strategies to the resulting glucose excursions so as to model the patient's physiology (e.g., insulin activity and carbohydrate sensitivity), and provides a reliable, interpretable solution to the problem, such as an estimate of IOB that is a stable smooth function.

[0055] In an implementation, we use known inputs and user-announced meals to generate a function that can replay alternative insulin strategies under the same input conditions. This is a structure where a function takes input data, extracts knowledge, and creates a new function.

[0056] The replay prediction function 305 can also be constructed from the same data set using other approaches known to those skilled in the art of metabolic modeling. One exemplary approach is to fit the parameters of a metabolic model to the subject's data or clinical studies. Another possible approach is to train a neural network on similar data to predict glucose excursions.

[0057] With respect to system 300 with respect to elements 312-342, taking into account behavioral issues such as missed meals or erroneous user input, the system determines and quantifies glycemic dysfunction associated with improper timing of boluses relative to meals based on CGM and insulin data, which can be used to identify behavioral issues and to isolate the effects of timing of boluses relative to meals, and carbohydrate counting and carbohydrate ratios, as described further herein, for example, with respect to Figures 4-15B.

[0058] At 312, a replay of the optimal bolus at the time of the past bolus is performed (e.g., by the replay analyzer 220) using the replay prediction function 305 and the past insulin 302 as inputs. The output of 312 includes the replayed CGM for the optimal bolus at the past time and the replayed insulin for the optimal bolus at the past time.

[0059] At 314, a replay of the optimal bolus at the estimated meal time is performed (e.g., by the replay analyzer 220) using the replay prediction function 305 and the estimated meal data 306 as inputs. The output of 314 includes the replayed CGM for the optimal bolus at the estimated meal time, and the replayed insulin for the optimal bolus at the estimated meal time. Note that the output of 312 and 314 is simulated data using the replay. This simulates how the risk, IOB, BG, and related data and outcomes would differ if the subject were to bolus at these times.

[0060] At 316, IOB assessment of past data is performed (e.g., by IOB assessor 225) using past insulin 302 as input. Any known technique for performing IOB assessment may be used. The output of 316 is used in IOB profiling of optimal boluses at 324 and at past times at 338 and 342, which are further described below.

[0061] At 318, IOB assessment of the optimal bolus at past time is performed (e.g., by the IOB assessor 225) using as input the replayed insulin of the optimal bolus at past time from 312. The output of 318 is used in IOB profiling of the optimal bolus at past time at 328 and at 338, which are further described below.

[0062] At 320, an IOB assessment of the optimal bolus at the estimated mealtime is performed (e.g., by the IOB assessor 225) using the replayed insulin of the optimal bolus at the estimated mealtime as input. The output of 320 is used in IOB profiling of the optimal bolus at the estimated mealtime at 332 and at 342, which are described further below.

[0063] At 322, BG risk profiling of optimal bolus at past time is performed (e.g., by BG risk profiler 230) using past BG 301 as input. The output is used by a BG risk profile comparison function 334, which is further described below.

[0064] As described above, IOB profiling of the optimal bolus in the past time is performed (eg, by IOB profiler 235) at 324. The output of 324 is used at 336 and 340, which are further described below.

[0065] At 326, BG risk profiling of the optimal bolus at past time is performed (e.g., by BG risk profiler 230) using the replayed CGM of the optimal bolus at past time generated at 312. The output of 326 is used at 334, which is further described below.

[0066] At 328, IOB profiling of the optimal bolus at past time is performed (e.g., by IOB profiler 235) using as input the output of the IOB assessment of the optimal bolus at past time 318. The output of 328 is used at 336, which is further described below.

[0067] At 330, BG risk profiling for the estimated optimal bolus at mealtime is performed (e.g., by BG risk profiler 230) using the replayed CGM of the estimated optimal bolus at mealtime generated at 314. The output of 330 is used at 334, which is further described below.

[0068] At 332, IOB profiling for optimal bolus at estimated mealtime is performed (e.g., by IOB profiler 235) using as input the output of the IOB assessment for optimal bolus at estimated mealtime 320. The output of 332 is used at 340, which is further described below.

[0069] With respect to output, charts and / or reports may be generated, transmitted, and / or displayed to indicate that a better outcome for the subject would have been achieved if the patient did not have the behavioral problem. In some implementations, the methods and systems contemplated herein determine whether to display certain recommendations, make certain graphical inferences, or perform other actions based on thresholds as further described herein.

[0070] The comparison of BG risk profiles is performed (e.g., by BG risk comparator 240) using a BG risk profile comparison function 334 that receives as input the outputs of the BG risk profile for optimal bolus at past time 322 and 326 and the BG risk profile for optimal bolus at estimated mealtime 330. The output of the BG risk profile comparison function 334 may include a risk profile plot and a total BG risk score, each having data and / or indicators directed to the past information, optimal bolus at past bolus time information, and optimal bolus at estimated mealtime information, e.g., as further described herein with respect to Figures 4-15B.

[0071] The difference in the comparative BG risk profiles can be quantified to generate numerical outputs for various applications and / or feedback loops, including historical CGM, replay-simulated CGM with a numerically optimal bolus at historical bolus times, and replay-simulated CGM with a numerically optimal bolus inserted at an estimated meal time.

[0072] Differences in comparative BG risk profiles can be quantified in a variety of ways, such as, for example, using plots and visualizations, using risk indices indicating high blood glucose risk, low glucose risk, total glycemic risk, and showing the number and extent of excursions into out-of-range BG levels, for example, as described with respect to FIG. 4.

[0073] At 336, an IOB profile discrepancy analysis is performed (e.g., by discrepancy analyzer 245) comparing past insulin to optimal bolus at past time. Inputs to 336 include the IOB profiling outputs of optimal bolus at past time of 324 and 328, and outputs of 336 include data and / or indicators directed to the past information, as well as an IOB profile plot with optimal bolus at past bolus time information.

[0074] At 338, an IOB trace discrepancy analysis is performed (e.g., by discrepancy analyzer 245) to compare past insulin to optimal boluses at past times. Inputs to 338 include the output of the IOB assessment of past data at 316 and the output of the IOB assessment of optimal boluses at past times at 318. Outputs of 338 include an IOB discrepancy plot and an IOB trace similarity score with data and / or indicators directed to optimal boluses at past bolus times versus past bolus information.

[0075] At 340, an IOB profile discrepancy analysis is performed (e.g., by discrepancy analyzer 245) to compare past insulin to optimal bolus at estimated mealtime. Inputs to 340 include the output of IOB profiling for optimal bolus at past time at 324 and the output of IOB profiling for optimal bolus at estimated mealtime at 332. Outputs of 340 include an IOB profile plot with data and / or indicators directed to optimal bolus at past information and estimated mealtime information.

[0076] At 342, an IOB trace discrepancy analysis is performed (e.g., by discrepancy analyzer 245) to compare historical insulin to optimal bolus at estimated mealtime. Inputs to 342 include the output of the IOB assessment of historical data at 316 and the output of the IOB assessment of optimal bolus at estimated mealtime at 320. Outputs of 342 include an IOB discrepancy plot and an IOB trace similarity score with data and / or indicators directed to optimal bolus at estimated mealtime versus historical bolus information.

[0077] Thus, the output of the replay simulation shows glycemic dysfunction at past times. For example, a historical / estimated risk profile on a graph can show the difference in glycemic exposure. Historical CGM can be displayed against a replay simulation CGM with optimal bolus at past bolus times and against a replay simulation CGM with optimal bolus at estimated meal times and past bolus times.

[0078] Risk indicators such as high blood glucose risk, low blood glucose risk, and total glycemic risk may be displayed. These risks may be displayed as representations on a chart including numbers, colors, quantified values, etc. The number and range of excursions into out of range BG levels may also be identified and shown. Numerical representations could be used to indicate glycemic function / goodness / badness, such as a comparison of two numbers being good or bad.

[0079] Another output may be an indication of compliance with the requirement of pre-meal bolus administration. The subject's ideal pre-meal bolus is determined, and then the subject's deviation from this ideal pre-meal bolus is determined. A score may be generated and output, for example, numerically, in a chart. In this embodiment, quantifying glycemic dysfunction may be considered as quantifying compliance (or deviation) to the ideal pre-meal bolus timing. In implementations, visualizations (showing the effect of compliance) or recommendations (e.g., "bolus 20 minutes before this type of meal in the future") may be generated and output.

[0080] The various outputs described herein can be used as risk stratification tools for medical professionals to identify subjects by pre-meal bolus compliance and potential benefit of treatment adjustments. Outputs can be used to highlight the most impactful potential changes in clarity reports (e.g., changes to insulin timing relative to bolus amount, or highlighting best meals). Outputs can be used to trigger coaching comments and discussion points via coaching calls or chatbot prompts.

[0081] 4 is an illustration of various risk profile plots 400 according to an embodiment. In this example, for the subject, the total risk CGM is 0.99, the total risk with optimal bolus at past bolus time is 0.46, the total risk with optimal bolus at estimated mealtime is 0.39, the IOB trace similarity score for optimal bolus at past bolus time is 0.69, and the IOB trace similarity score for optimal bolus at estimated mealtime is 0.59. The number of days in the sample was 13 days.

[0082] Total Risk CGM is a value that captures both hyperglycemia and hypoglycemia risk over a time segment as a single value. Any known technique for determining the value can be used. In implementations, a positive value with a low value indicates good glycemic control. A total risk of 1 or less is a good outcome. A score of 2 or more indicates larger or persistent excursions outside the range. The CGM risk in these examples is based on a target range of 95-195 mg / dL, so a score of 1 occurs if the subject is always at either of these limits. This analysis could be based on other target ranges or risk functions (e.g., 70-180 mg / dL), but these targets are consistent with medical concerns observed in clinical studies. Any threshold can be selected for the target zone. The CGM risk metric penalizes glucose excursions outside these limits (e.g., parabolic function) that drive up the score, especially on the hypoglycemic side.

[0083] With respect to the total risk with optimal bolus dosing in the past time, Replay Bolus identifies the optimal amount of insulin at the same bolus time (e.g., pump or pen bolus time) as the recorded data. The optimal bolus amount halves the CGM risk. A reduction from 0.99 to 0.46 indicates that there is an opportunity for improvement with a change in therapy / change in bolus calculator. If the Replay analysis shows that the optimal strategy can significantly reduce the total risk (e.g., 25%, 50%, etc.), the subject or user may be prompted with a treatment suggestion (e.g., visualization or message) that a change in insulin dosing could reduce their exposure to glycemic risk. There are many ways in which these potential risk reductions can be integrated into subsequent reports, analyses, and calculations, so the scope is not limited to displaying the results in this way.

[0084] With regard to the total risk from optimal bolus dosing at estimated mealtimes, adjusting the timing of the bolus can further reduce and improve the total risk. In this example, the reduction in risk for this subject is 0.46-0.39 compared to the optimal amount replay above. This incremental risk reduction from timing changes is not as large as the previous step, which may indicate that the past data includes insulin boluses closer to mealtimes. In other words, this subject's risk is not a timing issue, but an amount issue. In some embodiments, replay analysis (comparing past vs. mealtime bolus dosing) can identify subject behavior that may be improved by dosing earlier or later than past values. This is a comparison of recorded insulin bolus time to estimated / adjusted mealtime. In addition to the pump, the connected pen records when the bolus was delivered, but there may be questions about priming and whether there is an ad-hoc / additional dosing from another pen or syringe.

[0085] With regard to the similarity score of the IOB trace to the optimal bolus at the past bolus time, the IOB trace is calculated based on the actual bolus recording and the IOB trace of the optimal treatment is calculated. These traces are compared as a dot product between unit magnitude traces and can be given a value ranging from 0 to 1, where 1 indicates that the actual and optimal dosing shapes are most similar. A value of 1 indicates the same pattern in the traces even though the overall magnitude is different. In this example, a value of 0.69 indicates that the optimal bolus amount at the past bolus time is a different IOB profile shape than the current result. This similarity score can be thresholded or compared to the current behavior, and the output of this comparison can change the behavior of smart alerts, user recommendations, reporting functions, and visualizations. Depending on the implementation, the information can be conveyed as a qualitative score of amount and timing, visualization or interpretation (e.g., "bad", "good", "excellent", etc.), for example. At a high level, the amount or timing of insulin dosing can help compare current behavior to optimal behavior, which can be converted into recommendations or visualizations (e.g., score rankings, or prioritization of needs or benefits). Trace similarity can also examine how close a subject is to ideal insulin levels and interpret the results to make recommendations (replay reports and / or real-time).

[0086] The score can be compared to a threshold to determine whether there is a risk. If there is a risk, a warning or other indicator can be generated and output, e.g., provided to the subject or a physician. As the score increases, the risk of glycemic dysfunction increases.

[0087] Comparison of the historical score with the estimated score (and similarly comparison of the risk) indicates how much improvement (reduction of risk) could be achieved with optimal, or at least better, bolus dosing.

[0088] Area 410 shows the subject's historical hyperglycemic risk profile (above the x-axis) and hypoglycemic risk profile (below the x-axis) and identifies times when the subject is consistently experiencing glycemic dysfunction. The peak in the hyperglycemic risk profile identified as 410 indicates that the subject is consistently experiencing out of range BG between 1500-1600 hours.

[0089] Area 420 shows the hyperglycemia and hyperglycemia risk profile calculated from a replay of the subject's data where past insulin bolus amounts have been replaced with numerically optimal bolus amounts. The fact that the peak of the past hyperglycemia risk profile at 1500-1600 (area 410) is no longer present in area 420 indicates that the subject can significantly reduce his exposure to hyperglycemia in the afternoon by injecting / infusing a different amount of insulin without taking the additional step of selecting a different bolus time. Similarly, a reduction in hyperglycemia risk is possible (i) by injecting / infusing a different amount before 2200 hours (by bolusing a more accurate evening meal) and (ii) by injecting / infusing a different amount between 2300 hours and 0200 hours (by bolusing a snack before bedtime).

[0090] Area 430 shows the hyperglycemia and hyperglycemia risk profile calculated from a replay of the patient's data where past insulin bolus amounts have been replaced with the numerically optimal bolus amount at the estimated meal time. The fact that hyperglycemia risk is further reduced in the 1500-1600 time window (compared to area 420) indicates that the subject could reduce their exposure to afternoon hyperglycemia by injecting / infusing insulin closer to meals, however, based on this data for this subject, the improvement is small. More consistent optimal bolus administration closer to meals / snacks between 2300 and 0600 hours could result in a more substantial improvement in hyperglycemia risk.

[0091] FIG. 5 is a diagram 500 of risk zones 510, 520, 530, 540 according to an embodiment. As shown, the risk profile plot 400 can be converted into daily zones, which in this example show underdosing at lunch and dinner. The risk zones 510, 520, 530, 540 show intervals of significant past hyperglycemic risk that can be completely eliminated by bolusing at different times or in different amounts. The diagram can show the effect of time of day across multiple days. In an implementation, the diagram 500 can be generated by the BG risk comparator 240 and output by the output device 250 based on the results of the BG risk profile comparison function 334. Past hyperglycemic (above the x-axis) and hypoglycemic (below the x-axis) zones can be identified through application of thresholds applied to the past BG risk profile generated by the profiling function of 322.

[0092] FIG. 6 is a diagram 600 of zones of potential significant improvement (e.g., with respect to risk profile plot 400) by changing bolus dosage or bolus timing, according to an embodiment. Interval 610 indicates an interval where BG results may be improved through changes in bolus amount (at past time). Interval 620 indicates an interval where BG results may be improved through bolus administration closer to mealtime (e.g., earlier in the day). Similar to the generation and output of diagram 500, in an implementation, diagram 600 may be generated by BG risk comparator 240 and output by output device 250 based on the results of BG risk profile comparison function 334. For numerically optimal boluses at past bolus times and numerically optimal boluses at verified estimated mealtimes, historical hyperglycemic (above x-axis) and hypoglycemic (below x-axis) zones may be identified by application of thresholds applied to historical BG risk profiles generated by profiling functions 326 and 330, respectively.

[0093] 7A and 7B are diagrams of various residual insulin (IOB) profile plots 700, 750, according to an embodiment. Fig. 7A shows (i) the mean IOB of past boluses (line 740) + / - 1 standard deviation (area 720), and (ii) the mean IOB of the numerically optimal bolus at past bolus times (line 730) + / - 1 standard deviation (area 710). While the examples herein use the mean and standard deviation, other statistics such as median, confidence interval, standard error, coefficient of variation, etc. may be used depending on the implementation.

[0094] Similarly, FIG. 7B shows (i) the mean IOB of past bolus deliveries (line 790) + / - 1 standard deviation (area 770), and (ii) the mean IOB of the numerically optimal bolus delivery at the estimated bolus time (line 780) + / - 1 standard deviation (area 760).

[0095] Note that in both Figures 7A and 7B, the difference between lines 730, 780 and lines 740, 790 corresponds to different amounts of insulin recently infused / injected. For example, the gap between lines 730 and 740 in Figure 7A between 1200 and 1600 hours corresponds to the fact that a numerically optimal bolus (at past bolus times) delivers (and "remains") more insulin compared to past boluses administered by the patient. A similar gap can be seen between lines 780 and 790 in Figure 7B, even at times with zero or very low IOB in the past, corresponding to the difference between optimal bolus delivery at estimated meal times and optimal bolus delivery at past bolus times.

[0096] Area 710 shows the variability (+ / - 1 standard deviation) of the IOB about the mean (line 730) associated with the numerically optimal bolus delivery at the past bolus time.

[0097] Area 720 shows the variability (+ / - 1 standard deviation) of IOB about the mean (line 740) associated with the numerically optimal bolus delivery at the estimated bolus time.

[0098] Line 730 shows the average IOB associated with the numerically optimal bolus delivery at the past bolus time, while line 740 shows the average IOB associated with the numerically optimal bolus delivery at the estimated meal time.

[0099] FIG. 8 is an illustration of an IOB discrepancy plot 800 showing the average difference between (i) the IOB associated with the numerically optimal bolus at the past bolus time and (ii) the IOB associated with the past boluses. Line 810 corresponds to the average value of the IOB difference, while 820 and 830 correspond to + / - 1 standard deviation, respectively. The times when the average value is positive correspond to times when the numerically optimal bolus delivery results in a higher IOB (on average) compared to the past bolus delivery. Smaller values ​​of the standard deviation correspond to a more consistent discrepancy between the numerically optimal bolus delivery associated with the IOB and the past boluses. Positive values ​​in plot 800 typically indicate more insulin in the optimal delivery than in the past delivery. Thus, an error profile of the bolus delivery at the past time is provided.

[0100] Line 810 shows the average difference between the IOB associated with the numerically optimal bolus delivery at the past bolus time and the past bolus itself.

[0101] Line 820 shows the mean difference plus one standard deviation, providing a visual indication of the degree of uncertainty about the difference between the means. Note that in some implementations, confidence intervals may be used.

[0102] Line 830 shows the mean difference minus one standard deviation, providing a visual indication of the degree of uncertainty about the difference between the means. Note that in some implementations, confidence intervals may be used.

[0103] 9 is an illustration of an IOB mismatch zone plot 900 for illustrating times when the IOB associated with a numerically optimal bolus delivery is substantially higher than the IOB associated with a past bolus. The bars above the x-axis correspond to times when the subject should consider taking a larger bolus in the past bolus time. Although not shown in this example, the bars below the x-axis correspond to times when the subject should consider taking a smaller bolus in the past bolus time.

[0104] FIG. 10 is an illustration of an IOB discrepancy plot 1000 for optimal bolus delivery at estimated mealtimes, according to an embodiment. Similar to FIG. 8, this plot shows the mean difference between the IOB associated with the numerically optimal bolus and past boluses, here with an envelope of + / - standard deviation for the difference between the numerically optimal bolus and past boluses at the estimated mealtime. The times when the mean value is positive (negative) correspond to the times when the numerically optimal bolus delivery at the estimated mealtime results in more (respectively less) remaining insulin on average compared to past boluses. Here, the negative discrepancy occurring at 0900 corresponds to the fact that the subject is taking a bolus at a different time than the estimated meal. Thus, an error profile for optimal bolus delivery at estimated mealtimes is provided.

[0105] 11 is a diagram of IOB mismatch zones 1100 for optimal bolus delivery at estimated mealtimes, according to an embodiment. The zones above the x-axis are times when a subject may benefit from more insulin by delivering a bolus larger than in the past, or by delivering a bolus not delivered in the past. Here, the zone below the x-axis at 0900 corresponds to times when a subject should not bolus, and instead a bolus closer to the actual mealtime is desirable.

[0106] FIG. 12 is an illustration of an exemplary summary report 1200 showing glycemic risk based on the determined glycemic function. The summary report 1200 is just one example of a report that may be generated and provided for a subject or caregiver and may be generated by overlaying the plots and diagrams of FIG. 5, FIG. 6, FIG. 9, FIG. 11. Panel 1210 shows time segments of a profile with glycemic risk. Panel 1220 identifies time segments that would have had significantly lower risk in replay with a change in bolus strategy. Panel 1230 identifies time segments (e.g., meals) where a new bolus amount (more insulin in this example) would act to significantly change the IOB. Panel 1240 identifies time segments (e.g., meals) where a different bolus timing would act to significantly change the IOB. This allows actions and therapy changes to be prioritized and identifies periods of the day where a larger bolus can reduce risk. Suboptimal times to boluses may also be identified in panel 1240 and better alternatives may be suggested.

[0107] 13 is a diagram of various risk profile plots 1300 according to another embodiment. In this example, for the subject, the total risk CGM is 1.75, the total risk with optimal bolus at past bolus time is 1.21, the total risk with optimal bolus at estimated mealtime is 0.55, the IOB trace similarity score for optimal bolus at past bolus time is 0.60, and the IOB trace similarity score for optimal bolus at estimated mealtime is 0.47. The sample duration was 79 days.

[0108] Region 1310 indicates a strong tendency to experience hypoglycemia at 1200 hours in past records, with a significant risk of hypoglycemia more generally from 1000 hours to 1600 hours, and a moderate risk of hypoglycemia at 2000 hours.

[0109] Region 1320 shows that the risk of moderate hypoglycemia around 2000 hours can be addressed by administering a different bolus at a past bolus time, but if the bolus time is not changed, the reduction in evening hypoglycemia comes at the cost of a substantial new risk of hyperglycemia around 2200 hours.

[0110] Region 1330 shows that the risk of severe hypoglycemia around 1200 h can be addressed by administering a different bolus at earlier bolus times, but if the bolus time is not changed, the reduction in hypoglycemia during the day comes at the cost of a substantial new risk of hyperglycemia between 1000 and 1800 h.

[0111] Region 1340 shows that by administering a numerically optimal bolus at the estimated mealtime, the subject can effectively avoid exposure to both hypoglycemia and hyperglycemia.

[0112] 14A and 14B are diagrams of various IOB profile plots 1400, 1450, respectively, according to another embodiment. Line 1410 shows a larger average IOB (with greater variability) at 2100 hours obtained from a past bolus administration compared to a smaller average IOB (with less variability) resulting from a numerically optimal bolus at the past bolus time.

[0113] Line 1420 shows high variability for the mean IOB resulting from a numerically optimal bolus delivery at a past bolus time around 0730 hours. Here, the mean IOB from the numerically optimal bolus delivery is itself very small because there are not many past boluses at that time. Note in FIG. 14B that at the same time, the mean IOB associated with the bolus at the estimated meal time is larger than the mean IOB associated with the past boluses, indicating that the subject may be consistently delaying the bolus for his first meal of the day.

[0114] Line 1430 shows the larger average IOB (with greater variability) at 1700 hours obtained from past bolus administrations compared to the smaller average IOB (with less variability) resulting from a numerically optimal bolus at past bolus times.

[0115] Line 1440 shows that the IOB at 0830 with the numerically optimal bolus is lower than the average IOB associated with the previous bolus records, which is also true in Figure 14B for the same time. Thus, regardless of the timing of the morning bolus, the subject is taking too much insulin, which is associated with a stronger tendency to experience hypoglycemia in the morning.

[0116] 15A and 15B are diagrams of various IOB mismatch plots 1500, 1550, respectively, according to another embodiment. The fact that the mismatch (shown by solid line 1510) in FIG. 15A is negative throughout the day (e.g., from about 0730 to about 2300) indicates that the subject should reduce the bolus if constrained to bolus administration at past bolus times. The fact that the average mismatch (shown by solid line 1560) in FIG. 15B fluctuates between positive and negative values ​​indicates that the subject has (and would benefit from) substantially different IOB throughout the day.

[0117] The solid line 1510 shows the average difference between the IOB associated with the numerically optimal bolus delivery at the past bolus time and the past bolus itself.

[0118] The dashed line 1520 indicates the mean difference above plus one standard deviation, providing a visual indication of the degree of uncertainty about the difference between the means.

[0119] The dashed line 1530 indicates the mean difference above plus one standard deviation, providing a visual indication of the degree of uncertainty about the difference between the means.

[0120] FIG. 16 is an operational flow of an implementation of a method 1600 for determining the amount of glycemic dysfunction. At 1610, CGM data and insulin data related to a subject (such as subject 140) are received in a replay analyzer, such as replay analyzer 220. The CGM data and insulin data may include subject-provided data 207, data 210, and / or function 215. The CGM data and insulin data may be received from a storage device, such as a database, that includes the CGM record and insulin record of the subject 140. Alternatively or additionally, the data may be received from the subject 140 (e.g., via the subject computing device 205), from a CGM and / or insulin device or monitor (e.g., insulin device 110, glucose monitor 120, activity monitor 150, and / or smartphone 160), or from other equipment or entities. In implementations used for replay analysis, past data may be used. Accurate estimation of both meal timing and amount in past data is useful.

[0121] At 1620, a replay analysis is performed on the CGM data and insulin data, for example by the replay analyzer 220. Steps of this analysis include (i) the use of a meal estimation function (such as the meal compiler 303) that generates estimates (such as the estimated meal data 306) of meal events (particularly carbohydrate intake) in the past recordings based on an analysis of trends and patterns in the time series data of the CGM data and insulin data, and (ii) the use of a replay prediction function 305 (such as the output of the replay compiler 304) that uses the estimated meal time series to simulate past data starting from any point in the past time series from any particular metabolic initial state, allowing the specification of either a past or an optimized insulin bolus.

[0122] At 1630, the amount of glycemic dysfunction is quantified based on the replay analysis, e.g., using one or more of IOB assessor 225, BG risk profiler 230, IOB profiler 235, BG risk comparator, and discrepancy analyzer 245, as further described herein. The analysis includes (i) calculating a hyperglycemia and hypoglycemia risk profile (such as the profiling performed at 322) based on the entirety of the historical CGM data, where the profile value at any point in a 24-hour day describes the clinical significance of past exposure to hyperglycemia (or hypoglycemia) at that point in the day, and where the assignment of hyperglycemia (respectively, hypoglycemia) risk thresholds is normalized to mark intervals of significant glycemic risk during the day, and (ii) simulating the entire record using a replay prediction function (as described with respect to element 312), replacing past boluses with numerically optimal boluses based on the predicted responses from the replay function. (iii) simulating (replaying) the entire record using a replay prediction function (as described with respect to element 314) to cancel past boluses and insert numerically optimal boluses at the estimated meal times; (iv) calculating hyperglycemia and hypoglycemia risk profiles for the replayed time series using the numerically optimal boluses at the times of past boluses (as described with respect to element 326); and (v) calculating hyperglycemia and hypoglycemia risk profiles for the replayed time series using the numerically optimal boluses at the estimated meal times (as described with respect to element 330).

[0123] The BG risk profiler 230 includes calculations to convert one or more blood glucose values ​​into a relative risk score consistent with the risk of diabetic complications or the degree of glycemic control. The risk score can be assigned to a single value or summarized over a time segment, such as an average risk score for a day. In one example, the metric is a positive value, with lower values ​​indicating good glycemic control, such as staying within the target zone or close to the target value. For a target blood glucose range of 95-195 mg / dL, an exemplary risk function maps a reading at 95 mg / dL to a risk of 1.0, a reading at 120 mg / dL to a risk of 0.2, and a reading at 195 mg / dL to a risk of 1.0. As a result, a subject who stays within the target range will have a total risk less than 1, and a subject who is tightly controlled will have a risk close to zero.

[0124] Continuing with this example, blood glucose values ​​in the hyperglycemic and hypoglycemic regions are given increasingly higher risk scores as glucose moves away from the target value. The risk function maps a reading at 65 mg / dL to a risk of 2.5 and a reading at 225 mg / dL to a risk of 2.0. Thus, a score of 2 or higher indicates a larger or persistent excursion outside the target range. In this case, the penalty function is not symmetrical, since hypoglycemic values ​​are heavily penalized. The shape of the risk function may be based on a mathematical function, such as a quadratic or log-normal curve, or a set of linear functions. One known metric is the average daily risk range (see, for example, Kovatchev BP et al., “Evaluation of a New Measure of Blood Glucose Variability in Diabetes”, Diabetes Care, November 2006, 29(11):2433-8, https: / / www.ncbi.nlm.nih.gov / pubmed / 17065680). In other cases, it can be empirically derived from the subject's historical data or further adjusted for the treatment goal.

[0125] The risk function can include and emphasize other factors related to diabetes risk. One example is a risk metric that explicitly considers the rate of glucose change as a patient threat factor (e.g., hypoglycemia and hyperglycemia risk levels are amplified in decreasing and increasing glucose trends, respectively) (see, e.g., U.S. Patent No. 9,439,602, entitled "Alert System for Hypo and Hyperglycemia Prevention Based on Clinical Risk").

[0126] The three sets of risk profiles are evaluated with a BG risk profile comparison function (such as BG risk profile comparison function 334), which calculates a total blood glucose score for each of the past data, the replayed data with the numerically optimal bolus at the past bolus time, and the replayed data with the numerically optimal bolus at the estimated meal time. The difference between these respective scores indicates impairments associated with suboptimal boluses at the past bolus times and / or boluses that do not occur at the estimated meal times (corresponding to the replay bolus timing effect).

[0127] In addition, to calculate a measure of pre-meal bolus compliance, time series of IOB are calculated for (i) the past time series of insulin delivery (as described with respect to element 316), (ii) the replayed time series of the numerically optimal bolus at past bolus times (as described with respect to element 318), and (iii) the replayed time series of the numerically optimal bolus at estimated meal times (as described with respect to element 320). From these IOB time series, a 24-hour profile of IOB can be calculated, where the value of the profile at any time corresponds to a first-order statistic about the amount of insulin (e.g., average insulin) remaining for the patient at that time in the past, or with a numerically optimal bolus at past bolus times, or with a numerically optimal bolus at estimated meal times. These respective IOB profiles permit assessment of IOB discrepancies between (i) past bolus administrations and numerically optimal boluses at past bolus times (as described with respect to element 336) and (ii) past bolus administrations and numerically optimal boluses at estimated meal times (as described with respect to element 340). In addition, the three sets of IOB time series permit computation of numerical similarity measures between (i) past bolus administrations and numerically optimal boluses at past bolus times (as described with respect to element 338) and (ii) past bolus administrations and numerically optimal boluses at estimated meal times (as described with respect to element 342).

[0128] At 1640, an output representative of the amount of glycemic dysfunction is provided via an output device such as output device 250, for example, to a computing device associated with the subject, a physician, or another entity. The output may include plots or other information and recommendations as further described herein (e.g., summary reports such as report 1200 of FIG. 12). Such output may provide an indication of replay bolus timing effectiveness and pre-meal bolus compliance. In one or more implementations, the impact of meal misinformation (both in terms of timing and configuration) is quantified. Thus, insulin benefits (e.g., risk reduction) are evaluated with respect to optimal doses and with respect to changes in optimal pre-meal timing.

[0129] 17 is an operational flow of another implementation of a method 1700 for determining the amount of glycemic dysfunction. At 1710, input is received at a computing device, such as computing device 201. In an implementation, the input may include subject-provided data 207, data 210, and / or functions 215 and may be received at a replay analyzer 220. The input may include CGM data and insulin data similar to that described with respect to 1610 (e.g., past BG 301 and past insulin 302).

[0130] At 1720, a replay analysis is performed (e.g., by replay analyzer 220) on past boluses and estimated meals, for example, using the aspects described with respect to 312 and 314. In this manner, it can be determined what would have happened if the subject had taken a bolus at past bolus times, and what would have happened if the subject had taken a bolus at estimated meal times.

[0131] At 1730, IOB data analysis is performed, such as described with respect to Figures 3A and 3B. In an implementation, the IOB data analysis may be performed by the IOB assessor 225 and / or the IOB profiler 235. At 1740, BG data analysis is performed, such as described with respect to Figures 3A and 3B. In an implementation, the BG data analysis may be performed by the BG risk profiler 230 and / or the BG risk comparator 240. Such analysis may include various assessments and profiling, as further described above.

[0132] At 1750, mismatches are determined along with the comparison, as described in detail above with respect to Figures 3A and 3B. In an implementation, the mismatches may be determined by mismatch analyzer 245. At 1760, plots and scores as further described herein may be generated and output, for example, via output device 250.

[0133] 18 is an operational flow of another implementation of a method 1800 for determining the amount of glycemic dysfunction. The method may be performed by a computing device 201 in some implementations.

[0134] At 1810, historical BG data and historical insulin data are received at a replay analyzer, such as replay analyzer 220. Multiple replay analyses are performed at 1820 by replay analyzer 220 on past boluses and on meals estimated using the historical BG data and historical insulin data.

[0135] At least one IOB data analysis is performed using at least one of the plurality of replay analyses at 1830. The IOB data analysis may be performed using, for example, one or more of the IOB assessor 225 or the IOB profiler 235. At least one BG data analysis is performed using at least one of the plurality of replay analyses at 1840. The BG data analysis may be performed using, for example, one or more of the BG risk profiler 230 or the BG risk comparator 240.

[0136] At least one mismatch analysis is performed and at least one comparison is performed using the at least one IOB data analysis and the at least one BG data analysis in 1850. The mismatch analysis and / or comparison may be performed by, for example, the mismatch analyzer 245.

[0137] At 1860, an output is provided as further described herein. The output may be provided by the output device 250 and may be based on the at least one discrepancy analysis and the at least one comparison.

[0138] 19 is an operational flow of another implementation of a method 1900 for determining the amount of glycemic dysfunction. The method may be performed by a computing device 201 in some implementations.

[0139] At 1910, at least one of the subject's historical BG data or historical insulin data is received in a replay analyzer, such as replay analyzer 220. At 1920, a first risk score is determined for the subject's glycemic dysfunction based on at least one of the historical BG data or historical insulin data. The risk score may be determined, for example, by replay analyzer 220. In one example, the risk score may be a value from BG risk profiler 230. In another example, the output from BG risk profiler 230 is converted into a risk score with a series of thresholds or zones, such that a risk of less than 1 is assigned as a low risk score, a risk of 1-2 is assigned as a moderate risk, and a risk of greater than 2 is assigned as a high risk. These thresholds and zones may be pre-set or customized for each patient based on historical values ​​or current goals. The risk score may also be used to summarize BG risk profiles associated with different times of day, meals, and / or other related events.

[0140] At 1930, at least one of the subject's optimal BG data or optimal insulin data is received in a replay analyzer, such as replay analyzer 220. At 1940, a second risk score is determined for the subject's glycemic dysfunction based on at least one of the optimal BG data or optimal insulin data. The risk score may be determined, for example, by replay analyzer 220. This risk score may use the same attributes as the risk score calculated in 1910, so that potential improvement may be assessed. For example, a risk score for breakfast is compared between historical data and optimal data.

[0141] At 1950, the first risk score is compared to the second risk score, for example, by the replay analyzer 220. A recommendation may be generated and output at 1960, for example, in some implementations, by the replay analyzer 220 and / or the output device 250, based on the comparison at 1940. The recommendation may be optimal BG data or optimal insulin data for the subject or other user, regarding instructions or other suggestions for improving or maintaining blood glucose information (e.g., in some implementations, such as shown in FIG. 12, for reducing glycemic dysfunction). If the first risk score is close to the second risk score (e.g., less than a predetermined percentage difference, within a score range or difference, less than a threshold difference, etc.), the subject's behavior is identified and encouraged as the amount and timing of insulin is closer to ideal. If the first risk score is significantly greater than the second risk score (e.g., more than a predetermined percentage difference, outside a score range or difference, more than a threshold difference, etc.), there is an opportunity to optimize treatment by adjusting the amount or timing of insulin bolus for future similar meals.

[0142] The output recommendation in 1960 can be generated in a variety of formats to suit the needs of the subject. In one embodiment, the recommendation can be qualitative, for example, identifying that dosing early before breakfast will help avoid high glucose values ​​later in the day. For example, in some implementations, the recommendation can be an on-screen prompt or overlaid on a plot showing glucose excursions. Alternatively or additionally, the recommendation can be a summary report over a period of time, such as a week or a month. The summary report can identify periods of high blood glucose levels during the day and assign possible causes. For example, the report may identify that low afternoon glucose levels are the result of overdosing insulin at lunch combined with dosing after eating a meal.

[0143] FIG. 20 is an operation flow of another implementation of a method 2000 for determining the amount of glycemic dysfunction. The method may be executed by a computing device 201 in some implementations. Operation 2010 involves determining a past risk score based on at least one of past blood glucose data or past insulin data, which in the implementation of FIG. 3A and FIG. 3B involves elements 322 (for calculating a risk profile) and 334 (for calculating a risk score). Operation 2020 involves calculating an optimal risk score of glycemic dysfunction based on at least one of optimal BG data or optimal insulin, which in the implementation of FIG. 3A and FIG. 3B involves elements 312 (for a numerically optimal bolus at a past bolus time) or 314 (for a numerically optimal bolus at an estimated meal time), 326 or 330 (for an optimal risk profile, respectively), and 334 (for calculating a risk score, respectively). Operation 2030 involves determining the difference between the historical risk score and the optimal risk score, which for the implementation of Figures 3A and 3B involves element 334. Operation 2040 provides a recommendation that is based on the difference and based on a threshold value.

[0144] At 2010, a historical risk score for glycemic dysfunction is determined based on at least one of the subject's historical BG data or historical insulin data, which may have been received, for example, at replay analyzer 220.

[0145] At 2020, an optimal risk score for glycemic dysfunction is determined based on at least one of the subject's optimal BG data or optimal insulin data, which may have been received, for example, at replay analyzer 220.

[0146] At 2030, the difference between the historical risk score and the optimal risk score is determined, for example, by the replay analyzer 220.

[0147] At 2040, a recommendation may be generated and output based on the determined differences, for example, by the replay analyzer 220 and / or the output device 250 in some implementations.

[0148] 21 illustrates an exemplary computing environment in which exemplary embodiments and aspects may be implemented. The computing device environment is only one example of a suitable computing environment and is not intended to suggest any limitation as to the scope of use or functionality.

[0149] Many other general purpose or special purpose computing device environments or configurations can be used. Examples of well-known computing devices, environments, and / or configurations that may be suitable for use include, but are not limited to, personal computers, server computers, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, networked personal computers (PCs), minicomputers, mainframe computers, embedded systems, distributed computing environments that include any of the above systems or devices, etc.

[0150] Computer-executable instructions, such as program modules, may be used that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Distributed computing environments may be used in which tasks are performed by remote processing devices that are linked through a communications network or other data transmission medium. In a distributed computing environment, program modules and other data may be located in both local and remote computer storage media, including memory storage devices.

[0151] 21, an exemplary system for implementing aspects described herein includes a computing device, such as computing device 2100. In its most basic configuration, computing device 2100 typically includes at least one processing unit 2102 and memory 2104. Depending on the exact configuration and type of computing device, memory 2104 may be volatile (such as random access memory (RAM)), non-volatile (such as read-only memory (ROM), flash memory, etc.), or some combination of the two. This most basic configuration is illustrated in FIG. 21 by dashed line 2106.

[0152] Computing device 2100 may have additional features / functionality. For example, computing device 2100 may include additional storage (removable and / or non-removable) including, but not limited to, magnetic or optical disks or tape. Such additional storage is illustrated in FIG. 21 by removable storage 2108 and non-removable storage 2110.

[0153] The computing device 2100 typically includes a variety of computer-readable media. Computer-readable media can be any available media that can be accessed by the device 2100 and includes both volatile and nonvolatile media, removable and non-removable media.

[0154] Computer storage media include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer-readable instructions, data structures, program modules, and other data. Memory 2104, removable storage 2108, and non-removable storage 2110 are all examples of computer storage media. Computer storage media include, but are not limited to, RAM, ROM, Electrically Erasable Program Read Only Memory (EEPROM), Flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and that can be accessed by the computing device 2100. Such computer storage media may be part of the computing device 2100.

[0155] The computing device 2100 may contain communications connections 2112 that allow the device to communicate with other devices. The computing device 2100 may also have input devices 2114, such as a keyboard, mouse, pen, voice input device, touch input device, etc. Output devices 2116, such as a display, speakers, printer, etc. All of these devices are well known in the art and need not be described at length here.

[0156] In an implementation, a method of determining an amount of glycemic dysfunction is provided that includes receiving continuous glucose monitoring (CGM) and insulin data for a subject, the CGM and insulin data including an insulin bolus amount and a timing of the insulin bolus amount, performing a replay analysis of the CGM and insulin data, quantifying the amount of glycemic dysfunction using the replay analysis, and providing an output representative of the amount of glycemic dysfunction.

[0157] Implementations may include some or all of the following features: A first portion of the CGM and insulin data is estimated and a second portion of the CGM and insulin data is reported. The CGM and insulin data includes at least one of an estimated timing of the subject's meals or an estimated composition of the subject's meals. The CGM and insulin data includes misinformation regarding at least one of the timing of the subject's meals or the composition of the subject's meals. A portion of the CGM and insulin data is received from the subject. The CGM and insulin data includes an estimated metabolic state, an adjusted meal history, and a delivered insulin history in a time series form. The CGM and insulin data includes an estimated metabolic state, an adjusted estimated metabolic input, and a known metabolic input. The CGM and insulin data is discretized in time.

[0158] Implementations may also include some or all of the following features: Performing a replay analysis on the CGM and insulin data includes isolating the impact of estimated bolus timing, carbohydrate counts, and carbohydrate ratios relative to meals. Performing a replay analysis on the CGM and insulin data includes assessing the impact of a numerically optimal bolus at past bolus times by removing inaccurate carbohydrate counts and improper carbohydrate ratios using a replay simulation analysis. Performing a replay analysis on the CGM and insulin data includes assessing the impact of a numerically optimal bolus at estimated past meal times. Performing a replay analysis on the CGM and insulin data includes performing a replay simulation using at least one of the past CGM and insulin data, a numerically optimal bolus at past bolus times, or a numerically optimal bolus at estimated meal times. Performing a replay analysis on the CGM and insulin data includes generating a set of candidate boluses, simulating future blood glucose (BG) values ​​associated with each candidate bolus, scoring the simulated BG trajectory for each candidate bolus using a risk analysis, selecting and implementing the best bolus based on the score for each candidate bolus, and continuing to replay the simulation until the next bolus time. The risk analysis is a rate dependent risk analysis.

[0159] Implementations may also include some or all of the following features: Quantifying the amount of glycemic dysfunction includes quantifying an amount of dysfunction of an estimated bolus dose compared to an optimally timed bolus dose. Quantifying the amount of glycemic dysfunction includes quantifying an amount of dysfunction of a past bolus dose compared to an optimally timed bolus dose. Quantifying the amount of glycemic dysfunction includes quantifying patient compliance with ideal pre-meal bolus timing.

[0160] Implementations may also include some or all of the following features: The output includes at least one of a plot or visualization. The output includes a risk index including at least one of high blood glucose risk, low blood glucose risk, or total glycemic risk. The output includes a number and degree of excursions to out-of-range blood glucose. The output is indicative of glycemic dysfunction at a past time. Providing the output includes providing a visualization showing at least one of behavioral impact of glycemic dysfunction, past CGM and insulin data versus CGM replayed with optimal bolus at past bolus time, or past CGM and insulin data versus CGM replayed with optimal bolus at estimated meal time. The output includes a visualization of patient compliance with ideal pre-meal bolus timing. Meal management information is provided to the subject based on the amount of glycemic dysfunction. The meal management information includes pre-bolus timing information of the patient. The pre-bolus timing information includes a recommendation to the patient regarding bolus administration before a future type of meal.

[0161] In an implementation, a method for determining an amount of glycemic dysfunction is provided. The system includes a processor that receives continuous glucose monitoring (CGM) and insulin data for a subject, the CGM and insulin data including insulin bolus amounts and timing of insulin bolus amounts, a replay analyzer that uses the CGM and insulin data to generate a replay analysis, a quantifier that uses the replay analysis to quantify the amount of glycemic dysfunction, and an output device that provides an output representative of the amount of glycemic dysfunction.

[0162] Implementations may include some or all of the following features: A first portion of the CGM and insulin data is estimated and a second portion of the CGM and insulin data is reported. The CGM and insulin data includes at least one of an estimated timing of the subject's meals or an estimated composition of the subject's meals. The CGM and insulin data includes misinformation regarding at least one of the timing of the subject's meals or the composition of the subject's meals. A portion of the CGM and insulin data is received from a subject's computing device. The CGM and insulin data includes an estimated metabolic state, an adjusted meal history, and a delivered insulin history in a time series form. The CGM and insulin data includes an estimated metabolic state, an adjusted estimated metabolic input, and a known metabolic input. The CGM and insulin data is discretized in time.

[0163] Implementations may also include some or all of the following features: The replay analyzer separates the impact of estimated bolus timing, carbohydrate count, and carbohydrate ratio with respect to the meal. The replay analyzer assesses the impact of a numerically optimal bolus at a past bolus time by eliminating inaccurate carbohydrate counts and improper carbohydrate ratios using replay simulation analysis. The replay analyzer assesses the impact of a numerically optimal bolus at an estimated past meal time. The replay analyzer performs a replay simulation using at least one of the past CGM and insulin data, the numerically optimal bolus at a past bolus time, or the numerically optimal bolus at an estimated meal time. The replay analyzer is configured to generate a set of candidate boluses, simulate future blood glucose (BG) values ​​associated with each candidate bolus, score the simulated BG trajectory of each candidate bolus using a risk analysis, such as a rate-dependent risk analysis, pick and implement the best bolus based on the score of each candidate bolus, and continue replaying the simulation until the next bolus time.

[0164] Implementations may also include some or all of the following features: A quantifier quantifies the amount of impairment of an estimated bolus dose compared to an optimally timed bolus dose. A quantifier quantifies the amount of impairment of a past bolus dose compared to an optimally timed bolus dose. A quantifier quantifies a patient's compliance with an ideal pre-meal bolus timing.

[0165] Implementations may also include some or all of the following features: The output includes at least one of a plot or visualization. The output includes a risk index including at least one of hyperglycemic risk, hypoglycemic risk, or total glycemic risk. The output includes a number and degree of excursions to out-of-range blood glucose. The output is indicative of glycemic dysfunction at a past time. The output device provides a visualization showing at least one of the behavioral impact of glycemic dysfunction, past CGM and insulin data versus CGM replayed with optimal bolus at past bolus time, or past CGM and insulin data versus CGM replayed with optimal bolus at estimated meal time. A compliance engine is provided that is configured to provide a visualization of the patient's compliance with ideal pre-meal bolus timing. The output device provides meal management information to the subject based on the amount of glycemic dysfunction. The meal management information includes pre-bolus timing information of the patient. The pre-bolus timing information includes a recommendation to the patient regarding bolus administration before a future type of meal.

[0166] In an implementation, a method for determining an amount of glycemic dysfunction is provided, the method includes receiving past blood glucose (BG) data and past insulin data with a replay analyzer, performing a plurality of replay analyses of past boluses and estimated meals using the past BG data and the past insulin data, performing at least one remaining insulin (IOB) data analysis using at least one of the plurality of replay analyses, performing at least one BG data analysis using at least one of the plurality of replay analyses, performing at least one discrepancy analysis and at least one comparison using the at least one IOB data analysis and the at least one BG data analysis, and providing an output based on the at least one discrepancy analysis and the at least one comparison.

[0167] Implementations may include some or all of the following features: The BG data and insulin data include timing of insulin bolus amount and insulin bolus amount. A first portion of the BG data and insulin data is estimated and a second portion of the BG data and insulin data is reported. The BG data and insulin data include at least one of estimated timing of the subject's meals or estimated composition of the subject's meals. The BG data and insulin data include misinformation regarding at least one of timing of the subject's meals or composition of the subject's meals. A portion of the BG data and insulin data is received from the subject. The BG data and insulin data include an estimated metabolic state, an adjusted meal history, and a delivered insulin history in a time series form. The BG data and insulin data include an estimated metabolic state, an adjusted estimated metabolic input, and a known metabolic input. The BG data and insulin data are discretized in time.

[0168] Implementations may also include some or all of the following features: Performing the replay analysis includes isolating the impact of estimated bolus timing, carbohydrate count, and carbohydrate ratio with respect to the meal. Performing the replay analysis includes assessing the impact of a numerically optimal bolus at a past bolus time by eliminating inaccurate carbohydrate counts and improper carbohydrate ratios using a replay simulation analysis. Performing the replay analysis includes assessing the impact of a numerically optimal bolus at an estimated past meal time. Performing the replay analysis includes running a replay simulation at a past bolus time or at a time prior to the estimated meal. Running the replay analysis includes running a replay simulation using at least one of BG and insulin data, a numerically optimal bolus at a past bolus time, or a numerically optimal bolus at an estimated meal time. Performing the replay analysis includes generating a set of candidate boluses, simulating future blood glucose (BG) values ​​associated with each candidate bolus, scoring the simulated BG trajectory of each candidate bolus using a risk analysis, selecting and implementing a best bolus based on the score of each candidate bolus, and continuing to replay the simulation until the next bolus time. The risk analysis is a rate-dependent risk analysis. Performing the at least one discrepancy analysis includes quantifying an amount of impairment of an estimated bolus administration compared to an optimally timed bolus administration. Performing the at least one discrepancy analysis includes quantifying an amount of impairment of a past bolus administration compared to an optimally timed bolus administration. Performing the at least one discrepancy analysis includes quantifying a patient's compliance with an ideal pre-meal bolus timing.

[0169] Implementations may also include some or all of the following features: The output includes at least one of a plot or visualization. The output includes a risk index including at least one of high blood glucose risk, low blood glucose risk, or total glycemic risk. The output includes the number and extent of excursions to out-of-range blood glucose. The output is indicative of glycemic dysfunction at a past time. Providing the output provides a visualization showing at least one of the behavioral impact of glycemic dysfunction, BG data and insulin data versus BG data replay-simulated with an optimal bolus at a past bolus time, or BG data and insulin data versus BG data replay-simulated with an optimal bolus at an estimated meal time. The output includes a visualization of the patient's compliance with an ideal pre-meal bolus timing. Providing meal management information to the subject based on the amount of glycemic dysfunction. The meal management information includes pre-bolus timing information for the patient. The pre-bolus timing information includes a recommendation to the patient regarding bolus administration before a future type of meal.

[0170] In an implementation, a system for determining an amount of glycemic dysfunction is provided, the system including an input device configured to receive blood glucose (BG) data, insulin data, and a plurality of functions, a replay analyzer configured to receive the BG data, insulin data, and a plurality of functions, and to perform a plurality of replay analyses on past boluses and on estimated meals using the BG data, insulin data, and a plurality of functions, a residual insulin (IOB) assessor configured to perform a plurality of IOB assessments using at least one of the insulin data or the plurality of replay analyses, a BG risk profiler configured to perform a plurality of BG risk profiles using at least one of the BG data or the plurality of replay analyses, and a plurality of IOB assessments. an IOB profiler configured to perform a plurality of IOB profiles using at least one of the IOB risk profile plots, a BG risk comparator configured to determine at least one of a risk profile plot or a BG risk score using output of the BG risk profiler; a discrepancy analyzer configured to perform a plurality of discrepancy analyses using the IOB profiles and the IOB assessment to determine at least one of an IOB profile plot, an IOB discrepancy plot, or an IOB trace similarity score; and an output device configured to output at least one of the risk profile plot, the BG risk score, the IOB profile plot, the IOB discrepancy plot, or the IOB trace similarity score.

[0171] Implementations may include some or all of the following features: The BG data and insulin data include timing of insulin bolus amount and insulin bolus amount. A first portion of the BG data and insulin data is estimated and a second portion of the BG data and insulin data is reported. The BG data and insulin data include at least one of estimated timing of the subject's meals or estimated composition of the subject's meals. The BG data and insulin data include misinformation regarding at least one of timing of the subject's meals or composition of the subject's meals. A portion of the BG data and insulin data is received from the subject's computing device. The BG data and insulin data include an estimated metabolic state, an adjusted meal history, and a delivered insulin history in a time series form. The BG data and insulin data include an estimated metabolic state, an adjusted estimated metabolic input, and a known metabolic input. The BG data and insulin data are discretized in time.

[0172] Implementations may also include some or all of the following features: The replay analyzer separates the impact of estimated bolus timing, carbohydrate count, and carbohydrate ratio with respect to the meal. The replay analyzer assesses the impact of a numerically optimal bolus at a past bolus time by eliminating inaccurate carbohydrate counts and improper carbohydrate ratios using replay simulation analysis. The replay analyzer assesses the impact of a numerically optimal bolus at an estimated past meal time. The replay analyzer runs a replay simulation at a past bolus time or at a time prior to an estimated meal. The replay analyzer runs a replay simulation using at least one of BG and insulin data, a numerically optimal bolus at a past bolus time, or a numerically optimal bolus at an estimated meal time. The replay analyzer is configured to generate a set of candidate boluses, simulate future blood glucose (BG) values ​​associated with each candidate bolus, score the simulated BG trajectory of each candidate bolus using a risk analysis, select and implement a best bolus based on the score of each candidate bolus, and continue replaying the simulation until the next bolus time. The risk analysis is a rate-dependent risk analysis. The discrepancy analyzer quantifies an amount of impairment of an estimated bolus delivery compared to an optimally timed bolus delivery. The discrepancy analyzer quantifies an amount of impairment of a past bolus delivery compared to an optimally timed bolus delivery. The discrepancy analyzer quantifies patient compliance with an ideal pre-meal bolus timing.

[0173] Implementations may also include some or all of the following features: The output includes at least one of a plot or visualization. The output includes a risk index including at least one of high blood glucose risk, low blood glucose risk, or total glycemic risk. The output includes a number and degree of excursions to out-of-range blood glucose. The output is indicative of glycemic dysfunction at a past time. The output device provides a visualization showing at least one of the behavioral impact of glycemic dysfunction, BG data and insulin data versus BG data replay-simulated with optimal bolus at past bolus time, or CGM replay-simulated with optimal bolus at estimated meal time versus past BG data and insulin data. The output device is configured to provide a visualization of the patient's compliance with ideal pre-meal bolus timing. The output device provides meal management information to the subject based on the amount of glycemic dysfunction. The meal management information includes pre-bolus timing information of the patient. The pre-bolus timing information includes a recommendation to the patient regarding bolus administration before a future type of meal.

[0174] In an implementation, a method for providing a recommendation based on glycemic risk is provided, the method including: receiving at least one of a subject's past blood glucose (BG) data or past insulin data, the BG data and the insulin data including an insulin bolus amount and a timing of the insulin bolus amount; determining a first risk score of glycemic dysfunction of the subject based on at least one of the past BG data or the past insulin data; receiving at least one of optimal BG data or optimal insulin data for the subject; determining a second risk score of glycemic dysfunction of the subject based on at least one of the past BG data or the past insulin data; comparing the first risk score to the second risk score; and outputting a recommendation based on the comparison of the first risk score and the second risk score.

[0175] Implementations may include some or all of the following features: A first portion of the BG data and insulin data is estimated and a second portion of the BG data and insulin data is reported. The BG data and insulin data includes at least one of an estimated timing of the subject's meals or an estimated composition of the subject's meals. The BG data and insulin data includes misinformation regarding at least one of the timing of the subject's meals or the composition of the subject's meals. A portion of the BG data and insulin data is received from the subject. The BG data and insulin data includes an estimated metabolic state, an adjusted meal history, and a delivered insulin history in a time series form. The BG data and insulin data includes an estimated metabolic state, an adjusted estimated metabolic input, and a known metabolic input. The BG data and insulin data are discretized in time.

[0176] Implementations may also include some or all of the following features: Comparing the first risk score to the second risk score includes quantifying an amount of impairment of an estimated bolus dose compared to an optimally timed bolus dose; Comparing the first risk score to the second risk score includes quantifying an amount of impairment of a past bolus dose compared to an optimally timed bolus dose; Comparing the first risk score to the second risk score includes quantifying a patient's compliance with an ideal pre-meal bolus timing.

[0177] Implementations may also include some or all of the following features: The recommendation includes at least one of a plot or visualization. The recommendation includes a risk index including at least one of high blood glucose risk, low blood glucose risk, or total glycemic risk. The recommendation includes a number and degree of excursions to out-of-range blood glucose. The output is indicative of glycemic dysfunction in a past time. Outputting the recommendation includes providing a visualization showing at least one of behavioral impact of glycemic dysfunction, BG data and insulin data versus BG data replayed with optimal bolus at past bolus time, or BG data and insulin data versus BG data replayed with optimal bolus at estimated meal time. The recommendation includes visualization of patient compliance with ideal pre-meal bolus timing.

[0178] Implementations may also include some or all of the following features: The method further includes providing dietary management information to the subject based on the amount of glycemic dysfunction. The dietary management information includes pre-bolus timing information for the patient. The pre-bolus timing information includes a recommendation to the patient regarding a bolus administration before a future type of meal. The method further includes converting one or more blood glucose values ​​into a relative risk score that is consistent with the risk of diabetic complications or the degree of glycemic control. Each of the first risk score and the second risk score is assigned a single value or summarized over a time segment, such as a daily average risk score. The method further includes identifying and encouraging a subject behavior if the first risk score is close to the second risk score, because the amount and timing of insulin are close to ideal. The method further includes identifying and encouraging a subject behavior if the comparison between the first risk score and the second risk score is at least one of less than a predetermined percentage difference, within a score range or difference, or less than a threshold difference, because the amount and timing of insulin are close to ideal. The method further includes adjusting the amount or timing of an insulin bolus for a future similar meal if the first risk score is significantly greater than the second risk score, and further includes adjusting the amount or timing of an insulin bolus for a future similar meal if the comparison of the first risk score to the second risk score is at least one of a predetermined percentage difference or greater, outside a score range or difference, or a threshold difference or greater.

[0179] In an implementation, a method for assessing glycemic risk is provided, which includes: determining a past risk score of glycemic dysfunction based on at least one of past blood glucose (BG) data or past insulin data, where the past BG data and the past insulin data include an insulin bolus amount and a timing of the insulin bolus amount; determining an optimal risk score of glycemic dysfunction based on at least one of optimal BG data or optimal insulin data; determining a difference between the past risk score and the optimal risk score; and providing a recommendation based on the difference and based on a threshold value.

[0180] Implementations may include some or all of the following features: A first portion of the BG data and insulin data is estimated, and a second portion of the BG data and insulin data is reported. The BG data and insulin data includes at least one of an estimated timing of the subject's meals or an estimated composition of the subject's meals. The BG data and insulin data includes misinformation regarding at least one of the timing of the subject's meals or the composition of the subject's meals. A portion of the BG data and insulin data is received from the subject. The BG data and insulin data includes an estimated metabolic state in a time series form, an adjusted meal history, and a delivered insulin history. The BG data and insulin data includes an estimated metabolic state, an adjusted estimated metabolic input, and a known metabolic input. The BG data and insulin data are discretized in time. Determining the difference between the historical risk score and the optimal risk score includes quantifying an amount of impairment of the estimated bolus dose compared to an optimally timed bolus dose. Determining the difference between the historical risk score and the optimal risk score includes quantifying an amount of impairment of the historical bolus dose compared to an optimally timed bolus dose. Determining the difference between the historical risk score and the optimal risk score involves quantifying the patient's compliance with ideal pre-meal bolus timing.

[0181] Implementations may also include some or all of the following features: The recommendation includes at least one of a plot or visualization. The recommendation includes a risk index including at least one of high blood glucose risk, low blood glucose risk, or total glycemic risk. The recommendation includes a number and degree of excursions to out-of-range blood glucose. The output indicates glycemic dysfunction in the past time. Providing the recommendation includes providing a visualization showing at least one of behavioral impact of glycemic dysfunction, BG data and insulin data versus BG data replayed with optimal bolus at past bolus time, or BG data and insulin data versus BG data replayed with optimal bolus at estimated meal time. The recommendation includes visualization of patient compliance with ideal pre-meal bolus timing.

[0182] Implementations may also include some or all of the following features: The method further includes providing dietary management information to the subject based on the amount of glycemic dysfunction. The dietary management information includes pre-bolus timing information of the patient. The pre-bolus timing information includes a recommendation to the patient regarding a bolus administration before a future type of meal. The method further includes converting one or more blood glucose values ​​into a relative risk score that is consistent with the risk of diabetic complications or the degree of glycemic control. Each of the past risk scores and the optimal risk score is assigned a single value or summarized over a time segment, such as a daily average risk score. The method further includes identifying and encouraging the subject's behavior if the past risk score is close to the optimal risk score, because the amount and timing of insulin is close to ideal. The method further includes identifying and encouraging the subject's behavior if the difference between the past risk score and the optimal risk score is at least one of less than a predetermined percentage difference, within a score range or difference, or less than a threshold difference, because the amount and timing of insulin is close to ideal. The method further includes adjusting the amount or timing of an insulin bolus for a future similar meal if the past risk score is significantly greater than the optimal risk score, and adjusting the amount or timing of an insulin bolus for a future similar meal if the difference between the past risk score and the optimal risk score is at least one of a predetermined percentage difference or more, outside a score range or difference, or a threshold difference or more.

[0183] In an implementation, the method includes calculating a first IOB trace based on the actual bolus recording, calculating a second IOB trace of an optimal treatment, comparing the first IOB trace to the second IOB trace to determine an IOB similarity score, and using the IOB similarity score to modify at least one of a smart alert behavior, a user recommendation, a reporting function, and a visualization.

[0184] Implementations may include some or all of the following features: Comparing the traces includes determining a dot product between the unit magnitude traces to give a value ranging from 0 to 1, with 1 indicating that the actual and optimal dosing shapes are most similar. The method further includes thresholding or comparing the IOB similarity score against a current behavior, and using the thresholding or comparison to modify smart alert behaviors, user recommendations, reporting functions, and visualizations.

[0185] In an implementation, the system includes a discrepancy analyzer configured to determine an IOB similarity score using a comparison of a first IOB trace based on an actual bolus recording and a second IOB trace of an optimal treatment, and an output device configured to output the IOB similarity score.

[0186] Implementations may include some or all of the following features: The system further comprises an input device configured to calculate a first IOB trace based on the recording of the actual bolus and to calculate a second IOB trace of an optimal therapy.

[0187] It should be understood that the various techniques described herein may be implemented in connection with hardware or software components, or, where appropriate, a combination of both. Illustrative types of hardware components that may be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), and the like. The methods and apparatus of the presently disclosed subject matter, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in a tangible medium of expression, such as a floppy disk, a CD-ROM, a hard drive, or any other machine-readable storage medium, such that when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the presently disclosed subject matter.

[0188] Although example implementations may refer to utilizing aspects of the presently disclosed subject matter in the context of one or more stand-alone computer systems, the subject matter is not so limited, but rather may be implemented in connection with any computing environment, such as a network or distributed computing environment. Still further, aspects of the presently disclosed subject matter may be implemented within or across multiple processing chips or devices, and storage devices may similarly be implemented across multiple devices. Such devices may include, for example, personal computers, network servers, and handheld devices.

[0189] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims

1. A system for determining an amount of glycemic dysfunction, comprising: a data processor that receives continuous glucose monitoring (CGM) and insulin data for a subject, the insulin data including an insulin bolus amount and a timing of the insulin bolus amount; a replay analyzer that uses the CGM and insulin data to generate a replay analysis to determine the impact of a previously delivered inefficient or suboptimal bolus; a quantifier that quantifies the amount of glycemic dysfunction using the replay analysis; and an output device that provides an output representative of the amount of glycemic dysfunction for use in improving diabetes management.

2. The system of claim 1, wherein a first portion of the CGM and insulin data is estimated and a second portion of the CGM and insulin data is reported.

3. The system of claim 1, wherein the CGM and insulin data includes at least one of estimated timing of the subject's meals or estimated composition of the subject's meals.

4. The system of claim 1, wherein the CGM and insulin data includes misinformation regarding at least one of the timing of the subject's meals or the composition of the subject's meals.

5. The system of claim 1, wherein a portion of the CGM and insulin data is received from the subject's computing device.

6. The system of claim 1, wherein the CGM and insulin data includes an estimated metabolic state in time series form, an adjusted meal history, and a delivered insulin history.

7. The system of claim 1, wherein the CGM and insulin data includes an estimated metabolic state, an adjusted estimated metabolic input, and a known metabolic input.

8. The system of claim 1, wherein the CGM and insulin data are discretized in time.

9. The system of claim 1, wherein the replay analyzer separates the effects of estimated bolus timing, carbohydrate count, and carbohydrate ratio relative to the meal.

10. The system of claim 1, wherein the replay analyzer assesses the impact of a numerically optimal bolus at past bolus times by using replay simulation analysis to eliminate inaccurate carbohydrate counts and improper carbohydrate ratios.

11. The system of claim 1, wherein the replay analyzer assesses the impact of a numerically optimal bolus on estimated past meal times.

12. The system of claim 1, wherein the replay analyzer performs a replay simulation at a past bolus time or at a time before an estimated meal.

13. The system of claim 1, wherein the replay analyzer performs a replay simulation using at least one of past CGM and insulin data, a numerically optimal bolus at past bolus times, or a numerically optimal bolus at estimated meal times.

14. The replay analyzer according to claim 1, generating a set of candidate boluses; simulating future blood glucose (BG) values ​​associated with each candidate bolus; Scoring the simulated BG trajectory for each candidate bolus using a risk analysis; selecting and implementing the best bolus based on the score of each candidate bolus; and continuing to replay the simulation until the next bolus time.

15. The system of claim 14, wherein the risk analysis is a rate-dependent risk analysis.

16. The system of claim 1, wherein the quantifier quantifies the amount of dysfunction of an estimated bolus administration compared to an optimally timed bolus administration.

17. The system of claim 1, wherein the quantifier quantifies the amount of dysfunction of past bolus administrations compared to optimally timed bolus administrations.

18. The system of claim 1, wherein the quantifier quantifies patient compliance with ideal pre-meal bolus timing.

19. The system of claim 1, wherein the output includes at least one of a plot or a visualization.

20. The system of claim 1, wherein the output includes a risk index including at least one of high blood glucose risk, low blood glucose risk, or total glycemic risk.

21. The system of claim 1, wherein the output includes the number and degree of excursions into out-of-range blood glucose levels.

22. The system of claim 1, wherein the output indicates glycemic dysfunction at a past time.

23. The system of claim 1, wherein the output device provides a visualization showing at least one of the behavioral impact of the glycemic dysfunction, past CGM and insulin data vs. CGM replay simulated with optimal bolus at past bolus time, or past CGM and insulin data vs. CGM replay simulated with optimal bolus at estimated meal time.

24. The system of claim 1, further comprising a compliance engine configured to provide visualization of patient compliance with ideal pre-meal bolus timing.

25. The system of claim 1, wherein the output device provides dietary management information to the subject based on the amount of glycemic dysfunction.

26. The system of claim 25, wherein the dietary management information includes pre-bolus timing information for the patient.

27. ​​The system of claim 26, wherein the pre-bolus timing information includes a recommendation to the patient regarding bolus administration before a future type of meal.