Export Commodity Price Forecasting in Indonesia Using Decision Tree, Random Forest, and Long Short-Term Memory
DOI:
https://doi.org/10.26555/jiteki.v8i4.25242Keywords:
GDP, Export, Commodity, Decision Tree, Random Forest, LSTMAbstract
Gross Domestic Product (GDP) is an indicator that becomes a benchmark for a country's economic performance. One of the factors that significantly affect GDP is export activity. However, the problem that occurs is that the export value is relatively fluctuating, this is because commodity prices are always changing every time. Therefore, we need a system that can predict commodity prices accurately. It is hoped that this system can help the government to make appropriate export policies based on predictions of commodity prices in the future. The contribution of this study is to compare Decision Tree, Random Forest, and Long Short-Term Memory (LSTM) performance in forecasting several export commodities in Indonesia. In this study, the commodities forecasted are the main commodities from each sector that dominates exports in Indonesia, namely palm oil from the manufacturing sector, coffee from the agricultural sector, and coal from the mining sector. The experiments in this study were conducted by testing several hyperparameters of each method to determine the best model. The performance of models is measured using Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and Mean Absolute Percentage Error (MAPE). The results show that LSTM has the lowest error among Decision Tree and Random Forest with MAPE of 0.121, 0.494, and 0.282 in forecasting coal, coffee, and palm oil price respectively. Therefore, LSTM has proven to be the best method among Random Forest and Decision Tree in forecasting export commodity prices in Indonesia.References
Y. Chen, G. Wu, Y. Ge, and Z. Xu, "Mapping Gridded Gross Domestic Product Distribution of China Using Deep Learning With Multiple Geospatial Big Data," IEEE J Sel Top Appl Earth Obs Remote Sens, vol. 15, pp. 1791–1802, 2022, doi: https://doi.org/10.1109/JSTARS.2022.3148448.
S. C. Agu, F. U. Onu, U. K. Ezemagu, and D. Oden, "Predicting gross domestic product to macroeconomic indicators," Intelligent Systems with Applications, vol. 14, 2022, doi: https://doi.org/10.1016/j.iswa.2022.200082.
Y. Xu, L. He, Y. Liang, J. Si, and Y. Bao, "Enterprise Power Consumption Data and GDP Forecasting Based on Ensemble Algorithms," E3S Web of Conferences, vol. 30, pp. 3–6, 2021, doi: https://doi.org/10.1051/e3sconf/202123301030.
X. Wu, Z. Zhang, H. Chang, and Q. Huang, "A Data-Driven Gross Domestic Product Forecasting Model Based on Multi-Indicator Assessment," IEEE Access, vol. 9, pp. 99495–99503, 2021, doi: https://doi.org/10.1109/ACCESS.2021.3062671.
Z. Fannoun and I. Hassouneh, "The causal relationship between exports, imports and economic growth in Palestine," Journal of Reviews on Global Economics, vol. 8, no. Pcbs 2018, pp. 258–268, 2019, doi: https://doi.org/10.6000/1929-7092.2019.08.22.
M. R. Islam and M. Haque, "The Trends of Export and Its Consequences to the GDP of Bangladesh," Journal of Social Sciences and Humanities, vol. 1, no. 1, pp. 63–67, 2018, [Online]. Available: http://www.aascit.org/journal/archive2?journalId=931&paperId=6460
O. O. Awe, D. M. Akinlana, O. O. S. Yaya, and O. Aromolaran, "Time series analysis of the behaviour of import and export of agricultural and non-agricultural goods in West Africa: A case study of Nigeria," Agris On-line Papers in Economics and Informatics, vol. 10, no. 2, pp. 15–22, 2018, doi: https://doi.org/10.7160/aol.2018.100202.
A. M. Khan and U. Khan, "The stimulus of export and import performance on economic growth in oman," Montenegrin Journal of Economics, vol. 17, no. 3, pp. 71–86, 2021, doi: https://doi.org/10.14254/1800-5845/2021.17-3.6.
R. Eschachasthi, D. R. Saputri, M. Emo, S. Gustaman, Suheri, and U. Sumardi, "Analisis Komoditas Ekspor 2013-2020," 2021.
B. Shao, M. Li, Y. Zhao, and G. Bian, "Nickel Price Forecast Based on the LSTM Neural Network Optimized by the Improved PSO Algorithm," Math Probl Eng, vol. 2019, 2019, doi: https://doi.org/10.1155/2019/1934796.
H. Lin and Q. Sun, "Crude oil prices forecasting: An approach of using Ceemdan-based multi-layer gated recurrent unit networks," Energies (Basel), vol. 13, no. 7, pp. 1–21, 2020, doi: https://doi.org/10.3390/en13071543.
I. E. Livieris, E. Pintelas, N. Kiriakidou, and S. Stavroyiannis, An Advanced Deep Learning Model for Short-Term Forecasting U.S. Natural Gas Price and Movement, vol. 585 IFIP. Springer International Publishing, 2020. doi: https://doi.org/10.1007/978-3-030-49190-1_15.
C. Liu, Z. Hu, Y. Li, and S. Liu, "Forecasting copper prices by decision tree learning," Resources Policy, vol. 52, no. May, pp. 427–434, 2017, doi: https://doi.org/10.1016/j.resourpol.2017.05.007.
K. A. Manjula and P. Karthikeyan, "Gold Price Prediction using Ensemble based Machine Learning Techniques," 2019 3rd International Conference on Trends in Electronics and Informatics (ICOEI), no. April 2019, pp. 1360–1364, 2020, doi: https://doi.org/10.1109/ICOEI.2019.8862557.
K. M. Sabu and T. K. M. Kumar, "Predictive analytics in Agriculture: Forecasting prices of Arecanuts in Kerala," Procedia Comput Sci, vol. 171, no. 2019, pp. 699–708, 2020, doi: https://doi.org/10.1016/j.procs.2020.04.076.
A. Andiojaya and H. Demirhan, "A bagging algorithm for the imputation of missing values in time series," Expert Syst Appl, vol. 129, pp. 10–26, 2019, doi: https://doi.org/10.1016/j.eswa.2019.03.044.
J. C. Pena, G. Nápoles, and Y. Salgueiro, "Normalization method for quantitative and qualitative attributes in multiple attribute decision-making problems," Expert Syst Appl, vol. 198, no. February 2021, p. 116821, 2022, doi: https://doi.org/10.1016/j.eswa.2022.116821.
E. Chen and X. J. He, "Crude Oil Price Prediction with Decision Tree Based Regression Approach Crude Oil Price Prediction with Decision Tree Based Regression Approach," Journal of International Technology and Information Management, vol. 27, no. 4, 2019. Available at: https://scholarworks.lib.csusb.edu/jitim/vol27/iss4/1.
T. Brabenec, P. Suler, J. Horak, and M. Petras, "Prediction of the Future Development of Gold Price," Acta Montanistica Slovaca, vol. 25, no. 2020, 2021, doi: https://doi.org/10.46544/AMS.v25i2.11.
H. Zhou, J. Zhang, Y. Zhou, X. Guo, and Y. Ma, "A feature selection algorithm of decision tree based on feature weight," Expert Syst Appl, vol. 164, no. August 2020, p. 113842, 2021, doi: https://doi.org/10.1016/j.eswa.2020.113842.
K. M. Hindrayani, T. M. Fahrudin, R. Prismahardi Aji, and E. M. Safitri, "Indonesian Stock Price Prediction including Covid19 Era Using Decision Tree Regression," 2020 3rd International Seminar on Research of Information Technology and Intelligent Systems, ISRITI 2020, no. March 2020, pp. 344–347, 2020, doi: https://doi.org/10.1109/ISRITI51436.2020.9315484.
L. D. Yulianto, A. Triayudi, and I. D. Sholihati, "Implementation Educational Data Mining For Analysis of Student Performance Prediction with Comparison of K-Nearest Neighbor Data Mining Method and Decision Tree C4.5," Jurnal Mantik, vol. 4, no. 1, pp. 441–451, 2020, [Online]. Available: https://iocscience.org/ejournal/index.php/mantik/article/view/770
R. K. Paul et al., "Machine learning techniques for forecasting agricultural prices: A case of brinjal in Odisha, India," PLoS One, vol. 17, no. 7 July, pp. 1–17, 2022, doi: https://doi.org/10.1371/journal.pone.0270553.
W. Deng, Y. Guo, J. Liu, Y. Li, D. Liu, and L. Zhu, "A missing power data filling method based on improved random forest algorithm," Chinese Journal of Electrical Engineering, vol. 5, no. 4, pp. 33–39, 2019, doi: https://doi.org/10.23919/CJEE.2019.000025.
L. Tapak, H. Abbasi, and H. Mirhashemi, "Assessment of factors affecting tourism satisfaction using K-nearest neighborhood and random forest models," BMC Res Notes, vol. 12, no. 1, pp. 1–5, 2019, doi: https://doi.org/10.1186/s13104-019-4799-6.
S. R. Polamuri, K. Srinivas, and A. Krishna Mohan, "Stock market prices prediction using random forest and extra tree regression," International Journal of Recent Technology and Engineering, vol. 8, no. 3, pp. 1224–1228, 2019, doi: https://doi.org/10.35940/ijrte.C4314.098319.
C. Pierdzioch and M. Risse, "Forecasting precious metal returns with multivariate random forests," Empir Econ, vol. 58, no. 3, pp. 1167–1184, 2020, doi: https://doi.org/10.1007/s00181-018-1558-9.
K. Bhatia, R. Mittal, J. Varanasi, and M. M. Tripathi, "An ensemble approach for electricity price forecasting in markets with renewable energy resources," Util Policy, vol. 70, no. January, p. 101185, 2021, doi: https://doi.org/10.1016/j.jup.2021.101185.
Z. Xu, H. Deng, and Q. Wu, "Prediction of soybean price trend via a synthesis method with multistage model," International Journal of Agricultural and Environmental Information Systems, vol. 12, no. 4, pp. 1–13, 2021, doi: https://doi.org/10.4018/IJAEIS.20211001.oa1.
L. Boongasame, P. Viriyaphol, K. Tassanavipas, and P. Temdee, "Gold-Price Forecasting Method Using Long Short-Term Memory and the Association Rule," Journal of Mobile Multimedia, vol. 19, no. 1, pp. 165–186, 2022, doi: https://doi.org/10.13052/jmm1550-4646.1919.
P. H. Kuo and C. J. Huang, "An electricity price forecasting model by hybrid structured deep neural networks," Sustainability (Switzerland), vol. 10, no. 4, pp. 1–17, 2018, doi: https://doi.org/10.3390/su10041280.
M. F. Maulana, S. Sa, and P. E. Yunanto, "Crude Oil Price Forecasting Using Long Short-Term Memory," Jurnal Ilmiah Teknik Elektro Komputer dan Informatika, vol. 7, no. 2, pp. 286–295, 2021, doi: https://doi.org/10.26555/jiteki.v7i2.21086.
T. B. Shahi, A. Shrestha, A. Neupane, and W. Guo, "Stock price forecasting with deep learning: A comparative study," Mathematics, vol. 8, no. 9, pp. 1–15, 2020, doi: https://doi.org/10.3390/math8091441.
D. J. V. Lopes, G. D. S. Bobadilha, and A. P. V. Bedette, "Analysis of lumber prices time series using long short-term memory artificial neural networks," Forests, vol. 12, no. 4, 2021, doi: https://doi.org/10.3390/f12040428.
T. O. Hodson, "Root-mean-square error (RMSE) or mean absolute error (MAE): when to use them or not," Geosci Model Dev, vol. 15, no. 14, pp. 5481–5487, 2022, doi: https://doi.org/10.5194/gmd-15-5481-2022.
J. Weleszczuk, B. Kosinska-Selbi, and P. Cholewinska, "Prediction of Polish Holstein’s economical index and calving interval using machine learning," Livest Sci, vol. 264, no. February, 2022, doi: https://doi.org/10.1016/j.livsci.2022.105039.
M. U. Ahmed and I. Hussain, "Prediction of Wheat Production Using Machine Learning Algorithms in northern areas of Pakistan," Telecomm Policy, vol. 46, no. 6, p. 102370, 2022, doi: https://doi.org/10.1016/j.telpol.2022.102370.
G. P. Herrera, M. Constantino, B. M. Tabak, H. Pistori, J. J. Su, and A. Naranpanawa, "Long-term forecast of energy commodities price using machine learning," Energy, vol. 179, pp. 214–221, 2019, doi: https://doi.org/10.1016/j.energy.2019.04.077.
R. R. Novanda et al., "A Comparison of Various Forecasting Techniques for Coffee Prices," J Phys Conf Ser, vol. 1114, no. 1, 2018, doi: https://doi.org/10.1088/1742-6596/1114/1/012119.
F. Nhita, D. Saepudin, A. Paramita, S. Marliani, and U. N. Wisesty, "Price prediction for agricultural commodities in Bandung regency based on Functional Link Neural Network and artifical bee colony algorithms," Journal of Computer Science, vol. 15, no. 10, pp. 1390–1395, 2019, doi: https://doi.org/10.3844/jcssp.2019.1390.1395.
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with JITEKI agree to the following terms:
- Authors retain copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC BY-SA 4.0) that allows others to share the work with an acknowledgment 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 acknowledgment 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.
This work is licensed under a Creative Commons Attribution 4.0 International License