Skip to content

SBERT-InterpEVAL: A Semantic Evaluation Framework for Large Language Models in Fine-Grained Mental Health Topic Classification

Cristina Luna-Jim\'enez Nicolas Wagner Stefan Ultes Elisabeth Andr\'e David Griol Zoraida Callejas
Nov 2026
Artificial Intelligence Natural Language Processing

Abstract

It is estimated that 46% of EU citizens experienced psychosocial issues in 2023, highlighting the need for scalable tools to support mental healthcare. Natural language processing can assist clinicians by automatically analyzing users' written expressions, enabling diagnosis and longitudinal monitoring. While prior research has focused on fine-tuning language models to identify specific mental health conditions (e.g., anxiety or depression), it remains unclear whether domain-adapted models generalize to fine-grained classification of diverse mental health topics, including conditions, causes, and symptoms, compared with their general-domain counterparts. This challenge is compounded by the scarcity of richly annotated datasets and the lack of fair evaluation methodologies across different language model architectures. To address these gaps, we evaluate two conversational datasets comprising more than 28 mental health topics and introduce a semantic evaluation framework that enables equitable zero-shot comparison between masked (RoBERTa) and causal (Llama-2) language models by projecting model outputs and topic labels into a shared embedding space. We further compare general-purpose and mental-health-adapted variants using both zero-shot prompting and embedding-based classification. Our results reveal that open-domain models can unexpectedly outperform domain-adapted models under zero-shot evaluation, whereas this advantage diminishes or reverses when using embedding extraction. Additionally, causal language models generally outperform masked language models in topic recognition, albeit at greater computational cost. These findings demonstrate that conclusions about domain adaptation depend strongly on the evaluation strategy and highlight the importance of employing complementary evaluation methods when assessing language models for fine-grained mental health topic classification.

View source

Similar papers

#artificial intelligence Preprint Jul 2024

The Llama 3 Herd of Models

It is found that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks, and performs competitively with the state-of-the-art on image, video, and speech recognition tasks.

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri et al. · 21,082 citations · ⚡3,832
#artificial intelligence Conference Open access Jun 2018

Gibson Env: Real-World Perception for Embodied Agents

This paper investigates developing real-world perception for active agents, proposes Gibson Environment for this purpose, and showcases a set of perceptual tasks learned therein.

F. Xia, Amir Zamir, Zhi-Yang He et al. · 1,069 citations · ⚡112
#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#computer vision Open access Jul 2017

What happens when software developers are (un)happy

Consequences of happiness and unhappiness that are beneficial and detrimental for developers' mental well-being, the software development process, and the produced artifacts are found.

D. Graziotin, Fabian Fagerholm, Xiaofeng Wang et al. · 236 citations · ⚡13
#computer vision Open access Oct 2004

Mobile-D: an agile approach for mobile application development

The Mobile-D approach is briefly outlined here and the experiences gained from four case studies are discussed, which helped develop an agile development approach for mobile application development.

P. Abrahamsson, Antti Hanhineva, H. Hulkko et al. · 225 citations · ⚡18
#computer vision Open access Mar 2014

Happy software developers solve problems better: psychological measurements in empirical software engineering

A study with 42 participants investigates the relationship between the affective states, creativity, and analytical problem-solving skills of software developers and offers support for the claim that happy developers are indeed better problem solvers in terms of their analytical abilities.

D. Graziotin, Xiaofeng Wang, P. Abrahamsson · 216 citations · ⚡13

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.