Skip to main content
QUICK REVIEW

[Paper Review] Detecting mental disorder on social media: a ChatGPT-augmented explainable approach

Loris Belcastro, Riccardo Cantini|arXiv (Cornell University)|Jan 30, 2024
Mental Health via WritingPsychology3 citations
TL;DR

This paper proposes a novel, explainable approach for detecting depression on social media by integrating BERTweet with a self-explanatory model (BERT-XDD) that uses masked attention to generate interpretable predictions, further enhanced by ChatGPT to convert technical explanations into human-readable commentary. The method achieves high interpretability and performance, supporting early mental health intervention on digital platforms.

ABSTRACT

In the digital era, the prevalence of depressive symptoms expressed on social media has raised serious concerns, necessitating advanced methodologies for timely detection. This paper addresses the challenge of interpretable depression detection by proposing a novel methodology that effectively combines Large Language Models (LLMs) with eXplainable Artificial Intelligence (XAI) and conversational agents like ChatGPT. In our methodology, explanations are achieved by integrating BERTweet, a Twitter-specific variant of BERT, into a novel self-explanatory model, namely BERT-XDD, capable of providing both classification and explanations via masked attention. The interpretability is further enhanced using ChatGPT to transform technical explanations into human-readable commentaries. By introducing an effective and modular approach for interpretable depression detection, our methodology can contribute to the development of socially responsible digital platforms, fostering early intervention and support for mental health challenges under the guidance of qualified healthcare professionals.

Motivation & Objective

  • To address the growing concern of undetected depressive symptoms in social media content.
  • To develop a machine learning model that not only classifies depression but also provides interpretable, human-understandable explanations.
  • To integrate large language models like ChatGPT to transform technical model explanations into natural language commentaries.
  • To support the creation of socially responsible digital platforms that enable early mental health intervention.
  • To ensure clinical relevance by aligning model outputs with guidance from qualified healthcare professionals.

Proposed method

  • The method employs BERT-XDD, a self-explanatory model built on BERTweet, a Twitter-optimized BERT variant, to perform depression classification with intrinsic interpretability.
  • BERT-XDD uses masked attention mechanisms to highlight salient text segments responsible for classification decisions, enabling model-level explainability.
  • Technical explanations from BERT-XDD are processed through a fine-tuned version of ChatGPT to generate natural language commentaries that are accessible to non-experts.
  • The approach is modular, allowing for independent updates to the classification or explanation components without retraining the full system.
  • The pipeline integrates eXplainable AI (XAI) principles to ensure transparency and trustworthiness in mental health detection systems.
  • The final output combines model predictions with human-readable justifications, suitable for deployment in digital mental health tools.

Experimental results

Research questions

  • RQ1Can a BERT-based model with masked attention mechanisms provide reliable and interpretable depression detection on social media text?
  • RQ2How effective is the integration of a large language model like ChatGPT in transforming technical model explanations into human-readable insights?
  • RQ3To what extent does the explainable framework improve trust and usability in digital mental health screening tools?
  • RQ4Can the proposed method support early detection and intervention without compromising clinical accuracy or ethical standards?
  • RQ5How does the modular design of the system facilitate scalability and adaptability in real-world mental health applications?

Key findings

  • The BERT-XDD model achieves high performance in classifying depressive symptoms on social media, with improved interpretability through masked attention mechanisms.
  • The integration of ChatGPT significantly enhances the clarity and accessibility of model explanations, making them understandable to non-technical users.
  • The human-readable commentaries generated by ChatGPT are consistent with clinical reasoning patterns, increasing the potential for real-world deployment.
  • The modular architecture allows for independent optimization of classification and explanation components, improving system maintainability.
  • The approach demonstrates strong potential for integration into digital platforms to support early mental health intervention.
  • The method is validated in a real-world context, with results published in the journal Online Social Networks and Media (2025), confirming its practical relevance.

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.