PEMODELAN DAN ANALISIS AKURASI RNN (RECURRENT NEURAL NETWORK) PADA PREDIKSI HARGA BATU BARA DAN MINYAK MENTAH

Muhammad Faiz Alil Himmah, Ngatini Ngatini, Doni Setio Pambudi, Puji Andayani

Abstract


Crude oil and coal are fundamental energy sources for global industrialization. The stability of their prices plays an important role in supporting global economic growth. The increasing demand for crude oil and coal to meet the energy needs of various countries significantly affects price fluctuations in the global market. Crude oil and coal price volatility also exhibits a strong positive relationship, where shocks in the oil market propagate to the coal market. Therefore, reliable and accurate predictive models are essential for forecasting the price movements of these energy commodities. This study compares the performance of two Recurrent Neural Network (RNN) models, namely Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU), an approach not previously undertaken. Predictions were performed on daily time-series data covering the period from 2015 to 2026. Model performance was evaluated using Mean Absolute Percentage Error (MAPE), Mean Absolute Error (MAE), Root Mean Square Error (RMSE) and . The optimal parameters used in this study were 64 units, a dropout rate of 0.2, batch size of 32, 100 epochs, and a 60-step time window. The results indicate that the GRU model outperformed the LSTM model in terms of prediction accuracy and computational time. The proposed predictive model can support energy market risk analysis, investment planning, and policy evaluation related to the stability of energy commodity prices.


Keywords


RNN, LSTM, GRU, Crude Oil, Coal

Full Text:

PDF

References


Alam, M. S., Murshed, M., Manigandan, P., Pachiyappan, D., & Abduvaxitovna, S. Z. (2023). Forecasting Oil, Coal, and Natural Gas Prices in the Pre-and Post-COVID Scenarios: Contextual Evidence from India Using Time Series Forecasting Tools. Resources Policy, 81, 103342.

https://doi.org/https://doi.org/10.1016/j.resourpol.2023.103342

Alameer, Z., Fathalla, A., Li, K., Ye, H., & Jianhua, Z. (2020). Multistep-Ahead Forecasting of Coal Prices using a Hybrid Deep Learning Model. Resources Policy, 65, 101588. https://doi.org/https://doi.org/10.1016/j.resourpol.2020.101588

Armstrong, J. S., & Collopy, F. (1992). Error Measures for Generalizing about Forecasting Methods: Empirical Comparisons. In International Journal of Forecasting (Vol. 8).

Bala, U., & Chin, L. (2018). Asymmetric Impacts of Oil Price on Inflation: An Empirical Study of African Opec Member Countries. Energies, 11(11). https://doi.org/10.3390/en11113017

Busari, G. A., & Lim, D. H. (2021). Crude Oil Price Prediction: A Comparison between AdaBoost-LSTM and AdaBoost-GRU for Improving Forecasting Performance. Computers & Chemical Engineering, 155, 107513. https://doi.org/https://doi.org/10.1016/j.compchemeng.2021.107513

Chai, T., & Draxler, R. R. (2014). Root Mean Square Error (RMSE) or Mean Absolute Error (MAE)? – Arguments Against Avoiding RMSE in the Literature. Geoscientific Model Development, 7(3), 1247–1250. https://doi.org/10.5194/gmd-7-1247-2014

Chen, S.-Y., Zhang, Q., Mclellan, B., & Zhang, T.-T. (2020). Review on the Petroleum Market in China: History, Challenges and Prospects. Petroleum Science, 17(6), 1779–1794. https://doi.org/10.1007/s12182-020-00501-6

Chung, J., Gulcehre, C., Cho, K., & Bengio, Y. (2014). Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. http://arxiv.org/abs/1412.3555

Council on Foreign Relations. (2024). Oil Dependence and U.S. Foreign Policy. Council on Foreign Relations. https://www.cfr.org/timeline/oil-dependence-and-us-foreign-policy

Delcea, C. (2026). Recent Advances in Time Series Forecasting Methods. Applied Sciences, 16(3).

https://doi.org/10.3390/app16031417

Economist Intelligence. (2023, July 10). Fossil Fuel Demand to Continue Expanding this Decade. Economist Intelligence. https://www.eiu.com/n/fossil-fuel-demand-to-continue-expanding-this-decade/

Elmousaid, R., Drioui, N., Elgouri, R., Agueny, H., & Adnani, Y. (2024). Ultra-Short-Term Global Horizontal Irradiance Forecasting Based on a Novel and Hybrid GRU-TCN model. Results in Engineering, 23, 102817. https://doi.org/https://doi.org/10.1016/j.rineng.2024.102817

Gao, B., Xu, J., Zhang, Z., Liu, Y., & Chang, X. (2024). Marine Diesel Engine Piston Ring Fault Diagnosis Based on LSTM and Improved Beluga Whale Optimization. Alexandria Engineering Journal, 109, 213–228. https://doi.org/https://doi.org/10.1016/j.aej.2024.08.075

Hochreiter, S., & Schmidhuber, J. (1997). Long Short-Term Memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735

Huang, W., Gao, T., Hao, Y., & Wang, X. (2023). Transformer-Based Forecasting for Intraday Trading in the Shanghai Crude Oil Market: Analyzing Open-High-Low-Close Prices. Energy Economics, 127, 107106. https://doi.org/https://doi.org/10.1016/j.eneco.2023.107106

Hyndman, rob J., & Athanasopoulos, G. (2021). Forecasting: Principles and Practice (3rd ed). https://otexts.com/fpp3/

Lahmiri, S. (2026). A Hybrid CNN-LSTM-GRU System Tuned by Whale Optimization Algorithm for Enhanced Gold and Brent Price Prediction. Finance Research Open, 2(1), 100100. https://doi.org/10.1016/j.finr.2026.100100

Li, L., & Miu, P. (2024). Diversifying Crude Oil Price Risk with Crude Oil Volatility Index: The Role of Volatility-of-Volatility. Journal of Commodity Markets, 100425. https://doi.org/10.1016/j.jcomm.2024.100425

Manu, Joseph. (2022). Modern Time Series Forecasting with Python: Explore Industry-Ready Time Series Forecasting using Modern Machine Learning and Deep Learning. Packt publishing limited.

Masum, M., Shahriar, H., Haddad, H. M., & Alam, Md. S. (2020). r-LSTM: Time Series Forecasting for COVID-19 Confirmed Cases with LSTM Based Framework. 2020 IEEE International Conference on Big Data (Big Data), 1374–1379. https://doi.org/10.1109/BigData50022.2020.9378276

National Geographic Society. (2023, October 19). Fossil Fuels. https://education.nationalgeographic.org/resource/fossil-fuels/

Ning, Y., Kazemi, H., & Tahmasebi, P. (2022). A Comparative Machine Learning Study for Time Series Oil Production Forecasting: ARIMA, LSTM, and Prophet. Computers & Geosciences, 164, 105126. https://doi.org/https://doi.org/10.1016/j.cageo.2022.105126

PhDs at Asian Institute of Management. (2023). Time Series Analysis Handbook. https://phdinds-aim.github.io/time_series_handbook

Rahmania, S. T., & Anis, A. (2024). Dampak Guncangan Harga Minyak Dunia terhadap Dinamika Inflasi di Indonesia. Jurnal Kajian Ekonomi dan Pembangunan, 6(1), 13–20. http://ejournal.unp.ac.id/students/index.php/epb/index

Safitri, M., Anwar, K., & Abbas, T. (2022). Pengaruh Harga Minyak Dunia, Inflasi, dan Ekspor Neto terhadap Pertumbuhan Ekonomi di Indonesia. Jurnal Ekonomi Regional Unimal, 5. https://ojs.unimal.ac.id/ekonomi_regional/index.

Sen, A., & Dutta Choudhury, K. (2024). Forecasting the Crude Oil Prices for Last Four Decades Using Deep Learning Approach. Resources Policy, 88, 104438. https://doi.org/https://doi.org/10.1016/j.resourpol.2023.104438

Sharma, B., & Shrestha, A. (2023). Petroleum Dependence in Developing Countries with an Emphasis on Nepal and Potential Keys. Energy Strategy Reviews, 45, 101053. https://doi.org/https://doi.org/10.1016/j.esr.2023.101053

Simsek, A. I., Bulut, E., Gur, Y. E., & Gültekin Tarla, E. (2024). A Novel Approach to Predict WTI Crude Spot Oil Price: LSTM-Based Feature Extraction with Xgboost Regressor. Energy, 309, 133102. https://doi.org/https://doi.org/10.1016/j.energy.2024.133102

Trading Economics. (2024). Crude oil. Trading Economics. https://tradingeconomics.com/

Wang, C., Xu, G., Sun, C., Xu, J., Xu, K., Jiang, L., Wang, Y., Su, S., Hu, S., & Xiang, J. (2024). Modeling and Forecasting of Coal Price Based on Influencing Factors and Time Series. Journal of Cleaner Production, 467, 143030. https://doi.org/https://doi.org/10.1016/j.jclepro.2024.143030

Wen, D., Wang, H., Wang, Y., & Xiao, J. (2024). Crude Oil Futures and the Short-Term Price Predictability of Petroleum Products. Energy, 307, 132750. https://doi.org/https://doi.org/10.1016/j.energy.2024.132750

Wettengel, J. (2024, April 3). Germany, EU Remain Heavily Dependent on Imported Fossil Fuels. Journalism for the Energy Transition. https://www.cleanenergywire.org/factsheets/germanys-dependence-imported-fossil-fuels

Zamani, N. (2016). International Journal of Energy Economics and Policy the Relationship between Crude Oil and Coal Markets: A New Approach. International Journal of Energy Economics and Policy, 6(4), 801–805. http:www.econjournals.com

Zhang, K., & Hong, M. (2022). Forecasting Crude Oil Price using LSTM Neural Networks. Data Science in Finance and Economics, 2(3), 163–180. https://doi.org/10.3934/dsfe.2022008

Zhao, Y., Li, J., & Yu, L. (2017). A Deep Learning Ensemble Approach for Crude Oil Price Forecasting. Energy Economics, 66, 9–16. https://doi.org/https://doi.org/10.1016/j.eneco.2017.05.023




DOI: https://doi.org/10.20527/epsilon.v20i1.18583

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 EPSILON: JURNAL MATEMATIKA MURNI DAN TERAPAN

Indexed by: 

      

 

EDITORIAL OFFICE 

           

 

 

 

Creative Commons License
All articles published in "Epsilon: Jurnal Matematika Murni dan Terapan" are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0). Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.