Sentiment Analysis of Restaurant Reviews in Social Media using Naïve Bayes

Murtadha M. Hamad, Mohanad A. Salih, Refed Adnan Jaleel

Abstract

There are currently huge reviews that have increased every day of customer actions in online media, such as Twitter about the restaurant industry, which needs more focus for customers by constantly enhancing customer service. Satisfaction of the customer is a gateway to customer service. Sentiment analysis is a way of defining negative or positive opinions when classifying documents. It was almost impossible to evaluate the data of reviews in social media manually. There are various data mining algorithms used for evaluating and analysis.  This paper analyzes the sentiment of users' tweets on the subjects of restaurants by using the sentiment classification algorithms of Naïve Bayes (NB). The system suggested is capable of performing sentiments analysis of tweets. For this reason, a sample of real data was collected from Twitter for customer reviews. A python programming language has been used for implementing the proposed system. The results are similar to the fact that customers are highly positive about restaurants and people, primarily people who are positive about restaurants. The results are measured using common measures for performance assessment, including precision, recall, accuracy and error rate. They were obtained as 68%, 80.07%, 73% and 27% respectively.

Keywords

Customer satisfaction; Naïve Bayes; Sentiment analysis.

Article Metrics

Abstract view : 35 times
PDF - 18 times

Full Text:

PDF

References

E. B. Lunke, Commuters’ satisfaction with public transport, Journal of Transport & Health, 16, 2020, 100842.

X. Xie, Y. Fu, H. Jin, Y. Zhao and W. Cao, A novel text mining approach for scholar information extraction from web content Chinese, Future Generation Computer Systems, 111, 2020, 859-872.

B. Liu and L. Zhang, A survey of opinion mining and sentiment analysis, in mining text data, Springer, Boston, MA, 2012, 415-463.

P. Tiwari, S. Kumar, V. Kumar and B. K. Mishra, Implementation of n-gram methodology for rotten tomatoes review dataset sentiment analysis, Cognitive Analytics: Concepts, Methodologies, Tools, and Applications, IGI Global, 2020, 689-701.

F. G. Contratres, S. N. Alves-Souza, L. Vilela Leite Filgueiras and L. S. DeSouza, Sentiment analysis of social network data for cold-start relief in recommender systems, Trends and Advances in Information Systems and Technologies, 2018, 122-132.

H. U. Khan, Mixed-sentiment classification of web forum posts using lexical and nonlexical features, Journal of Web Engineering, 16(1– 2), 2017, 161-176.

U. Ishfaq, H. U. Khan, and K. Iqbal, Identifying the influential bloggers: a modular approach based on sentiment analysis, Journal of Web Engineering, 16(5–6), 2017, 505-523.

H. U. Khan, A. Daud, U. Ishfaq, T. Amjad, N. Aljohani, R. A. Abbasi and J. S. Alowibdi, Modelling to identify influential bloggers in the blogosphere: A survey, Computers in Human Behavior, 68, 2017, 64-82.

H. U. Khan, A. Daud and T. A. Malik, MIIB: A metric to identify top influential bloggers in a community, PLOS ONE One, 10(9), 2015, e0138359.

A. Mahmood, H. U. Khan, Zahoor-ur-Rehman and W. Khan, Query based information retrieval and knowledge extraction using Hadith datasets, 13th International Conference on Emerging Technologies (ICET), Islamabad, Pakistan, 2017, 1-6.

A. Mahmood, H. U. Khan, F. K. Alarfaj, M. Ramzan and M. Ilyas, A multilingual datasets repository of the hadith content, International Journal of Advanced Computer Science and Applications (IJASA), 9(2), 2018, 165-172.

R. Khan, H. U. Khan, M. S. Faisal, K. Iqbal and M. S. I. Malik, An analysis of Twitter users of Pakistan, International Journal of Computer Science and Information Security (IJCSIS), 14(8), 2016, 855-864.

U. Ishfaq, H. U. Khan and K. Iqbal, Modeling to find the top bloggers using sentiment features, International Conference on Computing, Electronic and Electrical Engineering, Quetta, Pakistan, 2016.

J. Song, K. T. Kim, B. Lee, S. Kim and H. Y. Youn, A novel classification approach based on Naïve Bayes for Twitter sentiment analysis, KSII Transactions of Internet and Information Systems, 11(6), 2017, 2996-3011.

M. G. Bhargava and D. R. Rao, Sentimental analysis on social media data using R programming, International Journal of Engineering & Technology, 7(2.31), 2018, 80-84.

Y. B. Kim, S. H. Lee, S. J. Kang, M. J. Choi, J. Lee and C. H. Kim, Virtual world currency value fluctuation prediction system based on user sentiment analysis, PLOS ONE, 10(8), 2015, e0132944.

T. Pranckevicius and V. Marcinkevicius, Comparison of Naïve Bayes, random forest, decision tree, support vector machines, and logistic regression classifiers for text reviews classification, Baltic Journal of Modern Computing, 5(2), 2017, 221-232.

F. S. Fitri, M. N. S. Si and C. Setianingsih, Sentiment analysis on the level of customer satisfaction to data cellular services using the Naive Bayes classifier algorithm, IEEE International Conference on Internet of Things and Intelligence System, Bali, Indonesia, 2018, 201-206.

A. Hasan, S. Moin, A. Karim and S. Shamshirband, Machine learning-based sentiment analysis for twitter accounts, Mathematical and Computational Applications, 23(1), 2018, 11.

K Berezina, A. Bilgihan, C. Cobanoglu and F. Okurnus, Understanding satisfied and dissatisfied hotel customers: Text mining of online hotel reviews, Journal of Hospitality Marketing & Management, 25(1), 2016, 1-24.

M. Jupri and R. Sarno, Taxpayer compliance classification using C4.5, SYM, KNN, Naive Bayes and MLP, International Conference on Information and Communications Technology, Yogyakarta, 2018, 297-303.

L. Dong, X. Li, and G. Xie, Nonlinear methodologies for identifying seismic event and nuclear explosion using random forest, support vector machine, and Naïve Bayes classification, Abstract and Applied Analysis, 2014, Article ID 459137.

J. Wu, S. Pan, X. Zhu, Z. Cai, P. Zhang and C. Zhang, Self-adaptive attribute weighting for Naive Bayes classification, Expert Systems and Applications, 42(3), 2015, 1487-1502.

L. Jiang, C. Li, S. Wang and L. Zhang, Deep feature weighting for Naive Bayes and its application to text classification, Engineering Applications of Artificial Intelligence, 52, 2016, 26-39.

R. F. Fouladi, C. E. Kayatas and E. Anarim, Frequency based DDoS attack detection approach using Naive Bayes classification, 39th International Conference on Telecommunications and Signal Processing, Vienna, Austria, 2016, 104-107.

J. C. Griffis, J. B. Allendorfer and J. P. Szaflarski, Voxel-based gaussian naïve Bayes classification of ischemic stroke lesions in individual T1-weighted MRI scans, Journal of Neuroscience Methods, 257, 2016, 97-108.

Z. Wu, Q. Xu, J. Li, C. Fu, Q. Xuan and Y. Xiang, Passive indoor localization based on CSI and Naive Bayes classification, IEEE Transactions on Systems, Man, and Cybernatics: Systems, 48(9), 2018, 1566-1577.

Y. Ko, How to use negative class information for Naive Bayes classification, Information Process & Management, 53(6), 2017, 1255-1268.

C. Gao, Q. Cheng, P. He, W. Susilo and J. Li, Privacy-preserving Naive Bayes classifiers secure against the substitution-then-comparison attack, Information Sciences, 444, 2018, 72-88.

Refbacks

  • There are currently no refbacks.