Melola Discovery

← Melola Discovery

Open access Jurnal SINTA 2

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

JUTI: Jurnal Ilmiah Teknologi Informasi · Vol. 24 No. 2 (2026) · pp. 218–235

DOI
10.12962/j24068535.v24i2.a1547
ISSN
2406-8535, 1412-6389
Published
2026-07-15
Publisher
Institut Teknologi Sepuluh Nopember
Language
eng
License
creativecommons.org/licenses/by-sa/4.0

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.

Collaboration network of the authors

2 authors · 1 co-authorship link

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • Telkom University
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OAI-PMH (metadata jurnal) https://juti.if.its.ac.id/index.php/juti/oai, first harvested 26 Okt 2026, last seen 26 Okt 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en">Understanding linguistic patterns of depression and anxiety in Indonesian social media text using machine learning classification and topic modeling</dc:title>
	<dc:creator xml:lang="en">Pramesti, Dita</dc:creator>
	<dc:creator xml:lang="en">Nuraliza, Hilda </dc:creator>
	<dc:description xml:lang="en">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.</dc:description>
	<dc:publisher xml:lang="en">Institut Teknologi Sepuluh Nopember</dc:publisher>
	<dc:date>2026-07-15</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://juti.if.its.ac.id/index.php/juti/article/view/1547</dc:identifier>
	<dc:identifier>10.12962/j24068535.v24i2.a1547</dc:identifier>
	<dc:source xml:lang="en">JUTI: Jurnal Ilmiah Teknologi Informasi; Vol. 24, No. 2, July 2026; 218-235</dc:source>
	<dc:source>2406-8535</dc:source>
	<dc:source>1412-6389</dc:source>
	<dc:source>10.12962/j24068535.v24i2</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://juti.if.its.ac.id/index.php/juti/article/view/1547/597</dc:relation>
	<dc:rights xml:lang="en">Copyright (c) 2026 Dita Pramesti, Hilda  Nuraliza</dc:rights>
	<dc:rights xml:lang="en">https://creativecommons.org/licenses/by-sa/4.0</dc:rights>
</oai_dc:dc>