Data Scientist Uses Deep Learning to Predict BTC Price in Real-Time

Published at: Dec. 2, 2019

A data scientist at India’s prestigious Vellore Institute of Technology has outlined a method for how to purportedly predict crypto prices in real-time using a Long Short-Term Memory (LSTM) neural network.

In a blog post published on Dec. 2, researcher Abinhav Sagar demonstrated a four-step process for how to use machine learning technology to forecast prices in a sector he purported is “relatively unpredictable” as compared with traditional markets. 

Machine learning for crypto price prediction has been “restricted”

Sagar prefaced his demonstration by noting that while machine learning has achieved some success in predicting stock market prices, its application in the cryptocurrency field has been restricted. In support of this claim, he argued that cryptocurrency prices fluctuate in accordance with fast-paced technological developments, as well as economic, security and political factors.

Sagar’s four-step proposed method involves 1) collecting real-time cryptocurrency data; 2) preparing the data for neural network training; 3) testing the prediction using the LSTM neural network; 4) visualizing the results of the prediction.

As software developer Aditi Mittal has outlined, LSTM is an acronym for “Long Short-Term Memory” — a type of neural network that is designed to classify, process and predict time series given time lags of unknown duration. 

To train his network, Sagar used a dataset from CryptoCompare, making use of features such as price, volume and open, high and low values.

He provides a link to the code for the complete project on GitHub and outlines the functions he used to normalize data values in preparation for machine learning.

Before plotting and visualizing the results of the network’s predictions, Sagar notes he used Mean Absolute Error as an evaluation metric, which, he notes, measures the average magnitude of the errors in a set of predictions, without considering their direction.

Sagar’s visualization of his cryptocurrency predictions in real-time using an LSTM neural network. Source: towardsdatascience.com

From the markets to outer space

Beyond market predictions, the convergence of new decentralized technologies such as blockchain with machine learning has been gaining ever more traction.

As reported this fall, NASA recently published a listing for a data scientist role, singling out cryptocurrency and blockchain expertise as “a plus.” 

The agency — whose primary function is the construction and operation of planetary robotic spacecraft and conducting Earth-orbit missions — further required qualifications in one or more related fields including machine learning, big data, Internet of Things, analytics, statistics and cloud computing.

Tags
Related Posts
Bitcoin can reach $400K in 2021 as 'risk-off reserve asset' — Bloomberg
Bitcoin (BTC) still gets criticized for being too volatile, but one Bloomberg analyst believes that it conversely is becoming a "risk-off" choice for investors. In a tweet on March 25, Mike McGlone, senior commodity strategist at Bloomberg Intelligence, said that this year marked a watershed moment for the largest cryptocurrency. $400,000 BTC would "rhyme" with history McGlone uploaded a chart of the BTC/USD average price and the Bitcoin Liquid Index, a price ticker specially created for institutional use. "Well on its way to becoming a global digital reserve asset, a maturation leap in 2021 may be transitioning Bitcoin toward a …
Bitcoin / March 26, 2021
Pantera Capital CEO doubles down on $115K Bitcoin prediction for 2021
Dan Morehead, founder and CEO of Bitcoin (BTC) investment firm Pantera Capital, has maintained his bullish Bitcoin prediction for 2021. Bitcoin is poised to hit as much as $115,000 by August 2021, surging 200% in the next eight months, Morehead reportedly said at a conference call on Jan. 12. The exec initially made this prediction in August 2020, when Bitcoin was trading at about $11,600. At publishing time, the cryptocurrency is trading at over $38,000. On Tuesday, Morehead said that Bitcoin still has lots of room for growth: “Is bitcoin overvalued? I would say no. [...] Bitcoin has spent three …
Technology / Jan. 14, 2021
Bitcoin sees record 100 days above $10K as one analyst eyes ‘parabolic’ 2021
Bitcoin (BTC) has officially beaten a new record as BTC/USD trades above $10,000 for 100 days, and major gains should come next. As voting in the United States’ presidential election ended on Nov. 3, Bitcoin saw a landmark moment of its own — 100 days straight trading in five figures. Bitcoin sees record stretch above $10,000 The achievement is not just impressive as a record for $10,000-plus prices. According to previous data, once Bitcoin trades above these significant price levels for 100 days, BTC/USD swiftly increases by an order of magnitude. As Cointelegraph reported last week, the length of time …
Adoption / Nov. 4, 2020
Breaking 'bear market' in Bitcoin demand will spark next BTC price surge — analysts
Bitcoin (BTC) demand has been in a “bear market” for a whole year, but a surge is most likely what will spark a new price run up. That’s according to prominent economics analyst Lyn Alden, who in a Twitter debate this week bet on demand snowballing and lifting BTC price action. Back: Watch supply & demand for BTC price cues Responding to a survey by stock-to-flow model creator PlanB, Alden said that a demand transformation is more likely to cause a BTC price boom than multiple other events favored by bulls. These include the United States approving a spot price-based …
Bitcoin / Jan. 20, 2022
Bitcoin will shoot over $100K in 2023 before 'largest bear market' — trader
Bitcoin (BTC) will top $100,000 next year but a record-breaking bear market will follow, a popular trader believes. In a Twitter discussion on Oct. 22, Credible Crypto endorsed a theory that Bitcoin’s next halving will also see macro lows of just $10,000. BTC bulls need only wait a year for $100,000 With consensus calling for Q4 2022 to match the end of the 2018 Bitcoin bear market, few are in the mood to call a trend change. While a bold prediction from LookIntoBitcoin creator Philip Swift recently gave the current bear market just months to live, most commentators continue to …
Bitcoin / Oct. 22, 2022