Preprint Article Version 1 Preserved in Portico This version is not peer-reviewed

Algorithm Optimizer in GA-LSTM for Stock Price Forecasting

Version 1 : Received: 11 May 2023 / Approved: 12 May 2023 / Online: 12 May 2023 (11:07:28 CEST)

A peer-reviewed article of this Preprint also exists.

Sukestiyarno, Y.L.; Wiyanti, D.T.; Azizah, L.; Widada, W. Algorithm Optimizer in GA-LSTM for Stock Price Forecasting. Contemporary Mathematics 2024, doi:10.37256/cm.5120243367. Sukestiyarno, Y.L.; Wiyanti, D.T.; Azizah, L.; Widada, W. Algorithm Optimizer in GA-LSTM for Stock Price Forecasting. Contemporary Mathematics 2024, doi:10.37256/cm.5120243367.

Abstract

Fluctuating stock prices make it difficult for investors to see investment opportunities. One tool that can help investors overcome this is forecasting techniques. Long Short-Term Memory (LSTM) is one of deep learning methods used in forecasting time series. The training and success of deep learning is strongly influenced by the selection of hyperparameters. This research uses a hybrid method between the Genetic Algorithm (GA) and LSTM to find a suitable model for predicting stock prices. GA is used in optimizing the architecture such as the number of epochs, window size, and the number of LSTM units in the hidden layer. Tuning optimizer is also carried out using several optimizers to achieve the best value. From method that has been applied, it shows that the method has a good level of accuracy with MAPE values below 10% in every optimizer used. The error rate generated is quite low, in case-1 with a minimum RMSE value of 93.03 and 94.40, & in case-2 with an RMSE value of 104.99 and 150.06 during training and testing. A fairly stable and small value is generated by setting it using the Adam Optimizer.

Keywords

Time Series; Forecasting, Deep Learning; Genetic Algorithm; Long Short-Term Memory

Subject

Computer Science and Mathematics, Applied Mathematics

Comments (1)

Comment 1
Received: 27 May 2023
Commenter:
The commenter has declared there is no conflict of interests.
Comment: This is an excellent manuscript.
+ Respond to this comment

We encourage comments and feedback from a broad range of readers. See criteria for comments and our Diversity statement.

Leave a public comment
Send a private comment to the author(s)
* All users must log in before leaving a comment
Views 0
Downloads 0
Comments 1
Metrics 0


×
Alerts
Notify me about updates to this article or when a peer-reviewed version is published.
We use cookies on our website to ensure you get the best experience.
Read more about our cookies here.