Leveraging BERT Models for Toxicity Detection in Moroccan Dialect

The widespread use of social media and increased internet accessibility have led to the generation of vast amounts of data. Much of the online textual content consists of informal expressions of opinions by individuals, which often include hateful language. The advent of transformer-based models has greatly enhanced addressing such challenges in textual data. With their ability to process context bidirectionally and handle large-scale data efficiently, transformers have revolutionized natural language processing, particularly in tasks such as classifying online comments. From this perspective, this study has been conducted to deploy transformer-based models to identify harmful statements written in the Moroccan dialect (Darija), which poses unique challenges due to its informal and diverse linguistic nature. The Moroccan Arabic Toxic Comments Dataset (MATCD), gathered using Selenium, serves as the foundation for this study, enabling the evaluation of transformer-based models in detecting harmful comments in the Moroccan dialect. As the interest in the BERT (Bidirectional Encoder Representations from Transformers) model increased, several model variations were developed to adjust to different languages, including Arabic, to enhance the ability to handle language-specific tasks effectively. The experimental results exhibit the strengths and weaknesses of each approach, with the model achieving high accuracy, reaching up to 95%, providing valuable insight into the suitability and effectiveness of transformer-based models in this domain.

Authors

Institutions

Publication Details

Published
2025-05-15
DOI
https://doi.org/10.1109/iraset64571.2025.11008323
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Leveraging BERT Models for Toxicity Detection in Moroccan Dialect

Mohamed Amine Ouassil, Rabia Rachidi, Bouchaib Cherradi, Mounir Omari et al.
Natural Language Processing Techniques
article

Leveraging BERT Models for Toxicity Detection in Moroccan Dialect

Mohamed Amine Ouassil, Rabia Rachidi, Bouchaib Cherradi, Mounir Omari, Mouaad Errami, Hassan Silkan
article en

Abstract

The widespread use of social media and increased internet accessibility have led to the generation of vast amounts of data. Much of the online textual content consists of informal expressions of opinions by individuals, which often include hateful language. The advent of transformer-based models has greatly enhanced addressing such challenges in textual data. With their ability to process context bidirectionally and handle large-scale data efficiently, transformers have revolutionized natural language processing, particularly in tasks such as classifying online comments. From this perspective, this study has been conducted to deploy transformer-based models to identify harmful statements written in the Moroccan dialect (Darija), which poses unique challenges due to its informal and diverse linguistic nature. The Moroccan Arabic Toxic Comments Dataset (MATCD), gathered using Selenium, serves as the foundation for this study, enabling the evaluation of transformer-based models in detecting harmful comments in the Moroccan dialect. As the interest in the BERT (Bidirectional Encoder Representations from Transformers) model increased, several model variations were developed to adjust to different languages, including Arabic, to enhance the ability to handle language-specific tasks effectively. The experimental results exhibit the strengths and weaknesses of each approach, with the model achieving high accuracy, reaching up to 95%, providing valuable insight into the suitability and effectiveness of transformer-based models in this domain.

Institut Supérieur du Génie Appliqué (MA), École Normale Supérieure de l'Enseignement Technique de Mohammedia (MA), Chouaib Doukkali University (MA), Université Hassan II Mohammedia (MA), Centre Régional des Métiers de l'Éducation et de la Formation Casablanca-Settat
Openalex Percentile: Top 95%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.