Gold Price Forecasting in Kuala Pilah, Negeri Sembilan, Malaysia Using Long Short-Term Memory (LSTM)
Authors
Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA (UiTM) Cawangan Melaka Kampus Jasin, 77300 Merlimau, Melaka (Malaysia)
Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA (UiTM) Cawangan Melaka Kampus Jasin, 77300 Merlimau, Melaka (Malaysia)
Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA (UiTM) Cawangan Melaka Kampus Jasin, 77300 Merlimau, Melaka (Malaysia)
Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA (UiTM) Cawangan Melaka Kampus Jasin, 77300 Merlimau, Melaka (Malaysia)
Nur Aryuni Allysha Binti Hasnan
Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA (UiTM) Cawangan Melaka Kampus Jasin, 77300 Merlimau, Melaka (Malaysia)
Article Information
DOI: 10.47772/IJRISS.2025.910000552
Subject Category: Economics
Volume/Issue: 9/10 | Page No: 6760-6765
Publication Timeline
Submitted: 2025-10-27
Accepted: 2025-11-02
Published: 2025-11-18
Abstract
Gold is the most popular investment in the world because it has proven to be the most effective haven in many countries. It is challenging to use technical analysis to predict gold's value. Many prediction problems involving time components require time series forecasting, an important topic in machine learning. This paperpresents a prototype for predicting the gold price in Kuala Pilah, Negeri Sembilan, Malaysia, using the Long Short-Term Memory (LSTM) time-series method. To address the problem, a dataset of daily gold prices was collected from Telegram Kedai Emas Nur Jannah and the Bullion Rates website. The main feature of the system is to predict the gold price and to visualise the predicted value. The waterfall method has been chosen as the project's methodology to ensure the project’s flow is correct. The predictive model was also evaluated using Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Mean Absolute Percentage Error (MAPE). As a result, the system achieved an MAE of 0.108 at the daily time scale. The RMSE was 0.131 at the daily time scale, and the MAPE was 17%. The system can also improve the visualisation to make it more interactive and include another timescale, such as a daily timeframe.
Keywords
Gold, Prediction, Long Short-Term Memory
Downloads
References
1. Assan, N. (2023, April 7). Makin ramai jual emas, harga cecah RM291 segram. Sinar Harian. [Google Scholar] [Crossref]
2. Brownlee, J. (2017). Long short-term memory networks with Python. Machine Learning Mastery. [Google Scholar] [Crossref]
3. Hamzah, N. A. (2021, March 7). ‘Lubuk emas’ di Pekan Kuala Pilah. Kosmo. https://www.kosmo.com.my/2021/03/07/lubuk-emas-di-pekan-kuala-pilah/ [Google Scholar] [Crossref]
4. Hasbi, A. (2023, May 25). Polis jumpa pengusaha lubuk emas Kuala Pilah. Harian Metro. https://www.hmetro.com.my/mutakhir/2023/05/970614/polis-jumpa-pengusaha-lubuk-emas-kuala-pilah [Google Scholar] [Crossref]
5. Hyndman, R. J., & Koehler, A. B. (2006, October). Another look at measures of forecast accuracy. International Journal of Forecasting, 22(4), 679–688. https://doi.org/10.1016/j.ijforecast.2006.03.001 [Google Scholar] [Crossref]
6. Greff, K., Srivastava, R. K., Koutnik, J., Steunebrink, B. R., & Schmidhuber, J. (2017, October). LSTM: A search space odyssey. IEEE Transactions on Neural Networks and Learning Systems, 28(10), 2222–2232. https://doi.org/10.1109/TNNLS.2016.2582924 [Google Scholar] [Crossref]
7. Makala, D., & Li, Z. (2021, February). Prediction of gold price with ARIMA and SVM. Journal of Physics: Conference Series, 1767(1), 012022. https://doi.org/10.1088/1742-6596/1767/1/012022 [Google Scholar] [Crossref]
8. Setyowibowo, S., As’ad, M., Sujito, S., & Farida, E. (2022, February). Forecasting of daily gold price using ARIMA-GARCH hybrid model. JEP, 19(2), 257–270. [Google Scholar] [Crossref]
9. Zhang, G. P. (2003, January). Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing, 50, 159–175. https://doi.org/10.1016/S0925-2312(01)00702-0 [Google Scholar] [Crossref]
Metrics
Views & Downloads
Similar Articles
- Impact of Foreign Direct Investment in India
- Issues Involved in Digitalisation Special Reference to Indian Tourism Growth
- Relationship Marketing and Customer Loyalty in the Fast-Moving Consumer Goods (FMCG) Industry in Nairobi County
- Financial Literacy or Financial Inclusion? Which is Which, What is What—To Achieve Uganda’s 10-Fold Economic Growth By 2040
- Harnessing Natural Gas for Economic Transformation: Overcoming the Regulatory and Infrastructural Bottlenecks in Nigeria