Abstract
The field of politics can be greatly aided through the use of natural language processing techniques on places like social media. Twitter hosts extensive discussions on political topics like Social Security and Medicare. We gathered almost 90,000 tweets on Social Security and Medicare for sentiment analysis. Positive sentiment was higher than negative sentiment, and public discussion was polarized with relatively little neutral sentiment. We conducted named entity recognition and found that entities of people and organizations were most prevalent in discussion regardless of sentiment. Topic modeling was also performed, and we determined the dominant topics in tweets. We compared word counts of keywords to the probabilities that each belongs to their respective topic in order to gauge the impact of keywords in their topics. The discussion of Social Security and Medicare on Twitter is objectified through named entity recognition and topic modeling. The experimentation conducted can be broadly applied to politics to better understand objects and themes of key interest in various complex issues that are debated and discussed on Twitter. This study provides a comprehensive structure to the public discussion of Social Security and Medicare on Twitter and assists politicians and lawmakers in making significant, relevant decisions and policies.
Similar content being viewed by others
Data availability
The datasets generated and analyzed during the current study are available from the corresponding author on reasonable request.
References
Ainley E et al (2021) Using twitter comments to understand people’s experiences of UK health care during the COVID-19 pandemic: thematic and sentiment analysis. J Med Internet Res 23(10):e31101
Bermingham A, Smeaton A (2011) On using Twitter to monitor political sentiment and predict election results. In: Proceedings of the workshop on sentiment analysis where AI meets psychology (SAAIP 2011)
Bird S et al (2009) Natural language processing with python. O’reilly, Beijing
Blei DM, Ng AY, Jordan MI (2003) Latent dirichlet allocation. J Mach Learn Res 3:993–1022
Burling R et al (1993) Primate calls, human language, and nonverbal communication [and comments and reply]. Curr Anthropol 34(1):25–53
Deacon TW (1998) The symbolic species: the co-evolution of language and the brain. No. 202. WW Norton & Company, New York
Dunbar R. (1998) Theory of mind and the evolution of language. Approach Evol Lang 92–110
Hauser MD, Yang C, Berwick RC, Tattersal I, Ryan MJ, Watumull J, Lewontin RC (2014) The mystery of language evolution. Front Psychol 5:401
Honnibal M, Ines M (2017) spaCy 2: Natural language understanding with Bloom embeddings, convolutional neural networks and incremental parsing. To Appear 7(1):411–420
Hunter JD (2007) Matplotlib: a 2D graphics environment. Comput Sci Eng 9(03):90–95
Hutto C, and Eric G. (2014) Vader: A parsimonious rule-based model for sentiment analysis of social media text. In: Proceedings of the international AAAI conference on web and social media. Vol. 8. No. 1
Kim SY et al (2021) Public sentiment toward solar energy—opinion mining of twitter using a transformer-based language model. Sustainability 13(5):2673
Laland KN (2017) The origins of language in teaching. Psychon Bull Rev 24:225–231
Lasri I, Anouar R, Mourad E (2023) Self-attention-based bi-LSTM model for sentiment analysis on tweets about distance learning in higher education. Int J Emerg Technol Learn 18(12):119–141
Mittal A, Arpit G (2012) Stock prediction using twitter sentiment analysis. Stanford University, CS229 (2011 https://cs229.stanford.edu/proj2011/GoelMittal-StockMarketPredictionUsingTwitterSentimentAnalysis.pdf) 15:2352
Oesper L et al (2011) WordCloud: a Cytoscape plugin to create a visual semantic summary of networks. Source Code Biol Med 6(1):1–4
Pla F, Hurtado LF (2014) Political tendency identification in twitter using sentiment analysis techniques. In: Proceedings of COLING 2014, the 25th international conference on computational linguistics: Technical Papers
Power C (1998) 7 old wives’ tales: the gossip hypothesis. In: Approaches to the Evolution of Language: Social and Cognitive Bases, Cambridge University Press, p. 111
Rasool A et al (2019) Twitter sentiment analysis: a case study for apparel brands. In: Journal of physics: conference series, vol 1176. No. 2. IOP Publishing
Rehurek R, Petr S (2011) Gensim–python framework for vector space modelling. NLP Centre, Fac Inform, Masaryk Univ, Brno, Czech Repub 3(2):2
Roesslein J (2020) Tweepy: twitter for python! URL: https://github.com/tweepy/tweepy
Sattar NS, Shaikh A (2021) COVID-19 vaccination awareness and aftermath: public sentiment analysis on Twitter data and vaccinated population prediction in the USA. Appl Sci 11(13):6128
Wang H, et al. (2012) A system for real-time twitter sentiment analysis of 2012 us presidential election cycle. In: Proceedings of the ACL 2012 system demonstrations.
Washburn SL, Lancaster GS (2017) The evolution of hunting. In: Man the hunter, Routledge, pp 293–303, England
Zhou J et al (2020) Examination of community sentiment dynamics due to covid-19 pandemic: a case study from Australia
Funding
No funding was received.
Author information
Authors and Affiliations
Contributions
Chakravarty chose what to study, gathered relevant data, performed analysis, compiled and visualized results, and wrote the manuscript. Arifuzzaman inspired the idea behind the work and revised the manuscript.
Corresponding author
Ethics declarations
Conflict of interest
The authors have no relevant financial or non-financial interests to disclose.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Chakravarty, U.K., Arifuzzaman, S. Sentiment analysis of tweets on social security and medicare. Soc. Netw. Anal. Min. 14, 91 (2024). https://doi.org/10.1007/s13278-024-01248-3
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s13278-024-01248-3