Skip to content
Open access

Understanding linguistic patterns of depression and anxiety in Indonesian social media text using machine learning classification and topic modeling

Jul 2026 · JUTI: Jurnal Ilmiah Teknologi Informasi · pp. 218-235 · 0 citations · 36 references

TL;DR

This study explores the linguistic markers of depression and anxiety in Indonesian social media text through an integrated model of machine learning classification and topic modeling to suggest that combining classification with topic modeling offers a practical foundation for developing early detection tools and Indonesian-language NLP resources for mental health discourse analysis.

Abstract

The increasing prevalence of mental health disorders such as depression and anxiety calls for effective approaches to analyze psychological expressions in textual data. This study explores the linguistic markers of depression and anxiety in Indonesian social media text through an integrated model of machine learning classification and topic modeling. In contrast to earlier work primarily centered on classification performance, this work emphasizes interpretability through comparative machine learning analysis and LDA-based thematic analysis. Classification determines the expressed condition, LDA determines thematic structures that account for distinguishing patterns beyond accuracy metrics alone. The dataset consisted of 17,096 records collected from Facebook groups, reduced to 7,199 instances after removing neutral labels. TF-IDF-based feature extraction was applied using unigram and bigram representations with a maximum of 5,000 features. A comparative analysis was conducted using six classification algorithms: K-Nearest Neighbor (KNN), Support Vector Machine (SVM), Random Forest, Decision Tree, XGBoost, and Naïve Bayes, evaluated under three train-test split scenarios (70:30, 80:20, and 90:10). SMOTE was applied to the training data to address class imbalance. SVM achieved the best performance with an F1-score of 0.903 under an 80:20 split, followed by Naïve Bayes and XGBoost, while KNN performed lowest consistently. LDA topic modeling revealed that depression-related texts were dominated by internal emotional expression, social isolation, and suicidal ideation, whereas anxiety-related texts were characterized by sudden fear, somatic physical symptoms, and social anxiety. These findings suggest that combining classification with topic modeling offers a practical foundation for developing early detection tools and Indonesian-language NLP resources for mental health discourse analysis.

Read PDF

Similar papers

Open access Sep 2026

Detecting Depression in College Students Through Social Media Text Mining: A Predictive Modelling Approach

Depression is a rising mental health concern among college students, often manifesting through linguistic and behavioural cues on social media platforms such as Facebook. This study aims to analyse social media comments using text mining techniques to detect potential signs of depression. The research applies a structu...

Chee Keong Ch'ng, Xian-Chung Pui · 0 citations
Sep 2026

Detecting Depression from Tweets through Topic Modeling and Lexicon-based Sentiment Fusion

Mental disorders such as depression constitute the largest share of concerns in mental well-being across the globe, having a severe influence on an individual's emotional, social and professional lives. With the increased application of social networks in the modern age, opportunities have opened up to detect the signs...

Priyanka Srivastava, Mohammad Suaib · 0 citations
Review Open access Aug 2026

Assessing The Reliability Of Machine Learning Models In Classifying Depression Severity Using Facebook Text

It is demonstrated that machine learning algorithms can serve as effective tools for classifying Facebook text into varying levels of depression severity, but challenges such as class imbalance, limited data availability, and discrepancies between self-assessment results and online behavior indicate that further resear...

Keito R. Yoneyama · 0 citations
Sep 2026

Machine Learning based Depression Detection with NLP Applicationon Twitter Text Data

Depression detection through social media analysis has gained increasing attention due to the accessibility of large-scale user-generated content. This study proposes a hybrid sentiment analysis framework that integrates Latent Dirichlet Allocation (LDA), Valence Aware Dictionary and Sentiment Reasoner (VADER), and Ter...

Priyanka Srivastava, Mohammad Suaib · 0 citations
Open access Aug 2026

An Explainable Multi-Class Mental Health Classification Framework from Twitter Posts Using NLP and Machine Learning

Social media and digital platforms have changed the landscape of mental health discourses, making platforms such as Twitter key for individuals to discuss their mental health and find solace. Although these platforms provide important linguistic insights for different mental health disorders, most current computational...

Misha M, Hamza Muneer, R. Tehseen et al. · 0 citations
Open access Aug 2026

Comparasion of Support Vector Machine and Decision Tree Methods in Sentiment Analysis of Social Media X User Toward the Free Nutritious Meal Program

The research stages include a preprocessing process consisting of cleaning, case folding, tokenizing, normalization, stopword removal, and stemming. Furthermore, the TF-IDF method is used to extract text features so that the data can be represented in numerical form. The dataset was then divided into training data and...

Olinda Nathaniel Mendrofa, Deva Angriani, E. Ompusunggu · 0 citations

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