Stock prediction method fusing generative adversarial network and two-dimensional attention mechanism

A technology of attention and stocks, applied in biological neural network models, predictions, neural learning methods, etc., can solve problems such as model overfitting and less daily transaction data, and achieve the effect of high dependence on foreign trade

Inactive Publication Date: 2021-07-16
BEIHANG UNIV
View PDF0 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

On the one hand, the history of the Chinese stock market is still not long enough, and the daily transaction data is still relatively small, which is prone to model overfitting, so scholars often use methods such as regularization or dropout to improve the performance of the model; on the other hand, the current mainstream methods focus on Based o

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Stock prediction method fusing generative adversarial network and two-dimensional attention mechanism
  • Stock prediction method fusing generative adversarial network and two-dimensional attention mechanism
  • Stock prediction method fusing generative adversarial network and two-dimensional attention mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0096] The present invention will be further described below in conjunction with the accompanying drawings and examples. It should be understood that the following examples are intended to facilitate the understanding of the present invention, and have no limiting effect on it.

[0097] Such as figure 1 As described, the stock prediction method of the fusion generation confrontation network and the two-dimensional attention mechanism of the present embodiment includes the following steps:

[0098] S1: Determine the driving factor of the target to be predicted (stock or stock index), and obtain the historical driving sequence data of the driving factor as the input of the stock sequence, where the driving factor mainly includes the sequence of the stock itself, the sequence of investors' attention, and the macroeconomic sequence.

[0099] In this embodiment, the closing price of the target stock is expected to be predicted as an example, such as figure 2 As shown, the sequenc...

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

PUM

No PUM Login to view more

Abstract

The invention discloses a stock prediction method fusing a generative adversarial network and a two-dimensional attention mechanism. The method comprises the following steps: acquiring historical sequence data of a driving factor as stock sequence input; preprocessing the historical sequence data; divdiing the preprocessed historical sequence data into a training set and a test set, performing standardization, and generating two-dimensional data sequence input; weighting spatial attention of the two-dimensional data sequence input; weighting time attention pf the two-dimensional data sequence input after the space attention weighting; constructing a stock prediction preliminary model based on a two-dimensional time-space attention mechanism as a generator; modifying an output part structure of the generator to obtain a new generator; establishing a stock prediction model based on a newborn generator and a generative adversarial network discriminator; and constructing an optimization target of the stock prediction model to obtain an optimal stock prediction model. According to the invention, a more accurate and ideal stock price prediction result can be generated.

Description

technical field [0001] The invention belongs to the field of stock forecasting and time series trend forecasting, and in particular relates to a stock forecasting method fused with a generative confrontation network and a two-dimensional attention mechanism. Background technique [0002] As one of the pillars of the financial industry, the stock market plays the role of capital accumulation and capital circulation. Using existing information to predict stock sequences is not only conducive to investors making reasonable investment decisions, obtaining stable and reasonable returns, and avoiding excessive investment risks, but also conducive to improving the effectiveness of the capital market and promoting the rational and effective allocation of capital. [0003] The stock market is a complex social system affected by many factors such as economy, politics, and industrial structure. Therefore, stock prices change rapidly and the influencing factors are intricate. Typical d...

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

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06Q40/04G06N3/04G06N3/08G06Q10/04
CPCG06Q40/04G06N3/08G06Q10/04G06N3/044G06N3/045
Inventor 李妮姚力炜龚光红
Owner BEIHANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products