Arabic hate speech detection based on BERT models variants

Hate speech on social media, particularly in Arabic contexts, poses a serious threat to user well-being and online interaction quality. The complexity of Arabic, with its wide range of dialects, necessitates advanced detection systems to identify harmful communication targeting individuals or groups based on ethnicity, religion, gender, or nationality. To address this challenge, three key Twitter datasets — OSACT-5, LAHS, and arHate — are examined to represent diverse dialects and sociopolitical contexts. These datasets provide valuable resources for investigating the binary classification task of Arabic hate speech detection. Leveraging BERT transformers with their bidirectional contextual understanding enables the capture of nuanced meanings in Arabic expressions, thereby enhancing classification accuracy. ix prominent Arabic BERT variants — MarBERT, BERT-multilingual, QARiB, CAMeLBERT, AraBERTv0.2-Twitter, and SaudiBERT — are systematically evaluated across the selected datasets. To enhance performance, hyperparameter optimization using Grid Search and Bayesian methods is conducted only on the top three performing models. The optimized models achieve strong results: on OSACT-5, QARiB attains 93.2% accuracy with an F1-score of 82%; on LAHS, QARiB reaches 85.0% accuracy and 87.0% F1; and on arHate, SaudiBERT achieves 94.5% accuracy with a 91.8% F1-score. These results highlight the robustness and adaptability of optimized Arabic BERT models for hate speech detection across diverse dialects and imbalanced datasets, contributing to more reliable moderation of harmful content in Arabic social media. • A comprehensive evaluation of six Arabic BERT models for hate speech detection. • Research addresses challenges from dialectal variations and noisy user-generated content. • A new error analysis identifies the strengths and weaknesses of each BERT model. • The study contributes to safer online environments for Arabic-speaking users.

Authors

Institutions

Publication Details

Journal
Egyptian Informatics Journal
Published
2025-11-21
DOI
https://doi.org/10.1016/j.eij.2025.100845
Primary Topic
Hate Speech and Cyberbullying Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Arabic hate speech detection based on BERT models variants

Paloma Martı́nez, Areej Jaber, Tasneem Duridi
Egyptian Informatics Journal
Hate Speech and Cyberbullying Detection
article

Arabic hate speech detection based on BERT models variants

Paloma Martı́nez, Areej Jaber, Tasneem Duridi
article en

Abstract

Hate speech on social media, particularly in Arabic contexts, poses a serious threat to user well-being and online interaction quality. The complexity of Arabic, with its wide range of dialects, necessitates advanced detection systems to identify harmful communication targeting individuals or groups based on ethnicity, religion, gender, or nationality. To address this challenge, three key Twitter datasets — OSACT-5, LAHS, and arHate — are examined to represent diverse dialects and sociopolitical contexts. These datasets provide valuable resources for investigating the binary classification task of Arabic hate speech detection. Leveraging BERT transformers with their bidirectional contextual understanding enables the capture of nuanced meanings in Arabic expressions, thereby enhancing classification accuracy. ix prominent Arabic BERT variants — MarBERT, BERT-multilingual, QARiB, CAMeLBERT, AraBERTv0.2-Twitter, and SaudiBERT — are systematically evaluated across the selected datasets. To enhance performance, hyperparameter optimization using Grid Search and Bayesian methods is conducted only on the top three performing models. The optimized models achieve strong results: on OSACT-5, QARiB attains 93.2% accuracy with an F1-score of 82%; on LAHS, QARiB reaches 85.0% accuracy and 87.0% F1; and on arHate, SaudiBERT achieves 94.5% accuracy with a 91.8% F1-score. These results highlight the robustness and adaptability of optimized Arabic BERT models for hate speech detection across diverse dialects and imbalanced datasets, contributing to more reliable moderation of harmful content in Arabic social media. • A comprehensive evaluation of six Arabic BERT models for hate speech detection. • Research addresses challenges from dialectal variations and noisy user-generated content. • A new error analysis identifies the strengths and weaknesses of each BERT model. • The study contributes to safer online environments for Arabic-speaking users.

Egyptian Informatics JournalVol. 32
Palestine Technical University - Kadoorie (PS), Universidad Carlos III de Madrid (ES)
Openalex Percentile: Top 81%
Hate Speech and Cyberbullying Detection
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.