A Machine Learning-Based Sentiment Analysis of Article 370 Tweets to Support Government Policy Decisions
Subhasis Mohapatra1, Sudhir Kumar Mohapatra1, Sweta Samantaray1, Aliazar Deneke Deferisha2 & Prasanta Kumar Bal3 Show affiliations
- Faculty of Engineering and Technology, Sri Sri University, Cuttack, India
- Faculty of Computing and Software Engineering, Arba Minch University, Arba Minch, Ethiopia
- GITA Autonomous College, Bhubaneswar, India
Journal of Computer Science, Volume 22, Issue 6, pp. 1968–1990 · doi.org/10.3844/jcssp.2026.1968.1990
Abstract
This study proposes a robust sentiment analysis framework to evaluate public opinion on the abrogation of Article 370 using Twitter data. The methodology begins with tweet collection through the Twitter API, followed by systematic preprocessing. Sentiment labels were generated using the Text Blob lexicon-based polarity scoring approach to facilitate the construction of a large-scale sentiment dataset. Features are extracted, and the dataset is split into training (80%) and testing (20%) sets. A variety of models—including lexicon-based approaches, traditional machine learning algorithms, and ensemble learning techniques are trained and optimized using hyperparameter tuning. Additionally, a hybrid CNN–LSTM deep learning model is employed to capture both spatial and temporal dependencies in the text data. Experimental results reveal that the tuned Voting Ensemble model achieved the highest agreement with lexicon-derived labels, achieving an accuracy of 94.05% and an F1-score of 95.7%. The CNN–LSTM model also demonstrated strong performance. Lexicon-based polarity trends show that the dataset we looked at had mostly positive feelings during the time we chose. The results show how well ensemble and deep learning methods work together for automated sentiment classification. Future work could include validation datasets that have been annotated by people, support for multiple languages, more advanced transformer-based models for detecting sarcasm and emotion, and analysis of temporal sentiment trends.
Licence and reuse
Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.
How to reuse this articleResponses (0)
About this article
Mohapatra, S., Mohapatra, S. K., Samantaray, S., Deferisha, A. D. & Bal, P. K. (2026). A Machine Learning-Based Sentiment Analysis of Article 370 Tweets to Support Government Policy Decisions. Journal of Computer Science, 22(6), 1968–1990. https://doi.org/10.3844/jcssp.2026.1968.1990
- Licence
- CC BY 4.0
- Issue
- Volume 22, Issue 6
- Policies
- Editorial independenceUse of generative AIData availabilityAppeals and complaints
- Version
- Version of record
