Ingen författare änTa över den
Version 3Uppdaterad 3 min läsning
- Språk
- English
- Ämnen
- VetenskapProgramvara
Spotting signs of suicidal ideation in social media needs large volumes of accurately labeled data, and the large language models used for it are computationally expensive and hard for professionals to trust. This arXiv paper tries a cheaper, more explainable route. It fine-tunes a language model on Reddit posts, uses Layer Integrated Gradients to score how much each token pushes the prediction toward each risk label, and then classifies posts from those token scores without running the large model at prediction time. Four-level risk classification worked poorly; grouped classes worked much better.
If you or someone you know is thinking about suicide, call or text 988 to reach the 988 Suicide & Crisis Lifeline in the United States.
The data and the method
The study uses the University of Maryland Reddit Suicidality Dataset Version 2, a private dataset drawn from the 2015 Full Reddit Submission Corpus and from the r/SuicideWatch subreddit, with users anonymized. Posts are rated on a four-point scale: no, low, moderate and severe risk, with control users labelled None. Crowd annotations (621 SuicideWatch users and 621 controls) were used for training and validation. Expert annotations (245 users and 245 controls) formed the gold set for testing. The authors report IRB approval and access granted by the dataset's owner, Dr. Philip Resnik.
The models were fine-tuned on individual SuicideWatch posts. For longitudinal tests, each user's posts across all subreddits were joined in time order. The BERT and RoBERTa models natively read 512 tokens or fewer, and many users' histories are longer.

Figure from the paper, licensed CC BY 4.0; changed here: shown without its caption.
Which model
The authors compared MentalBERT, MentalRoBERTa, BERT, DeBERTa v3 and XLM-RoBERTa. Validation results after fine-tuning:
| Model | Accuracy | Loss |
|---|---|---|
| MentalRoBERTa-large | 63.05% | 1.01 |
| MentalRoBERTa-base | 63.05% | 1.04 |
| MentalBERT-large uncased | 62.56% | 1.04 |
| DeBERTa v3 Large | 62.06% | 1.01 |
| MentalBERT-base cased | 61.57% | 1.02 |
| MentalBERT-base uncased | 61.57% | 1.04 |
| BERT-large uncased | 60.59% | 1.08 |
| BERT-large cased | 59.60% | 1.05 |
| BERT-base uncased | 59.11% | 1.09 |
| BERT-base cased | 58.62% | 1.07 |
| DeBERTa v3 Base | 58.12% | 1.07 |
| XLM-RoBERTa base | 53.69% | 1.12 |
The authors chose MentalRoBERTa-base, which scored as high as the large version but is smaller and quicker. MentalLongformer and MentalXLNet ran out of memory on the team's GPU and were left out.
Results on the gold set
On single SuicideWatch posts with all four risk levels, token attribution scored recall of 25.07 to 26.76 and F1 of 10.51 to 16.63, far below a baseline of 57.96 recall and 58.58 F1 from the MentalBERT paper. The authors caution that baseline used a different, undocumented relabelling, so they give it only as reference. Scaling attributions by TF-IDF raised F1, and the mean attribution scaled with TF-IDF gave the most balanced recall and F1.
| Task | Recall (mean + TF-IDF) | F1 (mean + TF-IDF) |
|---|---|---|
| No risk vs any risk | 89.01 | 87.01 |
| No-low vs medium-high risk | 70.99 | 65.14 |
| Longitudinal, four levels | 17.55 | 6.66 |
| Longitudinal, no vs any risk | 85.31 | 78.54 |
| Longitudinal, no-low vs medium-high | 61.63 | 52.99 |
The authors suggest the method could screen first, with flagged cases passed to a more robust model. They note ethical risks of handling sensitive data and list comparison with other models, image and video analysis, and finer time-series analysis as next steps.
Sources
- arXiv paper "Conceptualizing Suicidal Behavior: Utilizing Explanations of Predicted Outcomes to Analyze Longitudinal Social Media Data", https://arxiv.org/abs/2312.08299, licensed CC BY 4.0. Changed here: rewritten and condensed, one figure shown without its caption, tables partly condensed; rewritten in hubnx's own words.
- Authors of the original: Van Minh Nguyen, Nasheen Nur, William Stern.
Kommentarer





