Cargando…
Identification of offensive language in Urdu using semantic and embedding models
Automatic identification of offensive/abusive language is very necessary to get rid of unwanted behavior. However, it is more challenging to generalize the solution due to the different grammatical structures and vocabulary of each language. Most of the prior work targeted western languages, however...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
PeerJ Inc.
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10280260/ https://www.ncbi.nlm.nih.gov/pubmed/37346307 http://dx.doi.org/10.7717/peerj-cs.1169 |
_version_ | 1785060759600889856 |
---|---|
author | Hussain, Sajid Malik, Muhammad Shahid Iqbal Masood, Nayyer |
author_facet | Hussain, Sajid Malik, Muhammad Shahid Iqbal Masood, Nayyer |
author_sort | Hussain, Sajid |
collection | PubMed |
description | Automatic identification of offensive/abusive language is very necessary to get rid of unwanted behavior. However, it is more challenging to generalize the solution due to the different grammatical structures and vocabulary of each language. Most of the prior work targeted western languages, however, one study targeted a low-resource language (Urdu). The prior study used basic linguistic features and a small dataset. This study designed a new dataset (collected from popular Pakistani Facebook pages) containing 7,500 posts for offensive language detection in Urdu. The proposed methodology used four types of feature engineering models: three are frequency-based and the fourth one is the embedding model. Frequency-based are either determined by the term frequency-inverse document frequency (TF-IDF) or bag-of-words or word n-gram feature vectors. The fourth is generated by the word2vec model, trained on the Urdu embeddings using a corpus of 196,226 Facebook posts. The experiments demonstrate that the stacking-based ensemble model with word2vec shows the best performance as a standalone model by achieving 88.27% accuracy. In addition, the wrapper-based feature selection method further improves performance. The hybrid combination of TF-IDF, bag-of-words, and word2vec feature models achieved 90% accuracy and 97% AUC. In addition, it outperformed the baseline with an improvement of 3.55% in accuracy, 3.68% in the recall, 3.60% in f1-measure, 3.67% in precision, and 2.71% in AUC. The findings of this research provide practical implications for commercial applications and future research. |
format | Online Article Text |
id | pubmed-10280260 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | PeerJ Inc. |
record_format | MEDLINE/PubMed |
spelling | pubmed-102802602023-06-21 Identification of offensive language in Urdu using semantic and embedding models Hussain, Sajid Malik, Muhammad Shahid Iqbal Masood, Nayyer PeerJ Comput Sci Artificial Intelligence Automatic identification of offensive/abusive language is very necessary to get rid of unwanted behavior. However, it is more challenging to generalize the solution due to the different grammatical structures and vocabulary of each language. Most of the prior work targeted western languages, however, one study targeted a low-resource language (Urdu). The prior study used basic linguistic features and a small dataset. This study designed a new dataset (collected from popular Pakistani Facebook pages) containing 7,500 posts for offensive language detection in Urdu. The proposed methodology used four types of feature engineering models: three are frequency-based and the fourth one is the embedding model. Frequency-based are either determined by the term frequency-inverse document frequency (TF-IDF) or bag-of-words or word n-gram feature vectors. The fourth is generated by the word2vec model, trained on the Urdu embeddings using a corpus of 196,226 Facebook posts. The experiments demonstrate that the stacking-based ensemble model with word2vec shows the best performance as a standalone model by achieving 88.27% accuracy. In addition, the wrapper-based feature selection method further improves performance. The hybrid combination of TF-IDF, bag-of-words, and word2vec feature models achieved 90% accuracy and 97% AUC. In addition, it outperformed the baseline with an improvement of 3.55% in accuracy, 3.68% in the recall, 3.60% in f1-measure, 3.67% in precision, and 2.71% in AUC. The findings of this research provide practical implications for commercial applications and future research. PeerJ Inc. 2022-12-12 /pmc/articles/PMC10280260/ /pubmed/37346307 http://dx.doi.org/10.7717/peerj-cs.1169 Text en ©2022 Hussain et al. https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ Computer Science) and either DOI or URL of the article must be cited. |
spellingShingle | Artificial Intelligence Hussain, Sajid Malik, Muhammad Shahid Iqbal Masood, Nayyer Identification of offensive language in Urdu using semantic and embedding models |
title | Identification of offensive language in Urdu using semantic and embedding models |
title_full | Identification of offensive language in Urdu using semantic and embedding models |
title_fullStr | Identification of offensive language in Urdu using semantic and embedding models |
title_full_unstemmed | Identification of offensive language in Urdu using semantic and embedding models |
title_short | Identification of offensive language in Urdu using semantic and embedding models |
title_sort | identification of offensive language in urdu using semantic and embedding models |
topic | Artificial Intelligence |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10280260/ https://www.ncbi.nlm.nih.gov/pubmed/37346307 http://dx.doi.org/10.7717/peerj-cs.1169 |
work_keys_str_mv | AT hussainsajid identificationofoffensivelanguageinurduusingsemanticandembeddingmodels AT malikmuhammadshahidiqbal identificationofoffensivelanguageinurduusingsemanticandembeddingmodels AT masoodnayyer identificationofoffensivelanguageinurduusingsemanticandembeddingmodels |