Integrating sentiment analysis to enhance mental health support chatbots

Senju Murase, Jarutas Andritsch

Research output: Chapter in Book/Report/Published conference proceedingConference contributionpeer-review

9 Downloads (Pure)

Abstract

Mental health conditions have adverse effects on an individual's quality of life. Between 2017 and 2019, there were 52.9 emergency department visits per 1,000 adults for mental health disorders. The rising popularity of artificial intelligence prompted its use in depression detection or mental condition diagnosis, establishing its prominent role in the mental health sector. In this research, we developed an AI chatbot with enhanced contextual intelligence using sentiment analysis to support individuals experiencing mental distress. For this research, we utilized a dataset of text data from 1.6 million posts on the social media platform X (formerly Twitter) due to its open-source availability and accessibility. The collected dataset was cleaned of repetitive characters, special characters, URLs, and numbers. NLP techniques, including tokenization, lemmatization, and stemming, were used for pre-processing. The application identifies sentiments, generates responses, and suggests basic support remedies. We used the Rasa framework to create a hybrid chatbot with customizable configurations. An LSTM model for sentiment analysis was integrated into the Rasa chatbot as a custom action component. A batch size of 32 and an optimal maximum sequence length were selected for balanced training efficiency and accuracy. The LSTM model achieved 76% accuracy in training and validation, enhancing the chatbot text comprehension. Future improvements will include adding personal features and expanding the user base.
Original languageEnglish
Title of host publication2024 2nd International Conference on Computing and Data Analytics (ICCDA)
PublisherIEEE
Pages1-6
Number of pages6
DOIs
Publication statusPublished - 12 Nov 2024
Event2nd International Conference on Computing and Data Analytics (ICCDA) - University of Technology and Applied Sciences (UTAS), Muscat, Oman
Duration: 12 Nov 202413 Nov 2024
https://iccda-24.utas.edu.om/

Conference

Conference2nd International Conference on Computing and Data Analytics (ICCDA)
Abbreviated titleICCDA
Country/TerritoryOman
CityMuscat
Period12/11/2413/11/24
Internet address

Cite this