Spatial-temporal attention-based convolutional network with text and numerical information for stock price prediction
Open Access
- 5 May 2022
- journal article
- research article
- Published by Springer Nature in Neural Computing and Applications
- Vol. 34 (17) , 14387-14395
Abstract
In the financial market, the stock price prediction is a challenging task which is influenced by many factors. These factors include economic change, politics and global events that are usually recorded in text format, such as the daily news. Therefore, we assume that real-world text information can be used to forecast stock market activity. However, only a few works considered both text and numerical information to predict or analyse stock trends. These works used preprocessed text features as the model inputs; therefore, latent information in text may be lost because the relationships between the text and stock price are not considered. In this paper, we propose a fusion network, i.e. a spatial-temporal attention-based convolutional network (STACN) that can leverage the advantages of an attention mechanism, a convolutional neural network and long short-term memory to extract text and numerical information for stock price prediction. Benefiting from the utilisation of an attention mechanism, reliable text features that are highly relevant to stock value can be extracted, which improves the overall model performance. The experimental results on real-world stock data demonstrate that our STACN model and training scheme can handle both text and numerical data and achieve high accuracy on stock regression tasks. The STACN is compared with CNNs and LSTMs with different settings, e.g. a CNN with only stock data, a CNN with only news titles and LSTMs with only stock data. CNNs considering only stock data and news titles have mean squared errors of 28.3935 and 0.1814, respectively. The accuracy of LSTMs is 0.0763. The STACN can achieve an accuracy of 0.0304, outperforming CNNs and LSTMs in stock regression tasks.Keywords
Funding Information
- Australian Research Council (DP180100670, DP180100656)
- Australia Defence Innovation Hub (P18-650825)
- US Office of Naval Research Global (ONRG-NICOP-N62909-19-1-2058)
- NSW State Government of Australia (DINPP2019 S1-03/09)
- University of Technology Sydney
This publication has 29 references indexed in Scilit:
- A survey of deep neural network architectures and their applicationsNeurocomputing, 2017
- Stock prediction using deep learningMultimedia Tools and Applications, 2016
- Deep learning for stock prediction using numerical and textual information2016
- Language Identification in Short Utterances Using Long Short-Term Memory (LSTM) Recurrent Neural NetworksPLOS ONE, 2016
- Machine Learning in Automatic Speech Recognition: A SurveyIETE Technical Review, 2015
- Enhancing quantitative intra-day stock return prediction by integrating both market news and stock prices informationNeurocomputing, 2014
- News impact on stock price return via sentiment analysisKnowledge-Based Systems, 2014
- Twitter mood predicts the stock marketJournal of Computational Science, 2011
- High-order fuzzy time-series based on multi-period adaptation model for forecasting stock marketsPhysica A: Statistical Mechanics and its Applications, 2008
- Long Short-Term MemoryNeural Computation, 1997