Research Article Open Access

Suicide Ideation and Risk Detection from Social Media Using GPT Models

Sara Lasri1, El Habib Nfaoui1 and Karima Mrizik2
  • 1 Department of Computer Science, Faculty of Sciences Dhar El Mahraz, LISAC Laboratory, Sidi Mohamed Ben Abdellah University Fez, Morocco
  • 2 Department of Psychology, Faculty of Letters and Human Sciences Dhar El Mahraz, Sociological, Psychological Laboratory, Sidi Mohamed Ben Abdellah University Fez, Morocco

Abstract

As a reason for the sensitiveness of suicide ideation and its considerable impact on people's lives, the demand to treat and prevent the suicide ideation issue has become an obligation. Suicide ideation is a result of a combination of psychological pain and hopelessness. According to the World Health Organization, the task of reducing the global suicide mortality rate is a target, that should be attained. The entire population uses social media platforms to express their feelings, emotions, sentiments, and opinions. Social media platforms are among the most popular sources of datasets related to mental health issues. The process of detecting suicide ideation from social media platforms is based on recent methods of artificial intelligence such as machine learning and deep learning. In this study, we propose fine-tuning large language models to evaluate and find the level of suicide risk in posts published on Reddit. We fine-tuned four GPT-3 models using the UMD Reddit suicidality dataset, which is related to the subreddit of suicidal ideation. Our experimental results illustrate the efficiency of the LLMs in addressing our task. The model attains a high F1-score of 92.3%, an accuracy of 94.8%, and a training loss of 0.050.

Journal of Computer Science
Volume 20 No. 10, 2024, 1349-1356

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

Submitted On: 18 May 2024 Published On: 26 August 2024

How to Cite: Lasri, S., Nfaoui, E. H. & Mrizik, K. (2024). Suicide Ideation and Risk Detection from Social Media Using GPT Models. Journal of Computer Science, 20(10), 1349-1356. https://doi.org/10.3844/jcssp.2024.1349.1356

  • 308 Views
  • 121 Downloads
  • 0 Citations

Download

Keywords

  • Suicide Ideation
  • Level of Suicide Risk
  • Large Language Models
  • Generative Pre-trained Transformer
  • Fine-Tuning
  • Reddit