A transaction data trend prediction method and system based on deep learning

Through the CNN-LSTM hybrid model in deep learning, it solves the nonlinear relationship modeling problem of traditional statistical learning prediction methods when processing massive transaction monitoring data, achieves accurate prediction of transaction data trends, and improves prediction efficiency and accuracy. .

CN113807951BActive Publication Date: 2024-10-15CHINA CONSTRUCTION BANK
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202111116946.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-23
Publication Date
2024-10-15
Estimated Expiration
2041-09-23

AI Technical Summary

Technical Problem

The existing technology is difficult to make effective predictions when processing massive amounts of transaction monitoring data, especially in the case of sudden increases or decreases. Traditional statistical learning prediction methods cannot model nonlinear relationships and are suitable for scenarios where the fluctuation range of experimental data is small.

Method used

Using a hybrid model of convolutional neural network (CNN) and long short-term memory network (LSTM) based on deep learning, through one-dimensional convolution layer, pooling layer, LSTM layer, data normalization layer and fully connected layer, univariate and multi-variable Variable prediction, study the interaction between multiple factors, and improve prediction accuracy and efficiency.

Benefits of technology

It improves the accuracy and efficiency of transaction data trend prediction, can better process high-dimensional input information, is suitable for complex scenarios with massive transaction monitoring data, and improves the model's generalization ability and the accuracy of prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113807951B_ABST
    Figure CN113807951B_ABST
Patent Text Reader

Abstract

The present application provides a transaction data trend prediction method and system based on deep learning, the method comprising: collecting transaction monitoring data of banking business; performing data cleaning and data repair on the transaction monitoring data; inputting the data after data cleaning and data repair into a trend prediction model, performing single variable prediction and multivariate prediction respectively, and obtaining prediction results; wherein the trend prediction model is a convolutional neural network CNN-long short-term memory network LSTM hybrid model, the CNN-LSTM hybrid model sequentially sets a one-dimensional convolution layer, a pooling layer, a one-dimensional convolution layer, an LSTM layer, a data normalization layer, an LSTM layer, a data normalization layer, and finally accesses a fully connected layer; thereby performing single variable prediction and multivariate prediction, focusing on studying the interaction effect between multi-factor features, better predicting data change trends, and improving the prediction accuracy and efficiency of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of deep learning technology, and more specifically, particularly relates to a transaction data trend prediction method and system based on deep learning. Background Art

[0002] In recent years, banking business has continued to develop, and technologies such as data mining and artificial intelligence have been closely integrated with banking operations and maintenance. The collection, storage, monitoring and visualization of massive transaction logs have been continuously promoted, making the "real-time monitoring, manual intervention" model shift to the "advance prediction, intelligent operation and maintenance" model. The transaction monitoring data involved in banking business has typical time series characteristics. Trend prediction of transaction data can predict risks in advance and improve the warning capabilities of abnormal events in daily operations and maintenance.

[0003] In the prior art, time series prediction is a regression prediction method that recognizes the continuity of the development of things, processes the data appropriately, uses past historical time series data for statistical analysis, and makes trend predictions. Today, commonly used time series predictions are mainly based on in-depth research in the two directions of statistical learning and deep learning. The optimization direction mainly includes two dimensions: optimizing the time series algorithm and optimizing the prediction model network structure.

[0004] The traditional statistical learning prediction method is the difference autoregressive moving average model, which can be used for non-stationary time series through differentiation. Its essence is to transform non-stationary time series into stationary time series, and then regress the dependent variable only on its lagged value and the present value and lagged value of the random error term to establish a model. However, with the continuous improvement of deep learning algorithms, the accuracy and efficiency of prediction models are increasing.

[0005] However, this traditional statistical learning prediction method is suitable for experimental data with a small fluctuation range, and focuses more on single variable data with linear relationships, and it is difficult to model nonlinear relationships between variables. Therefore, for prediction scenarios of massive transaction monitoring data with sudden increases or decreases, this statistical learning prediction method cannot make predictions. Summary of the invention

[0006] In view of this, the purpose of this application is to provide a transaction data trend prediction method and system based on deep learning, which is used to better predict data change trends and improve the prediction accuracy and efficiency of the model.

[0007] The first aspect of the present application discloses a transaction data trend prediction method based on deep learning, comprising:

[0008] Collect transaction monitoring data for banking business;

[0009] Performing data cleaning and data repair on the transaction monitoring data;

[0010] The data after data cleaning and data repair are input into the trend prediction model, and single variable prediction and multivariate prediction are performed respectively to obtain the prediction results; wherein, the trend prediction model is a convolutional neural network CNN-long short-term memory network LSTM hybrid model, and the CNN-LSTM hybrid model sequentially sets a one-dimensional convolution layer, a pooling layer, a one-dimensional convolution layer, an LSTM layer, a data normalization layer, an LSTM layer, a data normalization layer, and finally accesses a fully connected layer.

[0011] Optionally, the collecting of transaction monitoring data of banking services includes:

[0012] From the structured transaction flow log of the production environment in the banking business, the data source of the distributed open source search and analysis engine is automatically collected and stored according to the required specified fields; wherein the data source includes transaction monitoring data.

[0013] Optionally, the transaction monitoring data includes: at least one of transaction volume, business success rate, system success rate, average response time, average processing time, business successful transaction volume and system successful transaction volume.

[0014] Optionally, data cleaning and data repair are performed on the transaction monitoring data, including:

[0015] The acquired data is converted into a format suitable for model training, and then deduplication, time series rearrangement, and reindexing are performed;

[0016] Missing values ​​were replaced using the imputation method;

[0017] Then the data after missing value replacement are screened for time periods.

[0018] Optionally, the univariate prediction is performed on the univariate time series data with the transaction volume in the transaction monitoring data as the core;

[0019] Based on the single variable prediction, the multivariate prediction adds at least one multivariate data of CPU usage, average response time, and average processing time in the transaction monitoring data to the CNN-LSTM hybrid model for joint training, studies the mutual influence of multiple factors, and finally predicts the trend change of transaction volume in the future. Optionally, the construction process of the trend prediction model includes:

[0020] Collect and display historical data of banking business; the historical data includes: historical transaction monitoring data;

[0021] Preprocessing the historical data, the preprocessing including: data cleaning and data repair;

[0022] The preprocessed historical data is divided into three sets: training set, validation set, and test set;

[0023] The training set is used as the data sample fitted by the CNN-LSTM hybrid model for training. After each iteration, the loss value of the CNN-LSTM hybrid model is verified by the verification set. The generalization ability of the CNN-LSTM hybrid model is continuously verified by gradually adjusting the model parameters, and the mean absolute error and the mean square error are used to determine whether the training result of the model meets the standard. Finally, the prediction results of the CNN-LSTM hybrid model are compared and verified with the help of the test set.

[0024] When the prediction result comparison verification result meets the preset conditions, the CNN-LSTM hybrid model is used as the trend prediction model.

[0025] Optionally, before using the CNN-LSTM hybrid model as the trend prediction model, the method further includes:

[0026] The CNN-LSTM hybrid model after the training is encapsulated.

[0027] Optionally, also include:

[0028] The prediction results and / or the transaction monitoring data are displayed visually.

[0029] The second aspect of the present application discloses a transaction data trend prediction system based on deep learning, comprising:

[0030] Data collection module, used to collect transaction monitoring data of banking business;

[0031] A data preprocessing module, used for cleaning and repairing the transaction monitoring data;

[0032] The prediction module is used to input the data after data cleaning and data repair into the trend prediction model, perform single variable prediction and multivariate prediction respectively, and obtain the prediction results; wherein, the trend prediction model is a convolutional neural network CNN-long short-term memory network LSTM hybrid model, and the CNN-LSTM hybrid model sequentially sets a one-dimensional convolution layer, a pooling layer, a one-dimensional convolution layer, an LSTM layer, a data normalization layer, an LSTM layer, a data normalization layer, and finally accesses a fully connected layer.

[0033] Optionally, it also includes a construction module of the trend prediction model; the construction module includes:

[0034] The data collection module is used to collect and display the historical data of banking business; the historical data includes: historical transaction monitoring data;

[0035] A data preprocessing module, used for preprocessing the historical data, wherein the preprocessing includes: data cleaning and data repair;

[0036] A construction unit is provided to divide the preprocessed historical data into three sets, namely, a training set, a validation set, and a test set; the training set is used as a data sample for fitting the CNN-LSTM hybrid model for training, and the loss value of the CNN-LSTM hybrid model is verified through the validation set after each iteration; the generalization ability of the CNN-LSTM hybrid model is continuously verified by gradually adjusting the model parameters, and whether the training result of the model meets the standard is judged by the mean absolute error and the mean square error; finally, the prediction result of the CNN-LSTM hybrid model is compared and verified with the help of the test set; when the comparison and verification result of the prediction result meets the preset conditions, the CNN-LSTM hybrid model is used as the trend prediction model.

[0037] From the above technical solution, it can be seen that the present application provides a transaction data trend prediction method based on deep learning, including: collecting transaction monitoring data of banking business; performing data cleaning and data repair on the transaction monitoring data; inputting the data after data cleaning and data repair into the trend prediction model, performing single variable prediction and multi-variable prediction respectively, and obtaining prediction results; wherein, the trend prediction model is a convolutional neural network CNN-long short-term memory network LSTM hybrid model, and the CNN-LSTM hybrid model sequentially sets a one-dimensional convolution layer, a pooling layer, a one-dimensional convolution layer, an LSTM layer, a data normalization layer, an LSTM layer, a data normalization layer, and finally connects to a fully connected layer; thereby performing single variable prediction and multi-variable prediction, focusing on studying the interaction between multi-factor features, better predicting data change trends, and improving the prediction accuracy and efficiency of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0039] Figure 1 It is a flowchart of a transaction data trend prediction method based on deep learning provided in an embodiment of the present application;

[0040] Figure 2 is a flowchart of another transaction data trend prediction method based on deep learning provided in an embodiment of the present application;

[0041] Figure 3It is a structural diagram of a CNN network unit provided in an embodiment of the present application;

[0042] Figure 4 It is a structural diagram of an LSTM network unit provided in an embodiment of the present application;

[0043] Figure 5 It is a flowchart of a process of constructing a trend prediction model in a transaction data trend prediction method based on deep learning provided in an embodiment of the present application;

[0044] Figure 6 It is a structural diagram of a CNN-LSTM hybrid model provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0046] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0047] An embodiment of the present application provides a transaction data trend prediction method based on deep learning, which is used to solve the problem in the prior art that the statistical learning prediction method cannot make predictions for prediction scenarios with massive transaction monitoring data that experience sudden increases or decreases.

[0048] See also Figure 1 , the transaction data trend prediction method based on deep learning includes:

[0049] S101. Collect transaction monitoring data of banking business.

[0050] Specifically, the transaction monitoring data includes at least one of: transaction volume, business success rate, system success rate, average response time, average processing time, business successful transaction volume and system successful transaction volume.

[0051] Of course, operation data may also be collected, such as CPU usage; these are not described in detail here, and are all within the protection scope of this application.

[0052] S102: Clean and repair transaction monitoring data.

[0053] That is to say, step S102 is mainly for realizing data preprocessing; the data preprocessing includes two parts: data cleaning and data repair.

[0054] S103, input the cleaned and repaired data into the trend prediction model, perform single variable prediction and multivariate prediction respectively, and obtain prediction results.

[0055] Among them, the trend prediction model is a convolutional neural network CNN-long short-term memory network LSTM hybrid model, such as Figure 6 As shown in the figure, the CNN-LSTM hybrid model sequentially sets up a one-dimensional convolution layer, a pooling layer, a one-dimensional convolution layer, an LSTM layer, a data normalization layer, an LSTM layer, a data normalization layer, and finally connects to a fully connected layer. A data normalization layer can also be set between the pooling layer and the second convolution layer.

[0056] The univariate prediction is based on the single-factor time series data with transaction volume as the core. The multivariate prediction adds at least one multivariate data of CPU usage, average response time, and average processing time to the CNN-LSTM hybrid model for joint training, studies the mutual influence of multiple factors, and finally predicts the trend change of transaction volume in the future. The prediction is more accurate.

[0057] In this embodiment, single variable prediction and multivariate prediction are performed, focusing on studying the interaction between multi-factor features, better predicting data change trends, and improving the prediction accuracy and efficiency of the model.

[0058] In addition, compared with traditional statistical learning algorithms, a CNN and LSTM hybrid model in the field of deep learning is used to perform trend prediction with trading volume as the core; it strives to solve its limitations in terms of data volume and volatility. At the same time, based on the deep learning algorithm LSTM, a CNN layer is added to capture local features, and the network structure is continuously optimized to further improve the accuracy and efficiency of the prediction model. It covers both single-variable and multi-variable dimensions, explores the complex time correlation between different feature indicator variables, and supports the processing of high-dimensional input information.

[0059] In addition, in practical applications, it can also include:

[0060] Visualize forecast results and / or transaction monitoring data.

[0061] Specifically, after step S103, the prediction results are visualized and displayed. And, after step S101, the transaction monitoring data are visualized and displayed.

[0062] It should be noted that after the transaction monitoring data is collected in step S101, the transaction monitoring data may be integrated and then the integrated transaction monitoring data may be visualized.

[0063] In actual application, the specific process of the above step S101, collecting transaction monitoring data of banking business, is as follows:

[0064] From the structured transaction flow logs in the production environment of banking business, the data sources of the distributed open source search and analysis engine are automatically collected and stored according to the required specified fields; then they are visualized with the help of visualization platform tools.

[0065] Among them, the distributed open source search and analysis engine can be ES (Elastcisearch, a distributed open source search and analysis engine); of course, it is not limited to this type, and will not be described one by one here, all of which are within the scope of protection of this application.

[0066] It should be noted that the monitoring logs on each server in the production environment will obtain transaction and operation log information, push it to ES for storage, and use visualization tools for multi-dimensional screening and display.

[0067] The visualization platform tool may be Kibana, which is a visualization platform tool that works with Elasticsearch. Of course, it is not limited to this type, and will not be described here one by one, and all are within the scope of protection of this application.

[0068] In practical applications, see Figure 2 The above step S102, cleaning and repairing the transaction monitoring data, includes:

[0069] S201, converting the acquired data into a format suitable for model training, and then removing duplicates, re-arranging the time series, and resetting the index.

[0070] It should be noted that the de-duplication program may be Drop_duplicates; the re-indexing program may be Reset_index; of course, it is not limited to this type, and will not be described one by one here, and all are within the protection scope of this application.

[0071] S202. Use the filling method to replace missing values.

[0072] The filling method may adopt Median and Fillna functions; specifically, the Fillna is used for the filling function, and the parameter method inside the Fillna function is filled by Median, that is, median filling is implemented.

[0073] S203, performing time period screening on the data after the missing values ​​are replaced.

[0074] Specifically, the time period screening method may be a Loc method, that is, indexing data by tags.

[0075] It should be noted that multivariate data fusion is also required for multivariate prediction, which can be processed by the merge method and the inner method based on time.

[0076] The process of constructing trend prediction models, such as Figure 5 As shown, including:

[0077] (1) Collect and display historical data of banking business.

[0078] Among them, historical data includes: historical transaction monitoring data.

[0079] (2) Preprocess the historical data, including data cleaning and data repair.

[0080] It should be noted that (1) and (2) correspond one-to-one to the above-mentioned steps S101 and S102 respectively; the specific processes of (1) and (2) refer to the above-mentioned steps S101 and S102, which will not be described one by one here, and all are within the protection scope of this application.

[0081] The data processing can also include multivariate data fusion and time series to supervised learning

[0082] (3) The preprocessed historical data is divided into three sets: training set, validation set, and test set.

[0083] (4) The training set is used as the data sample for fitting the CNN-LSTM hybrid model. After each iteration, the loss value of the CNN-LSTM hybrid model is verified through the validation set. The generalization ability of the CNN-LSTM hybrid model is continuously verified by gradually adjusting the model parameters. The mean absolute error and mean square error are used to determine whether the training results of the model meet the standards. Finally, the prediction results of the CNN-LSTM hybrid model are compared and verified with the help of the test set.

[0084] The training set is used as a data sample for training, including: resetting steps, updating memory, and updating hidden layers, etc. Among them, 1 epoch is equal to using all samples in the training set for training once.

[0085] (5) When the prediction results are compared and the verification results meet the preset conditions, the CNN-LSTM hybrid model is used as the trend prediction model.

[0086] Among them, the time limit of the overall historical data can be within one year, of course, it can also be other times, which will not be repeated here one by one, and are all within the protection scope of this application.

[0087] The data ratio of the training set, validation set, and test set is divided according to a ratio of 8:1:1. Of course, other ratios are also possible, which are not specifically limited here and can be determined according to the actual situation, and are all within the protection scope of this application.

[0088] It should be noted that the structure of the CNN-LSTM hybrid model, such as Figure 6 As shown in the figure, the structure of the CNN part is a layer of convolution and a layer of pooling operation. The convolution layer captures the local features of the sequence, and the pooling layer reduces the dimension of the features and compresses the parameters. The activation function uses ReLU (Rectified Linear Unit), followed by two layers of LSTM networks, and two layers of Normalization operations. Finally, it is connected to the fully connected layer and trained using the fit_generator generator function method. When predicting, the model.predict_generator method is used accordingly.

[0089] The CNN-LSTM hybrid model includes: two one-dimensional convolutional layers, one pooling layer, and two LSTM layers, where the two LSTM layers are separated by two data normalization layers, and finally connected to a fully connected layer.

[0090] For example, the fit_generator method is used for training, the monitor is determined as val_loss, the predict_generator method is used for prediction, and the regularization method Dropout is used to adjust to prevent overfitting during training. After adjusting the model parameters, the optimization algorithm in the experiment uses Adam, the convolution layer uses the ReLU function, the epochs is 70, and the batch_size is 256.

[0091] The prediction model can be evaluated using two indicators: MAE (Mean Absolute Error) and MSE (Mean Square Error).

[0092] During model training, the sequence y={y 1 ,y 2 ,y 3 ,…y n} is the real value of the transaction volume, the sequence is the predicted value, the specific calculation methods of the two standards are as follows:

[0093] (1) Mean absolute error (MAE).

[0094] It is the average of the absolute errors, also known as L1 loss, which can accurately reflect the actual prediction error value. At the same time, it is a linear score. All individual differences have equal weights on the average. The smaller the MAE, the higher the prediction accuracy. The calculation process is shown in the following formula (1-1).

[0095]

[0096] (2) Mean square error (MSE).

[0097] The mean square error refers to the expected value of the square of the difference between the parameter estimate and the true value of the parameter. It can evaluate the degree of change in the data. The smaller the MSE value, the higher the accuracy of the prediction model. MSE is also called L2 loss. The calculation process is shown in the following formula (1-2).

[0098]

[0099] The construction of the CNN-LSTM hybrid model can, on the one hand, capture local features through the convolutional layer and improve the accuracy and precision of the single LSTM network model; on the other hand, the LSTM algorithm, as a special recurrent neural network (RNN), also overcomes the gradient explosion and gradient vanishing problems of traditional RNN. At the same time, compared with the existing statistical learning prediction method, the CNN-LSTM hybrid model proposed in this application is also more suitable for modeling multivariate prediction scenarios.

[0100] In this embodiment, a hybrid neural network model of LSTM and CNN is constructed, in which CNN mainly adopts a one-dimensional convolutional network structure to capture the local features of the time series. After learning the correlation of local features, the results are used as the input of LSTM for prediction. Compared with the traditional statistical learning prediction method or a single deep learning algorithm model, it can better improve the efficiency and accuracy of model prediction.

[0101] The structure of CNN network unit is as follows Figure 3 As shown, X i1 -X iL Both represent the input sequence data, K 1 -K i , and K l The lowercase L in the subscript indicates the convolution kernel, m 1 -m 1e All are feature layers, p 1 -p f Both are pooling layers, v1 -v g They all represent feature vectors.

[0102] The structure of the LSTM network unit is as follows Figure 4 As shown, where:

[0103] The LSTM unit introduces three “gate” mechanisms, namely the forget gate, input gate, and output gate, denoted by f <t> 、i <t>and <t>At the same time, the concept of memory unit is introduced, which together with the three gates constitutes a memory cell block structure. The memory unit is also called the cell state, which is the core of the network structure. It controls the forgetting, updating and transmission of information through the interaction with the three gates.

[0104] Among them, the forget gate determines the cell state C from the previous moment <t-1> The cell state C at time t <t> Which part of the information needs to be added or removed? <t-1> is the output of the hidden layer at the previous time t-1, x <t> The input sequence at this moment passes through a sigmoid operation layer to obtain a probability vector between 0 and 1. 0 means that no amount is allowed to pass, and 1 means that any amount is allowed to pass. For the specific calculation method, please refer to formula (2-1) and formula (2-2).

[0105] f <t> =sigmoild(w f [a <t-1> ,x <t> ]+b f ) formula (2-1);

[0106]

[0107] The input gate consists of two stages. The first stage selects the information that needs to be put into the cell state, and the sigmoid operation layer determines the amount that needs to be updated, that is, i <t> ; The second is to get a new vector after tanh operation The above two steps are to prepare for the subsequent update operation. <t-1> C <t> , and the old state and f <t> Multiply, remove useless information, and then add The update is completed. The calculation method refers to formula (2-3) to formula (2-6).

[0108] i <t> =sigmoild(w i [a <t-1> ,x <t> ]+b i ) formula (2-3);

[0109]

[0110]

[0111]

[0112] The function of the output gate is to update the cell state according to the input a <t-1> and the sequence x <t> To determine which state characteristics of the output cell, a sigmoid operation layer is used to obtain o <t> , and then processed by the tanh function C <t> And with o <t> The hidden layer output at the current moment is obtained by multiplying them. The calculation method is shown in formula (7) and formula (8).

[0113] o <t> =sigmoild(w o [a <t-1> ,x <t> ]+b o ) formula (2-7);

[0114] a <t> =o <t> *tanh(C <t> ) formula (2-8);

[0115] The fusion neural network model of CNN and LSTM has many advantages. Convolution and pooling improve the efficiency of local feature extraction. LSTM is used to solve the long-term dependency problem and the gradient vanishing problem that is prone to occur in the traditional RNN structure.

[0116] In this embodiment, a complete closed-loop process is constructed from data collection and preprocessing to model training, evaluation and visualization to conduct trend prediction with transaction volume data as the core, aiming to predict risks in advance, improve the warning capability of abnormal events in daily operation and maintenance, and move towards intelligent operation and maintenance.

[0117] In practical applications, before using the CNN-LSTM hybrid model as a trend prediction model, it also includes:

[0118] Encapsulate the trained CNN-LSTM hybrid model.

[0119] After the model training is completed, it will be packaged for prediction and call; the prediction results will also be visualized. Ultimately, the trend prediction of transaction data can be achieved, risks can be predicted in advance, and the warning capability of abnormal events in daily operation and maintenance can be improved.

[0120] In this embodiment, for banking business and targeting massive transaction monitoring data, an overall technical solution route from data collection to model training encapsulation and visualization display is proposed.

[0121] Another embodiment of the present application provides a transaction data trend prediction system based on deep learning.

[0122] The deep learning-based transaction data trend prediction system includes:

[0123] The data collection module is used to collect transaction monitoring data of banking business.

[0124] The data preprocessing module is used to clean and repair transaction monitoring data.

[0125] The prediction module is used to input the data after data cleaning and data repair into the trend prediction model, perform single variable prediction and multivariate prediction respectively, and obtain the prediction results; wherein, the trend prediction model is a convolutional neural network CNN-long short-term memory network LSTM hybrid model, and the CNN-LSTM hybrid model sequentially sets a one-dimensional convolution layer, a pooling layer, a one-dimensional convolution layer, an LSTM layer, a data normalization layer, an LSTM layer, a data normalization layer, and finally connects to a fully connected layer.

[0126] In practical applications, the deep learning-based transaction data trend prediction system may also include a trend prediction model building module.

[0127] The building blocks include:

[0128] The data collection module is used to collect and display the historical data of banking business; the historical data includes: historical transaction monitoring data.

[0129] The data preprocessing module is used to preprocess historical data, including data cleaning and data repair.

[0130] The construction unit divides the preprocessed historical data into three sets, namely training set, validation set and test set; the training set is used as the data sample for fitting the CNN-LSTM hybrid model for training, and the loss value of the CNN-LSTM hybrid model is verified by the validation set after each iteration; the generalization ability of the CNN-LSTM hybrid model is continuously verified by gradually adjusting the model parameters, and the mean absolute error and mean square error are used to determine whether the training results of the model meet the standards; finally, the prediction results of the CNN-LSTM hybrid model are compared and verified with the help of the test set; when the prediction result comparison and verification results meet the preset conditions, the CNN-LSTM hybrid model is used as a trend prediction model.

[0131] The working process and principle of each of the above modules and units are detailed in the above embodiments and will not be described in detail here. They are all within the protection scope of this application.

[0132] The features recorded in the various embodiments in this specification can be replaced or combined with each other, and the same and similar parts between the various embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0133] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0134] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.< / t> < / t> < / t>

Claims

1. A transaction data trend prediction method based on deep learning, characterized in that: Applied to banking servers, including: Collecting transaction monitoring data of banking business; the transaction monitoring data includes: at least one of transaction volume, business success rate, system success rate, average response time, average processing time, business successful transaction volume and system successful transaction volume; Cleaning and repairing the transaction monitoring data include: converting the acquired data into a format suitable for model training, followed by deduplication, time series rearrangement, and index resetting; replacing missing values ​​using a filling method; and then filtering the data after the missing values ​​have been replaced for a certain period of time; The data after data cleaning and data repair are input into the trend prediction model, and single variable prediction and multivariate prediction are performed respectively to obtain prediction results; wherein, the trend prediction model is a convolutional neural network CNN-long short-term memory network LSTM hybrid model, and the CNN-LSTM hybrid model sequentially sets a one-dimensional convolution layer, a pooling layer, a one-dimensional convolution layer, an LSTM layer, a data normalization layer, an LSTM layer, a data normalization layer, and finally accesses a fully connected layer; the single variable prediction predicts the single factor time series data with the transaction volume in the transaction monitoring data as the core; the multivariate prediction adds at least one multivariate data of the CPU usage rate, the average response time, and the average processing time in the transaction monitoring data to the CNN-LSTM hybrid model for joint training on the basis of the single variable prediction, studies the mutual influence between multiple factors, and finally predicts the trend change of the transaction volume in the future period; The prediction results and / or the transaction monitoring data are displayed visually.

2. The transaction data trend prediction method based on deep learning according to claim 1 is characterized in that: The transaction monitoring data of the banking business is collected, including: From the structured transaction flow log of the production environment in the banking business, the data source of the distributed open source search and analysis engine is automatically collected and stored according to the required specified fields; wherein the data source includes transaction monitoring data.

3. The transaction data trend prediction method based on deep learning according to claim 1, characterized in that: The process of constructing the trend prediction model includes: Collect and display historical data of banking business; the historical data includes: historical transaction monitoring data; Preprocessing the historical data, the preprocessing including: data cleaning and data repair; The preprocessed historical data is divided into three sets: training set, validation set, and test set; The training set is used as the data sample fitted by the CNN-LSTM hybrid model for training. After each iteration, the loss value of the CNN-LSTM hybrid model is verified by the verification set. The generalization ability of the CNN-LSTM hybrid model is continuously verified by gradually adjusting the model parameters, and the mean absolute error and the mean square error are used to determine whether the training result of the model meets the standard. Finally, the prediction results of the CNN-LSTM hybrid model are compared and verified with the help of the test set. When the prediction result comparison verification result meets the preset conditions, the CNN-LSTM hybrid model is used as the trend prediction model.

4. The transaction data trend prediction method based on deep learning according to claim 3 is characterized in that: Before using the CNN-LSTM hybrid model as the trend prediction model, the method further includes: The trained CNN-LSTM hybrid model is encapsulated.

5. A transaction data trend prediction system based on deep learning, characterized in that: Applied to banking servers, including: A data collection module, used to collect transaction monitoring data of banking business; the transaction monitoring data includes: at least one of transaction volume, business success rate, system success rate, average response time, average processing time, business successful transaction volume and system successful transaction volume; The data preprocessing module is used to clean and repair the transaction monitoring data, including: converting the acquired data into a format suitable for model training, and then removing duplicates, reordering the time series, and resetting the index; using the filling method to replace missing values; and then filtering the time period of the data after the missing value replacement; The prediction module is used to input the data after data cleaning and data repair into the trend prediction model, and perform single variable prediction and multivariate prediction respectively to obtain prediction results; wherein, the trend prediction model is a convolutional neural network CNN-long short-term memory network LSTM hybrid model, and the CNN-LSTM hybrid model sequentially sets a one-dimensional convolution layer, a pooling layer, a one-dimensional convolution layer, an LSTM layer, a data normalization layer, an LSTM layer, a data normalization layer, and finally accesses a fully connected layer; the single variable prediction predicts the single factor time series data with the transaction volume in the transaction monitoring data as the core; the multivariate prediction adds at least one multivariate data of CPU usage rate, average response time, and average processing time in the transaction monitoring data to the CNN-LSTM hybrid model for joint training on the basis of the single variable prediction, studies the mutual influence between multiple factors, and finally predicts the trend change of transaction volume in the future period; the prediction results and / or the transaction monitoring data are visualized.

6. The transaction data trend prediction system based on deep learning according to claim 5, characterized in that: Also included are building blocks for the trend prediction model; The building blocks include: The data collection module is used to collect and display the historical data of banking business; the historical data includes: historical transaction monitoring data; A data preprocessing module, used for preprocessing the historical data, wherein the preprocessing includes: data cleaning and data repair; A construction unit is provided to divide the preprocessed historical data into three sets, namely, a training set, a validation set, and a test set; the training set is used as a data sample for fitting the CNN-LSTM hybrid model for training, and the loss value of the CNN-LSTM hybrid model is verified through the validation set after each iteration; the generalization ability of the CNN-LSTM hybrid model is continuously verified by gradually adjusting the model parameters, and whether the training result of the model meets the standard is judged by the mean absolute error and the mean square error; finally, the prediction result of the CNN-LSTM hybrid model is compared and verified with the help of the test set; when the comparison and verification result of the prediction result meets the preset conditions, the CNN-LSTM hybrid model is used as the trend prediction model.

Citation Information

Cited By

  • Modelling and forecasting of joint price-volume distributions of intraday continuous power markets

    EP4826628A1