Quality-Controlled Indonesian Twitter Sentiment Analysis Baseline Using TF-IDF and Classical Machine Learning Approaches
Transactions on Informatics and Data Science · 2026
DOI: 10.24090/tids.v3i2.16900 ↗Kurz gefasst
Fachartikel in der Zeitschrift Transactions on Informatics and Data Science, 2026. Verfasst von Aan Ansori und 3 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Social media provides a large volume of informal textual data for examining public sentiment, but Indonesian Twitter content presents substantial challenges due to slang, nonstandard spelling, limited context, and uneven class distribution. This study evaluates a reproducible machine-learning and natural-language-processing pipeline for three-way sentiment classification on a publicly available Indonesian Twitter dataset. The original corpus contained 10,806 manually labeled tweets. Quality control removed duplicate texts and all duplicate texts carrying conflicting labels, yielding 9,948 observations: 2,606 negative, 4,955 neutral, and 2,387 positive. Text was normalized and represented using term frequency-inverse document frequency with unigram and unigram-bigram configurations. Multinomial Naive Bayes, logistic regression, linear support vector machine, and random forest classifiers were evaluated using a stratified 80:20 split, with macro-F1 prioritized due to class imbalance. Multinomial Naive Bayes achieved the highest accuracy at 60.35%, but logistic regression with unigram-bigram features produced the best macro-F1 of 56.22% and a weighted F1 of 58.45%. Five-fold cross-validation produced a mean macro-F1 of 56.59% with low dispersion. Error analysis indicates that negation, mixed sentiment, informal expressions, and context dependence remain major sources of misclassification. These findings establish a transparent classical baseline for Indonesian social-media sentiment analysis.
Zitieren
APA
Ansori, A., Kania, R., Solihati, T. I., & Damyati, F. (2026). Quality-Controlled Indonesian Twitter Sentiment Analysis Baseline Using TF-IDF and Classical Machine Learning Approaches. Transactions on Informatics and Data Science. https://doi.org/10.24090/tids.v3i2.16900
Vancouver
Ansori A, Kania R, Solihati TI, Damyati F. Quality-Controlled Indonesian Twitter Sentiment Analysis Baseline Using TF-IDF and Classical Machine Learning Approaches. Transactions on Informatics and Data Science. 2026. doi:10.24090/tids.v3i2.16900
BibTeX
@article{Ansori2026,
author = {Ansori, Aan and Kania, Raden and Solihati, Tifani Intan and Damyati, Fitri},
title = {Quality-Controlled Indonesian Twitter Sentiment Analysis Baseline Using TF-IDF and Classical Machine Learning Approaches},
journal = {Transactions on Informatics and Data Science},
year = {2026},
doi = {10.24090/tids.v3i2.16900}
}
EUVIMED