Skip to content
Research Article Open access CC BY 4.0

Analyzing Election Sentiments in Tweets with Gated Recurrent Units (GRU)

Agu Edward O., Bako Jeremy Zevini, Hambali Moshood Abiola

Asian Journal of Research in Computer Science · pp. 125–132 · Published 12 Oct 2023

10.9734/ajrcos/2023/v16i4376

Abstract

Sentiment analysis, a key task in natural language processing, is important for detecting the emotional tone portrayed in text. In this study, we focus on implementing a Gated Recurrent   Unit (GRU) model to analyze attitudes within the 2020 Donald Trump Election tweets dataset. By setting the GRU model with carefully selected parameters, the aim of the study is to unveil the inherent sentiment patterns in the dataset. To develop the sentiment analysis model, the study devised a three phase methodology which that include data preprocessing, feature selection using correlation matrix, and lastly the implementation of GRU. Futhermore, we provided the outcomes of our experiment, evaluating the model's performance through important measures such as accuracy, precision, and recall. Notably, our data exhibit an exceptional accuracy rate of 93%, verifying the model's power to appropriately categorize attitudes. Additionally, both recall and precision receive outstanding ratings of 94% and 96%, indicating the model's skill in distinguishing both positive and negative attitudes. This inquiry emphases the effective usage of the GRU model in sentiment analysis, shedding light on the emotional nuances within the 2020 Donald Trump dataset and enriching our understanding of sentiments during the election period.

Sentiment analysis natural language processing tweets Gated Recurrent Unit (GRU) machine learning and deep learning

Cited by 1

Analisis Sentimen, Linguistik, dan Spasial Pada Program Makan Bergizi Gratis Menggunakan LSTM dan GRU

Dewi Asiah Shofiana, Rhalasya Eleina Putri, Rahman Taufik · Techno.Com · 2026

Article metrics

Real usage data collected on this platform.

0

Page views

0

PDF downloads

0

Outbound clicks

1

Citations

Views by country

Approximate, from request IP at view time — not citizenship or institution. Countries with fewer than 5 views are grouped as "Other".

No views recorded yet.

Traffic sources

Referring site, by host.

No traffic recorded yet.

Views and downloads exclude known bots/crawlers. Citations combines this platform's own DOI-resolved index with each external source's own reported total — see Cited by above for individually listed citing works. Last refreshed 0 seconds ago.