تعزيز اكتشاف التنمر الإلكتروني في اللغات ذات الموارد المنخفضة: إطار عمل لتكديس المحولات للغة البنغالية
Advancing cyberbullying detection in low-resource languages: a transformer- stacking framework for Bengali

شارك:
المجلة: Frontiers in Artificial Intelligence، المجلد: 8
DOI: https://doi.org/10.3389/frai.2025.1679962
PMID: https://pubmed.ncbi.nlm.nih.gov/41608035
تاريخ النشر: 2026-01-13
المؤلف: Md. Nesarul Hoque وآخرون
الموضوع الرئيسي: كشف خطاب الكراهية والتنمر الإلكتروني

نظرة عامة

تتناول هذه البحث القضية الحرجة للكشف عن التنمر الإلكتروني باللغة البنغالية، وهي لغة ذات موارد منخفضة، من خلال تقديم إطار عمل مبتكر قائم على المحولات يسمى Transformer-stacking. يدمج الإطار ثلاثة نماذج متقدمة من المحولات—XLM-R-base وBERT متعدد اللغات (mBERT) وBangla-Bert-Base—باستخدام استراتيجية التكديس مع مصنف متعدد الطبقات كمتعلم ميتا. لتعزيز تمثيل الميزات، تنفذ الدراسة ثلاث تقنيات معالجة مسبقة محددة للبنغالية مصممة لتناسب تفاصيل نصوص التنمر الإلكتروني، مثل استبدال المصطلحات المراقبة ورسم الرموز التعبيرية إلى تعبيرات المشاعر.

يتم تقييم أداء Transformer-stacking بدقة على مجموعة بيانات التنمر الإلكتروني البنغالية المتاحة للجمهور، محققًا درجة F1 تبلغ 93.61% ودقة 93.62% للتصنيف الثنائي (المهمة الفرعية A)، ودرجة F1 ودقة تبلغ 89.23% للتصنيف متعدد الفئات (المهمة الفرعية B). تتجاوز هذه النتائج ثمانية نماذج محولات أساسية وأربع تقنيات تجميع، مع تأكيد التحقق الإحصائي على أهمية التحسينات عبر اختبار مك نيمار. بالإضافة إلى ذلك، يظهر الإطار قابلية التوسع والتكيف من خلال التجارب على مجموعات بيانات خارجية تركز على خطاب الكراهية واللغة المسيئة. تسلط الدراسة الضوء على التحديات المستمرة مثل عدم توازن الفئات والارتباك في التسميات، بينما تقترح اتجاهات مستقبلية تشمل تعزيز قابلية التكيف في المعالجة المسبقة واستكشاف الأساليب المعتمدة على الأنطولوجيا لفهم أعمق لديناميات التنمر الإلكتروني.

مقدمة

تسلط المقدمة الضوء على الدور المزدوج لمنصات وسائل التواصل الاجتماعي مثل فيسبوك وX (سابقًا تويتر) كمسهلين لمشاركة الآراء وكقنوات لمحتوى ضار، وخاصة التنمر الإلكتروني. ساهمت匿名ية التي توفرها هذه المنصات في زيادة حوادث التنمر الإلكتروني، والتي تفاقمت خلال جائحة COVID-19، مع عواقب نفسية كبيرة على الضحايا، بما في ذلك القلق والاكتئاب والعزلة الاجتماعية. يتم التأكيد على ضرورة الكشف والتحليل التلقائي لمحتوى التنمر الإلكتروني، حيث يمكن أن يساعد التعرف في الوقت المناسب في التخفيف من آثاره ومحاسبة الجناة. ومع ذلك، فإن تعقيد هذه المهمة يتعقد بسبب اللغة غير الرسمية، والسخرية، والإساءة الضمنية السائدة في التفاعلات عبر الإنترنت.

تناقش هذه القسم أيضًا هيمنة الأبحاث التي تركز على الكشف عن التنمر الإلكتروني باللغة الإنجليزية، حيث تستخدم دراسات مختلفة تقنيات قائمة على BERT ونماذج التعلم الآلي لتصنيف محتوى التنمر. على الرغم من التقدم، هناك فجوة ملحوظة في الأبحاث المتعلقة باللغات ذات الموارد المنخفضة مثل البنغالية، التي تواجه تحديات فريدة مثل التعقيد الدلالي العالي وطرق المعالجة المسبقة غير الكافية. غالبًا ما تتجاهل الدراسات الحالية أهمية الإشارات السياقية والرمزية في النصوص البنغالية، مما يؤدي إلى تصنيف خاطئ للتعبيرات الدقيقة. تدعو المقدمة إلى نهج أكثر تطورًا يجمع بين نماذج المحولات المتعددة لتعزيز الفهم السياقي ومعالجة قيود المنهجيات الحالية، بينما تسلط الضوء أيضًا على الحاجة إلى التحقق الدقيق واختبار قابلية التوسع في الأبحاث المستقبلية.

الطرق

تحدد هذه القسم التقييم التجريبي لإطار عمل الكشف عن التنمر الإلكتروني البنغالي، موضحة الإعداد، وضبط المعلمات، ومقارنات الأداء مع الطرق الحديثة (SOTA). تستخدم التجارب مجموعة بيانات التنمر الإلكتروني البنغالية لمهام التصنيف الثنائي ومتعدد الفئات، باستخدام ثمانية نماذج محولات مدربة مسبقًا على Google Colab مع وحدة معالجة الرسوميات NVIDIA Tesla T4. تم تحسين المعلمات الرئيسية، مثل الحد الأقصى لطول الرموز، ومعدل التعلم، وعدد الدورات، وحجم الدفعة، لتعزيز أداء النموذج. تشير النتائج إلى أن إطار عمل Transformer-stacking المقترح يتفوق بشكل كبير على الطرق الحالية، محققًا درجة F1 تبلغ 93.61% ودقة 93.62% في المهمة الفرعية A، ودقة تبلغ 89.23% في المهمة الفرعية B، متجاوزًا المعايير السابقة بفروق ملحوظة.

تشمل التقييمات أيضًا تحليل أداء الفئات وتحليل استراتيجيات المعالجة المسبقة، كاشفة عن تأثيراتها الإيجابية والسلبية على نتائج التصنيف. يدمج إطار Transformer-stacking ثلاث استراتيجيات معالجة مسبقة فعالة ويستخدم مصنف متعدد الطبقات (MLP) كمتعلم ميتا لتعلم الاعتماديات بين النماذج ديناميكيًا، مما يعزز قدرة النموذج على التعميم عبر سياقات لغوية متنوعة. يسمح هذا النهج التكيفي للإطار بالتقاط العلاقات المعقدة بين التنبؤات، مما يؤدي إلى تحسين الدقة في تمييز الفروق الدقيقة بين الفئات في لغة التنمر الإلكتروني، مما يظهر قوته مقارنة بأساليب التجميع التقليدية.

النتائج

تستكشف قسم النتائج في الدراسة تأثير خمس فئات معالجة مسبقة إضافية (PPC 2 إلى PPC 6) على أداء التصنيف عبر مهمتين فرعيتين (A وB). تم اختبار ستة تكوينات تجريبية (EC 1 إلى EC 6)، حيث كانت EC 1 بمثابة الأساس باستخدام معالجة مسبقة عامة فقط (PPC 1). تشير النتائج إلى أن PPC 2 وPPC 3 وPPC 6 تعزز باستمرار دقة التصنيف، بينما تؤثر PPC 4 وPPC 5 سلبًا على الأداء. من الجدير بالذكر أن PPC 6 يوفر أكبر تحسين، يليه PPC 3 وPPC 2. التكوين التجريبي التالي، EC 7، يجمع بين أكثر تقنيات المعالجة المسبقة فعالية (PPC 1 وPPC 2 وPPC 3 وPPC 6) مع ثمانية نماذج محولات، مما يؤدي إلى تحسين مقاييس الأداء عبر جميع النماذج تقريبًا، باستثناء BanglaBERT (صغير) في المهمة الفرعية B.

يكشف التحليل أن نموذج XLM-R-base يحقق أعلى مقاييس الأداء في كلا المهمتين الفرعيتين، مع دقة واسترجاع ودرجة F1 ودقة تبلغ 93.23% و88.06% للمهمة الفرعية A وB، على التوالي. يتفوق نهج Transformer-stacking المقترح، الذي يدمج أفضل ثلاثة نماذج (XLM-R-base وmBERT وBangla-Bert-Base)، على طرق التجميع الأخرى، محققًا دقة تبلغ 93.62% في المهمة الفرعية A و89.23% في المهمة الفرعية B. يشير تحليل أداء الفئات إلى نتائج قوية لفئات “ليس تنمر” و”ديني”، بينما يواجه الإطار صعوبة مع فئة “تهديد” بسبب تمثيلها المنخفض. بشكل عام، تؤكد النتائج فعالية تقنيات المعالجة المسبقة المجمعة واستراتيجية Transformer-stacking، مع تسليط الضوء على مجالات التحسين المستقبلية في تصنيف الفئات الأقل تمثيلاً والفئات المتشابهة دلاليًا.

المناقشة

تحدد قسم المناقشة في ورقة البحث ثلاث فجوات بحثية حرجة (RGs) في الكشف عن التنمر الإلكتروني البنغالي: RG1 تسلط الضوء على معالجة مسبقة غير كافية لا تعالج بشكل كافٍ الإشارات الرمزية والسياقية المحددة للبنغالية؛ RG2 تشير إلى التعقيد الدلالي وقيود الاعتماد على ميزات سطحية أو نماذج محولات واحدة؛ وRG3 تؤكد على نقص التحقق الدقيق والصلابة عبر مجموعات البيانات. تؤثر هذه الفجوات بشكل كبير على كل من مهام التصنيف الثنائي (المهمة الفرعية A) ومتعدد الفئات (المهمة الفرعية B). على سبيل المثال، في المهمة الفرعية A، يعزز دمج الإشارات المحددة للبنغالية، مثل الرموز التعبيرية والمصطلحات المراقبة، التمييز بين النصوص المتنمرة وغير المتنمرة. في المهمة الفرعية B، تتعقد التحديات حيث تكون الإشارات الرمزية حاسمة لتصنيف أنواع التنمر، وتكون الفروق الدلالية ضرورية لتمييز الفئات المرتبطة ارتباطًا وثيقًا، مثل التهديدات والتحرش الجنسي.

لمعالجة هذه الفجوات، تقترح الدراسة إطار عمل شامل يدمج مجموعات بيانات بنغالية متعددة، ويستخدم تقنيات معالجة مسبقة غنية، ويستفيد من نماذج المحولات الحديثة. يظهر الإطار تحسينات ملحوظة في أداء التصنيف، محققًا زيادة في الدقة بنسبة 5.69% في المهمة الفرعية A وزيادات في الدقة تتراوح بين 1.85% إلى 4.97% في المهمة الفرعية B، كما تم التحقق منها ضد مجموعة بيانات التنمر الإلكتروني البنغالية المعتمدة على نطاق واسع. تشمل مساهمات البحث التحقق الدقيق من خلال الاختبارات الإحصائية وتقييمات القابلية للتعميم على مجموعات بيانات خارجية، مما يضمن قابلية تكيف الإطار وقابلية التوسع. تم هيكلة الورقة لمراجعة الأعمال ذات الصلة، وتفصيل إطار عمل Transformer-stacking المقترح، وتقديم النتائج التجريبية، مما يسهم في تقدم الكشف عن التنمر الإلكتروني في اللغات ذات الموارد المنخفضة مثل البنغالية.

القيود

تعود قيود إطار Transformer-stacking في تصنيف تعليقات التنمر الإلكتروني بشكل أساسي إلى التداخل الدلالي وتعامل النموذج مع الفئات الأقل تمثيلاً. من الجدير بالذكر أن النموذج يواجه صعوبة في التمييز بين فئات “ليس تنمر” و”ترويل”، كما يتضح من التصنيف الخاطئ لتعليق ساخر على أنه محايد. بالإضافة إلى ذلك، فإن فئة “تهديد” تمثل تمثيلًا منخفضًا في مجموعة البيانات، مما يؤدي إلى مزيد من التصنيفات الخاطئة، مثل تصنيف تعليق تهديدي بشكل غير صحيح على أنه ترويل. يشير هذا إلى فهم محدود للخصائص المرتبطة بالفئات الأقل تمثيلاً.

علاوة على ذلك، فإن فعالية تقنيات المعالجة المسبقة المساعدة—مثل استبدال الكلمات غير المنطوقة، ورسم الرموز التعبيرية، وحقن الميزات المحددة للفئة—مرتبطة بوجود عناصر نصية ذات صلة. في الحالات التي تفتقر فيها التعليقات إلى هذه الميزات، لا تعزز طرق المعالجة المسبقة أداء التصنيف. تعقد الضوضاء الكامنة في المحتوى الذي ينشئه المستخدم، والتي تتميز بالنحو غير المنظم، والأخطاء الإملائية، وعدم التناسق النحوي، قدرة النموذج على توليد تمثيلات دقيقة، مما يؤثر في النهاية على دقة تصنيفه.

Journal: Frontiers in Artificial Intelligence, Volume: 8
DOI: https://doi.org/10.3389/frai.2025.1679962
PMID: https://pubmed.ncbi.nlm.nih.gov/41608035
Publication Date: 2026-01-13
Author(s): Md. Nesarul Hoque et al.
Primary Topic: Hate Speech and Cyberbullying Detection

Overview

This research addresses the critical issue of cyberbullying detection in Bengali, a low-resource language, by introducing a novel transformer-based ensemble framework termed Transformer-stacking. The framework integrates three advanced transformer models—XLM-R-base, multilingual BERT (mBERT), and Bangla-Bert-Base—using a stacking strategy with a multi-layer perceptron classifier as the meta-learner. To enhance feature representation, the study implements three Bengali-specific preprocessing techniques tailored to the nuances of cyberbullying texts, such as replacing censored terms and mapping emoticons to sentiment expressions.

The performance of Transformer-stacking is rigorously evaluated on a publicly available Bengali cyberbullying dataset, achieving an F1-score of 93.61% and an accuracy of 93.62% for binary classification (Sub-task A), and an F1-score and accuracy of 89.23% for multiclass classification (Sub-task B). These results surpass eight baseline transformer models and four ensemble techniques, with statistical validation confirming the significance of the improvements via McNemar’s test. Additionally, the framework demonstrates scalability and adaptability through experiments on external datasets focused on hate speech and abusive language. The study highlights ongoing challenges such as class imbalance and label confusion, while proposing future directions that include enhancing preprocessing adaptability and exploring ontology-based approaches for deeper contextual understanding of cyberbullying dynamics.

Introduction

The introduction highlights the dual role of social media platforms like Facebook and X (formerly Twitter) as facilitators of opinion sharing and as conduits for harmful content, particularly cyberbullying. The anonymity provided by these platforms has contributed to a rise in cyberbullying incidents, exacerbated during the COVID-19 pandemic, with significant psychological repercussions for victims, including anxiety, depression, and social isolation. The necessity for automatic detection and analysis of cyberbullying content is emphasized, as timely identification can aid in mitigating its effects and holding perpetrators accountable. However, the complexity of this task is compounded by the informal language, sarcasm, and implicit abuse prevalent in online interactions.

The section further discusses the predominance of research focused on English-language cyberbullying detection, with various studies employing BERT-based techniques and machine learning models to classify bullying content. Despite advancements, there is a notable gap in research concerning low-resource languages like Bengali, which face unique challenges such as high semantic complexity and inadequate preprocessing methods. Existing studies often overlook the significance of contextual and symbolic cues in Bengali texts, leading to misclassification of nuanced expressions. The introduction calls for a more sophisticated approach that combines multiple transformer models to enhance contextual understanding and address the limitations of current methodologies, while also highlighting the need for rigorous validation and scalability testing in future research.

Methods

The section outlines the experimental evaluation of a Bengali cyberbullying detection framework, detailing the setup, hyperparameter tuning, and performance comparisons with state-of-the-art (SOTA) methods. The experiments utilize a Bengali cyberbullying dataset for binary and multiclass classification tasks, employing eight pre-trained transformer models on Google Colab with an NVIDIA Tesla T4 GPU. Key hyperparameters, such as maximum token length, learning rate, epochs, and batch size, were optimized to enhance model performance. The results indicate that the proposed Transformer-stacking framework significantly outperforms existing methods, achieving an F1-score of 93.61% and an accuracy of 93.62% in Sub-task A, and an accuracy of 89.23% in Sub-task B, surpassing previous benchmarks by notable margins.

The evaluation further includes a class-wise performance breakdown and an analysis of preprocessing strategies, revealing their positive and negative impacts on classification outcomes. The Transformer-stacking framework integrates three effective preprocessing strategies and employs a multilayer perceptron (MLP) as a meta-classifier to dynamically learn inter-model dependencies, enhancing the model’s ability to generalize across diverse linguistic contexts. This adaptive approach allows the framework to capture complex relationships between predictions, leading to improved accuracy in distinguishing subtle inter-class differences in cyberbullying language, thereby demonstrating its robustness compared to traditional ensemble methods.

Results

The results section of the study investigates the impact of five additional preprocessing categories (PPC 2 to PPC 6) on classification performance across two subtasks (A and B). Six experimental configurations (EC 1 to EC 6) were tested, with EC 1 serving as the baseline using only general preprocessing (PPC 1). The findings indicate that PPC 2, PPC 3, and PPC 6 consistently enhance classification accuracy, while PPC 4 and PPC 5 negatively affect performance. Notably, PPC 6 provides the most substantial improvement, followed by PPC 3 and PPC 2. The subsequent experimental configuration, EC 7, combines the most effective preprocessing techniques (PPC 1, PPC 2, PPC 3, and PPC 6) with eight transformer models, resulting in improved performance metrics across nearly all models, except for BanglaBERT (small) in Sub-task B.

The analysis reveals that the XLM-R-base model achieves the highest performance metrics in both subtasks, with precision, recall, F1-score, and accuracy of 93.23% and 88.06% for Sub-task A and B, respectively. The proposed Transformer-stacking approach, which integrates the top three models (XLM-R-base, mBERT, and Bangla-Bert-Base), outperforms other ensemble methods, achieving an accuracy of 93.62% in Sub-task A and 89.23% in Sub-task B. Class-wise performance analysis indicates strong results for the Not Bully and Religious classes, while the framework struggles with the Threat class due to its underrepresentation. Overall, the results underscore the effectiveness of the combined preprocessing techniques and the Transformer-stacking strategy, highlighting areas for future improvement in classifying minority and semantically similar categories.

Discussion

The discussion section of the research paper identifies three critical research gaps (RGs) in Bengali cyberbullying detection: RG1 highlights insufficient preprocessing that fails to adequately address Bengali-specific symbolic and contextual cues; RG2 points to the semantic complexity and limitations of relying on shallow features or single transformer models; and RG3 emphasizes the lack of rigorous validation and robustness across datasets. These gaps significantly impact both binary (Sub-task A) and multiclass (Sub-task B) classification tasks. For instance, in Sub-task A, the incorporation of Bengali-specific cues, such as emojis and censored terms, enhances the differentiation between bullying and non-bullying texts. In Sub-task B, the challenges intensify as symbolic cues are crucial for categorizing bullying types, and semantic nuances are vital for distinguishing closely related classes, such as threats and sexual harassment.

To address these gaps, the study proposes a comprehensive framework that integrates multiple Bengali corpora, employs enriched preprocessing techniques, and utilizes state-of-the-art transformer models. The framework demonstrates notable improvements in classification performance, achieving a 5.69% accuracy increase in Sub-task A and accuracy gains ranging from 1.85% to 4.97% in Sub-task B, as validated against the widely adopted Bengali cyberbullying dataset. The research contributions include rigorous validation through statistical testing and generalizability assessments on external datasets, ensuring the framework’s adaptability and scalability. The paper is structured to review related work, detail the proposed transformer-stacking framework, and present empirical results, ultimately contributing to the advancement of cyberbullying detection in low-resource languages like Bengali.

Limitations

The limitations of the Transformer-stacking framework in classifying cyberbullying comments are primarily attributed to semantic overlap and the model’s handling of minority classes. Notably, the model struggles to differentiate between the Not Bully and Troll classes, as illustrated by the misclassification of a sarcastic comment as neutral. Additionally, the Threat class is underrepresented in the dataset, leading to further misclassifications, such as a threatening remark being incorrectly categorized as Troll. This indicates a limited understanding of the characteristics associated with minority classes.

Moreover, the efficacy of auxiliary preprocessing techniques—such as unuttered word replacement, emoji mapping, and class-specific feature injection—is contingent upon the presence of relevant textual elements. In instances where comments lack these features, the preprocessing methods do not enhance classification performance. The inherent noise in user-generated content, characterized by unstructured syntax, misspellings, and grammatical inconsistencies, further complicates the model’s ability to generate accurate representations, ultimately impacting its classification accuracy.