Detecting Suicidal Ideation Signals in Synthetic Conversations with an LLM-Based Mental Health Chatbot: Experimental study
Daniel Reichenpfader, Elia Gabarron, Sara Maria Lüthi, Jennifer Romina Bürki, Alexandra Kroißenbrunner, Kerstin Denecke
Bern University of Applied Sciences · Universitat Politècnica de València
Abstract
Background: Large language models (LLMs) are increasingly being investigated as tools for supporting mental health. To ensure user safety, they require strategies to recognize possible risks such as suicidal ideation and capabilities for appropriate reaction. Objective: This study evaluated the performance of an LLM-based chatbot in accurately stratifying suicidal ideation among university students and to provide appropriate responses. Methods: Five variants of the system prompt were designed to classify suicide risk and produce suitable responses in context. The best-performing prompt was selected through expert evaluation using a standardized test dataset, refined, and subsequently tested with four LLMs (GPT-5, Gemma3:27b, Deepseek-r1:32b, and Qwen3:32b) using 100 synthetic user inputs. Results: Across all model variants, suicide risk classification performance across seven risk levels was generally low, with weighted-average F1 scores ranging from 0.23 to 0.34. GPT-5 achieved the highest accuracy in both exact and near-exact (within one risk class) classifications. However, Gemma3:27b demonstrated the strongest correlation with human ratings (Spearman’s ρ = 0.73–0.83), suggesting consistent relative judgment. Qualitative analysis showed that 64% of chatbot responses were rated as appropriate or very appropriate, and none were judged potentially harmful. Conclusions: Despite the responses generally being non-toxic, none of the models reliably stratified suicidal ideation, indicating a critical safety gap. Underestimation of risk and the subsequent occurrence of false negatives could result in delayed intervention. Further work is required to optimize the process promptly, incorporate conversational context and use complementary assessment methods before LLMs can be used safely in mental health settings.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Evaluating the safety of AI responses in suicide-related interactions: A clinically informed framework and simulation studyPsychiatry Research Communications · 2026
- AI Chatbot Suicide Risk Detection and Response: Human Validation Study of the Open-Source VERA-MH Safety EvaluationJMIR AI · 2026
- Between Help and Harm: An Evaluation Study of Mental Health Crisis Handling by Large Language ModelsJMIR Mental Health · 2026
- Context presentation and native conversation structure in large language model responses to escalating suicide risk: a controlled multimodel evaluation.Frontiers in psychiatry · 2026
- Risk and Refusal: Mechanisms of LLM Responses to Suicidal IdeationarXiv · 2026
- SUICIDE AND CRISIS RISK DETECTION IN MENTAL HEALTH CHATBOTS: TECHNICAL APPROACHES, SAFETY EVIDENCE, AND GOVERNANCE CHALLENGESInternational Journal of Innovative Technologies in Social Science · 2026