An optimized multi-transformer framework with explainable AI for racism and body-shaming detection in bangla social media
Shanjida Alam Hena, Antar Sarker, Safiul Haque Chowdhury, Md. Sadiq Iqbal, Mohammad Mamun
Key points
From the paper's conclusion- This paper presents an optimized multi-transformer framework that separates racism from body shaming in Bangla text already identified as abusive.
Abstract
Racism and body shaming are among the most damaging forms of abuse on Bangla social media, yet they are rarely treated as distinct detection targets, and existing studies seldom report controlled comparisons, statistical validation or interpretability. This paper presents an optimized multi-transformer framework that separates racism from body shaming in Bangla text already identified as abusive. A dataset of 4,989 verified instances (2,573 body shaming, 2,416 racism; 1,214 naturally collected comments and 3,775 ChatGPT-assisted sentences) was constructed. BanglaBERT, mBERT, MuRIL and XLM-RoBERTa were fine-tuned under identical conditions with Optuna search, stratified five-fold cross-validation, exact McNemar tests and SHAP with a faithfulness evaluation. BanglaBERT achieved the highest numerical performance (96.39% accuracy at baseline, 96.79 ± 0.59% under cross-validation, 96.29% after tuning), although its differences from the other models were not statistically significant and a wider search favoured XLM-RoBERTa (97.19%). Racism was recovered less reliably than body shaming, and SHAP faithfulness ran inversely to accuracy. Additional evaluations showed stable results across seeds and under leakage-aware grouped cross-validation (96.07–96.63%), but accuracy fell to 86.60% to 89.95% on naturally collected test comments and to 55.49–63.81% when models were trained on generated sentences alone, because generation changed what each class expresses, notably racism as regional stereotyping rather than colourism. On the same data, the prior study’s support vector machine reached 89.98%, while a character n-gram support vector machine matched the transformers and exceeded them when trained on collected comments (93.16%). Validation on naturally collected comments is therefore needed before deployment.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Explainable Cyberbullying Detection for Multilingual Online Platforms Using NLP and Augmentation-Enhanced Deep LearningElectronics · 2026
- Ben-Misandry: A Bengali Dataset and Late-Fusion Transformer Framework for Detecting Anti-Male Gender HatearXiv · 2026
- BDBBQ: A Human-AI Collaborative Benchmark for Bengali Social Bias in LLMsarXiv · 2026
- Register Shifts Break LLM Safety: A Bengali Benchmark with Culturally Grounded HarmsarXiv · 2026
- BanglaShield: A Script-Robust Safety Classifier and Benchmark for Bangla Native, Romanized, and Code-Mixed PromptsarXiv · 2026
- Understanding Cross‑Lingual Model Behavior in Mental Health NLP: Evidence from English–Bengali Transformer ModelsAnnals of Data Science · 2026