A sentiment analysis of the Black Lives Matter movement using Twitter

Jacqueline Peng, Jun Shen Fung, Muhammad Murtaza, Afnan Rahman, Pallav Walia, David Obande, Anish R. Verma
{"title":"A sentiment analysis of the Black Lives Matter movement using Twitter","authors":"Jacqueline Peng, Jun Shen Fung, Muhammad Murtaza, Afnan Rahman, Pallav Walia, David Obande, Anish R. Verma","doi":"10.17975/sfj-2022-015","DOIUrl":null,"url":null,"abstract":"As more attention is brought to the issue of racial injustice, public sentiments and opinions on racial issues are increasingly important to track. At the same time, recent progress in machine learning and natural language processing methods, coupled with the growing amount of available data for training and analysis, allows researchers to extract sentiments from text data at large scales. We applied a natural language processing framework to study public sentiment surrounding the Black Lives Matter (BLM) movement. Specifically, we used a state-of-the-art BERT model fine-tuned for Twitter sentiment classification to predict the sentiment from approximately 1 million tweets from July 2013 to March 2021 related to BLM. The BERT model was trained on the Sentiment 140 dataset on which it obtained an AUC of 0.97 on the training data and 0.94 on testing data, outperforming other machine learning models. We found that retweet frequency and word count frequency were able to illustrate important themes in the BLM movement as well as indicate events of significant importance to the movement. Additionally, sentiment analysis revealed which of these themes and events were associated with positive public sentiment, such as social justice, and which were associated with negative sentiment, such as police brutality. Our analyses can also be applied to better understand other social and political movements to aid related research and activism.","PeriodicalId":268438,"journal":{"name":"STEM Fellowship Journal","volume":"90 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-09-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"STEM Fellowship Journal","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.17975/sfj-2022-015","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

As more attention is brought to the issue of racial injustice, public sentiments and opinions on racial issues are increasingly important to track. At the same time, recent progress in machine learning and natural language processing methods, coupled with the growing amount of available data for training and analysis, allows researchers to extract sentiments from text data at large scales. We applied a natural language processing framework to study public sentiment surrounding the Black Lives Matter (BLM) movement. Specifically, we used a state-of-the-art BERT model fine-tuned for Twitter sentiment classification to predict the sentiment from approximately 1 million tweets from July 2013 to March 2021 related to BLM. The BERT model was trained on the Sentiment 140 dataset on which it obtained an AUC of 0.97 on the training data and 0.94 on testing data, outperforming other machine learning models. We found that retweet frequency and word count frequency were able to illustrate important themes in the BLM movement as well as indicate events of significant importance to the movement. Additionally, sentiment analysis revealed which of these themes and events were associated with positive public sentiment, such as social justice, and which were associated with negative sentiment, such as police brutality. Our analyses can also be applied to better understand other social and political movements to aid related research and activism.
利用推特对“黑人的命也是命”运动进行情绪分析
随着对种族不公正问题的关注越来越多,公众对种族问题的情绪和意见越来越重要。与此同时,机器学习和自然语言处理方法的最新进展,加上用于训练和分析的可用数据数量的增加,使研究人员能够大规模地从文本数据中提取情感。我们应用自然语言处理框架来研究围绕黑人生命问题(BLM)运动的公众情绪。具体来说,我们使用了最先进的BERT模型,对Twitter情绪分类进行了微调,以预测2013年7月至2021年3月期间与BLM相关的大约100万条推文的情绪。BERT模型在Sentiment 140数据集上进行了训练,在训练数据上获得了0.97的AUC,在测试数据上获得了0.94的AUC,优于其他机器学习模型。我们发现,转发频率和字数统计频率能够说明BLM运动中的重要主题,并表明对运动具有重要意义的事件。此外,情绪分析还揭示了这些主题和事件中哪些与积极的公众情绪有关,比如社会正义,哪些与消极的公众情绪有关,比如警察暴行。我们的分析也可以用于更好地理解其他社会和政治运动,以帮助相关的研究和行动主义。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
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学术官方微信