Awoke2021 Chapter BitcoinPricePredictionAndAnaly
Awoke2021 Chapter BitcoinPricePredictionAndAnaly
net/publication/345262720
CITATIONS READS
10 8,602
4 authors, including:
Suresh Satapathy
Institute of Electrical and Electronics Engineers
301 PUBLICATIONS 3,350 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
4TH INTERNATIONAL CONFERENCE ON INFORMATION SYSTEM DESIGN AND INTELLIGENT APPLICATIONS (INDIA - 2017) View project
All content following this page was uploaded by Temesgen Awoke Muniye on 04 February 2021.
1 Introduction
are trying to show an interesting new perspective from which view of economics
questions surrounding currency governance, the characteristics of money, political
economy of financial intermediaries, and the nature of currency computation.
Virtual currencies become the most favorable and used for commercial enterprise
transactions all over the world [1, 2]. The popularity is due to its innovative char-
acteristics such as transparency, simplicity, and increasing acceptance through the
world [3]. In the current time, bitcoin is the popular flourishing virtual currency.
Reported to the website https://bitcoin.org, viewed on April 19, 2019, the virtual
currency market value is close to 90 billions of dollars, but it varies from time to
time. Bitcoin is a peer-to-peer cryptocurrency in which all transactions are not regu-
lated or controlled by any third party. Third-party intervention between customers is
impossible. It is highly volatile market price working 24/7. Market capitalization of
bitcoin is increased through time to time. In the current time, more than 71 billions
of dollars publicly traded. Due to its open-source nature, clear, transparent, simple,
and time is saving which leads all virtual currencies in the world.
Bitcoin is a worldwide and most popular cryptocurrency, first introduced in 2008
and exploited as open source in 2009 by a person called Satoshi Nakamoto, but
it became highly popular in 2017. Bitcoin functions as a decentralized moderate
of electronic cash, with transactions proved and transcribed in a public distributed
ledger (blockchain) without any third-party intervention. Transaction blocks consist
of secure shell algorithm which is used to connect each other, and blocks are served
as a non-editable data which is recorded when the transaction is being held. Then any
virtual currency especially bitcoin has been adopted by the people, and the virtual
currency market trend has been growing up.
The popularity of bitcoin is increased within a short period of time. Different
technologies and business companies are joined with bitcoin. As different researchers
assured that after 2015 around 100,000 technology and business companies have
started the bitcoin market. Some of the popular companies which are joined with
bitcoin are Amazon, Microsoft, Overstock, Dell, and others [1]. Many works have
been done to predict time series, as well as BTC value. However, any deep learning
models have not been much used yet to predict the BTC price value. Knowing
the deep learning models become state-of-the-art neural network architecture that
improves prediction accuracy in various domains including time series, we consider
applications of deep learning to predict the BTC price value. In coming sections, we
will explore previous works done on BTC price prediction, discuss deep learning
models to predict the time series, and focus on three main articles which will serve
as foundation of our work.
Primarily, the main challenge of bitcoin exchange rate is its high rate of price
fluctuation. High price volatility implies a certain measure should be taken to predict
the price of bitcoin accurately. Knowing the forecasting activity is necessary to tell
about the future price of bitcoin and build trust as well as acceptance throughout the
world. Influenced by a variety of factors, such as political system, public relations, and
market policy of a country, can determine economical role of bitcoin and international
relation of countries on different market strategies. Lastly, doesn’t have an official
road map: few key challenges and developments coming up for bitcoin prediction
Bitcoin Price Prediction and Analysis Using Deep Learning Models 633
2 Related Works
3 Proposed Methodology
3.1 RNN
3.1.1 LSTM
LSTMs are explicitly designed to avoid the long-term dependency problem. Remem-
bering information for long periods of time is practically their default behavior, not
something they struggle to learn. All recurrent neural networks have the form of
Bitcoin Price Prediction and Analysis Using Deep Learning Models 635
3.1.2 GRU
The GRU is the newer generation of recurrent neural networks and is pretty similar
to an LSTM. GRU got rid of the cell state and used the hidden state to transfer
information. It has also only two gates, a reset gate and update gate as shown in
Fig. 3.
Reset Gate: The reset gate is another gate that is used to decide how much past
information to forget.
Update Gate: The update gate acts similar to the forget and input gate of an
LSTM. It decides what information to throw away and what new information to be
added.
Table 1 Comparision of
Model Compilation time (ms) Epoch
compilation time required by
both the deep learning-based LSTM 53 100
models GRU 5 100
Fig. 4 a MSE graph obtained using LSTM model b MSE graph obtained using GRU model
The proposed model of LSTM and GRU price prediction of bitcoin was trained,
and the predictions were carried out for popular cryptocurrency. The accuracy of
the proposed LSTM as well as GRU model is investigated by finding the root mean
square error (RMSE) and mean absolute percentage error (MAPE) to determine
which model has better accuracy. We observed from the resultant Table 1 that LSTM
takes greater compilation time than GRU model.
The MSE value obtained for 7 days ahead from both the models is plotted and
shown in Fig. 4, and it is clearly observed that GRU is converging faster and steady
than the LSTM model. From Fig. 5a, b, it is discovered that the variation of actual
price and predicted price is more in LSTM than the GRU.
One of the common ways to compare the time series models is to measure their
performance for short- and long-term prediction. To validate the performance of
these two models, we have used MAPE (Mean Absolute Percentage Error) and
RMSE (Root Mean Square Error) as performance measure. These error values are
obtained using LSTM and GRU and listed in Table 2.
638 T. Awoke et al.
Fig. 5 Comparison of actual and predicted bitcoin price during training phase of LSTM (a) and
GRU (b)
Table 2 Comparison of RMSE and MAPE value obtained using LSTM and GRU models
Window size Number of days ahead LSTM GRU
RMSE MAPE RMSE MAPE
1 1 0.092 0.068 0.075 0.065
5 3 0.079 0.057 0.065 0.046
7 5 0.081 0.060 0.087 0.062
12 7 0.045 0.030 0.051 0.035
15 15 0.067 0.048 0.067 0.058
From this study, we found that the GRU-based forecasting model is more appro-
priate in order to forecast time series data of highest price volatility. As we have
observed, from Table 2 and Fig. 6 the prediction accuracy of the LSTM is better at
window size of 12 and days ahead of 7. However, in the rest of window sizes and days
ahead, GRU model is more efficient than that of LSTM models and the comparison
actual and predicted bitcoin price obtained.
Bitcoin is the most popular decentralized way of virtual currency which has a great
role in the free market economy and avoids the intermediary of another third party
between customers. The main objective of our study is to forecast the bitcoin price
with improved efficiency using deep learning models and minimizing the risks for
the investors as well as policy-makers. We have implemented two deep learning
techniques such as LSTM and GRU as prediction models. The study reveals that the
GRU model is the better mechanism for time series cryptocurrency price prediction
Bitcoin Price Prediction and Analysis Using Deep Learning Models 639
Fig. 6 Actual and predicted bitcoin price in terms of USD obtained using LSTM model
and takes lower compilation time. LSTM and GRU models are more capable of
recognizing long-term dependencies. In this study, we have only compared to basic
deep learning-based models, i.e., LSTM and GRU. However, it needs to investigate
further to enhance the accuracy of the deep learning-based prediction models by
considering different parameters in addition to the previous one. Features such as
political system, public relations, and market policy of a country can affect and
determine the price volatility of cryptocurrency. In our study, we have not considered
other cryptocurrencies such as ripple, ethereum, lite coin, and others. We will enhance
the model by applying on these cryptocurrencies so the model becomes a stable one.
Fuzzification can also be incorporated at the input layer by considering the degree
of participation of each of the features in the prediction.
References
1. Nakamoto S et al. (2008) Bitcoin: a peer-to-peer electronic cash system, 2008. Working Paper
from www.bitcoin.org
2. Urquhart A (2016) The inefficiency of Bitcoin. Elsevier, pp 80–82
3. Jang H, Lee J (2017) An empirical study on modeling and prediction of bitcoin prices with
bayesian neural networks based on blockchain information. 5427—5437
4. Dennys CA, Mallqui RAF (2018) Predicting the direction, maximum, minimum and closing
prices of daily bitcoin exchange rate using machine learning techniques. Int J Soft Comput
(IJSC) 596–606
5. McNally S, Roche J, Caton S (2018) Cryptocurrency forecasting with deep learning chaotic
neural networks. IEEE, pp 339–343
6. Atsalakis GS, Atsalaki IG, Pasiouras, F, Zopounidis C (2019) Bitcoin price forecasting with
neuro-fuzzy techniques. Elsevier, pp 770–780
7. Goodfellow I, Bengio Y, Courville A (2016) Deep learning. MIT press
640 T. Awoke et al.
8. Madan I, Saluja S, Zhao A(2015) Automated bitcoin trading via machine learning algorithms.
1–5. http://cs229.stanford.edu/proj2014/Isaac\%
9. Lahmiri S, Bekiros S (2019) Cryptocurrency forecasting with deep learning chaotic neural
networks. Elsevier, 35–40
10. Saxena A, Sukumar TR (2018) Predicting bitcoin Price using lstm and compare its predictability
with Arima model. Int J Pure Appl Math 2591–2600
11. Paresh Kumar N, Narayan S, Rahman RE, Setiawan I (2019) Bitcoin price growth and
Indonesia’s monetary system. Emerg Mark Rev 38:364–376
12. Pant DR, Neupane P, Poudel A, Pokhrel AK, Lama BK (2018) Recurrent neural network based
bitcoin price prediction by twitter sentiment analysis. IEEE, pp 128–132
13. Nivethitha P, Raharitha P (2019) Future stock price prediction using LSTM machine learning
algorithm. Int Res J Eng Technol (IRJET) 1182–1186
14. Roth N (2015) An architectural assessment of bitcoin: using the systems modeling language.
Procedia Comput Sci 44:527–536
15. Phaladisailoed T, Numnonda T (2018) Machine learning models comparison for bitcoin price
prediction. In: 2018 10th international conference on information technology and electrical
engineering (ICITEE). IEEE, pp 506–511