You are on page 1of 6

Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology

ISSN No:-2456-2165

Forecasting the Fluctuations in the Price of


Cryptocurrency using LSTM in Machine Learning
Dr. Chaitanya Kishore Reddy.M1, G. Vyshnavi Devi3,
Professor & Dean-IT, UG Scholar, Dept. of IT,
NRI Institute of Technology, NRI Institute of Technology,
A.P, India-521212 A.P-521212

K. Sai Sravani2, B. Vasanth4


UG Scholar, Dept. of IT, UG Scholar, Dept. of IT,
NRI Institute of Technology, NRI Institute of Technology,
A.P-521212 A.P-521212

Abstract:- One of the most well-known and valuable distinguishable from conventional currencies since it is not
cryptocurrencies in the present financial market is issued by a central authority or central bank andbecause it is a
bitcoin, which attracts investors and thus creates new decentralized virtual currency that can be converted via
research opportunities for scientists. Numerous studies cryptographic techniques. The other characteristic is that it
using various machine learning prediction methods have was developed using a highly complicated technology called
been conducted on predicting Bitcoin prices. In order to Blockchain, which aimsto store data that makes it difficult or
conduct the study, important features from a dataset impossible to change, hack, or cheat the system. Blockchain
with a high connection to Bitcoin prices are gathered, technology, the foundation of BTC, is essentially a shared,
and then random data chunks are chosen to train and encrypted database of transactions (ledger) that is validated
test the model. The accuracy of price predictions may be by users and shared among all users of a public network. The
lowered due to unfitting results caused by the random niche that Bitcoin has started to carve out for itself might
data that was chosen for model training. Here, a good either help cryptocurrencies gain mainstream acceptance or
training procedure for a prediction model is under be the main reason they fail. The most well-known
examination. The simple Long Short-Term Memory cryptocurrency, Bitcoin, was created in 2009 and was the
(LSTM) model is then trained using the suggested only Blockchain-based cryptocurrency for more than two
methods to forecast the price of bitcoin. The price of years. But as of this now, there are more than 5000
bitcoin for the next five days. Sustainable outcomes for cryptocurrencies and 5.8 million active users. Bitcoin has
the prediction are discovered when the LSTM model is recently drawn a lot of interest in the fields of economics.
trained with an appropriate data chunk, which has been Profit-making in the stock market is frequently done with the
identified. Future advancements are the work's climax in aid of algorithms rather than any direct human investments.
this paper's conclusion. [5] There are hundreds of cryptocurrencies available on the
market, but Bitcoin is the most widely used one. It is
Keywords: Bitcoin, Cryptocurrency, Machine Learning, impacted by external factors like the news, social media, and
Price Prediction, LSTM. other smaller cryptocurrencies with a small market share
that are frequently ignored by investors and traders. The
I. INTRODUCTION close connections between cryptocurrencies have made the
smaller ones a source of shocks that can either benefit or
Prediction of time series is not a brand-new harm other cryptocurrencies. When compared to the stock
phenomenon. Numerous studies have been conducted on the market, cryptocurrency has a very short history; therefore,
subject of stock market predictions. As a time, series new and uncharted territory is being investigated. Both
prediction issue in a market that is still in its infancy, BTC stock market and cryptocurrency price data are structurally
(Bitcoin) offers an intriguing demonstration of this. Because similar to time series data; however, the latter frequently
of this, the market is very unpredictable, which offers a exhibits great volatility and significant wavering.
chance for forecasting. One of the newest technologies that Comparing the bitcoin market to a typical stock market in
has a significant impact on the banking sector is BTC and that it has more new features than the latter. Applying new
Block chain. Cryptocurrencies are a type of digital money forecasting methods that are appropriate for the bitcoin
that may be used for online transactions; unlike traditional industry is necessary. Compared to the stock market, less
money, they were created using cryptography. A virtual or studies on bitcoin price predictions have been done. In this
digital currency utilized in financial systems is called a study, we employed a Long Short-Term Memory (LSTM)
Cryptocurrency. It is protected by encryption, which model to forecast the Bitcoin price trend. [5][6]
prevents counterfeiting and duplicate spending. It is also

IJISRT23MAY437 www.ijisrt.com 624


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
II. TECHNOLOGIES USED

 System Design:

Fig 1 System Design

In our study, we investigate how to design sample determines the type of algorithm theyuse.
dimensions for Bitcoin price predictions by utilizing the
right machine learning algorithms. We approach the issue as  Supervised Learning:
follows, drawing on the Occam's razor principle and the In supervised learning, data scientists give algorithms
features of our datasets. First, the forecast daily intervals labeled training data and specify the variables they want the
with a small sample size and five days with a large sample algorithm to look for correlations between. The algorithm's
size make up the sample. Then, we carry out features input and output are described.
engineering, choosing a few high-dimension features for the
five- day trade data and a few high-dimension features for  Unsupervised Learning:
the daily price, respectively. Third, we use less complex Algorithms used in this sort of machine learning are
machine learning models like Random Forest, XGBoost, trained on unlabeled data. The algorithm searches through
Quadratic Discriminant Analysis, Support Vector Machine, data sets in search of any significant relationships. Both the
and Long Short-Term Memory in addition to more complex input data that algorithms use to train and the predictions or
statistical models like Logistic Regression and Linear suggestions they produce are predefined.
Discriminant Analysis. [Fig:1]

 Machine Learning:  Semi-supervised Learning:


Machine learning is significant because it aids in the Here the word semi-supervised learning is a method of
development of new goods and provides businesses with a
machine learning that combines the two categories
picture of trends in customer behavior and business
mentioned above. Although data scientists may provide an
operational patterns. Several of today's top businesses, algorithm with largely training data, the model is free to
including Facebook, Google, and Uber, make the use of
independently investigate the data and come to its own
machine learning a focal point of their business. For many
understanding of the data set.
businesses, machine learning has emerged as a key
competitive differentiation.
 Reinforcement Learning:
Supervised learning, unsupervised learning, semi- Machine learning includes the discipline of
supervised learning, and reinforcement learning are some of reinforcement learning. It is used by a variety of programs
the categories used to classify traditional machine learning. and machines to determine the optimal course of action to
The kind of data that data scientists wish to predict pursue in a given circumstance.

IJISRT23MAY437 www.ijisrt.com 625


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
 LSTM (Long Short-Term-Memory): In order to overcome the Recurrent Neural Network's
Fewer people than the specialists who created LSTMs (RNN) failure to learn in the face of historical observations
are better at precisely and concisely expressing both the bigger than 5–10 discrete time steps between relevant input
potential of LSTMs and how they operate. We will use events and target signals (vanishing/exploding gradient
expert quotes to discuss important issues in the field of issue), long short-term memory is an upgrade over RNN.
LSTMs, and if you're interested, you can read the original By introducing a memory component called "cell state,"
publications where the quotes were taken. A suitable data LSTM achieves this. To comprehend the fundamental
chunk is used to train the LSTM model, which is then components of the LSTM, let's look at the diagram below.
identifiedand reliable predictions are made. [Fig:2]

Fig 2 Long Short-Term Memory

 LSTM Implementation:
The fact that feed networks don't save memory is a  Architecture of LSTM:
characteristic. As a result, each input is handled Instead of using, we used the Sequential API for Keras. The
independently without the saved state being applied in the full construction looks like this: [Fig:3]
middle of the input. We should cover forthcoming
developments because we're dealing with a number of  Layer LSTM: The LSTM Layer is inside one, and Keras
situations where knowledge of the previous Bitcoin price is has already employed all the gates specified before with
necessary. The intermittent Neural Network (RNN) auto-sigmoid automation [Keras2015]. The above-
associated with affair is the structure that provides this; it has mentioned input mode and neuronal count are the LSTM
an automatic circle. As a result, rather than recycling the parameters.
window in a single step, it's handled precipitously. The
topmost (most common) grade, still, behaves else depending
on the length of time (size of the window), causing it to  Dropout Layout: Usually applied prior to a thick layer.
vanish or explode, consequently. This issue affects the time For us, any hidden layer in the background LSTM can
back propagate optimizer and will get the algorithm to work, be the case put behind any dropout for Keras.
whereas the tools aren't likely to alter in any way the
RNN variant, similar to LSTM and GRU, assigned the  Dense Layer: This common layer is completely
issue. Other data- carrying cells are added to multitudinous integrated
time ways by the LSTM subcase. The value of cell status,
which is a vertical line from Ct- 1 to Ct, is in its capability to  Background Layout: Since we are solving a retreat
record either long- or short- term memory. The government problem, the final layer should provide a combination of
modifies the LSTM effect to taste the cells. And not just the previous layer's line performance and weight vectors.
incipiently, but also when it comes to making It is feasible to transfer in either case provides a parameter
prognostications grounded in a literal background, this is to the dense layer before it. [Fig:3]
significant. With the aid of a circle, LSTM networks can
recall input. There's no RNN for these logs. On the other
hand, as time passes, it becomes less probable that the
posterior result will be dependent on an installation that's
ancient,challenging amnesia. By knowing when to flash
back and when to forget, LSTM accomplishes this your
memory of their gates. Soon, we'll bandy why LSTM
shouldn't be viewed as a black- box model. [1][2][3]

IJISRT23MAY437 www.ijisrt.com 626


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165

Fig 3 LSTM Architecture

 Software Requirements Specification:


Prior to beginning any actual design or development  Platform Independence: Platform independence is
work, a system requirement specification (SRS) is possible thanks to the creation of standalone executables
essentially an organization's understanding of a customer's for bedded systems. Exercising formerly- made goods
or potential client's system requirements and dependencies might be downloaded and run on real tackle without
at that specific time. A document that outlines a list of counting on a modelling and development terrain.
requirements is created using the data acquired during the  Correctness: The computations were made using a clear
analysis. It provides a concise explanation of the services set of guidelines and criteria, and the data's delicacy was
that the system should offer as well as the limitations that also strictly tested.
the system should adhere to. SRS is typically a document  Usefulness: Utility Model Coder offers a stoner-friendly
that exhaustively outlines what the proposed software interface that makes it simple for druggies to
should accomplish without outlining how it will achieve it. communicate.
 Modularity: To explore the value of the product's
 Functional Requirements: rigidity, the entire thing is divided into a number of
A functional demand specifies how a software system modules, and well- defined interfaces are created.
should operate and respond to particular inputs or
circumstances. Computations, data processing, and other  Robustness: This program is being created so that the
specialized functionality may be among them. The functional overall performance is optimized and the stoner may
specifications for this system are as follows- The functional anticipate the results in a short quantum of time with the
conditions for the system are as follows: loftiest position of applicability and delicacy. Inoperative
conditions are constantly appertained to as a system's
 C affair law must be converted for the whole collection attributes. Prosecution quality and elaboration quality are
of control models. two orders for these criteria. Prosecution rates, which are
 Model inputs must be created using both conventional noticed during system operation, include security and
and CLAW design factors. usability, while elaboration rates include testability.
 To produce a single affair train, the results of processing
numerous design models must be integrated.  System Configuration:

 Non-Functional Requirement:  H/W System Configuration:


Inoperative conditions are those that have no direct  Processor - Pentium –IVSpeed - 1.1 GHz
bearing on the particular function that the system performs.  RAM - 4 GB RAM
Rather of describing particular behaviors, they define the  Hard Disk - 20 GB
norms that can be used to estimate how a system works.  Key Board - Standard Windows Keyboard Mouse - Two
They might be connected to characteristics of emergent or Three Button Mouse Monitor – SVGA
systems including responsibility, response time, and store
residency. Inoperative conditions can be caused by external  S/W System Configuration:
factors.  Coding Language: Python – 3.7.0

IJISRT23MAY437 www.ijisrt.com 627


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
Regressive Integrated Moving Average are the four price
III. EXISTING SYSTEM vaccination models that Manglaetal. Compared (ARIMA).
Their crucial result is that ARIMA performs poorly for
After the recent ups and camp in the value of vaccinations that go beyond the following day. For up to six
cryptocurrencies, Bitcoin is now more constantly seen as an days, their RNN algorithm can anticipate price changes with
implicit investment. Due to its extreme volatility, accurate delicacy. Also, a divisible hyperplane is needed for the
vaccinations are necessary to guide investment choices. logistic retrogression model to produce dependable results.
Despite the fact that former studies have used. Many studies
have concentrated on the viability of applying colorful  Proposed System:
modelling ways to samples with colorful data formats and In comparison to more complex machine learning
dimensional attributes when using machine literacy for more algorithms, statistical ways like Logistic Regression and
precise Bitcoin price vaccination. We originally categorize Linear Discriminant Analysis for diurnal Bitcoin price
Bitcoin price by diurnal price and high- frequency pricing in vaccination using high- dimensional features reach a
order to prognosticate Bitcoin price at colorful frequenters delicacy of 66. We outperform standard results for diurnal
using machine literacy ways. For the purpose of price vaccination, with the statistical styles and machine
prognosticating the diurnal price of Bitcoin, a collection of literacy algorithms maximum delicacy values of 66 and65.3,
high- dimension features, similar as property and network, independently. With a delicacy of 67.2, machine literacy
trade and request, attention, and the spot price of gold, are models like Long Short- Term Memory outperform
used. Utilized to read prices every five days using statistical styles in the vaccination of the price of bitcoin
information attained from a bitcoin exchange. over a five days. Considered an airman study of the
significance of the sample dimension in machine literacy
 Disadvantages of Existing System: styles, our examination into Bitcoin price vaccination.
When applying their vaccination Reopened  Advantages of Proposed System:
Intermittent Unit (GRU) model, Numnoda metal. Set up To create a model with a low error rate and high
incredibly precise results. Their prototype, still, takes a long- precision of accuracy that will allow us to forecast the price
time complexity. In this constantlyshifting environment, this of the cryptocurrency being utilized (in this example,
complicates the anticipated issues. Also, the chosen rates are Bitcoin). The model cannot predict the future, but it can
inadequate to cast Bitcoin values because a variety of suggest a broad trend and the overall direction in which to
factors, including social media and the programs and expect price movement.
legislation that each nation declares to deal with digital
currency, canhave a significant impact on price oscillations. It will be helpful the investors to invest in the stock
market.
Intermittent Neural Networks (RNN), Logistic
Retrogression, Support Vector Machine, and Auto

 System Architecture:

Fig 4 System Architecture

IJISRT23MAY437 www.ijisrt.com 628


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
 Future Scope: BIOGRAPHIES
Future research will concentrate on changed LSTM
layers, dropout and modified number of epochs, and utilizing
other unstable dataset to test how good the prediction results
are, or try to utilize sentiment analysis mixed with LSTM
approach to see the impact of the uncertainty in bitcoin
value.

IV. CONCLUSION

The LSTM model used in this application is a simple Dr. Chaitanya Kishore Reddy. M is currently working as a
model that considers only a few factors that influence the Professor and Dean in the Department of Information
price of bitcoin. Our model predicts future prices with a technology at NRI Institute of technology, Pothavarappadu,
reasonable amount of accuracy. However, more Bitcoin Agiripalli, Krishna(dist), India. He received Ph.D. in
price features must be taken into account in order to boost Computer Science and Engineering and M. Tech in
the model's effectiveness. We have contributed to the Computer Science and Engineering at Jawaharlal Nehru
financial market by educating investors on how to examine Technological university, Kakinada. He has Published 40
Bitcoin data and then use that information to predict the research papers in various National and International
future movement of the bitcoin price. This post represents Journals and International Conferences. He is a member in
five consecutive days' worth of bitcoin using the LSTM ISTE, CSI, and IAENG. His research areas are Mobile Ad-
model to anticipate price. hoc Networks, IOT, and Cloud Computing.

REFERENCES

[1]. https://www.researchgate.net/publication/339092042_
A_LSTM-
Method_for_Bitcoin_Price_Prediction_A_Case_Stud
y_Y ahoo_Finance_Stock_Market
[2]. https://towardsdatascience.com/cryptocurrency-
price-prediction-using-lstms-tensorflow-for-hackers-
part-iii-264fcdbccd3f
[3]. https://towardsdatascience.com/bitcoin-price- K. Sai Sravani is currently studying B. Tech with
prediction-using-lstm-9eb0938c22bd specification of Information Technology in NRI Institute of
[4]. https://rie.binadarma.ac.id/file/conference/a-lstm- Technology. She done a mini project Bitcoin Price
method-for-bitcoin-price-prediction-a-case-study- Prediction.
yahoo-finance-stock-market-1639027986.pdf
[5]. https://www.irjet.net/archives/V9/i4/IRJET-
V9I425.pdf
[6]. https://www.mdpi.com/1309722
[7]. https://www.researchgate.net/publication/352063200_
BITCOIN_PRICE_PREDICTION_USING_MACHI
NELEARNING
[8]. https://www.geeksforgeeks.org/bitcoin-price-
prediction-using-machine-learning-in-python/
[9]. https://medium.com/@rohansawant7978/foreca sting- G. Vyshnavi Devi is currently studying B. Tech with
of-bitcoin-price-using-machine-learning-deep- specification of Information Technology in NRI Institute of
learning-techniques-93b f662f46ab Technology. She done a mini project Bitcoin Price
[10]. https://randerson112358.medium.com/build-a- Prediction.
bitcoin-price-prediction-program-using-machine-
learning-and-python-89f3d c6cb3b1

B. Vasanth is currently studying B. Tech with specification


of Information Technology in NRI Institute of Technology.
He done a mini project Bitcoin Price Prediction.

IJISRT23MAY437 www.ijisrt.com 629

You might also like