Stress detection through prompt engineering with a general-purpose LLM

Advancements in large language models (LLMs) have opened new avenues for mental health monitoring through social media analysis. In this study, we present an iterative prompt engineering framework that significantly enhances the performance of the general-purpose LLM, GPT-4, for stress detection in social media posts, leveraging psychologist-informed hints. This approach achieved a substantial 17% accuracy improvement from 72% to 89% for the January 2025 version of GPT-4, alongside an 80% reduction in false positives compared to baseline zero-shot prompting. Our method not only surpassed domain-specific models like Mental-RoBERTa by 5% but also uniquely generates human-readable rationales. These rationales are crucial for mental health professionals, assisting them in understanding and validating the model's outputs-a key benefit for sensitive mental health applications. These results highlight prompt engineering as a resource-efficient, transparent strategy to adapt general-purpose LLMs for specialized tasks, offering a scalable solution for mental health monitoring without the need for costly fine-tuning.

Authors

Institutions

Publication Details

Journal
Acta Psychologica
Published
2025-08-28
DOI
https://doi.org/10.1016/j.actpsy.2025.105462
Citations
4
Primary Topic
Robot Manipulation and Learning
Type
article
Field-Weighted Citation Impact
4.86
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Stress detection through prompt engineering with a general-purpose LLM

Asadollah Shahbahrami, Nima Esmi, Peter de Jonge, Georgi Gaydadjiev et al.
4 citations
Acta Psychologica
Robot Manipulation and Learning
4.86
article

Stress detection through prompt engineering with a general-purpose LLM

Asadollah Shahbahrami, Nima Esmi, Peter de Jonge, Georgi Gaydadjiev, Yasaman Nabati, Bita Rezaei
article en
4 citations

Abstract

Advancements in large language models (LLMs) have opened new avenues for mental health monitoring through social media analysis. In this study, we present an iterative prompt engineering framework that significantly enhances the performance of the general-purpose LLM, GPT-4, for stress detection in social media posts, leveraging psychologist-informed hints. This approach achieved a substantial 17% accuracy improvement from 72% to 89% for the January 2025 version of GPT-4, alongside an 80% reduction in false positives compared to baseline zero-shot prompting. Our method not only surpassed domain-specific models like Mental-RoBERTa by 5% but also uniquely generates human-readable rationales. These rationales are crucial for mental health professionals, assisting them in understanding and validating the model's outputs-a key benefit for sensitive mental health applications. These results highlight prompt engineering as a resource-efficient, transparent strategy to adapt general-purpose LLMs for specialized tasks, offering a scalable solution for mental health monitoring without the need for costly fine-tuning.

Acta PsychologicaVol. 260
University of Groningen (NL), University of Guilan (IR), Delft University of Technology (NL)
Openalex Percentile: Top 5%
Robot Manipulation and Learning
4.86
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.