Smartwatches for non‐invasive hypoglycaemia detection during cognitive and psychomotor stress
Abstract
Hypoglycaemia is one of the most relevant complications of diabetes1 and induces alterations in physiological parameters2, 3 that can be measured with smartwatches and detected using machine learning (ML).4 The performance of these algorithms when applied to different hypoglycaemic ranges or in situations involving cognitive and psychomotor stress remains unclear. Demanding tasks can significantly affect the physiological responses on which the wearable-based hypoglycaemia detection relies.5 The present analysis aimed to investigate ML-based hypoglycaemia detection using wearable data at different levels of hypoglycaemia during a complex task involving cognitive and psychomotor challenges (driving). This was a pre-specified analysis of two consecutive studies conducted at the University Hospital Bern (Study A: 10/2019-07/2020; Study B: 11/2021-03/2022). The studies followed the Declaration of Helsinki, guidelines of good clinical practice, and legally applicable requirements. We included individuals with type 1 diabetes, aged 21-50 years (up to 60 years for Study B). Key exclusion criteria included pregnancy, seizure disorders, severe organ dysfunction, or alcohol/drug abuse. Following approval by the local Ethics Committee Bern (2019-00579, 2021-002018), the studies were registered on ClinicalTrials.gov (NCT04035993, NCT05183191). Participants provided written informed consent. The detailed study procedures have been described previously.6 After the screening visit, participants were admitted to our clinical research facility for the main experiment after an overnight fast. Participants received a smartwatch (Garmin vivoactive 3) to collect heart rate variability and acceleration sensor data and a second wrist-worn wearable (Empatica E4) to collect electrodermal activity data. During a controlled hypoglycaemia procedure using intravenous insulin and glucose (Figure S1A), wearable data were collected in euglycaemia [blood glucose (BG) 5.0-8.0 mmol/L] followed by pronounced hypoglycaemia in Study A (BG 2.0-2.5 mmol/L) or mild hypoglycaemia in Study B (BG 3.0-3.5 mmol/L), while individuals were driving in a simulator. The hypoglycaemic episode lasted ~40 min. Venous BG was repeatedly measured using the Biosen C-Line analyser and BG was used as the ground truth for ML modelling. Hypoglycaemia symptoms were rated by the participants using a standardized questionnaire.7 The main outcome of the analysis was the diagnostic accuracy of the ML approach to detect hypoglycaemia using wearable data quantified as the area under the receiver operating characteristic curve (AUROC). The sample size was calculated based on the primary outcome of the two interventional studies (for details see Lehmann et al.6). Figure S1B displays the ML pipeline. To assess performance and decision-making for different hypoglycaemic ranges, we trained and evaluated three ML models: (a) to detect pronounced hypoglycaemia (BG 2.0-2.5 mmol/L), using data from Study A; (b) to detect mild hypoglycaemia (BG 3.0-3.5 mmol/L), using data from Study B; and (c) to detect overall hypoglycaemia, combining data from both studies. To handle electrodermal activity data, we separated the signal into a slow-changing (tonic) and a fast-changing (phasic) component. We follow conventional feature engineering for time-series classification: Each signal is cut into overlapping sequences of 60 s and shifted by 1 s. Using aggregation functions, we generated a set of 14 generic and domain-specific features (Table S1). BG values were linearly interpolated between measurements, while the binary output variable for ML models was set to 1 for hypoglycaemia, otherwise 0. We implemented a logistic regression with ridge regularization to ensure interpretable decision-making while feature importance was derived from the magnitude of the coefficients grouped by the modality.8 Furthermore, we assessed generalization to unseen subjects by using leave-one-subject-out cross-validation to compute performance metrics' mean and standard deviation. The source code has been published,9 and is publicly available on GitHub (https://github.com/im-ethz/smartwatches-hypo-detection). For Study A, 17 of 18 individuals were included in the analysis (one participant excluded because of wearable data loss). For Study B, all nine enrolled individuals were included in the analysis. Baseline characteristics are provided in Table S2. Venous blood glucose in euglycaemia was 5.9 ± 0.6 mmol/L (Study A) and 6.4 ± 0.8 mmol/L (Study B). Hypoglycaemia was at 2.4 ± 0.2 mmol/L (Study A) and 3.3 ± 0.2 mmol/L (Study B). Self-rated hypoglycaemia symptoms are reported in Table S3. Pronounced hypoglycaemia was detected with an AUROC of 0.80 ± 0.20 and mild hypoglycaemia with an AUROC of 0.66 ± 0.12. AUROC of overall hypoglycaemia detection was 0.72 ± 0.20. Additional performance metrics are provided in Table 1. Figure 1 displays the feature importance (i.e. the sum of the coefficients per modality divided by the sum of all coefficients) for the different input categories across the levels of hypoglycaemia. While detection of pronounced hypoglycaemia shows a higher reliance on electrodermal activity, the feature importance for mild hypoglycaemia is balanced across input modalities. For the detection of overall hypoglycaemia, the features of electrodermal activity dominate. Previously, we have shown the general concept of hypoglycaemia detection using smartwatch data.4 The present analysis suggests that this concept extends to detecting pronounced hypoglycaemia even when people are involved in tasks related to cognitive and psychomotor stress, such as driving. The more modest performance in detecting mild hypoglycaemia may be attributed to (a) the smaller sample size of individuals undergoing mild hypoglycaemia, (b) the potential interference of the physiological response to the driving task,5 and/or (c) a more subtle physiological response to mild hypoglycaemia when compared with lower hypoglycaemic levels.10 Additional data may improve ML performance in mild hypoglycaemia by learning generalizable patterns. While electrodermal activity, heart rate variability and accelerometer features constitute relevant features for hypoglycaemia detection,2, 4 the accuracy of ML decision-making across different levels of hypoglycaemia is unknown. Electrodermal activity proved to be a decisive feature modality for detecting pronounced hypoglycaemia, but appeared to be less informative in detecting mild hypoglycaemia. Electrodermal activity represents the electrical response of sweat glands to sympathetic innervation.11 Increased sweating enhances skin conductivity, translating into increased electrodermal activity.12 Therefore, our findings align with the existing literature, which suggests that the threshold for neurogenic symptoms (including sweating) is about 3.0 mmol/L.13 The dominance of electrodermal activity in the model coefficients persists for overall hypoglycaemia detection, probably because more participants were experiencing pronounced hypoglycaemia compared with mild hypoglycaemia. However, even when the model training was limited to a balanced subsample of participants, this pattern persisted. Strengths include the study setting providing standardized hypoglycaemia using the gold standard (venous BG). The ML models are based on data recorded from unobtrusive consumer-grade devices, rendering our approach readily available. Self-reported symptom scores in hypoglycaemia were comparably low, emphasizing the need for alternative hypoglycaemia detection methods. For evaluating the ML models, we used a leave-one-subject-out approach, which allows for assessing generalizability of the models to unseen individuals. Unlike personalized models used in a previous study,4 this approach offers scalability by eliminating the need to train individual models for each user. Interpretable ML allows assessing the decision-making across different levels of hypoglycaemia. We acknowledge that the smaller group size in Study B might have compromised the performance of mild hypoglycaemia detection. Our data were collected in standardized, stable glycaemic conditions during cognitive stress exclusively. Consequently, further research is needed to determine the exact time point of first hypoglycaemia detection and to quantify directly the impact of stress on detection performance. The glycaemic sequence (euglycaemia followed by hypoglycaemia) may have introduced bias. However, this reflects glycaemic trajectories in reality. Our dataset was derived from generally healthy individuals with well-controlled type 1 diabetes, which limits the generalizability of our results to individuals with comorbidities, hypoglycaemia unawareness, or other diabetes types. In summary, pronounced hypoglycaemia can be detected using commercially available wearables even in situations with cognitive and psychomotor stress, such as driving. However, the proposed approach is less reliable for milder hypoglycaemia, and additional research is needed to optimize the corresponding models further. The following authors contributed to the conception and design of the study: MM, SF, VL, TZ, CS and FW. Acquisition of data: MM, VL, NS, CB, MK and TZ. Analysis of data: MM, SF, VL and FW. Interpretation of data: MM, SF, VL, CS and FW. Writing the manuscript: SF, VL, CS and FW. Critical review of the manuscript; MM, NS, CB, MK, SF, TK, TZ and EF. CS is the guarantor of this work and, as such, had full access to all the data in the study and takes responsibility for the integrity of the data and the accuracy of the data analysis. All authors approved the final draft of the manuscript for submission. The authors thank all the volunteers for their participation and enthusiasm. Thanks go to Constance Bischoff and Joana Filipa Rodrigues Cunha Freitas (study nurses), Mona Spoerri (medical student) and Vincent Vorburger (trainee) for their valuable support during the clinical visits. The studies were funded by the Swiss National Science Foundation (Sinergia grant, SNF CRSII5_183569), with additional grants provided by the Clinical Trials Unit Berne, the Swiss Diabetes Foundation, the Diabetes Center Berne and the Department of Research of the University Hospital Berne. CB, TK and EF are affiliated with the Centre for Digital Health Interventions (CDHI), a joint initiative of the Institute for Implementation Science in Health Care, University of Zurich, the Department of Management, Technology, and Economics at ETH Zurich, and the Institute of Technology Management and School of Medicine at the University of St Gallen. CSS, a Swiss health insurer, partly funds CDHI. TK and EF are also cofounders of Pathmate Technologies, a university spin-off company that creates and delivers digital clinical pathways. However, neither CSS nor Pathmate Technologies was involved in this research. All other authors have no conflicts of interest to declare. The peer review history for this article is available at https://www.webofscience.com/api/gateway/wos/peer-review/10.1111/dom.15402. The data sets generated and analyzed during the current study are available from the corresponding author upon reasonable request. Figure S1. Study and analysis overview. Table S1. Input features for the machine learning model. Table S2. Baseline characteristics of the participants. Table S3. Self-rated hypoglycaemia symptoms by the participants. Please note: The publisher is not responsible for the content or functionality of any supporting information supplied by the authors. Any queries (other than missing content) should be directed to the corresponding author for the article.
BibTeX
@inproceedings{maritsch2023smartwatches,
author = {Martin Maritsch and Simon Föll and Vera Lehmann and Naïma Styger and Caterina Bérubé and Mathias Kraus and Stefan Feuerriegel and Tobias Kowatsch and Thomas Züger and Elgar Fleisch and Felix Wortmann and Christoph Stettler},
title = {{Smartwatches for non‐invasive hypoglycaemia detection during cognitive and psychomotor stress}},
booktitle = {Diabetes},
year = {2023},
doi = {10.1111/dom.15402},
}Ask Althea to put this paper to the test.
Loading related content...