Hybrid Machine Learning and Deep Learning Approaches for Insult Detection in Roman Urdu Text

被引:1
作者
Hussain, Nisar [1 ]
Qasim, Amna [1 ]
Mehak, Gull [1 ]
Kolesnikova, Olga [1 ]
Gelbukh, Alexander [1 ]
Sidorov, Grigori [1 ]
机构
[1] Inst Politecn Nacl IPN, Ctr Invest Comp CIC, Av Juan de Dios Batiz S-N, Mexico City 07320, Mexico
关键词
deep learning; machine learning; support vector machine;
D O I
10.3390/ai6020033
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Thisstudy introduces a new model for detecting insults in Roman Urdu, filling an important gap in natural language processing (NLP) for low-resource languages. The transliterated nature of Roman Urdu also poses specific challenges from a computational linguistics perspective, including non-standardized grammar, variation in spellings for the same word, and high levels of code-mixing with English, which together make automated insult detection for Roman Urdu a highly complex problem. To address these problems, we created a large-scale dataset with 46,045 labeled comments from social media websites such as Twitter, Facebook, and YouTube. This is the first dataset for insult detection for Roman Urdu that was created and annotated with insulting and non-insulting content. Advanced preprocessing methods such as text cleaning, text normalization, and tokenization are used in the study, as well as feature extraction using TF-IDF through unigram (Uni), bigram (Bi), trigram (Tri), and their unions: Uni+Bi+Trigram. We compared ten machine learning algorithms (logistic regression, support vector machines, random forest, gradient boosting, AdaBoost, and XGBoost) and three deep learning topologies (CNN, LSTM, and Bi-LSTM). Different models were compared, and ensemble ones were proven to give the highest F1-scores, reaching 97.79%, 97.78%, and 95.25%, respectively, for AdaBoost, decision tree, TF-IDF, and Uni+Bi+Trigram configurations. Deeper learning models also performed on par, with CNN achieving an F1-score of 97.01%. Overall, the results highlight the utility of n-gram features and the combination of robust classifiers in detecting insults. This study makes strides in improving NLP for Roman Urdu, yet further research has established the foundation of pre-trained transformers and hybrid approaches; this could overcome existing systems and platform limitations. This study has conscious implications, mainly on the construction of automated moderation tools to achieve safer online spaces, especially for South Asian social media websites.
引用
收藏
页数:16
相关论文
共 34 条
  • [1] Schmidt A., Wiegand M., A survey on hate speech detection using natural language processing, Proceedings of the 5th International Workshop on Natural Language Processing for Social Media, (2017)
  • [2] Fortuna P., Nunes S., A survey on automatic detection of hate speech in text, ACM Comput. Surv, 51, (2018)
  • [3] Mubarak H., Darwish K., Magdy W., Abusive language detection on Arabic social media, Proceedings of the ACM Web Science Conference
  • [4] Zhang Z., Robinson D., Tepper J., Detecting hate speech on Twitter using a convolution-gru based deep neural network, Proceedings of the Spring Symposium on Social Media
  • [5] Badjatiya P., Gupta S., Gupta M., Varma V., Deep learning for hate speech detection in tweets, Proceedings of the WWW ’17 Companion: Proceedings of the 26th International Conference on World Wide Web Companion
  • [6] Mikolov T., Chen K., Corrado G., Dean J., Distributed representations of words and phrases and their compositionality, Advances in Neural Information Processing Systems (NIPS), Proceedings of the 27th Annual Conference on Neural Information Processing Systems 2013, Lake Tahoe, NV, USA, 5–10 December 2013, (2013)
  • [7] Shaheen M., Awan S.M., Hussain N., Gondal Z.A., Sentiment analysis on mobile phone reviews using supervised learning techniques, Int. J. Mod. Educ. Comput. Sci, 11, pp. 32-43, (2019)
  • [8] Sigurbergsson G.F., Derczynski L., Offensive language and hate speech detection for Danish, arXiv
  • [9] Zampieri M., Malmasi S., Nakov P., Rosenthal S., Farra N., Kumar R., SemEval-2019 Task 6: Identifying and categorizing offensive language in social media (OffensEval), Proceedings of the 13th International Workshop on Semantic Evaluation
  • [10] Razavi A.H., Inkpen D., Uritsky S., Matwin S., Offensive language detection using multi-level classification, Advances in Artificial Intelligence, Proceedings of the 23rd Canadian Conference on Artificial Intelligence, Ottawa, ON, Canada, 31 May–2 June 2010, pp. 1-11, (2010)