Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 26 August 2024

Suicide Ideation and Risk Detection from Social Media Using GPT Models

Sara Lasri1, El Habib Nfaoui1 & Karima Mrizik2

Journal of Computer Science, Volume 20, Issue 10, pp. 1349–1356 · doi.org/10.3844/jcssp.2024.1349.1356

5,704 accesses3,163 downloads5 citations (Crossref)Metrics
Cite Check for updates

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.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

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

Licence
CC BY 4.0
Issue
Volume 20, Issue 10
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Suicide Ideation and Risk Detection from Social Media Using GPT ModelsJournal of Computer Science · Volume 20, Issue 10 · pp. 1349–1356 · CC BY 4.0Download