Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2026 Jan 2;5(1):e0001170.
doi: 10.1371/journal.pdig.0001170. eCollection 2026 Jan.

Predicting adherence to fully-automated, chatbot-delivered digital cognitive behavioral therapy for insomnia (dCBT-I) using machine learning: A pilot real-world study

Affiliations

Predicting adherence to fully-automated, chatbot-delivered digital cognitive behavioral therapy for insomnia (dCBT-I) using machine learning: A pilot real-world study

Rose Wing Lai So et al. PLOS Digit Health. .

Abstract

Digital cognitive behavioral therapy for insomnia (dCBT-I) is effective in treating insomnia, but adherence remains a major challenge in real-world applications. Machine learning (ML) offers potential in predicting healthcare utilization. This study applied ML techniques to predict adherence to dCBT-I based on participant baseline characteristics. This pilot real-world study included 75 individuals (69% female; 41% aged 35-44 years) with insomnia symptoms (Insomnia Severity Index, ISI ≥ 8) who participated in a 28-day chatbot-delivered dCBT-I program. ML models, including logistic regression with elastic-net penalty, support vector machine, random forest, and gradient boosting, analyzed participant baseline characteristics to predict adherence to dCBT-I in terms of session completion, usage duration, and response volume. These models were fine-tuned using grid search and evaluated with cross-validation. The synthetic minority over-sampling technique was applied to address data imbalances in the training set. Baseline depressive symptoms were the most predictive of non-adherence. Higher depressive symptoms were associated with shorter overall usage duration (β = -3.57, 95% CI: -5.82 to -1.33, p = .002). Longer sleep onset latency and wake time after sleep onset from the previous night increased the number of responses and longer usage duration on the following day (β = 0.01-0.05, p < .05). No significant associations were found between daytime and bedtime usage and sleep parameters for that specific night. ML models predicted overall adherence, with AUCs of 0.65-0.91 (p < .05). ML models also predicted next-day adherence, with AUCs of 0.56-0.74 (p < .05). This real-world study demonstrates the potential of ML to predict user adherence to dCBT-I and provides clinical insights for personalizing sleep-focused treatments. The study also investigated daily usage and adherence patterns in dCBT-I to predict next-day adherence.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. SHapley Additive exPlanations (SHAP) summary for gradient boosting models predicting overall and daily adherence.
ISI: Insomnia Severity Index; rMEQ: Reduced Horne and Östberg Morningness and Eveningness Questionnaire; PHQ-9: Patient Health Questionnaire-9; DBAS: Dysfunctional Beliefs and Attitudes about Sleep; SHI: Sleep Hygiene Index scores; SOL: Sleep onset latency; WASO: Wake time after sleep onset; TIB: Total time spent in bed; TST: Total sleep time; SE: Sleep efficiency.

References

    1. Zeng L-N, Zong Q-Q, Yang Y, Zhang L, Xiang Y-F, Ng CH, et al. Gender Difference in the Prevalence of Insomnia: A Meta-Analysis of Observational Studies. Front Psychiatry. 2020;11:577429. doi: 10.3389/fpsyt.2020.577429 - DOI - PMC - PubMed
    1. Morin CM, Bei B, Bjorvatn B, Poyares D, Spiegelhalder K, Wing YK, et al. World sleep society international sleep medicine guidelines position statement endorsement of “behavioral and psychological treatments for chronic insomnia disorder in adults: An American Academy of sleep medicine clinical practice guidelines”. Sleep Med. 2023;109:164–9. doi: 10.1016/j.sleep.2023.07.001 - DOI - PubMed
    1. Soh HL, Ho RC, Ho CS, Tam WW. Efficacy of digital cognitive behavioural therapy for insomnia: a meta-analysis of randomised controlled trials. Sleep Med. 2020;75:315–25. doi: 10.1016/j.sleep.2020.08.020 - DOI - PubMed
    1. Zachariae R, Lyby MS, Ritterband LM, O’Toole MS. Efficacy of internet-delivered cognitive-behavioral therapy for insomnia - A systematic review and meta-analysis of randomized controlled trials. Sleep Med Rev. 2016;30:1–10. doi: 10.1016/j.smrv.2015.10.004 - DOI - PubMed
    1. Garrido S, Millington C, Cheers D, Boydell K, Schubert E, Meade T, et al. What Works and What Doesn’t Work? A Systematic Review of Digital Mental Health Interventions for Depression and Anxiety in Young People. Front Psychiatry. 2019;10:759. doi: 10.3389/fpsyt.2019.00759 - DOI - PMC - PubMed

LinkOut - more resources