cs.AIOct 27, 2026

PromptSense: Sentiment-Aware Mental Health Chatbot with Dynamic Prompting

Authors: Sugi Lee, Jianlong Zhou, Jing sUN

Organizations: Transdisciplinary School, University of Technology Sydney, Sydney, Australia · Data Science Institute, University of Technology Sydney, Sydney, Australia

Abstract

Current Large Language Models (LLMs)-based mental health chatbots often lack sufficient empathy, contextual awareness, and safety mechanisms, potentially leading to ineffective or harmful interactions. This paper proposes a novel framework that integrates sentiment and depression analysis with a rule-based filtering mechanism prior to model inference. By dynamically constructing prompts based on emotional and risk-related insights, the framework aims to significantly improve the contextual relevance, empathy, and risk-aware of model-generated responses. We evaluated four model strategies and two prompt engineered variants across qualitative metrics such as empathy, helpfulness, clarity, relevance, safety, as well as toxicity assessments using the Perspective API. Experimental results indicate that the prompt engineering approaches outperforms DSFT and RLAIF by 1.8% and 1.1% respectively.

Figures & tables

Explore similar work

CardsList
  1. Lost in Delusion: Examining LLM Safety Under User Delusions and Distress

    May 31, 2026Andrew Aquilina, Chetna Nihalani, Vasudha Varadarajan +3Mental HealthLLM Safety Alignment

  2. Guiding Language Models to Be More Empathetic: Culturally Sensitive Mental Health Advice Generation Through Human-LLM Collaboration

    Jul 26, 2026Fatema Tuj Johora Faria, Mukaffi Bin Moin, Md. Mahfuzur Rahman +3Mental Health CounselingLLM Prompting

  3. Risk Governance for Generative AI Mental Health Support: A Multi-Turn Safety Architecture

    Jul 17, 2026Anabela C. Areias, Catarina Botelho, António Farinhas +7Emotional Support ConversationMental Health