SlideShare a Scribd company logo
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2823
Mental Health Assistant using LSTM
Ms. Aiciri C Hegde1, Ms. Madhiraju Kavyasri2, Ms. Somalaraju Soumya3,Ms. Srinidhi M Sharma4,
Prof. Manohar R5
Students, Department of Information Science and Engineering, Sir M Visvesvaraya Institute of Technology,
Bangalore, Karnataka, India1,2,3,4
Faculty , Department Of Information Science and Engineering, Sir M Visvesvaraya Institute of Technology,
Bangalore, Karnataka, India5
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - Mental health is defined as a condition of
well-being in which a person recognises his or her own
skills, can manage with everyday challenges, can work
effectively and can contribute to his or her network. As
the number of people suffering from mental illnesses
rises, it’s difficult to slow or stop the rate of rise in the
number. Our project will engage with the user, gather
data, analyse emotion and provide a solution with the use
of LSTM and NLP. We first begin conversation with the
user then evaluate the voice or text provided by the user
and study the emotion.
Key Words: Mental health, Voice Assistant, Machine
Learning
1.INTRODUCTION
One of the most important and difficult fitness challenges
in the actual world is the automatic identification of
psychological disorders. People’s behaviour, thinking and
emotion are all influenced by their overall mental
wellness,as they engage with the environment. Moreover
mental illnesses are on the rise greatly contributing to the
overall disease load in 2015, it is estimated that 44% of the
people( more than 332 million people) have experienced
symptomsof despair. The condition according to a WHO
research is aprevalent mood disorder that affects a great
amount of people of all ages. There are various barriers to
depressiondiagnosis and therapy along with a paucity of
specialists inthe industry, societal shame and aside-from-
the-point mentality.
1.1 Motivation
Acquiring psychiatric help has been proven to be useful in
the treatment of a variety of health problems particularly
inremote places where mental health facilities are already
scarce. While technological advancements in the field of
mental health received its share of challenges, there were
many who supported online mental health treatments.
Online therapy may not be everyones cup of tea but it has
shown its effectiveness to the people who feel uncomfortable
attending the traditional face-to-face support groups.
Some people show hesitation in sharing their personal
sorrows or problems with otherpeople becauseof the risk of
other people judging them or them getting mocked by other
people. So, in such cases online webpages or dialogue
systems can be used to get the normal informative needs of
the user by acting as a friend or a well-wisher.
1.2 Problem Statement
In the present world of AI and data science, everybody is
searching for the kind of system which is interactive. Often
within the health facility, there may be a loss of human
assets to attend to the patients. So, by means of
considering all these things we have decided our problem
definition as follows: To create a friendly webpage and
integrate it with a voice assistant.
2. RELATED WORK
A. “A Proposal for Virtual Mental Health Assistant”[1]-
Psychological health has been one of the most overlooked
and yet most crucial components of our entire well-being
in recent years. Due to cost, time, and space restrictions, as
well as a scarcity of resources connected to in-person
counselling, this study presents a system for a virtual
mental wellbeing assistant.
Disturbed mental health is frequently the result of a
snowball effect that develops over time and demands
constant attention and purposeful attempts to improve.
With the support of a virtual mental health assistant, this
is achievable. A conversation function, psychological
evaluation, an emotion recognition module, and a
suggestion system for enhancing the user's mood will all
be included in the proposed assistant. For sentiment
analysis, we employed a Naive Bayes classifier and Neural
Networks.
B. “UpBeat – Your Mental Health Assistant using Rasa
NLU”[2]- In
Recent years Textual conversational agent or chatbots
have gained tremendous attention. In today’s world,
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 06 | June 2022 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2824
chatbots arewidely used as an agent to communicate with
a human be itas a booking assistant or customer service
support on e- commerce and educational websites. Our aim
of this project is to developed a Cognitive behavioural
therapy system or aTherapy Chatbot which will be able to
assess the mode of the user and also the sentiment of the
interaction that it will have with user. This system or bot
will also devise techniques to provide mindfulness and
provide self-help tothe user so that he/she can take better
care of their life.In this pandemic situation there are
people having emotional breakdowns, some are facing
anxiety, tension,some people even get panic attacks,
depression and face sleep problems. As a result, we are
turning to AI solutions to help these people improve or
maintain their mental health.In a world full of stressful
day-to-day activities no one is completely healthy because
of daily hassles, whether it is employment tension or
feeling of being overwhelmed by other personal factors.
Therefore through this research an effort has beenmade
to facilitate depressive symptoms or aggravation via a
personal virtual psychotherapist.
C. “Mental Health Chatbot System by Using Machine
Learning”[3]-
Mental health has become one of the most overlooked, yet
crucial, aspects of our entire well-being in today's
environment. In this work, we propose a system for a
virtualmental health assistant due to cost, time, and space
constraints, as well as a lack of resources associated with
inperson counselling. Disrupted mental health is typically
the consequence of a snowball effect that necessitates
continual attention and deliberate efforts to remediate.
This is made possible with the help of a virtual mental
health chatbot. The recommended chatbot will have a chat
feature, many language voice input options, and a
recommendation tool to improve the user's mood. Neural
networks were used to train data for this project, and
Natural Language Processing techniques will be used to
improve results.
2. METHODOLOGY
This model can be divided into three steps, the primary
part extracts emotion out of text with the help of text
content mining and LSTMs ,the next part of the application
identifies the key features of speech to recognize the
emotion, in the third part according to the emotion
recognized from the second part solutions are displayed.
Theinputcanbetakenintwo ways- speech or text. We have
set a parameter ,talk and can change the parameter
however we need the input to be.We can set talk as 1 for
speech input and talk as 0 for text input. If text is given as
the input, text mining is used to extract the emotion from
the input. When the input is in speech we use speech
recognition library to convert speech to text, then using
LSTM and NLP the emotion is recognizedand given as the
output.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 06 | June 2022 www.irjet.net p-ISSN: 2395-0072
Fig -1: System Architecture
3. ALGORITHM LSTM Algorithm:
A mapped input example and its output should be present in
the model for the classification procedure. There are a
variety of classification approaches available with Logistic
Regression, Nearest Neighbors, Naïve Bayes, Support
Vector Machines, Decision Trees and Artificial Neural
Networks, being the most commonly employed. The long
short-term memory (LSTM), first established to resolve
the challengesof short-term memory province and permit
the network toconsider longer dependencies. In addition
to the RNN structure, LSTM have a cell state which carries
data through LSTM cells with a simple record exchange as
an outcome. The networks default actions is to take long-
term memory needs into consideration. Furthermore the
LSTM strategy has three gates (forget gate, update gate,
output gate) that indicate the overall set of data that will
be sent to one morecell. The forget gate identifies which
facts ought to be erased. The update gate identifies which
values must reallybe altered and the output gate identifies
the cells output.
Fig -2: Long Short-Term Memory
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 06 | June 2022 www.irjet.net p-ISSN: 2395-0072
Fig -3: LSTM formulas
5. IMPLEMENTATION
The project’s development and deployment is when
aspirations and plans can become actuality. Any software
deployment is always preceded by critical decisions on
theplatform to be utilized, the language to be used and so
on. Several variables have an influence on these choices
including the real-world context in which the system
operates the speed with which it must be implemented,
concerns for safety and other implementation-specific
aspects. It is in reality the programming deployment of a
technical requirements or method as a programme
software development or other computer systems for a
particular standard there may be several
implementations.
4. CONCLUSION
We have created a contextual voice responder which
chatsor responds to the user as per the persons mood. We
havedesigned this voice responder in such manner that it
responds to person if his feeling stressful or lonely and while
he or she is feeling happy. From this we do not want to
give the message that a voice responder will replace an
expert inpsychiatric counselling, this voice responder will
assist person to construct a good mindset toward
lifestyles and breaking down the recursive cycle of
terrible thoughts.
5. FUTURE SCOPE
Our project will chat with a user and tries to understand
hismood and accordingly help him lift up the mood with the
useof LSTM and NLP. The future of this project depends
upon the new developments in the NLP field which will
help in maintaining a proper flow in conversation and all
the dialogues would be automated. We can increase
webpage accuracy by increasing epochs. Epochs are
basically, the number of times your machine learning
model will see eachtraining example during the training.
We can also upgrade the system by recommending the
userconsult the psychiatrists directly through the system.
Also, we can improve the data storage part by recording
the user information and maintaining their records for
future use.
REFERENCES
[1] V. Sreevidya Iyer, Dhanashree Shetty, Purva Badgujar,
Anjali Nambiar, Kajal Jewani, " A Proposal for Virtual
Mental Health Assistant" Published in: 2021 7th
International Conference on Advanced Computing and
Communication Systems
DOI:10.1109/ICACCS51430.2021.9441990.
[2] Aditya Rajesh Nagdekar, Nisha Suresh Poonia, Kaushik
Nayan Dere, Dr.Amol Pande, “UpBeat – Your Mental Health
Assistant using Rasa NLU”, Published in: IRJET Volume: 08
Issue: 05 | May 2021
[3] Prem Patil, Arun Bhau, Shubham Damani, Pritam Pandile,
Prof. Swapnaja Jadhav: “Mental Health Chatbot System by
Using Machine Learning”, Published in: IRJET Volume: 09
Issue: 05 | May 2022
[4] K. Denecke, S. Vaaheesan and A. Arulnathan, "A Mental
Health Chatbot for Regulating Emotions (SERMO) - Concept
and Usability Test," in IEEE Transactions on Emerging
Topics in Computing, doi: 10.1109/TETC.2020.2974478.
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2825

More Related Content

PDF
Mental Health Chatbot System by Using Machine Learning
PDF
IRJET - Chatbot for Monitoring Mental Health
PDF
IRJET - A Review Paper on Various Depression Analysing Algorithms
PDF
Ameliorating Depression through Deep Learning Conversational Agent: A Novel A...
PDF
Mano Vaidya: Gateway to Relaxation Via Machine Learning
PDF
Chatbot with ChatGPT technology for mental wellbeing and emotional management
PDF
Product Analyst Advisor
PDF
Investigating Assisting Mental Health Condition using Sentiment Analysis thro...
Mental Health Chatbot System by Using Machine Learning
IRJET - Chatbot for Monitoring Mental Health
IRJET - A Review Paper on Various Depression Analysing Algorithms
Ameliorating Depression through Deep Learning Conversational Agent: A Novel A...
Mano Vaidya: Gateway to Relaxation Via Machine Learning
Chatbot with ChatGPT technology for mental wellbeing and emotional management
Product Analyst Advisor
Investigating Assisting Mental Health Condition using Sentiment Analysis thro...

Similar to Mental Health Assistant using LSTM (20)

PDF
IRJET- Deep Neural Network based Mechanism to Compute Depression in Socia...
PDF
Survey paper on AI chatbot on intelligent nutritionist
PDF
RECOGNITION OF PSYCHOLOGICAL VULNERABILITIES USING MACHINE LEARNING
PDF
Mind-Balance: AI-Powered Mental Health Assistant
PDF
Health Care System with Smart Assistant
PDF
DETECTING PSYCHOLOGICAL INSTABILITY USING MACHINE LEARNING
PDF
IRJET- Social Network Message Credibility: An Agent-based Approach
PDF
IRJET - Social Network Message Credibility: An Agent-based Approach
PDF
IRJET- Analytic System Based on Prediction Analysis of Social Emotions from U...
PDF
Mental Health Prediction Using Machine Learning
PDF
A PROPOSED EXPERT SYSTEM FOR EVALUATING THE PARTNERSHIP IN BANKS
PDF
A PROPOSED EXPERT SYSTEM FOR EVALUATING THE PARTNERSHIP IN BANKS
PDF
IRJET - Suicidal Text Detection using Machine Learning
PDF
IRJET - Chat-Bot Utilization for Health Consultancy
PDF
Ravindra industrial training
PDF
Design of Chatbot using Deep Learning
PDF
Medic - Artificially Intelligent System for Healthcare Services ...
PDF
A Thorough review on Med Bot using Deep Learning
PDF
Soft Computing in Management An Introduction
PDF
IRJET - Fake News Detection: A Survey
IRJET- Deep Neural Network based Mechanism to Compute Depression in Socia...
Survey paper on AI chatbot on intelligent nutritionist
RECOGNITION OF PSYCHOLOGICAL VULNERABILITIES USING MACHINE LEARNING
Mind-Balance: AI-Powered Mental Health Assistant
Health Care System with Smart Assistant
DETECTING PSYCHOLOGICAL INSTABILITY USING MACHINE LEARNING
IRJET- Social Network Message Credibility: An Agent-based Approach
IRJET - Social Network Message Credibility: An Agent-based Approach
IRJET- Analytic System Based on Prediction Analysis of Social Emotions from U...
Mental Health Prediction Using Machine Learning
A PROPOSED EXPERT SYSTEM FOR EVALUATING THE PARTNERSHIP IN BANKS
A PROPOSED EXPERT SYSTEM FOR EVALUATING THE PARTNERSHIP IN BANKS
IRJET - Suicidal Text Detection using Machine Learning
IRJET - Chat-Bot Utilization for Health Consultancy
Ravindra industrial training
Design of Chatbot using Deep Learning
Medic - Artificially Intelligent System for Healthcare Services ...
A Thorough review on Med Bot using Deep Learning
Soft Computing in Management An Introduction
IRJET - Fake News Detection: A Survey
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Ad

Recently uploaded (20)

PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
web development for engineering and engineering
PDF
PPT on Performance Review to get promotions
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Automation-in-Manufacturing-Chapter-Introduction.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
bas. eng. economics group 4 presentation 1.pptx
Foundation to blockchain - A guide to Blockchain Tech
web development for engineering and engineering
PPT on Performance Review to get promotions
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Model Code of Practice - Construction Work - 21102022 .pdf
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...

Mental Health Assistant using LSTM

  • 1. © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2823 Mental Health Assistant using LSTM Ms. Aiciri C Hegde1, Ms. Madhiraju Kavyasri2, Ms. Somalaraju Soumya3,Ms. Srinidhi M Sharma4, Prof. Manohar R5 Students, Department of Information Science and Engineering, Sir M Visvesvaraya Institute of Technology, Bangalore, Karnataka, India1,2,3,4 Faculty , Department Of Information Science and Engineering, Sir M Visvesvaraya Institute of Technology, Bangalore, Karnataka, India5 ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - Mental health is defined as a condition of well-being in which a person recognises his or her own skills, can manage with everyday challenges, can work effectively and can contribute to his or her network. As the number of people suffering from mental illnesses rises, it’s difficult to slow or stop the rate of rise in the number. Our project will engage with the user, gather data, analyse emotion and provide a solution with the use of LSTM and NLP. We first begin conversation with the user then evaluate the voice or text provided by the user and study the emotion. Key Words: Mental health, Voice Assistant, Machine Learning 1.INTRODUCTION One of the most important and difficult fitness challenges in the actual world is the automatic identification of psychological disorders. People’s behaviour, thinking and emotion are all influenced by their overall mental wellness,as they engage with the environment. Moreover mental illnesses are on the rise greatly contributing to the overall disease load in 2015, it is estimated that 44% of the people( more than 332 million people) have experienced symptomsof despair. The condition according to a WHO research is aprevalent mood disorder that affects a great amount of people of all ages. There are various barriers to depressiondiagnosis and therapy along with a paucity of specialists inthe industry, societal shame and aside-from- the-point mentality. 1.1 Motivation Acquiring psychiatric help has been proven to be useful in the treatment of a variety of health problems particularly inremote places where mental health facilities are already scarce. While technological advancements in the field of mental health received its share of challenges, there were many who supported online mental health treatments. Online therapy may not be everyones cup of tea but it has shown its effectiveness to the people who feel uncomfortable attending the traditional face-to-face support groups. Some people show hesitation in sharing their personal sorrows or problems with otherpeople becauseof the risk of other people judging them or them getting mocked by other people. So, in such cases online webpages or dialogue systems can be used to get the normal informative needs of the user by acting as a friend or a well-wisher. 1.2 Problem Statement In the present world of AI and data science, everybody is searching for the kind of system which is interactive. Often within the health facility, there may be a loss of human assets to attend to the patients. So, by means of considering all these things we have decided our problem definition as follows: To create a friendly webpage and integrate it with a voice assistant. 2. RELATED WORK A. “A Proposal for Virtual Mental Health Assistant”[1]- Psychological health has been one of the most overlooked and yet most crucial components of our entire well-being in recent years. Due to cost, time, and space restrictions, as well as a scarcity of resources connected to in-person counselling, this study presents a system for a virtual mental wellbeing assistant. Disturbed mental health is frequently the result of a snowball effect that develops over time and demands constant attention and purposeful attempts to improve. With the support of a virtual mental health assistant, this is achievable. A conversation function, psychological evaluation, an emotion recognition module, and a suggestion system for enhancing the user's mood will all be included in the proposed assistant. For sentiment analysis, we employed a Naive Bayes classifier and Neural Networks. B. “UpBeat – Your Mental Health Assistant using Rasa NLU”[2]- In Recent years Textual conversational agent or chatbots have gained tremendous attention. In today’s world, International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 06 | June 2022 www.irjet.net p-ISSN: 2395-0072
  • 2. © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2824 chatbots arewidely used as an agent to communicate with a human be itas a booking assistant or customer service support on e- commerce and educational websites. Our aim of this project is to developed a Cognitive behavioural therapy system or aTherapy Chatbot which will be able to assess the mode of the user and also the sentiment of the interaction that it will have with user. This system or bot will also devise techniques to provide mindfulness and provide self-help tothe user so that he/she can take better care of their life.In this pandemic situation there are people having emotional breakdowns, some are facing anxiety, tension,some people even get panic attacks, depression and face sleep problems. As a result, we are turning to AI solutions to help these people improve or maintain their mental health.In a world full of stressful day-to-day activities no one is completely healthy because of daily hassles, whether it is employment tension or feeling of being overwhelmed by other personal factors. Therefore through this research an effort has beenmade to facilitate depressive symptoms or aggravation via a personal virtual psychotherapist. C. “Mental Health Chatbot System by Using Machine Learning”[3]- Mental health has become one of the most overlooked, yet crucial, aspects of our entire well-being in today's environment. In this work, we propose a system for a virtualmental health assistant due to cost, time, and space constraints, as well as a lack of resources associated with inperson counselling. Disrupted mental health is typically the consequence of a snowball effect that necessitates continual attention and deliberate efforts to remediate. This is made possible with the help of a virtual mental health chatbot. The recommended chatbot will have a chat feature, many language voice input options, and a recommendation tool to improve the user's mood. Neural networks were used to train data for this project, and Natural Language Processing techniques will be used to improve results. 2. METHODOLOGY This model can be divided into three steps, the primary part extracts emotion out of text with the help of text content mining and LSTMs ,the next part of the application identifies the key features of speech to recognize the emotion, in the third part according to the emotion recognized from the second part solutions are displayed. Theinputcanbetakenintwo ways- speech or text. We have set a parameter ,talk and can change the parameter however we need the input to be.We can set talk as 1 for speech input and talk as 0 for text input. If text is given as the input, text mining is used to extract the emotion from the input. When the input is in speech we use speech recognition library to convert speech to text, then using LSTM and NLP the emotion is recognizedand given as the output. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 06 | June 2022 www.irjet.net p-ISSN: 2395-0072 Fig -1: System Architecture 3. ALGORITHM LSTM Algorithm: A mapped input example and its output should be present in the model for the classification procedure. There are a variety of classification approaches available with Logistic Regression, Nearest Neighbors, Naïve Bayes, Support Vector Machines, Decision Trees and Artificial Neural Networks, being the most commonly employed. The long short-term memory (LSTM), first established to resolve the challengesof short-term memory province and permit the network toconsider longer dependencies. In addition to the RNN structure, LSTM have a cell state which carries data through LSTM cells with a simple record exchange as an outcome. The networks default actions is to take long- term memory needs into consideration. Furthermore the LSTM strategy has three gates (forget gate, update gate, output gate) that indicate the overall set of data that will be sent to one morecell. The forget gate identifies which facts ought to be erased. The update gate identifies which values must reallybe altered and the output gate identifies the cells output. Fig -2: Long Short-Term Memory
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 06 | June 2022 www.irjet.net p-ISSN: 2395-0072 Fig -3: LSTM formulas 5. IMPLEMENTATION The project’s development and deployment is when aspirations and plans can become actuality. Any software deployment is always preceded by critical decisions on theplatform to be utilized, the language to be used and so on. Several variables have an influence on these choices including the real-world context in which the system operates the speed with which it must be implemented, concerns for safety and other implementation-specific aspects. It is in reality the programming deployment of a technical requirements or method as a programme software development or other computer systems for a particular standard there may be several implementations. 4. CONCLUSION We have created a contextual voice responder which chatsor responds to the user as per the persons mood. We havedesigned this voice responder in such manner that it responds to person if his feeling stressful or lonely and while he or she is feeling happy. From this we do not want to give the message that a voice responder will replace an expert inpsychiatric counselling, this voice responder will assist person to construct a good mindset toward lifestyles and breaking down the recursive cycle of terrible thoughts. 5. FUTURE SCOPE Our project will chat with a user and tries to understand hismood and accordingly help him lift up the mood with the useof LSTM and NLP. The future of this project depends upon the new developments in the NLP field which will help in maintaining a proper flow in conversation and all the dialogues would be automated. We can increase webpage accuracy by increasing epochs. Epochs are basically, the number of times your machine learning model will see eachtraining example during the training. We can also upgrade the system by recommending the userconsult the psychiatrists directly through the system. Also, we can improve the data storage part by recording the user information and maintaining their records for future use. REFERENCES [1] V. Sreevidya Iyer, Dhanashree Shetty, Purva Badgujar, Anjali Nambiar, Kajal Jewani, " A Proposal for Virtual Mental Health Assistant" Published in: 2021 7th International Conference on Advanced Computing and Communication Systems DOI:10.1109/ICACCS51430.2021.9441990. [2] Aditya Rajesh Nagdekar, Nisha Suresh Poonia, Kaushik Nayan Dere, Dr.Amol Pande, “UpBeat – Your Mental Health Assistant using Rasa NLU”, Published in: IRJET Volume: 08 Issue: 05 | May 2021 [3] Prem Patil, Arun Bhau, Shubham Damani, Pritam Pandile, Prof. Swapnaja Jadhav: “Mental Health Chatbot System by Using Machine Learning”, Published in: IRJET Volume: 09 Issue: 05 | May 2022 [4] K. Denecke, S. Vaaheesan and A. Arulnathan, "A Mental Health Chatbot for Regulating Emotions (SERMO) - Concept and Usability Test," in IEEE Transactions on Emerging Topics in Computing, doi: 10.1109/TETC.2020.2974478. © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2825