Evaluasi Leakage-Aware dan Imbalance-Sensitive pada BiLSTM dan Machine Learning Klasik untuk Klasifikasi Arah Pergerakan Harga Emas ANTAM

Authors

  • Juni Ismail Politeknik Bisnis Indonesia
  • Randi Sumitro STIKOM Tunas Bangsa
  • Juliana Rotua Pasaribu Politeknik Bisnis Indonesia
  • Elida Madona Siburian Politeknik Bisnis Indonesia
  • Renovand Mikael Situmorang Politeknik Bisnis Indonesia

        DOI:

https://doi.org/10.62712/juktisi.v5i2.1346

Keywords:

Emas ANTAM, BiLSTM, Leakage-Aware, Imbalance-Sensitive, Machine Learning, Time Series

Abstract

ANTAM gold is a widely used hedging instrument among Indonesian investors, yet determining the right moment to transact remains difficult because of its volatile and non-linear price movements. Several prior studies have reported near-perfect predictive accuracy; however, such results frequently stem from evaluation procedures that are prone to data leakage and therefore do not reflect genuine generalization ability. This study develops a leakage-aware and imbalance-sensitive evaluation framework for classifying the directional movement of ANTAM gold prices. Daily price data from 2010 to 2025 (5,751 samples) are transformed into 14 technical features—comprising lagged log-returns, volatility, momentum, moving-average ratios, and RSI—and labelled according to the sign of the five-day forward return. A Bidirectional Long Short-Term Memory (BiLSTM) model is benchmarked against Random Forest, Decision Tree, and a majority-class baseline using five-fold walk-forward validation with purging and train-only feature scaling. Performance is assessed through Balanced Accuracy, Macro-F1, the Matthews Correlation Coefficient (MCC), ROC-AUC, and PR-AUC. All classifiers outperform the majority baseline, with Decision Tree attaining the highest Macro-F1 of 0.534, followed by Random Forest (0.510) and BiLSTM (0.497), and a best MCC of 0.074. These findings indicate limited but real directional predictability and confirm that rigorous evaluation yields markedly more conservative and credible performance estimates than the inflated accuracies claimed in earlier work.

Downloads

Download data is not yet available.

References

[1] N. S. U. Purba, S. S. S. Sidabutar, W. L. Simbolon, F. I. Sitohang, S. M. Samosir, and J. T. Hardinata, “Prediksi Harga Emas di Indonesia Menggunakan Machine Learning,” Jurnal Komputer Teknologi Informasi Sistem Komputer (JUKTISI), vol. 5, no. 1, pp. 999–1011, 2026, doi: 10.62712/juktisi.v5i1.1261.

[2] Y. Liang, Y. Lin, and Q. Lu, “Forecasting gold price using a novel hybrid model with ICEEMDAN and LSTM-CNN-CBAM,” Expert Systems with Applications, vol. 206, art. 117847, 2022, doi: 10.1016/j.eswa.2022.117847.

[3] P. K. Sarangi, R. Verma, S. Inder, and N. Mittal, “Machine learning based hybrid model for gold price prediction in India,” in Proc. 2021 9th Int. Conf. Reliability, Infocom Technologies and Optimization (ICRITO), 2021, pp. 1–5, doi: 10.1109/ICRITO51393.2021.9596391.

[4] S. Hochreiter and J. Schmidhuber, “Long short-term memory,” Neural Computation, vol. 9, no. 8, pp. 1735–1780, 1997, doi: 10.1162/neco.1997.9.8.1735.

[5] M. Schuster and K. K. Paliwal, “Bidirectional recurrent neural networks,” IEEE Transactions on Signal Processing, vol. 45, no. 11, pp. 2673–2681, 1997, doi: 10.1109/78.650093.

[6] L. Breiman, “Random forests,” Machine Learning, vol. 45, no. 1, pp. 5–32, 2001, doi: 10.1023/A:1010933404324.

[7] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” in Proc. 3rd Int. Conf. Learning Representations (ICLR), 2015, doi: 10.48550/arXiv.1412.6980.

[8] F. Chollet, Deep Learning with Python. Shelter Island, NY, USA: Manning Publications, 2017.

[9] C. Bergmeir and J. M. Benítez, “On the use of cross-validation for time series predictor evaluation,” Information Sciences, vol. 191, pp. 192–213, 2012, doi: 10.1016/j.ins.2011.12.028.

[10] M. López de Prado, Advances in Financial Machine Learning. Hoboken, NJ, USA: Wiley, 2018.

[11] H. He and E. A. Garcia, “Learning from imbalanced data,” IEEE Transactions on Knowledge and Data Engineering, vol. 21, no. 9, pp. 1263–1284, 2009, doi: 10.1109/TKDE.2008.239.

[12] N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE: Synthetic minority over-sampling technique,” Journal of Artificial Intelligence Research, vol. 16, pp. 321–357, 2002, doi: 10.1613/jair.953.

[13] D. Chicco and G. Jurman, “The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation,” BMC Genomics, vol. 21, art. 6, 2020, doi: 10.1186/s12864-019-6413-7.

[14] T. Saito and M. Rehmsmeier, “The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets,” PLOS ONE, vol. 10, no. 3, art. e0118432, 2015, doi: 10.1371/journal.pone.0118432.

[15] T. Fawcett, “An introduction to ROC analysis,” Pattern Recognition Letters, vol. 27, no. 8, pp. 861–874, 2006, doi: 10.1016/j.patrec.2005.10.010.

[16] E. F. Fama, “Efficient capital markets: A review of theory and empirical work,” The Journal of Finance, vol. 25, no. 2, pp. 383–417, 1970, doi: 10.2307/2325486.

[17] J. W. Wilder, New Concepts in Technical Trading Systems. Greensboro, NC, USA: Trend Research, 1978.

[18] B. W. Matthews, “Comparison of the predicted and observed secondary structure of T4 phage lysozyme,” Biochimica et Biophysica Acta (BBA) - Protein Structure, vol. 405, no. 2, pp. 442–451, 1975, doi: 10.1016/0005-2795(75)90109-9.

Published

2026-07-01

How to Cite

Ismail, J., Sumitro, R., Pasaribu, J. R., Siburian, E. M., & Situmorang, R. M. (2026). Evaluasi Leakage-Aware dan Imbalance-Sensitive pada BiLSTM dan Machine Learning Klasik untuk Klasifikasi Arah Pergerakan Harga Emas ANTAM. Jurnal Komputer Teknologi Informasi Sistem Komputer (JUKTISI), 5(2), 1295–1305. https://doi.org/10.62712/juktisi.v5i2.1346