Local-constraint transformer network for stock movement prediction
计算机科学
变压器
人工神经网络
粒子群优化
作者
Jincheng Hu
出处
期刊:International Journal of Computational Science and Engineering [Inderscience Enterprises Ltd.] 日期:2021-07-28卷期号:24 (4): 429-437
标识
DOI:10.1504/ijcse.2021.10039986
摘要
Stock movement prediction is to predict the future movements of stocks for investment, which is challenging both for research and industry. Typically, stock movement is predicted based on financial news. However, existing prediction methods based on financial news directly utilise models for natural language processing such as recurrent neural networks and transformer, which are still incapable of effectively processing the key local information in financial news. To address this issue, local-constraint transformer network (LTN) is proposed in this paper for stock movement prediction. LTN leverages transformer network with local-constraint to encode the financial news, which can increase the attention weights of key local information. Moreover, since there are more difficult samples in financial news which are hard to be learnt, this paper further proposes a difficult-sample-balance loss function to train the network. This paper also researches the combination of financial news and stock price data for prediction. Experiments demonstrate that the proposed model outperforms several powerful existing methods on the datasets collected, and the stock price data can assist to improve the prediction.