Main Article Content
Abstract
Online review platforms provide valuable data for evaluating customer perceptions and service quality in food and beverage businesses; however, such data are typically unstructured and frequently exhibit naturally imbalanced sentiment distributions that may influence classification outcomes. This study analyzes customer reviews of Fren.co Coffee & Eatery on Google Maps using Logistic Regression and Random Forest within a controlled comparative framework. A total of 225 valid textual reviews were collected and labeled into positive, neutral, and negative categories based on rating scores. The data were preprocessed through case normalization, cleansing, tokenization, stop word removal, and stemming, and subsequently transformed into numerical feature vectors using the Term Frequency–Inverse Document Frequency (TF-IDF) weighting scheme. To preserve the original sentiment distribution, an 80:20 stratified sampling strategy was implemented during model evaluation. Experimental results indicate that Logistic Regression achieved higher overall accuracy of 0.89 (89%) and demonstrated more balanced precision and recall across sentiment classes compared to Random Forest, which achieved an accuracy of 0.87 (87%) and showed stronger bias toward the majority class. These findings suggest that, in small-scale and naturally imbalanced Google Maps review datasets, linear classification models may provide more stable and consistent predictive performance than ensemble-based approaches. The study contributes empirical evidence on model behavior under realistic imbalance conditions and strengthens methodological understanding of classical machine learning applications for sentiment analysis in regional hospitality businesses.
Keywords
Article Details
Copyright (c) 2026 TEPIAN

This work is licensed under a Creative Commons Attribution 4.0 International License.
References
- Aakash, Gupta, S., & Noliya, A. (2024). URL-Based Sentiment Analysis of Product Reviews Using LSTM and GRU. Procedia Computer Science, 235(2023), 1814–1823. https://doi.org/10.1016/j.procs.2024.04.172
- Absari, R. H., & Wibisono, S. (2026). ANALISIS SENTIMEN PENGGUNA ROBLOX PADA GOOGLE PLAY STORE MENGGUNAKAN ALGORITMA RANDOM FOREST. JATI (Jurnal Mahasiswa Teknik Informatika), 10(1). https://doi.org/10.36040/jati.v10i1.16776
- Angel, A. C. T., Pranatawijaya, V. H., & Widiatry, W. (2024). Analisis Sentimen dan Emosi dari Ulasan Google Maps Untuk Layanan Rumah Sakit di Palangka Raya Menggunakan Machine Learning. KONSTELASI: Konvergensi Teknologi Dan Sistem Informasi, 4(1), 35–49. https://doi.org/10.24002/konstelasi.v4i1.8924
- Anisah, S., & Wasesa, M. (2025). Improving Café Reputation: Machine Learning Analytics for Predicting Customer Engagement on Google Maps. Journal of Information Systems Engineering and Business Intelligence, 11(1), 91–102. https://doi.org/10.20473/jisebi.11.1.91-102
- Ashbaugh, L., & Zhang, Y. (2024). A Comparative Study of Sentiment Analysis on Customer Reviews Using Machine Learning and Deep Learning. Computers, 13(12). https://doi.org/10.3390/computers13120340
- Bachtiar, A., Hawali, M. J., Simbolon, N. C., Maulana, D. A., & Anggraini, R. A. (2026). ANALISIS SENTIMEN ULASAN FREE FIRE MENGGUNAKAN NAIVE BAYES LOGISTIC REGRESSION. Journal of Information System Management (JOISM), 7(2), 275-282. https://doi.org/10.24076/joism.2026v7i2.2433
- Chinnalagu, A., & Durairaj, A. K. (2021). Context-based sentiment analysis on customer reviews using machine learning linear models. PeerJ Computer Science, 7. https://doi.org/10.7717/PEERJ-CS.813
- Choirun, N. O., & Oktadini, N. R. (2025). ANALISIS SENTIMEN ULASAN PENGGUNA APLIKASI TOKOPEDIA MENGGUNAKAN ALGORITMA RANDOM FOREST. JATI (Jurnal Mahasiswa Teknik Informatika), 9(6). https://doi.org/10.36040/jati.v9i6.16432
- Daza, A., González Rueda, N. D., Aguilar Sánchez, M. S., Robles Espíritu, W. F., & Chauca Quiñones, M. E. (2024). Sentiment Analysis on E-Commerce Product Reviews Using Machine Learning and Deep Learning Algorithms: A Bibliometric Analysisand Systematic Literature Review, Challenges and Future Works. International Journal of Information Management Data Insights, 4(2). https://doi.org/10.1016/j.jjimei.2024.100267
- Dhamma, Y. A., & Barus, S. P. (2025). Sentiment Analysis on Google Reviews Using Naïve Bayes, K-Nearest Neighbors, and Logistic Regression to Improve Novotel Services. Journal of Applied Informatics and Computing, 9(1), 106–114. https://doi.org/10.30871/jaic.v9i1.8923
- Hidayat, T. H. J., Ruldeviyani, Y., Aditama, A. R., Madya, G. R., Nugraha, A. W., & Adisaputra, M. W. (2021). Sentiment analysis of twitter data related to Rinca Island development using Doc2Vec and SVM and logistic regression as classifier. Procedia Computer Science, 197(2021), 660–667. https://doi.org/10.1016/j.procs.2021.12.187
- Junianto, H., Saputro, R. E., Kusuma, B. A., & Saputra, D. I. S. (2024). Comparison of Logistic Regression and Random Forest in Sentiment Analysis of Disdukcapil Application Reviews. Jurnal Teknik Informatika (Jutif), 5(6), 1539-1547. https://doi.org/10.52436/1.jutif.2024.5.6.1802
- Mehedi, M. H. K., Farid, F. Al, Rhythm, E. R., Rahman, F., Hasib, K. M., Uddin, J., & Mansor, S. (2025). Deep hierarchical networks for sentiment analysis of restaurant reviews from food apps. Scientific Reports, 15(1), 1–23. https://doi.org/10.1038/s41598-025-23856-5
- Pahrudin, P., & Harianto, K. (2022). Penerapan Algoritma K-Nearest Neighbor Untuk Klasifikasi Warga Penerima Bantuan Sosial. Building of Informatics, Technology and Science (BITS), 4(3), 1241–1245. https://doi.org/10.47065/bits.v4i3.2276
- Prayogi, M. B., & Masitoh, G. (2025). Analisis Sentimen Ulasan Pengguna Aplikasi Alfagift Menggunakan Random Forest. JISKA (Jurnal Informatika Sunan Kalijaga), 10, 158–170. https://doi.org/10.14421/jiska.2025.10.2.158-170
- Putra, R. A., Pratiwi, H., & Khair, A. A. (2025). Analisis Sentimen Orang Tua Murid Baru Terhadap Smpn 40 Samarinda Pada Spmb 2025 Menggunakan Algoritma Naïve Bayes. METHOMIKA: Jurnal Manajemen Informatika & Komputerisasi Akuntansi, 9(2), 292–299. https://doi.org/10.46880/jmika.Vol9No2.pp292-299
- Riswawan, A. (2025). Implementing TF-IDF and Logistic Regression for Sentiment Analysis of YouTube Comments on the iPhone 16. Jurnal Teknologi Dan Open Source, 8(2), 604–611. https://doi.org/10.36378/jtos.v7i2.4753
- Sa’adah, S. M., Umam, K., Handayani, M. R., & Mustofa, M. I. (2025). Mapping the Polarity of Tourist Opinions on Indonesian Destinations through Google Maps Reviews Using Supervised Learning Methods. Journal of Applied Informatics and Computing, 9(5), 2845–2853. https://doi.org/10.30871/jaic.v9i5.9836
- Setyabudi, S., & Aryanny, E. (2025). Sentiment Analysis of Lazada Marketplace User Ratings with Naïve Bayes and Support Vector Machine Methods. INOVTEK Polbeng - Seri Informatika, 10(1), 422–433. https://doi.org/10.35314/sww8cg21
- Sunarya, P. A., Rahardja, U., Chen, S. C., Li, Y. M., & Hardini, M. (2024). Deciphering Digital Social Dynamics: A Comparative Study of Logistic Regression and Random Forest in Predicting E-Commerce Customer Behavior. Journal of Applied Data Sciences, 5(1), 100–113. https://doi.org/10.47738/jads.v5i1.155
- Swathi Turai, Praneetha. P, Rajasri Aishwarya. B, Mohammed Adil, & Mani Charan Vangala. (2025). Analysis of restaurant ratings and reviews using machine learning. World Journal of Advanced Research and Reviews, 25(2), 1039–1046. https://doi.org/10.30574/wjarr.2025.25.2.0378
- Windrasari, S. N., Margono, H., & Putra, Y. A. N. S. (2025). Predictive Sales Analysis in Coffee Shops Using the Random Forest Algorithm. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 5(3), 1000–1011. https://doi.org/10.57152/malcom.v5i3.2023
References
Aakash, Gupta, S., & Noliya, A. (2024). URL-Based Sentiment Analysis of Product Reviews Using LSTM and GRU. Procedia Computer Science, 235(2023), 1814–1823. https://doi.org/10.1016/j.procs.2024.04.172
Absari, R. H., & Wibisono, S. (2026). ANALISIS SENTIMEN PENGGUNA ROBLOX PADA GOOGLE PLAY STORE MENGGUNAKAN ALGORITMA RANDOM FOREST. JATI (Jurnal Mahasiswa Teknik Informatika), 10(1). https://doi.org/10.36040/jati.v10i1.16776
Angel, A. C. T., Pranatawijaya, V. H., & Widiatry, W. (2024). Analisis Sentimen dan Emosi dari Ulasan Google Maps Untuk Layanan Rumah Sakit di Palangka Raya Menggunakan Machine Learning. KONSTELASI: Konvergensi Teknologi Dan Sistem Informasi, 4(1), 35–49. https://doi.org/10.24002/konstelasi.v4i1.8924
Anisah, S., & Wasesa, M. (2025). Improving Café Reputation: Machine Learning Analytics for Predicting Customer Engagement on Google Maps. Journal of Information Systems Engineering and Business Intelligence, 11(1), 91–102. https://doi.org/10.20473/jisebi.11.1.91-102
Ashbaugh, L., & Zhang, Y. (2024). A Comparative Study of Sentiment Analysis on Customer Reviews Using Machine Learning and Deep Learning. Computers, 13(12). https://doi.org/10.3390/computers13120340
Bachtiar, A., Hawali, M. J., Simbolon, N. C., Maulana, D. A., & Anggraini, R. A. (2026). ANALISIS SENTIMEN ULASAN FREE FIRE MENGGUNAKAN NAIVE BAYES LOGISTIC REGRESSION. Journal of Information System Management (JOISM), 7(2), 275-282. https://doi.org/10.24076/joism.2026v7i2.2433
Chinnalagu, A., & Durairaj, A. K. (2021). Context-based sentiment analysis on customer reviews using machine learning linear models. PeerJ Computer Science, 7. https://doi.org/10.7717/PEERJ-CS.813
Choirun, N. O., & Oktadini, N. R. (2025). ANALISIS SENTIMEN ULASAN PENGGUNA APLIKASI TOKOPEDIA MENGGUNAKAN ALGORITMA RANDOM FOREST. JATI (Jurnal Mahasiswa Teknik Informatika), 9(6). https://doi.org/10.36040/jati.v9i6.16432
Daza, A., González Rueda, N. D., Aguilar Sánchez, M. S., Robles Espíritu, W. F., & Chauca Quiñones, M. E. (2024). Sentiment Analysis on E-Commerce Product Reviews Using Machine Learning and Deep Learning Algorithms: A Bibliometric Analysisand Systematic Literature Review, Challenges and Future Works. International Journal of Information Management Data Insights, 4(2). https://doi.org/10.1016/j.jjimei.2024.100267
Dhamma, Y. A., & Barus, S. P. (2025). Sentiment Analysis on Google Reviews Using Naïve Bayes, K-Nearest Neighbors, and Logistic Regression to Improve Novotel Services. Journal of Applied Informatics and Computing, 9(1), 106–114. https://doi.org/10.30871/jaic.v9i1.8923
Hidayat, T. H. J., Ruldeviyani, Y., Aditama, A. R., Madya, G. R., Nugraha, A. W., & Adisaputra, M. W. (2021). Sentiment analysis of twitter data related to Rinca Island development using Doc2Vec and SVM and logistic regression as classifier. Procedia Computer Science, 197(2021), 660–667. https://doi.org/10.1016/j.procs.2021.12.187
Junianto, H., Saputro, R. E., Kusuma, B. A., & Saputra, D. I. S. (2024). Comparison of Logistic Regression and Random Forest in Sentiment Analysis of Disdukcapil Application Reviews. Jurnal Teknik Informatika (Jutif), 5(6), 1539-1547. https://doi.org/10.52436/1.jutif.2024.5.6.1802
Mehedi, M. H. K., Farid, F. Al, Rhythm, E. R., Rahman, F., Hasib, K. M., Uddin, J., & Mansor, S. (2025). Deep hierarchical networks for sentiment analysis of restaurant reviews from food apps. Scientific Reports, 15(1), 1–23. https://doi.org/10.1038/s41598-025-23856-5
Pahrudin, P., & Harianto, K. (2022). Penerapan Algoritma K-Nearest Neighbor Untuk Klasifikasi Warga Penerima Bantuan Sosial. Building of Informatics, Technology and Science (BITS), 4(3), 1241–1245. https://doi.org/10.47065/bits.v4i3.2276
Prayogi, M. B., & Masitoh, G. (2025). Analisis Sentimen Ulasan Pengguna Aplikasi Alfagift Menggunakan Random Forest. JISKA (Jurnal Informatika Sunan Kalijaga), 10, 158–170. https://doi.org/10.14421/jiska.2025.10.2.158-170
Putra, R. A., Pratiwi, H., & Khair, A. A. (2025). Analisis Sentimen Orang Tua Murid Baru Terhadap Smpn 40 Samarinda Pada Spmb 2025 Menggunakan Algoritma Naïve Bayes. METHOMIKA: Jurnal Manajemen Informatika & Komputerisasi Akuntansi, 9(2), 292–299. https://doi.org/10.46880/jmika.Vol9No2.pp292-299
Riswawan, A. (2025). Implementing TF-IDF and Logistic Regression for Sentiment Analysis of YouTube Comments on the iPhone 16. Jurnal Teknologi Dan Open Source, 8(2), 604–611. https://doi.org/10.36378/jtos.v7i2.4753
Sa’adah, S. M., Umam, K., Handayani, M. R., & Mustofa, M. I. (2025). Mapping the Polarity of Tourist Opinions on Indonesian Destinations through Google Maps Reviews Using Supervised Learning Methods. Journal of Applied Informatics and Computing, 9(5), 2845–2853. https://doi.org/10.30871/jaic.v9i5.9836
Setyabudi, S., & Aryanny, E. (2025). Sentiment Analysis of Lazada Marketplace User Ratings with Naïve Bayes and Support Vector Machine Methods. INOVTEK Polbeng - Seri Informatika, 10(1), 422–433. https://doi.org/10.35314/sww8cg21
Sunarya, P. A., Rahardja, U., Chen, S. C., Li, Y. M., & Hardini, M. (2024). Deciphering Digital Social Dynamics: A Comparative Study of Logistic Regression and Random Forest in Predicting E-Commerce Customer Behavior. Journal of Applied Data Sciences, 5(1), 100–113. https://doi.org/10.47738/jads.v5i1.155
Swathi Turai, Praneetha. P, Rajasri Aishwarya. B, Mohammed Adil, & Mani Charan Vangala. (2025). Analysis of restaurant ratings and reviews using machine learning. World Journal of Advanced Research and Reviews, 25(2), 1039–1046. https://doi.org/10.30574/wjarr.2025.25.2.0378
Windrasari, S. N., Margono, H., & Putra, Y. A. N. S. (2025). Predictive Sales Analysis in Coffee Shops Using the Random Forest Algorithm. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 5(3), 1000–1011. https://doi.org/10.57152/malcom.v5i3.2023