JNACSISSN:2582-3817

Identification and Blocking of Hate Speech in English-Hausa Code-mixed Language on Facebook: A Hybrid Deep Learning Framework

Abstract

The rise of social media platforms, especially Facebook, has revolutionized communication and interaction worldwide. However, the unrestricted nature of these platforms has also given rise to the proliferation of hate speech, posing significant challenges to maintaining a safe and inclusive online environment. In this paper, a novel framework using hybrid deep learning models was proposed for the detection and blocking of hate speech on Facebook English-Hausa code-mixed language. The proposed hybrid deep learning model combines the strengths of convolutional neural networks (CNNs) and recurrent neural networks (RNNs) to form a Convolutional – Long Short-Term Memory (C-LSTM) with glove word embeddings to efficiently identify and block hate speech content. The datasets used in this work were collected from Facebook and were labeled manually as hate speech or non-hate speech. This paper also analyses the model's architecture, data preprocessing techniques, and the evaluation metrics presented, hence demonstrating its effectiveness in real-world scenarios where the experimental results show that the hybrid C-LSTM model generated 0.90 accuracy which outperformed the CNN, LSTM, and the baseline-models. The findings in this paper suggest that hate speech in Facebook English-Hausa code-mixed language can be detected and blocked instantly before posting.

References

  • H. Simon, B.Y. Baha, E.J. Garba, “Trends in Machine Learning on Automatic Detection of Hate Speech on Social Media Platforms: A Systematic Review”, FUW Trends in Science & Technology Journal, vol. 7, no. 1, pp. 1 – 16, e-ISSN: 24085162, 2022a.
  • M. ElSherie, V. Kulkarni, D. Nguyen, W. YangWang, E. Belding, “Hate Lingo: A Target-Based Linguistic Analysis of Hate Speech in Social Media”, In Proceedings of the Twelfth International AAAI Conference on Web and Social Media, pp. 42-51, 2018.
  • M. Anand, K.B. Sahay, M.A. Ahmed, D. Sultan, R.R. Chandan, B. Singh, “Processing in Computation for Offensive Language Detection in Online Social Networks by Feature Selection and Ensemble Classification Techniques”, Elsevier: Theoretical Computer Science, vol. 943, no. 17, pp. 203-218, 2023.
  • P.N. Fale, K.K. Goyal, K. Shivani, “A Hybrid Deep Learning Approach for Abusive Text Detection”, AIP Conference Proceedings, vol. 2753, no. 1, 2023.
  • P. Kar, S. Debbarma, “Multilingual Hate Speech Detection Sentimental Analysis on Social Media Platforms using Optimal Feature Extraction and Hybrid Diagonal Gated Recurrent Neural Network”, Springer - Journal of Supercomputing, 2023.
  • S. Khan, M. Fazil, V.K. Sejwal, M.A. Alshara, R.M. Alotaibi, A. Kamal, A.R. Baig, “BiCHAT: BiLSTM with Deep CNN and Hierarchical Attention for Hate Speech Detection” Elsevier Journal of King Saud University - Computer and Information Sciences, vol. 34, pp. 4335-4344, 2022.
  • D.K. Sharma, B. Singh, S. Agarwal, H. Kim, R. Sharma, “Sarcasm Detection over Social Media Platforms using Hybrid Auto-Encoder-Based Model”, MDPI Electronics, vol. 11, no. 2844, 2022.
  • T. Ghosh, A.A.K. Chowdhury, M.H.A. Banna, M.J.A Nahian, M.S. Kaiser, M. Mahmud, “A Hybrid Deep Learning Approach to Detect Bangla Social Media Hate Speech”, In Proceedings of International Conference on Fourth Industrial Revolution and Beyond, Springer, Singapore, vol. 437, 2022.
  • B.A.H. Murshed, J. Abawajy, S. Mallappa, M.A.N. Saif, H.D.E. Al-Ariki, “DEA-RNN: A Hybrid Deep Learning Approach for Cyberbullying Detection in Twitter Social Media Platform”, IEEE Access, vol. 10, pp. 25857-25871, 2022.
  • N. Aulia, I. Budi, “Hate Speech Detection on Indonesian Long Text Documents Using Machine Learning Approach”, Association for Computing Machinery (ACM), pp. 164-169, 2019.
  • A. Rodriguez, C. Argueta, Y. Chen, “Automatic Detection of Hate Speech on Facebook Using Sentiment and Emotion Analysis”, IEEE, pp. 169-174, 2019.
  • K. Sreelakshmi, B. Premjith, K.P. Soman, “Detection of Hate Speech Text in Hindi-English Code-mixed Data”, In Procedia Computer Science, vol. 171, pp. 737-744, 2020.
  • A. Abuzayed, T. Elsayed, “Quick and Simple Approach for Detecting Hate Speech in Arabic Tweets”, In Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools, with a shared Task on Offensive Language Detection, pp. 109-114, 2020.
  • P. Fortuna, J. Ferreira, L. Pires, G. Routar, S. Nunes, “Merging Datasets for Aggressive text Identification”, In Proceedings of the First Workshop on Trolling, Aggression and Cyberbullying, pp. 128–139, 2018.
  • A.K. Das, A. Al-Asif, A. Paul, M.N. Hossain, “Bangla Hate Speech Detection on Social Media Using Attention- based Recurrent Neural Network”, Journal of Intelligent Systems, vol. 30, pp. 578–591, 2021.
  • S. Modha, P. Majumder, T. Mandl, C. Mandalia, “Detecting and Visualizing Hate Speech in Social Media: A Cyber Watchdog for Surveillance”, Expert Systems with Applications, vo. 113725, 2020.
  • G.I. Sigurbergsson, L. Derczynski, “Offensive language and Hate Speech Detection for Danish”, , 2019.
  • F. Del-Vigna, A. Cimino, F. Dell’Orletta, M. Petrocchi, M. Tesconi, “Hate Me, Hate Me Not: Hate Speech Detection on Facebook”, In Proceedings of the 1st Italian Conference on Cybersecurity”, pp. 86–95, 2017.
  • C. Guggilla, T. Miller, I. Gurevych, “CNN- and LSTM-based Claim Classification in Online User Comments”, In Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, Osaka, Japan, pp. 2740–2751, 2016.
  • C. Bosco, F. Dell’Orletta, F. Poletto, M. Sanguinetti, M. Tesconi, “Overview of the EVALITA 2018 Hate Speech Detection Task”, 2018
  • F. Almeida, G. Xexeo, “Word Embeddings: A Survey. Computation and Language”, Journal of Computation and Language, pp. 1–10, 2019.
  • V.Q. Lee, T. Mikolov “Distributed Representations of Sentences and Documents”, Computation and Language, 2014.
  • L.S. Altin, A. Bravo, H. Saggion, “LaSTUS/TALN at SemEval-2019 Task 6: Identification and Categorization of Offensive Language in Social Media with Attention-based Bi-LSTM model, In Proceedings of the 13th International Workshop on Semantic Evaluation, Minneapolis, Minnesota, USA, pp. 672–677, 2019.
  • A. Umar, S. A. Bashir, L.C. Ochei, and I. A. Adeyanju, “Profiling Inappropriate Users' Tweets Using Deep Long Short-Term Memory (LSTM) Neural Network”, i-manager’s Journal on Pattern Recognition, vol. 5, no.4, pp. 27- 43, 2019.
  • A. Umar, S. A. Bashir, L.C. Ochei, and I. A. Adeyanju, “Profiling Inappropriate Users' Tweets Using Deep Long Short-Term Memory (LSTM) Neural Network”, i-manager’s Journal on Pattern Recognition, vol. 5, no.4, pp. 27- 43, 2019.
  • A. Hassan, A. Mahmood, “Deep learning approach for sentiment analysis of short texts”, In Proceedings of the 3rd international conference on control, automation, and robotics (ICCAR-2017), pp. 705–710, 2017.
  • H. Simon, B.Y. Baha, E.J. Garba, “A Multi-platform Approach Using Hybrid Deep Learning Models for Automatic Detection of Hate Speech on Social Media”, Bima Journal of Science and Technology, vol. 6, no. 2, pp. 2536-6041, 2022b.
  • P. Kapil, A. Ekbal, “A Deep Neural Network-Based Multi-Task Learning Approach to Hate Speech Detection”, Knowledge-Based Systems. Pp. 106458, 2020.
  • M. Grandini, E. Bagli, G. Visani, “Metrics for Multi-Class Classification: An Overview”, Statistics Machine Learning, 2020.
  • Facebook, “Community Standards”, 2019. https://www.facebook.com/communitystandards/objectionable_content.