Skip to main content

Sentiment Analysis of Tweets Using Supervised Learning Algorithms

  • Conference paper
  • First Online:

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 1045))

Abstract

The proliferation of user-generated content (UGC) on social media platforms has made user opinion tracking a strenuous job. Twitter, being a huge microblogging social network, could be used to accumulate views about politics, trends, and products, etc. Sentiment analysis is a mining technique employed to peruse opinions, emotions, and attitude of people toward any subject. This is conceptualized using digital data (text, video, audio, etc.) or psychological characteristics of humans. This procedure assists in opinion mining without having to read a plethora of tweets manually. The results could be wielded to provide an edge for businesses and governments in rolling out new entities (policies, products, topic, event). Cleaning data is an important step here, which we accomplished using regular expressions and NLTK library in Python. We implemented nine separate algorithms to classify tweets and compare their performance on cleaned data. It was observed that the convolutional neural network produces the most optimal results at 79% accuracy.

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

Buying options

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
Softcover Book
USD   219.99
Price excludes VAT (USA)
  • Compact, lightweight 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

Learn about institutional subscriptions

References

  1. Pang, B., Lee, L.: Opinion mining and sentiment analysis. Found. Trends Inf. Retr. 2(1–2), 1–135 (2008)

    Article  Google Scholar 

  2. Jain, A.P., Dandannavar, P.: Application of machine learning techniques to sentiment analysis. In: 2nd International Conference on Applied and Theoretical Computing and Communication Technology (iCATccT) (2016), pp. 628–632

    Google Scholar 

  3. Cambria, E., Poria, S., Gelbukh, A., Thelwall, M.: Sentiment analysis is a big suitcase. IEEE Comput. Soc., pp. 74–80 (November/December 2017)

    Google Scholar 

  4. Wang, Y., Rao, Y., Wu, L.: A review of sentiment semantic analysis technology and progress. In: 2017 13th International Conference on Computational Intelligence and Security, pp. 452–455

    Google Scholar 

  5. Youness, M., Mohammed, E., Jamma, B.: A parallel semantic sentiment analysis (2017)

    Google Scholar 

  6. Deshwal, A., Sharma, S.K.: Twitter sentiment analysis using various classification algorithms. In: 2016 5th International Conference on Reliability, Infocom Technologies and Optimization (ICRITO) (Trends and Future Directions), Sep. 7–9, 2016, AIIT, pp. 251–257. Amity University Uttar Pradesh, Noida, India

    Google Scholar 

  7. Raghuvanshi, N., Patil, J.M.: A brief review on sentiment analysis. In: International Conference on Electrical, Electronics, and Optimization Techniques (ICEEOT) (2016), pp. 2827–2831

    Google Scholar 

  8. Chachra, A., Mehndiratta, P., Gupta, M.: Sentiment analysis of text using deep convolution neural networks. In: Proceedings of 2017 Tenth International Conference on Contemporary Computing (IC3), 10–12 August 2017. Noida, India (2017)

    Google Scholar 

  9. Kumar, M., Bala, A.: Analyzing twitter sentiments through big data. In: 2016 International Conference on Computing for Sustainable Global Development (INDIACom)

    Google Scholar 

  10. Ramadhani, A.M., Goo, H.S.: Twitter sentiment analysis using deep learning methods. In: 2017 7th International Annual Engineering Seminar (InAES), Yogyakarta, Indonesia

    Google Scholar 

  11. Baj-Rogowska, A.: Sentiment analysis of facebook posts: the uber case. In: The 8th IEEE International Conference on Intelligent Computing and Information Systems (ICICIS 2017)

    Google Scholar 

  12. Kaggle Page For Twitter Sentiment Analysis Dataset Datahttps: www.kaggle.com/c/twitter-sentiment-analysis2/data, 22 Dec 2018

  13. Wikipedia Page for Naive Bayes Classifier [Online], Available: https://en.wikipedia.org/wiki/Naive_Bayes_classifier, 22 Dec 2018

  14. Wang, L. ed.: Support Vector Machines: Theory and Applications (Vol. 177). Springer Science & Business Media, Berlin (2005)

    Google Scholar 

  15. Kohavi, R.: Scaling up the accuracy of Naive-Bayes classifiers: a decision-tree hybrid. In: KDD, vol. 96, pp. 202–207(August 1996)

    Google Scholar 

  16. Gupte, A., Joshi, S., Gadgul, P., Kadam, A., Gupte, A.: Comparative study of classification algorithms used in sentiment analysis. Int. J. Comput. Sci. Inf. Technol. 5(5), 6261–6264 (2014)

    Google Scholar 

  17. Chen, T., He, T., Benesty, M.: Xgboost: extreme gradient boosting. R package version 0.4-2, pp. 1–4 (2015)

    Google Scholar 

  18. Kim, Y.: Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882 (2014)

  19. Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural Comput. 9(8), 1735–1780 (1997)

    Article  Google Scholar 

  20. Principe, J.C., Euliano, N.R., Lefebvre, W.C.: Sky Software HelptoWord B. (Chap. 3). Multilayer Perceptrons. Available online at http://www.cnel.ufl.edu/courses/EEL6814/chapter3.pdf. Accessed Nov 2018

  21. Pennington, J., Socher, R., Manning, C.: Glove: Global vectors for word representation. In: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1532–1543 (2014)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Raj P. Mehta .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Mehta, R.P., Sanghvi, M.A., Shah, D.K., Singh, A. (2020). Sentiment Analysis of Tweets Using Supervised Learning Algorithms. In: Luhach, A., Kosa, J., Poonia, R., Gao, XZ., Singh, D. (eds) First International Conference on Sustainable Technologies for Computational Intelligence. Advances in Intelligent Systems and Computing, vol 1045. Springer, Singapore. https://doi.org/10.1007/978-981-15-0029-9_26

Download citation

Publish with us

Policies and ethics