Automated classification of exposure and encourage events in speech data from pediatric OCD treatment
- 3 November 2025
- journal article
- Published by Oxford University Press (OUP) in JAMIA Open
- Vol. 8 (6) , ooaf127
Abstract
Objective: To develop and evaluate an automated classification system for labeling Exposure Process Coding System (EPCS) quality codes—specifically exposure and encourage events—during in-person exposure therapy sessions using automatic speech recognition (ASR) and natural language processing techniques. Materials and Methods: The system was trained and tested on 360 manually labeled pediatric Obsessive-Compulsive Disorder (OCD) therapy sessions from 3 clinical trials. Audio recordings were transcribed using ASR tools (OpenAI’s Whisper and Google Speech-to-Text). Transcription accuracy was evaluated via word error rate (WER) on manual transcriptions of 2-minute audio segments compared against ASR-generated transcripts. The resulting text was analyzed with transformer-based models, including Bidirectional Encoder Representations from Transformers (BERT), Sentence-BERT, and Meta Llama 3. Models were trained to predict EPCS codes in 2 classification settings: sequence-level classification, where events are labeled in delimited text chunks, and token-level classification, where event boundaries are unknown. Classification was performed either with fine-tuned transformer-based models, or with logistic regression on embeddings produced by each model. Results: With respect to transcription accuracy, Whisper outperformed Google Speech-to-Text with a lower WER (0.31 vs 0.51). For sequence classification setting, Llama 3 models achieved high performance with area under the ROC curve (AUC) scores of 0.95 for exposures and 0.75 for encourage events, outperforming traditional methods and standard BERT models. In the token-level setting, fine-tuned BERT models performed best, achieving AUC scores of 0.85 for exposures and 0.75 for encourage events. Discussion and Conclusion: Current ASR and transformer-based models enable automated quality coding of in-person exposure therapy sessions. These findings demonstrate potential for real-time assessment in clinical practice and scalable research on effective therapy methods. Future work should focus on optimization, including improvements in ASR accuracy, expanding training datasets, and multimodal data integration.Keywords
Funding Information
- National Institute of Mental Health (R01MH135861)
- NIMH (R21/R33MH096828)
- NIMH (R01MH79217, R01MH079154, R01MH079377, R01MH064188, R01MH055126, R01MH055121, R01MH055121, R01MH055126)
- Intramural Research Program of the National Institute of Mental Health (ZIC-MH002968, ZIA-MH002781)
This publication has 28 references indexed in Scilit:
- Family-Based Treatment of Early Childhood Obsessive-Compulsive DisorderJAMA Psychiatry, 2014
- CBT specific process in exposure-based treatments: Initial examination in a pediatric OCD sampleJournal of Obsessive-Compulsive and Related Disorders, 2012
- Interrater reliability: the kappa statisticBiochemia Medica, 2012
- Cognitive Behavior Therapy Augmentation of Pharmacotherapy in Pediatric Obsessive-Compulsive DisorderJAMA, 2011
- Efficacy of Cognitive Behavioral Therapy for Anxiety Disorders: A Review of Meta-Analytic FindingsPsychiatric Clinics of North America, 2010
- Treatment integrity in psychotherapy research: Analysis of the studies and examination of the associated factors.Journal of Consulting and Clinical Psychology, 2007
- Cognitive-Behavior Therapy, Sertraline, and Their Combination for Children and Adolescents With Obsessive-Compulsive DisorderJAMA, 2004
- Acoustics of children’s speech: Developmental changes of temporal and spectral parametersThe Journal of the Acoustical Society of America, 1999
- The Urgent Need to Improve Health Care QualityInstitute of Medicine National Roundtable on Health Care QualityJAMA, 1998
- The lab versus the clinic: Effects of child and adolescent psychotherapy.American Psychologist, 1992