EUVIMEDEUVIMED entdecken
Open Access · CC BY-NC-SA 4.0

Comparative Evaluation of Preprocessing Techniques in Twitter Sentiment Analysis for Indonesia’s 2024 Regional Elections

Asro, Solihin

INOVTEK Polbeng - Seri Informatika · 22.02.2026 · 11 (1) · 150-159

DOI: 10.35314/tt65bb54 ↗

Kurz gefasst

Fachartikel in der Zeitschrift INOVTEK Polbeng - Seri Informatika, online erschienen am 22.02.2026. Verfasst von Asro und 1 weiteren Autor:innen. Die Arbeit wurde bisher 1-mal zitiert (Crossref). Der Volltext ist frei zugänglich (Open Access, CC BY-NC-SA 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

The rapid expansion of social media has positioned Twitter as a critical platform for capturing public opinion during political events, including Indonesia’s 2024 Regional Elections. This study investigates the impact of preprocessing strategies and class balancing on the performance of sentiment analysis models applied to election-related tweets. An initial dataset of 9,096 tweets was collected and refined into 6,202 relevant entries from 2024–2025 through text cleaning, normalization, tokenization, and duplicate removal. Sentiment distribution analysis reveals a dominance of positive sentiment (58.4%), followed by negative (33.6%) and neutral (8.0%) expressions. Two classical machine learning classifiers—Naïve Bayes and Logistic Regression—were implemented using TF–IDF feature representation. To address class imbalance, the Synthetic Minority Oversampling Technique (SMOTE) was applied exclusively to the training data, and hyperparameter optimization was conducted using GridSearchCV. Model evaluation employed an 80/20 train–test split with accuracy, precision, recall, F1-score, and confusion matrices as performance metrics. Experimental results indicate that logistic regression combined with SMOTE and hyperparameter tuning achieved the highest accuracy of 93.08%, outperforming Naive Bayes. The findings confirm that carefully designed preprocessing pipelines and class balancing significantly enhance the reliability of sentiment classification in political social media analysis.

Zitieren

APA

Asro, & Solihin (2026). Comparative Evaluation of Preprocessing Techniques in Twitter Sentiment Analysis for Indonesia’s 2024 Regional Elections. INOVTEK Polbeng - Seri Informatika, 11(1), 150-159. https://doi.org/10.35314/tt65bb54

Vancouver

Asro, Solihin. Comparative Evaluation of Preprocessing Techniques in Twitter Sentiment Analysis for Indonesia’s 2024 Regional Elections. INOVTEK Polbeng - Seri Informatika. 2026;11(1):150-159. doi:10.35314/tt65bb54

BibTeX
@article{Asro2026,
  author = {Asro and Solihin},
  title = {Comparative Evaluation of Preprocessing Techniques in Twitter Sentiment Analysis for Indonesia’s 2024 Regional Elections},
  journal = {INOVTEK Polbeng - Seri Informatika},
  year = {2026},
  volume = {11},
  number = {1},
  pages = {150--159},
  doi = {10.35314/tt65bb54}
}
Kostenlos starten →