DOI : https://doi.org/10.5281/zenodo.18846206
- Open Access

- Authors : Badgujar Yash, Bangar Sarthak, Swapnil Dond, Shweta Phadnis
- Paper ID : IJERTV15IS020557
- Volume & Issue : Volume 15, Issue 02 , February – 2026
- Published (First Online): 03-03-2026
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License:
This work is licensed under a Creative Commons Attribution 4.0 International License
AI Driven Mental Health Chatbot with Emotion Detection
Badgujar Yash, Bangar Sarthak, Swapnil Dond, Shweta Phadnis
Department of Artificial Intelligence and Data Science Engineering ISBM College of Engineering, Nande, Pune
Abstract – Mental health issues such as stress, anxiety, and depression are increasing globally, yet access to timely professional support remains limited due to stigma, high costs, and shortage of therapists. This project proposes an AI-driven mental health chatbot with integrated emotion detection to provide users with real-time, empathetic, and accessible mental health support. The chatbot leverages Natural Language Processing (NLP) to understand user input, sentiment analysis and emotion recognition models to detect the users emotional state, and machine learning algorithms to deliver context-aware, personalized responses. By incorporating emotion detection through text and, optionally, speech analysis, the system can adapt its tone, recommend relaxation exercises, or escalate critical cases for professional intervention.
The chatbot will be accessible via web and mobile platforms, ensuring continuous availability and anonymity, thus encouraging users to openly express their feelings. Technologies employed include Python, TensorFlow for emotion recognition, NLP frameworks Flair and cloud deployment for scalability. The expected outcome is an intelligent virtual companion capable of offering empathetic conversations, emotional support, self-help resources, and early intervention cues, ultimately bridging the gap between individuals in need and mental health care services.
I INTRODUCTION
Mental health disorders have emerged as a global public health concern, affecting more than 970 million people worldwide, with depression and anxiety being the most prevalent. The shortage of mental health professionals, stigma around seeking help, and limited access to psychological services, especially in rural and under resourced areas, exacerbate the issue. In this context, Artificial Intelligence (AI) presents a transformative opportunity to enhance mental health care by providing scalable, accessible, and personalized support systems.
Recent advancements in AI, particularly in the domains of emotion recognition and natural language processing (NLP), have led to the development of intelligent systems capable of detecting emotional states from speech, text, and facial expressions. These capabilities are critical in mental health applications, where understanding a user’s emotional state
forms the basis for effective intervention. AI-driven emotion recognition models leverage machine learning algorithms such as convolutional neural networks (CNNs), recurrent neural networks (RNNs), and transformer-based models like BERT to analyze and classify emotions with increasing accuracy. AI-powered chatbots are gaining attention for their ability to simulate therapeutic conversations, deliver evidence-based psychological interventions such as cognitive behavioral therapy (CBT), and maintain user engagement over time
Despite these promising developments, several challenges remain. Ensuring data privacy, managing ethical concerns, and improving the emotional intelligence of AI systems are critical for widespread adoption.
II OBJECTIVES
- To design and develop an AI-driven chatbot capable of engaging in meaningful and empathetic conversations related to mental health.
- To implement emotion detection using Natural Language Processing (NLP) and Machine Learning techniques for analysing text (and optionally speech) input.
- To provide personalized responses and coping strategies based on the users detected emotional state.
- To ensure 24/7 accessibility through web and mobile platforms, offering anonymity and a safe environment for users.
- To integrate a mechanism that can recommend professional intervention when severe emotional distress is detected.
- To create a scalable and user-friendly system that can handle multiple users while maintaining data privacy and confidentiality.
III SCOPE
- Utilize NLP frameworks and sentiment analysis models to understand user queries.
- Employ machine learning-based emotion recognition to classify emotions such as happiness, sadness, anger, stress, or anxiety.
- Deliver context-aware and adaptive responses, including relaxation techniques, motivational messages, and resource recommendations.
- Support deployment on web and mobile platforms for wide accessibility.
- Focus on non-clinical support (guidance, emotional relief, and coping strategies), not replacing licensed therapists but acting as an early intervention and supportive tool.
IV LITERATURE SURVEY
- Harshit Bhandari (April 2025) Emotion-Aware AI Chatbot for Mental Health Support, Lack of long-term efficacy studies; need for diverse population inclusion. Limited focus on clinical mental illness; mostly targeted general well-being.
- Sarada Devaram (March 2024) Empathic Chatbot: Emotional Intelligence for Mental Health Well-being, empathic chatbot designed to provide emotional support for mental health well-being. Emotion recognition still relies heavily on textual cues, which may misinterpret sarcasm, ambiguity, or cultural variations in language.
V SYSTEM REQUIREMENTS
System requirements are the configuration that a system must have for a hardware or software application to run smoothly and efficiently. Failure to meet these requirements can result in installation problems or performance problems. The former may prevent a device or application from getting installed, whereas the latter may cause a product to malfunction or perform below expectation or even to hang or crash.
Hardware Requirements
Processor: Intel Core i7 or equivalent Memory: 8 GB RAM or higher.
- Hard Disk: up to 1GB of available space may be required.
- Network: Reliable internet connection with good bandwidth.
Software Requirements
- Operating System: Windows
- Architecture: Client Server
- Programming Language: Python
- Libraries required: Flair, Hugging-face.
System Overview:
PYTHON
Python, a versatile and high-level programming language, is celebrated for its simplicity, readability, and extensive libraries. It’s widely used across various domains, including web development, data analysis, scientific computing, and artificial intelligence. Python’s clean syntax and dynamic typing make it ideal for both beginners and experienced developers, fostering quick prototyping and scalable solutions. Its vibrant community continually enriches the ecosystem, ensuring Python remains a go-to choice for diverse projects and industries.
NLP AND ML LIBRARIES
Flair and Hugging Face are leading libraries in Natural Language Processing (NLP), offering powerful tools and resources for developers. Flair, developed by Zalando Research, provides state-of-the-art NLP models and embeddings, along with an easy-to-use framework for training custom models. Hugging Face’s Transformers libary is renowned for its vast collection of pre-trained models and APIs, enabling seamless integration of cutting-edge NLP capabilities into applications. Lang-chain, another notable project, focuses on multilingual NLP research and development, contributing to the advancement of language understanding across diverse linguistic contexts. PyTorch, the underlying framework for both Flair and Transformers, provides efficient tensor computation with Graphics Processing Unit (GPU) acceleration, making it a corner stone of modern deep learning research and application.
VI PROPOSED WORK
Building upon the functionalities of existing mental health chatbots and acknowledging their limitations, this project proposes a novel mental health chatbot designed to address limitations found in existing systems. We will focus on a specific mental health domain (e.g., anxiety, stress) to provide more targeted support and resources. A sentiment analysis model, trained using the FLAIR library, will categorize user messages to understand their emotional tone.
A fine-tuned Large Language Model (LLM) from Hugging Face Transformers will generate tailored responses that consider the sentiment tone of the user. This ensures responses are empathetic and supportive, addressing the user’s specific state.
System Design:;
Architecture
Fig. 1 Architecture Diagram
DFD Diagram:
Fig. 2 DFD Level 0
Fig. 3 DFD Level 1
VII REFERENCES
- Al Applications in Mental Health Care (2020) https://www.sciencedirect.com/science/article/abs/pii/S245190222100 046X
- NLP Techniques for Sentiment Analysis in Mental Health (2019) https://www.sciencedirect.com/science/article/abs/pii/B978012819043 2000034
- Machine Learning Algorithms for Mood Detection and Emotional https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsy g.2023.1 190326/full
- Lang-Chain Documentation: https://python.langchain.com/docs/integrations/platforms/huggingface
/
