Personalized Physician-Assisted Sleep Advice for Shift Workers: Algorithm Development and Validation Study.

IF 2 Q3 HEALTH CARE SCIENCES & SERVICES JMIR Formative Research Pub Date : 2025-04-01 DOI:10.2196/65000
Yufei Shen, Alicia Choto Olivier, Han Yu, Asami Ito-Masui, Ryota Sakamoto, Motomu Shimaoka, Akane Sano
{"title":"Personalized Physician-Assisted Sleep Advice for Shift Workers: Algorithm Development and Validation Study.","authors":"Yufei Shen, Alicia Choto Olivier, Han Yu, Asami Ito-Masui, Ryota Sakamoto, Motomu Shimaoka, Akane Sano","doi":"10.2196/65000","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>In the modern economy, shift work is prevalent in numerous occupations. However, it often disrupts workers' circadian rhythms and can result in shift work sleep disorder. Proper management of shift work sleep disorder involves comprehensive and patient-specific strategies, some of which are similar to cognitive behavioral therapy for insomnia.</p><p><strong>Objective: </strong>Our goal was to develop and evaluate machine learning algorithms that predict physicians' sleep advice using wearable and survey data. We developed a web- and app-based system to provide individualized sleep and behavior advice based on cognitive behavioral therapy for insomnia for shift workers.</p><p><strong>Methods: </strong>Data were collected for 5 weeks from shift workers (N=61) in the intensive care unit at 2 hospitals in Japan. The data comprised 3 modalities: Fitbit data, survey data, and sleep advice. After the first week of enrollment, physicians reviewed Fitbit and survey data to provide sleep advice and selected 1 to 5 messages from a list of 23 options. We handcrafted physiological and behavioral features from the raw data and identified clusters of participants with similar characteristics using hierarchical clustering. We explored 3 models (random forest, light gradient-boosting machine, and CatBoost) and 3 data-balancing approaches (no balancing, random oversampling, and synthetic minority oversampling technique) to predict selections for the 7 most frequent advice messages related to bedroom brightness, smartphone use, and nap and sleep duration. We tested our predictions under participant-dependent and participant-independent settings and analyzed the most important features for prediction using permutation importance and Shapley additive explanations.</p><p><strong>Results: </strong>We found that the clusters were distinguished by work shifts and behavioral patterns. For example, one cluster had days with low sleep duration and the lowest sleep quality when there was a day shift on the day before and a midnight shift on the current day. Our advice prediction models achieved a higher area under the precision-recall curve than the baseline in all settings. The performance differences were statistically significant (P<.001 for 13 tests and P=.003 for 1 test). Sensitivity ranged from 0.50 to 1.00, and specificity varied between 0.44 and 0.93 across all advice messages and dataset split settings. Feature importance analysis of our models found several important features that matched the corresponding advice messages sent. For instance, for message 7 (darken the bedroom when you go to bed), the models primarily examined the average brightness of the sleep environment to make predictions.</p><p><strong>Conclusions: </strong>Although our current system requires physician input, an accurate machine learning algorithm shows promise for automatic advice without compromising the trustworthiness of the selected recommendations. Despite its decent performance, the algorithm is currently limited to the 7 most popular messages. Further studies are needed to enable predictions for less frequent advice labels.</p>","PeriodicalId":14841,"journal":{"name":"JMIR Formative Research","volume":"9 ","pages":"e65000"},"PeriodicalIF":2.0000,"publicationDate":"2025-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12000788/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"JMIR Formative Research","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.2196/65000","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"HEALTH CARE SCIENCES & SERVICES","Score":null,"Total":0}
引用次数: 0

Abstract

Background: In the modern economy, shift work is prevalent in numerous occupations. However, it often disrupts workers' circadian rhythms and can result in shift work sleep disorder. Proper management of shift work sleep disorder involves comprehensive and patient-specific strategies, some of which are similar to cognitive behavioral therapy for insomnia.

Objective: Our goal was to develop and evaluate machine learning algorithms that predict physicians' sleep advice using wearable and survey data. We developed a web- and app-based system to provide individualized sleep and behavior advice based on cognitive behavioral therapy for insomnia for shift workers.

Methods: Data were collected for 5 weeks from shift workers (N=61) in the intensive care unit at 2 hospitals in Japan. The data comprised 3 modalities: Fitbit data, survey data, and sleep advice. After the first week of enrollment, physicians reviewed Fitbit and survey data to provide sleep advice and selected 1 to 5 messages from a list of 23 options. We handcrafted physiological and behavioral features from the raw data and identified clusters of participants with similar characteristics using hierarchical clustering. We explored 3 models (random forest, light gradient-boosting machine, and CatBoost) and 3 data-balancing approaches (no balancing, random oversampling, and synthetic minority oversampling technique) to predict selections for the 7 most frequent advice messages related to bedroom brightness, smartphone use, and nap and sleep duration. We tested our predictions under participant-dependent and participant-independent settings and analyzed the most important features for prediction using permutation importance and Shapley additive explanations.

Results: We found that the clusters were distinguished by work shifts and behavioral patterns. For example, one cluster had days with low sleep duration and the lowest sleep quality when there was a day shift on the day before and a midnight shift on the current day. Our advice prediction models achieved a higher area under the precision-recall curve than the baseline in all settings. The performance differences were statistically significant (P<.001 for 13 tests and P=.003 for 1 test). Sensitivity ranged from 0.50 to 1.00, and specificity varied between 0.44 and 0.93 across all advice messages and dataset split settings. Feature importance analysis of our models found several important features that matched the corresponding advice messages sent. For instance, for message 7 (darken the bedroom when you go to bed), the models primarily examined the average brightness of the sleep environment to make predictions.

Conclusions: Although our current system requires physician input, an accurate machine learning algorithm shows promise for automatic advice without compromising the trustworthiness of the selected recommendations. Despite its decent performance, the algorithm is currently limited to the 7 most popular messages. Further studies are needed to enable predictions for less frequent advice labels.

Abstract Image

Abstract Image

Abstract Image

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
轮班工人的个性化医生辅助睡眠建议:算法开发和验证研究。
背景:在现代经济中,轮班工作在许多职业中都很普遍。然而,它经常扰乱工人的昼夜节律,并可能导致轮班工作的睡眠障碍。轮班工作睡眠障碍的适当管理包括全面和针对患者的策略,其中一些类似于失眠的认知行为疗法。目的:我们的目标是开发和评估机器学习算法,利用可穿戴设备和调查数据预测医生的睡眠建议。我们开发了一个基于网络和应用程序的系统,为轮班工人提供基于认知行为疗法的个性化睡眠和行为建议。方法:对日本2家医院重症监护病房轮班工作者(61例)进行为期5周的数据收集。数据包括3种模式:Fitbit数据、调查数据和睡眠建议。注册第一周后,医生会查看Fitbit和调查数据,提供睡眠建议,并从23个选项中选择1到5条信息。我们从原始数据中手工制作生理和行为特征,并使用分层聚类识别具有相似特征的参与者集群。我们探索了3种模型(随机森林、光梯度增强机和CatBoost)和3种数据平衡方法(无平衡、随机过采样和合成少数过采样技术)来预测与卧室亮度、智能手机使用、午睡和睡眠时间有关的7条最常见的建议信息的选择。我们在参与者依赖和参与者独立设置下测试了我们的预测,并使用排列重要性和Shapley加性解释分析了预测的最重要特征。结果:我们发现这些集群是由工作班次和行为模式来区分的。例如,当前一天是白班,当天是午夜班时,一个集群的睡眠时间较短,睡眠质量最低。我们的建议预测模型在所有设置下的准确率-召回率曲线下的面积都比基线高。结论:虽然我们目前的系统需要医生的输入,但一个准确的机器学习算法显示了自动建议的前景,而不会影响所选建议的可信度。尽管表现不错,但该算法目前仅限于7条最受欢迎的消息。需要进一步的研究来预测不那么频繁的建议标签。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
JMIR Formative Research
JMIR Formative Research Medicine-Medicine (miscellaneous)
CiteScore
2.70
自引率
9.10%
发文量
579
审稿时长
12 weeks
期刊最新文献
Correction: The Mechanism of Online Health Information Seeking Switching to Online Medical Consultation: Cross-Sectional Study. Comparing 3 Goal-Setting Techniques to Promote Adherence to National Physical Activity Guidelines in Midlife Adults: Feasibility Trial of a Mechanistic Study Design. Patient Perceptions of Artificial Intelligence in Diabetes Self-Management: Cross-Sectional Survey Study. Digital Phenotyping of Pain Modulation and Associations Among Personality, Attachment, and Behavioral Signatures: Cross-Sectional Study. Peaceful Death in Japanese YouTube Videos: Content and Network Analysis.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1