Related Experiment Video
Updated: Aug 2, 2025

Author Spotlight: Addressing Technical and Subjective Challenges in Measuring Classroom Attention
Published on: December 15, 2023
Optimizing sentiment analysis of Nigerian 2023 presidential election using two-stage residual long short term memory
David Opeoluwa Oyewola1, Lawal Abdullahi Oladimeji2, Sowore Olatunji Julius3
1Department of Mathematics and Statistics, Federal University Kashere, Gombe State, Nigeria.
Abstract:
Sentiment analysis is the process of recognizing positive or negative attitudes in text. This technique makes use of computational linguistics, text analysis, and natural language processing. The 2023 presidential election in Nigeria is a significant event for the country, as it will determine the leader of the nation for the next four years. As such, it is important to understand the sentiment of the public towards the different candidates. In this research, we aimed to understand the sentiment of the public towards the three main candidates in the 2023 presidential election in Nigeria, Atiku, Tinubu, and Obi, by conducting a sentiment analysis on tweets related to the candidates. We used the long short-term memory (LSTM), peephole long short term memory (PLSTM), and two-stage residual long short-term memory (TSRLSTM) models to classify tweets as positive, neutral, or negative. Our dataset consisted of a large number of tweets that were preprocessed to remove noise and irrelevant information. Results showed that TSRLSTM performed excellently well in classifying the tweets and in identifying the sentiment towards each candidate individually. Our findings provide valuable insights into the public's opinion on the candidates and their campaign strategies, which can be useful for researchers, political analysts, and decision-makers. Our study highlights the importance of sentiment analysis in understanding public opinion and its potential applications in the field of political science.
Related Concept Videos
Residuals and Least-Squares Property
If the observed data point lies above the line, the residual is positive, and the line underestimates the actual data value for y. If the observed data point lies below the line, the residual is negative, and the line overestimates the actual data value for y.
The process of fitting the best-fit...
Residual Plots
When the residual values are plotted against the variable x, it is called a residual...
Improving Translational Accuracy
Prediction Intervals
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
Predicting Reaction Outcomes
Multiple Regression
Farmers can use multiple regression to determine the crop yield based on more than one factor, such as water availability, fertilizer, soil properties, etc. Here, the crop yield is the response or dependent variable as it depends on the other independent variables. The analysis requires the construction of a scatter plot...

