Stock price prediction method of long-term and short-term memory neural network based on attention mechanism

A technology of long-term short-term memory and neural network, which is applied in the field of stock price prediction of long-term short-term memory neural network, can solve the problem that the stock price prediction model cannot produce ideal prediction results, and achieve good prediction and improve the effect of accuracy
CN111222992APending Publication Date: 2020-06-02DALIAN UNIV

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
DALIAN UNIV
Publication Date
2020-06-02

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a stock price prediction method based on a long-term and short-term memory neural network of an attention mechanism, and belongs to the field of deep learning and stock prediction. The method comprises the following steps of S1, obtaining stock historical data, performing data preprocessing on the stock historical data, and dividing the stock historical data into a trainingset and a test set; s2, performing data standardization on the training set and the test set, and performing wavelet transform processing on data of the training set to remove noise of the financialsequence; s3, initializing parameters required by the long-term and short-term memory neural network prediction model, constructing the long-term and short-term memory neural network prediction model,adding an attention mechanism layer into the long-term and short-term memory neural network prediction model, and training the long-term and short-term memory neural network prediction model by usingtraining set data; and S4, predicting the test set by using the trained prediction model to obtain a prediction result. According to the invention, the nonlinear change of the stock price can be better predicted.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the fields of deep learning and stock prediction, in particular to a stock price prediction method based on a long-short-term memory neural network of an attention mechanism. Background technique

[0002] Due to the characteristics of the stock market, such as high volatility, various market types, and data redundancy, stock forecasting is quite challenging, and stock price forecasting has always been one of the concerns of people; in the past period of time, the traditional Technical analysis methods play a very important role in stock analysis and forecasting, but as the magnitude of stock data increases, traditional technical methods may not be able to meet the changing speed of stock price trends. In addition, the volatility of the stock market is a very important factor. For a linear multivariable dynamic system, it is subjective to predict it only by relying on personal intuition and judgment, and it is very easy to be af...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More