Analisis Sentimen Terhadap Ulasan Aplikasi Info BMKG Menggunakan Logistic Regression dan XGBoost

Authors

  • I Made Rovan Puja Wardana Universitas Udayana Author
  • Gst. Ayu Vida Mastrika Giri Universitas Udayana Author

DOI:

https://doi.org/10.24843/JNATIA.2026.v04.i02.p20

Keywords:

Sentiment Analysis, Logistic Regression, XGBoost, TF-IDF, SMOTE

Abstract

Public opinion through user reviews plays an important role in evaluating the quality of digital public services, especially in mobile-based government applications. This study aims to classify sentiment from 5,000 user reviews of the Info BMKG application using machine learning techniques. The text data underwent pre-processing, including lowercasing, cleaning, normalization, stopword removal, and stemming to improve data quality. Feature extraction was performed using Term Frequency–Inverse Document Frequency (TF-IDF), while class imbalance was handled through the application of the Synthetic Minority Oversampling Technique (SMOTE). Two classification models were tested: Logistic Regression and Extreme Gradient Boosting (XGBoost). Tuning of hyperparameters was conducted through Grid Search combined with five-fold cross-validation to find the optimal model configuration. Evaluation results show that Logistic Regression achieved the best performance with 86.4% accuracy and a weighted F1-score of 0.86, while XGBoost achieved 85.7% accuracy. Both models demonstrated consistent ability in detecting positive and negative sentiment. The findings suggest that Logistic Regression is a suitable and reliable approach for sentiment analysis in short-text reviews within digital public service applications.

Downloads

Published

2026-02-01

How to Cite

[1]
I Made Rovan Puja Wardana and Gst. Ayu Vida Mastrika Giri, “Analisis Sentimen Terhadap Ulasan Aplikasi Info BMKG Menggunakan Logistic Regression dan XGBoost”, Jnatia, vol. 4, no. 2, pp. 421–430, Feb. 2026, doi: 10.24843/JNATIA.2026.v04.i02.p20.

Similar Articles

21-30 of 33

You may also start an advanced similarity search for this article.