Sentiment Analysis to Detect Cyberbullying on Twitter

IF 3 Q1 PSYCHOLOGY, MULTIDISCIPLINARY
Avuzwa Lerotholi, Ibidun Christiana Obagbuwa
{"title":"Sentiment Analysis to Detect Cyberbullying on Twitter","authors":"Avuzwa Lerotholi,&nbsp;Ibidun Christiana Obagbuwa","doi":"10.1155/hbe2/5419912","DOIUrl":null,"url":null,"abstract":"<p>Over the last four decades, as populations around the world have expanded their use of social networks, cyberbullying incidents have likewise risen. Although social networks, including Twitter (now known as X), provide numerous benefits, such as quick communication with people both locally and globally, they also have negative consequences, the most common of which is cyberbullying. Studies show that users who have experienced cyberbullying have more negative feelings about themselves than those who have not. Thus, having technology that can effectively detect cyberbullying instances on social networks, such as Twitter, flag them and find ways to prevent them in the future is of utmost importance. This paper evaluates the available literature on utilising sentiment analysis to detect cases of cyberbullying. The research then explores sentiment analysis by constructing a machine learning model and training and testing the model using a dataset from Twitter. The algorithms used are naive Bayes, recurrent neural network (RNN) and support vector machine (SVM). These are all built on Python with the aid of existing Python libraries. The models are then evaluated to establish their performance, including the recall score, which measures false negatives. A performance comparison is carried out across the three models to find the most suitable algorithm for the task. The SVM, RNN and naive Bayes achieved accuracy scores of 91.37%, 90.59% and 83.62%, respectively. The results reveal that the SVM algorithm consistently outperformed the other two in detecting cyberbullying tweets. SVM has the potential to alter the way social media platforms and online communities moderate content, offering a strong balance of performance, speed and interpretability, making it well-suited for real-time cyberbullying detection on large-scale platforms. This allows for faster intervention to safeguard users, particularly vulnerable persons, from harassment and abuse, resulting in safer digital environments and improved overall user well-being.</p>","PeriodicalId":36408,"journal":{"name":"Human Behavior and Emerging Technologies","volume":"2025 1","pages":""},"PeriodicalIF":3.0000,"publicationDate":"2025-10-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1155/hbe2/5419912","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Human Behavior and Emerging Technologies","FirstCategoryId":"1085","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1155/hbe2/5419912","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"PSYCHOLOGY, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0

Abstract

Over the last four decades, as populations around the world have expanded their use of social networks, cyberbullying incidents have likewise risen. Although social networks, including Twitter (now known as X), provide numerous benefits, such as quick communication with people both locally and globally, they also have negative consequences, the most common of which is cyberbullying. Studies show that users who have experienced cyberbullying have more negative feelings about themselves than those who have not. Thus, having technology that can effectively detect cyberbullying instances on social networks, such as Twitter, flag them and find ways to prevent them in the future is of utmost importance. This paper evaluates the available literature on utilising sentiment analysis to detect cases of cyberbullying. The research then explores sentiment analysis by constructing a machine learning model and training and testing the model using a dataset from Twitter. The algorithms used are naive Bayes, recurrent neural network (RNN) and support vector machine (SVM). These are all built on Python with the aid of existing Python libraries. The models are then evaluated to establish their performance, including the recall score, which measures false negatives. A performance comparison is carried out across the three models to find the most suitable algorithm for the task. The SVM, RNN and naive Bayes achieved accuracy scores of 91.37%, 90.59% and 83.62%, respectively. The results reveal that the SVM algorithm consistently outperformed the other two in detecting cyberbullying tweets. SVM has the potential to alter the way social media platforms and online communities moderate content, offering a strong balance of performance, speed and interpretability, making it well-suited for real-time cyberbullying detection on large-scale platforms. This allows for faster intervention to safeguard users, particularly vulnerable persons, from harassment and abuse, resulting in safer digital environments and improved overall user well-being.

Abstract Image

情感分析检测Twitter上的网络欺凌
在过去的四十年里,随着世界各地的人们越来越多地使用社交网络,网络欺凌事件也同样增多。尽管包括Twitter(现在被称为X)在内的社交网络提供了许多好处,比如与本地和全球的人们快速沟通,但它们也有负面影响,其中最常见的是网络欺凌。研究表明,经历过网络欺凌的用户比没有经历过的人对自己有更多的负面情绪。因此,拥有能够有效检测社交网络(如Twitter)上的网络欺凌实例的技术,标记它们并找到预防它们的方法是至关重要的。本文评估了利用情感分析来检测网络欺凌案件的现有文献。然后,该研究通过构建一个机器学习模型,并使用来自Twitter的数据集训练和测试该模型来探索情感分析。使用的算法有朴素贝叶斯、递归神经网络(RNN)和支持向量机(SVM)。这些都是在现有Python库的帮助下在Python上构建的。然后对这些模型进行评估,以确定它们的性能,包括衡量假阴性的回忆分数。在三个模型之间进行性能比较,以找到最适合任务的算法。SVM、RNN和朴素贝叶斯的准确率分别为91.37%、90.59%和83.62%。结果表明,SVM算法在检测网络欺凌推文方面始终优于其他两种算法。支持向量机有可能改变社交媒体平台和在线社区对内容的调节方式,在性能、速度和可解释性方面提供了强有力的平衡,使其非常适合大规模平台上的实时网络欺凌检测。这样就可以更快地进行干预,保护用户,特别是弱势群体,免受骚扰和虐待,从而建立更安全的数字环境,改善用户的整体福祉。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Human Behavior and Emerging Technologies
Human Behavior and Emerging Technologies Social Sciences-Social Sciences (all)
CiteScore
17.20
自引率
8.70%
发文量
73
期刊介绍: Human Behavior and Emerging Technologies is an interdisciplinary journal dedicated to publishing high-impact research that enhances understanding of the complex interactions between diverse human behavior and emerging digital technologies.
×
引用
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学术文献互助群
群 号:604180095
Book学术官方微信