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.

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 des...

Full description

Saved in:
Bibliographic Details
Main Authors: Yasmine M Mohamed, José Mancera, Andreas Brandenberg, Stefan Fischli, Michael M Havranek
Format: Article
Language:English
Published: Public Library of Science (PLoS) 2025-01-01
Series:PLoS ONE
Online Access:https://doi.org/10.1371/journal.pone.0325956
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1839647617729953792
author Yasmine M Mohamed
José Mancera
Andreas Brandenberg
Stefan Fischli
Michael M Havranek
author_facet Yasmine M Mohamed
José Mancera
Andreas Brandenberg
Stefan Fischli
Michael M Havranek
author_sort Yasmine M Mohamed
collection DOAJ
description 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.
format Article
id doaj-art-ab1dffb868a049b1b51a87f09f5ca2ac
institution Matheson Library
issn 1932-6203
language English
publishDate 2025-01-01
publisher Public Library of Science (PLoS)
record_format Article
series PLoS ONE
spelling doaj-art-ab1dffb868a049b1b51a87f09f5ca2ac2025-06-30T05:31:54ZengPublic Library of Science (PLoS)PLoS ONE1932-62032025-01-01206e032595610.1371/journal.pone.0325956Personalized 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 MohamedJosé ManceraAndreas BrandenbergStefan FischliMichael M HavranekHypoglycemia 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.https://doi.org/10.1371/journal.pone.0325956
spellingShingle Yasmine M Mohamed
José Mancera
Andreas Brandenberg
Stefan Fischli
Michael M Havranek
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.
PLoS ONE
title 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.
title_full 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.
title_fullStr 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.
title_full_unstemmed 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.
title_short 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.
title_sort 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
url https://doi.org/10.1371/journal.pone.0325956
work_keys_str_mv AT yasminemmohamed personalizedmachinelearningmodelsfornoninvasivehypoglycemiadetectioninpeoplewithtype1diabetesusingasmartwatchinsightsintofeatureimportanceduringwakingandsleepingtimes
AT josemancera personalizedmachinelearningmodelsfornoninvasivehypoglycemiadetectioninpeoplewithtype1diabetesusingasmartwatchinsightsintofeatureimportanceduringwakingandsleepingtimes
AT andreasbrandenberg personalizedmachinelearningmodelsfornoninvasivehypoglycemiadetectioninpeoplewithtype1diabetesusingasmartwatchinsightsintofeatureimportanceduringwakingandsleepingtimes
AT stefanfischli personalizedmachinelearningmodelsfornoninvasivehypoglycemiadetectioninpeoplewithtype1diabetesusingasmartwatchinsightsintofeatureimportanceduringwakingandsleepingtimes
AT michaelmhavranek personalizedmachinelearningmodelsfornoninvasivehypoglycemiadetectioninpeoplewithtype1diabetesusingasmartwatchinsightsintofeatureimportanceduringwakingandsleepingtimes