journal article·2021-09-15Open access

Automatic Hate Speech Detection in English-Odia Code Mixed Social Media Data Using Machine Learning Techniques

Sudhir Kumar Mohapatra, Srinivas Prasad, Dwiti Krishna Bebarta, Tapan Kumar Das, Kathiravan Srinivasan, Yuh-Chung Hu

Applied Sciences· Volume 11· Issue 18

Abstract

Hate speech on social media may spread quickly through online users and subsequently, may even escalate into local vile violence and heinous crimes. This paper proposes a hate speech detection model by means of machine learning and text mining feature extraction techniques. In this study, the authors collected the hate speech of English-Odia code mixed data from a Facebook public page and manually organized them into three classes. In order to build binary and ternary datasets, the data are further converted into binary classes. The modeling of hate speech employs the combination of a machine learning algorithm and features extraction. Support vector machine (SVM), naïve Bayes (NB) and random forest (RF) models were trained using the whole dataset, with the extracted feature based on word unigram, bigram, trigram, combined n-grams, term frequency-inverse document frequency (TF-IDF), combined n-grams weighted by TF-IDF and word2vec for both the datasets. Using the two datasets, we developed two kinds of models with each feature—binary models and ternary models. The models based on SVM with word2vec achieved better performance than the NB and RF models for both the binary and ternary categories. The result reveals that the ternary models achieved less confusion between hate and non-hate speech than the binary models.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Hate Speech and Cyberbullying Detection · Internet Traffic Analysis and Secure E-voting

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Faculty of Emerging Technologies, Sri Sri University, Cuttack 754006, India

Department of Computer Science and Engineering, GITAM University, Visakhapatnam 530045, India

Department of Information Technology, Gayatri Vidya Parishad College of Engineering for Women, Vishakhapatnam 530048, India

School of Information Technology and Engineering, Vellore Institute of Technology, Vellore 632014, India

School of Computer Science and Engineering, Vellore Institute of Technology, Vellore 632014, India

Department of Mechanical and Electromechanical Engineering, National Ilan University, Yilan 26047, Taiwan

Funding

Ministry of Science and Technology, Taiwan

References (44)

Show source-provided references
1. Fiok, K., Karwowski, W., Gutierrez, E., Liciaga, T., Belmonte, A., and Capobianco, R. (2021). Automated Classification of Evidence of Respect in the Communication through Twitter. Appl. Sci., 11.10.3390/app11031294 ↗
2. Das, T.K., Acharjya, D.P., and Patra, M.R. (2014, January 3–5). Opinion mining about a product by analyzing public tweets in Twitter. Proceedings of the 2014 International Conference on Computer Communication and Informatics, Coimbatore, India.10.1109/ICCCI.2014.6921727 ↗
3. Bermingham, A., and Smeaton, A. (2011, January 13). On using Twitter to monitor political sentiment and predict election results. Proceedings of the Workshop on Sentiment Analysis Where AI meets Psychology (SAAIP 2011), Chiang Mai, Thailand.
4. Xu, X., Mei, Y., Sun, Y., and Zhu, X. (2021). Analysis of the Effectiveness of Promotion Strategies of Social Platforms for the Elderly with Different Levels of Digital Literacy. Appl. Sci., 11.10.3390/app11094312 ↗
5. De Choudhury, M., Sundaram, H., John, A., and Seligmann, D.D. (2010). Analyzing the dynamics of communication in online social networks. Handbook of Social Network Technologies and Applications, Springer.10.1007/978-1-4419-7142-5_4 ↗
6. Florio, K., Basile, V., Polignano, M., Basile, P., and Patti, V. (2020). Time of your hate: The challenge of time in hate speech detection on social media. Appl. Sci., 10.10.3390/app10124180 ↗
7. Alshalan, R., and Al-Khalifa, H. (2020). A Deep Learning Approach for Automatic Hate Speech Detection in the Saudi Twittersphere. Appl. Sci., 10.10.3390/app10238614 ↗
8. Pereira-Kohatsu, J.C., Quijano-Sánchez, L., Liberatore, F., and Camacho-Collados, M. (2019). Detecting and monitoring hate speech in Twitter. Sensors, 19.10.3390/s19214654 ↗
9. Gagliardone, I., Pohjonen, M., Beyene, Z., Zerai, A., Aynekulu, G., Bekalu, M., and Teferra, Z. (2021, September 05). Mechachal: Online Debates and Elections in Ethiopia-from Hate Speech to Engagement in Social Media. Available online: https://ssrn.com/abstract=2831369.
10. Gagliardone, I. (2021, September 05). Mapping and Analysing Hate Speech Online. Available online: https://ssrn.com/abstract=2601792.
11. Alt-right’s’ Twitter’is hate-speech hub
12. Mathew, B., Dutt, R., Goyal, P., and Mukherjee, A. (2019, January 30). Spread of hate speech in online social media. Proceedings of the 10th ACM Conference on Web Science, Boston, MA, USA.10.1145/3292522.3326034 ↗
13. Malmasi, S., and Zampieri, M. (2017). Detecting hate speech in social media. arXiv.10.26615/978-954-452-049-6_062 ↗
14. Hate speech detection: A solved problem? the challenging case of long tail on twitter10.3233/SW-180338 ↗
15. Jaki, S., and De Smedt, T. (2019). Right-Wing German Hate Speech on Twitter: Analysis and Automatic Detection. arXiv.
16. Dillon, K.P., Benesch, S., and Ruths, D. (2017). A Web of Hate Tackling Hateful Speech in Online Social Spaces. arXiv, Available online: http://arxiv.org/abs/1709.10159.
17. Al-Hassan, A., and Al-Dossari, H. (2019, January 4–5). Detection of hate speech in social networks: A survey on multilingual corpus. Proceedings of the 6th International Conference on Computer Science and Information Technology, Dubai, United Arab Emirates.10.5121/csit.2019.90208 ↗
18. Bohra, A., Vijay, D., Singh, V., Akhtar, S.S., and Shrivastava, M. (2018, January 6). A dataset of Hindi-English code-mixed social media text for hate speech detection. Proceedings of the Second Workshop on Computational Modeling of People’s Opinions, Personality, and Emotions in Social Media, New Orleans, LA, USA.10.18653/v1/W18-1105 ↗
19. Kamble, S., and Joshi, A. (2018). Hate speech detection from code-mixed hindi-english tweets using deep learning models. arXiv.
20. Detection of Hate Speech Text in Hindi-English Code-mixed Data10.1016/j.procs.2020.04.080 ↗
21. Saroj, A., and Pal, S. (2020, January 11–16). An Indian language social media collection for hate and offensive speech. Proceedings of the Workshop on Resources and Techniques for User and Author Profiling in Abusive Language, Marseille, France.
22. Mossie, Z., and Wang, J.H. (2018, January 28–29). Social network hate speech detection for Amharic language. Proceedings of the 6th International Conference on Computer Science and Information Technology, Copenhagen, Denmark.10.5121/csit.2018.80604 ↗
23. A dataset and preliminaries study for abusive language detection in Indonesian social media10.1016/j.procs.2018.08.169 ↗
24. Davidson, T., Warmsley, D., Macy, M., and Weber, I. (2017, January 15–18). Automated hate speech detection and the problem of offensive language. Proceedings of the Eleventh International AAAI Conference on Web and Social Media, Montreal, QC, Canada.10.1609/icwsm.v11i1.14955 ↗
25. Gambäck, B., and Sikdar, U.K. (August, January 30). Using convolutional neural networks to classify hate-speech. Proceedings of the First Workshop on Abusive Language Online, Vancouver, BC, Canada.
26. Benikova, D., Wojatzki, M., and Zesch, T. (2017). What does this imply? Examining the Impact of Implicitness on the Perception of Hate Speech. International Conference of the German Society for Computational Linguistics and Language Technology, Springer.10.1007/978-3-319-73706-5_14 ↗
27. Del Vigna, F., Cimino, A., Dell’Orletta, F., Petrocchi, M., and Tesconi, M. (2017, January 17–20). Hate me, hate me not: Hate speech detection on facebook. Proceedings of the First Italian Conference on Cybersecurity (ITASEC17), Venice, Italy.
28. Bassignana, E., Basile, V., and Patti, V. (2018, January 10–12). Hurtlex: A multilingual lexicon of words to hurt. Proceedings of the 5th Italian Conference on Computational Linguistics, CLiC-it 2018, Torino, Italy.10.4000/books.aaccademia.3085 ↗
29. Alfina, I., Mulia, R., Fanany, M.I., and Ekanata, Y. (2017, January 28–29). Hate speech detection in the Indonesian language: A dataset and preliminary study. Proceedings of the 2017 International Conference on Advanced Computer Science and Information Systems (ICACSIS), Bali, Indonesia.10.1109/ICACSIS.2017.8355039 ↗
30. Djuric, N., Zhou, J., Morris, R., Grbovic, M., Radosavljevic, V., and Bhamidipati, N. (2015, January 18–22). Hate speech detection with comment embeddings. Proceedings of the 24th International Conference On World Wide Web, Florence, Italy.10.1145/2740908.2742760 ↗
31. Hate speech on twitter: A pragmatic approach to collect hateful and offensive expressions and perform hate speech detection10.1109/ACCESS.2018.2806394 ↗
32. Ensemble method for indonesian twitter hate speech detection
33. Using Naïve Bayes algorithm in detection of hate tweets
34. Tulkens, S., Hilte, L., Lodewyckx, E., Verhoeven, B., and Daelemans, W. (2016). A dictionary-based approach to racism detection in dutch social media. arXiv.
35. Gaydhani, A., Doma, V., Kendre, S., and Bhagwat, L. (2018). Detecting hate speech and offensive language on twitter using machine learning: An n-gram and tfidf based approach. arXiv.
36. Biere, S., Bhulai, S., and Analytics, M.B. (2018). Hate Speech Detection Using Natural Language Processing Techniques, Master Business Analytics, Department of Mathematics, Faculty of Science, Vrije Universiteit Amsterdam.
37. Badjatiya, P., Gupta, S., Gupta, M., and Varma, V. (2017, January 3–7). Deep learning for hate speech detection in tweets. Proceedings of the 26th International Conference on World Wide Web Companion, Perth, Australia.10.1145/3041021.3054223 ↗
38. A lexicon-based approach for hate speech detection10.14257/ijmue.2015.10.4.21 ↗
39. Zimmerman, S., Kruschwitz, U., and Fox, C. (2018, January 7–12). Improving hate speech detection with deep learning ensembles. Proceedings of the 11th Edition of the Language Resources and Evaluation Conference, Miyazaki, Japan.
40. MacAvaney, S., Yao, H.R., Yang, E., Russell, K., Goharian, N., and Frieder, O. (2019). Hate speech detection: Challenges and solutions. PLoS ONE, 14.10.1371/journal.pone.0221152 ↗
41. A recent overview of the state-of-the-art elements of text classification10.1016/j.eswa.2018.03.058 ↗
42. A Framework for Hate Speech Detection Using Deep Convolutional Neural Network10.1109/ACCESS.2020.3037073 ↗
43. Das, T.K. (2015, January 29–31). A customer classification prediction model based on machine learning techniques. Proceedings of the 2015 International Conference on Applied and Theoretical Computing and Communication Technology (iCATccT), Davangere, India.10.1109/ICATCCT.2015.7456903 ↗
44. Salminen, J., Almerekhi, H., Milenkovic’, M., Jung, S.G., An, J., Kwak, H., and Jansen, B.J. (2018, January 25–28). Anatomy of online hate: Developing a taxonomy and machine learning models for identifying and classifying hate in online news media. Proceedings of the Twelfth International AAAI Conference on Web and Social Media, Palo Alto, CA, USA.10.1609/icwsm.v12i1.15028 ↗