Meal and Physical Activity Detection from Free-living Data for Discovering Disturbance Patterns to Glucose Levels in People with Diabetes

BioMedInformatics. 2022 Jun;2(2):297-317. doi: 10.3390/biomedinformatics2020019. Epub 2022 Jun 1.

Abstract

Objective: Interpretation of time series data collected in free-living has gained importance in chronic disease management. Some data are collected objectively from sensors and some are estimated and entered by the individual. In type 1 diabetes (T1D), blood glucose concentration (BGC) data measured by continuous glucose monitoring (CGM) systems and insulin doses administered can be used to detect the occurrences of meals and physical activities and generate the personal daily living patterns for use in automated insulin delivery (AID).

Methods: Two challenges in time-series data collected in daily living are addressed: data quality improvement and detection of unannounced disturbances to BGC. CGM data have missing values for varying periods of time and outliers. People may neglect reporting their meal and physical activity information. In this work, novel methods for preprocessing real-world data collected from people with T1D and detection of meal and exercise events are presented. Four recurrent neural network (RNN) models are investigated to detect the occurrences of meals and physical activities disjointly or concurrently.

Results: RNNs with long short-term memory (LSTM) with 1D convolution layers and bidirectional LSTM with 1D convolution layers have average accuracy scores of 92.32% and 92.29%, and outper-form other RNN models. The F1 scores for each individual range from 96.06% to 91.41% for these two RNNs.

Conclusions: RNNs with LSTM and 1D convolution layers and bidirectional LSTM with 1D convolution layers provide accurate personalized information about the daily routines of individuals. Significance: Capturing daily behavior patterns enables more accurate future BGC predictions in AID systems and improves BGC regulation.

Keywords: Data Preprocessing; Event Detection; Outlier Removal; Recurrent Neural Networks; Type 1 Diabetes.