Comparative Analysis of Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU) and Transformer Models in Predicting Stock Prices

This research explores the application of LSTM, GRU and Transformer models for predicting stock prices, aiming to enhance accuracy in financial forecasting. Stock price prediction is crucial for investment decision-making, yet challenging due to market volatility and complex patterns. The objectives are to evaluate the performance of LSTM, GRU and Transformer models using key metrics such as test loss, MAE, and MSE, and to compare their predictive capabilities. The LSTM model demonstrates robust performance with low test loss and MAE, indicating precise predictions and effective pattern recognition in financial data. In contrast, the Transformer model also shows promising results with relatively low test loss and MAE, albeit with larger errors in MSE and MAE metrics. Both models highlight the potential for accurate stock price prediction, suggesting avenues for future research to optimize model performance and reliability in financial forecasting applications. The experimental results show that GRU Outperformed LSTM and Transformer with an MSE of 0.0008, MAE of 0.0023, and high test accuracy of 0.9833.

Authors

Institutions

Publication Details

Published
2024-11-26
DOI
https://doi.org/10.1109/nigercon62786.2024.10927198
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Analysis of Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU) and Transformer Models in Predicting Stock Prices

Julius Olaniyan, Chinecherem Umezuruike, Deborah Olaniyan, Adedoyin Oyebade et al.
1 links
Stock Market Forecasting Methods
article

Comparative Analysis of Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU) and Transformer Models in Predicting Stock Prices

Julius Olaniyan, Chinecherem Umezuruike, Deborah Olaniyan, Adedoyin Oyebade, Abidemi Emmanuel Adeniyi, David Abaneme
article en

Abstract

This research explores the application of LSTM, GRU and Transformer models for predicting stock prices, aiming to enhance accuracy in financial forecasting. Stock price prediction is crucial for investment decision-making, yet challenging due to market volatility and complex patterns. The objectives are to evaluate the performance of LSTM, GRU and Transformer models using key metrics such as test loss, MAE, and MSE, and to compare their predictive capabilities. The LSTM model demonstrates robust performance with low test loss and MAE, indicating precise predictions and effective pattern recognition in financial data. In contrast, the Transformer model also shows promising results with relatively low test loss and MAE, albeit with larger errors in MSE and MAE metrics. Both models highlight the potential for accurate stock price prediction, suggesting avenues for future research to optimize model performance and reliability in financial forecasting applications. The experimental results show that GRU Outperformed LSTM and Transformer with an MSE of 0.0008, MAE of 0.0023, and high test accuracy of 0.9833.

University of Ilorin (NG), Bowen University (NG), Software (Spain) (ES)
Openalex Percentile: Top 66%
Stock Market Forecasting Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.