Research Article Open Access

Analysis of Mental Health Counseling Conversation Using Natural Language Processing

Saad Ahmed1, Sidrah Khurshid2, Muhammad Imran3, Muhammad Shoaib Siddiqui4, Saman Hina2 and Munad Ahmed5
  • 1 Department of Computer Science, Iqra University, Karachi, Sindh, Pakistan
  • 2 Department of Computer Science and Information Technology, NED University of Engineering and Technology Karachi, Sindh, Pakistan
  • 3 Department of Metallurgical Engineering, NED University of Engineering and Technology Karachi, Sindh, Pakistan, Pakistan
  • 4 Faculty of Computer and Information Systems, Islamic University of Madinah, Madinah, Saudi Arabia
  • 5 Department of Research, MSM360, Pakistan

Abstract

One of the most significant public health challenges of our day is mental illness. Despite the benefits of psychotherapy and counseling, our understanding of conducting effective counseling conversations has been limited due to a lack of high-quality data with labeled results. This research presents a quantitative analysis of relatively good-quality data scraped from an online counseling forum. The dataset comprises questions related to various mental illnesses from actual patients and the responses from professional, certified therapists. Through graphical representations, we visualize the correlation between various linguistic aspects of conversations with conversation outcomes. We further apply certain language models, including the pre-trained BERT model, to analyze the quality of therapist responses. The results are then compared to identify effective conversational strategies contributing to improved outcomes. The novelty of this study lies in the mathematical explanations of Language models, making it a valuable resource for readers seeking a deep understanding of machine learning techniques. Additionally, it provides practical implementation guidance for the BERT model, enhancing its usability in real-world scenarios related to mental health challenges.

Journal of Computer Science
Volume 20 No. 3, 2024, 303-309

DOI: https://doi.org/10.3844/jcssp.2024.303.309

Submitted On: 13 September 2023 Published On: 29 January 2024

How to Cite: Ahmed, S., Khurshid, S., Imran, M., Siddiqui, M. S., Hina, S. & Ahmed, M. (2024). Analysis of Mental Health Counseling Conversation Using Natural Language Processing. Journal of Computer Science, 20(3), 303-309. https://doi.org/10.3844/jcssp.2024.303.309

  • 1,229 Views
  • 854 Downloads
  • 2 Citations

Download

Keywords

  • Mental Health
  • Counseling
  • Psychotherapy
  • Depression
  • Therapist
  • Chatbot
  • NLP