Comparative Analysis of LightGBM and Random Forest for Daily Bitcoin Closing Price Prediction with Ensemble Approach

Authors

  • Dionisius Nusaca Redegnosis Nolejanduma Universitas Amikom Yogyakarta
  • Majid Rahardi Universitas Amikom Yogyakarta

DOI:

https://doi.org/10.30871/jaic.v9i5.10589

Keywords:

Bitcoin price prediction, Ensemble approach, LightGBM, Random Forest, Technical indicators

Abstract

This study performs a comparative analysis of the LightGBM and Random Forest algorithms in predicting daily Bitcoin closing prices, with an exploration of an Ensemble approach for potential improvements in accuracy. A quantitative research design is employed, utilizing historical Bitcoin (BTC-USD) data from September 2015 to July 2025, enriched with various technical indicators. Data preprocessing, model training, and evaluation were carried out using Python in Google Colaboratory, with the dataset split into 80% for training and 20% for testing. Model performance was evaluated using the Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and the R-squared (R²) statistic, with statistical significance tests to ensure robust comparisons. A simple Linear Regression model was also included as a baseline. The findings reveal that Random Forest outperformed LightGBM, achieving an MAE of 11,599.74, an RMSE of 19,262.31, and an R² of 0.431, compared to LightGBM’s MAE of 12,285.42, RMSE of 19,995.04, and R² of 0.386. Although the Ensemble model showed slight improvements over LightGBM, it did not surpass Random Forest. The relatively low R² values across all models reflect the inherent volatility and difficulty in predicting Bitcoin prices. The study concludes that Random Forest demonstrates superior robustness for Bitcoin forecasting. Importantly, this work provides a novel empirical contribution by being one of the first to directly benchmark RF, LightGBM, and their Ensemble for Bitcoin prediction, highlighting that a simple averaging Ensemble does not guarantee superior performance. This finding provides a foundation for developing more refined Ensemble strategies tailored to high-volatility assets.

Downloads

Download data is not yet available.

References

[1] M. Ahmed, S. A. Suha, F. H. Mahi, and F. U. Ahmed, “Evaluating the performance of Bitcoin price forecasting using machine learning techniques on historical data,” Informatyka, Automatyka, Pomiary w Gospodarce i Ochronie Środowiska, vol. 14, no. 2, pp. 101–108, 2024.

[2] J. Chevallier, D. Guégan, and S. Goutte, “Is it possible to forecast the price of bitcoin?,” Forecasting, vol. 3, no. 2, pp. 377–420, 2021.

[3] H. Sebastião and P. Godinho, “Forecasting and trading cryptocurrencies with machine learning under changing market conditions,” Financial Innovation, vol. 7, no. 1, p. 3, 2021.

[4] E. Koosha, M. Seighaly, and E. Abbasi, “Measuring the accuracy and precision of random forest, long short-term memory, and recurrent neural network models in predicting the top and bottom of bitcoin price,” Journal of Mathematics and Modeling in Finance, vol. 2, no. 2, pp. 107–128, 2022.

[5] A. D. Hartanto, Y. N. Kholik, and Y. Pristyanto, “Stock price time series data forecasting using the light gradient boosting machine (LightGBM) model,” JOIV: International Journal on Informatics Visualization, vol. 7, no. 4, pp. 2270–2279, 2023.

[6] O. A. Al-Zakhali and A. M. Abdulazeez, “Comparative analysis of machine learning and deep learning models for bitcoin price prediction,” The Indonesian Journal of Computer Science, vol. 13, no. 1, 2024.

[7] E. Kanat, “The validity of technical analysis in the cryptocurrency market: evidence from machine learning methods,” Journal of Business Economics and Finance, vol. 12, no. 3, pp. 102–109, 2023.

[8] A. Kumar and T. Ji, “CryptoPulse: Short-Term Cryptocurrency Forecasting with Dual-Prediction and Cross-Correlated Market Indicators,” in 2024 IEEE International Conference on Big Data (BigData), IEEE, 2024, pp. 1–8.

[9] E. Koosha, M. Seighaly, and E. Abbasi, “Predicting the Top and Bottom Prices of Bitcoin Using Ensemble Machine Learning,” Advances in Mathematical Finance and Applications, vol. 8, no. 3, pp. 895–913, 2023.

[10] J. Chen, “Analysis of bitcoin price prediction using machine learning,” Journal of risk and financial management, vol. 16, no. 1, p. 51, 2023.

[11] N. Köse, Y. E. Gür, and E. Ünal, “Deep Learning and Machine Learning Insights Into the Global Economic Drivers of the Bitcoin Price,” J Forecast, 2025.

[12] A. El Youssefi, A. Hessane, I. Zeroual, and Y. Farhaoui, “Utilizing machine learning and deep learning for predicting crypto-currency trends,” Salud, Ciencia y Tecnología-Serie de Conferencias, no. 3, p. 638, 2024.

[13] D. Angelovski, B. Velichkovska, G. Jakimovski, D. Efnusheva, and M. Kalendar, “Machine Learning-Based Forecasting of Bitcoin Price Movements,” in Proceedings of the 12th International Conference on Applied Innovations in IT (ICAIIT), 2024.

[14] Z. Shahbazi and Y.-C. Byun, “Knowledge discovery on cryptocurrency exchange rate prediction using machine learning pipelines,” Sensors, vol. 22, no. 5, p. 1740, 2022.

[15] M. Iqbal, M. S. Iqbal, F. H. Jaskani, K. Iqbal, and A. Hassan, “Time-Series Prediction of Cryptocurrency Market using Machine Learning Techniques.,” EAI Endorsed Transactions on Creative Technologies, vol. 8, no. 28, 2021.

[16] S. Erfanian, Y. Zhou, A. Razzaq, A. Abbas, A. A. Safeer, and T. Li, “Predicting bitcoin (BTC) price in the context of economic theories: A machine learning approach,” Entropy, vol. 24, no. 10, p. 1487, 2022.

[17] M. S. Islam et al., “Machine learning-based cryptocurrency prediction: Enhancing market forecasting with advanced predictive models,” Journal of Ecohumanism, vol. 4, no. 2, pp. 2498–2519, 2025.

Downloads

Published

2025-10-04

How to Cite

[1]
D. N. R. Nolejanduma and M. Rahardi, “Comparative Analysis of LightGBM and Random Forest for Daily Bitcoin Closing Price Prediction with Ensemble Approach”, JAIC, vol. 9, no. 5, pp. 2102–2109, Oct. 2025.

Most read articles by the same author(s)

Similar Articles

1 2 3 4 5 > >> 

You may also start an advanced similarity search for this article.