Fine-tuning Transformer Models for Emotion Detection in Indonesian Tweets Indicating Depression

Emotion detection on social media, especially related to mental health, has emerged as a significant topic in natural language processing (NLP). This study fine-tunes Transformer-based models — IndoBERT, RoBERTa, and DistilBERT — to identify emotions linked to depression in Indonesian tweets. A dataset of 5271 tweets was compiled using domain-specific keywords derived from mental health literature and expert inputs. Preprocessing follows standard NLP practices to ensure linguistic consistency and minimize noise. Several feature extraction techniques, including TF-IDF, Bag of Words (BoW), and Word2Vec, were evaluated using traditional machine learning (ML) classifiers under a 10-fold cross-validation scheme. The best performance was achieved by DistilBERT combined with TF-IDF and support vector machine (SVM), yielding an F1-score of 0.699 and accuracy of 0.705. Although the results remain moderate compared to high-resource languages, they mark a meaningful step toward modeling emotional indicators of depression in Indonesian social media contexts. The study underscores the importance of domain-specific and culturally aware approaches in advancing NLP applications for mental health.

Authors

Institutions

Publication Details

Journal
Vietnam Journal of Computer Science
Published
2025-11-20
DOI
https://doi.org/10.1142/s2196888825500253
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

Fine-tuning Transformer Models for Emotion Detection in Indonesian Tweets Indicating Depression

Galih Hendro Martono, Neny Sulistianingsih
Vietnam Journal of Computer Science
Mental Health via Writing
article

Fine-tuning Transformer Models for Emotion Detection in Indonesian Tweets Indicating Depression

Galih Hendro Martono, Neny Sulistianingsih
article en

Abstract

Emotion detection on social media, especially related to mental health, has emerged as a significant topic in natural language processing (NLP). This study fine-tunes Transformer-based models — IndoBERT, RoBERTa, and DistilBERT — to identify emotions linked to depression in Indonesian tweets. A dataset of 5271 tweets was compiled using domain-specific keywords derived from mental health literature and expert inputs. Preprocessing follows standard NLP practices to ensure linguistic consistency and minimize noise. Several feature extraction techniques, including TF-IDF, Bag of Words (BoW), and Word2Vec, were evaluated using traditional machine learning (ML) classifiers under a 10-fold cross-validation scheme. The best performance was achieved by DistilBERT combined with TF-IDF and support vector machine (SVM), yielding an F1-score of 0.699 and accuracy of 0.705. Although the results remain moderate compared to high-resource languages, they mark a meaningful step toward modeling emotional indicators of depression in Indonesian social media contexts. The study underscores the importance of domain-specific and culturally aware approaches in advancing NLP applications for mental health.

Vietnam Journal of Computer Science
University of Mataram (ID)
Openalex Percentile: Top 60%
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.

Fine-tuning Transformer Models for Emotion Detection in Indonesian Tweets Indicating Depression — Galih Hendro Martono, Neny Sulistianingsih · Vietnam Journal of Computer Science (2025) | TGRS Research Map | TGRS