Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleArticle metrics
Research Article · Open access · Published 2 July 2026

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

Journal of Computer Science, Volume 22, Issue 6, pp. 1968–1990 · doi.org/10.3844/jcssp.2026.1968.1990

914 accesses460 downloads0 citations (Crossref)Journal metrics
Cite Check for updates

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 article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite 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
A Machine Learning-Based Sentiment Analysis of Article 370 Tweets to Support Government Policy DecisionsJournal of Computer Science · Volume 22, Issue 6 · pp. 1968–1990 · CC BY 4.0Download