Skip to main content

Machine Learning-Based Sentiment Analysis Towards Indian Ministry

  • Conference paper
  • First Online:
Computational Vision and Bio-Inspired Computing

Abstract

This paper presents the performance of Twitter sentiment analysis on the Agricultural Ministry of India and also determines the optimal AI model between random forest (RF) and k nearest neighbours (KNN) algorithms. ‘Twitter and Reddit Sentimental Analysis’ dataset from Kaggle is used to train and test the RF and KNN AI models. Term frequency-inverse document frequency (TF-IDF) vectorizer is used to extract features from the obtained dataset. The optimal AI model is determined using the library functions of scikit-learn-2.0 which perform the training and testing of the dataset. Twitter authenticated API called Tweepy is used to create the dataset required to determine the public sentiment towards the Agriculture Ministry by us. This dataset includes 6000 tweets related to the Agriculture Ministry. The Twitter sentiment analysis performed determines what percentage of public opinion towards the Agriculture Ministry is positive, negative and neutral.

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

Similar content being viewed by others

References

  1. Vasudevan, S., Meenakshi, G.: Comparison of sentiment analysis of government of India schemes using tweets. Int. J. Comput. Sci. Eng. 6, 998–1001. https://doi.org/10.26438/ijcse/v6i6.9981001

  2. Sharma, S., Shetty, N.: Determining the popularity of political parties using Twitter sentiment analysis (2018). https://doi.org/10.1007/978-981-10-7563-6_3

  3. Verma, P., Khanday, A., Rabani, S., Mir, M., Jamwal, S.: Twitter sentiment analysis on Indian government project using R. Int. J. Recent Technol. Eng. 8, 8338–8341 (2019). https://doi.org/10.35940/ijrte.C6612.098319

  4. Naldi, M.: A review of sentiment computation methods with R packages (2019)

    Google Scholar 

  5. Zope, V., Karmarkar, A., Shivani, M., Pawar, V., Tewani, K.: Analysis of twitter reactions to government policies. Int. J. Adv. Res. Ideas Innov. Technol. 4(1) (2018). www.IJARIIT.com

  6. Chen, H., Franks, P., Evans, L.: Exploring government uses of social media through twitter sentiment analysis. J. Digital Inform. Manage. 14, 290–301 (2016). https://doi.org/10.6025/jdim/2016/14/5/290-301

    Article  Google Scholar 

  7. Kaur, R., Kaur, R., Singh, M., Ranjan, S.: Twitter sentiment analysis of the Indian union budget 2020. Int. J. Adv. Sci. Technol. 29(4s), 2282–2288 (2020). Retrieved from http://sersc.org/journals/index.php/IJAST/article/view/10258

  8. Pihlqvist, F., Mulongo, B.: Using rule-based methods and machine learning for short answer scoring (2018)

    Google Scholar 

  9. Naiknaware, B.R., Kawathekar, S., Deshmukh, S.: Sentiment Analysis of Indian Government Schemes using Twitter Datasets (2017)

    Google Scholar 

  10. Pak, P.: Twitter as a corpus for sentiment analysis and opinion mining. In: Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC’10). European Language Resources Association (ELRA) (2010)

    Google Scholar 

  11. Mishra, P., Rajnish, R., Kumar, P.: Sentiment analysis of Twitter data: case study on digital India. In: 2016 International Conference on Information Technology (InCITe)—The Next Generation IT Summit on the Theme—Internet of Things: Connect your Worlds (2016), pp. 148–153. https://doi.org/10.1109/INCITE.2016.7857607

  12. Sravya, K., Sowmya, G., Yamini, P., Anusha, P., Sandhya Krishna, P.: Sentiment analysis on twitter K. Int. J. Anal. Exp. Modal Anal. 13, 925–930 (2021)

    Google Scholar 

  13. Yadav, N., Kudale, O., Rao, A., Gupta, S., Shitole, A.: Twitter sentiment analysis using supervised machine learning. In: Intelligent Data Communication Technologies and Internet of Things: Proceedings of ICICI 2020 (2021). Springer Singapore, pp. 631–642

    Google Scholar 

  14. Huq, M.R., Ali, A., Rahman, A.: Sentiment analysis on twitter data using KNN and SVM. Int. J. Adv. Comput. Sci. Appl. (IJACSA) 8(6) (2017). https://doi.org/10.14569/IJACSA.2017.080603

  15. Karthika, P., Murugeswari, R., Manoranjithem, R.: Sentiment analysis of social media network using random forest algorithm. In: 2019 IEEE International Conference on Intelligent Techniques in Control, Optimization and Signal Processing (INCOS) (2019), pp. 1–5. https://doi.org/10.1109/INCOS45849.2019.8951367

  16. Gowda, C., Anirudh, A.P., Chaithanya Kumar, A.: Twitter and reddit sentimental analysis dataset. Kaggle (2019). https://doi.org/10.34740/KAGGLE/DS/429085

  17. Venkat, N.: The Curse of Dimensionality: Inside Out (2018). https://doi.org/10.13140/RG.2.2.29631.36006

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to K. Bhargavi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 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

Bhargavi, K., Mashankar, P., Sreevarsh, P.V., Bilolikar, R., Ranganathan, P. (2022). Machine Learning-Based Sentiment Analysis Towards Indian Ministry. In: Smys, S., Tavares, J.M.R.S., Balas, V.E. (eds) Computational Vision and Bio-Inspired Computing. Advances in Intelligent Systems and Computing, vol 1420. Springer, Singapore. https://doi.org/10.1007/978-981-16-9573-5_28

Download citation

Publish with us

Policies and ethics