An Integrated Linguistic and Metaheuristic-Optimized Elman Neural Network Framework for Cyberbullying Detection
Abstract
The rapid growth of social media platforms has intensified the need for accurate cyberbullying detection systems capable of understanding contextual and linguistically complex expressions. Existing machine learning and deep learning approaches often suffer from limited interpretability, insufficient contextual understanding, and suboptimal parameter optimization, reducing their effectiveness in identifying harmful online content. This study proposes a novel cyberbullying detection framework that integrates Linguistic Rule-Based Feature Extraction, an Elman Neural Network (ENN), and the Local Search-Based Improved Bat Algorithm (LSBIA). The main contribution of this research lies in the synergistic combination of interpretable linguistic knowledge, contextual sequence modeling, and metaheuristic optimization within a unified classification framework. Linguistic rules are employed to capture negation patterns, intensifiers, and adjective–noun relationships, while ENN models contextual dependencies through recurrent memory structures. LSBIA is utilized to optimize network parameters and improve convergence stability. Experiments were conducted using textual data collected from Instagram, Twitter, and Facebook and evaluated using stratified 10-fold cross-validation. The proposed method achieved an accuracy of 99.12%, precision of 94.73%, recall of 97.45%, and F1-score of 93.91%, outperforming Support Vector Machine (91.20% accuracy), Naïve Bayes (89.75%), and Decision Tree (90.10%). Ablation experiments further demonstrated the importance of each component, where removing linguistic rules reduced accuracy to 94.90%, removing sentiment scoring reduced accuracy to 96.30%, and replacing ENN with LSTM, GRU, or Transformer architectures resulted in lower accuracies of 92.50%, 91.90%, and 93.20%, respectively. These findings confirm that integrating linguistic feature engineering, contextual neural modeling, and metaheuristic optimization significantly enhances cyberbullying detection performance while maintaining interpretability. The novelty of this study resides in the integration of linguistic rule-based representation with LSBIA-optimized ENN for context-aware cyberbullying classification.
Keywords
Full Text:
PDFReferences
M. J. Akhtar, M. Azhar, N. A. Khan, and M. N. Rahman, “Conceptualizing social media analytics in digital economy: An evidence from bibliometric analysis,” Journal of Digital Economy, vol. 2, pp. 1–15, Dec. 2023, doi: 10.1016/j.jdec.2023.03.004.
J. A. Naslund, A. Bondre, J. Torous, and K. A. Aschbrenner, “Social Media and Mental Health: Benefits, Risks, and Opportunities for Research and Practice,” J Technol Behav Sci, vol. 5, no. 3, pp. 245–257, Sep. 2020, doi: 10.1007/s41347-020-00134-x.
J. R. Jim, M. A. R. Talukder, P. Malakar, M. M. Kabir, K. Nur, and M. F. Mridha, “Recent advancements and challenges of NLP-based sentiment analysis: A state-of-the-art review,” Natural Language Processing Journal, vol. 6, p. 100059, Mar. 2024, doi: 10.1016/j.nlp.2024.100059.
K. Hall, V. Chang, and C. Jayne, “A review on Natural Language Processing Models for COVID-19 research,” Healthcare Analytics, vol. 2, p. 100078, Nov. 2022, doi: 10.1016/j.health.2022.100078.
M. A. Mansoor and K. H. Ansari, “Early Detection of Mental Health Crises through Artifical-Intelligence-Powered Social Media Analysis: A Prospective Observational Study,” J Pers Med, vol. 14, no. 9, p. 958, Sep. 2024, doi: 10.3390/jpm14090958.
B. Ilyas and A. Sharifi, “A systematic review of social media-based sentiment analysis in disaster risk management,” International Journal of Disaster Risk Reduction, vol. 123, p. 105487, Jun. 2025, doi: 10.1016/j.ijdrr.2025.105487.
R. R. Sornalakshmi, M. Ramu, K. Raghuveer, V. A. Vuyyuru, D. Venkateswarlu, and A. Balakumar, “Harmful News Detection using BERT model through sentimental analysis,” in 2024 International Conference on Intelligent Systems and Advanced Applications (ICISAA), Oct. 2024, pp. 1–5. doi: 10.1109/ICISAA62385.2024.10828690.
J. O. Atoum, “Cyberbullying Detection Through Sentiment Analysis,” in 2020 International Conference on Computational Science and Computational Intelligence (CSCI), Dec. 2020, pp. 292–297. doi: 10.1109/CSCI51800.2020.00056.
F. A. Irfan, C. Behl, and R. Iqbal, “Verbal Abuse Detection from Short Conversations,” in 2025 IEEE 22nd Consumer Communications & Networking Conference (CCNC), Jan. 2025, pp. 1–2. doi: 10.1109/CCNC54725.2025.10976181.
S. Munnes, C. Harsch, M. Knobloch, J. S. Vogel, L. Hipp, and E. Schilling, “Examining Sentiment in Complex Texts. A Comparison of Different Computational Approaches,” Front. Big Data, vol. 5, May 2022, doi: 10.3389/fdata.2022.886362.
F. Alqarni, A. Sagheer, A. Alabbad, and H. Hamdoun, “Emotion-Aware RoBERTa enhanced with emotion-specific attention and TF-IDF gating for fine-grained emotion recognition,” Sci Rep, vol. 15, no. 1, p. 17617, May 2025, doi: 10.1038/s41598-025-99515-6.
Md. S. Islam et al., “Challenges and future in deep learning for sentiment analysis: a comprehensive review and a proposed novel hybrid approach,” Artif Intell Rev, vol. 57, no. 3, p. 62, Mar. 2024, doi: 10.1007/s10462-023-10651-9.
G. Singh, J. Singh, and B. Tripathy, “Significance of Sentiment Analysis Approaches using Machine Learning (ML) Techniques,” in 2024 2nd International Conference on Computer, Communication and Control (IC4), Feb. 2024, pp. 1–6. doi: 10.1109/IC457434.2024.10486310.
Samsir et al., “Naives Bayes Algorithm for Twitter Sentiment Analysis,” J. Phys.: Conf. Ser., vol. 1933, no. 1, p. 012019, Jun. 2021, doi: 10.1088/1742-6596/1933/1/012019.
M. Ahmad, S. Aftab, M. S. Bashir, and N. Hameed, “Sentiment Analysis using SVM: A Systematic Literature Review,” International Journal of Advanced Computer Science and Applications (IJACSA), vol. 9, no. 2, Art. no. 2, 28 2018, doi: 10.14569/IJACSA.2018.090226.
M. Aufar, R. Andreswari, and D. Pramesti, “Sentiment Analysis on Youtube Social Media Using Decision Tree and Random Forest Algorithm: A Case Study,” in 2020 International Conference on Data Science and Its Applications (ICoDSA), Aug. 2020, pp. 1–7. doi: 10.1109/ICoDSA50139.2020.9213078.
K. Ayyub, S. Iqbal, M. Wasif Nisar, E. U. Munir, F. K. Alarfaj, and N. Almusallam, “A Feature-Based Approach for Sentiment Quantification Using Machine Learning,” Electronics, vol. 11, no. 6, Art. no. 6, Jan. 2022, doi: 10.3390/electronics11060846.
C. G. Özmen and S. Gündüz, “Comparison of Machine Learning Models for Sentiment Analysis of Big Turkish Web-Based Data,” Applied Sciences, vol. 15, no. 5, Art. no. 5, Jan. 2025, doi: 10.3390/app15052297.
C. Ashwini and V. Sellam, “An optimal model for identification and classification of corn leaf disease using hybrid 3D-CNN and LSTM,” Biomedical Signal Processing and Control, vol. 92, p. 106089, Jun. 2024, doi: 10.1016/j.bspc.2024.106089.
Y. Chen, C. Lin, J. Liu, and D. Yu, “One-hour-ahead solar irradiance forecast based on real-time K-means++ clustering on the input side and CNN-LSTM,” Journal of Atmospheric and Solar-Terrestrial Physics, vol. 266, p. 106405, Jan. 2025, doi: 10.1016/j.jastp.2024.106405.
M. Kaur and H. Kaur, “An Efficient CNN-LSTM Based Framework for Improved Image Captioning,” Procedia Computer Science, vol. 258, pp. 3601–3607, 2025, doi: 10.1016/j.procs.2025.04.615.
M. Khan and Y. Hossni, “A comparative analysis of LSTM models aided with attention and squeeze and excitation blocks for activity recognition,” Sci Rep, vol. 15, no. 1, p. 3858, Jan. 2025, doi: 10.1038/s41598-025-88378-6.
I. D. Mienye, T. G. Swart, G. Obaido, M. Jordan, and P. Ilono, “Deep Convolutional Neural Networks in Medical Image Analysis: A Review,” Information, vol. 16, no. 3, Art. no. 3, Mar. 2025, doi: 10.3390/info16030195.
K. Alahmadi, S. Alharbi, J. Chen, and X. Wang, “Generalizing sentiment analysis: a review of progress, challenges, and emerging directions,” Soc. Netw. Anal. Min., vol. 15, no. 1, p. 45, Apr. 2025, doi: 10.1007/s13278-025-01461-8.
R. V. Santin and S. O. Rezende, “Systematic review on aspect-based sentiment analysis in cross-domain,” Artif Intell Rev, vol. 59, no. 1, p. 37, Dec. 2025, doi: 10.1007/s10462-025-11437-x.
W. Ahmad, H. U. Khan, F. K. Alarfaj, and M. Alreshoodi, “Aspect-Based Sentiment Analysis: A Comprehensive Review and Open Research Challenges,” IEEE Access, vol. 13, pp. 65138–65182, 2025, doi: 10.1109/ACCESS.2025.3555744.
V. Gupta and Dr. P. Rattan, “Improving Twitter Sentiment Analysis Efficiency with SVM-PSO Classification and EFWS Heuristic,” Procedia Computer Science, vol. 230, pp. 698–715, Jan. 2023, doi: 10.1016/j.procs.2023.12.125.
J. Mir, A. Mahmood, S. Khatoon, S. Hussain, S. S. Ullah, and J. Iqbal, “Application domains of aspect and sentiment classification techniques: A survey,” Neurocomputing, vol. 622, p. 129237, Mar. 2025, doi: 10.1016/j.neucom.2024.129237.
Q. A. M. N. Mahdi, M. Ali, M. N. Atta, A. Khan, S. A. Lashari, and D. A. Ramli, “Training Learning Weights of Elman Neural Network Using Salp Swarm Optimization Algorithm,” Procedia Computer Science, vol. 225, pp. 1974–1986, Jan. 2023, doi: 10.1016/j.procs.2023.10.188.
Y. Liu, P. Li, and X. Hu, “Combining context-relevant features with multi-stage attention network for short text classification,” Computer Speech & Language, vol. 71, p. 101268, Jan. 2022, doi: 10.1016/j.csl.2021.101268.
S. F. Ahmed et al., “Deep learning modelling techniques: current progress, applications, advantages, and challenges,” Artif Intell Rev, vol. 56, no. 11, pp. 13521–13617, Nov. 2023, doi: 10.1007/s10462-023-10466-8.
M. Sakka and M. R. Bahrami, “An Elegant Multi-Agent Gradient Descent for Effective Optimization in Neural Network Training and Beyond,” Applied Sciences, vol. 15, no. 4, Art. no. 4, Jan. 2025, doi: 10.3390/app15042008.
J. Wang, Y. Chen, C. Lu, A. A. Heidari, Z. Wu, and H. Chen, “The status-based optimization: Algorithm and comprehensive performance analysis,” Neurocomputing, vol. 647, p. 130603, Sep. 2025, doi: 10.1016/j.neucom.2025.130603.
M. Shehab et al., “A Comprehensive Review of Bat Inspired Algorithm: Variants, Applications, and Hybridization,” Arch Comput Methods Eng, vol. 30, no. 2, pp. 765–797, 2023, doi: 10.1007/s11831-022-09817-5.
C. Gan, W. Cao, M. Wu, and X. Chen, “A new bat algorithm based on iterative local search and stochastic inertia weight,” Expert Systems with Applications, vol. 104, pp. 202–212, Aug. 2018, doi: 10.1016/j.eswa.2018.03.015.
F. Xu, Z. Pan, and R. Xia, “E-commerce product review sentiment classification based on a naïve Bayes continuous learning framework,” Information Processing & Management, vol. 57, no. 5, p. 102221, Sep. 2020, doi: 10.1016/j.ipm.2020.102221.
P. R. Kanna and P. Pandiaraja, “An Efficient Sentiment Analysis Approach for Product Review using Turney Algorithm,” Procedia Computer Science, vol. 165, pp. 356–362, Jan. 2019, doi: 10.1016/j.procs.2020.01.038.
A. Perera and P. Fernando, “Cyberbullying Detection System on Social Media Using Supervised Machine Learning,” Procedia Computer Science, vol. 239, pp. 506–516, Jan. 2024, doi: 10.1016/j.procs.2024.06.200.
S. Sihab-Us-Sakib, Md. R. Rahman, Md. S. A. Forhad, and Md. A. Aziz, “Cyberbullying detection of resource constrained language from social media using transformer-based approach,” Natural Language Processing Journal, vol. 9, p. 100104, Dec. 2024, doi: 10.1016/j.nlp.2024.100104.
F. R. Sayed, E. H. Elnashar, and F. A. Omara, “Cyberbullying detection in social media using natural language processing,” Scientific African, vol. 28, p. e02713, Jun. 2025, doi: 10.1016/j.sciaf.2025.e02713.
DOI: https://doi.org/10.47738/jads.v7i3.1337
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)