← Latest papers
💬 NLP

Evaluating Transformer Models for Suicide Risk Detection on Social Media

This paper presents a study by the kubapok team for the IEEE BigData 2024 Cup, demonstrating that a fine-tuned GPT-4o model outperforms DeBERTa and GPT-4o with prompting configurations to achieve second place in the four-class suicide risk detection task on social media.

Original authors: Jakub Pokrywka, Jeremi I. Kaczmarek, Edward J. Gorzelańczyk

Published 2026-08-27
📖 5 min read🧠 Deep dive

Original authors: Jakub Pokrywka, Jeremi I. Kaczmarek, Edward J. Gorzelańczyk

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Every year, hundreds of thousands of people take their own lives, a tragedy that often leaves behind a trail of unreported attempts and lasting pain for families and communities. In the digital age, the story of how people reach this point is increasingly written in the public square of social media. Platforms like Reddit host thousands of posts where individuals share their darkest thoughts, sometimes explicitly describing plans to end their lives, other times hinting at a quiet struggle. For mental health professionals, the challenge is immense: how can they find these cries for help among the billions of daily posts, and how can they tell the difference between someone who is thinking about suicide and someone who is actively planning it? This is where the field of natural language processing steps in, using computer programs trained to read and understand human text. These tools do not replace human judgment, but they offer a way to scan vast amounts of information quickly, looking for specific patterns that signal danger. The goal is not to predict the future with certainty, but to identify risk early enough to offer support to those who might otherwise be overlooked.

A team of researchers from Poland, working under the name kubapok, recently put this idea to the test in a global competition designed to improve how machines detect suicide risk. They entered the IEEE BigData 2024 Cup, a challenge that asked participants to build a system capable of reading social media posts and sorting them into four distinct categories. The first category, called an indicator, covers posts that mention suicide but do not show immediate risk, such as someone talking about a friend's struggle. The second, ideation, captures posts where a person is thinking about suicide but has no specific plan. The third, behavior, describes posts where the person has a plan or is engaging in self-harming actions. The final category, attempt, is reserved for posts that describe past suicide attempts that did not result in death. The researchers were given a dataset of thousands of real posts from Reddit, some labeled with these categories and others left unlabeled, and they had to teach a computer to make these distinctions accurately.

To solve this problem, the team experimented with three different approaches using advanced computer models known as transformers. These are large systems that have read massive amounts of text and learned how language works. The first approach used a model called DeBERTa, which acts like a reader that analyzes text to understand its meaning. The team trained this model on the labeled posts to see if it could learn the differences between the four risk levels. The second approach used a much larger and more powerful model called GPT-4o, but this time they did not train it on the specific data. Instead, they gave the model a set of examples and asked it to reason through the task step-by-step, a method known as chain-of-thought prompting, hoping the model's existing knowledge would be enough. The third approach also used the GPT-4o model, but this time they actually trained it on the competition's specific dataset, allowing the model to adjust its internal settings to better fit the task at hand.

The results of their experiments revealed a clear winner. While the trained DeBERTa model performed well, and the untrained GPT-4o model struggled to make accurate distinctions even with many examples, the version of GPT-4o that was specifically trained on the competition data proved to be the most effective. This fine-tuned model achieved the highest accuracy in identifying the correct risk category for each post. When the final results were tallied, the team's solution, based on this trained model, secured second place out of thirteen teams that reached the final evaluation, finishing just behind the top team. The researchers found that the trained model was consistent and reliable, whereas their other attempts showed more variation in performance. This outcome suggests that even a general-purpose computer model, when given a specific set of examples to learn from, can become a highly effective tool for spotting the subtle differences between someone who is thinking about suicide and someone who is in immediate danger.

Despite this success, the researchers are careful to point out the limits of what their system can do. The data they used came entirely from public posts on Reddit, collected during a specific period that included the global pandemic. This means the system might not work as well on other platforms or with people who do not use social media in the same way. Furthermore, the competition data lacked the rich context that a human doctor would use, such as a patient's full medical history or a face-to-face conversation. The system only saw the text of a single post, without the surrounding comments or the user's previous activity that might have provided crucial clues. The authors argue that for these tools to be truly effective in saving lives, future datasets need to be built with more rigorous standards, perhaps involving direct collaboration with mental health professionals to verify the risk levels of the people posting. Until then, these models serve as powerful assistants, capable of scanning the digital noise to find the signals that matter, but they are not a replacement for the nuanced care provided by human experts.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →