1
|
Ibrahim M, Beneyto A, Contreras I, Vehi J. An ensemble machine learning approach for the detection of unannounced meals to enhance postprandial glucose control. Comput Biol Med 2024; 171:108154. [PMID: 38382387 DOI: 10.1016/j.compbiomed.2024.108154] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 09/05/2023] [Revised: 02/02/2024] [Accepted: 02/12/2024] [Indexed: 02/23/2024]
Abstract
BACKGROUND Hybrid automated insulin delivery systems enhance postprandial glucose control in type 1 diabetes, however, meal announcements are burdensome. To overcome this, we propose a machine learning-based automated meal detection approach; METHODS:: A heterogeneous ensemble method combining an artificial neural network, random forest, and logistic regression was employed. Trained and tested on data from two in-silico cohorts comprising 20 and 47 patients. It accounted for various meal sizes (moderate to high) and glucose appearance rates (slow and rapid absorbing). To produce an optimal prediction model, three ensemble configurations were used: logical AND, majority voting, and logical OR. In addition to the in-silico data, the proposed meal detector was also trained and tested using the OhioT1DM dataset. Finally, the meal detector is combined with a bolus insulin compensation scheme; RESULTS:: The ensemble majority voting obtained the best meal detector results for both the in-silico and OhioT1DM cohorts with a sensitivity of 77%, 94%, 61%, precision of 96%, 89%, 72%, F1-score of 85%, 91%, 66%, and with false positives per day values of 0.05, 0.19, 0.17, respectively. Automatic meal detection with insulin compensation has been performed in open-loop insulin therapy using the AND ensemble, chosen for its lower false positive rate. Time-in-range has significantly increased 10.48% and 16.03%, time above range was reduced by 5.16% and 11.85%, with a minimal time below range increase of 0.35% and 2.69% for both in-silico cohorts, respectively, compared to the results without a meal detector; CONCLUSION:: To increase the overall accuracy and robustness of the predictions, this ensemble methodology aims to take advantage of each base model's strengths. All of the results point to the potential application of the proposed meal detector as a separate module for the detection of meals in automated insulin delivery systems to achieve improved glycemic control.
Collapse
Affiliation(s)
- Muhammad Ibrahim
- Modeling, Identification and Control Engineering Laboratory (MICELab), Institut d'Informàtica i Aplicacions, Universitat de Girona, Girona, Spain
| | - Aleix Beneyto
- Modeling, Identification and Control Engineering Laboratory (MICELab), Institut d'Informàtica i Aplicacions, Universitat de Girona, Girona, Spain
| | - Ivan Contreras
- Modeling, Identification and Control Engineering Laboratory (MICELab), Institut d'Informàtica i Aplicacions, Universitat de Girona, Girona, Spain
| | - Josep Vehi
- Modeling, Identification and Control Engineering Laboratory (MICELab), Institut d'Informàtica i Aplicacions, Universitat de Girona, Girona, Spain; Centro de Investigación Biomédica en Red de Diabetes y Enfermedades Metabólicas Asociadas (CIBERDEM), Madrid, Spain.
| |
Collapse
|
2
|
Machine-Learning-Based Detection of Pressure-Induced Faults in Continuous Glucose Monitors. Ind Eng Chem Res 2023. [DOI: 10.1021/acs.iecr.2c03259] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 01/19/2023]
|
3
|
Daniels J, Herrero P, Georgiou P. A Deep Learning Framework for Automatic Meal Detection and Estimation in Artificial Pancreas Systems. SENSORS (BASEL, SWITZERLAND) 2022; 22:466. [PMID: 35062427 PMCID: PMC8781086 DOI: 10.3390/s22020466] [Citation(s) in RCA: 12] [Impact Index Per Article: 6.0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Grants] [Track Full Text] [Subscribe] [Scholar Register] [Received: 11/01/2021] [Revised: 12/27/2021] [Accepted: 01/05/2022] [Indexed: 05/13/2023]
Abstract
Current artificial pancreas (AP) systems are hybrid closed-loop systems that require manual meal announcements to manage postprandial glucose control effectively. This poses a cognitive burden and challenge to users with T1D since this relies on frequent user engagement to maintain tight glucose control. In order to move towards fully automated closed-loop glucose control, we propose an algorithm based on a deep learning framework that performs multitask quantile regression, for both meal detection and carbohydrate estimation. Our proposed method is evaluated in silico on 10 adult subjects from the UVa/Padova simulator with a Bio-inspired Artificial Pancreas (BiAP) control algorithm over a 2 month period. Three different configurations of the AP are evaluated -BiAP without meal announcement (BiAP-NMA), BiAP with meal announcement (BiAP-MA), and BiAP with meal detection (BiAP-MD). We present results showing an improvement of BiAP-MD over BiAP-NMA, demonstrating 144.5 ± 6.8 mg/dL mean blood glucose level (-4.4 mg/dL, p< 0.01) and 77.8 ± 6.3% mean time between 70 and 180 mg/dL (+3.9%, p< 0.001). This improvement in control is realised without a significant increase in mean in hypoglycaemia (+0.1%, p= 0.4). In terms of detection of meals and snacks, the proposed method on average achieves 93% precision and 76% recall with a detection delay time of 38 ± 15 min (92% precision, 92% recall, and 37 min detection time for meals only). Furthermore, BiAP-MD handles hypoglycaemia better than BiAP-MA based on CVGA assessment with fewer control errors (10% vs. 20%). This study suggests that multitask quantile regression can improve the capability of AP systems for postprandial glucose control without increasing hypoglycaemia.
Collapse
Affiliation(s)
- John Daniels
- Centre for Bio-Inspired Technology, Department of Electrical and Electronic Engineering, Imperial College London, London SW7 2AZ, UK; (P.H.); (P.G.)
| | | | | |
Collapse
|
4
|
An independent central point OPTICS clustering algorithm for semi-supervised outlier detection of continuous glucose measurements. Biomed Signal Process Control 2022. [DOI: 10.1016/j.bspc.2021.103196] [Citation(s) in RCA: 3] [Impact Index Per Article: 1.5] [Reference Citation Analysis] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 11/23/2022]
|
5
|
Beneyto A, Bequette BW, Vehi J. Fault Tolerant Strategies for Automated Insulin Delivery Considering the Human Component: Current and Future Perspectives. J Diabetes Sci Technol 2021; 15:1224-1231. [PMID: 34286613 PMCID: PMC8655284 DOI: 10.1177/19322968211029297] [Citation(s) in RCA: 3] [Impact Index Per Article: 1.0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Journal Information] [Submit a Manuscript] [Subscribe] [Scholar Register] [Indexed: 12/30/2022]
Abstract
Automated Insulin Delivery (AID) are systems developed for daily use by people with type 1 diabetes (T1D). To ensure the safety of users, it is essential to consider how the human factor affects the performance and safety of these devices. While there are numerous publications on hardware-related failures of AID systems, there are few studies on the human component of the system. From a control point of view, people with T1D using AID systems are at the same time the plant to be controlled and the plant operator. Therefore, users may induce faults in the controller, sensors, actuators, and the plant itself. Strategies to cope with the human interaction in AID systems are needed for further development of the technology. In this paper, we present an analysis of potential faults introduced by AID users when the system is under normal operation. This is followed by a review of current fault tolerant control (FTC) approaches to identify missing areas of research. The paper concludes with a discussion on future directions for the new generation of FTC AID systems.
Collapse
Affiliation(s)
| | | | - Josep Vehi
- Universitat de Girona, Girona, Spain
- Centro de Investigación Biomédica en Red de Diabetes y Enfermedades Metabólicas Asociadas, Madrid, Spain
| |
Collapse
|
6
|
A Hybrid Automata Approach for Monitoring the Patient in the Loop in Artificial Pancreas Systems. SENSORS 2021; 21:s21217117. [PMID: 34770425 PMCID: PMC8587755 DOI: 10.3390/s21217117] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Download PDF] [Figures] [Subscribe] [Scholar Register] [Received: 09/02/2021] [Revised: 10/18/2021] [Accepted: 10/23/2021] [Indexed: 11/16/2022]
Abstract
The use of automated insulin delivery systems has become a reality for people with type 1 diabetes (T1D), with several hybrid systems already on the market. One of the particularities of this technology is that the patient is in the loop. People with T1D are the plant to control and also a plant operator, because they may have to provide information to the control loop. The most immediate information provided by patients that affects performance and safety are the announcement of meals and exercise. Therefore, to ensure safety and performance, the human factor impact needs to be addressed by designing fault monitoring strategies. In this paper, a monitoring system is developed to diagnose potential patient modes and faults. The monitoring system is based on the residual generation of a bank of observers. To that aim, a linear parameter varying (LPV) polytopic representation of the system is adopted and a bank of Kalman filters is designed using linear matrix inequalities (LMI). The system uncertainty is propagated using a zonotopic-set representation, which allows determining confidence bounds for each of the observer outputs and residuals. For the detection of modes, a hybrid automaton model is generated and diagnosis is performed by interpreting the events and transitions within the automaton. The developed system is tested in simulation, showing the potential benefits of using the proposed approach for artificial pancreas systems.
Collapse
|
7
|
Mahmoudi Z, Del Favero S, Jacob P, Choudhary P. Toward an Optimal Definition of Hypoglycemia with Continuous Glucose Monitoring. COMPUTER METHODS AND PROGRAMS IN BIOMEDICINE 2021; 209:106303. [PMID: 34380077 DOI: 10.1016/j.cmpb.2021.106303] [Citation(s) in RCA: 1] [Impact Index Per Article: 0.3] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Subscribe] [Scholar Register] [Received: 01/20/2021] [Accepted: 07/17/2021] [Indexed: 06/13/2023]
Abstract
BACKGROUND AND OBJECTIVE As continuous glucose monitoring (CGM) becomes common in research and clinical practice, there is a need to understand how CGM-based hypoglycemia relates to hypoglycemia episodes defined conventionally as patient reported hypoglycemia (PRH). Data show that CGM identify many episodes of low interstitial glucose (LIG) that are not experienced by patients, and so the aim of this study is to use different PRH simulations to optimize CGM parameters of threshold (h) and duration (d) to provide the best PRH detection performance. METHODS The algorithm uses particle Markov chain Monte Carlo optimization to identify the optimal h and d which maximize an objective function for detecting PRH. We tested our algorithm by creating three different cases of PRH simulations. RESULTS We added three types of simulated PRH events to 10 weeks of anonymized CGM data from 96 type 1 diabetes people to see if the algorithm can detect the optimal parameters set out in the simulations. In simulation 1, we changed the locations of PRHs with respect to LIG episodes in the CGM signal to simulate random optimal LIG parameters for every individual. In simulation 2, the PRHs are CGM glucose <3.9 mmol/L followed by at least 20 min of rise > 0.11 mmol/L/min. Simulation 3 is like simulation 2 but with glucose threshold of 3.0 mmol/L. The median [interquartile range] of deviation between the optimized (found by the algorithm) and the optimal (known) h and d are -0.07% [-0.4, 1.9] and -1.3% [-5.9, 6.8], respectively across the subjects for simulation 1. The mean [min max] of the optimized LIG parameters are h = 3.8 [3.7, 3.8] mmol/L and d = 12 [10, 14] min for simulation 2 and they are h = 3.0 [2.9, 3] mmol/L and d = 10 [8, 14] min for simulation 3 across a 10-fold cross validation. CONCLUSIONS This work demonstrates the feasibility of the algorithm to find the best-fit definition of CGM-based hypoglycemia for PRH detection. In a prospective clinical study collecting CGM and PRH, the current algorithm will be used to optimize the definition of hypoglycemia with respect to PRH with the ambition of using the resulted definition as a surrogate for PRH in clinical practice.
Collapse
Affiliation(s)
- Zeinab Mahmoudi
- Department of Diabetes, School of Life Course Sciences, King's College London, UK; DTx, Scientific Modelling, Novo Nordisk A/S, Denmark
| | - Simone Del Favero
- Department of Information Engineering, University of Padova, Padova, Italy
| | - Peter Jacob
- Department of Diabetes, School of Life Course Sciences, King's College London, UK
| | - Pratik Choudhary
- Department of Diabetes, School of Life Course Sciences, King's College London, UK; Department of Diabetes, University of Leicester, UK.
| |
Collapse
|
8
|
Meneghetti L, Facchinetti A, Favero SD. Model-Based Detection and Classification of Insulin Pump Faults and Missed Meal Announcements in Artificial Pancreas Systems for Type 1 Diabetes Therapy. IEEE Trans Biomed Eng 2021; 68:170-180. [DOI: 10.1109/tbme.2020.3004270] [Citation(s) in RCA: 8] [Impact Index Per Article: 2.7] [Reference Citation Analysis] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 11/05/2022]
|
9
|
Fushimi E, Colmegna P, De Battista H, Garelli F, Sánchez-Peña R. Artificial Pancreas: Evaluating the ARG Algorithm Without Meal Announcement. J Diabetes Sci Technol 2019; 13:1035-1043. [PMID: 31339059 PMCID: PMC6835180 DOI: 10.1177/1932296819864585] [Citation(s) in RCA: 7] [Impact Index Per Article: 1.4] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Grants] [Track Full Text] [Journal Information] [Submit a Manuscript] [Subscribe] [Scholar Register] [Indexed: 11/16/2022]
Abstract
BACKGROUND Either under standard basal-bolus treatment or hybrid closed-loop control, subjects with type 1 diabetes are required to count carbohydrates (CHOs). However, CHO counting is not only burdensome but also prone to errors. Recently, an artificial pancreas algorithm that does not require premeal insulin boluses-the so-called automatic regulation of glucose (ARG)-was introduced. In its first pilot clinical study, although the exact CHO counting was not required, subjects still needed to announce the meal time and classify the meal size. METHOD An automatic switching signal generator (SSG) is proposed in this work to remove the manual mealtime announcement from the control strategy. The SSG is based on a Kalman filter and works with continuous glucose monitoring readings only. RESULTS The ARG algorithm with unannounced meals (ARGum) was tested in silico under the effect of different types of mixed meals and intrapatient variability, and contrasted with the ARG algorithm with announced meals (ARGam). Simulations reveal that, for slow-absorbing meals, the time in the euglycemic range, [70-180] mg/dL, increases using the unannounced strategy (ARGam: 78.1 [68.6-80.2]% (median [IQR]) and ARGum: 87.8 [84.5-90.6]%), while similar results were found with fast-absorbing meals (ARGam: 87.4 [86.0-88.9]% and ARGum: 87.6 [86.1-88.8]%). On the other hand, when intrapatient variability is considered, time in euglycemia is also comparable (ARGam: 81.4 [75.4-83.5]% and ARGum: 80.9 [77.0-85.1]%). CONCLUSION In silico results indicate that it is feasible to perform an in vivo evaluation of the ARG algorithm with unannounced meals.
Collapse
Affiliation(s)
- Emilia Fushimi
- Grupo de Control Aplicado (GCA), Instituto LEICI (UNLP-CONICET), Facultad de Ingeniería, Universidad Nacional de La Plata (UNLP), Argentina
- Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) Argentina
- Emilia Fushimi. Instituto LEICI (Grupo de Control Aplicado), Depto. Electrotecnia, Facultad de Ingeniería, Universidad Nacional de La Plata (UNLP),, Calle 48 y116, La Plata 1900, Argentina.
| | - Patricio Colmegna
- Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) Argentina
- University of Virginia (UVA), Center for Diabetes Technology, Charlottesville, VA, USA
- Universidad Nacional de Quilmes (UNQ), Argentina
| | - Hernán De Battista
- Grupo de Control Aplicado (GCA), Instituto LEICI (UNLP-CONICET), Facultad de Ingeniería, Universidad Nacional de La Plata (UNLP), Argentina
- Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) Argentina
| | - Fabricio Garelli
- Grupo de Control Aplicado (GCA), Instituto LEICI (UNLP-CONICET), Facultad de Ingeniería, Universidad Nacional de La Plata (UNLP), Argentina
- Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) Argentina
| | - Ricardo Sánchez-Peña
- Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) Argentina
- Universidad Nacional de Quilmes (UNQ), Argentina
| |
Collapse
|
10
|
Kölle K, Fougner AL, Ellingsen R, Carlsen SM, Stavdahl Ø. Feasibility of Early Meal Detection Based on Abdominal Sound. IEEE JOURNAL OF TRANSLATIONAL ENGINEERING IN HEALTH AND MEDICINE 2019; 7:3300212. [PMID: 32309058 PMCID: PMC6824555 DOI: 10.1109/jtehm.2019.2940218] [Citation(s) in RCA: 11] [Impact Index Per Article: 2.2] [Reference Citation Analysis] [Abstract] [Key Words] [Grants] [Track Full Text] [Download PDF] [Figures] [Subscribe] [Scholar Register] [Received: 04/23/2019] [Revised: 08/14/2019] [Accepted: 08/25/2019] [Indexed: 12/30/2022]
Abstract
In classical approaches for an artificial pancreas, continuous glucose monitoring (CGM) is the only measured variable used for insulin dosing and additional control functions. The CGM values are subject to time delays and slow dynamics between blood and the sensing location. These time lags compromise the controller's performance in maintaining (near to) normal glucose levels. Meal information could enhance the control outcome. However, meal announcement by the user is not reliable, and it takes 30 min to 40 min from meal onset until a meal is detected by methods based on CGM. In this pilot study, the use of bowel sounds for meal detection was investigated. In particular, we focused on whether bowel sounds change qualitatively during or shortly after meal ingestion. After fasting for at least 4 h, 11 healthy volunteers ingested a lunch meal at their usual time. Abdominal sound was recorded by a condenser microphone that was attached to the right upper quadrant of the abdomen by medical tape. Features that describe the power distribution over the frequency spectrum were extracted and used for classification by support vector machines. These classifiers were trained in a leave-one-out cross-validation scheme. Meals could be detected on average 10 min (std: 4.4 min) after they had started. Half of these were detected without false alarms. This shows that abdominal sound monitoring could provide an early meal detection. Further studies should investigate this possibility on a larger population in more general settings.
Collapse
Affiliation(s)
- Konstanze Kölle
- Department of Engineering CyberneticsNorwegian University of Science and Technology (NTNU)7491TrondheimNorway
- Department of EndocrinologySt. Olavs University Hospital7491TrondheimNorway
| | - Anders Lyngvi Fougner
- Department of Engineering CyberneticsNorwegian University of Science and Technology (NTNU)7491TrondheimNorway
| | - Reinold Ellingsen
- Department of Electronic SystemsNorwegian University of Science and Technology (NTNU)7491TrondheimNorway
| | - Sven Magnus Carlsen
- Department of EndocrinologySt. Olavs University Hospital7491TrondheimNorway
- Department of Clinical and Molecular MedicineNorwegian University of Science and Technology (NTNU)7491TrondheimNorway
| | - Øyvind Stavdahl
- Department of Engineering CyberneticsNorwegian University of Science and Technology (NTNU)7491TrondheimNorway
| |
Collapse
|
11
|
Kolle K, Biester T, Christiansen S, Fougner AL, Stavdahl O. Pattern Recognition Reveals Characteristic Postprandial Glucose Changes: Non-Individualized Meal Detection in Diabetes Mellitus Type 1. IEEE J Biomed Health Inform 2019; 24:594-602. [PMID: 30951481 DOI: 10.1109/jbhi.2019.2908897] [Citation(s) in RCA: 11] [Impact Index Per Article: 2.2] [Reference Citation Analysis] [Abstract] [MESH Headings] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 11/08/2022]
Abstract
Accurate continuous glucose monitoring (CGM) is essential for fully automated glucose control in diabetes mellitus type 1. State-of-the-art glucose control systems automatically regulate the basal insulin infusion. Users still need to manually announce meals to dose the prandial insulin boluses. An automated meal detection could release the user and improve the glucose regulation. In this study, patterns in the postprandial CGM data are exploited for meal detection. Binary classifiers are trained to recognize the postprandial pattern in horizons of the estimated glucose rate of appearance and in CGM data. The appearance rate is determined by moving horizon estimation based on a simple model. Linear discriminant analysis (LDA) is used for classification. The proposed method is compared to methods that detect meals when thresholds are violated. Diabetes care data from 12 free-living pediatric patients was downloaded during regular screening. Experts identified meals and their start by retrospective evaluation. The classification was tested by cross-validation. Compared to the threshold-based methods, LDA showed higher sensitivity to meals with a low rate of false alarms. Classifying horizons outperformed the other methods also with respect to time of detection. The onset of meals can be detected by pattern recognition based on estimated model states and consecutive CGM measurements. No individual tuning is necessary. This makes the method easily adopted in the clinical practice.
Collapse
|
12
|
|
13
|
Avila LO, De Paula M, Martinez EC, Errecalde ML. Robust insulin estimation under glycemic variability using Bayesian filtering and Gaussian process models. Biomed Signal Process Control 2018. [DOI: 10.1016/j.bspc.2018.01.019] [Citation(s) in RCA: 1] [Impact Index Per Article: 0.2] [Reference Citation Analysis] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 10/18/2022]
|
14
|
Unannounced Meals in the Artificial Pancreas: Detection Using Continuous Glucose Monitoring. SENSORS 2018; 18:s18030884. [PMID: 29547553 PMCID: PMC5876595 DOI: 10.3390/s18030884] [Citation(s) in RCA: 33] [Impact Index Per Article: 5.5] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Download PDF] [Figures] [Subscribe] [Scholar Register] [Received: 01/25/2018] [Revised: 03/08/2018] [Accepted: 03/14/2018] [Indexed: 11/22/2022]
Abstract
The artificial pancreas (AP) system is designed to regulate blood glucose in subjects with type 1 diabetes using a continuous glucose monitor informed controller that adjusts insulin infusion via an insulin pump. However, current AP developments are mainly hybrid closed-loop systems that include feed-forward actions triggered by the announcement of meals or exercise. The first step to fully closing the loop in the AP requires removing meal announcement, which is currently the most effective way to alleviate postprandial hyperglycemia due to the delay in insulin action. Here, a novel approach to meal detection in the AP is presented using a sliding window and computing the normalized cross-covariance between measured glucose and the forward difference of a disturbance term, estimated from an augmented minimal model using an Unscented Kalman Filter. Three different tunings were applied to the same meal detection algorithm: (1) a high sensitivity tuning, (2) a trade-off tuning that has a high amount of meals detected and a low amount of false positives (FP), and (3) a low FP tuning. For the three tunings sensitivities 99 ± 2%, 93 ± 5%, and 47 ± 12% were achieved, respectively. A sensitivity analysis was also performed and found that higher carbohydrate quantities and faster rates of glucose appearance result in favorable meal detection outcomes.
Collapse
|