Jurnal Teknik Pertanian Lampung (Journal of Agricultural Engineering)
Vol. 14 No. 5 (2025): October 2025

Comparison of Machine Learning Models for Classifying Consumer Sentiment of Coffee Shops on Social Media X

Pamungkas, Agung Putra (Unknown)
Mahendra, Adam (Unknown)
Aziz, Ibnu Wahid Fakhrudin (Unknown)



Article Info

Publish Date
16 Oct 2025

Abstract

With the intense competition in the coffee shop industry, understanding consumer opinions has become crucial for businesses. This study analyzes consumer sentiment toward the Janji Jiwa and Kopi Kenangan brands using tweet data from platform X. Sentiments were classified into positive, neutral, and negative categories using three algorithms: Logistic Regression (LR), Naïve Bayes (NB), and Support Vector Machine (SVM). The performance of these algorithms, in terms of accuracy and predictive capability, was evaluated using the TF-IDF method for text representation. The evaluation results show that LR achieved the highest accuracy at 79%, followed by SVM (78%) and NB (75%). Additionally, LR recorded consistent and balanced scores across the precision, recall, and F1-score metrics. These findings indicate that LR and SVM are more effective for multiclass sentiment classification in social media contexts

Copyrights © 2025






Journal Info

Abbrev

JTP

Publisher

Subject

Agriculture, Biological Sciences & Forestry Engineering

Description

Jurnal Teknik Pertanian Lampung or Journal of Agricultural Engineering (JTEP-L) is a peer-reviewed open-access journal. The journal invites scientists and engineers throughout the world to exchange and disseminate theoretical and practice-oriented researches in the whole aspect of Agricultural ...