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

Gal Peretz, C Barr Taylor, Josef I Ruzek, Samuel Jefroykin, Shiri Sadeh-Sharvit, Gal Peretz, C Barr Taylor, Josef I Ruzek, Samuel Jefroykin, Shiri Sadeh-Sharvit

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.

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.

©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.

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.

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.
    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
    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
    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. S0005-7967(15)30003-6
    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. 2016-36128-001
    1. Radziwon C, Quigley BM, Vargovich AM, Krasner SS, Gudleski GD, Mason SR, Borden AB, Lackner JM. Do I really have to do my homework? The role of homework compliance in cognitive behavioral therapy for irritable bowel syndrome. Behav Res Ther. 2022;152:104063. doi: 10.1016/j.brat.2022.104063.S0005-7967(22)00034-1
    1. Stirman S, Gutner CA, Suvak MK, Adler A, Calloway A, Resick P. Homework completion, patient characteristics, and symptom change in cognitive processing therapy for PTSD. Behav Ther. 2018;49(5):741–755. doi: 10.1016/j.beth.2017.12.001. S0005-7894(17)30129-6
    1. Srivastava P, Parker MN, Presseller EK, Wons OB, Clark KE, Juarascio AS. A closer look at homework compliance in behavior therapy for bulimia nervosa: does homework compliance in between-session period prospectively predict session-by-session change in bulimia symptoms? Eat Disord. 2023;31(1):1–20. doi: 10.1080/10640266.2021.2014666.
    1. Wheaton MG, Chen S. Homework completion in treating obsessive–compulsive disorder with exposure and ritual prevention: a review of the empirical literature. Cogn Ther Res. 2021;45:236–249. doi: 10.1007/s10608-020-10125-0. doi: 10.1007/s10608-020-10125-0.
    1. Burns DD, Spangler DL. Does psychotherapy homework lead to improvements in depression in cognitive-behavioral therapy or does improvement lead to increased homework compliance? J Consult Clin Psychol. 2000;68(1):46–56. doi: 10.1037//0022-006x.68.1.46.
    1. Aafjes-van Doorn K, Kamsteeg C, Bate J, Aafjes M. A scoping review of machine learning in psychotherapy research. Psychother Res. 2021;31(1):92–116. doi: 10.1080/10503307.2020.1808729.
    1. Bzdok D, Krzywinski M, Altman N. Points of significance: machine learning: a primer. Nat Methods. 2017;14(12):1119–1120. doi: 10.1038/nmeth.4526. nmeth.4526
    1. Diaz-Flores E, Meyer T, Giorkallos A. Evolution of artificial intelligence-powered technologies in biomedical research and healthcare. In: Beutel S, Lenk F, editors. Smart Biolabs of the Future. Advances in Biochemical Engineering/Biotechnology. Berlin, Heidelberg: Springer; 2022. pp. 23–60.
    1. Sadeh-Sharvit S, Rego SA, Jefroykin S, Peretz G, Kupershmidt T. Behavioral treatments clinical guidelines vs. real-world treatment data: the use of session summaries. Preprint posted online on May 24, 2022. 2022 doi: 10.31234/. doi: 10.31219/.
    1. Hogue A, Dauber S, Lichvar E, Bobek M, Henderson CE. Validity of therapist self-report ratings of fidelity to evidence-based practices for adolescent behavior problems: correspondence between therapists and observers. Adm Policy Ment Health. 2015;42(2):229–243. doi: 10.1007/s10488-014-0548-2.
    1. Bunnell BE, Kazantzis N, Paige SR, Barrera J, Thakkar RN, Turner D, Welch BM. Provision of care by "real world" telemental health providers. Front Psychol. 2021;12:653652. doi: 10.3389/fpsyg.2021.653652.
    1. Flaherty HB. Teaching note—using technology to enhance experiential learning through simulated role plays. J Soc Work Educ. 2022:1–7. doi: 10.1080/10437797.2022.2050869. doi: 10.1080/10437797.2022.2050869.
    1. Sadeh-Sharvit S, Camp DT, Horton SE, Hefner JD, Berry JM, Grossman E, Hollon SD. Effects of an artificial intelligence platform for behavioral interventions on depression and anxiety symptoms: randomized clinical trial. PsyArXiv. Preprint posted online on February 12, 2023. 2023
    1. Sadeh-Sharvit S, Hollon SD. Leveraging the power of nondisruptive technologies to optimize mental health treatment: case study. JMIR Ment Health. 2020;7(11):e20646. doi: 10.2196/20646. v7i11e20646
    1. Hannah DR, Lautsch BA. Counting in qualitative research: why to conduct it, when to avoid it, and when to closet it. J Manag Inq. 2011;20(1):14–22. doi: 10.1177/1056492610375988. doi: 10.1177/1056492610375988.
    1. Devlin J, Chang M-W, Lee K, Toutanova K. Bert: pre-training of deep bidirectional transformers for language understanding. ArXiv. Preprint posted online on October 11, 2018. 2018
    1. Wang K, Reimers N, Gurevych I. TSDAE: using transformer-based sequential denoising auto-encoder for unsupervised sentence embedding learning. ArXiv Preprint posted online on April 14, 2021. 2021 doi: 10.18653/v1/2021.findings-emnlp.59.
    1. Sparck JK. A statistical interpretation of term specificity and its application in retrieval. J Doc. 1972;28(1):11–21. doi: 10.1108/eb026526. doi: 10.1108/eb026526.
    1. Le Q, Mikolov T. Distributed representations of sentences and documents. The 31st International Conference on Machine Learning; June 21–26, 2014; Beijing, China. 2014. pp. 1188–1196.
    1. Liu Y, Ott M, Goyal N, Du J, Joshi M, Chen D, Levy O, Lewis M, Zettlemoyer L, Stoyanov V. Roberta: a robustly optimized BERT pretraining approach. ArXiv Preprint posted online on July 26, 2019. 2019
    1. Jeni LA, Cohn JF, De La Torre F. Facing imbalanced data--recommendations for the use of performance metrics. 2013 Humaine Association Conference on Affective Computing and Intelligent Interaction; September 2-5, 2013; Geneva, Switzerland. Geneva, Switzerland: IEEE; 2013. pp. 245–251.
    1. Glenn D, Golinelli D, Rose RD, Roy-Byrne P, Stein MB, Sullivan G, Bystritksy A, Sherbourne C, Craske MG. Who gets the most out of cognitive behavioral therapy for anxiety disorders? The role of treatment dose and patient engagement. J Consult Clin Psychol. 2013;81(4):639–649. doi: 10.1037/a0033403. 2013-20193-001
    1. Essoe J, Ricketts EJ, Ramsey KA, Piacentini J, Woods DW, Peterson AL, Scahill L, Wilhelm S, Walkup JT, McGuire JF. Homework adherence predicts therapeutic improvement from behavior therapy in Tourette's disorder. Behav Res Ther. 2021;140:103844. doi: 10.1016/j.brat.2021.103844. S0005-7967(21)00043-7
    1. Kazantzis N, Dattilio FM. Definitions of homework, types of homework, and ratings of the importance of homework among psychologists with cognitive behavior therapy and psychoanalytic theoretical orientations. J Clin Psychol. 2010;66(7):758–773. doi: 10.1002/jclp.20699.
    1. Byeon YV, Lau AS, Lind T, Hamilton AB, Brookman-Frazee L. Organizational factors associated with community therapists' self-efficacy in EBP delivery: The interplay between sustainment leadership, sustainment climate, and psychological safety. Implement Res Pract. 2022;3:26334895221110263. doi: 10.1177/26334895221110263. 10.1177_26334895221110263
    1. Taubitz F, Büdenbender B, Alpers GW. What the future holds: machine learning to predict success in psychotherapy. Behav Res Ther. 2022;156:104116. doi: 10.1016/j.brat.2022.104116.S0005-7967(22)00087-0
    1. Bickman L. Improving mental health services: a 50-year journey from randomized experiments to artificial intelligence and precision mental health. Adm Policy Ment Health. 2020;47(5):795–843. doi: 10.1007/s10488-020-01065-8. 10.1007/s10488-020-01065-8
    1. Kellogg KC, Sadeh-Sharvit S. Pragmatic AI-augmentation in mental healthcare: key technologies, potential benefits, and real-world challenges and solutions for frontline clinicians. Front Psychiatry. 2022;13:990370. doi: 10.3389/fpsyt.2022.990370.

Source: PubMed

3
Abonneren