You are on page 1of 25

VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELAGAVI

A PROJECT WORK PHASE-1 REPORT

ON
“MENTAL HEALTH CHATBOT USING RASA FRAMEWORK”
Submitted in partial fulfillment for the award of Degree of,
BACHELOR OF ENGINEERING
IN
ARTIFICIAL INTELLIGENCE & MACHINE LEARNING
By
CHIRAG G 4AL20AI010
NIKHIL G B 4AL20AI026
PRATAHAM P 4AL20AI031
PRATHIK N R 4AL20AI032

Under the Guidance of


Dr. Pradeep Nazareth
Associate Professor

DEPARTMENT OF ARTIFICIAL INTELLIGENCE & MACHINE LEARNING


ALVA’S INSTITUTE OF ENGINEERING & TECHNOLOGY
(Unit of Alva’s Education Foundation (R), Moodbidri)
Affiliated to Visvesvaraya Technological University, Belagavi &
Approved by AICTE, New Delhi. Recognized by Government of Karnataka.
Accredited by NAAC with A+ Grade
Shobhavana Campus, MIJAR-574225, Moodbidri, D.K., Karnataka
2023 – 2024
ALVA’S INSTITUTE OF ENGINEERING & TECHNOLOGY
(Unit of Alva’s Education Foundation (R), Moodbidri)
Affiliated to Visvesvaraya Technological University, Belagavi &
Approved by AICTE, New Delhi. Recognized by Government of Karnataka.
Accredited by NAAC with A+ Grade
Shobhavana Campus, MIJAR-574225, Moodbidri, D.K., Karnataka

DEPARTMENT OF ARTIFICIAL INTELLIGENCE & MACHINE LEARNING

CERTIFICATE
This is to certify that the Project entitled “MENTAL HEALTH CHATBOT USING RASA
FRAMEWORK” has been submitted by
CHIRAG G 4AL20AI010
NIKHIL G B 4AL20AI026
PRATHAM P 4AL20AI031
PRATHIK N R 4AL20AI032
the bonafide students of Department of Artificial Intelligence & Machine Learning, Alva’s
Institute of Engineering and Technology in partial fulfillment for the award of BACHELOR
OF ENGINEERING in DEPARTMENT OF ARTIFICIAL INTELLIGENCE & MACHINE
LEARNING of the VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELAGAVI during
the year 2023–2024. It is certified that all corrections/suggestions indicated for Internal Assessment
have been incorporated in the report deposited in the departmental library. The project report has been
approved as it satisfies the academic requirements in respect of Project work prescribed for the Bachelor
of Engineering Degree.

Prof. Pradeep Nazareth Prof. Pradeep Nazareth Prof. Harish Kunder


Project Guide Project Coordinator Head of the Department
ALVA’S INSTITUTE OF ENGINEERING & TECHNOLOGY
(Unit of Alva’s Education Foundation (R), Moodbidri)
Affiliated to Visvesvaraya Technological University, Belagavi &
Approved by AICTE, New Delhi. Recognized by Government of Karnataka.
Accredited by NAAC with A+ Grade
Shobhavana Campus, MIJAR-574225, Moodbidri, D.K., Karnataka

DEPARTMENT OF ARTIFICIAL INTELLIGENCE & MACHINE LEARNING

DECLARATION
We,

CHIRAG G 4AL20AI010
NIKHIL G B 4AL20AI026
PRATHAM P 4AL20AI031
PRATHIK N R 4AL20AI032
hereby declare that the dissertation entitled, “MENTAL HEALTH CHATBOT USING RASA
FRAMEWORK” is completed and written by us under the supervision of our guide, Mr. Apurba
Chakraborty, Sr. Assistant Professor, Department of Artificial Intelligence & Machine Learning,
Alva’s Institute of Engineering And Technology, Moodbidri, VISVESVARAYA
TECHNOLOGICAL UNIVERSITY, BELAGAVI during the academic year 2023-2024. The
dissertation report is original and it has not been submitted for any other degree in any university.

CHIRAG G 4AL20AI010
NIKHIL G B 4AL20AI026
PRATHAM P 4AL20AI031
PRATHIK N R 4AL20AI032
ABSTRACT

Our team's initiative in developing the Mental Health Chatbot System using the Rasa framework addresses a
critical issue underscored by the World Health Organization: the widespread lack of accessible mental health
support. This endeavor aims to bridge the gap by leveraging technology to provide a supportive and
understanding platform for individuals globally.

A chatbot, in essence, serves as a friendly and conversational computer program, and with Rasa's capabilities,
crafting such bots becomes more accessible. However, our chatbot goes beyond routine interactions; it's
intelligently designed to comprehend users' emotions and sentiments. When users express feelings of distress,
anxiety, or sadness, the chatbot responds empathetically, fostering a sense of understanding and care.

The uniqueness of our chatbot lies in its ability to recommend tailored video resources based on these
conversations. These suggested videos aim to offer solace, guidance, or understanding to the users, aiding them
in managing their emotions or seeking clarity about their mental state.

The motivation behind creating such a platform is crystal clear: societal pressures and stigmas often deter
individuals from discussing mental health openly. Our primary objective is to create a safe, non-judgmental
space where people can freely express their feelings, contemplate their emotions, and receive supportive
guidance. The chatbot serves as a virtual confidant, eliminating the fear and hesitance associated with seeking
mental health support.

The power of leveraging Rasa's capabilities lies in making mental health resources more accessible and tailored
to individual needs. By integrating technology with empathy, we aim to extend a helping hand to those
navigating the complexities of mental well-being in an era increasingly reliant on digital interactions.

Our initiative strives to democratize mental health resources, breaking barriers of accessibility and societal
stigma. By offering a supportive digital avenue, we aim to contribute meaningfully to the well-being of
individuals worldwide, fostering a culture of openness and understanding surrounding mental health in the
digital age.
TABLE OF CONTENTS

SL.NO DESCRIPTION PAGE NO


1
1 INTRODUCTION
3
2 LITERATURE REVIEW
15
3 PROBLEM STATEMENT AND OBJECTIVE
17
4 WORK DONE

REFERENCES 18
Mental Health Chatbot using Rasa Framework

CHAPTER 1
INTRODUCTION
In the expansive landscape of mental health care, a glaring disparity persists: as highlighted by the World
Health Organization (WHO), approximately 70% of individuals worldwide lack access to vital mental
health services. This stark reality underscores an urgent need for innovative, scalable solutions capable
of bridging the chasm between those seeking mental health support and the resources available.

In response to this critical need, the emergence of chatbots has emerged as a beacon of hope—a realm
where technology meets empathy to offer interactive and accessible mental health interventions. These
dynamic systems transcend traditional communication barriers, engaging users seamlessly across spoken,
written, and visual platforms. Their profound impact lies in their ability to reach individuals who might
otherwise hesitate to seek help due to societal stigmas surrounding mental health discussions.

Amid this transformative landscape, platforms like Rasa stand tall, epitomizing the amalgamation of
technology and compassion. Deeply entrenched in the nuances of Natural Language Processing (NLP),
Rasa serves as a catalyst for developers striving to create chatbot systems that transcend conventional
interaction models. Our Mental Health Chatbot System stands as a testament to this synergy, driven by
an unwavering commitment to harnessing the power of Rasa's capabilities.

What sets our system apart is its innate ability to delve into and understand user communication patterns
at a profound level. This analytical prowess enables the system to recommend highly relevant video links
meticulously tailored to individual sentiments and needs. Empowered by Rasa's sophisticated Natural
Language Understanding (NLU) tools, our framework not only comprehends but interprets user intents,
facilitating profoundly personalized and effective mental health support.

However, our innovation extends beyond personalized recommendations. It serves a dual purpose:
addressing the scarcity of mental health professionals while extending a compassionate hand to
individuals apprehensive about seeking help. By integrating chatbots fortified with Rasa's robust NLU
capabilities, our vision is to carve a path towards making mental health interventions universally
accessible and stigma-free.

At its core, our initiative embodies the fusion of technology and empathy, seeking to bridge the expanding
gap between individuals in need and the available mental health resources. Leveraging the transformative

Department of AIML Page 1 2023-24


Mental Health Chatbot using Rasa Framework

potential of technology-driven interventions, our endeavor harnesses Rasa's capabilities to craft a chatbot
system that not only provides inclusive and compassionate support but also reshapes the narrative
surrounding mental health care accessibility.

This introduction lays the groundwork for a comprehensive exploration of our Mental Health Chatbot
System, empowered by Rasa's prowess. Through this journey, our aspiration is to democratize access to
mental health resources, weaving a tapestry of hope and understanding in the digital realm. Our ultimate
goal is to foster a digital ecosystem where individuals can express their emotions freely, seek support
without fear of judgment or stigma, and find solace and guidance in their mental health journey.

Department of AIML Page 2 2023-24


Mental Health Chatbot using Rasa Framework

CHAPTER 2
LITERATURE REVIEW

[1] Novel Stock Crisis Prediction Technique—A Study on Indian Stock Market

This research by Nagaraj Naik and Biju R. Mohan proposes a novel stock crisis prediction technique
based on the Hybrid Feature Selection (HFS) algorithm. The authors address the challenges of predicting
stock crises in the volatile Indian stock market, attributing stock price sell-offs to factors such as
company earnings, geopolitical tension, financial crises, and pandemics. The proposed model involves
multiple steps, including HFS for feature selection, Naive Bayes for classifying strong fundamental
stocks, Relative Strength Index (RSI) for identifying stock price bubbles, moving average statistics for
pinpointing crisis points, and the use of Extreme Gradient Boosting (XGBoost) and Deep Neural
Network (DNN) regression methods for stock crisis prediction.

Key Points:

• Hybrid Feature Selection (HFS): Introduced to eliminate irrelevant financial parameters from stock
features.

• Naive Bayes Method: Employed for classifying strong fundamental stocks.

• Relative Strength Index (RSI): Utilized to detect bubbles in stock prices.

• Evaluation Metrics: Model performance assessed using Mean Squared Error (MSE), Mean Absolute
Error (MAE), and Root Mean Square Error (RMSE).

• Indian Datasets: Experiments conducted using Indian stock market data.

[2] Transformer-Gated Recurrent Unit Method for Predicting Stock Price Based on News
Sentiments and Technical Indicators
This study by Agus Tri Haryono, Riyanarto Sarno, and Kelly Rossa Sungkono introduces a novel
approach for predicting stock prices by incorporating news sentiments and technical indicators. The
authors highlight the influence of news sentiment on stock prices and propose a method for quantifying
sentiment by considering time sequence data. The research is funded by various institutions, including
Institut Teknologi Sepuluh Nopember (ITS), the Asian Development Bank (ADB), and the Indonesian
Ministry of Education and Culture.

Department of AIML Page 3 2023-24


Mental Health Chatbot using Rasa Framework

Key Points:
• Influence of News Sentiment: Explores the indirect impact of news sentiment on stock prices in
addition to traditional technical indicators.
• Quantification of News Sentiment: Proposes a method for quantifying news sentiments using a daily
confidence score from an active learning-based classification model.
• Evaluation Metric: The accuracy mean absolute percentage error (AcMAPE) is used to assess
forecasting models, emphasizing sensitivity to the misclassification of stock price trends.
• Experimental Results: Demonstrates that sentiment indicators influence stock prices, leading to
improved performance in the stock price forecasting model.
• Performance Comparison: TEGRU architecture outperforms other transformer architectures in five
feature scenarios.
• Financial Risk Mitigation: TEGRU presents the best-fit parameters to minimize financial risk for each
stock issuer.

[3] Hybrid Information Mixing Module for Stock Movement Prediction


This research by Jooweon Choi, Shiyong Yoo, Xiao Zhou, and Youngbin Kim addresses stock price
prediction using a method that combines stock and news data. Acknowledging the multifaceted nature
of variables influencing the stock market and the swift reflection of information in stock prices due to
market efficiency, the paper introduces a hybrid information mixing module. The module is designed
with two map blocks to facilitate effective interaction between price and text data features, creating a
new fusion mix. The study utilizes a multilayer perceptron-based model for stock price movement
prediction, focusing on high-volatility stock markets.
Key Points:
• Objective: Proposes a method for predicting stock price movement by combining stock and news data.
• Market Volatility Consideration: Recognizes the impact of various variables and the efficiency of stock
markets in quickly reflecting information in prices.
• Model Applied: Utilizes a multilayer perceptron-based model for stock price movement prediction.
• Performance Evaluation Metrics: Assess the accuracy, Matthews correlation coefficient (MCC), and
F1 score for stock price movement prediction.
• Experimental Setup: Conducts price fluctuation prediction experiments in a high-volatility stock
market.
• Acknowledgments: Supported by Chung-Ang University Research Grants in 2022 and an Institute for
Information & Communications Technology Planning Evaluation (IITP) grant funded by the Korea
government.

Department of AIML Page 4 2023-24


Mental Health Chatbot using Rasa Framework

[4] Stock Price Prediction Method Based on BiLSTM and Improved Transformer
This research by Shuzhen Wang, affiliated with the School of Information Science and Technology at
Xiamen University Tan Kah Kee College, focuses on maximizing shareholder returns through an
enhanced stock price prediction method. The proposed approach, termed BiLSTM-MTRAN-TCN, aims
to improve accuracy and stability by combining Bidirectional Long Short-Term Memory (BiLSTM)
with a novel transformer model (MTRAN-TCN) that incorporates the Temporary Revolution Network
(TCN) for stock price prediction.
Key Points:
• Motivation: Aims to maximize shareholder returns through enhanced stock price prediction.
• Proposed Method: Introduces BiLSTM-MTRAN-TCN, combining Bidirectional Long Short-Term
Memory (BiLSTM) with an improved transformer model (MTRAN-TCN) that incorporates the
Temporary Revolution Network (TCN).
• Experimental Evaluation: Tested on 5 index stocks and 14 Shanghai and Shenzhen stocks. Outperforms
existing methods in the literature, exhibiting the best fit for each index stock and achieving the best R2
in 85.7% of the stock dataset.
• Performance Metrics: Demonstrates a significant improvement with a decrease in Root Mean Square
Error (RMSE) by 24.3% to 93.5%, and an increase in R2 by 0.3% to 15.6%.
• Stability and Timeliness: Exhibits relatively stable prediction performance across different time
periods without timeliness issues.
• Implications: Indicates that the BiLSTM-MTRAN-TCN method excels in predicting stock prices,
offering high accuracy and generalization ability.

[5] Reducing Manual Effort to Label Stock Market Data by Applying a Metaheuristic Search: A
Case Study From the Saudi Stock Market
This research by Mohammad Alsulmi from the Department of Computer Science at King Saud
University in Riyadh, Saudi Arabia, addresses the challenge of manually labeling datasets in the context
of stock market data. The study emphasizes the application of computational intelligence and machine
learning techniques for enhancing the efficiency of labeling processes in stock market trading. The
proposed method employs a metaheuristic search to automate the labeling of stock market data, aiming
to improve model prediction accuracy by reducing manual effort.
Key Points:
• Objective: The research aims to alleviate the limitations associated with manual labeling of stock
market datasets by proposing an automatic labeling approach using metaheuristic search algorithms.
• Limitation Addressed: Recognizes the current practice of relying on manually labeled datasets for

Department of AIML Page 5 2023-24


Mental Health Chatbot using Rasa Framework

training stock market models and identifies it as a limitation that can compromise model prediction
accuracy.
• Proposed Approach: Introduces an automatic labeling approach that utilizes metaheuristic search
algorithms to perform the labeling task for stock market data.
• Significance: The study contributes to the field by providing an alternative approach to labeling stock
market data, with the potential to enhance the accuracy of models used for predicting stock prices.
• Support: The research is supported by the Research Center of the College of Computer and Information
Sciences, Deanship of Scientific Research, King Saud University, Saudi Arabia.
• Index Terms: The study is categorized under automatic labeling, machine learning, metaheuristic
search algorithms, stock data labeling, and stock market trading.

[6] Stock Price Prediction Method Based on Deep Learning Technology


This research by Xuan Ji, Jiachen Wang, and Zhijun Yan from the School of Management and
Economics at Beijing Institute of Technology introduces a novel stock price prediction method
leveraging deep learning technology. The paper addresses the limitations of traditional statistical and
econometric models in dealing with nonstationary time series data. By incorporating social media data,
specifically online news and comments reflecting investor sentiments, the proposed method aims to
enhance the accuracy of stock price predictions.
Key Points:
• Purpose: The study aims to develop an improved stock price prediction method by integrating
traditional financial features with social media text features, emphasizing the role of deep learning
technology.
• Methodology: The proposed method involves using Doc2Vec for generating long text feature vectors
from social media data. The dimensionality of these vectors is then balanced with stock financial index
variables using a stacked auto-encoder. Additionally, wavelet transform is applied to decompose time
series data and eliminate random noise. The long short-term memory (LSTM) model is employed for
stock price prediction.
• Originality/Value: The paper contributes to the field by introducing a novel stock price prediction
model that incorporates social media text features derived through deep learning technology. This
approach recognizes the significance of online news and comments in reflecting investor emotions and
attitudes.
• Findings: Experimental results indicate that the proposed method outperforms three benchmark models
across various evaluation indicators, demonstrating its effectiveness in predicting stock prices.

Department of AIML Page 6 2023-24


Mental Health Chatbot using Rasa Framework

• Keywords: The study involves text mining, deep learning, financial social media, and stock price
prediction.

[7] Stock Price Manipulation Detection Using Deep Unsupervised Learning


This research addresses the challenge of detecting stock price manipulation, emphasizing the cat-and-
mouse nature of manipulators adopting new techniques to evade detection. Unlike prior works reliant
on supervised learning with known manipulation patterns, this study employs deep unsupervised
learning. The models are trained to recognize normal trading behaviors in a limit order book, enabling
the identification of anomalous actions as potential manipulation.
Key Points:
• Objective: Detecting stock price manipulation using unsupervised learning to handle unknown
manipulation patterns.
• Methodology: Trains deep neural networks on normal trading behaviors to identify anomalies
indicative of manipulation.
• Results: Both AE and GANs models exhibit a low false-positive rate and successfully identify five out
of six manipulation cases.
• Contribution: Introduces an unsupervised learning approach suitable for detecting new or unknown
types of manipulation.
• Practical Application: Proposes the 'MinManiMax' strategy to optimize the decision boundary for
practical model application.
• Index Terms: Anomaly detection, market abuse, stock markets, stock price manipulation, unsupervised
learning.

[8] Stock Price Manipulation Detection Using Deep Unsupervised Learning


Summary: This research addresses the challenge of detecting stock price manipulation, emphasizing
the cat-and-mouse nature of manipulators adopting new techniques to evade detection. Unlike prior
works reliant on supervised learning with known manipulation patterns, this study employs deep
unsupervised learning. The models are trained to recognize normal trading behaviors in a limit order
book, enabling the identification of anomalous actions as potential manipulation.
Key Points:
• Objective: Detect stock price manipulation using unsupervised learning to handle unknown
manipulation patterns.
• Methodology: Trains deep neural networks on normal trading behaviors to identify anomalies
indicative of manipulation.

Department of AIML Page 7 2023-24


Mental Health Chatbot using Rasa Framework

• Results: Both AE and GANs models exhibit a low false-positive rate and successfully identify five out
of six manipulation cases.
• Contribution: Introduces an unsupervised learning approach suitable for detecting new or unknown
types of manipulation.
• Practical Application: Proposes the 'MinManiMax' strategy to optimize the decision boundary for
practical model application.
• Index Terms: Anomaly detection, market abuse, stock markets, stock price manipulation, unsupervised
learning.

[9] Forecasting Bitcoin price using artificial neural network


This paper applies an ANN for forecasting Bitcoin prices. The authors find that the ANN is effective in
forecasting Bitcoin prices for short time horizons. The ANN demonstrates improved performance
compared to other forecasting methods.
Key Points:
• ANN is a suitable tool for Bitcoin price forecasting for short-term horizons.

• Outperforms other statistical forecasting methods for Bitcoin prices.

• ANN holds promise in Bitcoin price forecasting.

[10] Stock Price Manipulation Detection Using Deep Unsupervised Learning


Summary: This research addresses the challenge of detecting stock price manipulation, emphasizing
the cat-and-mouse nature of manipulators adopting new techniques to evade detection. Unlike prior
works reliant on supervised learning with known manipulation patterns, this study employs deep
unsupervised learning. The models are trained to recognize normal trading behaviors in a limit order
book, enabling the identification of anomalous actions as potential manipulation.
Key Points:
• Objective: Detect stock price manipulation using unsupervised learning to handle unknown
manipulation patterns.
• Methodology: Trains deep neural networks on normal trading behaviors to identify anomalies
indicative of manipulation.
• Results: Both AE and GANs models exhibit a low false-positive rate and successfully identify five out
of six manipulation cases.
• Contribution: Introduces an unsupervised learning approach suitable for detecting new or unknown
types of manipulation.

Department of AIML Page 8 2023-24


Mental Health Chatbot using Rasa Framework

• Practical Application: Proposes the 'MinManiMax' strategy to optimize the decision boundary for
practical model application.
• Index Terms: Anomaly detection, market abuse, stock markets, stock price manipulation.

[11]Handling Data Imbalance and Feature Selection Problems in CNN-Based Stock Price
Forecasting
Summary:
This paper addresses challenges in stock market forecasting, focusing on data imbalance and feature
selection issues encountered in Convolutional Neural Networks (CNN) models. Traditional time series
methods face difficulties due to the high uncertainty and numerous influencing factors in stock data. The
authors propose a novel rule-based labeling algorithm and a feature selection approach to mitigate these
challenges. They construct a CNN-based model for predicting the next day's trade action in the Dow30
index, utilizing different image-based input variable sets created from technical indicators, gold, and oil
price data. Experimental results show that the proposed CNN model, with the introduced feature
selection and labeling approaches, achieves 3-22% higher accuracy compared to other CNN-based
models in existing studies. The labeling algorithm proves to be more effective in reducing the data
imbalance problem, decreasing the ratio between labeled data from 15 times to 1.8 times.
Key Points:
• Objective: Address data imbalance and feature selection issues in CNN-based stock price forecasting.
• Methodology: Introduces a novel rule-based labeling algorithm and a feature selection approach for
CNN-based models.
• Model Construction: Constructs a CNN-based model for predicting the next day's trade action in the
Dow30 index.
• Input Variable Sets: Utilizes different image-based input variable sets created from technical
indicators, gold, and oil price data.
• Prediction Performance: Achieves 3-22% higher accuracy compared to other CNN-based models in
existing studies.
• Labeling Algorithm: Proves to be more effective in reducing the data imbalance problem, decreasing
the ratio between labeled data from 15 times to 1.8 times.
• Index Terms: CNN model, feature selection, labeling, stock prediction.

[12] The application of long short-term memory (LSTM) neural networks for time series
prediction in stock market

Department of AIML Page 9 2023-24


Mental Health Chatbot using Rasa Framework

This paper investigates the use of long short-term memory (LSTM) neural networks for stock market
forecasting. The authors find that LSTM networks can effectively capture long-term dependencies in
stock prices, improving forecasting accuracy.
Key Points:
• LSTM networks are well-suited for stock market forecasting due to their ability to capture long-term
dependencies.
• LSTM networks outperform traditional forecasting methods such as ARIMA and exponential
smoothing.
• LSTM networks demonstrate promise in stock market forecasting.

[13] Research on financial assets transaction prediction model based on LSTM neural network
This paper proposes an LSTM neural network model for predicting financial asset transactions. The
authors find that the model can effectively capture temporal patterns and predict transaction volumes.
Key Points:
• LSTM neural network is effective at capturing temporal patterns in financial data, enabling accurate
transaction volume prediction.
• LSTM model outperforms traditional forecasting methods such as ARIMA and autoregressive
integrated moving average with exogenous (ARIMA-E).
• LSTM model demonstrates potential for transaction volume forecasting in financial markets.

[14] Deep learning for stock market prediction


This paper reviews the application of deep learning methods for stock market prediction. The authors
discuss various deep learning architectures, such as convolutional neural networks (CNNs) and recurrent
neural networks (RNNs), and their effectiveness in forecasting stock prices.
Key Points:
• Deep learning has emerged as a powerful tool for stock market prediction, offering superior
performance to traditional statistical methods.
• CNNs and RNNs are particularly well-suited for capturing complex patterns in financial data.
• Deep learning holds promise for enhancing stock market forecasting accuracy.

[15] A novel improved particle swarm optimization with long-short term memory hybrid model
for stock indices forecast

Department of AIML Page 10 2023-24


Mental Health Chatbot using Rasa Framework

This paper proposes a hybrid model for stock index forecasting. The model combines an LSTM neural
network with a particle swarm optimization (PSO) algorithm for parameter optimization. The authors
find that the hybrid model outperforms the LSTM model alone in forecasting stock indices.
Key Points:
• Hybrid model combining LSTM and PSO achieves higher forecasting accuracy compared to LSTM
alone.
• PSO algorithm effectively optimizes LSTM parameters, enhancing model performance.
• Hybrid model demonstrates potential for stock index forecasting.

[16] A hybrid model integrating long-short term memory with adaptive genetic algorithm based
on individual ranking for stock index prediction
This paper proposes a hybrid model for stock index forecasting. The model combines an LSTM neural
network with an adaptive genetic algorithm (AGA) based on individual ranking. The authors find that
the hybrid model outperforms the LSTM model alone in forecasting stock indices.
Key Points:
• Hybrid model combining LSTM and AGA outperforms LSTM alone in stock index forecasting.

[17] A hybrid model of long short-term memory with enhanced tree-based ensemble for stock
market prediction
This paper proposes a hybrid model for stock market prediction. The model combines an LSTM neural
network with an enhanced tree-based ensemble (ETE) algorithm. The authors find that the hybrid model
outperforms the LSTM model alone in forecasting stock prices.
Key Points:
• Hybrid model combining LSTM and ETE outperforms LSTM alone in stock price forecasting.

• ETE algorithm effectively improves forecasting accuracy of LSTM.

• Hybrid model demonstrates potential for stock price forecasting.

[18] An enhanced hybrid model for stock market prediction with LSTM and recurrent fuzzy
ARTMAP
This paper proposes an enhanced hybrid model for stock market prediction. The model combines an
LSTM neural network with recurrent fuzzy ARTMAP (RFA). The authors find that the hybrid model
outperforms the LSTM model alone in forecasting stock prices.
Key Points:

Department of AIML Page 11 2023-24


Mental Health Chatbot using Rasa Framework

• Enhanced hybrid model combining LSTM and RFA outperforms LSTM alone in stock price
forecasting.

• RFA algorithm effectively captures nonlinear patterns in financial data.

• Hybrid model demonstrates potential for stock price forecasting.

[19] A hybrid deep learning model for stock price forecasting using long short-term memory
network and attention mechanism
This paper proposes a hybrid deep learning model for stock price forecasting. The model combines an
LSTM neural network with an attention mechanism. The authors find that the hybrid model outperforms
the LSTM model alone in forecasting stock prices.
Key Points:
• Hybrid model combining LSTM and attention mechanism outperforms LSTM alone in stock price
forecasting.

• Attention mechanism focuses on the most relevant information in financial data, enhancing forecasting

accuracy.

• Hybrid model demonstrates potential for stock price forecasting.

[20] A hybrid model for stock price prediction based on LSTM and recurrent convolutional neural
network
This paper proposes a hybrid model for stock price prediction. The model combines an LSTM neural
network with a recurrent convolutional neural network (RCNN). The authors find that the hybrid model
outperforms the LSTM and RCNN models alone in forecasting stock prices.
Key Points:
• Hybrid model combining LSTM and RCNN outperforms LSTM and RCNN alone in stock price
forecasting.

• RCNN effectively captures local patterns in financial data, enhancing forecasting accuracy.

• Hybrid model demonstrates potential for stock price forecasting.

Purpose, Motivation, and Contribution:


The "Mental Health Chatbot using Rasa Framework" project is driven by a profound purpose—to
revolutionize the accessibility and approachability of mental health support. Its primary aim is to fill the
substantial gap in mental health services globally by providing an innovative and responsive platform.

Department of AIML Page 12 2023-24


Mental Health Chatbot using Rasa Framework

This chatbot, built on the robust foundations of Rasa's framework, is meticulously designed to serve as a
non-judgmental, empathetic companion for individuals navigating mental health challenges.

The overarching purpose lies in creating a safe and inclusive space where individuals, often restrained by
societal pressures or lacking accessible resources, can freely seek guidance. By leveraging the capabilities
of Rasa, the chatbot engages users in natural conversations, comprehends their emotional states, and
tailors recommendations, including curated video content, to support their mental health journey.
Through these personalized interactions, the project aims to empower individuals to manage their
emotions, seek relevant assistance, and foster a proactive approach to mental well-being.

At its core, the purpose transcends mere technological innovation—it's about reshaping the narrative
around mental health discussions. By utilizing technology as a conduit, this project strives to destigmatize
mental health conversations, making them more approachable and accessible to a diverse global audience.
Ultimately, the purpose extends beyond the confines of a chatbot—it's about offering solace, guidance,
and understanding to those in need, fostering a culture of empathy and support in the digital era.

The impetus behind the "Mental Health Chatbot using Rasa Framework" project derives from a poignant
realization—the alarming scarcity of essential mental health services, as highlighted by the World Health
Organization. This revelation serves as a catalyst, igniting the motivation to address the systemic barriers
preventing individuals from seeking mental health support.

The project's motivation is deeply rooted in dismantling societal stigmas and overcoming the challenges
of accessibility. The aim is to provide an avenue for individuals who might otherwise feel inhibited or
isolated when confronting mental health issues. By harnessing Rasa's powerful framework, the project
seeks to create a nurturing and empathetic space—a virtual confidant—where users can express their
emotions openly, seek guidance, and access relevant resources tailored to their unique needs.

The driving force is to leverage technology as an enabler for change—to transform the landscape of
mental health care. The project's motivation extends beyond technological innovation; it's about fostering
a culture of openness, understanding, and destigmatization. By embracing Rasa's capabilities, it
endeavors to redefine the way mental health discussions are approached, fostering a sense of community
and empathy in an increasingly digital world.

The "Mental Health Chatbot using Rasa Framework" project aspires to make a significant and

Department of AIML Page 13 2023-24


Mental Health Chatbot using Rasa Framework

multifaceted contribution to the realm of mental health support on a global scale. At its core, the project's
contribution lies in democratizing access to mental health resources and guidance, effectively bridging
the gap between the shortage of mental health professionals and the growing demand for support.

By harnessing the advanced capabilities of Rasa's framework, the chatbot system endeavors to offer
personalized, tailored recommendations and guidance to individuals based on their expressed emotions
and needs. This personalized approach is not just about providing assistance but about actively
dismantling barriers—such as societal stigmas and limited accessibility—that often deter individuals
from seeking mental health care.

The project's contribution extends beyond the confines of technological innovation. It aims to reshape
societal perceptions and attitudes surrounding mental health discussions, making them more
approachable and destigmatized. By utilizing Rasa's framework as a conduit, the project endeavors to
foster an inclusive and compassionate digital landscape—a space where individuals can openly express
their emotions, seek guidance, and find solace without fear of judgment or stigma.

Ultimately, the project's contribution transcends the development of a chatbot—it's about nurturing a
culture of empathy, support, and understanding. It strives to pave the way for a digital ecosystem where
mental health discussions are normalized, and individuals worldwide can access the support and resources
they need to navigate their mental well-being journey.

Department of AIML Page 14 2023-24


Mental Health Chatbot using Rasa Framework

CHAPTER 3

PROBLEM STATEMENT AND OBJECTIVES

1. Problem Statement:
The current landscape of mental health support systems faces significant challenges in accurately
detecting and addressing human sentiments, resulting in ineffective assistance for individuals
seeking mental health guidance. Traditional methodologies and techniques utilized in sentiment
analysis and mental health care exhibit limitations, leading to inaccurate results, especially in
complex scenarios. The existing systems lack the necessary precision and performance to cater to
diverse emotional states and challenging mental health situations.

Furthermore, within the current paradigm, the inability to detect human sentiments accurately
hampers the efficacy of mental health support systems. This deficiency leads to errors in sentiment
analysis, thereby restricting the systems' capacity to provide suitable recommendations and
guidance for users navigating mental health concerns.

Hence, the primary problem at hand lies in the inadequacy of existing systems to effectively
interpret and respond to human sentiments in the context of mental health. These limitations
hinder the provision of accurate, personalized guidance and resources to individuals seeking
assistance, impeding their ability to manage and address their mental well-being adequately.

The pressing need is to develop a system that leverages advanced sentiment analysis techniques
to accurately detect and respond to human emotions, thereby providing tailored support and
resources conducive to users' mental health needs. Addressing this challenge will enable the
creation of a more responsive, accurate, and user-centric mental health support system that
empowers individuals to navigate their emotional well-being more effectively.

2. OBJECTIVES:
• Enhance Sentiment Analysis Accuracy: Develop and implement advanced sentiment analysis
techniques to accurately interpret users' emotional expressions, categorizing them into nuanced
sentiment categories—positive, negative, or neutral—ensuring precision in understanding users'
mental states.
• User-Centric Engagement: Create a user module offering a seamless login and registration

Department of AIML Page 15 2023-24


Mental Health Chatbot using Rasa Framework

process, providing individuals with personalized accounts to access the mental health support
system, fostering a user-centric approach.
• Introduce Interactive Chatbot: Design and integrate an interactive chatbot interface within the
system, facilitating engaging and supportive conversations with users, allowing them to express
their mental health concerns comfortably.
• Tailored Recommendations: Implement a recommendation system based on detected sentiments,
curating video links and resources aligned with users' expressed emotions, providing relevant and
tailored guidance for addressing mental health challenges.
• Improve Mental Health Support: Enhance the system's capability to provide accurate and effective
guidance and resources for mental health care, empowering users to manage their emotional well-
being more effectively.
• Evaluation and Refinement: Continuously evaluate and refine the system's performance and
accuracy through user feedback, incorporating improvements and updates to ensure ongoing
efficacy and responsiveness to users' needs.
• User Empowerment: Empower users by providing comprehensive support and resources aligned
with their emotional state, fostering a sense of autonomy and empowerment in managing their
mental health.
• Destigmatization and Accessibility: Contribute to the destigmatization of mental health
discussions and enhance accessibility by creating a system that offers a safe, non-judgmental
space for individuals to seek support and resources without fear or hesitation.

Department of AIML Page 16 2023-24


Mental Health Chatbot using Rasa Framework

CHAPTER 4
WORK DONE
The project went through different stages. First, we did a lot of reading to understand what research has
been done on CHARTBOT technology. After that, we discussed with our project guide to go deeper into
what we want to achieve, how we'll do it, and what results we expect. Using what we learned from the
readings and the guide's helpful feedback, we put together a detailed review paper. This paper talks about
the latest improvements, challenges, and what the future might look like for CHARTBOT technology.
You can find this review paper attached at the end of the document. It shows how much effort and careful
thinking went into this project, providing important information and contributing to the ongoing academic
discussions in this field.

Department of AIML Page 17 2023-24


Mental Health Chatbot using Rasa Framework

REFERENCES
[1] Novel Stock Crisis Prediction Technique—A Study on Indian Stock Market NAGARAJ NAIK ,
(Graduate Student Member, IEEE), AND BIJU R. MOHAN-June 3, 2021

[2] Transformer-Gated Recurrent Unit Method for Predicting Stock Price Based on News Sentiments
and Technical Indicators AGUS TRI HARYONO 1,2, RIYANARTO SARNO 1 , (Senior Member,
IEEE), AND KELLY ROSSA SUNGKONO 1 , (Member, IEEE)- 12 July 2023

[3] Hybrid Information Mixing Module for Stock Movement Prediction JOOWEON CHOI 1 , (Student
Member, IEEE), SHIYONG YOO2 , XIAO ZHOU3 , AND YOUNGBIN KIM 4 , (Member, IEEE)-18
Jan 2023

[4] A Stock Price Prediction Method Based on BiLSTM and Improved Transformer SHUZHEN WANG
School of Information Science and Technology, Xiamen University Tan Kee College, Zhangzhou
363105, China-19 Jun 2023.

[5] Reducing Manual Effort to Label Stock Market Data by Applying a Metaheuristic Search: A Case
Study From the Saudi Stock Market MOHAMMAD ALSULMI Department of Computer Science,
College of Computer and Information Sciences, King Saud University, Riyadh 11451, Saudi Arabia-23
Jun 2021.

[6] A stock price prediction method based on deep learning technology Xuan Ji, Jiachen Wang and
Zhijun Yan School of Management and Economics, Beijing Institute of Technology, Beijing, China -7
Sep 2020

[7] Stock Price Manipulation Detection Using Deep Unsupervised Learning: The Case of Thailand
TEEMA LEANGARUN 1 , (Graduate Student Member, IEEE), POJ TANGAMCHIT 1 , (Member,
IEEE), AND SUTTIPONG THAJCHAYAPONG 2 , (Member, IEEE)-26 Jul 2021

[8] Ensemble Technique With Optimal Feature Selection for Saudi Stock Market Prediction: A Novel
Hybrid Red Deer-Grey Algorithm SAUD S. ALOTAIBI Department of Information Systems, College
of Computer and Information Systems, Umm Al-Qura University, Mecca 21421, Saudi Arabia- May 5,
2021
Department of AIML Page 18 2023-24
Mental Health Chatbot using Rasa Framework

[9] D. Banjade, ‘‘Forecasting Bitcoin price using artificial neural network,’’Jan. 2020,
doi:10.2139/ssrn.3515702.

[10] Effective Exploitation of Macroeconomic Indicators for Stock Direction Classification Using the
Multimodal Fusion Transformer TAE-WON LEE1 , PAWEŁ TEISSEYRE2,3, AND JAESUNG LEE
1,4 -2 Feb 2023.

[11] How to Handle Data Imbalance and Feature Selection Problems in CNN-Based Stock Price
Forecasting ZİNNET DUYGU AKŞEHİR AND ERDAL KILIÇ.-Mar 4 2022.

[12] H. Liu and Y. Hou, ‘‘Application of Bayesian neural network in prediction of stock time series,’’
Comput. Eng. Appl., vol. 55, no. 12, pp. 225–229,Apr-2020.

[13] A. M. Rather, A. Agarwal, andV. N. Sastry, ‘‘Recurrent neural network and a hybrid model for
prediction of stock returns,’’ Expert Syst. Appl., vol. 42, no. 6, pp. 3234–3241, Apr. 2020.

[14] A. Sherstinsky, ‘‘Fundamentals of recurrent neural network (RNN) and long short-term memory
(LSTM) network,’’ Phys. D, Nonlinear Phenomena, vol. 404, Mar. 2020, Art. no. 132306,

[15] G. Ding and L. Qin, ‘‘Study on the prediction of stock price based on the associated network model
of LSTM,’’ Int. J. Mach. Learn. Cybern., vol. 11, no. 6, pp. 1307–1317, Nov. 2022.

[16] X. Yan, W. Weihan, and M. Chang, ‘‘Research on financial assets transaction prediction model
based on LSTM neural network,’’ Neural Comput. Appl., vol. 33, no. 1, pp. 257–270, May 2020.

[17] M. Nabipour, P. Nayyeri, H. Jabani, A. Mosavi, E. Salwana, and S. Shahab, ‘‘Deep learning for
stock market prediction,’’ Entropy, vol. 22, no. 8, p. 840, Jul. 2020.

[18] Z. D. Aksehir and E. Kiliç, ‘‘How to handle data imbalance and feature selection problems in CNN-
based stock price forecasting,’’ IEEE Access, vol. 10, pp. 31297–31305, Apr-2022.

Department of AIML Page 19 2023-24


Mental Health Chatbot using Rasa Framework

[19] Y. Ji, A. W. Liew, and L. Yang, ‘‘A novel improved particle swarm optimization with long-short
term memory hybrid model for stock indices forecast,’’ IEEE Access, vol. 9, pp. 23660–23671, -Sep
2021.

[20] X. Zeng, J. Cai, C. Liang, and C. Yuan, ‘‘A hybrid model integrating longshort-term memory with
adaptive genetic algorithm based on individual ranking for stock index prediction,’’ PLoS ONE, vol. 17,
no. 8, Aug. 2022.

Department of AIML Page 20 2023-24

You might also like