Predicting Cryptocurrency Prices Using Machine Learning: A Case Study on Bitcoin
DOI:
https://doi.org/10.30871/jaic.v9i6.11234Keywords:
Bitcoin Price Prediction, Cryptocurrency, Machine Learning, LSTM, Gated Recurrent Unit (GRU)Abstract
The rapid growth of cryptocurrencies, particularly Bitcoin, has drawn significant attention from investors and researchers due to its extreme price volatility. However, predicting the price of Bitcoin against the Indonesian Rupiah (BTC/IDR) remains a major challenge, especially in emerging markets such as Indonesia. This study aims to conduct an empirical comparison among three deep learning models Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), and one-dimensional Convolutional Neural Network (CNN-1D) in forecasting Bitcoin prices based on historical data obtained from the Indodax platform for the period 2018–2025. The dataset consists of five main variables: opening price, highest price, lowest price, closing price, and trading volume. Prior to model training, preprocessing steps were conducted, including handling missing values using the forward fill method, normalization with MinMaxScaler, and constructing time series data with a 60-day look-back window. The models were trained using an 80% training and 20% testing data split, the Adam optimizer, Mean Squared Error (MSE) as the loss function, for 50 epochs with a batch size of 32. Evaluation was performed using five quantitative metrics: MSE, RMSE, MAE, MAPE, and R², along with validation techniques to prevent data leakage. The results indicate that the GRU model achieved the best performance, with a MAPE of 1.77% and an R² of 0.9916, outperforming LSTM (MAPE 3.90%) and CNN-1D (MAPE 6.17%). These findings suggest that GRU is computationally more efficient and better adapted to nonlinear temporal dependencies in highly volatile markets. This research contributes to the academic discourse on the application of deep learning for digital asset price forecasting and provides practical implications for investors and developers of financial predictive systems in Indonesia. Future studies are expected to explore hybrid models or multi-step forecasting approaches to enhance real-time predictive performance.
Downloads
References
[1] Budi Dharma, Putri Gusniati, and Tria Wardani, “Analisis Pemanfaatan Cryptocurrency Bitcoin Sebagai Alat Alternatif Investasi,” J. Publ. Sist. Inf. dan Manaj. Bisnis, vol. 2, no. 1, pp. 175–182, 2023, doi: 10.55606/jupsim.v2i1.858.
[2] D. Molitor, W. Raghupathi, V. Raghupathi, and A. Saharia, “Understanding Cryptocurrency,” Int. J. Blockchain Appl. Secur. Comput., vol. 1, no. 1, pp. 1–25, 2023, doi: 10.4018/ijbasc.331079.
[3] C. A. Apriliani, A. I. Hamzani, and M. Wildan, “Legalitas Transaksi Aset Kripto Menurut Perspektif Hukum Islam,” J. Ilm. Mhs. Perbank. Syariah, vol. 3, no. 1, pp. 113–124, 2023, doi: 10.36908/jimpa.v3i1.161.
[4] S. Hartono and R. Budiarsih, “Potensi Kesuksesan Penerapan Pajak Penghasilan Terhadap Transaksi Aset Kripto Di Indonesia,” J. Pajak dan Keuang. Negara, vol. 4, no. 1, pp. 132–146, 2022, doi: 10.31092/jpkn.v4i1.1740.
[5] C. Herdian, “Prediksi Harian Harga Penutupan Dogecoin: Analisis Faktor Pengaruh dan Algoritmanya,” Techno Xplore J. Ilmu Komput. dan Teknol. Inf., vol. 8, no. 1, pp. 17–27, 2023, doi: 10.36805/technoxplore.v8i1.4423.
[6] J. Chen, “Analysis of Bitcoin Price Prediction Using Machine Learning,” 2023.
[7] & J. Urooj, Asif, “Bitcoin Price Forecasting : A Comparative Study of Machine Learning , Statistical and Deep Learning Models,” vol. 6, no. 2, pp. 396–412, 2024.
[8] E. Liunokas, K. I. Kobesi, and C. N. Salsinha, “Prediksi Harga Bitcoin Menggunakan Metode LINEAR REGRESION,” J. Math. Theory Appl., vol. 2, no. 2, pp. 43–52, 2024, doi: 10.32938/j-math.v2i2.7699.
[9] A. Mahmoud and A. Mohammed, “Multivariate Time Series Forecasting,” Neural Process. Lett., vol. 56, no. 5, pp. 1–25, 2024, doi: 10.1007/s11063-024-11656-3.
[10] R. S. Dwi Harjo, R. Anugrah, and J. Dharmawan, “Prediksi Coin Kripto Dengan Menggunakan Metode LSTM (Long Short-Term Memory),” J. Adv. Res. Informatics, vol. 3, no. 2, pp. 112–119, 2025, doi: 10.24929/jars.v3i2.4240.
[11] J. Alvi, K. Nizam, S. M. Jafri, M. Rehan, and M. M. Ali, “Cryptocurrency Predictive Analytics: A Comparative Study of LSTM, CNN, and GRU Models,” Pakistan Bus. Rev., vol. 26, no. 3, pp. 255–287, 2025, doi: 10.22555/pbr.v26i3.1236.
[12] S. Hassan, M. Khan, F. Lee, “Cryptocurrency Price Prediction with Convolutional Neural Network and Stacked Gated Recurrent Unit,” 2022.
[13] S. Nur Fadhila and S. U. Zuliana, “Optimasi Portofolio Saham Menggunakan Model Markowitz Berdasarkan Prediksi Harga Saham,” Kaunia Integr. Interconnect. Islam Sci. J., vol. 18, no. 1, pp. 35–40, 2023, doi: 10.14421/kaunia.3948.
[14] R. Parlika, R. R. Isnanto, and B. Rahmat, “Prediction of ROI Achievements and Potential Maximum Profit on Spot Bitcoin Rupiah Trading Using K-means Clustering and Patterned Dataset Model,” Int. J. Informatics Vis., vol. 8, no. 3–2, pp. 1987–2001, 2024, doi: 10.62527/joiv.8.3-2.3120.
[15] S. Rani, R. Kaur, and C. Desai, “Enhancing Time Series Forecasting Accuracy With Deep Learning Models: a Comparative Study,” Int. J. Adv. Res., vol. 12, no. 08, pp. 315–324, 2024, doi: 10.21474/ijar01/19257.
[16] H. Utama, “Pendekatan Deep Learning Menggunakan Metode Lstm Untuk Prediksi Harga Bitcoin,” Indones. J. Comput. Sci. Res., vol. 2, no. 2, pp. 43–50, 2023, doi: 10.59095/ijcsr.v2i2.77.
[17] W. Jeanne Clarisa Wetik, “Penerapan Metode Recurrent Neural Network (RNN) Model Gated Recurrent Unit (GRU) untuk Prediksi Harga Cryptocurrency,” Kinabalu, vol. 11, no. 2, pp. 50–57, 2023.
[18] M. A. Pramudito, Y. N. Fu’adah, R. Magdalena, A. Rizal, And F. F. Taliningsih, “Identifikasi Sinyal Congestive Heart Failure dengan Metode Convolutional Neural Network 1D,” MIND J., vol. 7, no. 1, pp. 11–20, 2022, doi: 10.26760/mindjournal.v7i1.11-20.
[19] N. O. Idris and F. Pontoiyo, “Evaluasi Model Machine Learning untuk Prediksi Harga Mobil dengan Perbandingan Ensemble dan Regresi Linear,” J. Ilmu Komput. dan Sist. Inf., vol. 4, no. 1, pp. 129–143, 2025, doi: 10.70340/jirsi.v4i1.181.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Muhammad Alfarizi, Dinda Lestarini

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement 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 acknowledgement 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 (See The Effect of Open Access).








