A Deep Learning Approach for Automatic Hate Speech Detection in the Saudi Twittersphere
Source abstract
Abstract
With the rise of hate speech phenomena in the Twittersphere, significant research efforts have been undertaken in order to provide automatic solutions for detecting hate speech, varying from simple machine learning models to more complex deep neural network models. Despite this, research works investigating hate speech problem in Arabic are still limited. This paper, therefore, aimed to investigate several neural network models based on convolutional neural network (CNN) and recurrent neural network (RNN) to detect hate speech in Arabic tweets. It also evaluated the recent language representation model bidirectional encoder representations from transformers (BERT) on the task of Arabic hate speech detection. To conduct our experiments, we firstly built a new hate speech dataset that contained 9316 annotated tweets. Then, we conducted a set of experiments on two datasets to evaluate four models: CNN, gated recurrent units (GRU), CNN + GRU, and BERT. Our experimental results in our dataset and an out-domain dataset showed that the CNN model gave the best performance, with an F1-score of 0.79 and area under the receiver operating characteristic curve (AUROC) of 0.89.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Hate Speech and Cyberbullying Detection · Internet Traffic Analysis and Secure E-voting · Bullying, Victimization, and Aggression
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Information Technology, College of Computer and Information Sciences, King Saud University, Riyadh P.O Box 12371, Saudi Arabia
References (49)
Show source-provided references
1. Al-Hassan, A., and Al-Dossari, H. (2019). Detection of Hate Speech in Social Networks: A Survey on Multilingual Corpus. Proceedings of the Computer Science & Information Technology (CS & IT), Dubai, UAE, 23–24 February 2019, AIRCC Publishing Corporation.10.5121/csit.2019.90208 ↗
2. Schmidt, A., and Wiegand, M. (2017). A Survey on Hate Speech Detection using Natural Language Processing. Proceedings of the Fifth International Workshop on Natural Language Processing for Social Media, Valencia, Spain, 3 April 2017, Association for Computational Linguistics.10.18653/v1/W17-1101 ↗
3. Waseem, Z., and Hovy, D. (2016). Hateful Symbols or Hateful People? Predictive Features for Hate Speech Detection on Twitter. Proceedings of the NAACL Student Research Workshop, San Diego, CA, USA, 12–17 June 2016, Association for Computational Linguistics.10.18653/v1/N16-2013 ↗
4. Davidson, T., Warmsley, D., Macy, M., and Weber, I. (2017). Automated Hate Speech Detection and the Problem of Offensive Language. arXiv.10.1609/icwsm.v11i1.14955 ↗
5. Jaki, S., and De Smedt, T. (2018). Right-wing German hate speech on Twitter: Analysis and automatic detection. airXiv.
6. A Survey on Automatic Detection of Hate Speech in Text10.1145/3232676 ↗
7. Park, J.H., and Fung, P. (2017). One-step and Two-step Classification for Abusive Language Detection on Twitter. Proceedings of the First Workshop on Abusive Language Online, Vancouver, BC, Canada, 4 August 2017, Association for Computational Linguistics.10.18653/v1/W17-3006 ↗
8. Gambäck, B., and Sikdar, U.K. (2017). Using Convolutional Neural Networks to Classify Hate-Speech. Proceedings of the First Workshop on Abusive Language Online, Vancouver, BC, Canada, 4 August 2017, Association for Computational Linguistics.10.18653/v1/W17-3013 ↗
9. Badjatiya, P., Gupta, S., Gupta, M., and Varma, V. (2017). Deep Learning for Hate Speech Detection in Tweets. Proceedings of the 26th International Conference on World Wide Web Companion, Perth, Australia, 3 April 2017, International World Wide Web Conferences Steering Committee.10.1145/3041021.3054223 ↗
10. Effective hate-speech detection in Twitter data using recurrent neural networks10.1007/s10489-018-1242-y ↗
11. Gangemi, A., Navigli, R., Vidal, M.-E., Hitzler, P., Troncy, R., Hollink, L., Tordai, A., and Alam, M. (2018). Detecting Hate Speech on Twitter Using a Convolution-GRU Based Deep Neural Network. Proceedings of the Semantic Web, Springer International Publishing.10.1007/978-3-319-93417-4 ↗
12. Albadi, N., Kurdi, M., and Mishra, S. (2018). Are they Our Brothers? Analysis and Detection of Religious Hate Speech in the Arabic Twittersphere. Proceedings of the 2018 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM), Barcelona, Spain, 28–31 August 2018, IEEE.10.1109/ASONAM.2018.8508247 ↗
13. Darwish, K., Magdy, W., and Mourad, A. (2012). Language processing for Arabic microblog retrieval. Proceedings of the 21st ACM International Conference on Information and Knowledge Management, Maui, HI, USA, 18–25 May 2012, ACM.10.1145/2396761.2398658 ↗
14. Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2019). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv.
15. Warner, W., and Hirschberg, J. (2012). Detecting Hate Speech on the World Wide Web. Proceedings of the Second Workshop on Language in Social Media, Montreal, QC, Canada, 7 June 2012, Association for Computational Linguistics.
16. Kwok, I., and Wang, Y. (2013, January 14–18). Locate the hate: Detecting tweets against blacks. Proceedings of the Twenty-seventh AAAI Conference on Artificial Intelligence, Washington, DC, USA.10.1609/aaai.v27i1.8539 ↗
17. Djuric, N., Zhou, J., Morris, R., Grbovic, M., Radosavljevic, V., and Bhamidipati, N. (2015). Hate Speech Detection with Comment Embeddings. Proceedings of the 24th International Conference on World Wide Web—WWW ’15 Companion, Florence Italy, 18–22 May 2015, ACM Press.10.1145/2740908.2742760 ↗
18. Nobata, C., Tetreault, J., Thomas, A., Mehdad, Y., and Chang, Y. (2016). Abusive Language Detection in Online User Content. Proceedings of the 25th International Conference on World Wide Web—WWW ’16, Montreal, QC, Canada, 11–15 May 2016, ACM Press.10.1145/2872427.2883062 ↗
19. Bohra, A., Vijay, D., Singh, V., Akhtar, S.S., and Shrivastava, M. (2018). 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, 6 June 2018, Association for Computational Linguistics.10.18653/v1/W18-1105 ↗
20. De Smedt, T., De Pauw, G., and Van Ostaeyen, P. (2018). Automatic detection of online jihadist hate speech. arXiv, preprint.
21. Karan, M., and Šnajder, J. (2018). Cross-Domain Detection of Abusive Language Online. Proceedings of the 2nd Workshop on Abusive Language Online (ALW2), Brussels, Belgium, 31 October–1 November 2018, Association for Computational Linguistics.10.18653/v1/W18-5117 ↗
22. Pamungkas, E.W., and Patti, V. (2019). Cross-domain and Cross-lingual Abusive Language Detection: A Hybrid Approach with Deep Learning and a Multilingual Lexicon. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop, Florence, Italy, 29 July–1 August 2019, Association for Computational Linguistics.10.18653/v1/P19-2051 ↗
23. Magdy, W., Darwish, K., and Weber, I. (2015). #FailedRevolutions: Using Twitter to Study the Antecedents of ISIS Support. arXiv.10.5210/fm.v21i2.6372 ↗
24. Mubarak, H., Darwish, K., and Magdy, W. Abusive Language Detection on Arabic Social Media. Proceedings of the First Workshop on Abusive Language Online, Vancouver, BC, Canada, 4 August 2017.10.18653/v1/W17-3008 ↗
25. Towards Accurate Detection of Offensive Language in Online Communication in Arabic10.1016/j.procs.2018.10.491 ↗
26. Mulki, H., Haddad, H., Bechikh Ali, C., and Alshabani, H. (2019). L-HSAB: A Levantine Twitter Dataset for Hate Speech and Abusive Language. Proceedings of the Third Workshop on Abusive Language Online, Florence, Italy, 1 August 2019, Association for Computational Linguistics.10.18653/v1/W19-3512 ↗
27. (2020, November 18). Tweepy. Available online: https://www.tweepy.org/.
28. (2020, November 18). Confidence to Deploy AI with World-Class Training Data. Available online: https://appen.com/.
29. (2020, November 23). rshalan raghadsh/Arabic-Hate-speech. Available online: https://github.com/raghadsh/Arabic-Hate-speech.
30. Al-Humoud, S., Al-Twairesh, N., Altuwaijri, M., and Almoammar, A. (2016, January 27). Arabic Spam Detection in Twitter. Proceedings of the 2nd Workshop on Arabic Corpora and Processing Tools 2016 Theme: Social Media, Portorož, Slovenia.
31. Albadi, N. (2020, November 23). nuhaalbadi/Arabic_hatespeech, Available online: https://github.com/nuhaalbadi/Arabic_hatespeech.
32. Incorporating Emoji Descriptions Improves Tweet Classification
33. (2020, November 18). Demoji PyPI. Available online: https://pypi.org/project/demoji/.
34. (2020, November 18). Emoji Keyboard/Display Test Data for UTS #51. Available online: http://unicode.org/Public/emoji/12.0/emoji-test.txt.
35. (2020, November 18). Cloud Translation Documentation|Google Cloud. Available online: https://cloud.google.com/translate/docs/.
36. Abdelali, A., Darwish, K., Durrani, N., and Mubarak, H. (2016). Farasa: A Fast and Furious Segmenter for Arabic. Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Demonstrations, San Diego, CA, USA, 2–4 June 2016, Association for Computational Linguistics.10.18653/v1/N16-3003 ↗
37. Word-embedding-based pseudo-relevance feedback for Arabic information retrieval
38. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013). Efficient Estimation of Word Representations in Vector Space. arXiv.
39. Kim, Y. (2014). Convolutional Neural Networks for Sentence Classification. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar, 25–29 October 2014, Association for Computational Linguistics.10.3115/v1/D14-1181 ↗
40. (2020, November 18). Keras: The Python Deep Learning API. Available online: https://keras.io/.
41. (2020, November 18). Huggingface/Transformers: Transformers: State-of-the-Art Natural Language Processing for Pytorch and TensorFlow 2.0. Available online: https://github.com/huggingface/transformers.
42. (2020, November 18). Google Colaboratory. Available online: https://colab.research.google.com/notebooks/intro.ipynb#recent=true.
43. Staab, S., Koltsova, O., and Ignatov, D.I. A Comparison of Classical Versus Deep Learning Techniques for Abusive Content Detection on Social Media Sites. Proceedings of the Social Informatics, St. Petersburg, Russia, 25–28 September 2018.
44. (2020, November 18). Scikit-Learn: Machine Learning in Python—Scikit-Learn 0.23.2 Documentation. Available online: https://scikit-learn.org/stable/.
45. Surface and Deep Features Ensemble for Sentiment Analysis of Arabic Tweets10.1109/ACCESS.2019.2924314 ↗
46. Kaji, N., and Kitsuregawa, M. (2007, January 28–30). Building Lexicon for Sentiment Analysis from Massive Collection of HTML Documents. Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP-CoNLL), Prague, Czech Republic.
47. Peters, M.E., Neumann, M., Iyyer, M., Gardner, M., Clark, C., Lee, K., and Zettlemoyer, L. (2018). Deep contextualized word representations. arXiv.10.18653/v1/N18-1202 ↗
48. Joulin, A., Grave, E., Bojanowski, P., and Mikolov, T. (2016). Bag of Tricks for Efficient Text Classification. arXiv.10.18653/v1/E17-2068 ↗
49. Cer, D., Yang, Y., Kong, S., Hua, N., Limtiaco, N., John, R.S., Constant, N., Guajardo-Cespedes, M., Yuan, S., and Tar, C. (2018). Universal Sentence Encoder. arXiv.10.18653/v1/D18-2029 ↗