Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Dec 28;14(1):31251.
doi: 10.1038/s41598-024-82649-4.

A reinforcement learning approach to effective forecasting of pediatric hypoglycemia in diabetes I patients using an extended de Bruijn graph

Affiliations

A reinforcement learning approach to effective forecasting of pediatric hypoglycemia in diabetes I patients using an extended de Bruijn graph

Mert Onur Cakiroglu et al. Sci Rep. .

Abstract

Pediatric diabetes I is an endemic and an especially difficult disease; indeed, at this point, there does not exist a cure, but only careful management that relies on anticipating hypoglycemia. The changing physiology of children producing unique blood glucose signatures, coupled with inconsistent activities, e.g., playing, eating, napping, makes "forecasting" elusive. While work has been done for adult diabetes I, this does not successfully translate for children. In the work presented here, we adopt a reinforcement approach by leveraging the de Bruijn graph that has had success in detecting patterns in sequences of symbols-most notably, genomics and proteomics. We translate a continuous signal of blood glucose levels into an alphabet that then can be used to build a de Bruijn, with some extensions, to determine blood glucose states. The graph allows us to "tune" its efficacy by computationally ignoring edges that provide either no information or are not related to entering a hypoglycemic episode. We can then use paths in the graph to anticipate hypoglycemia in advance of about 30 minutes sufficient for a clinical setting and additionally find actionable rules that accurate and effective. All the code developed for this study can be found at: https://github.com/KurbanIntelligenceLab/dBG-Hypoglycemia-Forecast .

PubMed Disclaimer

Conflict of interest statement

Declarations. Competing interests: The authors declare no competing interests. Ethics statement: The study methodology, consent, and assent forms were approved by the Institutional Review Boards of Texas A &M University (IRB2019-0378F) and Sidra Medicine (1536095). After being informed about the study’s specifics, adolescents and their parents/guardians signed written informed consent and parental permission forms. All participants were recruited from T1D patients getting treatment at Sidra Medicine’s Endocrinology and Diabetic Clinic in Qatar. All methods were performed in accordance with relevant guidelines and regulations.

Figures

Fig. 1
Fig. 1
(Left) shows critical pathways that cause hypoglycemia–insulin cannot be decreased and glucagon cannot be increased. (Right) physiological response. The graphic exposes both the complexity and challenges in determining this state which is often defined only by plasma glucose between 55-70 mg/dl often occurring when therapeutic intervention includes meglitinides, sulfonylureas, or insulin since drugs themselves are among the most common causes. Glu (glucose), INS (insuline), EPI (epinephrine).
Fig. 2
Fig. 2
A sample time series for adolescent T1D showing BG levels. The green region is normal (safe), yellow is the margin between normal and abnormal, and red is abnormal where BG levels are life-threatening. The problem is of two types: classify, but also forecasting. (A) shows a collection of paths that lead to the abnormal region. (B, C) looks as though they will be in the abnormal, but are not.
Fig. 3
Fig. 3
(I) A dBG for 4-tuples over formula image. Observe the Eularian path (A,B,formula image, P) that captures all tuples. Many properties exist like reflection of graph. The de Bruijn sequence itself is lower left, A the start and P the end and is the most efficient encoding. By moving of this so-called drum, each 4-tuple can be recovered. (II) A snapshot of 15 minute intervals of a pediatric patient BG levels. We selected one that was reasonably easy to visualize, but even this one exhibits challenges in data. (III) A representation of the discretization and symbolics for II. Observe that the sharp changes in II. are still captured representing idiosyncrasies of the patient–perhaps exercise, eating, napping, signal problems. (IV) This shows a portion of our dBG representation. The path is shown (A,B,formula image,I) given unique four-tuples with edges showing counts that characterize patterns beginning with 10.
Fig. 4
Fig. 4
(Left) A high-level visualization of a dBG with 97 nodes and 167 edges using all available patients. The dBG is pruned with 10 uniform weight threshold. There are three BG regions: hyperglycemic, normal, and hypoglycemic. Dark blue nodes correspond to hypoglycemic values, while red nodes denote hyperglycemic values. (White arrows) Edge thickness indicates the frequency of the k-tuples, offering visual insight into their prevalence. (Brown arrows) There are only a few paths between the three regions and interestingly, all paths must path through normal BG. These ingress/egress paths are at the kernel of rules for anticipating hypoglycemia. (Right) Evaluation of patient results using leave-one-out cross-validation. We assessed the Balanced Accuracy, Precision, Sensitivity, and Specificity for all patients employing the leave-one-out cross-validation method. The average scores across all patients were 0.844, 0.268, 0.801, and 0.887 for these metrics, respectively. Additionally, the model achieved an F1 score of 0.402 and an Area Under the Curve of 0.89. These evaluations were conducted using adaptive pruning and with the parameters formula image.
Algorithm 1
Algorithm 1
AdaptivePruning.
Algorithm 2
Algorithm 2
GetProbability.
Fig. 5
Fig. 5
Timelines of alert predictions for P21. Correct and wrong predictions are marked with different colors. Gray data points are not used for evaluation, possibly due to the patient already being in a hypoglycemic state or gaps in the timeline. The upper timeline uses our dBG model, while the lower timeline uses the supervision ruleset along with the dBG model. Parameters: formula image.
Fig. 6
Fig. 6
Forecast times for every hypoglycemia case across all patients. The figure excludes 10 instances where our model did not issue warnings for hypoglycemic cases. Despite these, our model consistently forecasts hypoglycemia with a notable 30-minute lead time in the majority of cases, as denoted by the thick green marker in the figure.

Similar articles

References

    1. GBD 2021 Death Collaborators. Global burden of 288 causes of death and life expectancy decomposition in 204 countries and territories and 811 subnational locations, 1990–2021: a systematic analysis for the Global Burden of Disease Study 2021. Lancet403(10440), 2100–2132 (2024). - PMC - PubMed
    1. GBD 2021 Diabetes Collaborators. Global, regional, and national burden of diabetes from 1990 to 2021, with projections of prevalence to 2050: a systematic analysis for the Global Burden of Disease Study 2021. Lancet402(10397), 203–234 (2023). - PMC - PubMed
    1. Lin, X., Xu, Y., Pan, X. et al. Global, regional, and national burden and trend of diabetes in 195 countries and territories: an analysis from 1990 to 2025. Sci. Rep., 10(14790). - PMC - PubMed
    1. Lawrence, J.M., Cadagrande, S.S., Herman, W.H. et al.Diabetes in America. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK), (2023). - PubMed
    1. Leon, B. M. & Maddox, T. M. Diabetes and cardiovascular disease: Epidemiology, biological mechanisms, treatment recommendations and future research. World J. Diabetes6(13), 1246–1258 (2015). - PMC - PubMed

LinkOut - more resources