CFP last date
30 June 2025
Call for Paper
July Edition
JAAI solicits high quality original research papers for the upcoming July edition of the journal. The last date of research paper submission is 30 June 2025

Submit your paper
Know more
Reseach Article

Prediction of Indian Election using Sentiment Analysis on Twitter(X) Data

by Archana Suhas Vaidya, Nida Shaikh, Dipak V. Patil
Journal of Advanced Artificial Intelligence
Foundation of Computer Science (FCS), NY, USA
Volume 1 - Number 7
Year of Publication: 2025
Authors: Archana Suhas Vaidya, Nida Shaikh, Dipak V. Patil
10.5120/jaai202432

Archana Suhas Vaidya, Nida Shaikh, Dipak V. Patil . Prediction of Indian Election using Sentiment Analysis on Twitter(X) Data. Journal of Advanced Artificial Intelligence. 1, 7 ( Apr 2025), 7-11. DOI=10.5120/jaai202432

@article{ 10.5120/jaai202432,
author = { Archana Suhas Vaidya, Nida Shaikh, Dipak V. Patil },
title = { Prediction of Indian Election using Sentiment Analysis on Twitter(X) Data },
journal = { Journal of Advanced Artificial Intelligence },
issue_date = { Apr 2025 },
volume = { 1 },
number = { 7 },
month = { Apr },
year = { 2025 },
pages = { 7-11 },
numpages = {9},
url = { https://jaaionline.phdfocus.com/archives/volume1/number7/prediction-of-indian-election-using-sentiment-analysis-on-twitterx-data/ },
doi = { 10.5120/jaai202432 },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Journal Article
%1 2025-05-01T01:56:47.163224+05:30
%A Archana Suhas Vaidya
%A Nida Shaikh
%A Dipak V. Patil
%T Prediction of Indian Election using Sentiment Analysis on Twitter(X) Data
%J Journal of Advanced Artificial Intelligence
%V 1
%N 7
%P 7-11
%D 2025
%I Foundation of Computer Science (FCS), NY, USA
Abstract

Opinion mining, also known as sentiment analysis, involves classifying subjective sentiments in text into three categories: positive, negative, and neutral. This process delves into words and phrases to uncover the emotions expressed within sentences, paragraphs, or entire documents. Effective sentiment analysis relies on thorough text preprocessing, including the removal of irrelevant characters, stop words, and punctuation, as well as tokenization, which breaks text into meaningful units while preserving contextual relationships. When applied to Twitter (X) data, sentiment analysis faces unique challenges due to the informal language, abbreviations, hashtags, and extraneous characters often present in tweets. Comprehensive preprocessing is essential to address these issues, enabling the extraction of meaningful insights. Among the various methods available, Long Short-Term Memory (LSTM) networks excel in sentiment analysis because of their ability to capture sequential and contextual nuances inherent in textual data. This work proposes leveraging an LSTM-based model to perform opinion mining on Twitter (X) data related to the Indian election. The proposed model demonstrates exceptional performance, achieving an F1 score of 97.47% and an accuracy rate of 97.78 %. These results highlight not only the robustness of the LSTM approach but also its superiority in outperforming competing models for sentiment analysis tasks.

References
  1. M. Rodríguez-Ibáñez, F. -J. Gimeno-Blanes, P. M. Cuenca-Jiménez, C. Soguero-Ruiz and J. L. Rojo-Álvarez, "Sentiment Analysis of Political Tweets From the 2019 Spanish Elections," in IEEE Access, vol. 9, pp. 101847-101862, 2021, doi: 10.1109/ACCESS.2021.3097492.
  2. R. Chandra and R. Saini, "Biden vs Trump: Modeling US General Elections Using BERT Language Model," in IEEE Access, vol. 9, pp. 128494-128505, 2021, doi: 10.1109/ACCESS.2021.3111035.
  3. C. Bayrak and M. Kutlu, "Predicting Election Results Via Social Media: A Case Study for 2018 Turkish Presidential Election," in IEEE Transactions on Computational Social Systems, vol. 10, no. 5, pp. 2362-2373, Oct. 2023, doi: 10.1109/TCSS.2022.3178052.
  4. Balaji et al., 2016, M.S. Balaji, K.W. Khong, A.Y.L. Chong, Determinants of negative word-of-mouth communication using social networking sites Information & Management, 53 (4) (2016), pp. 528-540.
  5. S. N. Singh and T. Sarraf, "Sentiment Analysis of a Product based on User Reviews using Random Forests Algorithm," 2020 10th International Conference on Cloud Computing, Data Science & Engineering (Confluence), 2020, pp. 112-116, doi: 10.1109/Confluence47617.2020.9058128.
  6. W. Zhao et al., "Weakly-Supervised Deep Embedding for Product Review Sentiment Analysis," in IEEE Transactions on Knowledge and Data Engineering, vol. 30, no. 1, pp. 185-197, 1 Jan. 2018, doi: 10.1109/TKDE.2017.2756658.
  7. R. M. Duwairi and I.Qarqaz, “A framework for Arabic sentiment analysis using supervised classification” , Int. J. Data Mining, Modelling and Management, Vol. 8, No. 4, pp.369-381 , 2016.
  8. Shoukry, Amira & Rafea, Ahmed. (2012). Preprocessing Egyptian Dialect Tweets for Sentiment Mining.
  9. [Online Blog] Sentiment Analysis using NLTK – A Practical Approach, Sriniketh J — June 25, 2021, https://www.analyticsvidhya.com/blog/2021/06/sentiment-analysis-using-nltk-a-practical-approach/.
  10. L. Wasser and C. Farmer, "Sentiment Analysis of Colorado Flood Tweets in R", Earth Lab, 2018. [Online]. Available: https://earthdatascience.org/courses/earth-analytics/get-data-usingapis/sentiment-analysis-of-twitter-data-r/. [Accessed: 01- Mar- 2018].
  11. Sentiment Analysis using TextBlob, Parthvi Shah Jun 27, 2020, [Online]. Available: https://towardsdatascience.com/my-absolute-go-to-for-sentiment-analysis-textblob-3ac3a11d524.
  12. How to build a real-time live dashboard with Streamlit, By AbdulMajedRaja RS, Posted in Community, April 21 2022[Online] Available at: https://blog.streamlit.io/how-to-build-a-real-time-live-dashboard-with-streamlit/.
Index Terms

Computer Science
Information Sciences

Keywords

Sentiment analysis Opinion mining LSTM Twitter data Indian elections machine learning public opinion opinion mining