Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR Formative Research

Date Submitted: Aug 2, 2024
Open Peer Review Period: Aug 8, 2024 - Oct 3, 2024
Date Accepted: Feb 12, 2025
(closed for review but you can still tweet)

The final, peer-reviewed published version of this preprint can be found here:

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

Shen Y, Olivier AC, Yu H, Matsui AI, Sakamoto R, Shimaoka M, Sano A

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

JMIR Form Res 2025;9:e65000

DOI: 10.2196/65000

PMID: 40168666

PMCID: 12000788

Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.

Personalized Physician-Assisted Sleep Advice for Shift Workers: Machine Learning Approach

  • Yufei Shen; 
  • Alicia Choto Olivier; 
  • Han Yu; 
  • Asami Ito Matsui; 
  • Ryota Sakamoto; 
  • Motomu Shimaoka; 
  • Akane Sano

ABSTRACT

Background:

In the modern economy, shift work is prevalent in numerous occupations. However, shift work often conflicts with the workers’ circadian rhythm and can result in shift work sleep disorder (SWSD). Proper management of SWSD emphasizes comprehensive and patient-specific strategies and some of these strategies are analogous to the cognitive behavioral treatment of insomnia (CBTI).

Objective:

In this paper, we aim to develop and evaluate machine learning algorithms that predict physicians’ sleep advice using wearable and survey data. We developed an online system to conveniently and frequently provide individualized sleep and behavior advice with CBTI elements for shift workers.

Methods:

Data were collected for a period of 5 weeks from shift workers in the ICU at two hospitals (N = 61) in Japan. The data were composed of three modalities, (1) Fitbit data, (2) survey data, and (3) sleep advice. We handcrafted physiological and behavioral features from the raw data and identified clusters of participants with similar characteristics using hierarchical clustering. After the first week of enrollment, physicians reviewed Fitbit and survey data to provide sleep advice from a list of 23 messages. We implemented random forest (RF) models to predict the 7 most frequent messages given by the physicians. We tested our predictions under participant dependent and independent settings and analyzed the most important features for prediction.

Results:

We found that the clusters were distinguished by work shifts and behavioral patterns. For some clusters, having a work shift on a given day contributed to low wellbeing scores on that day. Another 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 higher F1 scores in 27 of 28 t-tests conducted, and the performance differences were statistically significant with P < .001 for 24 tests and P < .05 for 3 tests compared to the baseline. The analysis of the feature importance of our models showed that the most important features matched the message sent to participants. 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 would be promising for automating without hurting the trustworthiness of selected recommendations. The algorithm is limited to the 7 most popular ones among 23 choices due to rare occurrences of the remaining options. Therefore, further studies are necessary to gather enough data to enable predictions for less frequent advice labels. Clinical Trial: UMIN Clinical Trials Registry UMIN000036122 (phase 1), UMIN000040547 (phase 2); https://tinyurl.com/dkfmmmje, https://upload.umin.ac.jp/cgi-open-bin/ctr_e/ctr_view.cgi?recptno=R000046284.


 Citation

Please cite as:

Shen Y, Olivier AC, Yu H, Matsui AI, Sakamoto R, Shimaoka M, Sano A

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

JMIR Form Res 2025;9:e65000

DOI: 10.2196/65000

PMID: 40168666

PMCID: 12000788

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.