Skip to main content

Twitter Sentiment Analysis Using Naive Bayes-Based Machine Learning Technique

  • Conference paper
  • First Online:
Sentiment Analysis and Deep Learning

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

Abstract

“Computational” sentiment analysis can determine whether a sentiment is favorable, negative, or neutral. Another term for this approach is “opinion mining,” or obtaining a speaker’s sentiments. Businesses use it to develop strategies, learn what customers think about products or brands, how people react to campaigns or new product releases, and why they do not buy certain products. It is used in politics to keep track of political ideas and to check for contradictions between government claims and actions. It can even be used to predict election results! It is also used to track and analyze social phenomena like recognizing dangerous circumstances and evaluating blogging mood. In this paper, we look tackle the problem of sentiment categorization using the Twitter dataset. To analyze sentiment, preprocessing and Naive Bayes classifier approaches are utilized. As a result, we applied a text preprocessing classification accuracy classifying strategy and improved our classification accuracy score on the Kaggle public leaderboard. The aim of this paper is to classify the twitter sentiments using machine learning algorithm based on Naïve Bayes Classifier. The proposed model indicated better accuracy and precision based on performance parameters such as precision, recall and accuracy.

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 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.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

Institutional subscriptions

References

  1. Jha, P., Baranwal, R., Monika, & Tiwari, N. K. (2022). Protection of user’s data in IOT. In IEEE 2022 Second International Conference on Artificial Intelligence and Smart Energy (ICAIS) (pp. 1292–1297)

    Google Scholar 

  2. Soni, G. K., Rawat, A., Jain, S., & Sharma, S. K. (2020). A pixel-based digital medical images protection using genetic algorithm with LSB watermark technique. In Springer smart systems and IoT: Innovations in computing (pp. 483–492)

    Google Scholar 

  3. Soni, G. K., Arora, H., & Jain, B. (2021). A novel image encryption technique using Arnold transform and asymmetric RSA algorithm. In IEEE International Conference on Artificial Intelligence: Advances and Applications 2019. Algorithms for Intelligent Systems (pp. 83–90). Springer.

    Google Scholar 

  4. Shahvaroughi Farahani, M., & Hajiagha, S. H. R. (2021). Forecasting stock price using integrated artificial neural network and metaheuristic algorithms compared to time series models. In Soft computing (pp. 1–31)

    Google Scholar 

  5. Kumar, G., Jain, S., & Singh, U. P. (2020). Stock market forecasting using computational intelligence: A survey. Archives of Computational Methods in Engineering, 1–33.

    Google Scholar 

  6. Jha, P., Biswas, T., Sagar, U., & Ahuja, K. (2021). Prediction with ML paradigm in healthcare system. In IEEE 2021 Second International Conference on Electronics and Sustainable Communication Systems (ICESC) (pp. 1334–1342).

    Google Scholar 

  7. Tripathi, M. (2021). Sentiment analysis of Nepali COVID19 tweets using NB, SVM AND LSTM. Journal of Artificial Intelligence, 3(03), 51–168.

    Google Scholar 

  8. Wongkar, M., & Angdresey, A. (2019). Sentiment analysis using Naive Bayes algorithm of the data crawler: Twitter. In IEEE 2019 Fourth International Conference on Informatics and Computing (ICIC) (pp. 1–5).

    Google Scholar 

  9. Roh, Y., Heo, G., & Whang, S. E. (2021). A survey on data collection for machine learning: A big data—AI integration perspective. IEEE Transactions on Knowledge and Data Engineering (TKD), 33(4), 1328–1347.

    Google Scholar 

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

    Google Scholar 

  11. Prakruthi, V., Sindhu, D., & Anupama Kumar, D. S. (2018). Real time sentiment analysis of Twitter posts. In IEEE 2018 3rd International Conference on Computational Systems and Information Technology for Sustainable Solutions (CSITSS) (pp. 29–34).

    Google Scholar 

  12. Ahuja, K., Khushi, D., & Sharma, N. (2022). Cyber security threats and their connection with Twitter. In 2022 Second International Conference on Artificial Intelligence and Smart Energy (ICAIS) (pp. 1458–1463).

    Google Scholar 

  13. Mandloi, L., & Patel, R. (2020). Twitter sentiments analysis using machine learning methods. In IEEE 2020 International Conference for Emerging Technology (INCET) (pp. 1–5).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Priya Gaur .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Gaur, P., Vashistha, S., Jha, P. (2023). Twitter Sentiment Analysis Using Naive Bayes-Based Machine Learning Technique. In: Shakya, S., Du, KL., Ntalianis, K. (eds) Sentiment Analysis and Deep Learning. Advances in Intelligent Systems and Computing, vol 1432. Springer, Singapore. https://doi.org/10.1007/978-981-19-5443-6_27

Download citation

Publish with us

Policies and ethics