IDEAS home Printed from https://ideas.repec.org/a/kap/compec/v62y2023i4d10.1007_s10614-022-10325-8.html
   My bibliography  Save this article

Modeling Bitcoin Prices using Signal Processing Methods, Bayesian Optimization, and Deep Neural Networks

Author

Listed:
  • Bhaskar Tripathi

    (Thapar Institute of Engineering and Technology)

  • Rakesh Kumar Sharma

    (Thapar Institute of Engineering and Technology)

Abstract

Bitcoin is a volatile financial asset that runs on a decentralized peer-to-peer Blockchain network. Investors need accurate price forecasts to minimize losses and maximize profits. Extreme volatility, speculative nature, and dependence on intrinsic and external factors make Bitcoin price forecast challenging. This research proposes a reliable forecasting framework by reducing the inherent noise in Bitcoin time series and by examining the predictive power of three distinct types of predictors, namely fundamental indicators, technical indicators, and univariate lagged prices. We begin with a three-step hybrid feature selection procedure to identify the variables with the highest predictive ability, then use Hampel and Savitzky–Golay filters to impute outliers and remove signal noise from the Bitcoin time series. Next, we use several deep neural networks tuned by Bayesian Optimization to forecast short-term prices for the next day, three days, five days, and seven days ahead intervals. We found that the Deep Artificial Neural Network model created using technical indicators as input data outperformed other benchmark models like Long Short Term Memory, Bi-directional LSTM (BiLSTM), and Convolutional Neural Network (CNN)-BiLSTM. The presented results record a high accuracy and outperform all existing models available in the past literature with an absolute percentage error as low as 0.28% for the next day forecast and 2.25% for the seventh day for the latest out of sample period ranging from Jan 1, 2021, to Nov 1, 2021. With contributions in feature selection, data-preprocessing, and hybridizing deep learning models, this work contributes to researchers and traders in fundamental and technical domains.

Suggested Citation

  • Bhaskar Tripathi & Rakesh Kumar Sharma, 2023. "Modeling Bitcoin Prices using Signal Processing Methods, Bayesian Optimization, and Deep Neural Networks," Computational Economics, Springer;Society for Computational Economics, vol. 62(4), pages 1919-1945, December.
  • Handle: RePEc:kap:compec:v:62:y:2023:i:4:d:10.1007_s10614-022-10325-8
    DOI: 10.1007/s10614-022-10325-8
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10614-022-10325-8
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10614-022-10325-8?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Yechen Zhu & David Dickinson & Jianjun Li, 2017. "Erratum to: Analysis on the influence factors of Bitcoin’s price based on VEC model," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 3(1), pages 1-1, December.
    2. Guizhou Wang & Kjell Hausken, 2022. "A Bitcoin price prediction model assuming oscillatory growth and lengthening cycles," Cogent Economics & Finance, Taylor & Francis Journals, vol. 10(1), pages 2087287-208, December.
    3. Lahmiri, Salim & Bekiros, Stelios, 2020. "Intelligent forecasting with machine learning trading systems in chaotic intraday Bitcoin market," Chaos, Solitons & Fractals, Elsevier, vol. 133(C).
    4. Adamantios Ntakaris & Juho Kanniainen & Moncef Gabbouj & Alexandros Iosifidis, 2020. "Mid-price prediction based on machine learning methods with technical and quantitative indicators," PLOS ONE, Public Library of Science, vol. 15(6), pages 1-39, June.
    5. Dante Miller & Jong-Min Kim, 2021. "Univariate and Multivariate Machine Learning Forecasting Models on the Price Returns of Cryptocurrencies," JRFM, MDPI, vol. 14(10), pages 1-10, October.
    6. Mohamed Massaoudi & Shady S. Refaat & Haitham Abu-Rub & Ines Chihi & Fakhreddine S. Oueslati, 2020. "PLS-CNN-BiLSTM: An End-to-End Algorithm-Based Savitzky–Golay Smoothing and Evolution Strategy for Load Forecasting," Energies, MDPI, vol. 13(20), pages 1-29, October.
    7. Aggarwal, Divya & Chandrasekaran, Shabana & Annamalai, Balamurugan, 2020. "A complete empirical ensemble mode decomposition and support vector machine-based approach to predict Bitcoin prices," Journal of Behavioral and Experimental Finance, Elsevier, vol. 27(C).
    8. Kursa, Miron B. & Rudnicki, Witold R., 2010. "Feature Selection with the Boruta Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 36(i11).
    9. Prosper Lamothe-Fernández & David Alaminos & Prosper Lamothe-López & Manuel A. Fernández-Gámez, 2020. "Deep Learning Methods for Modeling Bitcoin Price," Mathematics, MDPI, vol. 8(8), pages 1-13, July.
    10. Muhammad Ali Nasir & Toan Luu Duc Huynh & Sang Phu Nguyen & Duy Duong, 2019. "Forecasting cryptocurrency returns and volume using search engines," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 5(1), pages 1-13, December.
    11. Yechen Zhu & David Dickinson & Jianjun Li, 2017. "Analysis on the influence factors of Bitcoin’s price based on VEC model," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 3(1), pages 1-13, December.
    12. Adrian (Wai-Kong) Cheung & Eduardo Roca & Jen-Je Su, 2015. "Crypto-currency bubbles: an application of the Phillips-Shi-Yu (2013) methodology on Mt. Gox bitcoin prices," Applied Economics, Taylor & Francis Journals, vol. 47(23), pages 2348-2358, May.
    13. Chen, Wei & Xu, Huilin & Jia, Lifen & Gao, Ying, 2021. "Machine learning model for Bitcoin exchange rate prediction using economic and technology determinants," International Journal of Forecasting, Elsevier, vol. 37(1), pages 28-43.
    14. Mahboubeh Faghih Mohammadi Jalali & Hanif Heidari, 2020. "Predicting changes in Bitcoin price using grey system theory," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 6(1), pages 1-12, December.
    Full references (including those not matched with items on IDEAS)

    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. Serdar Neslihanoglu, 2021. "Linearity extensions of the market model: a case of the top 10 cryptocurrency prices during the pre-COVID-19 and COVID-19 periods," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-27, December.
    2. Ahmed, Walid M.A., 2022. "Robust drivers of Bitcoin price movements: An extreme bounds analysis," The North American Journal of Economics and Finance, Elsevier, vol. 62(C).
    3. Yu Song & Bo Chen & Xin-Yi Wang, 2023. "Cryptocurrency technology revolution: are Bitcoin prices and terrorist attacks related?," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-20, December.
    4. Xun Zhang & Fengbin Lu & Rui Tao & Shouyang Wang, 2021. "The time-varying causal relationship between the Bitcoin market and internet attention," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-19, December.
    5. Helder Sebastião & Pedro Godinho, 2021. "Forecasting and trading cryptocurrencies with machine learning under changing market conditions," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-30, December.
    6. Helder Miguel Correia Virtuoso Sebastião & Paulo José Osório Rupino Da Cunha & Pedro Manuel Cortesão Godinho, 2021. "Cryptocurrencies and blockchain. Overview and future perspectives," International Journal of Economics and Business Research, Inderscience Enterprises Ltd, vol. 21(3), pages 305-342.
    7. Rodrigo Hakim das Neves, 2020. "Bitcoin pricing: impact of attractiveness variables," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 6(1), pages 1-18, December.
    8. Yuze Li & Shangrong Jiang & Xuerong Li & Shouyang Wang, 2022. "Hybrid data decomposition-based deep learning for Bitcoin prediction and algorithm trading," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-24, December.
    9. Onur Özdemir, 2022. "Cue the volatility spillover in the cryptocurrency markets during the COVID-19 pandemic: evidence from DCC-GARCH and wavelet analysis," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-38, December.
    10. 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).
    11. Dias, Ishanka K. & Fernando, J.M. Ruwani & Fernando, P. Narada D., 2022. "Does investor sentiment predict bitcoin return and volatility? A quantile regression approach," International Review of Financial Analysis, Elsevier, vol. 84(C).
    12. Anoop S Kumar & Taufeeq Ajaz, 2019. "Co-movement in crypto-currency markets: evidences from wavelet analysis," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 5(1), pages 1-17, December.
    13. Jiri Kukacka & Ladislav Kristoufek, 2023. "Fundamental and speculative components of the cryptocurrency pricing dynamics," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-23, December.
    14. Ting-Hsuan Chen & Mu-Yen Chen & Guan-Ting Du, 2021. "The Determinants of Bitcoin’s Price: Utilization of GARCH and Machine Learning Approaches," Computational Economics, Springer;Society for Computational Economics, vol. 57(1), pages 267-280, January.
    15. Yaya, OlaOluwa S. & Lukman, Adewale F. & Vo, Xuan Vinh, 2022. "Persistence and volatility spillovers of bitcoin price to gold and silver prices," Resources Policy, Elsevier, vol. 79(C).
    16. Qin, Meng & Su, Chi-Wei & Tao, Ran, 2021. "BitCoin: A new basket for eggs?," Economic Modelling, Elsevier, vol. 94(C), pages 896-907.
    17. Toan Luu Duc Huynh, 2019. "Spillover Risks on Cryptocurrency Markets: A Look from VAR-SVAR Granger Causality and Student’s-t Copulas," JRFM, MDPI, vol. 12(2), pages 1-19, April.
    18. Yingjie Zhu & Jiageng Ma & Fangqing Gu & Jie Wang & Zhijuan Li & Youyao Zhang & Jiani Xu & Yifan Li & Yiwen Wang & Xiangqun Yang, 2023. "Price Prediction of Bitcoin Based on Adaptive Feature Selection and Model Optimization," Mathematics, MDPI, vol. 11(6), pages 1-22, March.
    19. Zhang, Dingxuan & Sun, Yuying & Duan, Hongbo & Hong, Yongmiao & Wang, Shouyang, 2023. "Speculation or currency? Multi-scale analysis of cryptocurrencies—The case of Bitcoin," International Review of Financial Analysis, Elsevier, vol. 88(C).
    20. Panagiotidis, Theodore & Papapanagiotou, Georgios & Stengos, Thanasis, 2024. "A Bayesian approach for the determinants of bitcoin returns," International Review of Financial Analysis, Elsevier, vol. 91(C).

    More about this item

    Keywords

    Time series forecasting; Deep learning; Bayesian optimization; Savitzky–Golay Filter; Outlier detection;
    All these keywords.

    JEL classification:

    • C32 - Mathematical and Quantitative Methods - - Multiple or Simultaneous Equation Models; Multiple Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes; State Space Models
    • G17 - Financial Economics - - General Financial Markets - - - Financial Forecasting and Simulation
    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics
    • C61 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Optimization Techniques; Programming Models; Dynamic Analysis
    • E27 - Macroeconomics and Monetary Economics - - Consumption, Saving, Production, Employment, and Investment - - - Forecasting and Simulation: Models and Applications

    Statistics

    Access and download statistics

    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:kap:compec:v:62:y:2023:i:4:d:10.1007_s10614-022-10325-8. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.