Wednesday, October 21, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News Technology and Engineering

Confidence-aware system combines Arabic text and images to flag hateful memes

October 21, 2026
in Technology and Engineering
Denise Maddox
By Denise Maddox Scienmag Editorial Profile - Mechanical Engineering
Reading Time: 5 mins read
0
Confidence-aware system combines Arabic text and images to flag hateful memes

Confidence-aware system combines Arabic text and images to flag hateful memes

65
SHARES
587
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

An open-source content moderation system that combines Arabic-language analysis with image recognition achieved an area under the receiver operating characteristic curve of 0.78 and a macro F1 score of 0.71 when tested on a held-out set of Arabic-translated hateful memes. The software pairs the MARBERTv2 Arabic language encoder with a frozen CLIP ViT-B/32 visual encoder, then routes uncertain cases to a vision-language model for secondary review. Its developers describe the result as a proof-of-concept for confidence-aware moderation rather than a production-ready system, noting that the evaluation was conducted on machine-translated English benchmark data rather than memes originally written in Arabic.

The work targets a form of online abuse that can evade systems examining only one part of a meme. A meme combines an image with a short caption, and its discriminatory meaning may depend on the relationship between them. A caption that appears ordinary in isolation, for example, can become harmful when placed over an image depicting a particular religion, ethnicity, gender or nationality. In the Facebook Hateful Memes benchmark used here, models based solely on text or images have performed near chance, illustrating why researchers designed the dataset with benign confounders whose meaning changes when image and text are considered together.

Arabic presents additional complications for automated analysis. The language has substantial differences between Modern Standard Arabic and regional dialects, and memes may combine dialectal vocabulary, transliterated foreign words and irregular spelling. MARBERTv2 was selected to represent the textual side of the system because it is a 163-million-parameter BERT-style model pretrained on one billion Arabic social-media posts covering both Modern Standard Arabic and dialectal varieties. The model accepts sequences of up to 128 tokens and converts them into a 768-dimensional representation through attention-masked mean pooling, providing a language-specific signal rather than relying on an English text encoder.

The image branch uses the visual half of CLIP ViT-B/32, a contrastively pretrained vision transformer associated with 400 million image-text pairs. Images are resized to 224 by 224 pixels, center-cropped and normalized with CLIP-specific values. The encoder produces a 512-dimensional representation, and its weights remain frozen during training to reduce overfitting on the relatively small dataset and preserve representations learned during large-scale pretraining. Separate linear layers, layer normalization and GELU activations project the 768-dimensional text vector and 512-dimensional image vector into a common 512-dimensional space. Concatenating the two projections yields a 1,024-dimensional representation for a three-layer multilayer perceptron that outputs a binary hate probability.

For training, the researchers translated the captions of roughly 9,000 examples from the Facebook Hateful Memes dataset into Arabic with the 600-million-parameter NLLB-200-distilled-600M translation model. The translated data were divided by stratified sampling into 6,300 training examples, 1,800 validation examples and 900 test examples, preserving class proportions. The model was optimized with AdamW, using a learning rate of 2 × 10−5 for MARBERTv2 and 1 × 10−3 for the projection and classification layers, along with weight decay, gradient clipping and a short warmup schedule. Training could run for up to 50 epochs, with early stopping based on validation macro F1.

The test results at a decision threshold of 0.53 showed that the system favored precision on the non-hate class and recall on the hate class, while performing more evenly across the two classes overall. The non-hate class had a precision of 0.77, recall of 0.82 and F1 score of 0.79. For the hate class, precision was 0.66, recall was 0.59 and F1 was 0.62. The macro averages were 0.72 for precision, 0.70 for recall and 0.71 for F1. In a same-split ablation, a text-only MARBERTv2 classifier obtained a macro F1 of 0.62, nine percentage points below the fused image-and-text model, indicating that the visual branch supplied additional discriminative information within this translated-data setting.

The published comparisons place the system among several distinct experimental groups rather than treating all scores as directly equivalent. On the original English Hateful Memes benchmark, the reported BERT text-only baseline achieved an AUROC of 0.65 and macro F1 of 0.59, while ViLBERT reached an AUROC of 0.70 and macro F1 of 0.63. Hate-CLIPper, using CLIP for both image and text, reported 0.858 AUROC and 0.811 macro F1 on the English data. A separate ResNet-RoBERTa fusion system with SMOTE and incremental PCA reported a macro F1 of 0.8153. These English results are not a controlled comparison with the Arabic-translated experiment, but they show the scale of the gap between the new pipeline and stronger approaches developed on the original dataset.

Native Arabic benchmarks provide additional context but cannot establish a direct ranking. The MAHED 2025 shared task included more than 22,000 Arabic instances annotated by native speakers, and its best Task 3 system reported a macro F1 of 0.796. YassirEA, another participant, paired MARBERTv2 with the larger CLIP ViT-L/14 encoder and combined four fusion strategies, reporting a macro F1 of 0.75 on MAHED. The new system was not evaluated on that native-Arabic dataset, so its 0.71 score on translated Hateful Memes cannot be treated as a like-for-like comparison. The authors identify evaluation on MAHED and incorporation of natively authored Arabic memes as important future steps.

Beyond the classifier, the software includes a bilingual web interface that demonstrates confidence-aware routing. EasyOCR first extracts Arabic or Latin-script text from a flagged image. The fusion model then assigns a hate probability: scores of at least 0.53 produce a REMOVE decision, scores below 0.40 produce ALLOW, and intermediate scores are sent to a hosted Llama 4 Scout vision-language model for a structured REMOVE, WARN or ALLOW decision with a one-sentence explanation. In one illustrative case, a score of 41.7% fell inside the escalation band and the vision-language judge returned REMOVE despite the first-stage model’s low hate probability. If the external API fails, the system defaults to REMOVE. Decisions, confidence scores, timestamps and explanations are stored in an in-memory moderation log.

Several limitations constrain the findings. Native Arabic speakers informally scanned all translated captions and closely reviewed 100 examples selected to include slang, sarcasm and idiomatic language, finding no systematic gross mistranslation, but this was not a blind annotation protocol or an inter-annotator agreement study. The authors also did not formally relabel the dataset to verify that every hate or non-hate label remained valid after translation. Only captions were translated, leaving image-text alignment unassessed, and the system was not tested on natively authored Arabic meme content. At inference, EasyOCR may struggle with stylized fonts, low-resolution images and mixed Arabic-Latin scripts, creating a gap between clean translated training captions and noisy extracted text. English OCR output is also passed directly to MARBERTv2 without translation. The released code supports the inference pipeline, but the training and translation scripts are absent, latency and computational costs were not benchmarked, and the escalation workflow was not evaluated under real-world traffic. The result therefore demonstrates a reusable technical route for multimodal Arabic moderation, while leaving its performance on culturally specific Arabic memes unestablished.

Subject of Research: Confidence-aware multimodal detection of hateful memes using Arabic text and image encoders

Article Title: An agentic-style, confidence-aware multimodal system for Arabic hate speech detection in memes

Article References: Boulaamail, M. A., Hanine, M., Cheikh Tourad, M., Alomran, A., & Alshuhri, S. (2026). An agentic-style, confidence-aware multimodal system for Arabic hate speech detection in memes. SoftwareX, 36, Article 103134. https://doi.org/10.1016/j.softx.2026.103134

Image Credits: AI Generated

DOI: 10.1016/j.softx.2026.103134

Keywords: Arabic language, hate speech detection, multimodal models, meme moderation, machine translation, confidence routing, vision-language model, content moderation, open-source software, agentic-style, confidence-aware, multimodal

Cite Scienmag News

Denise Maddox. (October 21, 2026). Confidence-aware system combines Arabic text and images to flag hateful memes. Scienmag. https://scienmag.com/confidence-aware-system-combines-arabic-text-and-images-to-flag-hateful-memes/

Denise Maddox. "Confidence-aware system combines Arabic text and images to flag hateful memes." Scienmag, 21 October 2026, https://scienmag.com/confidence-aware-system-combines-arabic-text-and-images-to-flag-hateful-memes/. Accessed 21 October 2026.

Denise Maddox. "Confidence-aware system combines Arabic text and images to flag hateful memes." Scienmag. October 21, 2026. https://scienmag.com/confidence-aware-system-combines-arabic-text-and-images-to-flag-hateful-memes/

Tags: agentic-styleArabic languageArabic-language content moderationCLIP visual encoderconfidence routingconfidence-awareconfidence-aware moderationcontent moderationhate speech detectionhateful meme detectionimage and text analysismachine translationmachine translation in hate speech detectionMARBERTv2 language encodermeme analysis and classificationmeme moderationmultilingual content moderationmultimodalmultimodal AI systemsmultimodal modelsonline abuse preventionopen-source hate speech detectionopen-source softwarevision-language model
Share26Tweet16
Previous Post

Brine boiling cuts drying time for Kenya’s nutrient-dense Dagaa fish

Next Post

Reinforcement learning curbs drag in turbulent bluff-body wakes

Related Posts

Reinforcement learning curbs drag in turbulent bluff-body wakes
Technology and Engineering

Reinforcement learning curbs drag in turbulent bluff-body wakes

October 21, 2026
Copine-derived peptides advance tissue repair through programmable biomaterials
Science News

Copine-derived peptides advance tissue repair through programmable biomaterials

October 21, 2026
Weather-aware edge AI improves extreme-grid load forecasting
Science News

Weather-aware edge AI improves extreme-grid load forecasting

October 21, 2026
Machine learning predicts severe lung disease risk in extremely preterm infants
Technology and Engineering

Machine learning predicts severe lung disease risk in extremely preterm infants

October 21, 2026
Smart Glasses Could Trigger a War on Human Expression
Technology and Engineering

Smart Glasses Could Trigger a War on Human Expression

October 21, 2026
MetaGCN-CD improves community detection in heterogeneous academic networks
Technology and Engineering

MetaGCN-CD improves community detection in heterogeneous academic networks

October 21, 2026
Next Post
Reinforcement learning curbs drag in turbulent bluff-body wakes

Reinforcement learning curbs drag in turbulent bluff-body wakes

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27656 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • AI analysis identifies five spatial traditions in 371,918 classical Chinese poems
  • Reinforcement learning curbs drag in turbulent bluff-body wakes
  • Confidence-aware system combines Arabic text and images to flag hateful memes
  • Brine boiling cuts drying time for Kenya’s nutrient-dense Dagaa fish

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Science News
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,150 other subscribers

© 2025 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2025 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading