A Time-Aware Transformer Based Model for Suicide Ideation Detection on Social Media

Ramit Sawhney, Harshit Joshi, Saumya Gandhi, Rajiv Ratn ShahEMNLP 2020

Introduction

Presented at EMNLP 2020, this research introduces STATENet, a specialized framework designed to detect suicide ideation on Twitter. Unlike traditional models that analyze tweets in isolation, STATENet incorporates a user's historical emotional trajectory and accounts for the irregular timing of social media posts, achieving state-of-the-art performance in identifying individuals at risk.

The Challenge of Suicide Ideation Detection

Detecting suicidal intent on social media is complicated by two primary factors:

  1. Linguistic Ambiguity: Phrases like "I'm done" can be benign or critical depending on context. Without historical data, classification remains unreliable.
  2. Temporal Irregularity: Mental health struggles often involve a cumulative "build-up." Previous models treated post history as a uniform sequence, ignoring the critical context provided by the time gaps between posts—for instance, a three-year gap versus a three-hour gap.

Methodology: The STATENet Architecture

The authors propose a dual-stream architecture that combines immediate semantic analysis with long-term emotional context.

The STATENet architecture, featuring dual-stream modeling for individual tweets and historical emotional trajectories.

The model consists of several key components:

  • Individual Tweet Modeling: The target tweet is encoded using SentenceBERT (SBERT) to capture deep semantic meaning.
  • Historical Emotion Spectrum: A PlutchikTransformer (a BERT model fine-tuned on 1.6M tweets) maps a user's past activity to Plutchik’s wheel of emotions. This focuses on how a user felt rather than just what they said.
  • Time-Aware LSTM (T-LSTM): This core innovation handles "Temporal Tweeting Irregularities" (TTI). It uses the actual time lapse ($\Delta t$) between tweets to discount older information via a heuristic decay function ($1/\Delta t$), ensuring recent emotional states carry more weight.
  • Joint Optimization: The semantic and emotional features are concatenated and classified using Class-Balanced Focal Loss to address the extreme class imbalance inherent in suicide ideation datasets.

Experimental Results

The model was evaluated on a dataset of 34,306 tweets from over 32,000 users, with historical data spanning up to 10 years. STATENet significantly outperformed competitive baselines, including standard LSTMs and previous state-of-the-art models like DualContextBERT.

Performance comparison showing STATENet's superior Macro F1 and Recall for suicidal intent detection.

Key performance metrics include:

  • Macro F1-score: 0.799
  • Recall for Suicidal Class: 0.810

High recall is particularly critical in mental health screening to minimize "false negatives"—at-risk individuals who might otherwise be missed by automated systems. Ablation studies confirmed that the "Time-Aware" component is essential; removing it led to a significant drop in predictive accuracy.

Conclusion and Future Directions

STATENet demonstrates that suicide ideation is a cumulative process where temporal context is as important as linguistic content. By modeling emotional trajectories over time, the framework provides a more robust screening tool for "human-in-the-loop" intervention systems. Future work will explore higher emotional granularity and the impact of varying historical window lengths on prediction stability.

Summary updated

BibTeX
@inproceedings{sawhney2020time,
  author = {Ramit Sawhney and Harshit Joshi and Saumya Gandhi and Rajiv Ratn Shah},
  title = {{A Time-Aware Transformer Based Model for Suicide Ideation Detection on Social Media}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.619},
}
Figure