LSTM Based Sentiment Analysis Model to Monitor COVID-19 Emotion
DOI:
https://doi.org/10.21015/vtse.v10i2.1006Abstract
Psychologists and Social scientists are interested to evaluate how people show their expressions and sentiments about natural disasters, terrorism, and pandemic situations. The covid-19 has raised the number of psychological issues such as depression due to social changes and employment issues. The everyday life of people is disturbed due to the Pandemic situation of covid-19. During the lockdown, people share their opinions on social sites like Twitter and Facebook. Due to this pandemic situation and lockdown, the emotions of people are different, the emotions are categorized as fear, anger, joy, and sad in terms of covid-19 and lockdown. In this paper, we have used machine learning and Natural Language Processing approaches to design an effective machine learning model for the classification of people's emotions related to covid-19. The early detection of sentiment allows for better handling of the pandemic situation and government policies. Text is categorized into fear, joy, anger, and sad sentiment classes. We have proposed a deep learning-based LSTM model for Covid-19 related emotion identification and achieved an accuracy of 71.7% with the proposed model. For the robustness of the proposed model, we considered several machine learning classifiers and compare these classifiers with our proposed model.
Data Availability: In this study, an open-source dataset is used:
https://www.kaggle.com/code/poulamibakshi/covid-19-sentiment-analysis/data
References
U. Naseem, I. Razzak, M. Khushi, P. W. Eklund, and J. Kim, “COVIDSenti: A Large-Scale Benchmark Twitter Data Set for COVID-19 Sentiment Analysis,” IEEE Trans. Comput. Soc. Syst., vol. 8, no. 4, pp. 976–988, Aug. 2021, doi: 10.1109/TCSS.2021.3051189.
A. Bhar, “Is it possible to ensure COVID19 vaccine supply by using plants?,” Nucl., vol. 64, no. 2, p. 137, Aug. 2021, doi: 10.1007/S13237-021-00361-4.
B. Aslam, A. R. Javed, C. Chakraborty, J. Nebhen, S. Raqib, and M. Rizwan, “Blockchain and ANFIS empowered IoMT application for privacy preserved contact tracing in COVID-19 pandemic,” Pers. Ubiquitous Comput., 2021, doi: 10.1007/S00779-021-01596-3.
“• Number of social media users 2025 | Statista.” https://www.statista.com/statistics/278414/number-of-worldwide-social-network-users/ (accessed Mar. 20, 2022).
H. Jelodar, Y. Wang, R. Orji, and S. Huang, “Deep Sentiment Classification and Topic Discovery on Novel Coronavirus or COVID-19 Online Discussions: NLP Using LSTM Recurrent Neural Network Approach,” IEEE J. Biomed. Heal. informatics, vol. 24, no. 10, pp. 2733–2742, Oct. 2020, doi: 10.1109/JBHI.2020.3001216.
S. Hakak, M. Alazab, S. Khan, T. R. Gadekallu, P. K. R. Maddikunta, and W. Z. Khan, “An ensemble machine learning approach through effective feature extraction to classify fake news,” Futur. Gener. Comput. Syst., vol. 117, pp. 47–58, Apr. 2021, doi: 10.1016/J.FUTURE.2020.11.022.
P. Ashokkumar, G. Siva Shankar, G. Srivastava, P. K. R. Maddikunta, and T. R. Gadekallu, “A Two-stage Text Feature Selection Algorithm for Improving Text Classification,” Trans. Asian Low-Resource Lang. Inf. Process., vol. 20, no. 3, May 2021, doi: 10.1145/3425781.
A. Mondal, S. Kumar Mahata, M. Dey, and D. Das, “Classification of COVID19 tweets using Machine Learning Approaches,” pp. 135–137, 2021, Accessed: Mar. 20, 2022. [Online]. Available: https://www.nltk.org/.
F. Rustam, M. Khalid, W. Aslam, V. Rupapara, A. Mehmood, and G. S. Choi, “A performance comparison of supervised machine learning models for Covid-19 tweets sentiment analysis,” PLoS One, vol. 16, no. 2, p. e0245909, Feb. 2021, doi: 10.1371/JOURNAL.PONE.0245909.
A. Abd-Alrazaq, D. Alhuwail, M. Househ, M. Hai, and Z. Shah, “Top Concerns of Tweeters During the COVID-19 Pandemic: Infoveillance Study,” J Med Internet Res 2020;22(4)e19016 https//www.jmir.org/2020/4/e19016, vol. 22, no. 4, p. e19016, Apr. 2020, doi: 10.2196/19016.
G. Barkur, Vibha, and G. B. Kamath, “Sentiment analysis of nationwide lockdown due to COVID 19 outbreak: Evidence from India,” Asian J. Psychiatr., vol. 51, p. 102089, Jun. 2020, doi: 10.1016/J.AJP.2020.102089.
S. Li, Y. Wang, J. Xue, N. Zhao, and T. Zhu, “The Impact of COVID-19 Epidemic Declaration on Psychological Consequences: A Study on Active Weibo Users,” Int. J. Environ. Res. Public Health, vol. 17, no. 6, Mar. 2020, doi: 10.3390/IJERPH17062032.
A. L. Pedrosa et al., “Emotional, Behavioral, and Psychological Impact of the COVID-19 Pandemic,” Front. Psychol., vol. 11, p. 2635, Oct. 2020, doi: 10.3389/FPSYG.2020.566212/BIBTEX.
N. Fernandes, “Economic Effects of Coronavirus Outbreak (COVID-19) on the World Economy,” SSRN Electron. J., Mar. 2020, doi: 10.2139/SSRN.3557504.
M. Cinelli et al., “The COVID-19 social media infodemic,” Sci. Reports 2020 101, vol. 10, no. 1, pp. 1–10, Oct. 2020, doi: 10.1038/s41598-020-73510-5.
J. Samuel, G. G. M. N. Ali, M. M. Rahman, E. Esawi, and Y. Samuel, “COVID-19 Public Sentiment Insights and Machine Learning for Tweets Classification,” Inf. 2020, Vol. 11, Page 314, vol. 11, no. 6, p. 314, Jun. 2020, doi: 10.3390/INFO11060314.
C. De Maio, G. Fenza, V. Loia, and M. Parente, “Time Aware Knowledge Extraction for Microblog Summarization on Twitter,” Inf. Fusion, vol. 28, pp. 60–74, Jan. 2015, doi: 10.48550/arxiv.1501.06715. DOI: https://doi.org/10.1016/j.inffus.2015.06.004
I. C. H. Fung et al., “Pedagogical Demonstration of Twitter Data Analysis: A Case Study of World AIDS Day, 2014,” Data 2019, Vol. 4, Page 84, vol. 4, no. 2, p. 84, Jun. 2019, doi: 10.3390/DATA4020084.
X. Ye, S. Li, X. Yang, and C. Qin, “Use of Social Media for the Detection and Analysis of Infectious Diseases in China,” ISPRS Int. J. Geo-Information 2016, Vol. 5, Page 156, vol. 5, no. 9, p. 156, Aug. 2016, doi: 10.3390/IJGI5090156. DOI: https://doi.org/10.3390/ijgi5090156
E. H. J. Kim, Y. K. Jeong, Y. Kim, K. Y. Kang, and M. Song, “Topic-based content and sentiment analysis of Ebola virus on Twitter and in the news:,” http://dx.doi.org/10.1177/0165551515608733, vol. 42, no. 6, pp. 763–781, Oct. 2015, doi: 10.1177/0165551515608733. DOI: https://doi.org/10.1177/0165551515608733
J. Samuel, M. M. Rahman, G. G. M. N. Ali, Y. Samuel, and A. Pelaez, “Feeling Like It is Time to Reopen Now? COVID-19 New Normal Scenarios based on Reopening Sentiment Analytics,” SSRN Electron. J., May 2020, doi: 10.20944/preprints202005.0318.v1.
S. Tuli, S. Tuli, R. Tuli, and S. S. Gill, “Predicting the Growth and Trend of COVID-19 Pandemic using Machine Learning and Cloud Computing,” medRxiv, p. 2020.05.06.20091900, May 2020, doi: 10.1101/2020.05.06.20091900.
R. M. Merchant and N. Lurie, “Social Media and Emergency Preparedness in Response to Novel Coronavirus,” JAMA, vol. 323, no. 20, pp. 2011–2012, May 2020, doi: 10.1001/JAMA.2020.4469. DOI: https://doi.org/10.1001/jama.2020.4469
R. Prabhakar Kaila, “Informational Flow on Twitter-Corona Virus Outbreak-Topic Modelling Approach,” Int. J. Adv. Res. Eng. Technol., vol. 11, no. 3, pp. 128–134, 2020, Accessed: Mar. 20, 2022. [Online]. Available: http://www.iaeme.com/IJARET/index.asp128http://www.iaeme.com/IJARET/issues.asp?JType=IJARET&VType=11&IType=3JournalImpactFactor.
“COVID-19 sentiment analysis. | Kaggle.” https://www.kaggle.com/code/poulamibakshi/covid-19-sentiment-analysis/data (accessed Mar. 27, 2022).
“COVID-19 sentiment analysis. | Kaggle.” https://www.kaggle.com/code/poulamibakshi/covid-19-sentiment-analysis/notebook (accessed Mar. 27, 2022).
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC-By) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
This work is licensed under a Creative Commons Attribution License CC BY