Skip to main content
QUICK REVIEW

[Paper Review] Detection and Classification of mental illnesses on social media using RoBERTa

Ankit Murarka, Balaji Radhakrishnan|arXiv (Cornell University)|Nov 23, 2020
Mental Health via WritingPsychology35 citations
TL;DR

The paper presents a RoBERTa-based multi-class classifier to detect and categorize five mental illnesses (depression, anxiety, bipolar, ADHD, PTSD) plus a None class from Reddit posts, and introduces a new dataset with behavioral testing.

ABSTRACT

Given the current social distancing regulations across the world, social media has become the primary mode of communication for most people. This has resulted in the isolation of many people suffering from mental illnesses who are unable to receive assistance in person. They have increasingly turned to social media to express themselves and to look for guidance in dealing with their illnesses. Keeping this in mind, we propose a solution to detect and classify mental illness posts on social media thereby enabling users to seek appropriate help. In this work, we detect and classify five prominent kinds of mental illnesses: depression, anxiety, bipolar disorder, ADHD and PTSD by analyzing unstructured user data on social media platforms. In addition, we are sharing a new high-quality dataset to drive research on this topic. We believe that our work is the first multi-class model that uses a Transformer-based architecture such as RoBERTa to analyze people's emotions and psychology. We also demonstrate how we stress-test our model using behavioral testing. With this research, we hope to be able to contribute to the public health system by automating some of the detection and classification process.

Motivation & Objective

  • Motivate automated detection of mental illness in social media to assist public health, especially during social distancing.
  • Create a high-quality, labeled dataset from Reddit posts spanning mental illness and none classes.
  • Develop and compare transformer-based classifiers (RoBERTa, BERT) against LSTM baselines for multi-class mental illness classification.
  • Demonstrate model robustness through behavioral testing and analysis of class-wise performance.

Proposed method

  • Construct a multi-class RoBERTa classifier to label posts (and titles) into five mental illnesses and a None class.
  • Compare RoBERTa with LSTM and BERT baselines to establish performance gains.
  • Fine-tune RoBERTa on posts, titles, and post-title pairs with sequence lengths of 512 and 35 tokens respectively.
  • Evaluate with precision, recall, F1, and accuracy; analyze class-wise performance and confusion patterns.
  • Conduct behavioral tests (synonym replacement, masking) to assess model robustness to input perturbations.

Experimental results

Research questions

  • RQ1Can a RoBERTa-based model accurately detect and distinguish among depression, anxiety, bipolar disorder, ADHD, PTSD, and None in social media posts?
  • RQ2How does RoBERTa compare to LSTM and BERT baselines on this multi-class mental illness classification task?
  • RQ3What is the impact of using posts alone versus titles or both on classification performance?
  • RQ4How robust is the RoBERTa model to input perturbations and label-related perturbations (behavioral testing)?

Key findings

  • RoBERTa outperforms LSTM and closely matches BERT, achieving higher F1 and accuracy, especially when using posts+titles input.
  • RoBERTa achieved an F1 of 0.86 on posts and 0.89 on posts+titles for the best configuration.
  • The None class is detected with high accuracy (F1 > 0.97) even from titles alone, indicating low false positives for non-illness posts.
  • ADHD and PTSD are among the best-performing illness classes, while Depression and Anxiety are relatively weaker due to data characteristics and label confusion.
  • Behavioral tests show the model partially relies on root-forms of class labels but still maintains reasonable performance under synonym replacement and masking perturbations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.