Polarity Analysis of Dynamic Political Sentiments from Tweets with Deep Learning Method
Chang Chengyang1,Wang Xiaodong1(),Zhang Shenglei2
1College of Computer Science, National University of Defence Technology, Changsha 410073, China 2Staff of the Space Systems Department, Strategic Support Force, Beijing 100094, China
[Objective] This paper studies the polarity of dynamic political sentiments from U.S. politicians’ tweets, aiming to analyze the future directions of U.S. politics and the China-US relations. [Methods] First, we proposed a framework combining multiple deep learning models. Then, we constructed tweet dataset from politicians and obtained a multi-classifier for sentiment polarity. Third, we added the tweets’ time characteristics to find the dynamic political sentiment polarity. [Results] We examined our framework with tweets from 20 U.S. governors and senators. Its accuracy reached 80.66%, which was 8.07% higher than that of the traditional artificial neural network method. The success rate of sentiment polarity analysis was 75%. [Limitations] The analysis of dynamic political sentiment polarity depends on the regular update and iteration of the data set, otherwise the accuracy and effectiveness of the model will decrease with the change of time; political sentiment polarity is affected by many factors, and the emotional content of politicians’ tweets may be different from the real political tendency they represent, which will lead to a certain degree of misjudgment of the model. [Conclusions] The proposed method helps intelligence analysts effectively obtain polarity of dynamic political sentiments from massive Twitter text data.
常城扬,王晓东,张胜磊. 基于深度学习方法对特定群体推特的动态政治情感极性分析*[J]. 数据分析与知识发现, 2021, 5(3): 121-131.
Chang Chengyang,Wang Xiaodong,Zhang Shenglei. Polarity Analysis of Dynamic Political Sentiments from Tweets with Deep Learning Method. Data Analysis and Knowledge Discovery, 2021, 5(3): 121-131.
John Bolton, Donald Trump, Mike Pence, RoBert O’brien, Mike Pompeo, Steven Mnuchin
类别2: 温和反对派
Congressmen Frank Palone, Congressman Eric Swawell, Senator Richard Blumenthal
类别3: 直接竞争派
Joe Biden, Congressmen Adam Schiff, Senator Bernie Sanders, Speakers Nancy Pelosi
类别4: 客观温和派
Governor Gretchen Whitmer, Senator Kamala Harris, Lawrence H. Summers, Governor Andrew Cuomo, Sally Yates, Senator Maria Cantwell, Senator Edward Markey, Senator Elizabeth Warren
Table 1 数据集选择的各类别政治家名单
推文内容
标签
Enforcers must stop scammers and bottom feeders from exploiting COVID-19 and endangering health. False pitches and sky-high price hikes should be halted and prosecuted.
1
Enjoyed talking davidgura at Select USA summit. Tax reform trade and regulation rollback are critical to serve hardworking Americans.
0
President Trump may be a slick salesman who fooled many people in this country, but you didn’t fool me and you didn’t fool New Yorkers.
3
With respect, Mr. President, not sure we can rely on Mr. Manafort’s lawyer to tell us whether there was collusion, as unbiased as he may be.
By withdrawing from the Open Skies Treaty, Pres. Trump is barreling down a path that makes us less secure,... I urge the President to reverse this reckless decision.
['2020-05-14']
...With limited supplies, I'm calling on the Trump administration to be transparent with the American people about how this drug will be distributed.
Table 8 参议员沙欣的部分推文
Fig.2 以2020年3月20日为特殊事件时间节点的动态政治情感分析结果
[1]
Twitter , Inc . Financial Information 2020 Annual Report[EB/OL]. https://investor.twitterinc.com/financial-information/default.aspx.
[2]
Bermingham A, Smeaton A F. On Using Twitter to Monitor Political Sentiment and Predict Election Results[C]// Proceedings of the Workshop on Sentiment Analysis Where AI Meets Psychology (SAAIP 2011). 2011: 2-10.
( Liu Zhiming, Liu Lu. Empirical Study of Sentiment Classification for Chinese Microblog Based on Machine Learning[J]. Computer Engineering and Applications, 2012,48(1):1-4.)
[4]
Yang Z C, Yang D Y, Dyer C, et al. Hierarchical Attention Networks for Document Classification[C]// Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 2016: 1480-1489.
[5]
Kim Y. Convolutional Neural Networks for Sentence Classification[C]// Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). 2014: 1746-1751.
[6]
Kalchbrenner N, Grefenstette E, Blunsom P. A Convolutional Neural Network for Modelling Sentences[C]// Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2014: 655-665.
[7]
Yin W P, Schütze H. Multichannel Variable-Size Convolution for Sentence Classification[OL]. arXiv Preprint, arXiv: 1603. 04513.
[8]
Tai K S, Socher R, Manning C D. Improved Semantic Representations from Tree-Structured Long Short-Term Memory Networks[OL]. arXiv Preprint, arXiv: 1503. 00075.
[9]
Ding Z X, Xia R, Yu J F, et al. Densely Connected Bidirectional LSTM with Applications to Sentence Classification[C]// Proceedings of CCF International Conference on Natural Language Processing and Chinese Computing. Springer, Cham, 2018: 278-287.
[10]
Zhou C T, Sun C L, Liu Z Y, et al. A C-LSTM Neural Network for Text Classification[OL]. arXiv Preprint, arXiv: 1511. 08630.
[11]
Lai S W, Xu L H, Liu K, et al. Recurrent Convolutional Neural Networks for Text Classification[C]// Proceedings of the 29th AAAI Conference on Artificial Intelligence. 2015: 2267-2273.
[12]
Socher R, Perelygin A, Wu J, et al. Recursive Deep Models for Semantic Compositionality over a Sentiment Treebank[C]// Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing. 2013: 1631-1642.
[13]
Li X, Roth D. Learning Question Classifiers[C]// Proceedings of the 19th International Conference on Computational Linguistics. 2002: 1-7.
( Wang Zhihui, Wang Xiaodong. Research on Text Classification Method Based on Neural Network[J]. Computer Engineering, 2020,46(3):11-17.)
[15]
Reddy D M, Reddy N V S. Twitter Sentiment Analysis Using Distributed Word and Sentence Representation[OL]. arXiv Preprint, arXiv: 1904. 12580.
[16]
Dunnmon J, Ganguli S, Hau D, et al. Predicting State-Level Agricultural Sentiment with Tweets from Farming Communities[OL]. arXiv Preprint,arXiv: 1902. 07087.
[17]
Dai X F, Bikdash M, Meyer B. From Social Media to Public Health Surveillance: Word Embedding Based Clustering Method for Twitter Classification[C]// Proceedings of SoutheastCon 2017. DOI: 10.1109/SECON.2017.7925400.
[18]
Gencoglu O. Deep Representation Learning for Clustering of Health Tweets[OL]. arXiv Preprint,arXiv: 1901. 00439.
[19]
Biseda B, Mo K. Enhancing Pharmacovigilance with Drug Reviews and Social Media[OL]. arXiv Preprint,arXiv: 2004. 08731.
[20]
Devlin J, Chang M W, Lee K, et al. BERT: Pre-Training of Deep Bidrectional Transformers for Language Understanding[C]// Proceedings of NAACL-HLT 2019. 2019:4171-4186.
[21]
Lee J, Yoon W, Kim S, et al. BioBERT: a Pre-Trained Biomedical Language Representation Model for Biomedical Text Mining[J]. Bioinformatics, 2019,36(4). DOI: 10.1093/bioinformatics/btz682.
pmid: 31584610
[22]
Nikfarjam A, Sarker S, O’Connor K, et al. Pharmacovigilance from Social Media: Mining Adverse Drug Reaction Mentions Using Sequence Labeling with Word Embedding Cluster Features[J]. Journal of the American Medical Informatics Association, 2015,22(3):671-681.
doi: 10.1093/jamia/ocu041
pmid: 25755127
[23]
Müller M, Salathé M, Kummervold P E. COVID-Twitter-BERT: A Natural Language Processing Model to Analyse COVID-19 Content on Twitter[OL]. arXiv Preprint,arXiv: 2005. 07503.
[24]
Yin H, Yang S Q, Li J X. Detecting Topic and Sentiment Dynamics Due to COVID-19 Pandemic Using Social Media[OL]. arXiv Preprint,arXiv: 2007. 02304.
[25]
Hutto C J, Gilbert E. VADER: A Parsimonious Rule-Based Model for Sentiment Analysis of Social Media Text[C]// Proceedings of the 8th International AAAI Conference on Weblogs and Social Media. 2014.
( Xiong Shufeng, Ji Donghong. A Short Text Sentiment-Topic Model for Product Review Analysis[J]. Acta Automatica Sinica, 2016,42(8):1227-1237.)
[28]
Gupta V, Aggarwal A, Chakraborty T. Detecting and Characterizing Extremist Reviewer Groups in Online Product Reviews[J]. IEEE Transactions on Computational Social Systems, 2020,7(3):741-750.
[29]
Minaee S, Azimi E, Abdolrashidi A A. Deep-Sentiment: Sentiment Analysis Using Ensemble of CNN and Bi-LSTM Models[OL]. arXiv Preprint, arXiv: 1904. 04206.