Optimizing Cyberbullying Detection in Tweets with an Ensemble Learning Framework

The fast spread of social media has resulted in a considerable increase in cyberbullying events, which can have serious psychological consequences for individuals. Detecting and reducing cyberbullying has become a critical job for creating a safer online environment. Traditional approaches for detecting cyberbullying frequently rely on manual moderation, which is inefficient considering the volume of content published daily. As a result, there is an urgent need for automated techniques to properly classifying and managing cyberbullying content. The study focuses on classifying cyberbullying types in tweets using a variety of machine-learning models and an improved stacking ensemble model. After preprocessing the dataset, the text data is cleaned by eliminating URLs, mentions, hashtags, and stop words. The preprocessed text input is then transformed into TF-IDF features to train the models. The tests used a variety of classifiers, including Naive Bayes, Support Vector Machine (SVM), Decision Tree, Random Forest, k-Nearest Neighbors (k-NN), and Gradient Boosting. Each model is trained and assessed to compare its performance in terms of accuracy, precision, recall, and F1 score. To improve classification performance even more, we propose a stacking ensemble model that combines the predictions of these base classifiers with a logistic regression meta-classifier. The ensemble model's hyperparameters are optimized using grid search. The ensemble model performs best, with a classification accuracy of 90.18%.

Authors

Publication Details

Journal
Journal of Informatics Education and Research
Published
2025-07-12
DOI
https://doi.org/10.52783/jier.v5i3.3194
Primary Topic
Hate Speech and Cyberbullying Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing Cyberbullying Detection in Tweets with an Ensemble Learning Framework

Manjeet Singh
Journal of Informatics Education and Research
Hate Speech and Cyberbullying Detection
article

Optimizing Cyberbullying Detection in Tweets with an Ensemble Learning Framework

Manjeet Singh
article en

Abstract

The fast spread of social media has resulted in a considerable increase in cyberbullying events, which can have serious psychological consequences for individuals. Detecting and reducing cyberbullying has become a critical job for creating a safer online environment. Traditional approaches for detecting cyberbullying frequently rely on manual moderation, which is inefficient considering the volume of content published daily. As a result, there is an urgent need for automated techniques to properly classifying and managing cyberbullying content. The study focuses on classifying cyberbullying types in tweets using a variety of machine-learning models and an improved stacking ensemble model. After preprocessing the dataset, the text data is cleaned by eliminating URLs, mentions, hashtags, and stop words. The preprocessed text input is then transformed into TF-IDF features to train the models. The tests used a variety of classifiers, including Naive Bayes, Support Vector Machine (SVM), Decision Tree, Random Forest, k-Nearest Neighbors (k-NN), and Gradient Boosting. Each model is trained and assessed to compare its performance in terms of accuracy, precision, recall, and F1 score. To improve classification performance even more, we propose a stacking ensemble model that combines the predictions of these base classifiers with a logistic regression meta-classifier. The ensemble model's hyperparameters are optimized using grid search. The ensemble model performs best, with a classification accuracy of 90.18%.

Journal of Informatics Education and ResearchVol. 5(3)
Openalex Percentile: Top 92%
Hate Speech and Cyberbullying Detection
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.

Optimizing Cyberbullying Detection in Tweets with an Ensemble Learning Framework — Manjeet Singh · Journal of Informatics Education and Research (2025) | TGRS Research Map | TGRS