Generative Contextual Insights for Social Media Mental Health Detection With Shapley Additive Explanations (SHAP)-Based Interpretation

Detecting mental illness from short social media posts is challenging because these texts are often brief, fragmented, and lack explicit descriptions of the user’s mental state. Prior studies using encoder-based models such as BERT show promise but struggle when key contextual information is missing. To address this, we propose a method that augments posts with interpretive sentences generated by MentaLLaMA-chat, a generative model specialized in mental health, and fine-tunes BERT on the augmented dataset. We curated 1,525 Japanese posts containing the word “mental” (in katakana) from X (formerly Twitter) and manually annotated them according to Diagnostic and Statistical Manual of Mental Disorders, Fourth Edition criteria, labeling 557 posts as positive and 968 as negative. Our method improved recall by 2.4 percentage points compared to models trained on the original posts alone, while maintaining comparable accuracy and precision. Shapley Additive Explanations analysis revealed that tokens introduced by the interpretive sentences—including both negative and positive expressions—enhanced the model’s ability to identify mental-distress posts. These results demonstrate that generative-model-based text augmentation effectively provides additional context, enabling more accurate detection of mental illness indicators in short, ambiguous social media posts.

Authors

Institutions

Publication Details

Journal
Web Intelligence
Published
2025-10-16
DOI
https://doi.org/10.1177/24056456251385719
Primary Topic
Mental Health via Writing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Generative Contextual Insights for Social Media Mental Health Detection With Shapley Additive Explanations (SHAP)-Based Interpretation

Yusuke Fukazawa, Rika Tanaka, Mitsuharu Kodaka
Web Intelligence
Mental Health via Writing
article

Generative Contextual Insights for Social Media Mental Health Detection With Shapley Additive Explanations (SHAP)-Based Interpretation

Yusuke Fukazawa, Rika Tanaka, Mitsuharu Kodaka
article en

Abstract

Detecting mental illness from short social media posts is challenging because these texts are often brief, fragmented, and lack explicit descriptions of the user’s mental state. Prior studies using encoder-based models such as BERT show promise but struggle when key contextual information is missing. To address this, we propose a method that augments posts with interpretive sentences generated by MentaLLaMA-chat, a generative model specialized in mental health, and fine-tunes BERT on the augmented dataset. We curated 1,525 Japanese posts containing the word “mental” (in katakana) from X (formerly Twitter) and manually annotated them according to Diagnostic and Statistical Manual of Mental Disorders, Fourth Edition criteria, labeling 557 posts as positive and 968 as negative. Our method improved recall by 2.4 percentage points compared to models trained on the original posts alone, while maintaining comparable accuracy and precision. Shapley Additive Explanations analysis revealed that tokens introduced by the interpretive sentences—including both negative and positive expressions—enhanced the model’s ability to identify mental-distress posts. These results demonstrate that generative-model-based text augmentation effectively provides additional context, enabling more accurate detection of mental illness indicators in short, ambiguous social media posts.

Web IntelligenceVol. 23(4)
Sophia University (JP)
Openalex Percentile: Top 66%
Mental Health via Writing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.