Time Series Analysis of Blockchain-Based Cryptocurrency Price Changes

Jacques Fleischer, Gregor von Laszewski, Carlos Theran, Yohn Jairo Parra Bautista
2/19/2022
cs.LGcs.DC

Official code: cybertraining-dsc/su21-reu-361 (6 stars, Jupyter Notebook, Apache-2.0, last commit 2022-09-03).

Abstract

In this paper we apply neural networks and Artificial Intelligence (AI) to historical records of high-risk cryptocurrency coins to train a prediction model that guesses their price. This paper's code contains Jupyter notebooks, one of which outputs a timeseries graph of any cryptocurrency price once a CSV file of the historical data is inputted into the program.

Show full abstract

Another Jupyter notebook trains an LSTM, or a long short-term memory model, to predict a cryptocurrency's closing price. The LSTM is fed the close price, which is the price that the currency has at the end of the day, so it can learn from those values. The notebook creates two sets: a training set and a test set to assess the accuracy of the results. The data is then normalized using manual min-max scaling so that the model does not experience any bias; this also enhances the performance of the model. Then, the model is trained using three layers -- an LSTM, dropout, and dense layer-minimizing the loss through 50 epochs of training; from this training, a recurrent neural network (RNN) is produced and fitted to the training set. Additionally, a graph of the loss over each epoch is produced, with the loss minimizing over time. Finally, the notebook plots a line graph of the actual currency price in red and the predicted price in blue. The process is then repeated for several more cryptocurrencies to compare prediction models. The parameters for the LSTM, such as number of epochs and batch size, are tweaked to try and minimize the root mean square error.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Jacques, Fleischer

610Jupyter Notebook, PythonJun 16, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{fleischer2022time,
  title  = {Time Series Analysis of Blockchain-Based Cryptocurrency Price Changes},
  author = {Jacques Fleischer and Gregor von Laszewski and Carlos Theran and Yohn Jairo Parra Bautista},
  year   = {2022},
  eprint = {2202.13874},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.13874}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.13874.svg)](https://codeofpaper.com/paper/2202.13874)

Discussion