Skip to main content
Log in

A novel cryptocurrency price time series hybrid prediction model via machine learning with MATLAB/Simulink

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

Abstract

Bitcoin is widely recognized as the first decentralized digital cryptocurrency based on blockchain technology. Its unique properties make it a leading contender in the realm of digital currencies, and it continues to maintain a dominant position in the short-term. However, the high volatility of bitcoin prices poses significant challenges for prediction models. Therefore, it is important to develop rational processing techniques to weaken the volatility of raw data, thereby facilitating more accurate predictions. To this end, we propose a novel time series hybrid prediction model (TSHPM) to estimate bitcoin prices. Our approach utilizes variational mode decomposition (VMD) to decompose daily bitcoin prices into several simple modes. We then use approximate entropy (ApEn) for modal characterization and sequence reconstruction to determine the complexity of the different components of the time series. To better compare the accuracy of different models, we establish a comprehensive evaluation index (CEI). Furthermore, we adopt an innovative approach by utilizing the Simulink module in MATLAB for machine learning prediction. Through a rigorous selection process, we identify the appropriate model that produces the best prediction. Among them, the VMD-LSTM-Adam model has the best prediction performance with a CEI value of only 0.4017. Empirical analysis demonstrates that our TSHPM approach significantly outperforms traditional prediction methods, reducing prediction errors by more than 50%. At the same time, the time complexity of the prediction is optimized by about 15% and the overall performance of the model is greatly improved. In summary, our findings demonstrate the effectiveness of the TSHPM model in predicting complex time series, particularly bitcoin prices. Our approach provides a promising avenue for further research in the field of cryptocurrency price prediction, with the potential to facilitate more accurate and reliable predictions in future.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

Data availability

The raw data for the papers can be obtained from the Nasdaq data link (https://data.nasdaq.com/) website. The dataset generated and analyzed in the current study are available from the corresponding author upon reasonable request.

References

  1. Aggarwal D, Chandrasekaran S, Annamalai B (2020) A complete empirical ensemble mode decomposition and support vector machine-based approach to predict Bitcoin prices. J Behav Exp Financ 27:100335

    Google Scholar 

  2. Altan A, Karasu S, Bekiros S (2019) Digital currency forecasting with chaotic meta-heuristic bio-inspired signal processing techniques. Chaos Solitons Fractals 126:325–336

    MathSciNet  Google Scholar 

  3. ArunKumar KE, Kalaga DV, Kumar CMS, Kawaji M, Brenza TM (2021) Forecasting of COVID-19 using deep layer recurrent neural networks (RNNs) with gated recurrent units (GRUs) and long short-term memory (LSTM) cells. Chaos Solitons Fractals 146:110861

    MathSciNet  Google Scholar 

  4. Atsalakis GS, Atsalaki IG, Pasiouras F, Zopounidis C (2019) Bitcoin price forecasting with neuro-fuzzy techniques. Eur J Oper Res 276(2):770–780

    MathSciNet  MATH  Google Scholar 

  5. Avignone G, Altunbas Y, Polizzi S, Reghezza A (2021) Centralised or decentralised banking supervision? evidence from European banks. J Int Money Financ 110:102264

    Google Scholar 

  6. Batool I, Khan TA (2022) Software fault prediction using data mining, machine learning and deep learning techniques: a systematic literature review. Comput Electr Eng 100:107886

    Google Scholar 

  7. Bergsli LØ, Lind AF, Molnár P, Polasik M (2022) Forecasting volatility of Bitcoin. Res Int Bus Financ 59:101540

    Google Scholar 

  8. Busari GA, Lim DH (2021) Crude oil price prediction: a comparison between AdaBoost-LSTM and AdaBoost-GRU for improving forecasting performance. Comput Chem Eng 155:107513

    Google Scholar 

  9. Chen J, Che A, Wang L (2023) Cumulative damage evolution rule of rock slope based on shaking table test using VMD-HT. Eng Geol 314:107003

    Google Scholar 

  10. Chi Y, Hao W (2021) Volatility models for cryptocurrencies and applications in the options market. J Int Finan Markets Inst Money 75:101421

    Google Scholar 

  11. Chowdhury R, Rahman MA, Rahman MS, Mahdy MRC (2020) An approach to predict and forecast the price of constituents and index of cryptocurrency using machine learning. Physica A 551:124569

    Google Scholar 

  12. Deléglise H, Interdonato R, Bégué A, Maître d’Hôtel E, Teisseire M, Roche M (2022) Food security prediction from heterogeneous data combining machine and deep learning methods. Expert Syst Appl 190:116189

    Google Scholar 

  13. Dragomiretskiy K, Zosso D (2014) Variational mode decomposition. IEEE Trans Signal Process 62(3):531–544

    MathSciNet  MATH  Google Scholar 

  14. Eachempati P, Srivastava PR, Kumar A, Tan KH, Gupta S (2021) Validating the impact of accounting disclosures on stock market: a deep neural network approach. Technol Forecast Soc Chang 170:120903

    Google Scholar 

  15. Easley D, O’Hara M, Basu S (2019) From mining to markets: the evolution of bitcoin transaction fees. J Financ Econ 134(1):91–109

    Google Scholar 

  16. Fan H (2022) The digital asset value and currency supervision under deep learning and blockchain technology. J Comput Appl Math 407:114061

    MathSciNet  MATH  Google Scholar 

  17. Gu J, Peng Y, Lu H, Chang X, Chen G (2022) A novel fault diagnosis method of rotating machinery via VMD. CWT Improv CNN Meas 200:111635

    Google Scholar 

  18. Guo H, Zhang D, Liu S, Wang L, Ding Y (2021) Bitcoin price forecasting: a perspective of underlying blockchain transactions. Decis Support Syst 151:113650

    Google Scholar 

  19. Guo W, Liu Q, Luo Z, Tse Y (2022) Forecasts for international financial series with VMD algorithms. J Asian Econ 80:101458

    Google Scholar 

  20. Gyamerah SA (2022) On forecasting the intraday Bitcoin price using ensemble of variational mode decomposition and generalized additive model. J King Saud Univ Comput Inf Sci 34(3):1003–1009

    Google Scholar 

  21. Huang G, Li X, Zhang B, Ren J (2021) PM2.5 concentration forecasting at surface monitoring sites using GRU neural network based on empirical mode decomposition. Sci Total Environ 768:144516

    Google Scholar 

  22. Jang H, Lee J (2018) An empirical study on modeling and prediction of bitcoin prices with Bayesian neural networks based on blockchain information. IEEE Access 6:5427–5437

    Google Scholar 

  23. Jiang S, Li J, Gong S, Yan J, Yan G, Sun Y, Li X (2020) BZIP: A compact data memory system for UTXO-based blockchains. J Syst Architect 109:101809

    Google Scholar 

  24. Karasu S, Altan A, Saraç Z, Hacioğlu R (2018) Prediction of Bitcoin prices with machine learning methods using time series data. In: 2018 26th Signal Processing and Communications Applications Conference (SIU), pp. 1–4

  25. Keller M, Ritter D, Schmitt L, Hänggi S, Onder C, Abel D, Albin T (2020) Teaching nonlinear model predictive control with MATLAB/Simulink and an internal combustion engine test bench. IFAC-PapersOnLine 53(2):17190–17197

    Google Scholar 

  26. Koo E, Kim G (2021) Prediction of Bitcoin price based on manipulating distribution strategy. Appl Soft Comput 110:107738

    Google Scholar 

  27. Kristjanpoller W, Minutolo MC (2018) A hybrid volatility forecasting framework integrating GARCH, artificial neural network, technical analysis and principal components analysis. Expert Syst Appl 109:1–11

    Google Scholar 

  28. Lee JY (2019) A decentralized token economy: How blockchain and cryptocurrency can revolutionize business. Bus Horiz 62(6):773–784

    Google Scholar 

  29. Li J, Song Z, Wang X, Wang Y, Jia Y (2022) A novel offshore wind farm typhoon wind speed prediction model based on PSO–Bi-LSTM improved by VMD. Energy 251:123848

    Google Scholar 

  30. Li T, Qian Z, Deng W, Zhang D, Lu H, Wang S (2021) Forecasting crude oil prices based on variational mode decomposition and random sparse Bayesian learning. Appl Soft Comput 113:108032

    Google Scholar 

  31. Li Y, Wang S, Wei Y, Zhu Q (2021) A new hybrid VMD-ICSS-BiGRU approach for gold futures price forecasting and algorithmic trading. IEEE Trans Comput Soc Syst 8(6):1357–1368

    Google Scholar 

  32. Liu M, Li G, Li J, Zhu X, Yao Y (2021) Forecasting the price of Bitcoin using deep learning. Financ Res Lett 40:101755

    Google Scholar 

  33. Liu S, Zhao R, Yu K, Zheng B, Liao B (2022) Output-only modal identification based on the variational mode decomposition (VMD) framework. J Sound Vib 522:116668

    Google Scholar 

  34. Manavi SA, Jafari G, Rouhani S, Ausloos M (2020) Demythifying the belief in cryptocurrencies decentralized aspects. A study of cryptocurrencies time cross-correlations with common currencies, commodities and financial indices. Phys A Stat Mech Appl 556:124759

    Google Scholar 

  35. Mittal M, Geetha G (2022) Predicting Bitcoin Price using Machine Learning, 2022 International Conference on Computer Communication and Informatics (ICCCI), pp 1–7

  36. Montalvo C, Gavilán CJ, García-Berrocal A (2022) Variational mode decomposition method (VMD) applied to decay ratio (DR) calculation for instabilities identification in BWR. Nucl Eng Des 390:111702

    Google Scholar 

  37. Mushtaq E, Zameer A, Umer M, Abbasi AA (2022) A two-stage intrusion detection system with auto-encoder and LSTMs. Appl Soft Comput 121:108768

    Google Scholar 

  38. Nithishwer MA, Kumar BA, Vanajakshi L (2022) Deep learning– just data or domain related knowledge adds value?: bus travel time prediction as a case study. Transportation Letters.

  39. Pandey V, Pant M, Snasel V (2022) Blockchain technology in food supply chains: review and bibliometric analysis. Technol Soc 69:101954

    Google Scholar 

  40. Parvini N, Abdollahi M, Seifollahi S, Ahmadian D (2022) Forecasting Bitcoin returns with long short-term memory networks and wavelet decomposition: a comparison of several market determinants. Appl Soft Comput 121:108707

    Google Scholar 

  41. Pincus S (1995) Approximate entropy (ApEn) as a complexity measure. Chaos (Woodbury, N.Y.) 5 (1):110–117

  42. Pincus SM (1991) Approximate entropy as a measure of system complexity. Proc Natl Acad Sci 88(6):2297–2301

    MathSciNet  MATH  Google Scholar 

  43. Chakraborty M, Mitra D (2021) Epilepsy seizure detection using kurtosis based VMD’s parameters selection and bandwidth features. Biomed Signal Process Control 64:102255

    Google Scholar 

  44. Taylor KE (2001) Summarizing multiple aspects of model performance in a single diagram. J Gerontol Ser A Biol Med Sci 106(D7):7183–7192

    Google Scholar 

  45. Ustaoglu E (2022) Safe-haven properties and portfolio applications of cryptocurrencies: evidence from the emerging markets. Finance Research Letters p 102716

  46. Wang N, Nie J, Li J, Wang K, Ling S, (2022) A compression strategy to accelerate LSTM meta-learning on FPGA. ICT Express

  47. Zhang S, Mani G (2021) Popular cryptoassets (Bitcoin, Ethereum, and Dogecoin), Gold, and their relationships: volatility and correlation modeling. Data Sci Manag 4:30–39

    Google Scholar 

  48. Zhao L, Li Z, Qu L (2022) Forecasting of Beijing PM2.5 with a hybrid ARIMA model based on integrated AIC and improved GS fixed-order methods and seasonal decomposition. Heliyon 8(12):e12239

    Google Scholar 

  49. Zhao L, Li Z, Qu L, Zhang J, Teng B (2023) A hybrid VMD-LSTM/GRU model to predict non-stationary and irregular waves on the east coast of China. Ocean Eng 276:114136

    Google Scholar 

  50. Zhao L, Li Z, Zhang J, Teng B (2023) An integrated complete ensemble empirical mode decomposition with adaptive noise to optimize LSTM for significant wave height forecasting. J Marine Sci Eng 11(2):435

    Google Scholar 

  51. Zhu Q, Zhang F, Liu S, Wu Y, Wang L (2019) A hybrid VMD–BiGRU model for rubber futures time series forecasting. Appl Soft Comput 84:105739

    Google Scholar 

Download references

Funding

This research is supported by the National College Students Innovation and Entrepreneurship Training Program Fund (Project No. 202110158002), 2022 Liaoning College Student Innovation and Entrepreneurship Training Program Fund (Project No. S202210158006) and the Doctoral Start-up Foundation of Liaoning Province (Project No. 2020-BS-216). The authors also express their deep gratitude to the editors and reviewers for their careful reading, suggestions and comments on the manuscript.

Author information

Authors and Affiliations

Authors

Contributions

LZ Conceptualization, Methodology, Writing–original draft, Investigation, Validation. ZL Data curation, Formal analysis. YM Data curation, Copy proofreading. LQ Supervision, Writing-review & editing, Funding acquisition. All authors reviewed the manuscript.

Corresponding author

Correspondence to Leilei Qu.

Ethics declarations

Conflict of interests

The authors declare that there is no conflict of interest with the publication of this article.

Ethical approval

Not applicable.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Zhao, L., Li, Z., Ma, Y. et al. A novel cryptocurrency price time series hybrid prediction model via machine learning with MATLAB/Simulink. J Supercomput 79, 15358–15389 (2023). https://doi.org/10.1007/s11227-023-05242-y

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11227-023-05242-y

Keywords

Navigation