journal article·2021-12-09Open access

A Novel Stacked Ensemble for Hate Speech Recognition

Mona Khalifa A. Aljero, Nazife Dimililer

Applied Sciences· Volume 11· Issue 24

Abstract

Detecting harmful content or hate speech on social media is a significant challenge due to the high throughput and large volume of content production on these platforms. Identifying hate speech in a timely manner is crucial in preventing its dissemination. We propose a novel stacked ensemble approach for detecting hate speech in English tweets. The proposed architecture employs an ensemble of three classifiers, namely support vector machine (SVM), logistic regression (LR), and XGBoost classifier (XGB), trained using word2vec and universal encoding features. The meta classifier, LR, combines the outputs of the three base classifiers and the features employed by the base classifiers to produce the final output. It is shown that the proposed architecture improves the performance of the widely used single classifiers as well as the standard stacking and classifier ensemble using majority voting. We also present results on the use of various combinations of machine learning classifiers as base classifiers. The experimental results from the proposed architecture indicated an improvement in the performance on all four datasets compared with the standard stacking, base classifiers, and majority voting. Furthermore, on three of these datasets, the proposed architecture outperformed all state-of-the-art systems.
Source: crossref · Quality: baseline

Research context

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

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

Affiliations

Department of Applied Mathematics & Computer Sciences, Faculty of Arts and Sciences, Eastern Mediterranean University, Via Mersin 10, Famagusta 99628, North Cyprus, Turkey

Department of Information Technology, School of Computing and Technology, Eastern Mediterranean University, Via Mersin 10, Famagusta 99628, North Cyprus, Turkey

References (38)

Show source-provided references
1. Sachdeva, J., Chaudhary, K.K., Madaan, H., and Meel, P. (2021, January 25–27). Text based hatespeech analysis. Proceedings of the International Conference Artifitial Intellegent Smart System (ICAIS), Coimbatore, India.10.1109/ICAIS50930.2021.9396013 ↗
2. Ibrohim, M.O., and Budi, I. (2019, January 3). Multi-label hate speech and abusive language detection in Indonesian Twitter. Proceedings of the 3rd Workshop Abusive Language Online, Florence, Italy.10.18653/v1/W19-3506 ↗
3. Graff, M., Miranda-Jiménez, S., Tellez, E., and Ochoa, D.A. (2019, January 6–7). INGEOTEC at SemEval-2019 task 5 and task 6: A genetic programming approach for text classification. Proceedings of the 13th International Workshop Semantic Evaluation, Minneapolis, MN, USA.10.18653/v1/S19-2114 ↗
4. A Framework for Hate Speech Detection Using Deep Convolutional Neural Network10.1109/ACCESS.2020.3037073 ↗
5. Mohapatra, S.K., Prasad, S., Bebarta, D.K., Das, T.K., Srinivasan, K., and Hu, Y.-C. (2021). Automatic Hate Speech Detection in English-Odia Code Mixed Social Media Data Using Machine Learning Techniques. Appl. Sci., 11.10.3390/app11188575 ↗
6. Waseem, Z., and Hovy, D. (2016, January 13–15). Hateful symbols or hateful people? Predictive features for hate speech detection on twitter. Proceedings of the NAACL Student Research Workshop, San Diego, CA, USA.10.18653/v1/N16-2013 ↗
7. 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 International AAAI Conference on Web and Social Media, Montreal, QC, Canada. Available online: https://ojs.aaai.org/index.php/ICWSM/article/view/14955.
8. A dataset and preliminaries study for abusive language detection in Indonesian social media10.1016/j.procs.2018.08.169 ↗
9. Indurthi, V., Syed, B., Shrivastava, M., Chakravartula, N., Gupta, M., and Varma, V. (2019, January 6–7). Fermi at semeval-2019 task 5: Using sentence embeddings to identify hate speech against immigrants and women in twitter. Proceedings of the 13th International Workshop on Semantic Evaluation, Minneapolis, MN, USA.10.18653/v1/S19-2009 ↗
10. Stacked generalization10.1016/S0893-6080(05)80023-1 ↗
11. Classifier ensembles: Select real-world applications10.1016/j.inffus.2007.07.002 ↗
12. (2021, July 15). Kaggle. Available online: http://kaggle.com.
13. 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 ↗
14. Aria, N., Vermeer, F., Wiltvank, G., and Goot, R. (2019, January 6–7). Sthruggle at SemEval-2019 Task 5: An ensemble approach to hate speech detection. Proceedings of the 13th International Workshop on Semantic Evaluation, Minneapolis, MN, USA.
15. Kokatnoor, S.A., and Krishnan, B. (2020, January 26). Twitter hate speech detection using stacked weighted ensemble (SWE) model. Proceedings of the 2020 Fifth International Conference on Research in Computational Intelligence and Communication Networks (ICRCICN) 2020, Bangalore, India.10.1109/ICRCICN50933.2020.9296199 ↗
16. Gao, L., and Huang, R. (2017). Detecting online hate speech using context aware models. arXiv, Available online: https://aclanthology.org/2020.lrec-1.758.10.26615/978-954-452-049-6_036 ↗
17. 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 ↗
18. Zimmerman, S., Kruschwitz, U., and Fox, C. (2018, January 7–12). Improving hate speech detection with deep learning ensembles. Proceedings of the Eleventh International Conference on Language Resources and Evaluation, Miyazaki, Japan.
19. Zhang, Z., Robinson, D., and Tepper, J. (2018, January 3–7). Detecting hate speech on twitter using a convolution-gru based deep neural network. Proceedings of the European Semantic Web Conference, Anissaras, Crete, Greece.10.1007/978-3-319-93417-4_48 ↗
20. A survey of Twitter research: Data model, graph structure, sentiment analysis and attacks10.1016/j.eswa.2020.114006 ↗
21. From word to sense embeddings: A survey on vector representations of meaning10.1613/jair.1.11259 ↗
22. Cer, D., Yang, Y., Kong, S.Y., Hua, N., Limtiaco, N., John, R.S., Constant, N., Guajardo-Céspedes, M., Yuan, S., and Tar, C. (2018). Universal sentence encoder. arXiv.10.18653/v1/D18-2029 ↗
23. Kim, Y. (2014, January 25–29). Convolutional neural networks for sentence classification. Proceedings of the EMNLP, Doha, Qatar.10.3115/v1/D14-1181 ↗
24. Distance metric learning for large margin nearest neighbor classification
25. Bagging predictors10.1023/A:1010950718922 ↗
26. A-stacking and A-bagging: Adaptive versions of ensemble learning algorithms for spoof fingerprint detection10.1016/j.eswa.2019.113160 ↗
27. Nlp@ uit: Exploring feature engineer and ensemble model for hate speech detection at vlsp 2019
28. Verma, G., Chhaya, N., and Vinay, V. (2020). To target or not to target: Identification and analysis of abusive text using ensemble of classifiers. arXiv.
29. Abuzayed, A., and Elsayed, T. (2020, January 11–16). Quick and simple approach for detecting hate speech in Arabic tweets. Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools, with a Shared Task on Offensive Language Detection, Marseille, France.
30. Developing an online hate classifier for multiple social media platforms10.1186/s13673-019-0205-6 ↗
31. SMOTE: Synthetic minority over-sampling technique10.1613/jair.953 ↗
32. Web spam classification method based on deep belief networks10.1016/j.eswa.2017.12.016 ↗
33. Nobata, C., Tetreault, J., Thomas, A., Mehdad, Y., and Chang, Y. (2016, January 11–15). Abusive language detection in online user content. Proceedings of the 25th International Conference on World Wide Web, Montréal, QC, Canada.10.1145/2872427.2883062 ↗
34. de Gibert, O., Perez, N., García-Pablos, A., and Cuadros, M. (2018, January 31). Hate speech dataset from a white supremacy forum. Proceedings of the 2nd Workshop on Abusive Language Online, Brussels, Belgium.10.18653/v1/W18-5102 ↗
35. Fortuna, P., and Nunes, S. (2019, January 6–7). Stop PropagHate at SemEval-2019 Tasks 5 and 6: Are abusive language classification results reproducible?. Proceedings of the 13th International Workshop on Semantic Evaluation, Minneapolis, MN, USA.10.18653/v1/S19-2131 ↗
36. Comparing machine learning classifiers in potential distribution modelling10.1016/j.eswa.2010.10.031 ↗
37. Basile, V., Bosco, C., Fersini, E., Debora, N., Patti, V., Pardo, F.M.R., Rosso, P., and Sanguinetti, M. (2019, January 6). Semeval-2019 task 5: Multilingual detection of hate speech against immigrants and women in Twitter. Proceedings of the 13th International Workshop on Semantic Evaluation, Minneapolis, MN, USA.10.18653/v1/S19-2007 ↗
38. A primer on neural network models for natural language processing10.1613/jair.4992 ↗