Offensive Text Detection on Social Media Using Machine Learning

People are social creatures, people of all ages use social media to engage with one another. But not everything that circulates on social media is suitable for all ages; some content, such hate speech, bullying, and cursing, can be harmful to users' mental and physical health. Thus, the necessity for a social media content filtering tool arises. To solve this problem, the researcher proposed a model to classify English tweets by implementing machine learning algorithms specifically Random Forest Classifier, SVM, XGboost, Logistic Regression were used to detect and classify offensive text messages. In this case, dataset were extracted by using countvectorizer algorithm, the researchers also apply data cleaning to remove stop words, punctuation, url and prefix that come from the dataset. Because the imbalance of the dataset the researchers try to fix by using undersampling technique. The best result of the experiments are Random Forest Classifier perform 0.8808 accuracy.

Authors

Institutions

Publication Details

Published
2024-10-17
DOI
https://doi.org/10.1109/ceria64726.2024.10914797
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

Offensive Text Detection on Social Media Using Machine Learning

Ivan Sebastian Edbert, Derwin Suhartono, Jesslyn Tanuwijaya, Hans Christian Arinardi
Hate Speech and Cyberbullying Detection
article

Offensive Text Detection on Social Media Using Machine Learning

Ivan Sebastian Edbert, Derwin Suhartono, Jesslyn Tanuwijaya, Hans Christian Arinardi
article en

Abstract

People are social creatures, people of all ages use social media to engage with one another. But not everything that circulates on social media is suitable for all ages; some content, such hate speech, bullying, and cursing, can be harmful to users' mental and physical health. Thus, the necessity for a social media content filtering tool arises. To solve this problem, the researcher proposed a model to classify English tweets by implementing machine learning algorithms specifically Random Forest Classifier, SVM, XGboost, Logistic Regression were used to detect and classify offensive text messages. In this case, dataset were extracted by using countvectorizer algorithm, the researchers also apply data cleaning to remove stop words, punctuation, url and prefix that come from the dataset. Because the imbalance of the dataset the researchers try to fix by using undersampling technique. The best result of the experiments are Random Forest Classifier perform 0.8808 accuracy.

Binus University (ID)
Openalex Percentile: Top 74%
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.