Hate Speech and Offensive Content Detection Using Machine Learning

Social media offers global connectivity but also facilitates the spread of hate speeches and lacks offensive language, creating tremendous challenges. Since user-generated content is voluminous, manual moderation using the input is virtually impossible, hence machines' learning (ML) solutions are conceivably essential. The present work assesses five ML models for automatically detecting hate speech, classifying tweets into three classes, namely hate speech, offense language, or neutral speech. Out of 24,783 tweets, XGBoost achieved the highest accuracy, became the best model. For interpretability, feature importance, confusion matrices, and visualization techniques such as word clouds and tweet-length distributions were investigated. While ML models effectively classify the texts, detecting implicit hate speech and multilingual content remains a hurdle. Future work should seek to investigate better models and contextual analysis for safer spaces for interactions on the Internet.

Authors

Publication Details

Journal
International Journal of Advanced Research in Science Communication and Technology
Published
2025-02-22
DOI
https://doi.org/10.48175/ijarsct-23344
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

Hate Speech and Offensive Content Detection Using Machine Learning

Mr. Mihir Parekh, Pallavi Devendra Tawde
International Journal of Advanced Research in Science Communication and Technology
Hate Speech and Cyberbullying Detection
article

Hate Speech and Offensive Content Detection Using Machine Learning

Mr. Mihir Parekh, Pallavi Devendra Tawde
article en

Abstract

Social media offers global connectivity but also facilitates the spread of hate speeches and lacks offensive language, creating tremendous challenges. Since user-generated content is voluminous, manual moderation using the input is virtually impossible, hence machines' learning (ML) solutions are conceivably essential. The present work assesses five ML models for automatically detecting hate speech, classifying tweets into three classes, namely hate speech, offense language, or neutral speech. Out of 24,783 tweets, XGBoost achieved the highest accuracy, became the best model. For interpretability, feature importance, confusion matrices, and visualization techniques such as word clouds and tweet-length distributions were investigated. While ML models effectively classify the texts, detecting implicit hate speech and multilingual content remains a hurdle. Future work should seek to investigate better models and contextual analysis for safer spaces for interactions on the Internet.

International Journal of Advanced Research in Science Communication and Technology
Openalex Percentile: Top 99%
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.