Skip to content
Review Open access

Sentiment Analysis of User Reviews of Purwokerto Station Using TF-IDF and the Random Forest Method

Sep 2026 · JRST: Jurnal Riset Sains dan Teknologi · 0 citations

Abstract

User reviews on Google Maps serve as a valuable source of information for evaluating the service quality of public facilities, including train stations. This study aims to analyze the sentiment of user reviews for Purwokerto Station using the Random Forest algorithm and to identify dominant Bigrams within each sentiment class to provide insights for station management. The dataset was obtained by scraping Google Maps, yielding 2,232 reviews after data cleaning. The research process involved sentiment labeling based on ratings; text preprocessing (cleaning, case folding, tokenization, non-standard word normalization, stopword removal, and single-token deduplication); and feature extraction using Bigram-based Term Frequency–Inverse Document Frequency (TF–IDF). The dataset was split into 80% training data and 20% testing data, then classified using the Random Forest algorithm. Results indicate that the model achieved 90.16% accuracy on the test data. However, evaluation revealed that while the model excelled at recognizing the positive class, it struggled to identify negative and neutral classes; this was evidenced by a Macro F1-score of 0.32 and precision, recall, and F1-score values ​​of 0.00 for both the negative and neutral classes. This outcome was driven by an imbalanced data distribution, causing the model to lean toward predicting reviews as positive. Bigram analysis showed that the phrase "clean and comfortable"  dominated positive sentiment, whereas phrases such as "waiting room" and "ticket counter staff" more frequently in negative sentiment. ABSTRAK (Bahasa Indonesia) Ulasan pengguna pada platform Google Maps menjadi salah satu sumber informasi yang dapat dimanfaatkan untuk mengevaluasi kualitas pelayanan suatu fasilitas publik, termasuk stasiun kereta api. Penelitian ini bertujuan menganalisis sentimen ulasan pengguna Stasiun Purwokerto menggunakan algoritma Random Forest serta mengidentifikasi Bigram yang dominan pada setiap kelas sentimen sebagai bahan evaluasi bagi pengelola stasiun. Dataset diperoleh melalui scraping Google Maps dan menghasilkan 2.232 ulasan setelah melalui proses pembersihan data. Tahapan penelitian meliputi pelabelan sentimen berdasarkan rating, preprocessing text yang terdiri atas cleaning, case folding, tokenizing, normalisasi kata tidak baku, stopword removal, dan duplikasi token tunggal, kemudian dilanjutkan dengan ekstraksi fitur menggunakan Term Frequency–Inverse Document Frequency (TF–IDF) berbasis Bigram. Dataset dibagi menjadi data pelatihan sebesar 80% dan data pengujian sebesar 20%, kemudian diklasifikasikan menggunakan algoritma Random Forest. Hasil penelitian menunjukkan bahwa model memperoleh akurasi sebesar 90,16% pada data pengujian. Namun, hasil evaluasi juga menunjukkan bahwa model memiliki kemampuan yang sangat baik dalam mengenali kelas positif, tetapi belum mampu mengidentifikasi kelas negatif dan netral, yang ditunjukkan oleh nilai Macro F1-score sebesar 0,32 serta nilai precision, recall, dan F1-score sebesar 0,00 pada kedua kelas tersebut. Kondisi tersebut dipengaruhi oleh distribusi data yang tidak seimbang sehingga model cenderung memprediksi ulasan ke kelas positif. Analisis Bigram menunjukkan bahwa frasa bersih nyaman mendominasi sentimen positif, sedangkan frasa seperti ruang tunggu dan petugas loket lebih banyak muncul pada sentimen negatif. Penelitian ini menunjukkan bahwa representasi TF–IDF Bigram mampu menangkap konteks frasa yang membedakan setiap kategori sentimen serta memberikan informasi mengenai aspek pelayanan yang paling sering diapresiasi maupun dikeluhkan oleh pengguna.  

Read PDF

Similar papers

Review Open access Aug 2026

Sentiment Analysis of User Reviews for the Locket Widget Application on Google Play Store Using the Naive Bayes Classifier

User reviews on the Google Play Store contain valuable opinions that can be utilised to evaluate application quality, including the Locket Widget application. This study aims to classify user review sentiment into positive, neutral, and negative categories using the Naive Bayes Classifier algorithm with Term Frequency–...

Athia Aisy Bakhita, Arif Setiawan, E. Darmanto · 0 citations
Review Open access Aug 2026

Comparative Sentiment Analysis of Profits Anywhere Application Reviews Using KNN and Naïve Bayes

User reviews on Google Play Store provide valuable information regarding application service quality and user satisfaction. This study aims to compare the performance of the K-Nearest Neighbor (KNN) and Naïve Bayes algorithms for sentiment analysis of reviews of the Profits Anywhere application, a digital business plat...

Yurindra, Chandra Kirana, Dian Novianto et al. · 0 citations
Conference Aug 2026

Text Mining Analysis of SeaBank Reviews: Review Distribution, Frequent Words, and Topic Modeling Using LDA

This study analyzes SeaBank user reviews using text mining techniques to identify dominant user perceptions toward the mobile banking application. The dataset was collected from Google Play Store reviews posted between January 1 and July 10, 2025, resulting in 90,814 filtered reviews after preprocessing. The analysis i...

Bintang Farel Aradhea, D. Kurnianingrum · 0 citations
Review Open access Sep 2026

The Effect of Increasing the Dataset Size on the Performance of Sentiment Analysis Models for Tokopedia Reviews Using SVM, Naïve Bayes, and Perceptron Based on TF-IDF

It is demonstrated that the size of the dataset influences the accuracy and stability of sentiment analysis models ABSTRAK and this study demonstrates that the size of the dataset influences the accuracy and stability of sentiment analysis models.

A'Yun Fa'yuni, Afril Efan Pajri, Ita Aristia Sa'ida · 0 citations
Review Open access Aug 2026

Comparison of the Performance of K-Nearest Neighbor and Naive Bayes Algorithms for Sentiment Analysis of PinjamYuk Application User Reviews Using SMOTE and TF-IDF

The growth of online lending services has driven the increasing adoption of digital financial applications, providing users with convenient access to financial services. This growing number of users has generated a large volume of reviews on the Google Play Store, which can serve as a valuable source for understanding...

Lindya Rossita Handoko, Amelia Faza, M. Barata et al. · 0 citations

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