Gold Price Forecasting in Kuala Pilah, Negeri Sembilan, Malaysia
Using Long Short-Term Memory (LSTM)
Mohamad Hafiz Khairuddin, Nurazian Binti Mior Dahalan, Zamlina Binti Abdullah, Azlin Binti
Dahlan, Nur Aryuni Allysha Binti Hasnan
Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA (UiTM) Cawangan
Melaka Kampus Jasin, 77300 Merlimau, Melaka
DOI: https://dx.doi.org/10.47772/IJRISS.2025.910000552
Received: 27 October 2025; Accepted: 02 November 2025; Published: 18 November 2025
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 (LSTM), Time Series
INTRODUCTION
The gold price prediction system in Kuala Pilah, Malaysia, is an interesting area of research because the gold
price here is unpredictable. The reason for this is that the price in Kuala Pilah, Negeri Sembilan, Malaysia is a
factory price, which differs from the MS Bullion website. Predicting gold prices can be a gold mine —very
beneficial for investors, traders, and anyone who needs to plan ahead. The price of gold is constantly changing
and it cannot be easily predicted. Now that prices are rising, many customers who come to this shop are
interested in selling their gold. However, some exchange old gold for new designs to use the gold as savings
and a 'backup' to cash savings (Assan, 2023). This project aims to analyse the factors influencing gold prices in
Kuala Pilah and to develop a reliable model for predicting future price trends. Understanding the dynamics of
the gold market in this specific geographical location will enhance existing knowledge and provide practical
implications for stakeholders involved in gold trading in Kuala Pilah. This is because the gold price in Kuala
Pilah is the lowest in Malaysia. People prefer to buy gold here (Kuala Pilah) because of the low prices, which
are not tied to associations, and the reasonable wages, depending on the chosen design (Hamzah, 2021). The
low price of gold for decades has made gold shops in the town of Kuala Pilah, here, too often the frequent
focus of customers, especially every month and at weekends (Hasbi, 2023).
Problem Statement
There is a lack of accurate, reliable gold price predictions, which hinders individuals and businesses from
making informed decisions about buying, selling, and investing in gold. However, the price of gold fluctuates
unpredictably (Makala et. al, 2021). Current gold price prediction methods in Kuala Pilah are limited and often
unreliable, leading to uncertainties and potential financial losses for those involved in gold-related activities.
To address this problem, machine learning and deep learning methods, specifically recurrent neural networks