Abstract
Social media platforms (SMPs) have become a popular avenue worldwide for the general public to socialize. They exchange their views or experiences on various SMPs about any product or policies via social media posts. Considering that the SMPs being a rich source of data for understanding public opinion on a specific topic, this paper aims to present a classification model that can perform sentiment analysis using Twitter’s real-time data in the case of Citizenship Amendment Act (CAA). Public opinion on CAA is captured using Twitter API which is restricted to India. These tweets are processed using basic preprocessing techniques. Further, preprocessed data fed to various machine learning (ML) classification models for identifying the sentiment of the tweets. Each tweet is classified as positive, negative, and neutral based on its sentiment. The obtained results and analysis empowered us to understand Indian public opinion towards CAA over the period. A comparative analysis of various ML techniques is performed and Stochastic Gradient Descent has outperformed other ML techniques in terms of accuracy.
Similar content being viewed by others
Change history
21 June 2023
A Correction to this paper has been published: https://doi.org/10.1007/s12597-023-00653-0
References
Ghani, N.A., Hamid, S., Hashem, I.A.T., Ahmed, E.: Social media big data analytics: a survey. Comput. Hum. Behav. 101, 417–428 (2019)
Bojja, G.R., Ofori, M., Liu, J., Ambati, L.S.: Early public outlook on the coronavirus disease (covid-19): a social media study (2020). AMCIS 2020 Proceedings. 31. https://aisel.aisnet.org/amcis2020/data_science_analytics_for_decision_support/data_science_analytics_for_decision_support/31
Jain, P.K., Pamula, R.: Sentiment analysis in airline data: customer rating based recommendation prediction using WEKA. In: Machine Learning Algorithms for Industrial Applications, pp. 53–65. Springer (2021)
Jain, P.K., Jain, M., Pamula, R.: Explaining and predicting employees’ attrition: a machine learning approach. SN Appl. Sci. 2(4), 1–11 (2020)
Jain, P.K., Pamula, R., Ansari, S., Sharma, D., Maddala, L.: Airline recommendation prediction using customer generated feedback data. In: 2019 4th International Conference on Information Systems and Computer Networks (ISCON), pp. 376–379. IEEE (2019)
Chintalapudi, N., Battineni, G., Di Canio, M., Sagaro, G.G., Amenta, F.: Text mining with sentiment analysis on seafarers’ medical documents. Int. J. Inf. Manag. Data Insights 1(1), 100005 (2021)
Behera, R.K., Jena, M., Rath, S.K., Misra, S.: Co-LSTM: convolutional LSTM model for sentiment analysis in social big data. Inf. Process. Manag. 58(1), 102435 (2021)
Ray, P., Chakrabarti, A.: A mixed approach of deep learning method and rule-based method to improve aspect level sentiment analysis. Appl. Comput. Inform. 18, 163–178 (2022). https://doi.org/10.1016/j.aci.2019.02.002
Zhao, Y.: Twitter data analysis with r–text mining and social network analysis. RDM, Canbera
Levy, M.: Playing with twitter data.[blog] r-bloggers, Available at https://www.r-bloggers.com/playing-with-twitter-data/. Accessed 7 Feb 2018
Jose, R., Chooralil, V.S., Prediction of election result by enhanced sentiment analysis on twitter data using classifier ensemble approach. In: International Conference on Data Mining and Advanced Computing (SAPIENCE), pp. 64–67 . IEEE (2016)
Farooqui, N.A., Ritika, A.S.: Sentiment analysis of twitter accounts using natural language processing. Int. J. Eng. Adv. Technol. 8(3), 473–479 (2019)
Esuli, A., Sebastiani, F.: Sentiwordnet: a publicly available lexical resource for opinion mining. In: LREC, vol. 6, Citeseer, pp. 417–422. (2006)
Miller, G.A.: Wordnet: a lexical database for English. Commun. ACM 38(11), 39–41 (1995)
Alsaeedi, A., Khan, M.Z.: A study on sentiment analysis techniques of twitter data. Int. J. Adv. Comput. Sci. Appl. 10(2), 361–374 (2019)
Saha, S., Yadav, J., Ranjan, P.: Proposed approach for sarcasm detection in twitter. Indian J. Sci. Technol. 10(25), 1–8 (2017)
Sharma, P., Moh, T.-S., Prediction of Indian election using sentiment analysis on hindi twitter. In: IEEE International Conference on Big Data (Big Data), pp. 1966–1971. IEEE (2016)
Mittal, A., Patidar, S.: Sentiment analysis on twitter data: a survey. In: Proceedings of the 2019 7th International Conference on Computer and Communications Management, pp. 91–95. (2019)
Garg, P., Garg, H., Ranga, V.: Sentiment analysis of the URI terror attack using twitter. In: International Conference on Computing, Communication and Automation (ICCCA), pp. 17–20 . IEEE (2017)
Neethu, M., Rajasree, R.: Sentiment analysis in twitter using machine learning techniques. In: 2013 Fourth International Conference on Computing, Communications and Networking Technologies (ICCCNT), pp. 1–5. IEEE (2013)
Davidov, D., Tsur, O., Rappoport, A.: Enhanced sentiment learning using twitter hashtags and smileys. In: Coling 2010: Posters, pp. 241–249. (2010)
Permatasari, R.I., Fauzi, M.A., Adikara, P.P., Sari, E.D.L.: Twitter sentiment analysis of movie reviews using ensemble features based Naïve Bayes. In: 2018 International Conference on Sustainable Information Engineering and Technology (SIET), pp. 92–95. IEEE (2018)
Gautam, G., Yadav, D.: Sentiment analysis of twitter data using machine learning approaches and semantic analysis. In: 2014 Seventh International Conference on Contemporary Computing (IC3), pp. 437–442. IEEE (2014)
Bouazizi, M., Ohtsuki, T.: Multi-class sentiment analysis in twitter: what if classification is not the answer. IEEE Access 6, 64486–64502 (2018)
Mukherjee, S., Malu, A., Ar, B., Bhattacharyya, P.: Twisent: a multistage system for analyzing sentiment in twitter. In: Proceedings of the 21st ACM International Conference on Information and Knowledge Management, pp. 2531–2534. (2012)
Barbosa, L., Feng, J.: Robust sentiment detection on twitter from biased and noisy data. In: Coling 2010: Posters, pp. 36–44. (2010)
Ambati, L.S., El-Gayar, O., Nawar, N.: Influence of the digital divide and socio-economic factors on prevalence of diabetes. Issues Inf. Syst. 21(4), 103–113 (2020)
Ambati, L.S., El-Gayar, O.: A comparative study of machine learning approaches for human activity recognition (2020). MWAIS 2020 Proceedings. 12. https://aisel.aisnet.org/mwais2020/12
Ambati, L.S., El-Gayar, O.: Human activity recognition: a comparison of machine learning approaches. J. Midwest Assoc. Inf. Syst. 1, 49 (2021)
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
All author declare that they do not any conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Kaur, P., Jain, P.K., Singh, A. et al. Indian citizens sentiment classification on Citizenship Amendment Act 2019. OPSEARCH 60, 688–700 (2023). https://doi.org/10.1007/s12597-023-00626-3
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s12597-023-00626-3