{"title":"情感分析检测Twitter上的网络欺凌","authors":"Avuzwa Lerotholi, 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":"{\"title\":\"Sentiment Analysis to Detect Cyberbullying on Twitter\",\"authors\":\"Avuzwa Lerotholi, 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}","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}
Sentiment Analysis to Detect Cyberbullying on Twitter
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.
期刊介绍:
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.