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
. 2023 May 15:7:e45156.
doi: 10.2196/45156.

Machine Learning Model to Predict Assignment of Therapy Homework in Behavioral Treatments: Algorithm Development and Validation

Affiliations

Machine Learning Model to Predict Assignment of Therapy Homework in Behavioral Treatments: Algorithm Development and Validation

Gal Peretz et al. JMIR Form Res. .

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.

PubMed Disclaimer

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

Figure 1
Figure 1
An overview of the data analysis process.
Figure 2
Figure 2
A summary of the self-supervision pretraining process on the treatment homework assignment. CLS: sentence-level classification; SEP: separator.
Figure 3
Figure 3
Model fine-tuning using a new set of parameters. MLP: multilayer perceptron; NLP: natural language processing; SEP: separator.

Similar articles

Cited by

References

    1. Lebeau Richard T, Davies CD, Culver NC, Craske MG. Homework compliance counts in cognitive-behavioral therapy. Cogn Behav Ther. 2013;42(3):171–9. doi: 10.1080/16506073.2013.763286. - DOI - PubMed
    1. Kazantzis N, Whittington C, Zelencich L, Kyrios M, Norton PJ, Hofmann SG. Quantity and quality of homework compliance: a meta-analysis of relations with outcome in cognitive behavior therapy. Behav Ther. 2016;47(5):755–772. doi: 10.1016/j.beth.2016.05.002.S0005-7894(16)30029-6 - DOI - PubMed
    1. Conklin L, Curreri AJ, Farchione TJ, Barlow DH. Homework compliance and quality in cognitive behavioral therapies for anxiety disorders and obsessive-compulsive disorder. Behav Ther. 2021;52(4):1008–1018. doi: 10.1016/j.beth.2021.01.001.S0005-7894(21)00001-0 - DOI - PubMed
    1. 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
    1. 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