Stock Market Prediction Based on Time-frequency Analysis and Convolutional Neural Network

  • Dandi Jia*
  • , Qiang Gao
  • , Hui Deng
  • *Corresponding author for this work

Research output: Contribution to journalConference articlepeer-review

Abstract

Recently, researchers have shown an increased interest in stock market prediction with neural networks. Stock market is affected by a multiplicity of factors with different active periods, thus financial time series possess multiscale frequency characteristics, which can be exploited to facilitate prediction of stock market. In this paper, we propose a stock market prediction model combining time-frequency analysis and convolutional neural network (CNN), in which the influence extent of different frequency components has been considered. We transform original financial time series into the spectrogram reflecting time-localized frequency information by short-time Fourier transform (STFT). The 2-dimensional time-frequency feature is obtained from the spectrogram by frequency bands extraction, which is then pre-weighted and input into CNN to forecast the future price change. The frequency bands extraction and pre-weight are set according to the frequency influence. The results of experiments on Shanghai Composite Index show that the proposed model with frequency bands extraction considering frequency influence achieves a 4% relative decrease in mean absolute error (MAE) compared with that does not consider the frequency influence. Moreover, the pre-weight gives an additional 3% relative decrease of MAE.

Original languageEnglish
Article number012017
JournalJournal of Physics: Conference Series
Volume2224
Issue number1
DOIs
StatePublished - 19 Apr 2022
Event2021 2nd International Symposium on Automation, Information and Computing, ISAIC 2021 - Virtual, Online
Duration: 3 Dec 20216 Dec 2021

Fingerprint

Dive into the research topics of 'Stock Market Prediction Based on Time-frequency Analysis and Convolutional Neural Network'. Together they form a unique fingerprint.

Cite this