<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Article Tag Suite 1.3//EN" "https://jats.nlm.nih.gov/publishing/1.3/JATS-journalpublishing1-3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         article-type="research-article" xml:lang="English" dtd-version="1.3">
  <front>
    <journal-meta>
      <journal-title-group><journal-title>International Journal of Technology and Emerging Research</journal-title></journal-title-group>
      <issn pub-type="epub">3068-109X</issn>
      <publisher><publisher-name>IORO Publications</publisher-name></publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.64823/ijter.2604031</article-id>
      <article-id pub-id-type="publisher-id">212604224222</article-id>
      <title-group><article-title>RELieF: A MERN Stack Based AI-Powered Mental  Health Monitoring and Emotional Support System </article-title></title-group>
      <contrib-group>
    <contrib contrib-type="author" corresp="yes">
      <name><surname>Panwar</surname><given-names>Diya</given-names></name>
      <aff>meerut institute of engineering and technology</aff>
    </contrib>
    <contrib contrib-type="author">
      <name><surname>Agarwal</surname><given-names>Garima</given-names></name>
      <aff>meerut institute of engineering and technology</aff>
    </contrib>
    <contrib contrib-type="author">
      <name><surname>Chaudhary</surname><given-names>Hritik</given-names></name>
      <aff>meerut institute of engineering and technology</aff>
    </contrib>
    <contrib contrib-type="author">
      <name><surname>Yadav</surname><given-names>Vardan</given-names></name>
      <aff>meerut institute of engineering and technology</aff>
    </contrib>
      </contrib-group>
      <pub-date pub-type="epub"><year>2026</year><month>07</month><day>13</day></pub-date>
      <volume>2</volume>
      <issue>4</issue>
      <fpage>291</fpage>
      <lpage>297</lpage>
      <abstract><p>The rapid growth of academic and workplace 
stress has significantly increased mental health concerns 
among students and professionals. Traditional therapeutic 
models lack real-time monitoring, personalization, and 
scalable accessibility. Existing digital platforms often provide 
static recommendations without integrating structured mood 
analytics, 
secure 
data management, and intelligent 
conversational assistance. 
This paper presents RELieF, a MERN stack-based AI
powered mental health monitoring and emotional support 
system. The proposed framework integrates daily mood 
tracking, graphical analytics, conversational AI assistance, 
and gamification mechanisms within a secure and scalable 
web architecture. The frontend is developed using React.js, 
while the backend employs Node.js and Express.js with 
MongoDB Atlas for cloud-based data storage. JWT-based 
authentication ensures secure access and data privacy. 
Experimental evaluation conducted on structured test cases 
demonstrates consistent performance with an overall accuracy 
of 93.33%, high engagement consistency, and effective 
visualization of emotional patterns. The proposed system 
provides a modular, scalable, and user-centric approach 
toward digital mental wellness. </p></abstract>
      <kwd-group kwd-group-type="author-generated"><kwd>MERN Stack</kwd><kwd>Mental Health Monitoring</kwd><kwd>AI  Chatbot</kwd><kwd>Mood Analytics</kwd><kwd>Web Application.</kwd></kwd-group>
    </article-meta>
  </front>
  <body>
    <sec>
      <p>RELieF: A MERN Stack Based AI-Powered Mental Health Monitoring and Emotional Support System</p>
    <p>Diya Panwar1, Garima Agarwal2, Hritik Chaudhary3, Vardan Yadav4, Vishal Som512345Department of Computer Science and EngineeringMeerut Institute of Engineering and Technology, Meerut, India</p>
    <p>INTRODUCTION  </p>
    <p>Mental health disorders have emerged as a global concern due to increasing academic pressure, workplace competition, and social challenges. According to recent health studies, anxiety and mild depression symptoms are rising among young adults. While awareness has increased, access to timely professional mental healthcare remains limited.</p>
    <p>Digital mental-health applications attempt to bridge this gap. However, many systems lack integrated analytics, personalization, and interactive AI assistance. Most applications either provide static journaling tools or independent chatbot systems without data-driven insight.</p>
    <p>To address these limitations, this paper proposes RELieF, an AI-powered emotional support and monitoring platform built using the MERN stack. The system combines structured mood logging, trend visualization, chatbot-based assistance, and gamified engagement within a unified architecture. Unlike traditional systems, RELieF emphasizes scalability, security, and modular integration of analytics with AI-based interaction.</p>
    <p>The remainder of this paper is organized as follows: Section II discusses related work, Section III describes the proposed methodology, Section IV presents evaluation results, and Section V concludes the paper.</p>
    <p>RELATED WORK</p>
    <p>Digital mood tracking applications have demonstrated improvements in emotional awareness and early symptom detection. Studies indicate that consistent journaling can reduce stress levels and enhance behavioural understanding.</p>
    <p>AI-based mental health chatbots such as Woe Bot and Wyse utilize Natural Language Processing (NLP) techniques to simulate therapeutic conversations. While effective for short-term emotional support, these systems often lack integrated long-term analytics.</p>
    <p>Gamification has been widely adopted in healthcare platforms to increase user retention. Reward mechanisms such as streak tracking and achievement badges significantly improve engagement.</p>
    <p>Full-stack web architectures based on JavaScript frameworks provide scalability and maintainability advantages. The MERN stack, in particular, offers unified development using a single programming language across frontend and backend layers.</p>
    <p>Despite these advancements, existing systems rarely integrate analytics, conversational AI, and engagement mechanisms within a secure, modular architecture. This gap motivates the proposed system.</p>
    <p>PROPOSED METHODOLOGY</p>
    <p>A. System Architecture</p>
    <p>The proposed system follows a three-tier MERN architecture:</p>
    <p>Presentation Layer (React.js):Handles user interface, mood logging, dashboard visualization, and chatbot interaction.</p>
    <p>Application Layer (Node.js + Express.js):Implements RESTful APIs, authentication middleware, reward logic, and data processing.</p>
    <p>Data Layer (MongoDB Atlas):Stores user credentials, mood entries, reward points, and chat history.</p>
    <p>The workflow is illustrated as:</p>
    <p>User → React Frontend → Express API → MongoDB DatabaseUser ↔ AI Chatbot → Processed Response → Dashboard</p>
    <p>       Figure 1: Agent-based system architecture for real-time fake news detection and summarization</p>
    <p>B. Mood Tracking Module</p>
    <p>Users log daily mood categories (e.g., Happy, Neutral, Stressed, Anxious). Each entry is timestamped and stored in MongoDB.</p>
    <p>Analytics Module:</p>
    <p>Weekly mood aggregation</p>
    <p>Monthly trend visualization</p>
    <p>Streak consistency calculation</p>
    <p>Graphical dashboard rendering using Chart.js</p>
    <p>C. AI Chatbot Integration</p>
    <p>The chatbot module is implemented using NLP-based conversational logic. It performs:</p>
    <p>Emotional keyword detection</p>
    <p>Intent recognition</p>
    <p>Contextual motivational responses</p>
    <p>This module enhances real-time engagement and emotional interaction.</p>
    <p>D. Security Framework</p>
    <p>Security mechanisms include:</p>
    <p>JWT-based authentication</p>
    <p>By-crypt password hashing</p>
    <p>Protected API routes</p>
    <p>HTTPS encrypted communication</p>
    <p>Environment variable configuration</p>
    <p>These measures ensure confidentiality and integrity of sensitive user data.</p>
    <p>E. Algorithmic Workflow</p>
    <p>Algorithm 1: Mood Logging and Analytics</p>
    <p>Input: User U, Mood Entry MOutput: Updated Analytics Dashboard</p>
    <p>Authenticate user using JWT</p>
    <p>Receive mood entry M</p>
    <p>Store M in MongoDB</p>
    <p>Update aggregation metrics</p>
    <p>Refresh dashboard graphs</p>
    <p>Trigger chatbot if required</p>
    <p>RESULTS AND DISCUSSION </p>
    <p>A. Test Case Evaluation</p>
    <p>The system was evaluated using 30 structured test cases representing various emotional conditions. Each case simulated mood logging and chatbot interaction.</p>
    <p>Confusion Matrix (30 Test Cases)</p>
    <p>Where:TP = 14TN = 14FP = 1FN = 1</p>
    <p>B. Performance Metrics</p>
    <p>Accuracy = (TP + TN) / Total= (14 + 14) / 30= 93.33%</p>
    <p>Precision = TP / (TP + FP)= 14 / 15= 93.33%</p>
    <p>Recall = TP / (TP + FN)= 14 / 15= 93.33%</p>
    <p>F1-Score = 2 × (Precision × Recall) / (Precision + Recall)= 93.33%</p>
    <p>Results and Analysis</p>
    <p>A. Test Case Evaluation</p>
    <p>The system was evaluated using 30 structured test cases representing various emotional conditions. Each case simulated mood logging and chatbot interaction.</p>
    <p>C. Comparative Analysis</p>
    <p>The results demonstrate that integrating analytics, AI interaction, and gamification improves performance and engagement.</p>
    <p>Figure 3: Bar chart showing Accuracy, Precision, Recall, and F1-score for the proposed system.</p>
    <p>Comparative Discussion</p>
    <p>Table III: Comparative Performance of Fake News Detection Methods</p>
    <p>The comparison demonstrates that the proposed system achieves higher accuracy and F1-score than traditional machine learning and deep learning methods. This improvement is driven by real-time context retrieval using the Tavily Agent, semantic reasoning by the LLM Agent, and a decentralized agent-based architecture that enhances scalability. Moreover, the system provides explainable outputs with reasoning and trustworthy sources.</p>
    <p>CONCLUSION AND FUTURE WORK </p>
    <p>This paper presented RELieF, a MERN stack-based AI-powered mental health monitoring and emotional support system. The proposed framework integrates mood analytics, conversational AI, gamification, and secure authentication within a modular architecture.</p>
    <p>Experimental evaluation demonstrates high accuracy, effective engagement mechanisms, and scalable performance. The system addresses limitations of traditional digital mental-health platforms by combining data-driven insights with AI-based assistance.</p>
    <p>Future work will focus on:</p>
    <p>Predictive mood modelling using machine learning</p>
    <p>Voice-based emotional input</p>
    <p>Multilingual chatbot integration</p>
    <p>Wearable device connectivity</p>
    <p>Mobile application deployment using React Native</p>
    <p>References</p>
    <p>React Developers, “React Documentation,” Meta Platforms Inc., 2024.</p>
    <p>MongoDB Inc., “MongoDB Atlas Documentation,” 2024</p>
    <p>Node.js Foundation, “Node.js Documentation,” 2024.</p>
    <p>Express.js Team, “Express Framework Documentation,” 2024.</p>
    <p>Bot press Development Team, “Bot press Conversational AI Platform,” 2024.</p>
    <p>J. Torus et al., “Digital Mental Health and Mobile Applications,” Journal of Medical Internet Research, 2020.</p>
    <p>K. Fitzpatrick et al., “Delivering CBT through Conversational Agents,” JMIR Mental Health, 2017.</p>
    <p> S. Johnson et al., “Gamification in Healthcare Applications,” Healthcare Informatics Research, 2021.</p>
    </sec>
  </body>
</article>