Abstract
Text-based computational approaches for assessing the quality of psychotherapy are being developed to support quality assurance and clinical training. However, due to the long durations of typical conversation-based therapy sessions and limited annotated modeling resources, computational methods largely rely on frequency-based lexical features or dialogue acts to assess overall session-level characteristics. In this work, we propose a hierarchical framework to automatically evaluate the quality of transcribed Cognitive Behavioral Therapy (CBT) interactions. By modeling session-level quality as a function of local variations across the interaction, we divide sessions into conversation segments and initialize segment-level qualities with session-level scores. We produce segment embeddings by fine-tuning a BERT-based model and predict local quality scores using a Bidirectional LSTM. Global quality is modeled as a linear function of local scores, allowing for iterative updates to segment-level estimates. Evaluated on real-world CBT clinical recordings, our approach leads to improved evaluation accuracy for most behavioral codes in both regression and classification tasks.
Introduction
In psychotherapy, "behavioral coding" serves as the gold standard for quality assurance. Trained experts evaluate therapist performance using standardized scales like the Cognitive Therapy Rating Scale (CTRS). However, manual coding is prohibitively expensive and slow, preventing its use for large-scale clinical training or real-time monitoring.
Automating this process presents significant challenges for modern AI. First, standard language models like BERT are limited by a 512-token context window, whereas a typical therapy session contains thousands of words. Second, many automated approaches assume a therapist’s skill remains constant throughout a session. In reality, performance is dynamic; a therapist might excel at "agenda setting" early on but struggle with "homework review" later.
Methodology
The proposed framework addresses these challenges through a hierarchical approach that models within-session variability.
Segmentation and Local Estimation
Sessions are divided into segments of $M=40$ utterances. A BERT-based model generates embeddings for each segment, which are then processed by a Bidirectional LSTM (BLSTM) to predict "local" quality scores. This allows the model to capture the nuanced fluctuations in therapist behavior throughout the interaction.
Global Integration
The overall session score is derived from these local estimates using two distinct modes:
- Even Mode: A simple average where every segment contributes equally to the final score.
- Uneven Mode: An attention mechanism that learns to weight segments based on their importance for specific behavioral ratings. For example, the model learns that the beginning of a session is more critical for "agenda setting."
To refine the model, an iterative "shift correction" algorithm updates segment-level estimates based on the final session-level prediction, allowing the BERT component to fine-tune on more accurate local labels.
Datasets and Experimental Setup
The framework was trained and evaluated on two primary datasets:
- CBT Dataset: 1,118 sessions from the Beck Community Initiative. While 292 sessions had manual transcripts, the remainder utilized automated speech recognition (ASR) with a high word error rate (45.81%), reflecting the "noisy" conditions of real-world clinical data.
- UCC Dataset: 4,268 sessions from a University Counseling Center, used for domain-adaptive pre-training to familiarize the model with therapeutic language.
Results and Discussion
The framework was evaluated on 11 distinct CTRS behavioral codes, including empathy, collaboration, and pacing.
Predictive Performance
The hierarchical model achieved a Root Mean Squared Error (RMSE) of 8.09 for the total CTRS score (on a 0-66 scale), significantly outperforming the standard BERT-small baseline (9.89). For binary classification (high vs. low quality), the model reached an F1 score of 75.1%.
Insights on Session Dynamics
The "Even" mode proved most effective for 8 out of 11 codes, suggesting that consistent performance is often the best predictor of overall quality. However, the "Uneven" mode was superior for time-specific tasks like "Agenda Setting" and "Homework Review." Attention weights confirmed that the model naturally identifies the beginning and end of sessions as high-importance regions for these specific tasks.
Furthermore, the model demonstrated remarkable robustness to ASR noise. Despite a 46% error rate, it successfully captured high-level structural patterns, suggesting that the "gist" of the therapeutic interaction is more important than verbatim accuracy.
Conclusion
This hierarchical framework represents a significant step toward scalable, automated quality evaluation in psychotherapy. By acknowledging the dynamic nature of clinical interactions and modeling local quality fluctuations, the system provides more accurate and interpretable assessments than previous monolithic approaches. Future work will explore topic-based segmentation and the integration of prosodic features—such as tone and emotional inflection—to better capture the non-verbal nuances of the therapeutic alliance.
Summary updated