Skip to content
Conference

The Effect of Hyperparameter Settings on BERT-Based Detection of Mental Health Support Needs on X (Twitter)

Jul 2026 · International Conference on Information and Communicatiaon Technology · pp. 1-6 · 0 citations · 24 references

Abstract

Mental health issues, particularly indications of the need for professional support, have become increasingly prominent in the digital era, requiring effective and efficient detection methods. This study develops a text classification model to identify indications of the need for professional mental health support from Indonesian-language posts on the X platform. The dataset consists of 40,000 scraped tweets collected from July 2023 to July 2025, followed by preprocessing (noise removal, slang and bilingual term normalization, and stopword removal) and automatic labeling using TF-IDF scoring and rule-based cue detection. The dataset was split using stratified sampling into train/validation/test sets (70%/20%/10%), with a label distribution of 73% non-needs_help and 27% needs_help. The model was built by fine-tuning BERT (bert-base-uncased) for binary classification (needs_help, non-needs_help) and evaluated using accuracy, precision, recall, and F1-scores (macro and weighted). Hyperparameter experiments across 12 combinations (learning rate 2e-5, 3e-5, 5e-5; batch size 16, 32; epochs 3, 5) show that the best configuration is learning rate 5e-5, batch size 32, and 3 epochs, achieving an accuracy of 0.8608 and a macro F1-score of 0.8017 (macro precision 0.8585; macro recall 0.7733). Epoch-wise stability analysis indicates a consistent decrease in evaluation loss up to epoch 3, while macro F1 peaks at epoch 2 and remains stable at epoch 3, confirming that hyperparameter selection affects both performance and training stability when fine-tuning BERT on informal social media text.

View source

Similar papers

Conference Jul 2026

Leveraging Fine-tuned IndoBERT and Zero-shot GPT-4o for Mental Health Monitoring from Indonesian Tweets

Social media provides valuable linguistic signals for population-level mental health monitoring, but its informal, ambiguous, and context-dependent language complicates automated classification. This study compares fine-tuned IndoBERT and zero-shot GPT-4o on Indonesian-language tweets across three tasks: seven-class em...

Athifa Khansa Faaris, R. Putri, Andry Alamsyah · 0 citations
Open access Jul 2026

Mental Health Disorder Indications Detection Based on Text Using NLP with EDA Augmentation Techniques

This study aims to build a classification model for the early screening of mental health disorders from social media text data using the CRISP-DM framework and implemented into a web-based application as an indicative early detection tool, not a clinical medical diagnosis.

Erna Daniati, Sherly Dian Tiara, Arie Nugroho · 0 citations
Open access Aug 2026

Domain-informed density extraction for robust mental health classification of long social media posts

The findings demonstrate that a leakage-safe evaluation protocol is essential for producing credible results in mental health classification from long social media posts and show that domain-informed density extraction provides a robust and practical text representation, with its greatest benefits emerging when models...

Rafat Hammad, Suha Rababah · 0 citations
#artificial intelligence Preprint Sep 2026

Building Trustworthy Mental Health Benchmarks on Bluesky: A Validation-Aware Weak-Supervision Framework

These findings show that decentralized social media can support reproducible mental health benchmarking, but only when system design, label provenance, validation strategy, and deployment constraints are evaluated together.

Gaurab Chhetri, Anandi K. Dutta, Subasish Das · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.