Comparative Performance Analysis of Optimization Algorithms in Artificial Neural Networks for Stock Price Prediction
Abstract
This study aims to enhance price prediction accuracy using Artificial Neural Networks (ANN) by comparing three optimization methods: Stochastic Gradient Descent (SGD), Adam, and RMSprop. The research employs a systematic approach involving the design, training, and validation of ANN models optimized by these techniques. Performance metrics such as Mean Squared Error (MSE), Mean Absolute Error (MAE), and R Square are utilized to evaluate the effectiveness of each method. The results indicate that the Adam optimization method outperforms the others, achieving the lowest MSE of 0.0000503 and the lowest MAE of 0.0046, resulting in an impressive R Square value of 0.9989. Adam’s superior performance can be attributed to its adaptive learning rate mechanism, which effectively adjusts to the high volatility and noise characteristic of stock price data, enabling the model to converge faster and more accurately. In comparison, SGD produced a higher MSE of 0.0001208 and MAE of 0.0075, while RMSprop yielded an MSE of 0.0000726 and MAE of 0.0059. These findings highlight Adam’s ability to significantly enhance the predictive capabilities of ANN, particularly in dynamic and complex datasets, making it a preferred choice for this application. The novelty of this research lies not only in its comparative analysis of various optimization methods within the ANN framework but also in the exploration of unique ANN features and their application to a specific stock price prediction case study, providing deeper insights into the practical implications of optimization strategies. This study lays the groundwork for future research by suggesting the exploration of additional optimization algorithms and more complex neural network architectures to further improve prediction accuracy.
Downloads
References
O. Bustos and A. Pomares-Quimbaya, “Stock market movement forecast: A Systematic review,” Expert Syst Appl, vol. 156, p. 113464, Oct. 2020, doi: 10.1016/j.eswa.2020.113464.
A. Thakkar and K. Chaudhari, “A comprehensive survey on deep neural networks for stock market: The need, challenges, and future directions,” Expert Syst Appl, vol. 177, p. 114800, Sep. 2021, doi: 10.1016/j.eswa.2021.114800.
D. Sheth and M. Shah, “Predicting stock market using machine learning: best and accurate way to know future stock prices,” International Journal of System Assurance Engineering and Management, vol. 14, no. 1, pp. 1–18, Feb. 2023, doi: 10.1007/s13198-022-01811-1.
G. Kumar, S. Jain, and U. P. Singh, “Stock Market Forecasting Using Computational Intelligence: A Survey,” Archives of Computational Methods in Engineering, vol. 28, no. 3, pp. 1069–1101, May 2021, doi: 10.1007/s11831-020-09413-5.
R. Bhowmik and S. Wang, “Stock Market Volatility and Return Analysis: A Systematic Literature Review,” Entropy, vol. 22, no. 5, p. 522, May 2020, doi: 10.3390/e22050522.
A. Thakkar and K. Chaudhari, “A Comprehensive Survey on Portfolio Optimization, Stock Price and Trend Prediction Using Particle Swarm Optimization,” Archives of Computational Methods in Engineering, vol. 28, no. 4, pp. 2133–2164, Jun. 2021, doi: 10.1007/s11831-020-09448-8.
W. Yu, C. Y. Wong, R. Chavez, and M. A. Jacobs, “Integrating big data analytics into supply chain finance: The roles of information processing and data-driven culture,” Int J Prod Econ, vol. 236, p. 108135, Jun. 2021, doi: 10.1016/j.ijpe.2021.108135.
A. Setiawan, A. S. Prabowo, and E. Y. Puspaningrum, “Handwriting Character Recognition Javanese Letters Based on Artificial Neural Network,” 2019.
M. Shorfuzzaman, M. Masud, H. Alhumyani, D. Anand, and A. Singh, “Artificial Neural Network-Based Deep Learning Model for COVID-19 Patient Detection Using X-Ray Chest Images,” J Healthc Eng, vol. 2021, 2021, doi: 10.1155/2021/5513679.
A. Kumar, S. Sarkar, and C. Pradhan, “Malaria Disease Detection Using CNN Technique with SGD, RMSprop and ADAM Optimizers,” in Deep Learning Techniques for Biomedical and Health Informatics, S. Dash, B. R. Acharya, M. Mittal, A. Abraham, and A. Kelemen, Eds., Cham: Springer International Publishing, 2020, pp. 211–230. doi: 10.1007/978-3-030-33966-1_11.
I. K. Nti, A. F. Adekoya, and B. A. Weyori, “A novel multi-source information-fusion predictive framework based on deep neural networks for accuracy enhancement in stock market prediction,” J Big Data, vol. 8, no. 1, p. 17, Dec. 2021, doi: 10.1186/s40537-020-00400-y.
F. Kamalov, “Forecasting significant stock price changes using neural networks,” Neural Comput Appl, vol. 32, no. 23, pp. 17655–17667, Dec. 2020, doi: 10.1007/s00521-020-04942-3.
P. Yu and X. Yan, “Stock price prediction based on deep neural networks,” Neural Comput Appl, vol. 32, no. 6, pp. 1609–1628, Mar. 2020, doi: 10.1007/s00521-019-04212-x.
“BMRI.JK Datasets.” Accessed: Oct. 11, 2024. [Online]. Available: https://sg.finance.yahoo.com/quote/BMRI.JK/
Q. A. Putra, C. A. Sari, E. H. Rachmawanto, N. R. D. Cahyo, E. Mulyanto, and M. A. Alkhafaji, “White Bread Mold Detection using K-Means Clustering Based on Grey Level Co-Occurrence Matrix and Region of Interest,” in 2023 International Seminar on Application for Technology of Information and Communication (iSemantic), 2023, pp. 376–381. doi: 10.1109/iSemantic59612.2023.10295369.
N. R. D. Cahyo and M. M. I. Al-Ghiffary, “An Image Processing Study: Image Enhancement, Image Segmentation, and Image Classification using Milkfish Freshness Images,” IJECAR) International Journal of Engineering Computing Advanced Research, vol. 1, no. 1, pp. 11–22, 2024.
F. Farhan, C. A. Sari, E. H. Rachmawanto, and N. R. D. Cahyo, “Mangrove Tree Species Classification Based on Leaf, Stem, and Seed Characteristics Using Convolutional Neural Networks with K-Folds Cross Validation Optimalization,” Advance Sustainable Science Engineering and Technology, vol. 5, no. 3, p. 02303011, Oct. 2023, doi: 10.26877/asset.v5i3.17188.
I. P. Kamila, C. A. Sari, E. H. Rachmawanto, and N. R. D. Cahyo, “A Good Evaluation Based on Confusion Matrix for Lung Diseases Classification using Convolutional Neural Networks,” Advance Sustainable Science, Engineering and Technology, vol. 6, no. 1, p. 0240102, Dec. 2023, doi: 10.26877/asset.v6i1.17330.
M. M. I. Al-Ghiffary, N. R. D. Cahyo, E. H. Rachmawanto, C. Irawan, and N. Hendriyanto, “Adaptive deep learning based on FaceNet convolutional neural network for facial expression recognition,” Journal of Soft Computing, vol. 05, no. 03, pp. 271–280, 2024, doi: https://doi.org/10.52465/joscex.v5i3.450.
N. R. D. Cahyo, C. A. Sari, E. H. Rachmawanto, C. Jatmoko, R. R. A. Al-Jawry, and M. A. Alkhafaji, “A Comparison of Multi Class Support Vector Machine vs Deep Convolutional Neural Network for Brain Tumor Classification,” in 2023 International Seminar on Application for Technology of Information and Communication (iSemantic), IEEE, Sep. 2023, pp. 358–363. doi: 10.1109/iSemantic59612.2023.10295336.
M. M. I. Al-Ghiffary, C. A. Sari, E. H. Rachmawanto, N. M. Yacoob, N. R. D. Cahyo, and R. R. Ali, “Milkfish Freshness Classification Using Convolutional Neural Networks Based on Resnet50 Architecture,” Advance Sustainable Science Engineering and Technology, vol. 5, no. 3, p. 0230304, Oct. 2023, doi: 10.26877/asset.v5i3.17017.
U. Sara, M. Akter, and M. S. Uddin, “Image Quality Assessment through FSIM, SSIM, MSE and PSNR—A Comparative Study,” Journal of Computer and Communications, vol. 07, no. 03, pp. 8–18, 2019, doi: 10.4236/jcc.2019.73002.
D. Chicco, M. J. Warrens, and G. Jurman, “The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation,” PeerJ Comput Sci, vol. 7, p. e623, Jul. 2021, doi: 10.7717/peerj-cs.623.
Copyright (c) 2025 Ekaprana Wijaya, Moch. Arief Soeleman, Pulung Nurtantio Andono
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).