Automated Quality Assessment of Cognitive Behavioral Therapy Sessions Through Highly Contextualized Language Representations

Nikolaos Flemotomos, Victor R. Martinez, Zhuohao Chen, Torrey A. Creed, David C. Atkins, Shrikanth Narayanan · DOI

Abstract

During a psychotherapy session, the counselor typically adopts techniques which are codified along specific dimensions (e.g., 'displays warmth and confidence', or 'attempts to set up collaboration') to facilitate the evaluation of the session. Those constructs, traditionally scored by trained human raters, reflect the complex nature of psychotherapy and highly depend on the context of the interaction. Recent advances in deep contextualized language models offer an avenue for accurate in-domain linguistic representations which can lead to robust recognition and scoring of such psychotherapy-relevant behavioral constructs, and support quality assurance and supervision. In this work, we propose a BERT-based model for automatic behavioral scoring of a specific type of psychotherapy, called Cognitive Behavioral Therapy (CBT), where prior work is limited to frequency-based language features and/or short text excerpts which do not capture the unique elements involved in a spontaneous long conversational interaction. The model focuses on the classification of therapy sessions with respect to the overall score achieved on the widely-used Cognitive Therapy Rating Scale (CTRS), but is trained in a multi-task manner in order to achieve higher interpretability. BERT-based representations are further augmented with available therapy metadata, providing relevant non-linguistic context and leading to consistent performance improvements. We train and evaluate our models on a set of 1,118 real-world therapy sessions, recorded and automatically transcribed. Our best model achieves an F1 score equal to 72.61% on the binary classification task of low vs. high total CTRS.

Introduction

Psychotherapy is a cornerstone of mental health treatment, yet ensuring its quality remains a significant logistical challenge. The "gold standard" for quality control is behavioral coding, where trained experts manually score sessions. However, this process is prohibitively expensive and time-consuming, resulting in the vast majority of therapy sessions going unevaluated. Previous attempts to automate this using Natural Language Processing (NLP) often relied on "bag-of-words" approaches or analyzed short text snippets, failing to capture the long-term context and complex interpersonal dynamics of a 50-minute conversation. This research bridges the gap by using deep learning to process entire sessions and provide interpretable feedback.

Methodology

The proposed system utilizes a sophisticated pipeline combining domain-specific language modeling with multi-task learning:

  1. Domain Adaptation (psychBERT): A standard pre-trained BERT model was fine-tuned on a large, unlabeled dataset of over 4,000 psychotherapy sessions to learn the specific vocabulary and conversational nuances of the domain.
  2. Model Architecture: Utterances are processed by the adapted BERT, followed by a bidirectional Gated Recurrent Unit (Bi-GRU) to capture the temporal flow of the session. An attention mechanism identifies parts of the session most relevant to specific quality metrics.
  3. Multi-task Learning: The model predicts scores for all 11 individual CTRS dimensions (e.g., Agenda Setting, Collaboration, Homework) simultaneously. This approach improves performance and increases the interpretability of the final evaluation.
  4. Metadata Integration: Non-linguistic context, such as clinic location, patient population, and therapist training level, is incorporated into the model.

Experimental Setup and Data

The study utilized two primary datasets:

  • BCI Dataset: 1,118 real-world CBT sessions from the Beck Community Initiative, with 292 human-transcribed and the remainder automatically transcribed via an ASR pipeline.
  • UCC Dataset: 4,268 sessions from a university counseling center used for initial BERT domain adaptation.

All sessions were scored by doctoral-level CBT experts using the 11-item CTRS on a 0–6 scale per item. The distribution of these scores across the dataset highlights the complexity of the behavioral constructs being modeled.

Distribution of CTRS scores across the 11 individual dimensions and the total session score.

Results and Discussion

The multi-task model using therapist-only utterances and metadata achieved a peak F1 score of 72.61% on the binary classification task (competent vs. non-competent). Key findings include:

  • Metadata Impact: Adding metadata provided a 9.3% relative improvement in performance, suggesting that clinical context is crucial for assessing quality.
  • Therapist Focus: Focusing exclusively on therapist utterances proved sufficient and robust for assessing specific skills.
  • Clinical Structure: Analysis of attention weights showed the model "learned" the structure of a session, looking at the beginning for "Agenda Setting" and the end for "Homework."
  • ASR Robustness: Despite a high Word Error Rate (~45%) in automated transcriptions, the model remained effective, learning high-level semantic patterns.

Conclusion

This work demonstrates the feasibility of using deep contextualized language representations for the automated quality assessment of CBT. While ASR errors and the lack of acoustic features (e.g., tone of voice) remain limitations, the model provides a robust tool for augmenting human supervision. Ethical considerations emphasize that such tools should support, rather than replace, human experts, ensuring representative training data to avoid algorithmic bias.

Summary updated

BibTeX
@inproceedings{flemotomos2021automated,
  author = {Nikolaos Flemotomos and Victor R. Martinez and Zhuohao Chen and Torrey A. Creed and David C. Atkins and Shrikanth Narayanan},
  title = {{Automated Quality Assessment of Cognitive Behavioral Therapy Sessions Through Highly Contextualized Language Representations}},
  booktitle = {PLoS},
  year = {2021},
  doi = {10.1371/journal.pone.0258639},
}
Figure