Skip to main content
  • 112 Accesses

Abstract

In the whole world, the microblog has become a key forum for people to share their thoughts and viewpoints on current events. When there is a sudden epidemic of coronavirus, the posts about it are normally accompanied by a burst of microblog numbers, which offers a perfect opportunity to investigate public opinion about the incidents. In this case, sentiment research should be used to investigate how coronavirus impacts public opinion. Deep learning (DL) and machine learning (ML) models have become very popular for sentiment analysis. This research paper uses a voting ensemble model, for making a voting ensemble model We have divided our implementation part into four stages. The first stage is data preprocessing, which includes stopping words elimination and cleaning the dataset. The second stage is pipelining, in which we have passed two methods first one is TFIDF vectorizer and the second one is a machine learning classifier. TFIDF vectorizer and classifier model are used in the third stage for making a single classifier model. In the fourth stage, we have applied a hard voting Ensemble classifier technique for the overall average accuracy of machine learning models.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Worldometers.info. (2021). India COVID: 22,295,911 Cases and 242,398 Deaths - Worldometer. [online] Available at: <https://www.worldometers.info/coronavirus/country/india/>

  2. Blog.twitter.com. (2021). Spending 2020 Together on Twitter. [online] Available at: <https://blog.twitter.com/en_us/topics/insights/2020/spending-2020-together-on-twitter.html>

  3. Sayce, D., & Ltd., P., (2021). The number of tweets per day in 2020 | David Sayce. [online] David Sayce. Available at: <https://www.dsayce.com/social-media/tweets-day/>

  4. “ML - Support Vector Machine(SVM),” Tutorialspoint.com. [Online]. Available: https://www.tutorialspoint.com/machine_learning_with_python/machine_learning_with_python_classification_algorithms_support_vector_machine.htm

  5. Wikipedia contributors, “Random forest,” Wikipedia, The Free Encyclopedia, 06-May-2021. [Online]. Available: https://en.wikipedia.org/w/index.php?title=Random_forest&oldid=1021839899

  6. “Classification Algorithms - Random Forest,” Tutorialspoint.com. [Online]. Available: https://www.tutorialspoint.com/machine_learning_with_python/machine_learning_with_python_classification_algorithms_random_forest.htm

  7. Wikipedia contributors, “Decision tree learning,” Wikipedia, The Free Encyclopedia, 06-May-2021. [Online]. Available: https://en.wikipedia.org/w/index.php?title=Decision_tree_learning&oldid=1021669314

  8. “Decision tree classification algorithm,” Javatpoint.com. [Online]. Available: https://www.javatpoint.com/machine-learning-decision-tree-classification-algorithm

  9. Wikipedia contributors, “K-nearest neighbors algorithm,” Wikipedia, The Free Encyclopedia, 06-May-2021. [Online]. Available: https://en.wikipedia.org/w/index.php?title=K-nearest_neighbors_algorithm&oldid=1021698330

  10. “KNN algorithm - Finding Nearest Neighbors,” Tutorialspoint.com. [Online]. Available: https://www.tutorialspoint.com/machine_learning_with_python/machine_learning_with_python_knn_algorithm_finding_nearest_neighbors.htm

  11. “K-Nearest Neighbor(KNN) Algorithm for Machine Learning,” Javatpoint.com. [Online]. Available: https://www.javatpoint.com/k-nearest-neighbor-algorithm-for-machine-learning

  12. “Machine learning - Logistic Regression,” Tutorialspoint.com. [Online]. Available: https://www.tutorialspoint.com/machine_learning_with_python/machine_learning_with_python_classification_algorithms_logistic_regression.htm

  13. “Logistic Regression in Machine Learning,” Javatpoint.com. [Online]. Available: https://www.javatpoint.com/logistic-regression-in-machine-learning

  14. Jain, A. P., & Dandannavar, P. (2016, July). Application of machine learning techniques to sentiment analysis. In 2016 2nd international conference on applied and theoretical computing and communication technology (iCATccT) (pp. 628–632). IEEE.

    Chapter  Google Scholar 

  15. Kumar, S., Gahalawat, M., Roy, P. P., Dogra, D. P., & Kim, B. G. (2020). Exploring the impact of age and gender on sentiment analysis using machine learning. Electronics, 9(2), 374.

    Article  Google Scholar 

  16. Kabir, M., Kabir, M. M. J., Xu, S., & Badhon, B. (2019). Empirical research on sentiment analysis using machine learning approaches. Int J Comput Appl, 1–9.

    Google Scholar 

  17. Jagdale, R. S., Shirsat, V. S., & Deshmukh, S. N. (2019). Sentiment analysis on product reviews using machine learning techniques. In Cognitive informatics and soft computing (pp. 639–647). Springer.

    Chapter  Google Scholar 

  18. Jain, A., & Jain, V. (2019). Sentiment classification of twitter data belonging to renewable energy using machine learning. Journal of Information and Optimization Sciences, 40(2), 521–533.

    Article  Google Scholar 

  19. Saad, S. E., & Yang, J. (2019). Twitter sentiment analysis based on ordinal regression. IEEE Access, 7, 163677–163685.

    Article  Google Scholar 

  20. Yadav, N., Kudale, O., Rao, A., Gupta, S., & Shitole, A. (2021). Twitter sentiment analysis using supervised machine learning. In Intelligent data communication technologies and internet of things: Proceedings of ICICI 2020 (pp. 631–642). Springer.

    Chapter  Google Scholar 

  21. Chaturvedi, S., Mishra, V., & Mishra, N. (2017, September). Sentiment analysis using machine learning for business intelligence. In 2017 IEEE international conference on power, control, signals, and instrumentation engineering (ICPCSI) (pp. 2162–2166). IEEE.

    Chapter  Google Scholar 

  22. Hemalatha, I., Varma, G. S., & Govardhan, A. (2013). Sentiment analysis tool using machine learning algorithms. International Journal of Emerging Trends & Technology in Computer Science (IJETTCS), 2(2), 105–109.

    Google Scholar 

  23. Singla, Z., Randhawa, S., & Jain, S. (2017). Sentiment analysis of customer product reviews using machine learning. In 2017 international conference on intelligent computing and control (I2C2) (pp. 1–5). IEEE.

    Google Scholar 

  24. Chandra, Y., & Jana, A. (2020, March). Sentiment analysis using machine learning and deep learning. In 2020 7th international conference on computing for sustainable global development (INDIACom) (pp. 1–4). IEEE.

    Google Scholar 

  25. Alarifi, A., Tolba, A., Al-Makhadmeh, Z., & Said, W. (2020). A big data approach sentiment analysis using greedy feature selection with cat swarm optimization-based long short-term memory neural networks. The Journal of Supercomputing, 76(6), 4414–4429.

    Article  Google Scholar 

  26. Ali, N. M., Abd El Hamid, M. M., & Youssif, A. (2019). Sentiment analysis for movie reviews dataset using deep learning models. International Journal of Data Mining & Knowledge Management Process (IJDKP), 9.

    Google Scholar 

  27. Alharbi, A., Taileb, M., & Kalkatawi, M. (2021). Deep learning in Arabic sentiment analysis: an overview. Journal of (Information Science), 471, 129–140.

    Google Scholar 

  28. Ramadhani, A. M., & Goo, H. S. (2017, August). Twitter sentiment analysis using deep learning methods. In 2017 7th international annual engineering seminar (InAES) (pp. 1–4). IEEE.

    Google Scholar 

  29. Heikal, M., Torki, M., & El-Makky, N. (2018). Sentiment analysis of Arabic tweets using deep learning. Procedia Computer Science, 142, 114–122.

    Article  Google Scholar 

  30. Wang, J., & Cao, Z. (2017, October). Chinese text sentiment analysis using LSTM network based on L2 and Nadam. In 2017 IEEE 17th international conference on communication technology (ICCT) (pp. 1891–1895). IEEE.

    Chapter  Google Scholar 

  31. Demir, N. “Ensemble methods: Elegant techniques to produce improved machine learning results,” Toptal.com, 04-Feb-2016. [Online]. Available: https://www.toptal.com/machine-learning/ensemble-methods-machine-learning

  32. “ML,” Geeksforgeeks.org, 23-Nov-2019. [Online]. Available: https://www.geeksforgeeks.org/ml-voting-classifier-using-sklearn/

  33. Adhi, T. B., & Rhee, K. H. (2017). An extensive empirical evaluation of classifier ensembles for the intrusion detection task. The Computer Systems Science and Engineering, 32, 149–158.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kamal .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Kamal, Singh, A. (2023). Sentiment Analysis of COVID-19 Tweets Using Voting Ensemble-Based Model. In: Tiwari, R., Koundal, D., Upadhyay, S. (eds) Image Based Computing for Food and Health Analytics: Requirements, Challenges, Solutions and Practices. Springer, Cham. https://doi.org/10.1007/978-3-031-22959-6_9

Download citation

Publish with us

Policies and ethics