Palmtop bank network flow prediction method and related device
By acquiring and preprocessing network traffic data, and using long and short-term memory network models for feature processing and model adjustment, the accuracy problem of mobile banking network traffic prediction is solved, accurate prediction of future traffic is achieved, and system resource scheduling and user management are improved. experience.
Patent Information
- Application Number
- CN202410738077.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-30
AI Technical Summary
The existing technology lacks a method that can accurately predict the network traffic of mobile banking, leading to problems such as network delays and system crashes, affecting user experience.
By obtaining and preprocessing sample network traffic data, the initial prediction model is used to determine the pending network traffic data, and the model parameters are adjusted based on the difference between the pending data and the label data, and a prediction model is constructed to predict future network traffic. This method uses long short-term memory network or bidirectional long short-term memory network model to perform feature processing and model adjustment to improve prediction accuracy.
It achieves accurate prediction of network traffic in future periods, helps the system perform reasonable resource scheduling, improves user experience and avoids network delays and crashes.
Smart Images

Figure CN118573589A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method and related device for predicting network traffic of a mobile banking. Background Art
[0002] Mobile banking has become an important tool in people's daily lives, meeting people's needs for financial transactions anytime and anywhere. However, due to a large number of concurrent network transaction requests, network delays and system crashes may occur, affecting user experience. Therefore, it is particularly important to predict network traffic and reasonably schedule and manage system resources.
[0003] In the related art, there is a lack of a method that can accurately predict the network traffic of mobile banking, which leads to problems such as freezes and system crashes when using mobile banking, making it difficult to provide users with a good user experience. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a method for predicting the network traffic of mobile banking, which can accurately predict the network traffic of mobile banking in the future period.
[0005] The embodiments of the present application disclose the following technical solutions:
[0006] In a first aspect, an embodiment of the present application discloses a method for predicting network traffic of a mobile banking, the method comprising:
[0007] Acquire sample network traffic data, the sample network traffic data is network traffic data corresponding to the mobile bank in a first historical period, the sample network traffic data has corresponding label network traffic data, the label network traffic data is network traffic data corresponding to the mobile bank in a second historical period, and the second historical period is a period after the first historical period;
[0008] Determine the pending network traffic data corresponding to the second historical period according to the sample network traffic data through the initial prediction model;
[0009] According to the difference between the pending network traffic data and the labeled network traffic data, the model parameters corresponding to the initial prediction model are adjusted to obtain a prediction model, and the prediction model is used to predict the network traffic data corresponding to the second time period based on the network traffic data corresponding to the first time period, and the second time period is the time period after the first time period.
[0010] In a possible implementation, obtaining sample network traffic data includes:
[0011] Obtaining initial network traffic data corresponding to the first historical period;
[0012] The initial network traffic data is preprocessed to obtain the sample network traffic data.
[0013] In a possible implementation, the preprocessing includes any one or more combinations of missing value processing, outlier processing, data cleaning, and time series resampling.
[0014] In a possible implementation, determining the pending network traffic data corresponding to the second historical period according to the sample network traffic data using the initial prediction model includes:
[0015] Determining, by means of an initial prediction model, initial data features corresponding to the second historical period according to the sample network traffic data;
[0016] Performing feature processing on the initial data features to obtain data features corresponding to the second historical period;
[0017] Determine pending network traffic data corresponding to the second historical period based on the data characteristics.
[0018] In a possible implementation, the feature processing includes any one or more combinations of feature selection, feature combination, feature dimension reduction, and feature standardization;
[0019] The feature selection and the feature dimensionality reduction are used to reduce feature dimension and computational complexity;
[0020] The feature combination is used to combine and transform the initial data features to construct the data features;
[0021] The feature normalization is used to eliminate the differences between different feature scales.
[0022] In a possible implementation, the prediction model is any one of a long short-term memory network model and a bidirectional long short-term memory network model.
[0023] In a second aspect, an embodiment of the present application discloses a mobile banking network traffic prediction device, the device comprising an acquisition unit, a determination unit and an adjustment unit:
[0024] The acquisition unit is used to acquire sample network traffic data, the sample network traffic data is the network traffic data corresponding to the mobile bank in the first historical period, the sample network traffic data has corresponding label network traffic data, the label network traffic data is the network traffic data corresponding to the mobile bank in the second historical period, and the second historical period is a period after the first historical period;
[0025] The determining unit is used to determine the pending network traffic data corresponding to the second historical period according to the sample network traffic data through an initial prediction model;
[0026] The adjustment unit is used to adjust the model parameters corresponding to the initial prediction model according to the difference between the pending network traffic data and the labeled network traffic data to obtain a prediction model. The prediction model is used to predict the network traffic data corresponding to the second time period according to the network traffic data corresponding to the first time period, and the second time period is a time period after the first time period.
[0027] In a possible implementation manner, the acquiring unit is specifically configured to:
[0028] Obtaining initial network traffic data corresponding to the first historical period;
[0029] The initial network traffic data is preprocessed to obtain the sample network traffic data.
[0030] In a possible implementation, the preprocessing includes any one or more combinations of missing value processing, outlier processing, data cleaning, and time series resampling.
[0031] In a possible implementation manner, the determining unit is specifically configured to:
[0032] Determining, by means of an initial prediction model, initial data features corresponding to the second historical period according to the sample network traffic data;
[0033] Performing feature processing on the initial data features to obtain data features corresponding to the second historical period;
[0034] Determine pending network traffic data corresponding to the second historical period based on the data characteristics.
[0035] In a possible implementation, the feature processing includes any one or more combinations of feature selection, feature combination, feature dimension reduction, and feature standardization;
[0036] The feature selection and the feature dimensionality reduction are used to reduce feature dimension and computational complexity;
[0037] The feature combination is used to combine and transform the initial data features to construct the data features;
[0038] The feature normalization is used to eliminate the differences between different feature scales.
[0039] In a possible implementation, the prediction model is any one of a long short-term memory network model and a bidirectional long short-term memory network model.
[0040] In a third aspect, an embodiment of the present application discloses a computer device, wherein the computer device includes a processor and a memory:
[0041] The memory is used to store a computer program and transmit the computer program to the processor;
[0042] The processor is used to execute the mobile banking network traffic prediction method according to any one of the first aspects according to the instructions in the computer program;
[0043] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the mobile banking network traffic prediction method described in any one of the first aspects;
[0044] In a fifth aspect, an embodiment of the present application discloses a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the mobile banking network traffic prediction method described in any one of the first aspects.
[0045] It can be seen from the above technical solution that the present application provides a mobile banking network method, which can obtain sample network traffic data, the sample network traffic data is the network traffic data corresponding to the mobile banking in the first historical period, the sample network traffic data has corresponding label network traffic data, the label network traffic data is the network traffic data corresponding to the mobile banking in the second historical period, the second historical period is the period after the first historical period, through the initial prediction model, the pending network traffic data corresponding to the second historical period can be determined according to the sample network traffic data, because the label network traffic data is the actual network traffic data corresponding to the second historical period, so through the difference between the label network traffic data and the pending network traffic data, it is possible to characterize the accuracy of the pending prediction model for the network traffic data corresponding to the second historical period. Based on this, the model parameters corresponding to the initial prediction model can be adjusted according to the difference between the pending network traffic data and the label network traffic data to obtain a prediction model, which can be used to predict the network traffic data corresponding to the second period according to the network traffic data corresponding to the first period, and the second period is the period after the first period, thereby realizing accurate prediction of network traffic data for future periods. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] 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 only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A flowchart of a method for predicting network traffic of mobile banking provided in an embodiment of the present application;
[0048] Figure 2 A schematic diagram of a method for predicting network traffic of a mobile banking provided in an embodiment of the present application;
[0049] Figure 3 A schematic diagram of a method for predicting network traffic of a mobile banking provided in an embodiment of the present application;
[0050] Figure 4 A schematic diagram of a method for predicting network traffic of a mobile banking provided in an embodiment of the present application;
[0051] Figure 5 A schematic diagram of a method for predicting network traffic of a mobile banking provided in an embodiment of the present application;
[0052] Figure 6 A schematic diagram of a method for predicting network traffic of a mobile banking provided in an embodiment of the present application;
[0053] Figure 7 A schematic diagram of a method for predicting network traffic of a mobile banking provided in an embodiment of the present application;
[0054] Figure 8 A schematic diagram of a method for predicting network traffic of a mobile banking provided in an embodiment of the present application;
[0055] Fig. 9 A structural block diagram of a mobile banking network traffic prediction device provided in an embodiment of the present application;
[0056] Fig.10 A structural diagram of a terminal provided in an embodiment of the present application;
[0057] Fig.11 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0059] It is understandable that the method can be applied to a computer device, which is a computer device capable of performing mobile banking network traffic prediction, such as a terminal device or a server. The method can be executed independently by a terminal device or a server, and can also be applied to a network scenario in which a terminal device and a server communicate, and is executed by the cooperation of a terminal device and a server. Among them, the terminal device can be a mobile phone, a tablet computer, a laptop computer, a desktop computer and other devices. The terminal device can also include a variety of virtual reality devices, such as augmented reality (AR) devices, such as AR glasses, AR screens and other devices, and virtual reality technology (VR) devices, such as head-mounted VR glasses and other devices. The server can be understood as an application server, or a Web server. In actual deployment, the server can be an independent server, a cluster server, or a cloud server.
[0060] See also Figure 1 , Figure 1 A flowchart of a method for predicting network traffic of a mobile banking provided in an embodiment of the present application, the method comprising:
[0061] S101: Obtain sample network traffic data.
[0062] Among them, the sample network traffic data is the network traffic data corresponding to the mobile banking in the first historical period, the sample network traffic data has corresponding labeled network traffic data, the labeled network traffic data is the network traffic data corresponding to the mobile banking in the second historical period, the second historical period is the period after the first historical period, and the labeled network traffic data is the actual network traffic corresponding to the second historical period.
[0063] S102: Determine pending network traffic data corresponding to the second historical period through the initial prediction model and based on sample network traffic data.
[0064] The pending network traffic data is the network traffic data corresponding to the second historical period predicted by the initial prediction model.
[0065] S103: According to the difference between the pending network traffic data and the labeled network traffic data, the model parameters corresponding to the initial prediction model are adjusted to obtain the prediction model.
[0066] Since the labeled network traffic data is the actual network traffic corresponding to the second historical period, and the pending network traffic data is the network traffic predicted by the initial prediction model, the difference between the labeled network traffic and the pending network traffic data can characterize the accuracy of the initial prediction model in predicting network traffic. The larger the difference, the lower the accuracy of the pending prediction model in predicting network traffic for the second historical period. Based on this, the processing device can adjust the model parameters corresponding to the initial prediction model according to the difference between the pending network traffic data and the labeled network traffic data, so that the difference between the pending network traffic data and the labeled network traffic data gradually decreases, so that the initial prediction model can learn how to accurately predict the network traffic data for future periods and obtain a prediction model.
[0067] The prediction model is used to predict the network traffic data corresponding to the second time period based on the network traffic data corresponding to the first time period, and the second time period is a time period after the first time period.
[0068] It can be seen from the above technical solution that the present application provides a mobile banking network method, which can obtain sample network traffic data, the sample network traffic data is the network traffic data corresponding to the mobile banking in the first historical period, the sample network traffic data has corresponding label network traffic data, the label network traffic data is the network traffic data corresponding to the mobile banking in the second historical period, the second historical period is the period after the first historical period, through the initial prediction model, the pending network traffic data corresponding to the second historical period can be determined according to the sample network traffic data, because the label network traffic data is the actual network traffic data corresponding to the second historical period, so through the difference between the label network traffic data and the pending network traffic data, it is possible to characterize the accuracy of the pending prediction model for the network traffic data corresponding to the second historical period. Based on this, the model parameters corresponding to the initial prediction model can be adjusted according to the difference between the pending network traffic data and the label network traffic data to obtain a prediction model, which can be used to predict the network traffic data corresponding to the second period according to the network traffic data corresponding to the first period, and the second period is the period after the first period, thereby realizing accurate prediction of network traffic data for future periods.
[0069] In one possible implementation, when obtaining sample network traffic data, the processing device may first obtain the initial network traffic data corresponding to the first historical period, and then preprocess the initial network traffic data to obtain the sample network traffic data, so that the sample network traffic data can more accurately characterize the network traffic characteristics within a period of time.
[0070] The preprocessing may include any one or more combinations of missing value processing, outlier processing, data cleaning, and time series resampling. Figure 2 As shown, the data input module is responsible for receiving and storing cellular network traffic data. In order to facilitate the device to process various data sources, the module can receive data in a variety of ways. For example, data can be obtained from a real-time monitoring system through an API interface, historical data stored in a database can be directly accessed through a database connection, or data files can be read locally or on the network through a file import function.
[0071] The data input module also needs to preprocess the input data to ensure data quality. The preprocessing operations include:
[0072] (1) Missing value processing: For missing values in the data, methods such as deletion, filling or interpolation can be used to process them. The choice of specific methods needs to be weighed according to the characteristics of the data and the prediction task.
[0073] (2) Outlier processing: Outliers in the data can be processed by deletion, replacement or correction. Outlier detection can be based on statistical methods (such as the 3σ principle, box plots, etc.) or machine learning methods (such as clustering, classification, etc.).
[0074] (3) Data cleaning: Data that contains errors, redundancy, or inconsistency needs to be cleaned and organized. Data cleaning can include deleting duplicate data, correcting erroneous data, and unifying data formats.
[0075] (4) Time series resampling: For time series data, resampling operations may be required to convert the data into an equally spaced time series. Resampling methods can include downsampling, upsampling, and interpolation.
[0076] The preprocessed data will be passed to subsequent modules for further processing.
[0077] In a possible implementation, when determining the pending network traffic data corresponding to the second historical period based on the sample network traffic data through the initial prediction model, the processing device may first determine the initial data features corresponding to the second historical period based on the sample network traffic data through the initial prediction model, and the initial data features are used to characterize the data features corresponding to the sample network traffic data. The processing device may perform feature processing on the initial data features to improve the accuracy of the initial data features in characterizing the traffic data, and obtain the data features corresponding to the second historical period. Then, based on the data features, the pending network traffic data corresponding to the second historical period may be determined, and the pending network traffic data may be output to further improve the accuracy of the model in predicting network traffic data.
[0078] Among them, the feature processing may include any one or more combinations of feature selection, feature combination, feature dimensionality reduction, and feature standardization. The feature selection and feature dimensionality reduction are used to reduce feature dimensions and computational complexity; the feature combination is used to combine and transform the initial data features to construct the data features; the feature standardization is used to eliminate differences between different feature scales.
[0079] like Figure 3 As shown in the figure, the feature processing module is responsible for extracting features that are helpful for prediction from the original data. In order to obtain better prediction performance, this module needs to perform a series of processing operations on the features, including:
[0080] (1) Feature selection: For high-dimensional data, feature selection is required to reduce the dimensionality and computational complexity. Feature selection methods can include filtering methods (such as correlation analysis, variance analysis, etc.), wrapping methods (such as recursive feature elimination, etc.) and embedding methods (such as regularization-based feature selection, etc.).
[0081] (2) Feature combination: By combining and transforming the original features, new features can be constructed to improve the prediction performance. Feature combination methods can include statistical combination (such as addition, subtraction, multiplication, division, logarithmic transformation, etc.), machine learning combination (such as principal component analysis, autoencoder, etc.), etc.
[0082] (3) Feature dimensionality reduction: When the feature dimension is too high, feature dimensionality reduction techniques can be used to reduce computational complexity and avoid the curse of dimensionality. Commonly used feature dimensionality reduction methods include principal component analysis (PCA), linear discriminant analysis (LDA), and t-distributed neighbor embedding (t-SNE).
[0083] (4) Feature standardization: In order to eliminate the differences between different feature scales, the features need to be standardized. Common feature standardization methods include Min-Max Scaling, Z-Score Scaling, and Robust Scaling.
[0084] The processed feature data will be used to train the recurrent neural network model.
[0085] In a possible implementation, the prediction model may be any one of a long short-term memory network model and a bidirectional long short-term memory network model.
[0086] like Figure 4As shown in the figure, the recurrent neural network model module contains a trained recurrent neural network model for predicting cellular network traffic. Depending on the complexity of the problem and the prediction performance requirements, different types of RNN models can be selected, such as basic RNN, long short-term memory network (LSTM) or gated recurrent unit (GRU). In addition, the model can be single-layer or multi-layer to adapt to different problem requirements.
[0087] In this module, the trained RNN model can be directly used for prediction. The model training process includes data preparation, model construction, loss function definition, optimizer selection, hyperparameter adjustment and training iteration. During the training process, cross-validation and early stopping strategies are used to ensure that the model has good generalization ability.
[0088] Long Short-Term Memory (LSTM) is a recurrent neural network that can effectively alleviate the gradient vanishing and gradient exploding problems when processing sequence data. It has long-term memory capabilities and is widely used in time series prediction, natural language processing, and speech recognition. The LSTM model is compared with the feedforward neural network (FFNN), recurrent neural network (RNN), and autoregressive moving average model (ARIMA) in the study of cellular network traffic prediction methods. The LSTM model has the following advantages:
[0089] (1) Ability to handle long-term dependencies: Since LSTM introduces a gating mechanism, it can effectively handle long-term dependencies and is not susceptible to gradient vanishing or gradient exploding problems. This enables LSTM to better capture long-term dependencies in cellular network traffic data, thereby improving prediction accuracy.
[0090] (2) Memory function: LSTM can effectively maintain and update previous state information, that is, it has a memory function, which can better capture the periodicity and trend in cellular network traffic data. Compared with the ARIMA model, which requires manual selection of parameters such as difference, moving average and autoregressive lag, the LSTM model can automatically discover important features of time series data through learning.
[0091] (3) Bidirectional learning: The LSTM model has the ability of bidirectional learning, that is, it can consider past and future information at the same time. This allows the LSTM model to more comprehensively capture the information in time series data and better adapt to the complexity of cellular network traffic data.
[0092] In summary, compared with FFNN, RNN and ARIMA models, the LSTM model has better prediction performance and generalization performance in the study of cellular network traffic prediction methods, and is particularly suitable for processing information in time series data such as long-term dependencies and periodicity and trends.
[0093] Bidirectional LSTM (BiLSTM) is a recurrent neural network similar to LSTM, but it considers not only the information before the current moment in the time series, but also the information after the current moment. BiLSTM can capture the information in the sequence data more comprehensively, and is particularly suitable for some bidirectional tasks, such as named entity recognition in natural language processing.
[0094] LSTM has a good network traffic adaptation process, but we can propose further optimization directions. First: Can the accuracy of the model be further improved by modifying the model? Therefore, a bidirectional LSTM model based on the direction of improving accuracy is proposed, namely BiLSTM (Bi-directional Long Short-Term Memory), which can further improve the accuracy of prediction by efficiently utilizing the "context" information of the data. Second: Given that deep learning LSTM consumes a lot of computing power, especially in the case of big data, can a new model be proposed that can not only simplify the structure of LSTM, reduce training time, but also achieve similar accuracy to LSTM? This leads to a new model - the gated recurrent unit (GRU). Let's introduce the BiLSTM model and the GRU model respectively. BiLSTM is the abbreviation of Bi-directional Long Short-Term Memory. It is a LSTM variant composed of a forward LSTM and a backward LSTM. Unlike LSTM, which only saves past information but cannot access future information, BiLSTM can access future context just like accessing past context information. This special network structure is very beneficial for many sequence labeling tasks. BiLSTM has been proven to be particularly useful in situations where context input is required. It is very useful for tasks like sentiment classification. In unidirectional LSTM, information flows from backward to forward. In contrast, in bidirectional LSTM, information flows not only backward to forward, but also forward to backward using two hidden states. Therefore, BiLSTM can understand the context better. Basically, BiLSTM follows a process where the neurons of a normal RNN are divided into a bidirectional manner. One for the backward state or negative time direction and the other for the forward state or positive time direction. The input of the reverse state has nothing to do with the results of these two states. The structure of BiLSTM is as follows Figure 5 shown.
[0095] from Figure 5 It can be seen that BiLSTM is an extension of the LSTM model, in which two LSTMs are applied to the input of the data. In the first round, LSTM is applied to the input sequence (i.e., the forward layer). In the second round, the reverse form of the input sequence is input into the LSTM model (i.e., the reverse layer). The application of these two different directions of LSTM can further improve the long-term dependencies of learning, thereby improving the accuracy of the model. However, in time series prediction, whether BiLSTM has a better effect, this study was studied by scholars Sima Siami-Namini et al. in 2019, and the final conclusions are as follows:
[0096] The results show that using additional training layers will help improve the prediction accuracy by an average of 37.78%, so it is beneficial for modeling. When analyzing the behavior of the unidirectional LSTM and BiLSTM models, we also observed an interesting phenomenon. It is noted that the training speed based on BiLSTM is slower and more batches of data need to be obtained to reach equilibrium. This observation suggests that BiLSTM may capture some additional features related to the data, but the unidirectional LSTM model cannot expose these features because the training is only one way (i.e., from left to right). From this we can see that in the process of time series prediction, Bi-LSTM has a better performance advantage than LSTM, so this article will introduce Bi-LSTM in network traffic prediction.
[0097] Introduction and implementation of gated recurrent unit algorithm
[0098] GRU is a very effective variant of LSTM network, or a variant of recurrent neural network. It is simpler in structure than LSTM network and has good effects. Therefore, it is also a very popular network. GRU reduces the amount of calculation while maintaining the performance of LSTM. As mentioned above, LSTM can solve the gradient disappearance and explosion problems better than recurrent neural network because of the four-layer gate structure (three layers of gates and one layer of tanh gate), and the addition of cell state, which together with the hidden state represents the information learned at each moment, while GRU combines two layers of gates to form a structure. Figure 6 As shown in the figure. The input of the gated recurrent unit has two variables, one is the hidden state ht of the previous moment and the input xt representing the state at the current moment. At the same time, ht and xt can be used together to get the new update gate and reset gate. The following formula explains the reason. LSTM introduces three gate functions in the basic structure: input gate, forget gate and output gate to control the input value, memory value and output value. In the GRU model, there are only two gates: update gate and reset gate.
[0099] Regarding the construction of the BiLSTM model and the GRU model, in order to compare the efficiency and performance with the LSTM model, we will mainly use a two-layer neural network for fitting, while keeping the activation function and the loss function consistent.
[0100] In the actual model application process, Figure 7 As shown in the figure, the prediction execution module is responsible for inputting the feature-processed data into the recurrent neural network model to perform prediction operations. The main functions of this module include:
[0101] Data preparation: Convert the feature-processed data into an appropriate format based on the model’s input requirements. For example, for time series forecasting problems, the data needs to be converted into a sliding window format.
[0102] (2) Model prediction: Input data into the LSTM model to perform network traffic prediction operations. The prediction process can be accelerated by using GPU or other hardware accelerators.
[0103] (3) Prediction result processing: Convert the prediction results output by the model into a format that is easy to understand and analyze. For example, for continuous prediction problems, the prediction results can be converted into actual values; for classification problems, the prediction results can be converted into category labels.
[0104] (4) Result storage: The prediction results are stored in a database or file for subsequent analysis. Result storage can support multiple formats, such as CSV, JSON, Excel, etc.
[0105] The prediction results will be output and stored for subsequent analysis.
[0106] The result display module is responsible for displaying the prediction results to the user in a visual way.
[0107] The predicted network traffic data can be obtained through Figure 7 In order to make the prediction results more intuitive, this module can use a variety of visualization methods, including:
[0108] (1) Line chart: The predicted and actual values of cellular network traffic are displayed through a line chart to intuitively observe the prediction performance of the model. At the same time, the traffic forecasts of different time periods and different regions can be displayed on the same line chart for comparison and analysis.
[0109] (2) Heat map: The heat map shows the traffic forecast for different time periods and regions. The heat map can intuitively show the distribution and change trend of traffic in time and space.
[0110] (3) Bar charts and pie charts: Bar charts and pie charts are used to display traffic forecasts for different categories for comparison and analysis.
[0111] (4) Evaluation index display: Display the evaluation index of the model, such as accuracy, error rate, recall rate, F1 value, etc., to evaluate the prediction performance of the model. The calculation of the evaluation index can be based on the prediction results and actual values.
[0112] (5) Customized visualization: In order to meet the needs of different users, this module can provide customized visualization functions, allowing users to create and edit visualization charts according to their needs.
[0113] Through the above five modules, this cellular network traffic prediction device based on recurrent neural network realizes a complete system that integrates data processing, feature processing, prediction model, execution prediction and result display. Users only need to input cellular network traffic data into the device to obtain prediction results and performance evaluation, providing strong support for network management and optimization.
[0114] Based on the mobile banking network traffic prediction method provided in the above embodiment, the present application also provides a mobile banking network traffic prediction device, such as Fig. 9 As shown, Fig. 9 This is a structural block diagram of a mobile banking network traffic prediction device provided in an embodiment of the present application. The device 900 includes an acquisition unit 901, a determination unit 902, and an adjustment unit 903:
[0115] The acquisition unit 901 is used to acquire sample network traffic data, the sample network traffic data is the network traffic data corresponding to the mobile bank in the first historical period, the sample network traffic data has corresponding label network traffic data, the label network traffic data is the network traffic data corresponding to the mobile bank in the second historical period, and the second historical period is the period after the first historical period;
[0116] The determining unit 902 is used to determine the pending network traffic data corresponding to the second historical period according to the sample network traffic data through the initial prediction model;
[0117] The adjustment unit 903 is used to adjust the model parameters corresponding to the initial prediction model according to the difference between the pending network traffic data and the labeled network traffic data to obtain a prediction model, and the prediction model is used to predict the network traffic data corresponding to the second time period according to the network traffic data corresponding to the first time period, and the second time period is a time period after the first time period.
[0118] In a possible implementation, the acquiring unit 901 is specifically configured to:
[0119] Obtaining initial network traffic data corresponding to the first historical period;
[0120] The initial network traffic data is preprocessed to obtain the sample network traffic data.
[0121] In a possible implementation, the preprocessing includes any one or more combinations of missing value processing, outlier processing, data cleaning, and time series resampling.
[0122] In a possible implementation manner, the determining unit 902 is specifically configured to:
[0123] Determining, by means of an initial prediction model, initial data features corresponding to the second historical period according to the sample network traffic data;
[0124] Performing feature processing on the initial data features to obtain data features corresponding to the second historical period;
[0125] Determine pending network traffic data corresponding to the second historical period based on the data characteristics.
[0126] In a possible implementation, the feature processing includes any one or more combinations of feature selection, feature combination, feature dimension reduction, and feature standardization;
[0127] The feature selection and the feature dimensionality reduction are used to reduce feature dimension and computational complexity;
[0128] The feature combination is used to combine and transform the initial data features to construct the data features;
[0129] The feature normalization is used to eliminate the differences between different feature scales.
[0130] In a possible implementation, the prediction model is any one of a long short-term memory network model and a bidirectional long short-term memory network model.
[0131] The present application also provides a computer device, see Fig.10 As shown, the computer device may be a terminal device, and a mobile phone is taken as an example:
[0132] Fig.10 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Fig.10The mobile phone includes: a radio frequency (RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780, and a power supply 790. Those skilled in the art will understand that Fig.10 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0133] Combine the following Fig.10 A detailed introduction to the various components of the mobile phone:
[0134] The RF circuit 710 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 780 for processing; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit 710 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit 710 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0135] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720. The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 720 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0136] The input unit 730 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 731 or near the touch panel 731 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 731 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0137] The display unit 740 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), etc. Further, the touch panel 731 may cover the display panel 741. When the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides a corresponding visual output on the display panel 741 according to the type of touch event. Although in Fig.10 In the embodiment, the touch panel 731 and the display panel 741 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 731 and the display panel 741 can be integrated to realize the input and output functions of the mobile phone.
[0138] The mobile phone may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0139] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the mobile phone. The audio circuit 760 can transmit the received audio data to the speaker 761 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for further processing.
[0140] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 770. It provides users with wireless broadband Internet access. Fig.10A WiFi module 770 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0141] The processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the mobile phone and processes data, thereby performing overall detection of the mobile phone. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 780.
[0142] The mobile phone also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0143] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0144] In this embodiment, the processor 780 included in the terminal device also has the following functions:
[0145] Acquire sample network traffic data, the sample network traffic data is network traffic data corresponding to the mobile bank in a first historical period, the sample network traffic data has corresponding label network traffic data, the label network traffic data is network traffic data corresponding to the mobile bank in a second historical period, and the second historical period is a period after the first historical period;
[0146] Determine the pending network traffic data corresponding to the second historical period according to the sample network traffic data through the initial prediction model;
[0147] According to the difference between the pending network traffic data and the labeled network traffic data, the model parameters corresponding to the initial prediction model are adjusted to obtain a prediction model, and the prediction model is used to predict the network traffic data corresponding to the second time period based on the network traffic data corresponding to the first time period, and the second time period is the time period after the first time period.
[0148] The present application also provides a server. Fig.11 As shown, Fig.11The structural diagram of the server 800 provided in the embodiment of the present application, the server 800 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 822 (for example, one or more processors) and a memory 832, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 can be temporary storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 822 can be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the server 800.
[0149] The server 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, and / or one or more operating systems 841, such as Windows Server 2000. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.
[0150] The steps performed by the server in the above embodiment can be based on Fig.11 The server structure shown.
[0151] The embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute any one of the implementation methods of the mobile banking network traffic prediction methods described in the aforementioned embodiments.
[0152] The embodiment of the present application also provides a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the mobile banking network traffic prediction method described in any one of the above embodiments.
[0153] It is understandable that in the specific implementation of the present application, related data such as user information (such as network traffic data) is involved. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0154] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the above-mentioned storage medium can be at least one of the following media: read-only memory (English: read-only memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.
[0155] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which 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.
[0156] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for predicting network traffic of mobile banking, characterized in that: The method comprises: Acquire sample network traffic data, the sample network traffic data is network traffic data corresponding to the mobile bank in a first historical period, the sample network traffic data has corresponding label network traffic data, the label network traffic data is network traffic data corresponding to the mobile bank in a second historical period, and the second historical period is a period after the first historical period; Determine the pending network traffic data corresponding to the second historical period according to the sample network traffic data through the initial prediction model; According to the difference between the pending network traffic data and the labeled network traffic data, the model parameters corresponding to the initial prediction model are adjusted to obtain a prediction model, and the prediction model is used to predict the network traffic data corresponding to the second time period based on the network traffic data corresponding to the first time period, and the second time period is the time period after the first time period.
2. The method according to claim 1, characterized in that The obtaining of sample network traffic data includes: Obtaining initial network traffic data corresponding to the first historical period; The initial network traffic data is preprocessed to obtain the sample network traffic data.
3. The method according to claim 2, characterized in that: The preprocessing includes any one or more combinations of missing value processing, outlier processing, data cleaning, and time series resampling.
4. The method according to claim 1, characterized in that: Determining the pending network traffic data corresponding to the second historical period according to the sample network traffic data through the initial prediction model includes: Determining, by means of an initial prediction model, initial data features corresponding to the second historical period according to the sample network traffic data; Performing feature processing on the initial data features to obtain data features corresponding to the second historical period; Determine pending network traffic data corresponding to the second historical period based on the data characteristics.
5. The method according to claim 4, characterized in that The feature processing includes any one or more combinations of feature selection, feature combination, feature dimension reduction, and feature standardization; The feature selection and the feature dimensionality reduction are used to reduce feature dimension and computational complexity; The feature combination is used to combine and transform the initial data features to construct the data features; The feature normalization is used to eliminate the differences between different feature scales.
6. The method according to claim 1, characterized in that The prediction model is any one of a long short-term memory network model or a bidirectional long short-term memory network model.
7. A mobile banking network traffic prediction device, characterized in that: The device comprises an acquisition unit, a determination unit and an adjustment unit: The acquisition unit is used to acquire sample network traffic data, the sample network traffic data is the network traffic data corresponding to the mobile bank in the first historical period, the sample network traffic data has corresponding label network traffic data, the label network traffic data is the network traffic data corresponding to the mobile bank in the second historical period, and the second historical period is a period after the first historical period; The determining unit is used to determine the pending network traffic data corresponding to the second historical period according to the sample network traffic data through an initial prediction model; The adjustment unit is used to adjust the model parameters corresponding to the initial prediction model according to the difference between the pending network traffic data and the labeled network traffic data to obtain a prediction model. The prediction model is used to predict the network traffic data corresponding to the second time period according to the network traffic data corresponding to the first time period, and the second time period is a time period after the first time period.
8. The device according to claim 7, characterized in that The acquisition unit is specifically used for: Obtaining initial network traffic data corresponding to the first historical period; The initial network traffic data is preprocessed to obtain the sample network traffic data.
9. The device according to claim 8, characterized in that: The preprocessing includes any one or more combinations of missing value processing, outlier processing, data cleaning, and time series resampling.
10. The device according to claim 7, characterized in that The determining unit is specifically used for: Determining, by means of an initial prediction model, initial data features corresponding to the second historical period according to the sample network traffic data; Performing feature processing on the initial data features to obtain data features corresponding to the second historical period; Determine pending network traffic data corresponding to the second historical period based on the data characteristics.
11. The device according to claim 10, characterized in that The feature processing includes any one or more combinations of feature selection, feature combination, feature dimension reduction, and feature standardization; The feature selection and the feature dimensionality reduction are used to reduce feature dimension and computational complexity; The feature combination is used to combine and transform the initial data features to construct the data features; The feature normalization is used to eliminate the differences between different feature scales.
12. The device according to claim 7, characterized in that The prediction model is any one of a long short-term memory network model or a bidirectional long short-term memory network model.
13. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is used to execute the mobile banking network traffic prediction method described in any one of claims 1-6 according to the instructions in the computer program.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the mobile banking network traffic prediction method described in any one of claims 1-6.
15. A computer program product comprising a computer program, which, when executed on a computer device, enables the computer device to execute the method for predicting mobile banking network traffic according to any one of claims 1 to 6.
Citation Information
Cited By
Network flow rate prediction monitoring method and device, computing equipment and storage medium
CN118890288A
