Predicting Cryptocurrency Price Using RNN and LSTM Method

Authors

  • Dzaki Mahadika Gunarto Telkom University
  • Siti Sa'adah Telkom University
  • Dody Qori Utama Telkom University

DOI:

https://doi.org/10.32736/sisfokom.v12i1.1554

Keywords:

Cryptocurrency, RNN, LSTM, RMSE, MAPE

Abstract

Cryptocurrency price prediction is a crucial task for financial investors as it helps determine appropriate investment strategies and mitigate risk. In recent years, deep learning methods have shown promise in predicting time-series data, making them a viable approach for cryptocurrency price prediction. In this study, we compare the effectiveness of two deep learning techniques, the Recurrent Neural Network (RNN) and Long-Short Term Memory (LSTM), in predicting the prices of Bitcoin and Ethereum. Results of this research show that the LSTM method outperformed the RNN method, obtaining lower Root Mean Squared Error (RMSE) and Mean Absolute Percentage Error (MAPE) values for predicting both cryptocurrencies. Bitcoin and Ethereum. Specifically, the LSTM model had a RMSE of 0.061 and MAPE of 5.66% for predicting Bitcoin, and a RMSE of 0.036 and MAPE of 4.58% for predicting Ethereum. In this research, we found that the LSTM model is a more effective method for predicting cryptocurrency prices than the RNN model.

References

A. M. Khedr, I. Arif, P. v. Pravija Raj, M. El-Bannany, S. M. Alhashmi, and M. Sreedharan, “Cryptocurrency price prediction using traditional statistical and machine-learning techniques: A survey,” Intelligent Systems in Accounting, Finance and Management, vol. 28, no. 1. John Wiley and Sons Inc, pp. 3–34, Jan. 01, 2021. doi: 10.1002/isaf.1488.

D. Garcia, C. J. Tessone, P. Mavrodiev, and N. Perony, “The digital traces of bubbles: Feedback cycles between socio-economic signals in the Bitcoin economy,” J R Soc Interface, vol. 11, no. 99, Oct. 2014, doi: 10.1098/rsif.2014.0623.

M. Saad, J. Choi, D. Nyang, J. Kim, and A. Mohaisen, “Toward characterizing blockchain-based cryptocurrencies for highly accurate predictions,” IEEE Syst J, vol. 14, no. 1, pp. 321–332, Mar. 2020, doi: 10.1109/JSYST.2019.2927707.

J. Mattila, “ETLA Working Papers The Disruptive Potential of Distributed Consensus Architectures,” 2016, [Online]. Available: http://pub.etla.fi/ETLA-Working-Papers-38.pdf

Y. Chen and H. K. T. Ng, “Deep learning ethereum token price prediction with network motif analysis,” in IEEE International Conference on Data Mining Workshops, ICDMW, Nov. 2019, vol. 2019-November, pp. 232–237. doi: 10.1109/ICDMW.2019.00043.

R. Wan, S. Mei, J. Wang, M. Liu, and F. Yang, “Multivariate temporal convolutional network: A deep neural networks approach for multivariate time series forecasting,” Electronics (Switzerland), vol. 8, no. 8, Aug. 2019, doi: 10.3390/electronics8080876.

T. Y. Kim and S. B. Cho, “Predicting residential energy consumption using CNN-LSTM neural networks,” Energy, vol. 182, pp. 72–81, Sep. 2019, doi: 10.1016/j.energy.2019.05.230.

H. Xie, L. Zhang, and C. P. Lim, “Evolving CNN-LSTM Models for Time Series Prediction Using Enhanced Grey Wolf Optimizer,” IEEE Access, vol. 8, pp. 161519–161541, 2020, doi: 10.1109/ACCESS.2020.3021527.

I. E. Livieris, E. Pintelas, and P. Pintelas, “A CNN–LSTM model for gold price time-series forecasting,” Neural Comput Appl, vol. 32, no. 23, pp. 17351–17360, Dec. 2020, doi: 10.1007/s00521-020-04867-x.

W. Lu, J. Li, J. Wang, and L. Qin, “A CNN-BiLSTM-AM method for stock price prediction,” Neural Computing and Applications, vol. 33, no. 10. Springer Science and Business Media Deutschland GmbH, pp. 4741–4753, May 01, 2021. doi: 10.1007/s00521-020-05532-z.

Francis Xavier Engineering College and Institute of Electrical and Electronics Engineers, Proceedings of the International Conference on Smart Systems and Inventive Technology (ICSSIT 2018) : Francis Xavier Engineering College, Tirunelveli, India, date: December 13-14, 2018.

N. Ghaniaviyanto Ramadhan, N. Annisa Ferani Tanjung, and F. Dharma Adhinata, “Implementation of LSTM-RNN for Bitcoin Prediction”, doi: 10.34818/indojc.2021.6.3.592.

S. Kumar, “Cryptocurrency Historical Prices Version 3,” Version 3, 2021. https://www.kaggle.com/datasets/sudalairajkumar/cryptocurrencypricehistory

J. Li, S. Wang, S. Qin, X. Li, and S. Wang, Eds., Advanced Data Mining and Applications, vol. 11888. Cham: Springer International Publishing, 2019. doi: 10.1007/978-3-030-35231-8.

Z. C. Lipton, J. Berkowitz, and C. Elkan, “A Critical Review of Recurrent Neural Networks for Sequence Learning,” May 2015, [Online]. Available: http://arxiv.org/abs/1506.00019

H. Apaydin, H. Feizi, M. T. Sattari, M. S. Colak, S. Shamshirband, and K. W. Chau, “Comparative analysis of recurrent neural network architectures for reservoir inflow forecasting,” Water (Switzerland), vol. 12, no. 5, May 2020, doi: 10.3390/w12051500.

S. Hochreiter and J. ¨ Urgen Schmidhuber, “Long Short-Term Memory.”

IEEE Communications Society and Institute of Electrical and Electronics Engineers, 2017 International Conference on Advances in Computing, Communications and Informatics (ICACCI) : 13-16 Sept. 2017.

G. van Houdt, C. Mosquera, and G. Nápoles, “A review on the long short-term memory model,” Artif Intell Rev, vol. 53, no. 8, pp. 5929–5955, Dec. 2020, doi: 10.1007/s10462-020-09838-1.

M. A. Istiake Sunny, M. M. S. Maswood, and A. G. Alharbi, “Deep Learning-Based Stock Price Prediction Using LSTM and Bi-Directional LSTM Model,” in 2nd Novel Intelligent and Leading Emerging Sciences Conference, NILES 2020, Oct. 2020, pp. 87–92. doi: 10.1109/NILES50944.2020.9257950.

U. Khair, H. Fahmi, S. al Hakim, and R. Rahim, “Forecasting Error Calculation with Mean Absolute Deviation and Mean Absolute Percentage Error,” in Journal of Physics: Conference Series, Dec. 2017, vol. 930, no. 1. doi: 10.1088/1742-6596/930/1/012002.

J. J. Montaño Moreno, A. Palmer Pol, A. Sesé Abad, and B. Cajal Blasco, “El índice R-MAPE como medida resistente del ajuste en la previsiońn,” Psicothema, vol. 25, no. 4, pp. 500–506, 2013, doi: 10.7334/psicothema2013.23.

Downloads

Published

2023-03-09

Issue

Section

Articles