Cyberbullying detection in social media using natural language processing

Recently, the popularity of social media has significantly increased, leading to a rise in cases of cyberbullying. Many instances of cyberbullying can be found in comments and posts on social media platforms such as Twitter, often causing significant emotional and psychological distress. Therefore, it is crucial to identify cyberbullying messages as early as possible to mitigate their impact. This paper introduces a model for detecting cyberbullying by combining Machine Learning (ML) classifiers with Natural Language Processing (NLP) techniques. The study utilizes a dataset of 39,870 Twitter posts and comments, categorized into five types of cyberbullying: religion, age, gender, ethnicity bullying, and non-cyberbullying. The proposed model aims to train ML classifiers after being processed using NLP techniques. It has been implemented using five ML classifiers; Random Forest, Support Vector Machine, Logistic Regression, Naïve Bayes, and K-Nearest Neighbor. According to the implementation results, it is found that Random Forest classifier, Support Vector Machine classifier, Logistic Regression classifier, Naive-Bayes classifier, and K-Nearest Neighbor classifier achieve accuracy rates of 94 %, 93 %, 92 %, 92 %, and 73 % respectively. Therefore, Random Forest classifier achieves the highest accuracy and performs better than other classifiers. In contrast, K-Nearest Neighbor classifier achieves the lowest accuracy.

Authors

Institutions

Publication Details

Journal
Scientific African
Published
2025-04-21
DOI
https://doi.org/10.1016/j.sciaf.2025.e02713
Citations
6
Primary Topic
Hate Speech and Cyberbullying Detection
Type
article
Field-Weighted Citation Impact
14.89
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Cyberbullying detection in social media using natural language processing

Fawzya Ramadan Sayed, Fatma A. Omara, Eman Hassan Elnashar
6 citations
Scientific African
Hate Speech and Cyberbullying Detection
14.89
article

Cyberbullying detection in social media using natural language processing

Fawzya Ramadan Sayed, Fatma A. Omara, Eman Hassan Elnashar
article en
6 citations

Abstract

Recently, the popularity of social media has significantly increased, leading to a rise in cases of cyberbullying. Many instances of cyberbullying can be found in comments and posts on social media platforms such as Twitter, often causing significant emotional and psychological distress. Therefore, it is crucial to identify cyberbullying messages as early as possible to mitigate their impact. This paper introduces a model for detecting cyberbullying by combining Machine Learning (ML) classifiers with Natural Language Processing (NLP) techniques. The study utilizes a dataset of 39,870 Twitter posts and comments, categorized into five types of cyberbullying: religion, age, gender, ethnicity bullying, and non-cyberbullying. The proposed model aims to train ML classifiers after being processed using NLP techniques. It has been implemented using five ML classifiers; Random Forest, Support Vector Machine, Logistic Regression, Naïve Bayes, and K-Nearest Neighbor. According to the implementation results, it is found that Random Forest classifier, Support Vector Machine classifier, Logistic Regression classifier, Naive-Bayes classifier, and K-Nearest Neighbor classifier achieve accuracy rates of 94 %, 93 %, 92 %, 92 %, and 73 % respectively. Therefore, Random Forest classifier achieves the highest accuracy and performs better than other classifiers. In contrast, K-Nearest Neighbor classifier achieves the lowest accuracy.

Scientific AfricanVol. 28
Cairo University (EG), Fayoum University (EG)
Openalex Percentile: Top 1%
Hate Speech and Cyberbullying Detection
14.89
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.