Comparing Machine Learning Models for Sentiment Analysis and Rating Prediction of Vegan and Vegetarian Restaurant Reviews

被引:3
作者
Hanic, Sanja [1 ]
Babac, Marina Bagic [2 ]
Gledec, Gordan [2 ]
Horvat, Marko [2 ]
机构
[1] Univ Zagreb, Fac Elect Engn & Comp, Unska 3, HR-10000 Zagreb, Croatia
[2] Univ Zagreb, Fac Elect Engn & Comp, Dept Appl Comp, Unska 3, HR-10000 Zagreb, Croatia
关键词
sentiment analysis; machine learning; natural language processing;
D O I
10.3390/computers13100248
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
The paper investigates the relationship between written reviews and numerical ratings of vegan and vegetarian restaurants, aiming to develop a predictive model that accurately determines numerical ratings based on review content. The dataset was obtained by scraping reviews from November 2022 until January 2023 from the TripAdvisor website. The study applies multidimensional scaling and clustering using the KNN algorithm to visually represent the textual data. Sentiment analysis and rating predictions are conducted using neural networks, support vector machines (SVM), random forest, Na & iuml;ve Bayes, and BERT models. Text vectorization is accomplished through term frequency-inverse document frequency (TF-IDF) and global vectors (GloVe). The analysis identified three main topics related to vegan and vegetarian restaurant experiences: (1) restaurant ambiance, (2) personal feelings towards the experience, and (3) the food itself. The study processed a total of 33,439 reviews, identifying key aspects of the dining experience and testing various machine learning methods for sentiment and rating predictions. Among the models tested, BERT outperformed the others, and TF-IDF proved slightly more effective than GloVe for word representation.
引用
收藏
页数:24
相关论文
共 50 条
[31]   Sentiment Analysis of Online Movie Reviews using Machine Learning [J].
Steinke, Isaiah ;
Wier, Justin ;
Simon, Lindsay ;
Seetan, Raed .
INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2022, 13 (09) :618-624
[32]   Sentiment Analysis on Online Reviews using Machine Learning and NLTK [J].
Kumar, Shailender ;
Jailani, Nazir Ahmad ;
Singh, Abhinav Raj ;
Panchal, Shubham .
2022 6TH INTERNATIONAL CONFERENCE ON TRENDS IN ELECTRONICS AND INFORMATICS, ICOEI 2022, 2020, :1183-1189
[33]   Sentiment Analysis on Amazon Food Reviews using Machine Learning [J].
Arnav, Ameye ;
Pareek, Varda ;
Jain, Tarun .
2024 2ND WORLD CONFERENCE ON COMMUNICATION & COMPUTING, WCONF 2024, 2024,
[34]   An explainable machine learning model for sentiment analysis of online reviews [J].
Mrabti, Soufiane El ;
EL-Mekkaoui, Jaouad ;
Hachmoud, Adil ;
Lazaar, Mohamed .
KNOWLEDGE-BASED SYSTEMS, 2024, 302
[35]   Optimization of machine learning models for sentiment analysis in social media [J].
Brandao, Jhonathan Godoi ;
Castro Junior, Antonio P. ;
Pacheco, Viviane M. Gomes ;
Rodrigues, Cloves Gonsalves ;
Belo, Orlando M. Oliveira ;
Coimbra, Antonio Paulo ;
Calixto, Wesley Pacheco .
INFORMATION SCIENCES, 2025, 694
[36]   An empirical comparison of machine learning methods for text-based sentiment analysis of online consumer reviews [J].
Alantari, Huwail J. ;
Currim, Imran S. ;
Deng, Yiting ;
Singh, Sameer .
INTERNATIONAL JOURNAL OF RESEARCH IN MARKETING, 2022, 39 (01) :1-19
[37]   ReviewModus: Text classification and sentiment prediction of unstructured reviews using a hybrid combination of machine learning and evaluation models [J].
Zablith, Fouad ;
Osman, Ibrahim H. .
APPLIED MATHEMATICAL MODELLING, 2019, 71 :569-583
[38]   Hotel Rating Prediction System Based on Time Factors: Using Reviews and Sentiment Analysis [J].
Lee, Pei-Hua ;
Sun, Yu-Kai ;
Ke, Yin-Pei ;
Lee, Pei-Ju .
JOURNAL OF ORGANIZATIONAL AND END USER COMPUTING, 2024, 36 (01)
[39]   Application of Machine Learning Techniques to Sentiment Analysis [J].
Jain, Anuja P. ;
Dandannavar, Padma .
PROCEEDINGS OF THE 2016 2ND INTERNATIONAL CONFERENCE ON APPLIED AND THEORETICAL COMPUTING AND COMMUNICATION TECHNOLOGY (ICATCCT), 2016, :628-632
[40]   Analysis of Arabic Tweet Sentiment About Trending Hashtags Using Transfer Learning and Machine Learning Models [J].
Al-Qahtani, Waad Nasier ;
Muniasamy, Anandhavalli .
2024 IEEE 7TH INTERNATIONAL CONFERENCE ON ADVANCED TECHNOLOGIES, SIGNAL AND IMAGE PROCESSING, ATSIP 2024, 2024, :239-244