CN110782096A - Forex time series prediction method - Google Patents

Forex time series prediction method Download PDF

Info

Publication number
CN110782096A
CN110782096A CN201911035230.0A CN201911035230A CN110782096A CN 110782096 A CN110782096 A CN 110782096A CN 201911035230 A CN201911035230 A CN 201911035230A CN 110782096 A CN110782096 A CN 110782096A
Authority
CN
China
Prior art keywords
network
training
neural network
prediction
long
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911035230.0A
Other languages
Chinese (zh)
Inventor
倪丽娜
李玉洁
张金泉
张泽坤
亓亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong University of Science and Technology
Original Assignee
Shandong University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University of Science and Technology filed Critical Shandong University of Science and Technology
Priority to CN201911035230.0A priority Critical patent/CN110782096A/en
Publication of CN110782096A publication Critical patent/CN110782096A/en
Priority to PCT/CN2020/116955 priority patent/WO2021082811A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • G06F18/2135Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods based on approximation criteria, e.g. principal component analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Tourism & Hospitality (AREA)
  • Game Theory and Decision Science (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Educational Administration (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Technology Law (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a foretell time series prediction method, and particularly relates to the field of foretell time series data. The forecasting method is used for analyzing and forecasting the forex time sequence data based on a deep learning algorithm C-LSTM combined with a convolutional neural network and a long-short term memory network, provides a forex time sequence short-term forecasting method, systematically studies three main factors influencing forecasting precision, selects an optimal input feature, a network structure and a training method, constructs a feature optimization algorithm based on PCA aiming at the problem of high data noise, performs dimension reduction and noise removal on the input feature, then avoids the occurrence of an overfitting problem by applying Dropout and L2 regularization methods, further improves the forecasting precision of the forecasting method, and simultaneously constructs a parallel optimization algorithm based on a GPU high-performance computing technology in order to meet the high timeliness requirement of the forex market, accelerates the training speed of a network model and improves the usability of the forecasting method in the actual application scene.

Description

Forex time series prediction method
Technical Field
The invention relates to the field of foreign exchange time series data, in particular to a foreign exchange time series prediction method.
Background
The foreign exchange market plays a key role in the healthy development of the world economy, the fluctuation of time series data of the foreign exchange is severe, and a plurality of factors influencing the fluctuation are provided, so that the method is one of the financial derivatives which are difficult to analyze and predict in the financial market, and the traditional analysis and prediction method has long been in force. In the big data era, with the continuous increase of data volume and the rapid improvement of computing power, deep learning technology makes a major breakthrough in the fields of image recognition, natural language processing, voice recognition and the like, and many scholars begin to apply the deep learning technology to the analysis of the time series of foreign currencies and have obtained certain research results.
At present, there are two main types of analysis methods for the time series of foreign exchange:
(1) traditional statistical methods
The traditional statistical method establishes a mathematical model through a statistical method, fits historical foreign exchange time series data, and then predicts future foreign exchange time series through the established model. Common methods include MA (Moving Average) model, ARIMA (AutoRegressive Integrated Moving Average) model, GARCH (Generalized AutoRegressive Conditional heterogeneous) model, and the like [1]. The traditional statistical method has small dependence on data, can construct a model only by a trend curve of a historical foreign exchange time sequence, and has strong universality. It has a problem of hysteresis, with predicted values being later than the true values, and for higher complexityThe traditional statistical method cannot effectively mine the internal rules of the system, so that the traditional statistical method has an unsatisfactory effect on the analysis and prediction of the financial time series.
(2) Neural network method
The neural network can be well fitted with a complex nonlinear system, so that the neural network has great potential for analyzing and predicting the foreign currency time sequence, and therefore, many scholars analyze and predict the foreign currency time sequence by using the neural network method and obtain a great deal of research results. Common methods include BP neural network, radial basis function neural network, wavelet neural network, etc [2]. However, the learning ability of the neural network method in the shallow layer is limited, the foreign exchange time series data cannot be well fitted, and the analysis and prediction effect is superior to that of the traditional statistical method, but still has a great promotion space.
The deep learning technology well makes up the problem of insufficient learning capability of a shallow neural network, so that the deep learning technology has a better application prospect in the analysis of the foreign exchange time sequence, but the deep learning algorithm has a complex structure, a plurality of factors influencing the prediction accuracy of the deep learning algorithm, subjective factors such as sample characteristics, the algorithm structure and a training optimization method have important influence on the model prediction accuracy, and the research on the factors has important significance for improving the prediction accuracy of the deep learning algorithm in the foreign exchange time sequence. In addition, the application of the current deep learning algorithm in the foreigner time series analysis is mainly a single structure, and how to effectively combine different depth learning algorithms and complement the advantages so as to further improve the prediction precision of the deep learning algorithm, and continuous research and improvement are needed.
As early as the end of the 20 th century, MarkStaley and pct erkim have successfully applied simple artificial neural networks to forex time series analysis, and the effectiveness of neural network methods in forex time series analysis was demonstrated by analytically predicting canadian immediate exchange rates. Later, Huifeng and Hurring rights and the like use the artificial neural network to predict the RMB-to-US dollar exchange rate, and compared with the traditional statistical analysis method, the experimental data shows that the neural network method is superior to the traditional statistical analysis method. Jingtao Yao and Chew Lim Tan use neural network methods to analyze and predict exchange rate time series between U.S. dollars and other five major currency pairs, well proving the good applicability of neural network algorithms in foreign exchange time series analysis, but also pointing out that it is difficult to obtain high revenue in the foreign exchange market by means of neural network algorithms alone. Therefore, many researchers have started to adopt a combined model to improve the prediction effect on the foreign exchange time series. For example, the wavelet analysis method is fused into a neural network algorithm, a wavelet neural network prediction method is constructed, and the generalization capability of the neural network is improved. He Ni and Yin Hujun are combined with multiple regression neural networks to construct a mixed prediction model, and a genetic algorithm is used for optimizing the model, so that experiments show that the mixed prediction model has high profit return rate. Georgios Sermpiis, Konstatinos Theophiles and the like construct a foreign exchange time sequence analysis model based on an adaptive radial basis neural network, and are optimized by using a particle swarm optimization algorithm, and experimental data show that the model is greatly improved in the aspects of precision and speed. Lukas F and the like construct a forex time series prediction model by combining a genetic algorithm and a moving average line based on a radial basis neural network, and perform experimental analysis on dollar-added element high-frequency time series data, and experimental data show that the model has higher prediction precision than an autoregressive model and a BP neural network model. Kristjanpoler W and Minutolo M C predict volatility of oil price by using a mixed model of a neural network and GARCH and incorporating a plurality of financial variables, and experiments show that the mixed model improves prediction accuracy by 30% compared with the previous model. Petropoulos A and other intelligence are combined with various machine learning models to research and develop an automatic foreign exchange investment combination transaction system, the system uses a support vector machine, a random forest, a Bayes regression tree, a fully-connected neural network and a naive Bayes classifier to simulate the dependency pattern between main currency pairs, implicit signals with fluctuating exchange rate are generated according to the output of the models, and finally the implicit signals are combined into an aggregate prediction waveform through majority voting, genetic algorithm optimization and regression weighting technology. The system is tested in actual transaction, and the test result shows that the system can obviously improve the transaction performance. Dashrajashre proposed an evolutionary framework using an improved mixed frog-leaping algorithm and an artificial neural network to predict forex time series data. And compared with a mixed frog-leaping algorithm and a particle swarm optimization algorithm, experiments show that the model provided in the text is more suitable for time series analysis of foreign exchanges.
The study is mainly based on the shallow neural network algorithm, but the fluctuation of the foreign exchange time sequence is large, the randomness is strong, and the shallow neural network algorithm is difficult to fully dig the internal rule of the foreign exchange time sequence. With the rapid development of the deep learning technology, the deep learning technology makes a major breakthrough in the fields of image recognition, voice recognition, natural voice processing and the like, and therefore, the application and research of the deep learning technology in the financial time series analysis is also concerned by a plurality of scholars.
Jingchao et al used an improved Deep Belief Network (DBN) analysis to predict foreign time series data, here by constructing a DBN using a continuous restricted boltzmann machine and improving the classical DBN model to predict continuous data, using the conjugate gradient descent method to accelerate the training of the DBN. In the experiment, six evaluation standards are adopted to test three foreign exchange sequence data, and experimental data shows that the prediction method is superior to prediction methods such as a feedforward neural network and the like. Korczak Jerzy and Hernes Marcin build a model supporting the foreign exchange market trading decision based on the CNN deep learning algorithm, and experiments show that the prediction error of the deep convolutional neural network on the foreign exchange time series data is remarkably reduced. Galeshchuk S and Mukherjee S predict the foreign exchange time series data of emerging markets based on the deep learning algorithm, and provide a novel input feature based on a currency cluster. Dadabada praadepkumar and Vadlamani Ravi propose a novel particle swarm optimization quantile recursive neural network algorithm for analyzing and predicting financial data such as foreign exchange time sequences, eight financial time sequence data are used for experimental analysis in the algorithm, and the experimental data show that the algorithm is superior to models such as generalized autoregressive conditional variance (GARCH), multilayer perceptron (MLP), Generalized Regression Neural Network (GRNN), Random Forest (RF) and the like. Fischer T and Krauss C predict financial time series data based on a long-short term memory (LSTM) deep neural network, and experiments show that the prediction effect of the long-short term memory network is superior to that of logistic regression, random forest and traditional RNN algorithms. Troano L, Villa E M and the like construct a trading robot based on LSTM, identify logic between market emotion and investment decision given by technical indexes, and experimental results prove feasibility of the scheme.
In summary, due to the limitations of the shallow neural network itself and the development of deep learning techniques, researchers have started to research financial time series based on the deep neural network. The convolutional neural network considers the spatial characteristics of data, can truly simulate the process of neural tissue learning, and has better processing effect on sequence data with spatially related properties. The long-term and short-term memory network considers the time sequence of data, can simulate the cognitive process of nervous tissue more truly, and the algorithm has better processing effect on sequence data with relevant properties in time. However, they are complex in structure and have a large number of factors affecting their performance. At present, systematic research is not carried out on the effective combination of two algorithms and the influence of specific input feature selection, network structure and training method on prediction precision in the training and learning process.
Disclosure of Invention
Aiming at the defects, the invention aims to construct a short-term prediction method of the foreign exchange time sequence based on C-LSTM based on the combination of a convolutional neural network and a long and short term memory network based on a plurality of foreign exchange currency data as research samples, effectively combines two deep learning algorithms of the convolutional deep neural network and the long and short term memory network, systematically researches factors influencing prediction precision, optimizes the factors by using principal component analysis and dropout and L2 regularization methods, and finally constructs the short-term prediction method of the C-LSTM foreign exchange time sequence with higher prediction precision.
The invention specifically adopts the following technical scheme:
a foreigh exchange time series prediction method comprises the following steps:
step 1, constructing a C-LSTM prediction method based on the combination of a convolutional neural network and a long-short term memory network, and specifically comprising the following steps:
1-1, constructing a C-LSTM network model based on the combination of a convolutional neural network and a long-short term memory network, specifically comprising the following steps:
1-1-1, constructing five functional modules including an input layer, a hidden layer, an output layer, network training and network prediction;
1-1-2, constructing a training and predicting algorithm of a C-LSTM foreign exchange time sequence short-term prediction method based on the combination of a convolutional neural network and a long-term and short-term memory network;
1-2, selecting an activation function of C-LSTM combined with a convolutional neural network and a long-short term memory network;
1-3, defining a loss function of the C-LSTM combining the convolutional neural network and the long-short term memory network;
1-4, selecting transaction indexes and basic surface data as input features of a C-LSTM combined with a convolutional neural network and a long-short term memory network;
step 2, training and optimizing the method constructed in the step 1 from three aspects of input characteristics, a network structure and a training method, wherein training and optimizing items comprise characteristic optimization of principal component analysis, C-LSTM lag period number optimization combining a convolutional neural network and a long-short term memory network, C-LSTM structure optimization combining the convolutional neural network and the long-short term memory network, C-LSTM training method optimization combining the convolutional neural network and the long-short term memory network, and parallel optimization based on a GPU;
in the aspect of inputting characteristics, 18 index data are selected as the input characteristics, and the 18 index data are divided into four categories: basic transaction data, technical index data, a dollar index and national economic indexes are combined, input characteristics are optimized based on a principal component analysis method, influences of different indexes on prediction accuracy are researched, the optimal input characteristics are selected, influences of lag period numbers on the prediction accuracy are researched in an experiment, and therefore the optimal lag period numbers are selected;
in the aspect of a network structure, the size of an optimal hidden layer structure is researched according to a grid search algorithm, the influence of different algorithm combination modes on prediction precision is researched by changing different combination modes of a convolutional neural network and a long-term and short-term memory network, and the size of the optimal hidden layer and the algorithm combination mode are selected;
in the aspect of a training method, Adam, SGD and RMSProp methods are adopted to train a network, the influence of different training methods on the training effect and the prediction precision is researched by comparing the prediction precision of the trained algorithm and the change condition and the convergence speed of a loss function along with the iteration times in the training process, and finally, a proper training method is selected.
Preferably, the relu function is selected in step 1 as an activation function of a C-LSTM combining a convolutional neural network and a long-short term memory network, and after the activation function is added to a network structure, the neural network has the fitting capability of a nonlinear system.
Preferably, in step 1, the mean square error is selected as a loss function, the loss function is shown in formula (1),
Figure BDA0002251307490000041
wherein, y iFor the correct answer corresponding to the ith data in the data sequence batch,
Figure BDA0002251307490000042
and the predicted value is the neural network predicted value corresponding to the ith data.
Preferably, in the step 1, the technical index is calculated through the transaction-type index, the commonly used technical index includes a moving parallel line and a smooth dissimilarity moving parallel line, the moving parallel line and the smooth dissimilarity moving parallel line are used for reflecting the trend of the current change of the exchange price, and the trend turning point is judged through an inverse trend index, and the inverse trend index includes a random index, a divergence rate, a relative strength index and a price change rate.
Preferably, the moving parallel line index is an average value of the closing rate and closing rate in a certain period of time, the average value is used as a basis for judging the trend change, a specific calculation formula is shown as a formula (2),
Figure BDA0002251307490000043
wherein N represents a time period, close iRepresents the closing price of the day i;
selecting a fast moving average line and a slow moving average line, then calculating a smooth moving average line DEA of DIF, finally obtaining a smooth different moving average line, specifically calculating as shown in formulas (3) to (7),
Figure BDA0002251307490000051
Figure BDA0002251307490000052
Figure BDA0002251307490000053
Figure BDA0002251307490000054
BAR=2×(DIF-DEA) (7)
in formulae (3) to (7), EMA -1The index moving average value of the previous day, Close is the closing price of the day and BAR is the height value of the MACD histogram.
Preferably, the specific calculation formula of the random index is shown in formulas (8) to (11),
RSV N=(Close (N)-Low (N))÷(High (N)-Low (N))×100% (8)
Figure BDA0002251307490000055
Figure BDA0002251307490000056
J=3×K-2×D (11)
wherein, Close (N)Is the average closing price in N days, Low (N)Is the lowest price in N days, High (N)Is the highest price in N days, K -1Is the previous day K value, D -1D value of the previous day;
the specific calculation formula of the divergence ratio is as shown in formula (12),
Figure BDA0002251307490000057
wherein, Close is the closing price on the day, N is the time period, and the value is 12;
the calculation formula of the relative strength index is shown as formula (13),
Figure BDA0002251307490000058
therein, Rise iIs the ith day closing price expansion, Fall iIs the price drop of closing the plate on the ith day;
the calculation formula of the price fluctuation rate is formula (14),
ROC=Close÷Close -N(14)
wherein Close is the closing price on the day -NClosing price of the previous N days.
Preferably, in step 2, a feature optimization algorithm is constructed based on PCA, and dimension reduction and dryness removal are performed on the input features.
Preferably, the step of constructing the feature optimization algorithm based on the PCA specifically comprises the following steps:
carrying out centralization processing on the input n-dimensional feature matrix D, namely subtracting the column mean value mu from each column of data;
calculating a covariance matrix S of the centralized input feature matrix;
the eigenvalue lambda of the calculated covariance matrix and the corresponding eigenvector omega are sorted from large to small 12,…,λ n
Taking the k big eigenvalues lambda before 12,…,λ kCorresponding feature vector omega 12,…,ω kThe n-dimensional feature is mapped to the k-dimension by equation (15),
Figure BDA0002251307490000061
new x i' the k dimension is x iAt the k-th principal component ω kProjecting in the direction, discarding the features with small variance by selecting the feature vector corresponding to the largest k feature values, so that each n-dimensional column vector is mapped into a k-dimensional column vector x i', a k-dimensional feature matrix D' is obtained.
Preferably, the optimization of the C-LSTM network structure by combining the convolutional neural network and the long-short term memory network in the step 2 comprises the following parts:
optimizing the super-parameters of the long and short term memory network cycle layer;
optimizing hyper-parameters of the convolutional layer;
the algorithm combination mode optimization, the combination mode of the convolutional neural network and the long-short term memory network comprises the following steps:
the convolution neural network is firstly followed by the long-short term memory network, and the output of the convolution neural network layer is used as the input of the long-short term memory network layer;
the long-short term memory network is firstly carried out and then the convolutional neural network is carried out, and the output of the long-short term memory network layer is used as the input of the convolutional neural network layer;
and respectively performing long-term and short-term memory networks after the convolutional neural network, and combining the outputs of the two algorithms to make final prediction.
Preferably, in the step 2, the Adam, SGD and RMSProp methods are adopted to train the network, and the RMSProp training optimization method is selected and used, so that the RMSProp training optimization method has the advantages of high convergence rate, the most stable training process and the best training optimization effect.
The invention has the following beneficial effects:
the prediction method is based on C-LSTM combined by CNN and LSTM deep neural networks, and the algorithm analyzes and predicts the foreign exchange time sequence data, and provides and constructs the C-LSTM foreign exchange time sequence short-term prediction method. The prediction method comprises the steps of carrying out systematic research on3 types of main factors (training samples, network structures and training methods) influencing the prediction accuracy of the method, constructing a feature optimization algorithm based on a principal component analysis method, carrying out dimension reduction and noise removal on input features, then avoiding the over-fitting problem by using Dropout and L2 regularization methods, and further improving the prediction accuracy of the prediction method on foreign exchange data. In order to meet the high timeliness requirement of the foreign exchange market, a parallel optimization algorithm is constructed based on a GPU high-performance computing technology, the training speed of the network is improved, and finally a C-LSTM foreign exchange time sequence short-term prediction method with high prediction accuracy is constructed. And then, the data are compared and analyzed on 9 different foreign exchange currencies by different neural network methods, and the experimental result shows that the prediction effect of the constructed C-LSTM foreign exchange time sequence short-term prediction method is superior to that of the comparison method, so that the effectiveness and the applicability of the constructed C-LSTM foreign exchange time sequence short-term prediction method in foreign exchange market analysis and prediction are fully proved.
In the aspect of training samples, aiming at input features, various factors influencing the fluctuation of the exchange rate are comprehensively considered, and 4 types of features are extracted from the input features: basic transaction data, technical indexes, dollar indexes and national economic indexes are used, the 4 types of characteristics and different combinations of the characteristics are used as input characteristics, an optimization algorithm of the input characteristics is constructed on the basis of PCA (principal component analysis), and the highest prediction accuracy is obtained when the combination of the basic transaction data, the technical indexes and the dollar indexes is used as input variables; aiming at the lag phase number, different lag phase numbers are selected for training, and researches show that the lag phase number is too short, and the deep learning algorithm cannot completely learn the essential rule in the time sequence, so that the precision is reduced; the delay period is too long, noise contained in the sequence is increased, excavation of the essential rule of the time sequence of the deep learning algorithm is influenced, and training time is greatly increased, so that a good prediction effect can be obtained by selecting a proper delay period aiming at different problems.
In the aspect of a network structure, the prediction accuracy of the number of different hidden layers and the number of neurons in each layer is contrastively analyzed, researches show that the prediction accuracy is reduced when the number of the hidden layers and the number of the neurons in each layer are too large or too small, the intrinsic rule in the time sequence cannot be completely learned due to the too small number of the hidden layers and the too small number of the neurons in each layer, the problem of under-fitting occurs, and when the number of the hidden layers and the number of the neurons in each layer are too large, the problem of over-fitting occurs, and the prediction accuracy is reduced. Different deep learning algorithm combination modes also have influence on the prediction precision, and three different combination modes are compared through experiments, and finally a serial combination mode of firstly CNN and then LSTM is selected.
In the aspect of a training method, Adam, SGD and RMSProp optimization methods are respectively adopted to train and optimize the network, and researches show that the prediction precision difference of the Adam and RMSProp optimization methods is not large, and the RMSProp optimization method is more stable in the training optimization process and faster in convergence speed than the Adam optimization method, so that the RMSProp training optimization effect is better. Compared with the other two methods, the SGD optimization method has a low convergence rate, so that the training optimization effect of the SGD optimization method is poor. Therefore, the optimization method of RMSProp is selected. Due to the fact that the requirement of the foreign exchange market on timeliness is high, the transaction opportunity is vanished instantly, the training speed of the network can be effectively accelerated by using the GPU high-performance computer technology, and the usability of the prediction method in an actual application scene is improved.
Finally, comparison experiments are carried out on the 9 different foreign exchange currency pairs and different neural network algorithms such as BP, CNN, RNN and LSTM, and experimental data show that the prediction precision of the C-LSTM foreign exchange time sequence short-term prediction method constructed based on the combination of two deep neural network algorithms on the 9 currency pairs is higher than that of the comparison method, and the effectiveness and the applicability of the constructed C-LSTM foreign exchange time sequence short-term prediction method in foreign exchange market field analysis prediction are fully proved.
Drawings
FIG. 1 is a schematic diagram of a network structure of a C-LSTM prediction method;
FIG. 2 is a schematic diagram of a C-LSTM prediction method training set architecture;
FIG. 3 is a diagram illustrating the tanh, sigmoid, and relu activation functions;
FIG. 4 is a schematic diagram of the variation of the loss function values during the training process of the C-LSTM prediction method;
FIG. 5 is a schematic diagram of the effect of different input features on root mean square error;
FIG. 6 is a plot of lag period n versus root mean square error;
FIG. 7 is a graph of the relationship between LSTM hidden layer size and RMSE;
FIG. 8 is a graph showing the variation of RMSE with the size of the convolutional layer;
FIG. 9 is a graph of the loss value as a function of iteration number using the Adam training optimization method;
FIG. 10 is a graph of the loss value as a function of iteration number using the RMSProp training optimization method;
FIG. 11 is a graph of loss value as a function of iteration number using the SGD training optimization method;
FIG. 12 is a flow chart of a parallel optimization algorithm for asynchronous mode;
FIG. 13 is a flow chart of a parallel optimization algorithm for synchronous mode;
FIG. 14 is a graph showing the variation of training speed with the increase of the number of GPUs;
FIG. 15 is a data flow diagram of the C-LSTM prediction method;
FIG. 16 is a graph of RMSE values for different currency pairs predicted by different prediction methods;
FIG. 17 is a fitting graph of the predicted effect of the C-LSTM prediction method;
FIG. 18 is a fitting graph of the predicted effect of the RNN prediction method;
FIG. 19 is a fitting graph of the predicted effect of the LSTM prediction method;
FIG. 20 is a fitting graph of the predicted effect of the CNN prediction method;
FIG. 21 is a fitting graph of the prediction effect of the prediction method.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings:
a foreigh exchange time series prediction method comprises the following steps:
step 1, constructing a C-LSTM prediction method based on the combination of a convolutional neural network and a long-short term memory network, and specifically comprising the following steps:
1-1, constructing a C-LSTM network model based on the combination of a convolutional neural network and a long-short term memory network, specifically comprising the following steps:
1-1-1, constructing five functional modules including an input layer, a hidden layer, an output layer, network training and network prediction, wherein the structure diagram is shown in fig. 1.
And inputting the layer. Firstly, dividing preprocessed and normalized 25 ten thousand exchange rate data into a training set and a testing set according to the ratio of 4:1, wherein training input is exchange rate historical data and relevant characteristic data with a time lag, output is predicted closing price of the training input after a certain time lag, and the structure of the training set is shown in fig. 2. In fig. 2, n is the lag period number, from time t, the historical exchange rate data and relevant features of the previous n times are input, and the corresponding training output is the one-step forward predicted value y at time t t+1And predicting the foreign exchange closing price at the next moment according to the historical exchange rate data and the relevant characteristics at the previous n moments.
And (6) hiding the layer. The size of the hidden layer, i.e. the number of neurons in the hidden layer, has an important influence on the learning ability of the algorithm. Too few in number will result in insufficient learning, and too many in number will result in overfitting. Therefore, when the number of hidden layers and the number of neurons in each layer are determined, the network is ensured to learn the implicit essential rule of the training data sequence, and the overfitting problem caused by the excessively complex network is prevented.
And (5) outputting the layer. The number of the output neurons is determined by the number of the output variables, and the academic world holds that when the algorithm has only one output neuron, the output result is optimal. The number of output neurons is therefore designated as 1.
And (5) network training. According to the batch gradient descent method, a training data set D is formed trainDividing the raw materials into batches, wherein the size of each batch is m. Then, the data window is divided according to the lag period number n, and the hidden layer is input. The input of the hidden layer after being divided is X ═ X 1,X 2,…,X nThe output of X after passing through the hidden layer is denoted as H ═ H 1,H 2,…,H nY corresponding to theoretical output and Y corresponding to predicted output
Figure BDA0002251307490000091
Wherein H i=C-LSTM forward(X i,S i-1,P i-1),S i-1And P i-1Respectively the state of the previous LSTM cycle bodyOutput, C-LSTM forwardIs a forward calculation method of CNN and LSTM recurrent neural networks.
Figure BDA0002251307490000092
W is the weight matrix of the output layer and b is the bias of the output layer.
Selecting the average error as a loss function, wherein the loss function is defined as
Figure BDA0002251307490000093
The minimum value obtained by a loss function is taken as an optimization target, the initial learning rate η is given to be 0.01, the learning rate attenuation coefficient α is 0.99, training step numbers and network initialization random seed numbers are used, the hidden layer size and the hidden layer number are layers, RMSProp optimization algorithm is used for continuously optimizing and updating the network weight, the network training is stopped when the training step numbers or the loss function reaches a set threshold value, and the trained network is stored in a hard disk for network prediction.
And (4) predicting the network. And applying the trained network for prediction. And predicting the predicted value at each moment by adopting an iterative method. The prediction process only involves the forward computing process of the network, similar to the forward computing process of network training. Inputting the test set into a trained network to obtain a predicted value, and calculating Root Mean Square Error (RMSE) of the predicted value and a true value as a standard for evaluating the prediction effect of the network, wherein the smaller the Root Mean square error is, the higher the prediction precision is.
1-1-2, constructing a training and predicting algorithm of a C-LSTM foreign exchange time sequence short-term prediction method based on the combination of a convolutional neural network and a long-term and short-term memory network;
1-2, selecting an activation function of the convolutional neural network and the long-short term memory network, selecting a relu function as the activation function of the convolutional neural network and the long-short term memory network, and adding the activation function into a network structure to ensure that the neural network has the fitting capability of a nonlinear system.
the schematic diagram of the tanh, sigmoid and relu activation functions is shown in fig. 3. When the independent variable is greater than 0, the relu function enables gradient change to be more stable, and therefore training of the algorithm is more stable and effective.
1-3, defining loss functions of the convolutional neural network and the long-short term memory network, selecting a mean square error as the loss function, wherein the loss function is shown as a formula (1),
Figure BDA0002251307490000101
wherein, y iThe correct answer corresponding to the ith data in batch,
Figure BDA0002251307490000102
and the predicted value is the neural network predicted value corresponding to the ith data. The mean square error amplifies the error, so that the slight difference of the prediction error can be better measured, and the method is an important signal for the difference between the prediction data and the actual data. The variation trend of the loss function value along with the increase of the training iteration times is shown in fig. 4, and as can be seen from fig. 4, in the training process of the prediction method, along with the increase of the iteration times, the loss function value is rapidly and stably reduced, which indicates that the training effect of the prediction method is better.
1-4, selecting the transaction index and the basic surface data as the input characteristics of the convolutional neural network and the long-short term memory network. The opening price, the highest price, the lowest price and the closing price of the foreign exchange rate on the day are the best direct reflection of the current market situation.
The technical indexes are calculated through basic transaction data and mainly used for assisting in judging the trend of the change of the exchange price, and the commonly used technical indexes mainly comprise the following indexes: the trend indicators such as MA (moving average) and MACD (smooth iso-moving average) are mainly used to reflect the trend of the current price change, i.e. the ascending trend or the descending trend or the oscillation trend. The other type is an inverse trend index or a super-buy and over-sell type index, which is mainly used to determine the turning point of the trend, and the indexes commonly used in the type are KDJ (random index), BIAS (BIAS rate), RSI (relative strength index), ROC (price change rate), and the like. In terms of the overall market for the exchange, the dollar index represents the situation for the entire market, since the index represents the fluctuating aspect of the exchange's mainstream currency pairs.
And calculating to obtain technical indexes through transaction indexes, wherein the commonly used technical indexes comprise moving parallel lines and smooth different and same moving parallel lines, the moving parallel lines and the smooth different and same moving parallel lines are used for reflecting the trend of the current price change, and the trend turning point is judged through a counter trend index, and the counter trend index comprises a random index, a divergence rate, a relative strength index and a price change rate.
The moving parallel line mark is the average value of the exchange rate closing price in a certain period, the average value is used as the basis for judging the trend change, the specific calculation formula is shown as the formula (2),
Figure BDA0002251307490000103
wherein, N represents a time period, close represents a closing price;
selecting a fast moving average line and a slow moving average line, then calculating a smooth moving average line DEA of DIF, finally obtaining a smooth different moving average line, specifically calculating as shown in formulas (3) to (7),
Figure BDA0002251307490000105
Figure BDA0002251307490000111
BAR=2×(DIF-DEA) (7)
in formulae (3) to (7), EMA -1The index moving average value of the previous day, Close is the closing price of the day and BAR is the height value of the MACD histogram.
The specific calculation formula of the random index is shown in formulas (8) to (11),
RSV N=(Close (N)-Low (N))÷(High (N)-Low (N))×100% (8)
Figure BDA0002251307490000112
J=3×K-2×D (11)
wherein, Close (N)Is the average closing price in N days, Low (N)Is the lowest price in N days, High (N)Is the highest price in N days, K -1Is the previous day K value, D -1For the previous day D value, it can be divided into super buy, super sell and shake areas according to the different values of KDJ. The general division criteria are: when the KDJ value is above 80, the area is a super-buy area, and the selling operation can be considered; KDJ values below 20 are over-sell areas that can be considered for buying operations; when the KDJ value is between 20-80, the region is a shaking region, and the user should continue to watch the transaction and is not good.
The specific calculation formula of the divergence ratio is as shown in formula (12),
wherein, Close is the closing price on the day, N is the time period, and the value is 12;
the calculation formula of the relative strength index is shown as formula (13),
Figure BDA0002251307490000115
therein, Rise iIs the ith day closing price expansion, Fall iIs the price drop of closing the plate on the ith day; the calculation formula of the price fluctuation rate is formula (14),
ROC=Close÷Close -N(14)
wherein Close is the closing price on the day -NClosing price of the previous N days.
In summary, the transaction indicators are summarized in Table 1,
TABLE 1
Figure BDA0002251307490000121
Economic index
Interest rate
Interest rate refers to the ratio of interest amount to loan amount, i.e., principal, over a period of time. The capital cost of the enterprise is mainly influenced by the interest rate, and the interest rate also determines the financing and investment of the enterprise, the current situation and the changing development trend of the interest rate are necessarily concerned in the research of the financial market. Refers to the ratio of the amount of interest due to each period of the borrowed, deposited or borrowed amount (referred to as the principal sum) to the nominal value.
The total amount of principal, interest rate, frequency of interest shares, and length of time of borrowing, depositing or borrowing, etc. determine the total sum of all interest in the borrowed or borrowed funds. Interest rate is the payment paid by the borrower to the borrowed principal or to the early consumption, the cost paid to the borrowed principal, and the remuneration received by the lender for deferring the consumption of funds to the borrower. Interest rates generally refer to the percentage of interest obtained in a year to principal.
GDP
GDP (total domestic production value): the GDP is an important index for measuring the comprehensive strength of a country (or a region) and the economic development condition of the country (or the region), is a core index for national economic accounting, cannot be used for measuring the economic condition of a region or a city, and has difference in amount which needs to be collected every year for different cities according to the country or a superior unit, so that the residual wealth of each city is different.
Step 2, training and optimizing the method constructed in the step 1 from three aspects of input characteristics, a network structure and a training method, wherein training and optimizing items comprise characteristic optimization of principal component analysis, hysteresis period number optimization of a convolutional neural network and a long-short term memory network, network structure optimization of the convolutional neural network and the long-short term memory network, training method optimization of the convolutional neural network and the long-short term memory network and parallel optimization based on a GPU;
in the aspect of inputting characteristics, 18 index data are selected as the input characteristics, and the 18 index data are divided into four categories: basic transaction data, technical index data, a dollar index and national economic indexes are combined, input characteristics are optimized based on a principal component analysis method, influences of different indexes on prediction accuracy are researched, the optimal input characteristics are selected, influences of lag period numbers on the prediction accuracy are researched in an experiment, and therefore the optimal lag period numbers are selected;
in the aspect of a network structure, the size of an optimal hidden layer structure is researched according to a grid search algorithm, the influence of different algorithm combination modes on prediction precision is researched by changing different combination modes of a convolutional neural network and a long-term and short-term memory network, and the size of the optimal hidden layer and the algorithm combination mode are selected;
in the aspect of a training method, Adam, SGD and RMSProp methods are adopted for network training, the influences of different training methods on the training effect and the prediction precision are researched by comparing the prediction precision of the trained algorithm and the change condition and the convergence speed of a loss function along with the iteration times in the training process, and finally, the RMSProp training optimization method is selected and used, so that the RMSProp training optimization method is high in convergence speed, the training process is most stable, and the training optimization effect is best.
A feature optimization algorithm is constructed based on PCA (principal components Analysis), the PCA (principal components Analysis) is the most classical method in dimensionality reduction, is a linear, unsupervised and global dimensionality reduction algorithm and aims to find principal components in data and express the features of original data by utilizing the principal components, and therefore the purpose of dimensionality reduction is achieved.
The principal idea of PCA is to map n-dimensional input feature vectors onto k-dimensions, which are completely new orthogonal features (i.e., principal components) and are k-dimensional features reconstructed on the basis of the original n-dimensional features. The principal task of PCA is to sequentially find a set of mutually orthogonal axes from the feature space of the original input data, the first new axis being selected according to the direction of maximum variance in the original data, the second new axis being selected in the plane orthogonal to the first axis so that the variance is maximum, and the third axis being the plane orthogonal to the first two axes so that the variance is maximum. By analogy, n such coordinate axes can be obtained.
Most of the variances are contained in the front k coordinate axes, and the variance value contained in the rear coordinate axis is very small, so that only the front k coordinate axes containing most of the variances can be reserved, which is equivalent to only the dimension characteristics containing most of the variances, and therefore, the dimension reduction of the characteristics of the original input data is realized on the premise of reserving most of the characteristics of the data.
When a problem is researched, a plurality of independent variables are often introduced, the independent variables are combined into a relatively high-dimensional feature vector, the high-dimensional space where the vectors are located often contains much information redundancy and noise, and the complexity of the problem is increased due to the fact that the dimension of the input variable is too high. Therefore, the dimensionality of input variables is reduced as much as possible on the premise of keeping main information, so that the feature expression capacity is improved, and the training complexity is reduced.
The method selects 4 types of index data in total, wherein one type is basic transaction data directly related to foreign exchange transaction, the other type is technical index data calculated by the transaction data, the other type is dollar index related to the overall situation of the money exchange, and the other type is national economic index reflecting the national economic condition. Since there is a possibility that correlation exists in the 4 types of index data and excessive input affects the convergence rate and generalization ability of the deep learning algorithm, the input index is reduced based on the principal component analysis method. And removing part of noise data in the data while reducing the dimension.
The method for constructing the feature optimization algorithm based on the PCA specifically comprises the following steps:
carrying out centralization processing on the input n-dimensional feature matrix D, namely subtracting the column mean value mu from each column of data;
calculating a covariance matrix S of the centralized input feature matrix;
the eigenvalue lambda of the calculated covariance matrix and the corresponding eigenvector omega are sorted from large to small 12,…,λ n
Taking the k big eigenvalues lambda before 12,…,λ kCorresponding feature vector omega 12,…,ω kMapping n-dimensional features to k-dimensions by equation (15)
Figure BDA0002251307490000141
New x i' the k dimension is x iAt the k-th principal component ω kProjection in the direction, features with small variance are discarded by selecting the feature vector corresponding to the largest k feature values, so that each n-dimensional column vector is mapped into a k-dimensional column vector x i', a k-dimensional feature matrix D' is obtained.
The factors influencing the change of the exchange price are numerous, and the method mainly divides the influencing factors into four types: basic transaction data, technical index data, dollar index, and national economic index. Based on PCA dimension reduction algorithm, the following 6 comparison methods are established for the four types of influence factors, and the optimal input feature combination after dimension reduction and noise removal is selected through experimental research. Table 2 analyzes the influence of the input features on the prediction accuracy.
TABLE 2
Figure BDA0002251307490000142
As can be seen from fig. 5, the root mean square error obtained by the combination of the 4 th input features is the smallest, and the prediction accuracy is the highest. The second input feature combination of type 3 indicates that the dollar index has a large impact on the exchange price. The root mean square error of the 1 st input feature combination is only slightly higher than that of the 3 rd input feature combination, which shows that index data calculated based on basic transaction data also has more redundant information, and the analysis and prediction value of the exchange price is not large. The root mean square error of the 6 th input feature combination is the highest, which indicates that the exchange price cannot be well predicted only by using a dollar index and national economic indicators, and the root mean square error of the 7 th input feature combination is higher than that of the 1 st, 3 rd and 4 th input feature combinations, which indicates that all four types of input features are used, so that the noise of training samples is increased, redundant information is increased, and the analysis and prediction on the exchange price are not facilitated.
In summary, the input feature that has the greatest influence on foreign exchange prediction is the basic transaction data, and when the technical index is obtained through calculation of the basic transaction data, information is lost. When the dimensionality of input data is small, effective information is properly added to improve the prediction accuracy, but the added information is redundant and has high noise, and the prediction effect is influenced on the contrary, so that a proper input characteristic needs to be selected for specific problems, the input characteristic is too small, under-fitting is easily caused, the input characteristic is too much, the noise of the data is increased, and the learning effect and the training speed are reduced on the contrary. Thus, the 4 th input feature combination is selected: basic transaction data, technical indicators, and dollar indices are combined as the best input features.
The lag period n refers to the time series length of the analysis prediction, namely, the n +1 th day is predicted by using the data of the previous n days. The difference in the number of lag periods may have a significant impact on the prediction accuracy. On the basis of the optimization of section 4.1, different lag phase numbers of 5, 10, 20, 30, 40, 50 and 60 are selected, and the influence of the lag phase number n on the prediction precision is researched to select the optimal lag phase number n. Detailed laboratory data as shown in table 3, the data of table 3 was visualized to obtain fig. 6.
TABLE 3
Figure BDA0002251307490000151
As is apparent from fig. 6, as the number of lag phases increases, the root mean square error decreases first and then increases, and the prediction accuracy is highest when the number of lag phases is 30. When the number of lag periods is less than 30, the sequence length is too short, the change condition of the sequence cannot be fully reflected, the algorithm cannot learn the intrinsic law in the training sample, when the number of lag periods is more than 30, the sequence length is too long, the sequence contains more noise data, the learning training of the algorithm is influenced, and the data far away from the predicted value is explained to have small influence on the learning training of the algorithm. The number of lag periods is set to 30.
The network structure of the deep learning algorithm has an important influence on the prediction accuracy, and the number of input neurons and the number of output neurons are determined by the problem, so the selection of the network structure refers to the selection of the size of a hidden layer. As can be seen from section 4.1, the optimal input characteristic is 12 dimensions, so the number of input neurons is 12, and the number of output neurons is 1 because the prediction result is a numerical value. The sizes of the hidden layers comprise the number of convolution layers, the size of a convolution kernel, the number of convolution kernels, the number of circulation layer layers and the size of a circulation layer.
Firstly, the number of the convolution layer layers, the size and the number of the convolution kernels are all set to be 1, and the influence of the size value of the LSTM circulation layer on the prediction precision is studied in an experiment to select the optimal size value of the circulation layer. The number of hidden layers is set to be 1, 2, 3, 4 and 5 respectively, the number of neurons in each layer is set to be 8, 16, 32, 64, 128 and 256, and detailed experimental data are shown in table 4.
TABLE 4
The table 4 is visualized to obtain a graph 7, and it can be seen from the graph 7 that the root mean square error RMSE decreases with the increase of the number of neurons and the increase of the number of hidden layers, but when the number of neurons increases to a certain amount, the RMSE does not decrease and increase, and at this time, the network structure is too large, the number of neurons is too large, and an overfitting phenomenon occurs. When the number of neurons is too small, the RMSE is large, because the network scale is too small, training data cannot be effectively fitted, and the problem of under-fitting occurs. Therefore, the prediction accuracy is reduced when the number of neurons is too large or too small, and a proper network scale needs to be set for different problems, so that the number of LSTM hidden layer layers is set to be 3, and the number of neurons in each layer is 128.
After the size of the circulation layer is selected, the influence of the size of the convolution layer on the prediction precision is continuously studied through experiments. The number of the convolutional layers is set to be 1, 2, 3, 4 and 5 respectively, the sizes of convolutional kernels are 1 multiplied by 1, 3 multiplied by 3, 5 multiplied by 5 and 7 multiplied by 7 respectively, and the number of the convolutional kernels and the convolution sliding step length are set to be 1 so as to ensure that the output dimensionality and the input dimensionality of the convolutional layers are kept consistent. The results of the specific experiments are shown in table 5, and table 5 is visualized to obtain fig. 8.
TABLE 5
Figure BDA0002251307490000161
As can be seen from fig. 8, when the number of convolutional layers is 2 and the size of the convolutional kernel is 3 × 3, the RMSE value is the smallest and the prediction accuracy is the highest. When the number of the convolutional layers is 1, the abstraction degree of the data is not enough, and the data still has more noise, and when the number of the convolutional layers is more than 2, the data is excessively abstracted, and the original characteristics of the data are lost, so that the prediction precision of the algorithm is reduced due to insufficient abstraction or excessive abstraction. When the convolution kernel is 1 × 1, only the data is subjected to nonlinear change, but the spatial features around the data are not abstracted, and when the convolution kernel is larger than 3 × 3, the spatial features around the data are collected too much, so that the prediction accuracy is influenced, which indicates that the positions far away from the data are less relevant to the current data. In summary, when the number of convolutional layers is 2 and the convolution sum size is 3 × 3, the spatial characteristics of the data are preferably abstracted, so that the number of convolutional layers is defined as 2 and the convolution kernel size is defined as 3 × 3.
The convolutional neural network and long-short term memory network structure optimization comprises the following parts:
optimizing the super-parameters of the long and short term memory network cycle layer;
optimizing hyper-parameters of the convolutional layer;
the algorithm combination mode optimization, the combination mode of the convolutional neural network and the long-short term memory network comprises the following steps:
the convolution neural network is firstly followed by the long-short term memory network, and the output of the convolution neural network layer is used as the input of the long-short term memory network layer;
the long-short term memory network is firstly carried out and then the convolutional neural network is carried out, and the output of the long-short term memory network layer is used as the input of the convolutional neural network layer;
and respectively performing long-term and short-term memory networks after the convolutional neural network, and combining the outputs of the two algorithms to make final prediction.
Based on the selection of the above-mentioned hyper-parameters, experimental studies were carried out using these three different binding methods, respectively. The experimental result shows that the prediction accuracy of the combination mode of the algorithm (1) is the highest, so that the serial combination mode of firstly CNN and then LSTM is used. The iterative training method of the deep learning algorithm is always a key research problem, and the effect of the training method directly influences the prediction precision. The most common method for solving the training optimization problem is a gradient descent-based method, and the key points are how to optimize the training effect with the least training times and prevent the over-fitting problem from occurring. And carrying out comparative analysis on the three training optimization methods of Adam, SGD and RMSProp, and selecting the optimal training method according to the experimental result. The results of the experiment are shown in Table 6. As can be seen from Table 6, after the SGD optimization method is used, the prediction accuracy is lower than that of the other two optimization methods, and the RMSProp optimization method has the same influence on the prediction accuracy as that of the Adam optimization method.
TABLE 6
Figure BDA0002251307490000171
As can be seen from FIGS. 9-11, the training process of the Adam optimization method is unstable, and the loss value has obvious oscillation along with the increase of the iteration number. The convergence rate of the RMSProp optimization method is higher than that of the Adam optimization method, the training process is stable, the loss value is stably reduced along with the increase of the iteration times, and the training optimization effect is better. The SGD optimization method is low in convergence speed, the loss value is vibrated in the training process, and the training effect is not as good as that of RMSProp.
In conclusion, the RMSProp training optimization method has the advantages of high convergence speed, the most stable training process and the best training optimization effect, so the RMSProp training optimization method is selected and used.
The financial market has higher requirement on timeliness, the deep learning algorithm training needs large calculation amount and more time consumption, and the requirement on high timeliness of the financial market is difficult to meet, so that a GPU high-performance calculation technology is required to be used for parallel optimization of the training process. The training process is accelerated by using the multiple GPUs, the training speed is effectively improved, and the usability of the prediction method in the foreign exchange market is further improved.
The deep learning model is an iterative process, and a common parallelization deep learning model training method is selected for training the model for faster training. In order to ensure the timeliness of the model in practical application, therefore, a training process of the model needs to be accelerated by using multiple GPUs in parallel.
In each iteration, according to the value of the current parameter, a forward propagation algorithm is used for calculating a predicted value on a part of training data sets, and according to the difference between the predicted value and a true value, a backward propagation algorithm is used for calculating a parameter gradient according to a loss function and then updating the parameter. The parallelization deep learning model method has two types: synchronous parallel mode and asynchronous parallel mode.
Fig. 12 shows a flow chart of an asynchronous training mode, and it can be seen that, in each iteration of the asynchronous parallel mode algorithm, different devices read the latest parameters, then obtain a small part of training data for training, independently run the back propagation process and independently update the parameters.
The difference between the synchronous parallel mode and the asynchronous parallel mode is that all devices in the algorithm flow of the synchronous parallel mode acquire the same parameter, as shown in fig. 13, as can be seen from fig. 13, different devices read the same parameter during each iteration of the algorithm of the synchronous parallel mode, and after the algorithm is propagated in the reverse direction, the average value of the parameter update gradient is taken to update the parameter, and finally the parameter is updated uniformly. The training process of the algorithm is carried out in two ways.
The synchronization pattern parallel training optimization algorithm based on the GPU is described below. n is the number of GPUs, D trainFor training the data set, the batch-size is the size of the training data set of each batch, the data sets of different batches are distributed to different GPUs for training at the same time, and gradient values on different GPUs are calculated Then calculating the average value of the gradients on all GPUs to obtain
Figure BDA0002251307490000182
Use of
Figure BDA0002251307490000183
As the gradient update amount of the training.
The experimental analysis is performed by using 4 blocks of GPU devices at most, and the GPU devices with different numbers are used to accelerate the algorithm training process, the acceleration effect of the training process is shown in fig. 14, and it can be clearly seen from fig. 14 that as the number of the GPU devices increases, the training speed is in a nearly linear steady increasing trend, but corresponding overhead such as data communication and the like also increases. Due to the fact that the required calculation amount in the training process is very large, compared with the training speed of a single GPU, the training speed is increased in multiples, and in order to better meet the high timeliness requirement of the foreign exchange market, the training speed of the prediction method and the usability of the prediction method in the practical application scene can be effectively improved by properly increasing the number of GPUs.
The experimental environment for this prediction method is shown in table 7 below.
TABLE 7
Figure BDA0002251307490000184
Using Python3 as the primary programming language, the deep learning framework chose the TensorFlow of google. TensorFlow is the most popular deep learning framework at present, can quickly realize various deep learning algorithms, and has the advantages of strong portability, convenience, flexibility, good performance and the like. Using the tensorbard visualization tool, a dataflow graph of the resulting prediction method is shown in fig. 15. In fig. 15, input data first flows from the input layer into the first convolutional layer1-conv1, then flows into the second convolutional layer2-conv2, flows into the LSTM loop layer layers-LSTM after convolution calculation of the two convolutional layers, and finally flows into the fully-connected layer to calculate a forward propagation predicted value, and then trains and updates parameters of each layer by using a RMSProp training optimization algorithm according to a back propagation algorithm, and finally stores the trained network in a hard disk for predictive analysis of new data.
The prediction method comprises selecting EURUSD (Euro dollar), AUDUSD (Australian dollar), XAUUSD (gold dollar) from 1 month and 3 days of 2008 to 1 month and 3 days of 2018Yuan), GBPJPY (pound british and Japanese), EURJPY (Euro and Japanese), GBPUSD (pound and Japanese), USDCHF (dollar and Renilar), USDPY (dollar and Japanese), USDCAD (dollar and Japanese), and other 9 transaction-active currency pairs of 15-minute data, wherein the original transaction data is downloaded from an MT4 transaction platform, and the dollar index and the American economic index are downloaded from a Jinten data website [62]And (5) collecting. The original data representation of EURUSD (Euro dollars converted) is shown in Table 8, and similarly for the data formats in other currencies, the articles are finite and are not shown one by one.
TABLE 8
date time open high low cbse usdx_ooen usdx_high usdx_low usdx_cbse rate gdp
2008.01.03 0:00 1.4723 1.4724 1.472 1.4721 76.05 76.06 76.03 76.06 1.92 14.72
2008.01.03 0:15 1.4722 1.4725 1.472 1.4724 76.06 76.08 76.03 76.04 1.92 14.72
2008.01.03 0:30 1.4723 1.4725 1.4712 1.4712 76.04 76.04 76.02 76.02 1.92 14.72
2008.01.03 0:45 1.4713 1.4722 1.4711 1.4715 76.02 76.05 75.96 75.99 1.92 14.72
Because the original data only comprises basic transaction data and economic index data, the technical index data needs to be calculated according to the basic transaction data. The statistical analysis of the original data shows that the original data has the defect problem, strong noise and inconsistent direct units of characteristic dimensions. In order to solve the problems, missing data is made up, the data at the previous moment makes up the missing data, and so on. After the missing data is compensated, zero mean normalization is carried out on the characteristics, the original data are mapped to the distribution with the mean value of 0 and the standard deviation of 1, and the calculation formula of the normalization is as follows:
in the formula (16), μ is the mean of the original features, and σ is the standard deviation. The integrity and normalization of the original data are ensured by making up and normalizing the original data. The first 80% of the data was selected as the training set and the remaining 20% as the test set. A contrast method is constructed, and necessary super parameter values are initialized: the lag period number is set to be 30, the hidden layer number is set to be three layers, the hidden layer node number is set to be 128, the loss function adopts the mean square error, the optimization method adopts RMSProp, batch _ size is set to be 300, and the training iteration number is set to be 1000.
Since the algorithm is a regression algorithm, the prediction effect evaluation criterion is RMSE (Root Mean square error). The RMSE is very sensitive to the prediction error of the sequence and can well reflect the prediction accuracy of the algorithm, the smaller the RMSE value is, the higher the prediction accuracy of the algorithm is, and the calculation formula of the RMSE is as follows:
in the formula (17), y iFor the ith real value, the value of the real value,
Figure BDA0002251307490000193
is the ith prediction value, and n is the length of the prediction sequence and the real sequence. On the basis of setting hyper-parameter values, a contrast prediction method is built based on BP, CNN, RNN and LSTM neural networks respectively, experimental contrast analysis is carried out on the contrast prediction method and the built C-LSTM prediction method, prediction accuracy of various prediction methods is judged according to root mean square errors of different prediction methods, and if the root mean square error of the built prediction method is minimum and the prediction accuracy is superior to that of the contrast prediction method, effectiveness and applicability of the prediction methods built based on two deep learning algorithms in forex time sequence analysis can be proved.
A C-LSTM foreign exchange time sequence short-term prediction method is constructed based on CNN and LSTM two deep learning algorithms, a relatively optimal input feature combination, an optimal lag period number, an optimal hidden layer size and algorithm combination mode and a training method with the best effect are selected, and the prediction accuracy of the C-LSTM prediction method is further improved.
In order to verify the effectiveness and the applicability of the constructed C-LSTM foreign exchange time sequence short-term prediction method in foreign exchange market analysis and prediction, a plurality of comparative prediction methods are constructed by using different neural network algorithms such as BP, CNN, RNN | and LSTM, and the like, the prediction effects of the plurality of prediction methods are analyzed in a comparative manner, and the lower the RMSE value obtained by the prediction method in test set data is, the better the prediction effect is. The results of the specific experiments are shown in table 9 below, and table 9 is visualized to provide the results shown in fig. 16.
TABLE 9
Figure BDA0002251307490000201
The results of the prediction of the effect fit of the eurausd (euro dollar) currency on a portion of the test data are shown below, limited to the context of the article, and not all of the results of the prediction of the effect fit of the test data for all currency pairs are shown here, with consistent conclusions being drawn from the results of the prediction of the effect fit of the test data for other currency pairs.
It can be seen from fig. 16-21 that the RMSE values of the constructed C-LSTM prediction method are the lowest on 9 different currencies and the fitting effect of the prediction effect fitting graph is the best, so that it can be known from experimental data that the prediction effect of the constructed prediction method is superior to that of all comparative prediction methods, fully proving the effectiveness and applicability of the constructed C-LSTM forex-time series short-term prediction method in forex-time series analysis.
Further analysis shows that the RNN prediction method has the worst prediction effect, the RNN prediction effect is not improved along with the increase of the iteration times, the gradient disappearance problem occurs, the prediction effect of the corresponding LSTM prediction method is greatly improved, and the LSTM network structure is proved to be capable of effectively solving the gradient disappearance problem. The BP neural network algorithm also obtains a relatively good prediction effect, but for more complex problems, the prediction effect of the BP neural network is lower than that of deep neural networks such as CNN and LSTM. Although the prediction effect of the CNN neural network is better than that of the BP neural network and the RNN neural network, the prediction effect of the CNN neural network is lower than that of the LSTM because the CNN neural network is difficult to effectively mine time sequence characteristics in data. The constructed C-LSTM prediction method effectively combines the advantages of LSTM and CNN, fully excavates the space-time characteristics of the foreign exchange time sequence data, and improves the prediction precision of the prediction method.
In conclusion, the C-LSTM foreign exchange time sequence short-term prediction method is constructed by combining the CNN and LSTM deep learning algorithms, the prediction effects of the C-LSTM foreign exchange time sequence short-term prediction method are superior to the effect of the two algorithms used alone and the prediction effects of the BP and RNN neural networks, and the effectiveness of the combination of the two deep learning algorithms and the applicability of the prediction method in foreign exchange time sequence analysis are fully proved. The method can provide a certain reference for improving the prediction accuracy of the deep learning algorithm, and simultaneously provides a certain theoretical and practical value for the application of the deep learning technology in the foreign exchange time series analysis.
It is to be understood that the above description is not intended to limit the present invention, and the present invention is not limited to the above examples, and those skilled in the art may make modifications, alterations, additions or substitutions within the spirit and scope of the present invention.

Claims (10)

1. A foreigner time series prediction method is characterized by comprising the following steps:
step 1, constructing a C-LSTM prediction method based on the combination of a convolutional neural network and a long-short term memory network, and specifically comprising the following steps:
1-1, constructing a C-LSTM network model based on the combination of a convolutional neural network and a long-short term memory network, specifically comprising the following steps:
1-1-1, constructing five functional modules including an input layer, a hidden layer, an output layer, network training and network prediction;
1-1-2, constructing a training and predicting algorithm of a C-LSTM foreign exchange time sequence short-term prediction method based on the combination of a convolutional neural network and a long-term and short-term memory network;
1-2, selecting an activation function of C-LSTM combined with a convolutional neural network and a long-short term memory network;
1-3, defining a loss function of the C-LSTM combining the convolutional neural network and the long-short term memory network;
1-4, selecting transaction indexes and basic surface data as input features of a C-LSTM combined with a convolutional neural network and a long-short term memory network;
step 2, training and optimizing the method constructed in the step 1 from three aspects of input characteristics, a network structure and a training method, wherein training and optimizing items comprise characteristic optimization of principal component analysis, C-LSTM lag period number optimization combining a convolutional neural network and a long-short term memory network, C-LSTM structure optimization combining the convolutional neural network and the long-short term memory network, C-LSTM training method optimization combining the convolutional neural network and the long-short term memory network, and parallel optimization based on a GPU;
in the aspect of inputting characteristics, 18 index data are selected as the input characteristics, and the 18 index data are divided into four categories: basic transaction data, technical index data, a dollar index and national economic indexes are combined, input characteristics are optimized based on a principal component analysis method, influences of different indexes on prediction accuracy are researched, the optimal input characteristics are selected, influences of lag period numbers on the prediction accuracy are researched in an experiment, and therefore the optimal lag period numbers are selected;
in the aspect of a network structure, the size of an optimal hidden layer structure is researched according to a grid search algorithm, the influence of different algorithm combination modes on prediction precision is researched by changing different combination modes of a convolutional neural network and a long-term and short-term memory network, and the size of the optimal hidden layer and the algorithm combination mode are selected;
in the aspect of a training method, Adam, SGD and RMSProp methods are adopted to train a network, the influence of different training methods on the training effect and the prediction precision is researched by comparing the prediction precision of the trained algorithm and the change condition and the convergence speed of a loss function along with the iteration times in the training process, and finally, a proper training method is selected.
2. The forex time series prediction method of claim 1, characterized in that in step 1, the relu function is selected as the activation function of C-LSTM combined with convolutional neural network and long-short term memory network, and after the activation function is added to the network structure, the neural network has the fitting ability of nonlinear system.
3. The method as claimed in claim 1, wherein in step 1, the mean square error is selected as the loss function, the loss function is expressed by formula (1),
Figure FDA0002251307480000021
wherein, y iFor the correct answer corresponding to the ith data in the data sequence batch,
Figure FDA0002251307480000022
and the predicted value is the neural network predicted value corresponding to the ith data.
4. The foretell of claim 1, characterized in that in step 1, the technical index is calculated by trading index, the commonly used technical index includes moving parallel line and smooth allometric moving parallel line, the moving parallel line and smooth allometric moving parallel line are used to reflect the trend of the current exchange price change, the trend turning point is judged by the inverse trend index, the inverse trend index includes random index, divergence rate, relative intensity index and price change rate.
5. The foretell interchange time series forecasting method of claim 4, characterized in that the moving parallel line index is the average value of the closing price of the exchange rate in a certain period of time, the average value is used as the basis for judging the trend change, the specific calculation formula is shown as formula (2),
Figure FDA0002251307480000023
wherein N represents a time period, close iRepresents the closing price of the day i;
selecting a fast moving average line and a slow moving average line, then calculating a smooth moving average line DEA of DIF, finally obtaining a smooth different moving average line, specifically calculating as shown in formulas (3) to (7),
Figure FDA0002251307480000024
Figure FDA0002251307480000026
Figure FDA0002251307480000027
BAR=2×(DIF-DEA) (7)
in formulae (3) to (7), EMA -1The index moving average value of the previous day, Close is the closing price of the day and BAR is the height value of the MACD histogram.
6. The foretell temporal sequence prediction method of claim 4, characterized in that, the specific calculation formula of the random index is as shown in formulas (8) - (11),
RSV N=(Close (N)-Low (N))÷(High (N)-Low (N))×100% (8)
Figure FDA0002251307480000031
Figure FDA0002251307480000032
J=3×K-2×D (11)
wherein, Close (N)Is the average closing price in N days, Low (N)Is the lowest price in N days, High (N)Is the highest price in N days, K -1Is the previous day K value, D -1D value of the previous day;
the specific calculation formula of the divergence ratio is as shown in formula (12),
Figure FDA0002251307480000033
wherein, Close is the closing price on the day, N is the time period, and the value is 12;
the calculation formula of the relative strength index is shown as formula (13),
Figure FDA0002251307480000034
therein, Rise iIs the ith day closing price expansion, Fall iIs the price drop of closing the plate on the ith day;
the calculation formula of the price fluctuation rate is formula (14),
ROC=Close÷Close -N(14)
wherein Close is the closing price on the day -NClosing price of the previous N days.
7. The foretell of claim 1, characterized by, in step 2, constructing the feature optimization algorithm based on PCA, and performing dimension reduction and dryness removal on the input features.
8. The foretell of claim 1, characterized by that, construct the optimization algorithm of characteristic step specifically as based on PCA:
carrying out centralization processing on the input n-dimensional feature matrix D, namely subtracting the column mean value mu from each column of data;
calculating a covariance matrix S of the centralized input feature matrix;
the eigenvalue lambda of the calculated covariance matrix and the corresponding eigenvector omega are sorted from large to small 12,…,λ n
Taking the k big eigenvalues lambda before 12,…,λ kCorresponding feature vector omega 12,…,ω kThe n-dimensional feature is mapped to the k-dimension by equation (15),
Figure FDA0002251307480000041
novel x' iThe k-th dimension of (a) is x iAt the k-th principal component ω kAnd (3) projection in the direction, selecting the eigenvector corresponding to the largest k eigenvalues, and discarding the eigenvector with small variance, so that each n-dimensional column vector is mapped into a k-dimensional column vector x' iAnd obtaining a k-dimensional feature matrix D'.
9. The forex time series forecasting method of claim 1, characterized in that the optimization of the C-LSTM network structure by combining the convolutional neural network and the long-short term memory network in step 2 comprises the following parts:
optimizing the super-parameters of the long and short term memory network cycle layer;
optimizing hyper-parameters of the convolutional layer;
the algorithm combination mode optimization, the combination mode of the convolutional neural network and the long-short term memory network comprises the following steps:
the convolution neural network is firstly followed by the long-short term memory network, and the output of the convolution neural network layer is used as the input of the long-short term memory network layer;
the long-short term memory network is firstly carried out and then the convolutional neural network is carried out, and the output of the long-short term memory network layer is used as the input of the convolutional neural network layer;
and respectively performing long-term and short-term memory networks after the convolutional neural network, and combining the outputs of the two algorithms to make final prediction.
10. The forex time series prediction method of claim 1, wherein in the step 2, the Adam, SGD and RMSProp methods are adopted to train the network, and the RMSProp training optimization method is selected and used, wherein the RMSProp training optimization method has the advantages of high convergence rate, the most stable training process and the best training optimization effect.
CN201911035230.0A 2019-10-29 2019-10-29 Forex time series prediction method Pending CN110782096A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911035230.0A CN110782096A (en) 2019-10-29 2019-10-29 Forex time series prediction method
PCT/CN2020/116955 WO2021082811A1 (en) 2019-10-29 2020-09-23 Foreign exchange time series prediction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911035230.0A CN110782096A (en) 2019-10-29 2019-10-29 Forex time series prediction method

Publications (1)

Publication Number Publication Date
CN110782096A true CN110782096A (en) 2020-02-11

Family

ID=69387210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911035230.0A Pending CN110782096A (en) 2019-10-29 2019-10-29 Forex time series prediction method

Country Status (2)

Country Link
CN (1) CN110782096A (en)
WO (1) WO2021082811A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415050A (en) * 2020-04-27 2020-07-14 新智数字科技有限公司 Short-term load prediction method and short-term load prediction model training method and device
CN111639823A (en) * 2020-06-10 2020-09-08 天津大学 Building cold and heat load prediction method constructed based on feature set
CN112116381A (en) * 2020-08-31 2020-12-22 北京基调网络股份有限公司 Moon life prediction method based on LSTM neural network, storage medium and computer equipment
CN112598526A (en) * 2021-03-04 2021-04-02 蚂蚁智信(杭州)信息技术有限公司 Asset data processing method and device
WO2021082811A1 (en) * 2019-10-29 2021-05-06 山东科技大学 Foreign exchange time series prediction method
WO2021082810A1 (en) * 2019-10-29 2021-05-06 山东科技大学 Construction method for foreign exchange time series prediction
WO2021082809A1 (en) * 2019-10-29 2021-05-06 山东科技大学 Training optimization method for foreign exchange time series prediction
CN116777506A (en) * 2023-05-16 2023-09-19 济南明泉数字商务有限公司 Bulk product transaction decision-making method and system based on generation type AI service
CN116805514A (en) * 2023-08-25 2023-09-26 鲁东大学 DNA sequence function prediction method based on deep learning

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113642225A (en) * 2021-05-24 2021-11-12 国网新疆电力有限公司经济技术研究院 CNN-LSTM short-term wind power prediction method based on attention mechanism
CN113569473A (en) * 2021-07-19 2021-10-29 浙江大学 Air separation pipe network oxygen long-term prediction method based on polynomial characteristic LSTM granularity calculation
CN113554873A (en) * 2021-07-20 2021-10-26 重庆大学 Travel time volatility prediction method and device based on high-order moment
CN113920408A (en) * 2021-09-10 2022-01-11 天津理工大学 Photonic crystal transmission spectrum sequence feature extraction method based on CNN-RNN parallel fusion
CN113724780B (en) * 2021-09-16 2023-10-13 上海交通大学 Protein coiled-coil structure characteristic prediction implementation method based on deep learning
CN114205138A (en) * 2021-12-09 2022-03-18 麒麟软件有限公司 Network intrusion detection method for container cloud platform
CN114387030B (en) * 2022-01-13 2024-03-15 瑞祥全球购超市有限公司 Online shopping platform-oriented intelligent analysis method for online user quantity
CN114584230B (en) * 2022-03-07 2023-06-20 东南大学 Predictive channel modeling method based on countermeasure network and long-term and short-term memory network
CN114913296B (en) * 2022-05-07 2023-08-11 中国石油大学(华东) MODIS surface temperature data product reconstruction method
CN115018553B (en) * 2022-06-30 2024-05-07 东南大学 Regional logistics single quantity prediction system and method based on deep learning
CN115456073B (en) * 2022-09-14 2023-07-07 杭州电子科技大学 Long-short-term memory-based modeling analysis method for generating type countermeasure network model
CN117349774A (en) * 2023-10-24 2024-01-05 重庆邮电大学 Block chain abnormal transaction detection method based on big data

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160099010A1 (en) * 2014-10-03 2016-04-07 Google Inc. Convolutional, long short-term memory, fully connected deep neural networks
CN105787582A (en) * 2015-12-24 2016-07-20 清华大学 Stock risk prediction method and apparatus
CN107832897A (en) * 2017-11-30 2018-03-23 浙江工业大学 A kind of Stock Price Forecasting method based on deep learning
CN108305167A (en) * 2018-01-12 2018-07-20 华南理工大学 A kind of foreign currency trade method and system enhancing learning algorithm based on depth
CN108694480A (en) * 2018-07-13 2018-10-23 西南石油大学 Finance data prediction technique based on improved length memory network in short-term
AU2018101512A4 (en) * 2018-10-11 2018-11-15 Dong, Xun Miss A comprehensive stock trend predicting method based on neural networks
CN109190834A (en) * 2018-09-12 2019-01-11 百色学院 Stock price trend prediction method and system neural network based
CN109360097A (en) * 2018-09-28 2019-02-19 中山大学 Prediction of Stock Index method, apparatus, equipment and storage medium based on deep learning
CN109711461A (en) * 2018-12-25 2019-05-03 中国人民解放军战略支援部队航天工程大学 Transfer learning picture classification method and its device based on principal component analysis
CN109816140A (en) * 2018-12-12 2019-05-28 哈尔滨工业大学(深圳) Forecasting of Stock Prices method, apparatus, equipment and the storage medium influenced based on cross-market
KR20190063978A (en) * 2017-11-30 2019-06-10 굿모니터링 주식회사 Automatic classification method of unstructured data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886846A (en) * 2017-04-26 2017-06-23 中南大学 A kind of bank outlets' excess reserve Forecasting Methodology that Recognition with Recurrent Neural Network is remembered based on shot and long term
CN110782096A (en) * 2019-10-29 2020-02-11 山东科技大学 Forex time series prediction method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160099010A1 (en) * 2014-10-03 2016-04-07 Google Inc. Convolutional, long short-term memory, fully connected deep neural networks
CN105787582A (en) * 2015-12-24 2016-07-20 清华大学 Stock risk prediction method and apparatus
CN107832897A (en) * 2017-11-30 2018-03-23 浙江工业大学 A kind of Stock Price Forecasting method based on deep learning
KR20190063978A (en) * 2017-11-30 2019-06-10 굿모니터링 주식회사 Automatic classification method of unstructured data
CN108305167A (en) * 2018-01-12 2018-07-20 华南理工大学 A kind of foreign currency trade method and system enhancing learning algorithm based on depth
CN108694480A (en) * 2018-07-13 2018-10-23 西南石油大学 Finance data prediction technique based on improved length memory network in short-term
CN109190834A (en) * 2018-09-12 2019-01-11 百色学院 Stock price trend prediction method and system neural network based
CN109360097A (en) * 2018-09-28 2019-02-19 中山大学 Prediction of Stock Index method, apparatus, equipment and storage medium based on deep learning
AU2018101512A4 (en) * 2018-10-11 2018-11-15 Dong, Xun Miss A comprehensive stock trend predicting method based on neural networks
CN109816140A (en) * 2018-12-12 2019-05-28 哈尔滨工业大学(深圳) Forecasting of Stock Prices method, apparatus, equipment and the storage medium influenced based on cross-market
CN109711461A (en) * 2018-12-25 2019-05-03 中国人民解放军战略支援部队航天工程大学 Transfer learning picture classification method and its device based on principal component analysis

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021082811A1 (en) * 2019-10-29 2021-05-06 山东科技大学 Foreign exchange time series prediction method
WO2021082810A1 (en) * 2019-10-29 2021-05-06 山东科技大学 Construction method for foreign exchange time series prediction
WO2021082809A1 (en) * 2019-10-29 2021-05-06 山东科技大学 Training optimization method for foreign exchange time series prediction
CN111415050A (en) * 2020-04-27 2020-07-14 新智数字科技有限公司 Short-term load prediction method and short-term load prediction model training method and device
CN111415050B (en) * 2020-04-27 2023-12-05 新奥新智科技有限公司 Short-term load prediction method, short-term load prediction model training method and device
CN111639823A (en) * 2020-06-10 2020-09-08 天津大学 Building cold and heat load prediction method constructed based on feature set
CN111639823B (en) * 2020-06-10 2022-09-23 天津大学 Building cold and heat load prediction method constructed based on feature set
CN112116381A (en) * 2020-08-31 2020-12-22 北京基调网络股份有限公司 Moon life prediction method based on LSTM neural network, storage medium and computer equipment
CN112598526A (en) * 2021-03-04 2021-04-02 蚂蚁智信(杭州)信息技术有限公司 Asset data processing method and device
CN116777506A (en) * 2023-05-16 2023-09-19 济南明泉数字商务有限公司 Bulk product transaction decision-making method and system based on generation type AI service
CN116805514A (en) * 2023-08-25 2023-09-26 鲁东大学 DNA sequence function prediction method based on deep learning
CN116805514B (en) * 2023-08-25 2023-11-21 鲁东大学 DNA sequence function prediction method based on deep learning

Also Published As

Publication number Publication date
WO2021082811A1 (en) 2021-05-06

Similar Documents

Publication Publication Date Title
CN110782096A (en) Forex time series prediction method
CN110751562A (en) Training optimization method for foreigner time sequence prediction
Li et al. Risk prediction in financial management of listed companies based on optimized BP neural network under digital economy
CN110796306A (en) Construction method for forex time series prediction
Qin et al. XGBoost optimized by adaptive particle swarm optimization for credit scoring
Thakkar et al. CREST: cross-reference to exchange-based stock trend prediction using long short-term memory
Liu et al. Bitcoin transaction strategy construction based on deep reinforcement learning
Li et al. Heterogeneous ensemble learning with feature engineering for default prediction in peer-to-peer lending in China
Yang et al. Improved and optimized recurrent neural network based on PSO and its application in stock price prediction
Zhang et al. A novel Bitcoin and gold prices prediction method using an LSTM-P neural network model
Metlek FORECASTING OF DOW JONES SUKUK INDEX PRICES USING ARTIFICIAL INTELLIGENCE SYSTEMS.
Rabbi et al. Foreign currency exchange rate prediction using long short-term memory, support vector regression and random forest regression
Sermpinis et al. Adaptive evolutionary neural networks for forecasting and trading without a data‐snooping Bias
Alfiyatin et al. Extreme learning machine and particle swarm optimization for inflation forecasting
Sriman et al. Price Prediction of Bitcoin and Ethereum-A Machine Learning Approach
Kumar et al. Two-phase hybridisation using deep learning and evolutionary algorithms for stock market forecasting
Sharma et al. Intelligent portfolio asset prediction enabled by hybrid Jaya-based spotted hyena optimization algorithm
Siregar et al. Classification data for direct marketing using deep learning
Samarawickrama et al. Multi-step-ahead prediction of exchange rates using artificial neural networks: a study on selected sri lankan foreign exchange rates
Goyal Financial Time Series Stock Price Prediction using Deep Learning
Sun et al. A Portfolio Trading System of Digital Currencies
Gupta et al. AO-SAKEL: arithmetic optimization-based self-adaptive kernel extreme learning for international trade prediction
Petchhan et al. Toward Project Success Forecasting in Reward-based Crowdfunding through Wide-and-Deep Computational Learning
Kochliaridis et al. UNSURE-A machine learning approach to cryptocurrency trading
Horemuz Application of Machine Learning to Financial Trading

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211

RJ01 Rejection of invention patent application after publication