Arabic Hate Speech Detection Using Deep Recurrent Neural Networks
Source abstract
Abstract
With the vast number of comments posted daily on social media and other platforms, manually monitoring internet activity for possible national security risks or cyberbullying is an impossible task. However, with recent advances in machine learning (ML), the automatic monitoring of such posts for possible national security risks and cyberbullying becomes feasible. There is still the issue of privacy on the internet; however, in this study, only the technical aspects of designing an automated system that could monitor and detect hate speech in the Arabic language were targeted, which many companies, such as Facebook, Twitter, and others, could use to prevent hate speech and cyberbullying. For this task, a unique dataset consisting of 4203 comments classified into seven categories, including content against religion, racist content, content against gender equality, violent content, offensive content, insulting/bullying content, normal positive comments, and normal negative comments, was designed. The dataset was extensively preprocessed and labeled, and its features were extracted. In addition, the use of deep recurrent neural networks (RNNs) was proposed for the classification and detection of hate speech. The proposed RNN architecture, called DRNN-2, consisted of 10 layers with 32 batch sizes and 50 iterations for the classification task. Another model consisting of five hidden layers, called DRNN-1, was used only for binary classification. Using the proposed models, a recognition rate of 99.73% was achieved for binary classification, 95.38% for the three classes of Arabic comments, and 84.14% for the seven classes of Arabic comments. This accuracy was high for the classification of a complex language, such as Arabic, into seven different classes. The achieved accuracy was higher than that of similar methods reported in the recent literature, whether for binary classification, three-class classification, or seven-class classification, as discussed in the literature review section.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Hate Speech and Cyberbullying Detection · Internet Traffic Analysis and Secure E-voting · Advanced Malware Detection Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Management Information System Department, Prince Mohammad bin Fahd University, Al-Khobar 34754, Saudi Arabia
References (28)
Show source-provided references
1. Bashar, A., Latif, G., Ben Brahim, G., Mohammad, N., and Alghazo, J. (2021). COVID-19 Pneumonia Detection Using Optimized Deep Learning Techniques. Diagnostics, 11.10.3390/diagnostics11111972 ↗
2. Lung Opacity Pneumonia Detection with Improved Residual Networks
3. Recent advancements in Fuzzy C-means based techniques for brain MRI Segmentation10.2174/1573405616666210104111218 ↗
4. An overview of deep learning in medical imaging focusing on MRI10.1016/j.zemedi.2018.11.002 ↗
5. Deep Learning-based Text Classification: A Comprehensive Review10.1145/3439726 ↗
6. Latif, G., Bouchard, K., Maitre, J., Back, A., and Bédard, L.P. (2022). Deep-Learning-Based Automatic Mineral Grain Segmentation and Recognition. Minerals, 12.10.3390/min12040455 ↗
7. Enhanced numeral recognition for handwritten multi-language numerals using a fuzzy set-based decision mechanism10.18178/ijmlc.2020.10.1.905 ↗
8. Gambäck, B., and Sikdar, U.K. (2017, January 4). Using convolutional neural networks to classify hate speech. Proceedings of the First Workshop on Abusive Language Online, Vancouver, BC, Canada.10.18653/v1/W17-3013 ↗
9. Malmasi, S., and Zampieri, M. (2017). Detecting hate speech in social media. arXiv.10.26615/978-954-452-049-6_062 ↗
10. 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, Venice, Italy.
11. 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.
12. Robinson, D., Zhang, Z., and Tepper, J. (2018). Hate speech detection on Twitter: Feature engineering vs feature selection. Proceedings of the European Semantic Web Conference, Heraklion, Greece, 3–7 June 2018, Springer.10.1007/978-3-319-98192-5_9 ↗
13. Alfina, I., Mulia, R., Fanany, M.I., and Ekanata, Y. (2017). Hate speech detection in the Indonesian language: A dataset and preliminary study. Proceedings of the International Conference on Advanced Computer Science and Information Systems (ICACSIS), Yogyakarta, Indonesia, 28–29 October 2017, IEEE.10.1109/ICACSIS.2017.8355039 ↗
14. Ensemble method for Indonesian twitter hate speech detection
15. Mubarak, H., Rashed, A., Darwish, K., Samih, Y., and Abdelali, A. (2020). Arabic offensive language on Twitter: Analysis and experiments. arXiv.
16. Omar, A., Mahmoud, T.M., and Abd-El-Hafeez, T. (2020). Comparative performance of machine learning and deep learning algorithms for Arabic hate speech detection in osns. Proceedings of the International Conference on Artificial Intelligence and Computer Vision, Cairo, Egypt, 8–10 April 2020, Springer.10.1007/978-3-030-44289-7_24 ↗
17. Abdellatif, M., and Elgammal, A. (2020, January 11–16). Offensive language detection in Arabic using ULMFiT. Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools, with a Shared Task on Offensive Language Detection, Marseille, France.
18. Khalifa, M., and Hussein, N. (2019). Ensemble Learning for Irony Detection in Arabic Tweets. FIRE (Working Notes), CEUR-WS.
19. Burnap, P., and Williams, M.L. (2014, January 25–26). Hate speech, machine classification and statistical modeling of information flow on Twitter: Interpretation and communication for policy decision making. Proceedings of the Internet, Policy & Politics, Oxford, UK.
20. Mohaouchane, H., Mourhir, A., and Nikolov, N.S. (2019, January 22–25). Detecting offensive language on Arabic social media using deep learning. Proceedings of the 2019 Sixth International Conference on Social Networks Analysis, Management and Security (SNAMS), Granada, Spain.10.1109/SNAMS.2019.8931839 ↗
21. Hate Speech Detection of Arabic Shorttext
22. Gao, L., and Huang, R. (2017). Detecting online hate speech using context-aware models. arXiv.10.26615/978-954-452-049-6_036 ↗
23. Deep Learning-Based Methods for Sentiment Analysis on Nepali COVID-19-Related Tweets10.1155/2021/2158184 ↗
24. A Hybrid Feature Extraction Method for Nepali COVID-19-Related Tweets Classification10.1155/2022/5681574 ↗
25. Syntax and prejudice: Ethically-charged biases of a syntax-based hate speech recognizer unveiled10.7717/peerj-cs.859 ↗
26. Ranaldi, L., Fallucchi, F., and Zanzotto, F.M. (2021). Dis-Cover AI Minds to Preserve Human Knowledge. Future Internet, 14.10.3390/fi14010010 ↗
27. Hu, W., Gu, Z., Xie, Y., Wang, L., and Tang, K. (2019, January 23–25). Chinese Text Classification Based on Neural Networks and Word2vec. Proceedings of the 2019 IEEE Fourth International Conference on Data Science in Cyberspace (DSC), Hangzhou, China.10.1109/DSC.2019.00050 ↗
28. Reducing the Effect of Imbalance in Text Classification Using SVD and GloVe with Ensemble and Deep Learning10.31577/cai_2022_1_98 ↗