Hateful Sentiment Detection in Real-Time Tweets: An LSTM-Based Comparative Approach

作者
Sanjiban Sekhar Roy,Akash Roy,Pijush Samui,Mostafa Gandomi,Amir H. Gandomi
出处
期刊:IEEE Transactions on Computational Social Systems [Institute of Electrical and Electronics Engineers]
卷期号:11 (4): 5028-5037 被引量:42
标识
DOI:10.1109/tcss.2023.3260217
摘要

It is undeniable that social media has improved our lives in many ways, like allowing interactions with others all over the world and network expansion for businesses. However, there are detrimental effects of such accessibility, including the rapid spread of hate through offensive messages typically directed toward gender, religion, race, and disability, which can cause psychological harm. To address this problem of social media, many researchers have recently proposed various algorithms powered by machine learning (ML) and deep learning for the detection of hate speech. This work proposes a hate speech detection model based on long-short term memory (LSTM), using term frequency inverse document frequency (TF-IDF) vectorization, and makes comparisons with support vector machine (SVM), Naïve Bayes (NB), logistic regression (LR), XGBoost (XGB), random forest (RF),$K$-nearest neighbor ($k$-NN), artificial neural network (ANN), and bidirectional encoder representations from transformers (BERT) models. To validate and authenticate our proposed work, we obtained and classified a real-time Twitter data stream of a trending topic using Twitter API into two classes: hate speech and nonhate speech. The precision, recall, and$F$1 score achieved by LSTM are 0.98, 0.99, and 0.98, respectively. The accuracy of LSTM for detecting hateful sentiment was found to be 97%, surpassing the accuracy of other models.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
寒耒发布了新的文献求助10
刚刚
xiaolizi的应助被学术雷锋采纳,获得50
刚刚
1秒前
1秒前
fantasy发布了新的文献求助10
1秒前
enjoy完成签到,获得积分10
1秒前
2秒前
2秒前
2秒前
2秒前
圣人发布了新的文献求助10
2秒前
上官若男的应助被Jei采纳,获得10
2秒前
勤劳怜寒发布了新的文献求助20
2秒前
研友_8oYvgn发布了新的文献求助10
2秒前
单薄紫菱发布了新的文献求助10
3秒前
LT发布了新的文献求助10
3秒前
3秒前
3秒前
满意的小蚂蚁完成签到,获得积分10
3秒前
jhfiuaew777完成签到,获得积分20
4秒前
852的应助被ze采纳,获得10
4秒前
imine发布了新的文献求助10
4秒前
5秒前
有点想不通完成签到,获得积分10
5秒前
5秒前
橘子味的橙子完成签到,获得积分10
5秒前
美燕发布了新的文献求助10
5秒前
FashionBoy的应助被风趣小松鼠采纳,获得10
5秒前
bkagyin的应助被满意的灵枫采纳,获得10
6秒前
spurt完成签到 ,获得积分10
6秒前
YH完成签到,获得积分10
7秒前
新来的家伙完成签到,获得积分10
7秒前
苦茶发布了新的文献求助10
7秒前
7秒前
默默初阳的应助被一叹采纳,获得10
7秒前
Wangyankun关注了科研通微信公众号
7秒前
7秒前
李健的应助被不学采纳,获得10
8秒前
nananana完成签到 ,获得积分10
8秒前
LT完成签到,获得积分10
8秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Energie-Contracting 1500
Spec 401: Standards for Jet Fuel Facility and Equipment Commissioning and Flushing at Airports, 2026.1 (Original Issue) 1000
Spec 103: Standard for Jet Fuel Quality Control at Airports, Revision 2026.1 1000
Klimaschutzrecht durch den Energiesektor im Mehrebenensystem – Ein Rechtsvergleich 1000
Introduction to Industrial/Organizational Psychology 800
Topological Photonics: Fundamentals and Applications 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8094479
求助须知:如何正确求助?哪些是违规求助? 9506113
关于积分的说明 21452268
捐赠科研通 7668121
什么是DOI,文献DOI怎么找? 3405995
关于科研通互助平台的介绍 2534035
邀请新用户注册赠送积分活动 2445234