Next Article in Journal
Application of the Kurganov–Tadmor Scheme in Curvilinear Coordinates for Supersonic Flow
Next Article in Special Issue
A Context-Aware Representation-Learning-Based Model for Detecting Human-Written and AI-Generated Cryptocurrency Tweets Across Large Language Models
Previous Article in Journal
Last-Mile Decomposition Heuristics with Multi-Period Embedded Optimization Models
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Hybrid Attention-Based RoBERTa-BiLSTM Model for Cyberbullying Detection

by
Mohammed A. Mahdi
1,
Suliman Mohamed Fati
2,*,
Mohammed Gamal Ragab
3,
Mohamed A. G. Hazber
2,
Shahanawaj Ahamad
4,
Sawsan A. Saad
5 and
Mohammed Al-Shalabi
1
1
Information and Computer Science Department, College of Computer Science and Engineering, University of Ha’il, Ha’il 55476, Saudi Arabia
2
Information Systems Department, College of Computer and Information Sciences, Prince Sultan University, Riyadh 11586, Saudi Arabia
3
Department of Computer and Information Sciences, Universiti Teknologi Petronas, Seri Iskandar 32610, Malaysia
4
Software Engineering Department, College of Computer Science and Engineering, University of Ha’il, Ha’il 55476, Saudi Arabia
5
Computer Engineering Department, College of Computer Science and Engineering, University of Ha’il, Ha’il 55476, Saudi Arabia
*
Author to whom correspondence should be addressed.
Math. Comput. Appl. 2025, 30(4), 91; https://doi.org/10.3390/mca30040091
Submission received: 1 August 2025 / Revised: 16 August 2025 / Accepted: 19 August 2025 / Published: 21 August 2025

Abstract

The escalating scale and psychological harm of cyberbullying across digital platforms present a critical social challenge, demanding the urgent development of highly accurate and reliable automated detection systems. Standard fine-tuned transformer models, while powerful, often fall short in capturing the nuanced, context-dependent nature of online harassment. This paper introduces a novel hybrid deep learning model called Robustly Optimized Bidirectional Encoder Representations from the Transformers with the Bidirectional Long Short-Term Memory-based Attention model (RoBERTa-BiLSTM), specifically designed to address this challenge. To maximize its effectiveness, the model was systematically optimized using the Optuna framework and rigorously benchmarked against eight state-of-the-art transformer baseline models on a large cyberbullying dataset. Our proposed model achieves state-of-the-art performance, outperforming BERT-base, RoBERTa-base, RoBERTa-large, DistilBERT, ALBERT-xxlarge, XLNet-large, ELECTRA-base, DeBERTa-v3-small with an accuracy of 94.8%, precision of 96.4%, recall of 95.3%, F1-score of 95.8%, and an AUC of 98.5%. Significantly, it demonstrates a substantial improvement in F1-score over the strongest baseline and reduces critical false negative errors by 43%, all while maintaining moderate computational efficiency. Furthermore, our efficiency analysis indicates that this superior performance is achieved with a moderate computational complexity. The results validate our hypothesis that a specialized hybrid architecture, which synergizes contextual embedding with sequential processing and attention mechanism, offers a more robust and practical solution for real-world social media applications.
Keywords: cyberbullying detection; transfer learning; large language models; natural language processing; RoBERTa; attention mechanism cyberbullying detection; transfer learning; large language models; natural language processing; RoBERTa; attention mechanism

Share and Cite

MDPI and ACS Style

Mahdi, M.A.; Fati, S.M.; Ragab, M.G.; Hazber, M.A.G.; Ahamad, S.; Saad, S.A.; Al-Shalabi, M. A Novel Hybrid Attention-Based RoBERTa-BiLSTM Model for Cyberbullying Detection. Math. Comput. Appl. 2025, 30, 91. https://doi.org/10.3390/mca30040091

AMA Style

Mahdi MA, Fati SM, Ragab MG, Hazber MAG, Ahamad S, Saad SA, Al-Shalabi M. A Novel Hybrid Attention-Based RoBERTa-BiLSTM Model for Cyberbullying Detection. Mathematical and Computational Applications. 2025; 30(4):91. https://doi.org/10.3390/mca30040091

Chicago/Turabian Style

Mahdi, Mohammed A., Suliman Mohamed Fati, Mohammed Gamal Ragab, Mohamed A. G. Hazber, Shahanawaj Ahamad, Sawsan A. Saad, and Mohammed Al-Shalabi. 2025. "A Novel Hybrid Attention-Based RoBERTa-BiLSTM Model for Cyberbullying Detection" Mathematical and Computational Applications 30, no. 4: 91. https://doi.org/10.3390/mca30040091

APA Style

Mahdi, M. A., Fati, S. M., Ragab, M. G., Hazber, M. A. G., Ahamad, S., Saad, S. A., & Al-Shalabi, M. (2025). A Novel Hybrid Attention-Based RoBERTa-BiLSTM Model for Cyberbullying Detection. Mathematical and Computational Applications, 30(4), 91. https://doi.org/10.3390/mca30040091

Article Metrics

Back to TopTop