Skip to main content

Sentiment Analysis on Citizenship Amendment Act of India 2019 Using Twitter Data

  • Conference paper
  • First Online:
Intelligent Computing (SAI 2022)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 507))

Included in the following conference series:

  • 1073 Accesses

Abstract

For the perspective of the latest happening news or some events occurring worldwide, social media is widely used and the reaction given by the people’s opinion is in the form of raw natural data in many languages and environments. All those written views have some unbalanced statements, i.e., some sensitive information or some slang words and uneven words. This makes opinion mining and making strategic decision useful in the future market. The structured and unbalanced data, Natural Language Processing (NLP) and Data Mining techniques are used for sentiment analysis. In the developed method, the study focuses on Twitter data on Citizenship Amendment Act of India, 2019 to detect the sentiment of the views from people all over the world using machine learning techniques. Many people had given their opinions and views about this new rule for CAA throughout that time. By purifying and analyzing the data using NLP techniques, VADER (Valence Aware Dictionary and sEntiment Reasoner) sentiment polarity is calculated. The dataset is normalized to be used by machine learning algorithms and prepared using natural language techniques such as Word Tokenization, Stemming and lemmatization, and Part of Speech (POS) Tagging. All that input variables are converted into vectors by Term Frequency-Inverse Document Frequency (TF-IDF). This method is implemented in a python programming language. The evaluation parameters such as accuracy, precision, recall, and F1-score were obtained for Naïve Bayes, SVM (support vector machine), K-Nearest Neighbor, Neural Network, Logistic Regression, Random Forest and LSTM (Long-short Term Memory) based RNN (Recurrent Neural Network). Finally, the results are compared. A One-way Analysis of Variance (ANOVA) test was performed on the mean values of performance metrics on all the methods.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

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. Twitter statistics Blog- https://www.oberlo.ca/blog/twitter-statistics/

  2. Actively Twitter users. https://blog.hootsuite.com/twitter-demographics/

  3. Neri, F., et al.: Sentiment analysis on social media. In: Proceedings of the 2012 International Conference on Advances in Social Networks Analysis and Mining (ASONAM 2012). IEEE Computer Society (2012)

    Google Scholar 

  4. Source: “Company | About.” Twitter. Twitter, 19 June 2020. Web. 04 Dec. 2019

    Google Scholar 

  5. Bird, S.: NLTK: the natural language toolkit. In: Proceedings of the COLING/ACL on Interactive Presentation Sessions. Association for Computational Linguistics (2006)

    Google Scholar 

  6. Understanding the classification report through SKlearn. https://muthu.co/understanding-the-classification-report-in-sklearn/

  7. Chowdhury, G.G.: Natural language processing. Ann. Rev. Inf. Sci. Technol. 37(1), 51–89 (2003)

    Article  Google Scholar 

  8. Olsson, F.: A literature survey of active machine learning in the context of natural language processing (2009)

    Google Scholar 

  9. Bird, S., Klein, E., Loper, E.: Natural Language Processing with Python. O’Reilly Media, Inc., Newton (2009)

    Google Scholar 

  10. Toman, M., Tesar, R., Jezek, K.: Influence of word normalization on text classification. Proc. InSciT 4, 354–358 (2006)

    Google Scholar 

  11. Younis, E.M.: Sentiment analysis and text mining for social media microblogs using open-source tools: an empirical study. Int. J. Comput. Applicat. 112(5) (2015)

    Google Scholar 

  12. Liu, B.: Sentiment analysis and subjectivity. In: Indurkhya, N., Damerau, F. (eds.) Handbook of Natural Language Processing (2nd edn.). Chapman & Hall, Boca Raton (2010)

    Google Scholar 

  13. Raza, M., Saqib, N., Basit, S., Javed, F., et al.: EarlyDetection of controversial Urdu speeches from social media. DataScience Pattern Recognit. 1(2), 26–42 (2017)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kalpdrum Passi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

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

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Vaghasia, S., Passi, K. (2022). Sentiment Analysis on Citizenship Amendment Act of India 2019 Using Twitter Data. In: Arai, K. (eds) Intelligent Computing. SAI 2022. Lecture Notes in Networks and Systems, vol 507. Springer, Cham. https://doi.org/10.1007/978-3-031-10464-0_47

Download citation

Publish with us

Policies and ethics