Cyberbullying detection in social media using natural language processing

IF 2.7 Q2 MULTIDISCIPLINARY SCIENCES
Fawzya Ramadan Sayed , Eman Hassan Elnashar , Fatma A. Omara
{"title":"Cyberbullying detection in social media using natural language processing","authors":"Fawzya Ramadan Sayed ,&nbsp;Eman Hassan Elnashar ,&nbsp;Fatma A. Omara","doi":"10.1016/j.sciaf.2025.e02713","DOIUrl":null,"url":null,"abstract":"<div><div>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.</div></div>","PeriodicalId":21690,"journal":{"name":"Scientific African","volume":"28 ","pages":"Article e02713"},"PeriodicalIF":2.7000,"publicationDate":"2025-04-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Scientific African","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2468227625001838","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"MULTIDISCIPLINARY SCIENCES","Score":null,"Total":0}
引用次数: 0

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.
基于自然语言处理的社交媒体网络欺凌检测
最近,社交媒体的普及程度显著提高,导致网络欺凌案件增加。在推特等社交媒体平台上的评论和帖子中可以找到许多网络欺凌的例子,往往会造成严重的情绪和心理困扰。因此,尽早识别网络欺凌信息以减轻其影响至关重要。本文介绍了一种结合机器学习(ML)分类器和自然语言处理(NLP)技术的网络欺凌检测模型。该研究利用了39,870条推特帖子和评论的数据集,将网络欺凌分为五种类型:宗教、年龄、性别、种族欺凌和非网络欺凌。提出的模型旨在使用NLP技术处理后训练ML分类器。它已经使用五个ML分类器实现;随机森林,支持向量机,逻辑回归,Naïve贝叶斯和k近邻。根据实现结果,随机森林分类器、支持向量机分类器、逻辑回归分类器、朴素贝叶斯分类器和k近邻分类器的准确率分别达到94%、93%、92%、92%和73%。因此,随机森林分类器的准确率最高,性能优于其他分类器。相比之下,k近邻分类器的准确率最低。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Scientific African
Scientific African Multidisciplinary-Multidisciplinary
CiteScore
5.60
自引率
3.40%
发文量
332
审稿时长
10 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信