Skip to main content
Log in

Analysis and price prediction of cryptocurrencies for historical and live data using ensemble-based neural networks

  • Regular Paper
  • Published:
Knowledge and Information Systems Aims and scope Submit manuscript

Abstract

The popularity of cryptocurrencies has been on the rise with the emergence of blockchain technologies. There have been enormous investments in the cryptocurrency market over the past few years. However, the volatile nature and significant price fluctuations in cryptocurrency have resulted in a high investment risk of these assets. In this paper, an improved neural network (NN) ensemble-based approach is proposed with the help of Convolutional Neural Network (CNN) and Bidirectional Long Short-Term Memory (LSTM), i.e., CNN-BiLSTM for long-term price prediction of cryptocurrencies using both live data API and historical data. The CNN learns internal representation of each cryptocurrency independently and extracts useful features. On the other hand, the LSTM layers are used to predict time-series data and recognize the long as well as short-term dependencies efficiently and accurately. The proposed ensemble of CNN-BiLSTM consists of three layers of CNN and two layers of Bi-LSTM to improve the accuracy of the predictions. Moreover, MLP, GRU, CNN and LSTM models are also implemented and compared with the proposed model on the test datasets followed by error evaluation. For evaluating the error of each model, Mean Squared Error (MSE) and Root Mean Squared Error (RMSE) scores are analyzed for four cryptocurrencies Bitcoin, Ethereum, Dogecoin and Litecoin of historical and live data API. It is observed that the proposed CNN-BiLSTM ensemble model has the lowest RMSE score of 0.164 for live data API for Bitcoin and 0.166 for historical dataset for Dogecoin. The MSE score of 0.027 is observed for both Bitcoin and Dogecoin cryptocurrencies for live data API and 0.027 for Dogecoin for historical dataset. Thus, RMSE and MSE scores of the proposed approach are very less as compared to MLP, GRU, CNN and LSTM models for cryptocurrency price prediction for both the datasets.

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
Fig. 11
Fig. 12
Fig. 13
Fig. 14

Similar content being viewed by others

References

  1. Jiang X (2020) Bitcoin price prediction based on deep learning methods. J Math Finance 10(01):132–139

    Article  Google Scholar 

  2. 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 

  3. Shin MJ, Mohaisen D, Kim J (2021) Bitcoin price forecasting via ensemble-based LSTM Deep Learning Networks. In 2021 International conference on information networking (ICOIN)

  4. Yao Y, Yi J, Zhai S, Lin Y, Kim T, Zhang G, Yoonjae Lee L (2018) Predictive analysis of cryptocurrency price using deep learning. Int J Eng Technol 7(3.27):258

    Article  Google Scholar 

  5. Lu W, Li J, Li Y, Sun A, Wang J (2020) A CNN-LSTM-based model to forecast stock prices. Complexity 2020:10. https://doi.org/10.1155/2020/662292

    Article  Google Scholar 

  6. Cryptocurrency prices, charts and market capitalizations, CoinMarketCap, Available: https://coinmarketcap.com/

  7. Derbentsev V, Babenko V, Khrustalev K, Obruch H, Khrustalova S (2021) Comparative performance of machine learning ensemble algorithms for forecasting cryptocurrency prices. Int J Eng 34(1):140–148

    Google Scholar 

  8. Yahoo Finance: stock market live, quotes, business & finance news. Yahoo! Finance. Available: https://finance.yahoo.com/

  9. Schulte M, Eggert M (2021) Predicting hourly bitcoin prices based on long short-term memory neural networks. In Lecture notes in information systems and organisation, pp 754–769

  10. Cryptocurrency prices, portfolio, forum, rankings. CryptoCompare, Available: https://www.cryptocompare.com/

  11. Bitcoin charts, Bitcoincharts. Available: https://bitcoincharts.com/

  12. Neural networks: what are they and why do they matter?,” What are they and why do they matter? | SAS India, Available: https://www.sas.com/en_in/insights/analytics/neural-networks.html

  13. LSTM RNN in tensorflow: javatpoint. www.javatpoint.com. Available: https://www.javatpoint.com/long-short-term-memory-rnn-in-tensorflow

  14. Alla S (2021) A guide to bidirectional RNNS with keras. Paperspace Blog. Available: https://blog.paperspace.com/bidirectional-rnn-keras

  15. Saha S (2018) A comprehensive guide to convolutional neural networks : the eli5 way. Medium, Available: https://towardsdatascience.com/a-comprehensive-guide-to-convolutional-neural-networks-the-eli5-way-3bd2b1164a53

  16. Techopedia (2018) What is a gated recurrent unit (GRU)?: definition from Techopedia. Techopedia.com, Available: https://www.techopedia.com/definition/33283/gated-recurrent-unit-gru

  17. Multilayer Perceptron Wikipedia, 12-Apr-2022. Available:https://en.wikipedia.org/wiki/Multilayer_perceptron

  18. Zhang F, Li J, Wang Y, Guo L, Wu D, Wu H, Zhao H (2021) Ensemble learning based on policy optimization neural networks for capability assessment. Sensors 21(17):5802

    Article  Google Scholar 

  19. Mean squared error loss function: peltarion platform. Peltarion, Available: https://peltarion.com/knowledge-center/documentation/modeling-view/build-an-ai-model/loss-functions/mean-squared-error

  20. Frost J (2021) Mean squared error (MSE). Statistics By Jim, Available: https://statisticsbyjim.com/regression/mean-squared-error-mse/

  21. Choubey V (2020) How to evaluate the performance of a machine learning model. Medium, Available: https://vijay-choubey.medium.com/how-to-evaluate-the-performance-of-a-machine-learning-model-d12ce920c365

  22. Root-mean-squared error. Root-mean-squared error: an overview/sciencedirect topics. Available: https://www.sciencedirect.com/topics/engineering/root-mean-squared-error

Download references

Author information

Authors and Affiliations

Authors

Contributions

Authors TS, NG, M and SD wrote the manuscript, and authors NR and AS guided and mentored. All authors reviewed the manuscript.

Corresponding author

Correspondence to Ankita Singh.

Ethics declarations

Conflict of interest

The authors declare no competing interests.

Additional information

Publisher's Note

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

Appendix

Appendix

See Figs.

Fig. 15
figure 15

Bitcoin price prediction graphs of (i) CNN, (ii) LSTM, (iii) GRU and (iv) MLP models, respectively, using live data

15,

Fig. 16
figure 16

Ethereum price prediction graphs of (i) CNN, (ii) LSTM, (iii) GRU and (iv) MLP models, respectively, using live data

16,

Fig. 17
figure 17

Dogecoin price prediction graphs of (i) CNN, (ii) LSTM, (iii) GRU and (iv) MLP models, respectively, using live data

17,

Fig. 18
figure 18

Litecoin price prediction graphs of (i) CNN, (ii) LSTM, (iii) GRU and (iv) MLP models, respectively, using live data

18,

Fig. 19
figure 19

Bitcoin price prediction graphs of (i) CNN, (ii) LSTM, (iii) GRU and (iv) MLP models, respectively, using historical data

19,

Fig. 20
figure 20

Ethereum price prediction graphs of (i) CNN, (ii) LSTM, (iii) GRU and (iv) MLP models, respectively, using historical data

20,

Fig. 21
figure 21

Dogecoin price prediction graphs of (i) CNN, (ii) LSTM, (iii) GRU and (iv) MLP models, respectively, using historical data

21 and

Fig. 22
figure 22

Litecoin price prediction graphs of (i) CNN, (ii) LSTM, (iii) GRU and (iv) MLP models, respectively, using historical data

22.

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

Rathee, N., Ankita Singh, Sharda, T. et al. Analysis and price prediction of cryptocurrencies for historical and live data using ensemble-based neural networks. Knowl Inf Syst 65, 4055–4084 (2023). https://doi.org/10.1007/s10115-023-01871-0

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10115-023-01871-0

Keywords

Navigation