Application of Artificial Intelligence in Chatbot and Social Media Community for a Mental Health Monitoring Web-Application
Main Article Content
Abstract
Mental health is a major challenge for modern society affecting people of working age and their families, jobs, and communities. To provide continuous emotional support, personalized assistance, and remote mental health tracking, chatbots and social media platforms are increasingly using Artificial Intelligence (AI). There is little or no previous literature that has documented a fully functional mental health monitoring web-app that uses AI to provide all these features: chatbot, e-community, video conferencing, and email automation. Chatbots are software systems that offer various interactive online services, including people with mental health needs and have been successfully integrated into the field of mental healthcare. Similarly, social media can help monitor the mental health situation by extracting information from posts for sentiment analysis as people often post their feelings on social media, so analysing these posts can reveal their mood, emotion, cognition, or mental state. This paper solves the problem sentiment by using the MERN stack to develop an interactive mental health monitoring application which features: social media community, chatbot named ‘Dave the HappyBot’, Email automation and video conferencing. The results showed that among the 13 users of the web-app from a performance indices class of A, B, C, D, and E, majority indicated that they felt ‘happier’ and ‘somewhat mentally relieved’ after interacting with the Chatbot. The A class recorded 18% responses, B class obtained 31%, the C class got 19%, the D class achieved 26%, and the E class gained 6%. The users were open to recommending the App to their peer and meeting their psychologist for constant mental health monitoring sessions. This paper can be further improved documenting the developments of web-app with more users who possess higher knowledge of software development and have a history of mental health struggle. Higher utility of the MERN stack would also be an improvement.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
Lancet Global Health, “Mental health matters,” November 2020. [Online]. Available: https://www.thelancet.com/action/showPdf?pii=S2214-109X%2820%2930432-0. [Accessed 23 October 2022].
World Health Organization, The WHO Special Initiative for Mental Health (2019–2023): Universal Health Coverage For Mental Health, Geneva, Switzerland: World Health Organization, 2019.
World Health Organization, International Classification of Diseases, Geneva, Switzerland: World Health Organization, 1992.
Vahia, V. N. (2013). Diagnostic and statistical manual of mental disorders 5: A quick glance. Indian journal of psychiatry, 55(3), 220-223 . https://doi.org/10.4103/0019‑5545.117131
Ponsam, J. G., & Rachel, S. S. (2021). Mental Health Monitoring Using Sentimental Analysis. Annals of the Romanian Society for Cell Biology, 25(5), 4397-4404.
Bendig, E., Erb, B., Schulze-Thuesing, L., & Baumeister, H. (2022). The next generation: chatbots in clinical psychology and psychotherapy to foster mental health–a scoping review. Verhaltenstherapie, 32(Suppl. 1), 64-76. https://doi.org/10.1159/000501812
Wang, J., Deng, H., Liu, B., Hu, A., Liang, J., Fan, L., ... & Lei, J. (2020). Systematic evaluation of research progress on natural language processing in medicine over the past 20 years: bibliometric study on PubMed. Journal of medical Internet research, 22(1), e16816. https://doi.org/10.2196/16816
Rathnayaka, P., Mills, N., Burnett, D., De Silva, D., Alahakoon, D., & Gray, R. (2022). A mental health chatbot with cognitive skills for personalised behavioural activation and remote health monitoring. Sensors, 22(10), 3653. https://doi.org/10.3390/s22103653
Garg, M. (2023). Mental health analysis in social media posts: a survey. Archives of Computational Methods in Engineering, 30(3), 1819. https://doi.org/10.1007/s11831-022-09863-z
Tejaswini, V., Sathya Babu, K., & Sahoo, B. (2024). Depression detection from social media text analysis using natural language processing techniques and hybrid deep learning model. ACM Transactions on Asian and Low-Resource Language Information Processing, 23(1), 1-20. http://doi.org/10.1145/3569580
Ongeri, L., Mbugua, G., Njenga, F., Nguithi, A., Anundo, J., Mugane, M., ... & Atwoli, L. (2021). Harnessing social media in mental health practice in Kenya: a community case study report. Pan African Medical Journal, 39(1). 1-8. https://doi.org/10.11604/39.58.27643
Anadkat, K., Diwanji, H., & Modasiya, S. (2022). Effect of Preprocessing in Human Emotion Analysis Using Social Media Status Dataset. Reliability: Theory & Applications, 17(1 (67)), 104-112
Weizenbaum, J. (1966). ELIZA—a computer program for the study of natural language communication between man and machine. Communications of the ACM, 9(1), 36-45..
Fitzpatrick, K. K., Darcy, A., & Vierhile, M. (2017). Delivering cognitive behavior therapy to young adults with symptoms of depression and anxiety using a fully automated conversational agent (Woebot): a randomized controlled trial. JMIR mental health, 4(2), e7785. https://doi.org/10.2196/mental.7785
Inkster, B., Sarda, S., & Subramanian, V. (2018). An empathy-driven, conversational artificial intelligence agent (Wysa) for digital mental well-being: real-world data evaluation mixed-methods study. JMIR mHealth and uHealth, 6(11), e12106. https://doi.org/10.2196/12106
Biswas, A & Kaushik, A (2020). Depression Therapy Using Chatbot. International Journal for Modern Trends in Science and Technology, 6(12) 323-327.
Nesi, J. (2020). The impact of social media on youth mental health: challenges and opportunities. North Carolina medical journal, 81(2), 116-121.
Twenge, J. M., Joiner, T. E., Rogers, M. L., & Martin, G. N. (2018). Increases in depressive symptoms, suicide-related outcomes, and suicide rates among US adolescents after 2010 and links to increased new media screen time. Clinical psychological science, 6(1), 3-17. https://doi.org/10.1177/2167702617723376
Psomakelis, E., Tserpes, K., Anagnostopoulos, D., & Varvarigou, T. (2015). Comparing methods for twitter sentiment analysis. arXiv preprint arXiv:1505.02973.
Aman, S., & Szpakowicz, S. (2007, September). Identifying expressions of emotion in text. In International conference on text, speech and dialogue, 196-205). Berlin, Heidelberg: Springer Berlin Heidelberg.
Rajaraman, P. V., & Prakash, M. (2021). Intelligent deep learning based bidirectional long short term memory model for automated reply of e-mail client prototype. Pattern Recognition Letters, 152, 340-347.
Parameswaran, A., Mishra, D., Bansal, S., Agarwal, V., Goyal, A., & Sureka, A. (2018). Automatic email response suggestion for support departments within a university (No. e26531v1). PeerJ Preprints. https://doi.org/10.7287/peerj.preprints.26531v1
Aggarwal, S., & Verma, J. (2018). Comparative analysis of MEAN stack and MERN stack. International Journal of Recent Research Aspects, 5(1).
Tutorials Point, “Advantages of MongoDB,” Tutorials Point, 2024. [Online]. Available: https://www.tutorialspoint.com/mongodb/mongodb_advantages.htm. [Accessed 14 February 2024].
MongoDB.com, “MongoDB Official,” MongoDB Official, 2024. [Online]. Available: https://www.mongodb.com. [Accessed 14 February 2024].
Express JS, “ExpressJS Official,” ExpressJS Official, 2024. [Online]. Available: http://expressjs.com. [Accessed 14 February 2024].
Node JS, “Nodejs Official,” Nodejs Official, 2024. [Online]. Available: https://nodejs.org. [Accessed 14 February 2024].
Wiebe, J., Wilson, T., & Cardie, C. (2005). Annotating expressions of opinions and emotions in language. Language resources and evaluation, 39(2), 165-210.
Kirkbride, J. B., Anglin, D. M., Colman, I., Dykxhoorn, J., Jones, P. B., Patalay, P., ... & Griffiths, S. L. (2024). The social determinants of mental health and disorder: evidence, prevention and recommendations. World psychiatry, 23(1), 58-90.