Real Time Mental Health Supporting System Using Deep Learning

Authors:
S. Rubin Bose, Kunal Saha, Ishaan Chaturvedi, S. Silvia Priscila, M. Sakthivanitha

Addresses:
Department of Electronics and Communications Engineering, SRM Institute of Science and Technology, Ramapuram, Chennai, Tamil Nadu, India. Department of Computer Science and Engineering, SRM Institute of Science and Technology, Ramapuram, Chennai, Tamil Nadu, India. Department of Computer Science, Bharath Institute of Higher Education and Research, Chennai, Tamil Nadu, India. Department of Information Technology, Vels Institute of Science, Technology and Advanced Studies, Chennai, Tamil Nadu, India.  

Abstract:

This paper presents a web-based mental health chatbot powered by a fine-tuned BERT (Bidirectional Encoder Representations from Transformers) model designed to classify the severity of depression in user input. The application utilises Flask for the backend and integrates a BERT model to categorise user messages into four emotional states: none, mild, moderate, or severe. It enhances its functionality with a set of positive keyword heuristics and confidence-based rule handling to make more nuanced predictions when the model's confidence is low. To promote mental well-being, the Chatbot provides personalised suggestions and actionable content such as breathing exercises, games, or mental health support links based on the detected emotional level. Additionally, the application employs Google’s Gemini language model to generate empathetic and context-aware responses, ensuring the user feels heard and supported. This fusion of machine learning, natural language processing, and mental health awareness creates an accessible and supportive tool aimed at promoting emotional wellness through intelligent interaction.

Keywords: Mental Fitness; Depression Detection; Anxiety Treatment; AI Mental Assistance; Emotional Guide; Coping Techniques; Crisis Intervention; Mental Health Support; Machine Learning.

Received on: 05/07/2024, Revised on: 29/09/2024, Accepted on: 07/11/2024, Published on: 03/03/2025

DOI: 10.69888/FTSHSL.2025.000360

FMDB Transactions on Sustainable Health Science Letters, 2025 Vol. 3 No. 1, Pages: 1-10

  • Views : 103
  • Downloads : 8
Download PDF