Benchmarking TPU and GPU for Stock Price Forecasting Using LSTM Model Development

Research output: Chapter in book / Conference proceedingConference article published in proceeding or bookAcademic researchpeer-review

Abstract

Due to the surge in annual stock debuts, it is vital to use deep learning algorithms. Deep learning requires in-depth knowledge of the technology and how to utilize it. Valuable tasks include assessing and projecting stock prices. The complexity of the uncertain behaviour of the stock market requires deploying deep learning models over several processors of competent computer hardware. This research uses TPU and GPU hardware processors and accelerators to train and assess a deep learning model employing a recurrent neural network of long-short-term memory (LSTM). This model was trained using HKEX, FTSE100, and S&P500 stock price datasets across several periods (1-year, 3-year, 5-year, and 10-year). Runtime, execution time, and evaluation metrics were used to compare results. The number of stacked layers rises as model runtime on a TPU increases. In all three situations, the TPU model was quicker at all the scenarios considered. The stock price dataset is used to train the LSTM model and create prediction with reduced root mean squared error, which indicates that GPU has a shorter runtime with near accuracy as TPU, with a more significant runtime more than ten times that of GPU on big datasets. TPU outperforms GPU in stock price predictions when trained on large datasets, whereas GPU outperforms TPU on smaller datasets. More work is needed to justify evaluating the TPU and GPU for stock price prediction using different deep-learning frameworks by adjusting the LSTM hyper-parameters and running them across more than three datasets.

Original languageEnglish
Title of host publicationIntelligent Computing - Proceedings of the 2023 Computing Conference
EditorsKohei Arai
PublisherSpringer Science and Business Media Deutschland GmbH
Pages289-306
Number of pages18
Volume711
ISBN (Print)9783031377167
DOIs
Publication statusPublished - Sept 2023
EventProceedings of the Computing Conference 2023 - London, United Kingdom
Duration: 22 Jun 202323 Jun 2023

Publication series

NameLecture Notes in Networks and Systems
Volume711 LNNS
ISSN (Print)2367-3370
ISSN (Electronic)2367-3389

Conference

ConferenceProceedings of the Computing Conference 2023
Country/TerritoryUnited Kingdom
CityLondon
Period22/06/2323/06/23

Keywords

  • Deep Learning Models
  • LSTM Model
  • Recurrent Neural Network
  • Stock Price Forecasting

ASJC Scopus subject areas

  • Control and Systems Engineering
  • Signal Processing
  • Computer Networks and Communications

Fingerprint

Dive into the research topics of 'Benchmarking TPU and GPU for Stock Price Forecasting Using LSTM Model Development'. Together they form a unique fingerprint.

Cite this