Stock Price Prediction Using Long Short-Term Memory and Genetic Algorithm
Stock prices are more challenging for decision-makers, particularly for companies such as PT Agung Podomoro Land Tbk (APLN), which fluctuate in a non-linear manner, making it complicated to predict using conventional statistical approaches. This study designs a stock price prediction model for APLN using Long Short-Term Memory. This artificial neural network architecture excels at processing time-series data, with hyperparameters optimized using a Genetic Algorithm to avoid trial-and-error parameter selection. The data comprises 1,198 rows of daily historical stock data for APLN from June 30, 2021, to June 30, 2026, including opening, high, low, closing prices, and trading volume. The data were normalized, transformed into sequences with a 60-trading-day window, and divided into training, validation, and testing sets with a proportion of 70:15:15. GA was utilized to search for the optimal combination of four hyperparameters, namely learning rate, batch size, number of epochs, and number of neurons, through an evolutionary process spanning five generations with a population size of six individuals. The optimization process yielded the best configuration: a learning rate of 0.001508, a batch size of 16, 30 epochs, and 105 neurons, demonstrating a stable fitness value since the third generation. The final model trained with this configuration was evaluated on unseen test data, yielding a Root Mean Square Error of 7.96, a Mean Absolute Error of 4.79, and a Mean Absolute Percentage Error of 3.34%, equivalent to an accuracy rate of 96.66%. The model follows the general trend of stock price movements reasonably well, although it still exhibits lags and tends to underestimate values during sharp, sudden price surges. These results indicate that the combination of LSTM and GA is a viable approach for predicting volatile property stocks such as APLN.
Authors
- Joan Angelina Widians (ORCID: https://orcid.org/0000-0003-2887-1230)
- Nataniel Dengen
- Davina Putri Ananta
Publication Details
- Journal
- TEPIAN
- Published
- 2026-11-26
- DOI
- https://doi.org/10.51967/tepian.v7i4.3990
- Primary Topic
- Stock Market Forecasting Methods
- Type
- article
- Field-Weighted Citation Impact
- 0.00