Toward Hate Speech Analysis: Sentiment Analysis for Food Brands Review on Twitter

Authors

  • Vijay Sandara Segaran
  • Mohd Aminuddin Hamzah
  • Juhaida Abu Bakar
  • Sonia Puventheran

DOI:

https://doi.org/10.53840/myjict7-2-58

Keywords:

Sentiment analysis, hate speech, food brand review, machine learning classifier

Abstract

Social media has been a real-world sensor to observe the pulse of society. Although it provides unique communication opportunities, it also brings along vital challenges. One of them is hate speech, which attacks a single individual or targeted groups. Previous researchers claim that among social networks, the Twitter platform is mostly used to spread hate speech. However, data on a larger scale makes it hard to capture and understand the nature of hate speech on Twitter within specific food brands. In this study, sentiment analysis techniques were used to filter hate speech on Twitter and on three popular food brands in Malaysia. This study was conducted in five phases, namely raw data collection, pre-processing, sentiment analysis, visualization, and performance evaluation. This corpus consists of 28,898 data samples based on user tweet searches. A Twitter API was created and SQLite was used to store all the sample data. VADER sentiment analysis is used to classify tweet sentiment into positive, negative, and neutral. In the visualization phase, these three food brands are visualized using a histogram to gain sentiment analysis insights. Then, three machine learning methods were implemented to predict the best model for sentiment analysis. The Decision Tree classifier outperforms the average accuracy in Support Vector Machine and Logistic Regression with 99.99% for the training data set. This study provides insights to assist humans in making decisions. With the growth of opinions expressed in multimedia on social media, such as spoken feedback on Twitter, sentiment analysis has the potential to become a more news aggregation and low-cost endeavour.

Downloads

Download data is not yet available.

References

Gitari, N. D., Zuping, Z., Damien, H., & Long, J. (2015). A lexicon-based approach for hate speech detection. International Journal of Multimedia and Ubiquitous Engineering, 10(4), 215-230.

Nezhad, Z. B., & Deihimi, M. A. (2021). Sarcasm detection in Persian. Journal of Information and Communication Technology, 20(1), 1-20.

Silva, L., Mondal, M., Correa, D., Benevenuto, F., & Weber, I. (2016). Analyzing the targets of hate in online social media. In Tenth international AAAI conference on web and social media.

Pereira-Kohatsu, J. C., Quijano-Sánchez, L., Liberatore, F., & Camacho-Collados, M. (2019). Detecting and monitoring hate speech in Twitter. Sensors, 19(21), 4654.

Mondal, M., Silva, L. A., & Benevenuto, F. (2017). A measurement study of hate speech in social media. In Proceedings of the 28th ACM conference on hypertext and social media (pp. 85-94).

Soleymani, M., Garcia, D., Jou, B., Schuller, B., Chang, S. F., & Pantic, M. (2017). A survey of multimodal sentiment analysis. Image and Vision Computing, 65, 3-14.

Udanor, C., & Anyanwu, C. C. (2019). Combating the challenges of social media hate speech in a polarized society: A Twitter ego lexalytics approach. Data Technologies and Applications.

Salminen, J., Hopf, M., Chowdhury, S. A., Jung, S. G., Almerekhi, H., & Jansen, B. J. (2020). Developing an online hate classifier for multiple social media platforms. Human-centric Computing and Information Sciences, 10(1), 1-34.

Mattila, M., & Salman, H. (2018). Analysing Social Media Marketing on Twitter using Sentiment Analysis.

Mahmood, A., Kamaruddin, S., Naser, R., & Nadzir, M. (2020). A combination of lexicon and machine learning approaches for sentiment analysis on Facebook. J. Syst. Manag. Sci, 10(3), 140-150.

Published

31-12-2022

Issue

Section

Articles

How to Cite

Sandara Segaran, V., Hamzah, M. A., Abu Bakar, J., & Puventheran, S. (2022). Toward Hate Speech Analysis: Sentiment Analysis for Food Brands Review on Twitter. Malaysian Journal of Information and Communication Technology (MyJICT), 7(2), 22-28. https://doi.org/10.53840/myjict7-2-58

Share