Machine Learning Model to Predict Assignment of Therapy Homework in Behavioral Treatments: Algorithm Development and Validation
- PMID: 37184927
- PMCID: PMC10227700
- DOI: 10.2196/45156
Machine Learning Model to Predict Assignment of Therapy Homework in Behavioral Treatments: Algorithm Development and Validation
Abstract
Background: Therapeutic homework is a core element of cognitive and behavioral interventions, and greater homework compliance predicts improved treatment outcomes. To date, research in this area has relied mostly on therapists' and clients' self-reports or studies carried out in academic settings, and there is little knowledge on how homework is used as a treatment intervention in routine clinical care.
Objective: This study tested whether a machine learning (ML) model using natural language processing could identify homework assignments in behavioral health sessions. By leveraging this technology, we sought to develop a more objective and accurate method for detecting the presence of homework in therapy sessions.
Methods: We analyzed 34,497 audio-recorded treatment sessions provided in 8 behavioral health care programs via an artificial intelligence (AI) platform designed for therapy provided by Eleos Health. Therapist and client utterances were captured and analyzed via the AI platform. Experts reviewed the homework assigned in 100 sessions to create classifications. Next, we sampled 4000 sessions and labeled therapist-client microdialogues that suggested homework to train an unsupervised sentence embedding model. This model was trained on 2.83 million therapist-client microdialogues.
Results: An analysis of 100 random sessions found that homework was assigned in 61% (n=61) of sessions, and in 34% (n=21) of these cases, more than one homework assignment was provided. Homework addressed practicing skills (n=34, 37%), taking action (n=26, 28.5%), journaling (n=17, 19%), and learning new skills (n=14, 15%). Our classifier reached a 72% F1-score, outperforming state-of-the-art ML models. The therapists reviewing the microdialogues agreed in 90% (n=90) of cases on whether or not homework was assigned.
Conclusions: The findings of this study demonstrate the potential of ML and natural language processing to improve the detection of therapeutic homework assignments in behavioral health sessions. Our findings highlight the importance of accurately capturing homework in real-world settings and the potential for AI to support therapists in providing evidence-based care and increasing fidelity with science-backed interventions. By identifying areas where AI can facilitate homework assignments and tracking, such as reminding therapists to prescribe homework and reducing the charting associated with homework, we can ultimately improve the overall quality of behavioral health care. Additionally, our approach can be extended to investigate the impact of homework assignments on therapeutic outcomes, providing insights into the effectiveness of specific types of homework.
Keywords: artificial intelligence; behavioral treatment; deep learning; empirically-based practice; homework; intervention; mHealth; machine learning; mental health; natural language processing; therapy; treatment fidelity.
©Gal Peretz, C Barr Taylor, Josef I Ruzek, Samuel Jefroykin, Shiri Sadeh-Sharvit. Originally published in JMIR Formative Research (https://formative.jmir.org), 15.05.2023.
Conflict of interest statement
Conflicts of Interest: SJ and SSS are employed by Eleos Health, Inc, which created the platform providing the data for this study. GP was an employee of Eleos Health when this study was conducted. CBT and JR certify that they have no affiliations with or involvement in any organization or entity with any financial or nonfinancial interest in the subject matter or materials discussed in this manuscript.
Figures



Similar articles
-
Action recommendations review in community-based therapy and depression and anxiety outcomes: a machine learning approach.BMC Psychiatry. 2024 Feb 16;24(1):133. doi: 10.1186/s12888-024-05570-0. BMC Psychiatry. 2024. PMID: 38365635 Free PMC article. Review.
-
A Comparison Between Clinical Guidelines and Real-World Treatment Data in Examining the Use of Session Summaries: Retrospective Study.JMIR Form Res. 2022 Aug 16;6(8):e39846. doi: 10.2196/39846. JMIR Form Res. 2022. PMID: 35972782 Free PMC article.
-
Therapist empathy, homework compliance, and outcome in cognitive behavioral therapy for generalized anxiety disorder: partitioning within- and between-therapist effects.Cogn Behav Ther. 2017 Sep;46(5):375-390. doi: 10.1080/16506073.2016.1253605. Epub 2016 Nov 15. Cogn Behav Ther. 2017. PMID: 27844502
-
Congruence of Patient Takeaways and Homework Assignment Content Predicts Homework Compliance in Psychotherapy.Behav Ther. 2020 May;51(3):424-433. doi: 10.1016/j.beth.2019.07.005. Epub 2019 Jul 26. Behav Ther. 2020. PMID: 32402258
-
Artificial Intelligence and Behavioral Science Through the Looking Glass: Challenges for Real-World Application.Ann Behav Med. 2020 Dec 1;54(12):942-947. doi: 10.1093/abm/kaaa095. Ann Behav Med. 2020. PMID: 33416835 Free PMC article. Review.
Cited by
-
Large language models could change the future of behavioral healthcare: a proposal for responsible development and evaluation.Npj Ment Health Res. 2024 Apr 2;3(1):12. doi: 10.1038/s44184-024-00056-z. Npj Ment Health Res. 2024. PMID: 38609507 Free PMC article.
-
Applications of Large Language Models in the Field of Suicide Prevention: Scoping Review.J Med Internet Res. 2025 Jan 23;27:e63126. doi: 10.2196/63126. J Med Internet Res. 2025. PMID: 39847414 Free PMC article.
-
Doctor AI? A pilot study examining responses of artificial intelligence to common questions asked by geriatric patients.Front Artif Intell. 2024 Jul 25;7:1438012. doi: 10.3389/frai.2024.1438012. eCollection 2024. Front Artif Intell. 2024. PMID: 39118788 Free PMC article.
References
-
- Conklin L, Strunk DR. A session-to-session examination of homework engagement in cognitive therapy for depression: do patients experience immediate benefits? Behav Res Ther. 2015;72:56–62. doi: 10.1016/j.brat.2015.06.011. https://europepmc.org/abstract/MED/26183022 S0005-7967(15)30003-6 - DOI - PMC - PubMed
-
- Decker S, Kiluk BD, Frankforter T, Babuscio T, Nich C, Carroll KM. Just showing up is not enough: homework adherence and outcome in cognitive-behavioral therapy for cocaine dependence. J Consult Clin Psychol. 2016;84(10):907–912. doi: 10.1037/ccp0000126. https://europepmc.org/abstract/MED/27454780 2016-36128-001 - DOI - PMC - PubMed
LinkOut - more resources
Full Text Sources
Medical