Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Personalized machine learning models for noninvasive hypoglycemia detection in people with type 1 diabetes using a smartwatch: Insights into feature importance during waking and sleeping times

  • Yasmine M. Mohamed,

    Roles Conceptualization, Data curation, Formal analysis, Methodology, Software, Writing – original draft, Writing – review & editing

    Affiliation Lucerne University of Applied Sciences and Arts, Lucerne, Switzerland

  • José Mancera,

    Roles Conceptualization, Formal analysis, Writing – review & editing

    Affiliation Lucerne University of Applied Sciences and Arts, Lucerne, Switzerland

  • Andreas Brandenberg,

    Roles Conceptualization, Resources, Writing – review & editing

    Affiliation Lucerne University of Applied Sciences and Arts, Lucerne, Switzerland

  • Stefan Fischli ,

    Roles Data curation, Investigation, Project administration, Resources, Writing – original draft, Writing – review & editing

    ☯ These authors share last authorship.

    Affiliation Division of Endocrinology, Diabetes and Clinical Nutrition, Lucerne Cantonal Hospital, Lucerne, Switzerland

  • Michael M. Havranek

    Roles Data curation, Formal analysis, Project administration, Validation, Writing – original draft, Writing – review & editing

    michael.havranek@unilu.ch

    ☯ These authors share last authorship.

    Affiliation Competence Center for Health Data Science, Faculty of Health Sciences and Medicine, University of Lucerne, Lucerne, Switzerland

Abstract

Hypoglycemia is a major challenge for people with diabetes. Therefore, glycemic monitoring is an important aspect of diabetes management. However, current methods such as finger pricking and continuous glucose monitoring systems (CGMS) are invasive, and hypoglycemia has still been shown to occur despite advancements in CGMS. Consequently, a growing body of research has been directed toward noninvasive hypoglycemia detection, relying on data from medical devices and wearables that can record physiological changes elicited by hypoglycemia. Consumer-grade wearables such as smartwatches remain an attractive yet underexplored candidate for such applications. Therefore, we explored the potential of a consumer-grade wearable for hypoglycemia prediction and investigated differing feature importance during waking and sleeping times. Smartwatch data from 18 adults with type 1 diabetes was collected, preprocessed, and imputed. Machine learning (ML) models were built using a tree-based ensemble algorithm to detect hypoglycemic events registered by CGMS. Models were built in a personalized manner using the same participant’s data for training and testing, with separate modeling for daytime and nighttime. The relative importance of input features on model decisions was analyzed using SHAP (SHapley Additive exPlanations). Seventeen personalized models were built with an average area under the receiver operating characteristic curve (AUROC) score of 0.74 ± 0.08. Average specificity and sensitivity were 0.76 ± 0.18 and 0.71 ± 0.15, respectively. Time-of-day, activity, and cardiac features showed comparable importance in daytime models (29.9%, 28.5%, and 24%, respectively), while in nighttime models, cardiac features demonstrated the highest importance (42.2%) followed by time-of-day features (37.5%) and respiratory features (15.2%). In summary, we demonstrate the potential of consumer-grade wearables in noninvasive hypoglycemia detection. By additionally considering different physiological states (waking and sleeping) during modeling, our results offer further insights into differences in relative feature importance influencing the model’s decision, guiding future research in this area.

Introduction

Diabetes is one of the most common chronic diseases worldwide [1]. To date, it has no cure and is managed by maintaining a balance of diet, exercise, and medication [2]. In type 1 diabetes, hypoglycemic episodes (i.e., low blood glucose level) are a major challenge in disease management and have been associated with increased morbidity (through falls, road accidents, etc.) and mortality [3,4]. Hypoglycemia additionally imposes a psychological burden due to its unpredictable nature and the related feelings of fear, affecting quality of life [3,5]. Therefore, glycemic monitoring is an important aspect of diabetes management. Invasive methods such as finger pricking and continuous glucose monitoring systems (CGMS) are currently utilized for this purpose, and while CGMS have improved glycemic monitoring by providing real-time feedback [6], recent reports have shown that hypoglycemic events are still experienced despite their use [7,8]. This highlights the need for additional supportive tools for diabetes management. Thus, a growing body of research is aiming to develop noninvasive alternatives for hypoglycemia detection, due to the immediate risks it poses.

Importantly, hypoglycemia is known to elicit changes in physiological parameters, such that several studies have attempted to investigate and leverage these changes to noninvasively predict hypoglycemia occurrence. The effect of hypoglycemia on cardiac parameters, such as heart rate and heart rate variability (HRV), has been a major focus of this approach [916]. For example, Olde Bekkink et al. [9] investigated changes in HRV due to hypoglycemia using electrocardiogram (ECG) data collected by a wearable medical patch, finding varied HRV patterns in response to hypoglycemia among individuals. Another study by Fellah Arbi et al. [10] trained recurrent convolutional neural networks to determine blood glucose levels based on ECG data collected using a wearable medical patch. More recently, Dave et al. [11] reported the development of personalized fusion models and achieved area under the curve values of 0.75 for detecting hypoglycemia and 0.78 for hyperglycemia, using ECG signals obtained via a chest strap.

However, the medical devices and wearables (e.g., ECG equipment, chest strap/patch) employed for data collection in these studies are either inapplicable or impractical in real-life settings. Consumer-grade wearables (such as smartwatches) are promising alternatives but remain underexplored in this context since they are generally perceived as less reliable [17], despite their many attractive features such as practicality, ubiquity, and usability. To our knowledge, only one previous study has attempted to use physiological data from consumer-grade wearables for noninvasive hypoglycemia detection, by combining two different wrist-worn wearables. Data from 22 participants was collected over 30 days and used to train a decision tree-based machine learning model that detected hypoglycemia with an area under the receiver operating characteristic curve (AUROC) score of 0.76 using 37 input features, categorized into cardiac, motion, electrodermal activity, and time features [18].

While time-related features were incorporated as an input to the model, no distinction was made between data collected during waking and sleeping times during modeling. Cross-subject validation was employed, wherein data from one participant was used for training the model while testing and validation was performed on data from another paired participant. This approach and others such as leave-one-out cross-validation, where data from all participants but one is used for model training while testing is performed on the left-out participant, allow for more reliable evaluation of model performance by avoiding possible data leakage. However, they might not be readily implementable in practice as they necessitate continuous model calibration across geographical regions and populations to account for interpersonal differences and allow generalizability, which is difficult to maintain as it requires ongoing labeled data that is not easily obtainable in medical contexts.

In this study, we investigated the potential of using a commercially available smartwatch for noninvasive detection of hypoglycemia using a combination of physiological and motion data. We distinguished between waking and sleeping times by creating separate machine learning models to account for important variations in physiological parameters between these two states [1921]. This methodology allowed us to incorporate input features based on their relevance to the time of day (e.g., physical activity is more relevant during the day). Analysis of the relative importance of input features provided insights into the differential influence of these features on model decisions during waking and sleeping times. Moreover, we employed a custom modeling approach that enabled building personalized models for each participant using their own data; this strategy addressed the challenges of using same-participant time series data where the risk of data leakage is a concern. As such, our personalized approach facilitates more practicable real-life implementation (e.g., in the form of a smartwatch application) while circumventing the pitfalls of the aforementioned approaches.

Materials and methods

Study design and population

Eighteen adults with type 1 diabetes (12 males, 6 females, aged 36.7 ± 13.2 years) were recruited in the endocrinology and diabetology division at the Lucerne Cantonal Hospital between May 2023 and June 2024. Participants were using multiple daily injections (MDI) or conventional subcutaneous insulin infusion (CSII) without a hybrid closed-loop system. Exclusion criteria included having comorbidities, use of medication affecting the heart rate, severe hypoglycemia unawareness (Clarke score ≥4), and regular strenuous physical activity. Full inclusion and exclusion criteria are listed in S1 Table. The study was approved by the Ethics Committee of Northwest and Central Switzerland (EKNZ 2023−00229). All methods in this study were performed in accordance with the relevant guidelines and regulations, and all participants provided written informed consent.

Procedure and data collection

Participants were provided with a blinded continuous glucose monitor (Dexcom G6) to record hypoglycemia outcomes and a smartwatch (Apple Watch Series 8) to collect the predictor variables consisting of heart rate (HR), heart rate variability (HRV), step count, energy expenditure, blood oxygen saturation (BOS), respiratory rate (RR), and time of day. Measurement intervals of the predictor variables were dictated by the Apple Watch itself. In addition, participants were asked to routinely measure their capillary blood glucose at least four times per day, as well as in cases of suspected hypoglycemia for validation purposes. Other CGMS apart from the blinded system were not permitted. Participants were given diaries to manually record information about mealtimes, meal content, insulin usage, capillary glucose measurements, and sleeping times. Data was collected for 10 days (i.e., the maximum duration of data collection by Dexcom G6), during which time participants carried out their normal daily activities. Data from all sources were merged based on timestamps, with each data point representing 1 minute.

Outcome and predictors

Data collected from the CGMS was used to label the dataset with an outcome variable annotated as “1” when glucose levels dropped to <4 mmol/L for at least 15 minutes, and “0” otherwise. Table 1 summarizes the parameters collected from all data sources, including frequency of measurement, imputation methods, and engineered features. Fifteen input variables were derived in total: 13 from smartwatch data and two from manually documented data (i.e., mealtimes and short-acting insulin usage). Data imputation was performed by backfilling CGMS data for up to 5 minutes and forward filling HRV, RR, and BOS based on measurement frequency to avoid the possibility of data leakage from future data points.

thumbnail
Table 1. Data sources, imputation methods, and engineered features.

https://doi.org/10.1371/journal.pone.0325956.t001

Input features were derived either by direct usage of imputed features or by feature engineering (e.g., lagging features such as rolling averages; see Table 1). An additional HRV feature tracked the difference from the previous measurement, if available. Time-of-day features were derived from sine and cosine transformations of the hour of day to capture the cyclic nature of time.

Manually documented data (mealtimes and short-acting insulin usage) were simply recorded as “1” regardless of composition or dosage. Time since the last meal was added as an ordinal feature and insulin on board was estimated at 100%, 75%, 50%, and 25% over the 4 hours following short-term insulin usage. The manually-documented mealtimes and insulin usage were deliberately included in this simplistic manner in the modeling to enable a potential practical implementation in the future (e.g., in the form of a smartwatch application, see also the discussion section).

Model building, evaluation, and interpretability

Binary classification models were built in Python (version 3.9.13) using XGBoost (eXtreme Gradient Boosting), a tree-based ensemble machine learning algorithm, owing to its effectiveness and ability to handle missing values [22]. Model output was the ability to detect the positive class, i.e., occurrence of hypoglycemia. Data were split using a custom method wherein days/nights with hypoglycemic events were iteratively selected as the test dataset, while the remaining data comprised the training dataset (see next section for more details). To overcome the large imbalance in the dataset, random undersampling was applied to the training dataset, while the test dataset remained imbalanced. Undersampling was preferred to oversampling techniques such as SMOTE (synthetic minority over-sampling technique) to avoid disrupting the temporal order of the data and training with redundant data points, possibly leading to model overfitting. Modeling was repeated using 10 different random states for undersampling to ensure reproducibility. Data was standardized prior to model training. Model hyperparameters were tuned to avoid overfitting by setting the L1 and L2 regularization terms to 10.

Waking and asleep states were modeled separately due to differentially available features (e.g., step count is irrelevant during sleep) and differences in physiological ranges for some variables (such as HR and HRV). Moreover, some parameters were exclusively measured during the night (e.g., RR and BOS). For prolonged nocturnal hypoglycemic events (n = 3), a cutoff value of 180 minutes was applied. Two participants (P03, P13) with incomplete meal records were modeled without mealtime-derived features.

Model performance was evaluated using the AUROC value. Sensitivity and specificity were calculated using the optimal threshold identified via Youden’s J statistic [23], while the ability of the model to predict a hypoglycemic event within the first 15 minutes was also assessed. Model interpretability was derived by analysis of SHAP (SHapley Additive exPlanations) values to demonstrate the impact of different features on the model’s output [24]. The code used in this study is available on GitHub (https://github.com/YMM-0/smartwatch_hypo_detection.git) and the data on Zenodo (https://zenodo.org/records/15309060). Fig 1 shows an overview of the information provided here in the methodology section.

Custom train/test split

We devised a custom methodology to enable building personalized models using data from the same patient for training and testing. Due to the timeseries nature of the data, the rows of the dataset are not i.i.d. (independently and identically distributed), therefore splitting the dataset randomly would lead to data leakage and an over-performing model. Ideally, a time series (or temporal) split is the method of choice; however, due to the uncertainty of hypoglycemia occurring toward the end of the participation period, strictly splitting the dataset on a temporal basis was rendered unfeasible. Instead, splitting the dataset was performed using a custom methodology.

Each day/night in the dataset was given a unique identifier as defined by the participant’s waking and sleeping times. The dataset was then divided into a so-called “day” dataset comprising days only and a “night” dataset comprising nights only. Days/nights where one or more hypoglycemic events occurred were identified. In an iterative process, the dataset was split so that a day/night where hypoglycemia occurred was singled out as the test dataset and the remaining days/nights comprised the training dataset, as depicted in Fig 2. It is important to note that the test dataset of one iteration was used to evaluate the model performance of that iteration only, in order to avoid reporting over-performing results from learning across iterations. The results from all iterations were finally averaged across iterations to provide the average result of the individualized prediction model of that participant.

thumbnail
Fig 2. Shown is the custom train/test split methodology.

a. Each day/night is given a unique identifier. b. The dataset is divided into “day” and “night” datasets. Days/nights where one or more hypoglycemic events were experienced by the participant are identified (highlighted in grey). c. Considering the night dataset to illustrate our approach, the custom training/test split is performed iteratively and each night where hypoglycemia occurred is singled out as the test dataset; the remaining days/nights comprise the training dataset.

https://doi.org/10.1371/journal.pone.0325956.g002

Results

Recruitment and population characteristics

Among the 18 recruited participants, four were excluded due to technical problems leading to data loss and three because they experienced no or very short hypoglycemic events (Fig 3). Thus, 11 participants (9 males, 2 females) were included in the final analysis, aged 39 ± 12 years (mean ± SD), weighing 85 ± 17 kg, and with a BMI of 26.2 ± 2.9, HbA1c of 7.1% ± 0.46%, and disease duration of 15.6 ± 5.5 years (Table 2).

thumbnail
Table 2. Main characteristics of the final included study population.

https://doi.org/10.1371/journal.pone.0325956.t002

thumbnail
Fig 3. Flowchart depicting the recruitment process, showing the reasons for excluding participants at different stages.

In total, 18 participants were recruited. Four individuals encountered technical issues leading to data loss, meaning there were 14 participants with sufficient data. Among these, three participants experienced no or very short (< 15 minutes) hypoglycemic events; thus, data from 11 participants was ultimately included in the final analysis.

https://doi.org/10.1371/journal.pone.0325956.g003

Model performance

While all participants experienced one or more daytime hypoglycemic events, only six participants experienced hypoglycemia at nighttime. Consequently, we report the performance of 17 personalized predictive models (11 daytime and 6 nighttime). Evaluation of model performance yielded an average AUROC score of 0.74 ± 0.08, and average specificity and sensitivity of 0.76 ± 0.18 and 0.71 ± 0.15, respectively. Individual model performances are shown in Fig 4.

thumbnail
Fig 4. Performance of personalized models and contribution of feature categories to model predictions.

a. Daytime model performance visualized via AUROC; each curve represents model performance for one participant. Participants P03 and P13 (*) were modeled without mealtime-derived features (see main text). b. Nighttime model performance. c. Average relative importance of feature categories to model predictions. “Cardiac” features comprise HR and HRV features, “Time” features are sine and cosine transformations of the hour of day, “Activity” features comprise step count and active energy expenditure features, and “Manual” features are time elapsed since the last meal and insulin on board.

https://doi.org/10.1371/journal.pone.0325956.g004

Daytime modeling showed overall adequate performance for all participants, out of which two (P03 & P13) were modeled without the mealtime-derived feature due to incomplete meal records (Fig 4A). Nighttime modeling was possible for four out of six participants (Fig 4B) but could not be performed for two others who experienced inconsistent sleeping times and/or sleep restrictions due to night shifts or military service. Among modeled hypoglycemic events (n = 101), 60.4% were identified by the model at any time during the event and 36.6% were identified within the first 15 minutes.

Model interpretability

Analysis of absolute SHAP values averaged across all participants indicated that for daytime modeling, the time-of-day, activity, and cardiac features made comparable contributions to the model’s decision (29.9%, 28.5%, and 24% contribution to the model’s decision, respectively), whereas manual features accounted for 17.6%. For nighttime models, cardiac features demonstrated the highest importance (42.2%), followed by time-of-day features (37.5%), and respiratory features (15.2%), whereas manual features showed minimal importance (Fig 3C). Table 3 details the breakdown of the results of this analysis and the average relative importance of individual features.

thumbnail
Table 3. Relative importance of feature categories and individual features averaged among participants.

https://doi.org/10.1371/journal.pone.0325956.t003

Discussion

In this study, we demonstrated the potential of using a consumer-grade smartwatch for noninvasive hypoglycemia detection in people with type 1 diabetes. The results showed adequate model performance (average AUROC of 0.74 ± 0.08) using 10 or 13 input features for sleeping and waking models, respectively, and support previous research by Lehman et al. [18] who reported an AUROC value of 0.76 ± 0.07 using a set of 37 features.

Our reported feature importance also aligns with prior reports. Time-of-day and cardiac features were highly important, as in previous studies [18,25]. The importance of cardiac features in both daytime and nighttime models is consistent with existing findings regarding the effects of hypoglycemia on the cardiovascular system [13,26]. The low importance of HRV features in daytime models is likely due to infrequent HRV measurements by the Apple Watch during the day, resulting in limited HRV data. This explanation is supported by the greater importance of HRV features observed in nighttime models, where measurements were made more frequently and consistently. Nighttime modeling could not be performed for two participants with sleep restrictions and/or inconsistent sleeping times. Given the strong influence of time-of-day features on the model output, it is clear that inconsistent sleep patterns impair model performance. Also, sleep restriction reportedly affects HRV [27,28], another prominent feature in model predictions. Thus, sleep quality must be considered as an important factor when detecting hypoglycemia noninvasively using consumer-grade wearables.

Two physiological parameters, RR and BOS, have not been considered in similar previous research. Our analysis revealed that these respiratory features exhibit a collective importance comparable to that of HRV in nighttime models. This finding is in agreement with reports that demonstrated that hypoglycemia leads to respiratory responses such as hyperventilation [29,30].

The importance of the additional manually-collected features, namely the time since last meal and insulin on board, was found to be the lowest in both daytime and nighttime models. It is worth noting that we included both of these features in modeling in a simplistic manner to allow for practical implementation in real-life settings (e.g., in the form of a smartwatch application, a shortcut option to quickly log a meal or insulin administration could be implemented).

Overall, the present results are promising despite the challenges of the employed real-life setting, data discontinuity from the Apple Watch, simplistic reporting of mealtimes and insulin usage, and a relatively low number of input features. Our personalized approach renders practical application feasible; modeling using the individual’s own data i) accommodates interpersonal differences in daily habits, activity levels, and ranges of physiological parameters, as well as varying physiological responses to hypoglycemia [9], ii) allows the model to be continuously retrained and updated to reflect changes in one’s lifestyle, and iii) circumvents challenges of using a shared model built on data from several individuals where continuous model calibration across geographical regions and populations is necessary for generalizability. Notably, the relative importance of input features varied between participants, which further supports this approach.

Considering the limitations of this study, we acknowledge the relatively limited number of participants that were included in the final analyses. However, the number of recorded hypoglycemic events exceeded or was comparable to that in previous studies [9,14,15]. Nevertheless, the small sample size and relatively short data collection period may limit the potential generalizability of our findings. Another aspect that limits generalizability is the inclusion criteria employed in the study, which may have introduced a selection bias. Moreover, despite a partially balanced gender distribution in the initially recruited population, a gender imbalance was present in the included population. Thus, future studies with longer duration and larger, more diverse samples are needed to replicate and confirm our findings. In addition, different smartwatch brands and models should be investigated to ensure reproducibility, due to variations in sensor technology.

Possible methods to improve future model performance include: (i) incorporating continuous data collection for most or all parameters with few or no missing data points, which would omit the need for data imputation and provide more granular data for model training; and (ii) including electrodermal activity data as an input feature, given its reported importance for hypoglycemia detection [18,31].

In conclusion, this study demonstrates the potential for noninvasive hypoglycemia detection using data from a consumer-grade wearable. The personalized methodology we employed supports practical implementation and could provide an additional health management tool for people with diabetes. In addition, the reported relative importance of input features in waking and sleeping states offers valuable insights into the most influential parameters to be considered in future research.

Supporting information

S1 Table. List of inclusion and exclusion criteria.

https://doi.org/10.1371/journal.pone.0325956.s001

(DOCX)

Acknowledgments

The authors thank Gabriela Gallo (Clinical Study Coordinator, Lucerne Cantonal Hospital) for support during the recruitment phase.

References

  1. 1. Sun H, Saeedi P, Karuranga S, Pinkepank M, Ogurtsova K, Duncan BB, et al. IDF diabetes atlas: Global, regional and country-level diabetes prevalence estimates for 2021 and projections for 2045. Diabetes Res Clin Pract. 2022;183:109119. pmid:34879977
  2. 2. Qin W, Blanchette JE, Yoon M. Self-efficacy and diabetes self-management in middle-aged and older adults in the united states: a systematic review. Diabetes Spectr. 2020;33(4):315–23. pmid:33223769
  3. 3. Cryer PE, Davis SN, Shamoon H. Hypoglycemia in diabetes. Diabetes Care. 2003;26(6):1902–12. pmid:12766131
  4. 4. Moser O, Rafferty J, Eckstein ML, Aziz F, Bain SC, Bergenstal R, et al. Impact of severe hypoglycaemia requiring hospitalization on mortality in people with type 1 diabetes: A national retrospective observational cohort study. Diabetes Obes Metab. 2023;25(8):2243–54. pmid:37139857
  5. 5. Seaquist ER, Anderson J, Childs B, Cryer P, Dagogo-Jack S, Fish L, et al. Hypoglycemia and diabetes: a report of a workgroup of the American Diabetes Association and the endocrine society. Diabetes Care. 2013;36(5):1384–95.
  6. 6. Miller E, Gavin JR 3rd, Kruger DF, Brunton SA. Continuous glucose monitoring: optimizing diabetes care: executive summary. Clin Diabetes. 2022;40(4):394–8. pmid:36385970
  7. 7. Sherr JL, Laffel LM, Liu J, Wolf W, Bispham J, Chapman KS, et al. Severe hypoglycemia and impaired awareness of hypoglycemia persist in people with type 1 diabetes despite use of diabetes technology: results from a cross-sectional survey. Diabetes Care. 2024;47(6):941–7. pmid:38295397
  8. 8. Lin YK, Agni A, Chuisano S, de Zoysa N, Fetters M, Amiel SA, et al. “You have to use everything and come to some equilibrium”: a qualitative study on hypoglycemia self-management in users of continuous glucose monitor with diverse hypoglycemia experiences. BMJ Open Diabetes Res Care. 2023;11(3):e003415. pmid:37349107
  9. 9. Olde Bekkink M, Koeneman M, de Galan BE, Bredie SJ. Early detection of hypoglycemia in type 1 diabetes using heart rate variability measured by a wearable device. Diabetes Care. 2019;42(4):689–92. pmid:30877089
  10. 10. Fellah Arbi K, Soulimane S, Saffih F. Non-invasive method for blood glucose monitoring using ECG signal. Polish J Med Physics Eng. 2023;29(1):1–9.
  11. 11. Dave D, Vyas K, Cote GL, Erraguntla M. Hypoglycemia and hyperglycemia detection using ECG: a multi-threshold based personalized fusion model. Biomed Signal Process Control. 2024;96:106569.
  12. 12. Park J-U, Kim Y, Lee Y, Urtnasan E, Lee K-J. A prediction algorithm for hypoglycemia based on support vector machine using glucose level and electrocardiogram. J Med Syst. 2022;46(10):68. pmid:36100792
  13. 13. Elvebakk O, Tronstad C, Birkeland KI, Jenssen TG, Bjørgaas MR, Gulseth HL, et al. A multiparameter model for non-invasive detection of hypoglycemia. Physiol Meas. 2019;40(8):085004. pmid:31357185
  14. 14. Ling SH, San PP, Nguyen HT. Non-invasive hypoglycemia monitoring system using extreme learning machine for type 1 diabetes. ISA Trans. 2016;64:440–6. pmid:27311357
  15. 15. Cichosz SL, Frystyk J, Hejlesen OK, Tarnow L, Fleischer J. A novel algorithm for prediction and detection of hypoglycemia based on continuous glucose monitoring and heart rate variability in patients with type 1 diabetes. J Diabetes Sci Technol. 2014;8(4):731–7. pmid:24876412
  16. 16. Daskalaki E, Parkinson A, Brew-Sam N, Hossain MZ, O’Neal D, Nolan CJ, et al. The potential of current noninvasive wearable technology for the monitoring of physiological signals in the management of type 1 diabetes: literature survey. J Med Internet Res. 2022;24(4):e28901. pmid:35394448
  17. 17. Fuller D, Colwell E, Low J, Orychock K, Tobin MA, Simango B, et al. Reliability and validity of commercially available wearable devices for measuring steps, energy expenditure, and heart rate: systematic review. JMIR Mhealth Uhealth. 2020;8(9):e18694. pmid:32897239
  18. 18. Lehmann V, Föll S, Maritsch M, van Weenen E, Kraus M, Lagger S, et al. Noninvasive hypoglycemia detection in people with diabetes using smartwatch data. Diabetes Care. 2023;46(5):993–7. pmid:36805169
  19. 19. Ma Y, Chang M-C, Litrownik D, Wayne PM, Yeh GY. Day-night patterns in heart rate variability and complexity: differences with age and cardiopulmonary disease. J Clin Sleep Med. 2023;19(5):873–82. pmid:36692177
  20. 20. McMillan DE. Interpreting heart rate variability sleep/wake patterns in cardiac patients. J Cardiovasc Nurs. 2002;17(1):69–81. pmid:12358094
  21. 21. Lin J, Kuang H, Jiang J, Zhou H, Peng L, Yan X, et al. Circadian rhythms in cardiovascular function: implications for cardiac diseases and therapeutic opportunities. Med Sci Monit. 2023;29:e942215. pmid:37986555
  22. 22. Chen T, Guestrin C. XGBoost: a scalable tree boosting system. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. 2016: 785–94. https://doi.org/10.1145/2939672.2939785
  23. 23. Youden WJ. Index for rating diagnostic tests. Cancer. 1950;3(1):32–5. pmid:15405679
  24. 24. Lundberg SM, Erion GG, Lee S-I. Consistent individualized feature attribution for tree ensembles. 2019. http://arxiv.org/abs/1802.03888
  25. 25. Rodríguez-Rodríguez I, Rodríguez J-V, González-Vidal A, Zamora M-Á. Feature selection for blood glucose level prediction in type 1 diabetes mellitus by using the Sequential Input Selection Algorithm (SISAL). Symmetry. 2019;11(9):1164.
  26. 26. Koeneman M, Olde Bekkink M, Meijel L van, Bredie S, de Galan B. Effect of hypoglycemia on heart rate variability in people with type 1 diabetes and impaired awareness of hypoglycemia. J Diabetes Sci Technol. 2022;16(5):1144–9. pmid:33855894
  27. 27. Schlagintweit J, Laharnar N, Glos M, Zemann M, Demin AV, Lederer K, et al. Effects of sleep fragmentation and partial sleep restriction on heart rate variability during night. Sci Rep. 2023;13(1):6202. pmid:37069226
  28. 28. Bourdillon N, Jeanneret F, Nilchian M, Albertoni P, Ha P, Millet GP. Sleep deprivation deteriorates heart rate variability and photoplethysmography. Front Neurosci. 2021;15:642548. pmid:33897355
  29. 29. Thompson EL, Ray CJ, Holmes AP, Pye RL, Wyatt CN, Coney AM, et al. Adrenaline release evokes hyperpnoea and an increase in ventilatory CO2 sensitivity during hypoglycaemia: a role for the carotid body. J Physiol. 2016;594(15):4439–52. pmid:27027261
  30. 30. Ward DS, Voter WA, Karan S. The effects of hypo- and hyperglycaemia on the hypoxic ventilatory response in humans. J Physiol. 2007;582(Pt 2):859–69. pmid:17478538
  31. 31. Chen Y, Sun Y, Li Y, Wen Z, Peng X, He Y, et al. A wearable non-enzymatic sensor for continuous monitoring of glucose in human sweat. Talanta. 2024;278:126499. pmid:38968652