
ity of existing deep learning models such as LSTM
and RNN. It aims to test whether these models can
effectively capture the complexity of public senti-
ment in India’s rapidly evolving political landscape.
This study extracts meaningful features from tex-
tual data by using advanced text representation tech-
niques such as Term Frequency-Inverse Document
Frequency (TF-IDF) (Qaiser and Ali, 2018b) , (Liu
et al., 2018) and Word2Vec (Jatnika et al., 2019).
These models are then applied to analyze contextual
aspects of political tweets.Providing valuable insights
for future research in Indian political sentiment anal-
ysis.
The paper is structured to comprehensively ad-
dress the objectives of the study, with Section 2 pro-
viding a detailed background study that reviews ex-
isting sentiment analysis techniques such as TF-IDF,
Word2Vec (Lei, 2020), LSTM and RNN. This sec-
tion also explores their applications in social me-
dia analysis, with a focus on prior research in po-
litical sentiment analysis, emphasizing the strengths
and limitations of current approaches,highlighting
the description of existing models.Then in section 3
the proposed methodology is outlined, detailing the
use of advanced text representation and deep learn-
ing techniques, such as TF-IDF for feature extrac-
tion, Word2Vec for contextual word embedding, and
LSTM and RNN models for sequential data analysis.
It also describes the process of data cleaning, prepro-
cessing, and model training, ensuring accuracy and
efficiency. And in section 4 the experimental results
are discussed in-depth, including a comparative anal-
ysis of the proposed methods using metrics like ac-
curacy, recall, precision, and F1-score, accompanied
by visualizations that provide insights into sentiment
distribution and polarity trends. Then in the final sec-
tion 5 the paper concludes with a summary of the key
findings and their implications for understanding pub-
lic sentiment in Indian politics,along with a discus-
sion on potential future research directions, such as
expanding the methods to other domains or exploring
advanced sentiment analysis.
2 BACKGROUND STUDY
Several techniques have been developed for sentiment
analysis, particularly machine learning approaches,
which are useful for improving the accuracy of senti-
ment classification across various domains, including
politics, finance, and social media.
Machine learning approaches have been exten-
sively explored. (Gangwar and Mehta, 2022) inves-
tigates Israeli political tweets, addressing challenges
Figure 1: The internal structure of a single hidden unit in
an LSTM, visualizing the computation of h
t
and C
t
using
an input x
t
, the hidden state value of the previous unit h
t−1
,
and the cell state unit value of the preceding unit C
t−1
.
such as regional dialects and linguistic biases. Sim-
ilarly, (Hicham et al., 2023) emphasizes the effec-
tiveness of TF-IDF for sparse data, as elaborated in
(Qaiser and Ali, 2018a). Word2Vec, another fea-
ture representation, captures semantic relationships
between words, enhancing deep learning models like
LSTM networks and RNNs, as demonstrated in (Jat-
nika and Setiawan, 2020).
Advanced neural network models, such as LSTM
and RNN, have proven to be very effective for the
analysis of sequential data. LSTMs have an excel-
lent capability of capturing long-term dependencies
and are very effective for tasks like sentiment anal-
ysis on long-form text. For instance, (Paduri et al.,
2022) illustrates how LSTM can model temporal pat-
terns, while (Murthy et al., 2020) has demonstrated its
ability in analyzing the sentiment within complex text
structures. The architecture of an LSTM network, as
described in (Darji, 2021), is presented in Figure 1. It
depicts the internal structure of a single LSTM cell,
including its gating mechanisms, namely the input,
forget, and output gates, which control the flow of in-
structions.
RNNs, on the other hand, are well-suited for tasks
involving shorter or fragmented text, such as tweets
or reviews, due to their ability to model sequential
dependencies. Studies like (Kurniasari and Setyanto,
2020) and (Thomas and C A, 2018) emphasize the
utility of RNNs in sentiment classification. The archi-
tecture of RNNs, as visualized in (Stier et al., 2021),
is depicted in Figure 2. It highlights their sequential
processing structure, where hidden states are passed
from one time step to the next, enabling RNNs to cap-
ture temporal patterns effectively.
Despite the advancement in sentiment analysis,
the Indian political tweets are still not well explored.
Models like LSTM and RNN have been promising,
but their performance on Indian political tweets has
not been fully tested. Techniques like TF-IDF and
Word2Vec work well for feature extraction, but it is
unknown how effective they are when combined with
these deep learning models. This gap can be filled by
INCOFT 2025 - International Conference on Futuristic Technology
702