Sentiment Classification of Robot Hotel Content using NBC and SVM Algorithm
Abstract
Sentiment analysis plays a pivotal role in comprehending public sentiment, notably within digital communication, where copious amounts of textual data are generated daily. This study delves into the efficacy of sentiment classification models, namely the Naive Bayes Classifier (NBC) and Support Vector Machine (SVM), within the imbalanced datasets commonly encountered in sentiment analysis tasks. Employing a comparative analysis methodology, a dataset comprising robot hotel reviews from online platforms is the basis for evaluation. Both NBC and SVM models undergo training and assessment, with and without the Synthetic Minority Over-sampling Technique (SMOTE), to rectify the class imbalance. Performance evaluation relies on critical metrics, including accuracy, recall, precision, f-measure, and Area Under Curve (AUC) to gauge model effectiveness. Findings demonstrate SVM's superiority over NBC in terms of accuracy (SVM: 76.88%, NBC: 67.43%), precision (SVM: 92.03%, NBC: 86.87%), recall (SVM: 58.88%, NBC: 41.00%), f-measure (SVM: 71.78%, NBC: 55.63%), and AUC (SVM: 0.907, NBC: 0.961). Incorporating SMOTE significantly enhances both models' performance, particularly in addressing class imbalance concerns. Although NBC exhibits a more balanced performance across precision and recall metrics, SVM demonstrates heightened accuracy and predictive capability in sentiment classification tasks. These findings underscore the pivotal role of algorithm selection and preprocessing techniques in optimizing sentiment analysis performance, thereby providing invaluable insights for practitioners and researchers alike.
Downloads
References
I. G. Phang, S. Jiang, and X. J. Lim, “Wow It’s a Robot! Customer-Motivated Innovativeness, Hotel Image, and Intention to Stay at Chinese Hotels,” J. China Tour. Res., vol. 19, no. 4, pp. 812–828, 2023, doi: 10.1080/19388160.2022.2155749.
X. Wang, Y. H. Hwang, and P. Guchait, “When Robot (Vs. Human) Employees Say ‘Sorry’ Following Service Failure,” Int. J. Hosp. Tour. Adm., vol. 24, no. 4, pp. 540–562, 2023, doi: 10.1080/15256480.2021.2017812.
H. Zhao, J. Lan, T. Lyu, and G. Zeng, “Working with artificial intelligence surveillance during the COVID-19 pandemic: a mixed investigation of the influence mechanism on job engagement in hospitality industry,” Curr. Issues Tour., vol. 26, no. 20, pp. 3318–3335, 2023, doi: 10.1080/13683500.2022.2117593.
A. G. Woodside, P. Mir-Bernal, T. S. Garraza, and P. San Miguel, “Who’s asking? Social platform and research sponsors’ identity biases in guests’ hospitality experience-reviews: a case study of Spanish hotels,” J. Hosp. Mark. Manag., vol. 33, no. 2, pp. 233–250, 2023, doi: 10.1080/19368623.2023.2244467.
L. Zhong, S. Sun, R. Law, and X. Zhang, “Impact of robot hotel service on consumers’ purchase intention: a control experiment,” Asia Pacific J. Tour. Res., vol. 25, no. 7, pp. 780–798, 2020, doi: 10.1080/10941665.2020.1726421.
H. N. Io and C. B. Lee, “Social Media Comments about Hotel Robots,” J. China Tour. Res., vol. 16, no. 4, pp. 606–625, 2020, doi: 10.1080/19388160.2020.1769785.
J. J. Kim and H. Han, “Hotel of the future: exploring the attributes of a smart hotel adopting a mixed-methods approach,” J. Travel Tour. Mark., vol. 37, no. 7, pp. 804–822, 2020, doi: 10.1080/10548408.2020.1835788.
D. Belias, L. Vasiliadis, and I. Rossidis, “The Intention and Expectations of Modern Robotic Technologies in the Hotel Industry,” J. Qual. Assur. Hosp. Tour., vol. 23, no. 6, pp. 1451–1479, 2022, doi: 10.1080/1528008X.2021.1995566.
F. Cheong and R. Law, “Human employees versus robotic employees: Customers and hotel managers’ perceived experience at unmanned smart hotels,” Cogent Soc. Sci., vol. 9, no. 1, 2023, doi: 10.1080/23311886.2023.2202937.
V. W. S. Tung and S. W. T. Tse, “A patterns perspective of customers’ brand experiences with robotics in hospitality,” J. Travel Tour. Mark., vol. 40, no. 1, pp. 75–89, 2023, doi: 10.1080/10548408.2023.2215268.
Y. Choi, M. Oh, M. Choi, and S. Kim, “Exploring the influence of culture on tourist experiences with robots in service delivery environment,” Curr. Issues Tour., vol. 24, no. 5, pp. 717–733, 2021, doi: 10.1080/13683500.2020.1735318.
M. Qin, S. Li, W. Zhu, and S. Qiu, “Trust in service robot: the role of appearance anthropomorphism,” Curr. Issues Tour., pp. 1–19, 2023, doi: 10.1080/13683500.2023.2295923.
M. Shan, Z. Zhu, H. Chen, and S. Sun, “Service robot’s responses in service recovery and service evaluation: the moderating role of robots’ social perception,” J. Hosp. Mark. Manag., vol. 33, no. 2, pp. 145–168, 2023, doi: 10.1080/19368623.2023.2246456.
M. Mariani and M. Borghi, “Environmental discourse in hotel online reviews: a big data analysis,” J. Sustain. Tour., vol. 29, no. 5, pp. 829–848, 2020, doi: 10.1080/09669582.2020.1858303.
S. Lee, “The Role of Intrinsic Motivations on Customers’ Service Robot Use Experience,” J. Qual. Assur. Hosp. Tour., vol. 00, no. 00, pp. 1–24, 2023, doi: 10.1080/1528008X.2023.2289381.
F. Cheong, Q. Huang, H. Ye, and R. Law, “Application and Consequences of Service Robots in Tourism and Hospitality Scenarios: A Systematic Literature Review,” J. Qual. Assur. Hosp. Tour., vol. 00, no. 00, pp. 1–23, 2023, doi: 10.1080/1528008x.2023.2300119.
E. Demirel, S. Karagöz Zeren, and K. Hakan, “Smart contracts in tourism industry: a model with blockchain integration for post pandemic economy,” Curr. Issues Tour., vol. 25, no. 12, pp. 1895–1909, 2022, doi: 10.1080/13683500.2021.1960280.
E. Tata, M. Sharrock, and R. Westerlaken, “Generation Z consumer behaviour and hotel branding: exploring the role of values, corporate identity and trust,” Res. Hosp. Manag., vol. 13, no. 1, pp. 63–68, 2023, doi: 10.1080/22243534.2023.2239585.
K. M. Selem, R. Khalid, M. Raza, and M. S. Islam, “We Need Digital Inquiries Before Arrival! Key Drivers of Hotel Customers’ Willingness to Pay Premium,” J. Qual. Assur. Hosp. Tour., vol. 00, no. 00, pp. 1–23, 2023, doi: 10.1080/1528008X.2023.2280117.
X. Zhang, P. Tavitiyaman, and W. Y. Tsang, “Preferences of Technology Amenities, Satisfaction and Behavioral Intention: The Perspective of Hotel Guests in Hong Kong,” J. Qual. Assur. Hosp. Tour., vol. 24, no. 5, pp. 545–575, 2023, doi: 10.1080/1528008X.2022.2070817.
X. Zhang and H. Jin, “How does smart technology, artificial intelligence, automation, robotics, and algorithms (STAARA) awareness affect hotel employees’ career perceptions? A disruptive innovation theory perspective,” J. Hosp. Mark. Manag., vol. 32, no. 2, pp. 264–283, 2023, doi: 10.1080/19368623.2023.2166186.
P. Tavitiyaman, X. Zhang, J. B. Xu, and B. Tsui, “Impact of Smart Tourism Technology Attributes on Perceived Usefulness , Service Experience Evaluation , and Business Performance : A Perspective of Hotel Employees Impact of Smart Tourism Technology Attributes on Perceived Usefulness , Service Experience Evaluation , and Business Performance : A Perspective of Hotel Employees,” J. Qual. Assur. Hosp. Tour., vol. 00, no. 00, pp. 1–26, 2024, doi: 10.1080/1528008X.2024.2313194.
C. K. Pai, A. Dai, C. Y. Yang, and Y. Ge, “Exploring factors affecting customer trust in social distancing technology and impact on hotel booking intentions,” Cogent Soc. Sci., vol. 8, no. 1, 2022, doi: 10.1080/23311886.2022.2110200.
A. Alsaad, “The dual effect of anthropomorphism on customers’ decisions to use artificial intelligence devices in hotel services,” J. Hosp. Mark. Manag., vol. 32, no. 8, pp. 1048–1076, 2023, doi: 10.1080/19368623.2023.2223584.
G. El Hajal and B. Rowson, “The future of hospitality jobs,” Res. Hosp. Manag., vol. 10, no. 1, pp. 55–61, 2020, doi: 10.1080/22243534.2020.1790210.
A. K. F. Wong, S. Kim, S. Lee, and S. Elliot, “An application of Delphi method and analytic hierarchy process in understanding hotel corporate social responsibility performance scale,” J. Sustain. Tour., vol. 29, no. 7, pp. 1153–1179, 2021, doi: 10.1080/09669582.2020.1773835.
J. Luo, S. Huang, and R. Wang, “A fine-grained sentiment analysis of online guest reviews of economy hotels in China,” J. Hosp. Mark. Manag., vol. 30, no. 1, pp. 71–95, 2021, doi: 10.1080/19368623.2020.1772163.
M. Vij, A. Upadhya, and N. Abidi, “Sentiments and recovery of the hospitality sector from Covid-19–a managerial perspective through phenomenology,” Tour. Recreat. Res., vol. 46, no. 2, pp. 212–227, 2021, doi: 10.1080/02508281.2021.1902658.
H. Li, J. Zhang, Q. Wan, Q. Wang, and J. Xu, “Customers’ hotel staycation experiences: implications from the pandemic,” Curr. Issues Tour., pp. 1–18, 2023, doi: 10.1080/13683500.2023.2220952.
J. Wu and N. Zhao, “What consumer complaints should hoteliers prioritize? Analysis of online reviews under different market segments,” J. Hosp. Mark. Manag., vol. 32, no. 1, pp. 1–28, 2023, doi: 10.1080/19368623.2022.2119187.
A. Aakash and A. Gupta Aggarwal, “Assessment of Hotel Performance and Guest Satisfaction through eWOM: Big Data for Better Insights,” Int. J. Hosp. Tour. Adm., vol. 23, no. 2, pp. 317–346, 2022, doi: 10.1080/15256480.2020.1746218.
P. Q. Wang, “Personalizing guest experience with generative AI in the hotel industry: there’s more to it than meets a Kiwi’s eye,” Curr. Issues Tour., pp. 1–18, 2024, doi: 10.1080/13683500.2023.2300030.
M. M. Mariani and M. Borghi, “Artificial intelligence in service industries: customers’ assessment of service production and resilient service operations,” Int. J. Prod. Res., 2023, doi: 10.1080/00207543.2022.2160027.
W. C. W. Au and N. K. F. Tsang, “What makes a destination smart? an intelligence-oriented approach to conceptualizing destination smartness,” J. Travel Tour. Mark., vol. 39, no. 4, pp. 448–464, 2022, doi: 10.1080/10548408.2022.2116627.
B. Ahmad and M. I. ud D. Akbar, “Validating a multidimensional perspective of relationship marketing on brand attachment, customer loyalty and purchase intentions: a serial mediation model,” J. Strateg. Mark., vol. 31, no. 3, pp. 669–692, 2023, doi: 10.1080/0965254X.2021.1969422.
S. Park and X. Lehto, “Understanding the opaque priority of safety measures and hotel customer choices after the COVID-19 pandemic: an application of discrete choice analysis,” J. Travel Tour. Mark., vol. 38, no. 7, pp. 653–665, 2021, doi: 10.1080/10548408.2021.1985038.
H. Yang, H. Song, L. Xia, and A. Yang, “Understanding the consequences of robotic interaction quality and outcome quality : A three- phased affordance theory-based approach,” J. Hosp. Mark. Manag., vol. 00, no. 00, pp. 1–21, 2024, doi: 10.1080/19368623.2024.2308531.
C. Rassal, A. Correia, and F. Serra, “Understanding Online Reviews in All-Inclusive Hotels Servicescape: A Fuzzy Set Approach,” J. Qual. Assur. Hosp. Tour., vol. 00, no. 00, pp. 1–28, 2023, doi: 10.1080/1528008X.2023.2167761.
Y. A. Singgalen, “Penerapan CRISP-DM dalam Klasifikasi Sentimen dan Analisis Perilaku Pembelian Layanan Akomodasi Hotel Berbasis Algoritma Decision Tree ( DT ),” J. Sist. Komput. dan Inform., vol. 5, no. 2, pp. 237–248, 2023, doi: 10.30865/json.v5i2.7081.
Y. A. Singgalen, “Analisis Sentimen Top 10 Traveler Ranked Hotel di Kota Makassar Menggunakan Algoritma Decision Tree dan Support Vector Machine,” KLIK Kaji. Ilm. Inform. dan Komput., vol. 4, no. 1, pp. 323–332, 2023, doi: 10.30865/klik.v4i1.1153.
Q. A’yuniyah et al., “Implementasi Algoritma Naïve Bayes Classifier (NBC) untuk Klasifikasi Penyakit Ginjal Kronik,” J. Sist. Komput. dan Inform., vol. 4, no. 1, pp. 72–76, 2022, doi: 10.30865/json.v4i1.4781.
K. Puh and M. Bagić Babac, “Predicting sentiment and rating of tourist reviews using machine learning,” J. Hosp. Tour. Insights, vol. 6, no. 3, pp. 1188–1204, 2023, doi: 10.1108/JHTI-02-2022-0078.
Rousyati, W. Gata, D. Pratmanto, and N. K. Warchani, “Analisis Sentimen Financial Technology Peer to Peer Lending Pada Aplikasi Koinworks,” J. Teknol. Infor, vol. 9, no. 6, pp. 1167–1176, 2022, doi: 10.25126/jtiik.202294409.
V. W. D. Thomas and F. Rumaisa, “Analisis Sentimen Ulasan Hotel Bahasa Indonesia Menggunakan Support Vector Machine dan TF-IDF,” J. Media Inform. Budidarma, vol. 6, no. 3, pp. 1767–1774, 2022, doi: 10.30865/mib.v6i3.4218.
R. Obiedat et al., “Sentiment Analysis of Customers’ Reviews Using a Hybrid Evolutionary SVM-Based Approach in an Imbalanced Data Distribution,” IEEE Access, vol. 10, pp. 22260–22273, 2022, doi: 10.1109/ACCESS.2022.3149482.
A. Andreyestha and Q. N. Azizah, “Analisa Sentimen Kicauan Twitter Tokopedia Dengan Optimalisasi Data Tidak Seimbang Menggunakan Algoritma SMOTE,” Infotek J. Inform. dan Teknol., vol. 5, no. 1, pp. 108–116, 2022, doi: 10.29408/jit.v5i1.4581.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Sentiment Classification of Robot Hotel Content using NBC and SVM Algorithm
Pages: 442-453
Copyright (c) 2024 Yerik Afrianto Singgalen

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).






















