Sentiment Analysis For Cyberbullying Detection Using NLP And LSTM

Authors

  • Syed Burhan Ahmed B.E.Students ;Department Of Artificial Intelligence & Data Science Engineering, ISL Engineering College, Hyderabad. India. Author
  • Mohd Ateeq B.E.Students ;Department Of Artificial Intelligence & Data Science Engineering, ISL Engineering College, Hyderabad. India. Author
  • Mohd Abbu B.E.Students ;Department Of Artificial Intelligence & Data Science Engineering, ISL Engineering College, Hyderabad. India. Author
  • Dr. Syed Asadulla Hussaini Associate Professor, Department Of Artificial Intelligence & Data Science Engineering, ISL Engineering College, Hyderabad. India. Author

DOI:

https://doi.org/10.63665/pekxtj61

Keywords:

Cyberbullying Detection, Natural Language Processing (NLP), Long Short-Term Memory (LSTM), Deep Learning, Text Classification, Sentiment Analysis, Social Media Analytics, Text Preprocessing, Word Embeddings, Multi-Class Classification.

Abstract

 The phenomenon of cyberbullying has emerged as a critical challenge in the digital landscape, posing detrimental effects on individuals and broader societal well-being. A practical solution to this widespread issue involves the accurate identification of cyberbullying within social media platforms, which constitute a significant share of digital communication. While traditional approaches have primarily utilized machine learning algorithms and pre-trained language models, these often face challenges such as high computational complexity and limited adaptability to nuanced linguistic patterns. This paper proposes an advanced framework that leverages Natural Language Processing (NLP) techniques combined with Long Short-Term Memory (LSTM) networks to improve cyberbullying detection in online text. The framework applies refined text preprocessing steps—such as tokenization, stop word removal, stemming, and lemmatization—to ensure high-quality and noise-free input data. Sentiment features and contextual patterns are extracted using embedding methods to preserve semantic information. These processed inputs are then fed into an LSTM model, which effectively captures the sequential and temporal dependencies in textual data, making it well-suited for understanding the dynamic nature of cyberbullying language. Additionally, to address class imbalance in the multi-class setting, resampling techniques are employed, improving the model's robustness without inducing bias. The proposed system demonstrates that combining deep learning with comprehensive NLP enhances the accuracy and contextual understanding required for effective cyberbullying detection.

Downloads

Download data is not yet available.

References

[1]R. Gün and G. G. Akduman, "What is cyberbullying?" in Bullying in Media and Beyond. Turkey: IGI Global, pp. 473-485, doi: 10.4018/978-1 6684-5426-8.CH028.

[2] Y. Hu, E. M. Clancy, and B. Klettke, "Understanding the vicious cycle: Relationships between nonconsensual sexting behaviours and cyberbullying perpetration," Sexes, vol. 4, no. 1, pp. 155—166, Feb. 2023, doi: 10.3390/sexes4010013.

[3] E. I. Galyashina and V. D. Nikishin, "The concepts of aggressive information impact through the lens of internet users' worldview security," J. Siberian Federal Univ. Humanities Social Sci., vol. 14, no. Il, pp. 1660-1673, Nov. 2021, doi: 10.17516/1997-1370-0848.

[4] S. Joshi, H. G. Nagariya, N. Dhanotiya, and S. Jain, "Identifying fake profile in online social network: An overview and survey," Commun. Comput. Inf sci., vol. 1240, pp. 17-28, Jan. 2020, doi: 10.1007/978-98115-6315-7 2.

[6] E. Vogels, Teens and Cyberbullying 2022, Pew Research Center, Dec. 23, 2024. This report examines trends in teen cyberbullying and online harassment, providing statistical insights into exposure and frequency. It emphasizes the role of social media in facilitating bullying and the psychological impact on victims. [Online]. Available: https://www.pewresearch.org/internet/2022/12/15/teens-and-cyberbullying-2022/

[7] S. Cook, Cyberbullying Statistics and Facts for 2024, Dec. 23, 2024. This online article provides a comprehensive overview of cyberbullying prevalence, victim demographics, and platform-specific risks. It highlights the increasing trend of harassment on popular social media networks. [Online]. Available: https://www.comparitech.com/internet-providers/cyberbullying-statistics

[8] L. H. Collantes, Y. Martafian, S. N. Khofifah, T. K. Fajarwati, N. T. Lassela, and M. Khairunnisa (2020), The Impact of Cyberbullying on Mental Health of the Victims, Proc. 4th Int. Conf. Vocational Educ. Training (ICOVET), pp. 30–35. This study investigates how cyberbullying negatively affects mental health, identifying stress, anxiety, and social withdrawal as common consequences.

[9] S. Unnava and S. R. Parasana (2024), A Study of Cyberbullying Detection and Classification Techniques: A Machine Learning Approach, Eng. Technol. Appl. Sci. Res., vol. 14, no. 4, pp. 15607–15613. The paper evaluates multiple ML techniques for automated cyberbullying detection, comparing SVM, Random Forest, and Naïve Bayes classifiers.

[10] R. Endsuy (2021), Sentiment Analysis Between VADER and EDA for the U.S. Presidential Election 2020 on Twitter Datasets, J. Appl. Data Sci., vol. 2, no. 1, pp. 8–18. The study explores sentiment analysis models for detecting polarizing language, which can also inform cyberbullying detection strategies.

[11] L. Grunin, G. Yu, and S. S. Cohen (2021), The Relationship Between Youth Cyberbullying Behaviors and Their Perceptions of Parental Emotional Support, Int. J. Bullying Prevention, vol. 3, no. 3, pp. 227–239. This research highlights the protective effect of parental support against cyberbullying incidents.

[12] I. Ali and N. Hameed (2017), Hybrid Tools and Techniques for Sentiment Analysis: A Review, Int. J. Multidisciplinary Sci. Eng., vol. 8, no. 4, pp. 28–33. The paper reviews hybrid sentiment analysis methods and their relevance for identifying harmful online content. [Online]. Available: https://www.researchgate.net/publication/318351105

[13] J. O. Atoum (2020), Cyberbullying Detection Through Sentiment Analysis, Proc. Int. Conf. Comput. Sci. Comput. Intell. (CSCI), pp. 292–297. The study applies sentiment analysis techniques to detect offensive messages on social media platforms.

[14] P. Yi and A. Zubiaga (2023), Session-Based Cyberbullying Detection in Social Media: A Survey, Online Social Netw. Media, vol. 36, Art. no. 100250. This survey categorizes session-based detection approaches and identifies research gaps for real-time detection systems.

[15] T. Ahmed, S. Ivan, M. Kabir, H. Mahmud, and K. Hasan (2022), Performance Analysis of Transformer-Based Architectures and Their Ensembles to Detect Trait-Based Cyberbullying, Social Netw. Anal. Mining, vol. 12, no. 1, p. 99. The paper evaluates transformer models for identifying cyberbullying traits in social media text.

[16] T. Ahmed, M. Kabir, S. Ivan, H. Mahmud, and K. Hasan (2021), Am I Being Bullied on Social Media? An Ensemble Approach to Categorize Cyberbullying, Proc. IEEE Int. Conf. Big Data (Big Data), pp. 2442–2453. This research proposes an ensemble of ML models to improve cyberbullying detection accuracy.

[17] UNICEF (2024), Children at Increased Risk of Harm Online During Global COVID-19 Pandemic, Dec. 24, 2024. [Online]. Available: https://www.unicef.org/press-releases/children-increased-risk-harm-online-during-global-covid-19-pandemic

. The report examines rising risks of online abuse among children during pandemic lockdowns.

[18] D. Javed, N. Z. Jhanjhi, and N. A. Khan (2023), Football Analytics for Goal Prediction to Assess Player Performance, Proc. Int. Conf. Innov. Technol. Sports (RevealDNA ICITS), pp. 245–257. The study applies ML techniques to performance analysis, highlighting data-driven prediction strategies, which relate to sequence modeling used in cyberbullying detection.

[19] D. Javed, N. Z. Jhanjhi, and N. A. Khan (2023), Explainable Twitter Bot Detection Model for Limited Features, Proc. Int. Conf. Green Energy Comput. Intell. Technol. (GEn-CITy), pp. 476–481. The paper emphasizes explainable AI approaches for text classification, relevant for identifying malicious accounts in social media.

[20] D. Javed, N. Jhanjhi, N. A. Khan, S. K. Ray, A. A. Mazroa, F. Ashfaq, and S. R. Das (2024), Towards the Future of Bot Detection: A Comprehensive Taxonomical Review and Challenges on Twitter/X, Comput. Netw., vol. 254, Art. no. 110808. The study reviews bot detection, a critical step for reducing sources of cyberbullying content.

[21] M. Humayun, D. Javed, N. Jhanjhi, M. F. Almufareh, and S. N. Almuayqil (2023), Deep Learning Based Sentiment Analysis of COVID-19 Tweets via Resampling and Label Analysis, Comput. Syst. Sci. Eng., vol. 47, no. 1, pp. 575–591. This paper applies deep learning with resampling techniques, a method also used to address class imbalance in cyberbullying datasets.

[22] M. F. Almufareh, N. Jhanjhi, N. A. Khan, S. N. Almuayqil, M. Humayun, and D. Javed (2024), BertSent: Transformer-Based Model for Sentiment Analysis of Penta-Class Tweet Classification, IEEE Access, vol. 12, pp. 196803–196817. The study presents a transformer-based classifier for multi-class text, improving the detection of online abusive content.

[23] F. Al-Quayed, D. Javed, N. Z. Jhanjhi, M. Humayun, and T. S. Alnusairi (2024), A Hybrid Transformer-Based Model for Optimizing Fake News Detection, IEEE Access, vol. 12, pp. 160822–160834. Although focused on fake news, the hybrid transformer methodology is applicable to cyberbullying detection for semantic understanding.

[42] A. Fernández, S. Garcia, E. Herrera, and N. V. Chawla (2018), SMOTE for Learning from Imbalanced Data: Progress and Challenges, Marking the 15-Year Anniversary, J. Artif. Int., vol. 61, pp. 863–905. The paper provides a foundation for handling imbalanced datasets, which is critical in multi-class cyberbullying detection.

[43] F. Wu, B. Gao, X. Pan, Z. Su, Y. Ji, S. Liu, and Z. Liu (2023), FACapsNet: A Fusion Capsule Network with Congruent Attention for Cyberbullying Detection, Neurocomputing, vol. 542, Art. no. 126253. This model combines attention mechanisms with capsule networks for contextual text classification.

[44] M. I. Mahmud, M. Mamun, and A. Abdelgawad (2022), A Deep Analysis of Textual Features Based Cyberbullying Detection Using Machine Learning, Proc. IEEE Global Conf. Artif. Intell. Internet Things (GCAIOT), pp. 166–170. The paper analyzes textual features and compares ML methods to enhance cyberbullying detection.

[45] S. Tambe, R. Joshi, A. Gupta, N. Kanvinde, and V. Chitre (2022), Effects of Parametric and Non-Parametric Methods on High Dimensional Sparse Matrix Representations, arXiv:2202.02894. The study addresses feature representation techniques, which are important for NLP-based cyberbullying models.

Downloads

Published

2026-04-28

How to Cite

Sentiment Analysis For Cyberbullying Detection Using NLP And LSTM. (2026). International Journal of Multidisciplinary Engineering In Current Research, 11(4s), 312-317. https://doi.org/10.63665/pekxtj61