Related Experiment Video
Updated: Sep 9, 2025

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Stress detection through prompt engineering with a general-purpose LLM
Nima Esmi1, Asadollah Shahbahrami2, Yasaman Nabati3
1Bernoulli Institute, University of Groningen, Groningen, The Netherlands; ISRC, Khazar University, Baku, Azerbaijan.
None:
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.
More Related Videos
Related Concept Videos
Applications of Stress
The...
Principal Stresses: Problem Solving
Stress: General Loading Conditions
The shearing force, possessing potential directionality within the plane of the section, is simplified into two component forces running parallel to the x and y axes....
Stress Concentrations
The stress...
Problem Solving on Stress and Strain
Mechanistic Models: Compartment Models in Algorithms for Numerical Problem Solving
In individual population analyses, different algorithms are employed, such as Cauchy's method, which uses a...

