IDEAS home Printed from https://ideas.repec.org/a/gam/jforec/v5y2023i1p10-209d1050336.html
   My bibliography  Save this article

On Forecasting Cryptocurrency Prices: A Comparison of Machine Learning, Deep Learning, and Ensembles

Author

Listed:
  • Kate Murray

    (School of Computer Science & IT, University College Cork, T12 XF62 Cork, Ireland)

  • Andrea Rossi

    (Centre for Research Training in Artificial Intelligence, University College Cork, T12 XF62 Cork, Ireland)

  • Diego Carraro

    (Insight Centre for Data Analytics, University College Cork, T12 XF62 Cork, Ireland)

  • Andrea Visentin

    (School of Computer Science & IT, University College Cork, T12 XF62 Cork, Ireland
    Centre for Research Training in Artificial Intelligence, University College Cork, T12 XF62 Cork, Ireland
    Insight Centre for Data Analytics, University College Cork, T12 XF62 Cork, Ireland)

Abstract

Traders and investors are interested in accurately predicting cryptocurrency prices to increase returns and minimize risk. However, due to their uncertainty, volatility, and dynamism, forecasting crypto prices is a challenging time series analysis task. Researchers have proposed predictors based on statistical, machine learning (ML), and deep learning (DL) approaches, but the literature is limited. Indeed, it is narrow because it focuses on predicting only the prices of the few most famous cryptos. In addition, it is scattered because it compares different models on different cryptos inconsistently, and it lacks generality because solutions are overly complex and hard to reproduce in practice. The main goal of this paper is to provide a comparison framework that overcomes these limitations. We use this framework to run extensive experiments where we compare the performances of widely used statistical, ML, and DL approaches in the literature for predicting the price of five popular cryptocurrencies, i.e., XRP, Bitcoin (BTC), Litecoin (LTC), Ethereum (ETH), and Monero (XMR). To the best of our knowledge, we are also the first to propose using the temporal fusion transformer (TFT) on this task. Moreover, we extend our investigation to hybrid models and ensembles to assess whether combining single models boosts prediction accuracy. Our evaluation shows that DL approaches are the best predictors, particularly the LSTM, and this is consistently true across all the cryptos examined. LSTM reaches an average RMSE of 0.0222 and MAE of 0.0173 , respectively, 2.7 % and 1.7 % better than the second-best model. To ensure reproducibility and stimulate future research contribution, we share the dataset and the code of the experiments.

Suggested Citation

  • Kate Murray & Andrea Rossi & Diego Carraro & Andrea Visentin, 2023. "On Forecasting Cryptocurrency Prices: A Comparison of Machine Learning, Deep Learning, and Ensembles," Forecasting, MDPI, vol. 5(1), pages 1-14, January.
  • Handle: RePEc:gam:jforec:v:5:y:2023:i:1:p:10-209:d:1050336
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2571-9394/5/1/10/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2571-9394/5/1/10/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Song, Jung Yoon & Chang, Woojin & Song, Jae Wook, 2019. "Cluster analysis on the structure of the cryptocurrency market via Bitcoin–Ethereum filtering," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 527(C).
    2. Jules Clément Mba & Sutene Mwambetania Mwambi & Edson Pindza, 2022. "A Monte Carlo Approach to Bitcoin Price Prediction with Fractional Ornstein–Uhlenbeck Lévy Process," Forecasting, MDPI, vol. 4(2), pages 1-11, March.
    3. Lim, Bryan & Arık, Sercan Ö. & Loeff, Nicolas & Pfister, Tomas, 2021. "Temporal Fusion Transformers for interpretable multi-horizon time series forecasting," International Journal of Forecasting, Elsevier, vol. 37(4), pages 1748-1764.
    4. Julien Chevallier & Dominique Guégan & Stéphane Goutte, 2021. "Is It Possible to Forecast the Price of Bitcoin?," Forecasting, MDPI, vol. 3(2), pages 1-44, May.
    5. Dickey, David A & Fuller, Wayne A, 1981. "Likelihood Ratio Statistics for Autoregressive Time Series with a Unit Root," Econometrica, Econometric Society, vol. 49(4), pages 1057-1072, June.
    6. De Gooijer, Jan G. & Hyndman, Rob J., 2006. "25 years of time series forecasting," International Journal of Forecasting, Elsevier, vol. 22(3), pages 443-473.
    7. Ismail Shah & Faheem Jan & Sajid Ali & Tahir Mehmood, 2022. "Functional Data Approach for Short-Term Electricity Demand Forecasting," Mathematical Problems in Engineering, Hindawi, vol. 2022, pages 1-14, June.
    8. Fan Fang & Carmine Ventre & Michail Basios & Leslie Kanthan & David Martinez-Rego & Fan Wu & Lingbo Li, 2022. "Cryptocurrency trading: a comprehensive survey," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-59, December.
    9. Ahmed M. Khedr & Ifra Arif & Pravija Raj P V & Magdi El‐Bannany & Saadat M. Alhashmi & Meenu Sreedharan, 2021. "Cryptocurrency price prediction using traditional statistical and machine‐learning techniques: A survey," Intelligent Systems in Accounting, Finance and Management, John Wiley & Sons, Ltd., vol. 28(1), pages 3-34, January.
    10. Wu, Shaomin & Akbarov, Artur, 2011. "Support vector regression for warranty claim forecasting," European Journal of Operational Research, Elsevier, vol. 213(1), pages 196-204, August.
    11. Lahmiri, Salim & Bekiros, Stelios, 2019. "Cryptocurrency forecasting with deep learning chaotic neural networks," Chaos, Solitons & Fractals, Elsevier, vol. 118(C), pages 35-40.
    12. Walther, Thomas & Klein, Tony & Bouri, Elie, 2019. "Exogenous drivers of Bitcoin and Cryptocurrency volatility – A mixed data sampling approach to forecasting," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 63(C).
    13. Fan Fang & Carmine Ventre & Michail Basios & Leslie Kanthan & Lingbo Li & David Martinez-Regoband & Fan Wu, 2020. "Cryptocurrency Trading: A Comprehensive Survey," Papers 2003.11352, arXiv.org, revised Jan 2022.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Giacomo di Tollo & Joseph Andria & Gianni Filograsso, 2023. "The Predictive Power of Social Media Sentiment: Evidence from Cryptocurrencies and Stock Markets Using NLP and Stochastic ANNs," Mathematics, MDPI, vol. 11(16), pages 1-18, August.
    2. Jing, Ruixue & Rocha, Luis E.C., 2023. "A network-based strategy of price correlations for optimal cryptocurrency portfolios," Finance Research Letters, Elsevier, vol. 58(PC).
    3. Anoop C V & Neeraj Negi & Anup Aprem, 2023. "Bayesian framework for characterizing cryptocurrency market dynamics, structural dependency, and volatility using potential field," Papers 2308.01013, arXiv.org.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Luis Lorenzo & Javier Arroyo, 2023. "Online risk-based portfolio allocation on subsets of crypto assets applying a prototype-based clustering algorithm," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-40, December.
    2. Ren, Yi-Shuai & Ma, Chao-Qun & Kong, Xiao-Lin & Baltas, Konstantinos & Zureigat, Qasim, 2022. "Past, present, and future of the application of machine learning in cryptocurrency research," Research in International Business and Finance, Elsevier, vol. 63(C).
    3. Orte, Francisco & Mira, José & Sánchez, María Jesús & Solana, Pablo, 2023. "A random forest-based model for crypto asset forecasts in futures markets with out-of-sample prediction," Research in International Business and Finance, Elsevier, vol. 64(C).
    4. Elie Bouri & Afees A. Salisu & Rangan Gupta, 2023. "The predictive power of Bitcoin prices for the realized volatility of US stock sector returns," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-22, December.
    5. Soria, Jorge & Moya, Jorge & Mohazab, Amin, 2023. "Optimal mining in proof-of-work blockchain protocols," Finance Research Letters, Elsevier, vol. 53(C).
    6. Siu Hin Tang & Mathieu Rosenbaum & Chao Zhou, 2023. "Forecasting Volatility with Machine Learning and Rough Volatility: Example from the Crypto-Winter," Papers 2311.04727, arXiv.org, revised Feb 2024.
    7. Husam Rjoub & Tomiwa Sunday Adebayo & Dervis Kirikkaleli, 2023. "Blockchain technology-based FinTech banking sector involvement using adaptive neuro-fuzzy-based K-nearest neighbors algorithm," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-23, December.
    8. Vidhi Vig & Anmol Kaur, 2022. "Time series forecasting and mathematical modeling of COVID-19 pandemic in India: a developing country struggling to cope up," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 13(6), pages 2920-2933, December.
    9. Marcin Wątorek & Jarosław Kwapień & Stanisław Drożdż, 2022. "Multifractal Cross-Correlations of Bitcoin and Ether Trading Characteristics in the Post-COVID-19 Time," Future Internet, MDPI, vol. 14(7), pages 1-15, July.
    10. Laurens Swinkels, 2023. "Empirical evidence on the ownership and liquidity of real estate tokens," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-29, December.
    11. Luyao Zhang & Tianyu Wu & Saad Lahrichi & Carlos-Gustavo Salas-Flores & Jiayi Li, 2022. "A Data Science Pipeline for Algorithmic Trading: A Comparative Study of Applications for Finance and Cryptoeconomics," Papers 2206.14932, arXiv.org.
    12. Kirimhan, Destan, 2023. "Importance of anti-money laundering regulations among prosumers for a cybersecure decentralized finance," Journal of Business Research, Elsevier, vol. 157(C).
    13. Yaya, OlaOluwa S & Ogbonna, Ephraim A & Furuoka, Fumitaka & Gil-Alana, Luis A., 2019. "A new unit root analysis for testing hysteresis in unemployment," MPRA Paper 96621, University Library of Munich, Germany.
    14. Wujun Lv & Tao Pang & Xiaobao Xia & Jingzhou Yan, 2023. "Dynamic portfolio choice with uncertain rare-events risk in stock and cryptocurrency markets," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-28, December.
    15. Wei Xu & Daning Hu & Karl Reiner Lang & J. Leon Zhao, 2022. "Blockchain and digital finance," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-4, December.
    16. Pietro Saggese & Esther Segalla & Michael Sigmund & Burkhard Raunig & Felix Zangerl & Bernhard Haslhofer, 2023. "Assessing the Solvency of Virtual Asset Service Providers: Are Current Standards Sufficient?," Papers 2309.16408, arXiv.org, revised Apr 2024.
    17. Bennett, Donyetta & Mekelburg, Erik & Williams, T.H., 2023. "BeFi meets DeFi: A behavioral finance approach to decentralized finance asset pricing," Research in International Business and Finance, Elsevier, vol. 65(C).
    18. Walid Mensi & Mariya Gubareva & Hee-Un Ko & Xuan Vinh Vo & Sang Hoon Kang, 2023. "Tail spillover effects between cryptocurrencies and uncertainty in the gold, oil, and stock markets," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-27, December.
    19. Fatih Ecer & Tolga Murat & Hasan Dinçer & Serhat Yüksel, 2024. "A fuzzy BWM and MARCOS integrated framework with Heronian function for evaluating cryptocurrency exchanges: a case study of Türkiye," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 10(1), pages 1-29, December.
    20. Riccardo Blasis & Luca Galati & Alexander Webb & Robert I. Webb, 2023. "Intelligent design: stablecoins (in)stability and collateral during market turbulence," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-23, December.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jforec:v:5:y:2023:i:1:p:10-209:d:1050336. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.