Communication traffic data prediction method and device, electronic equipment and storage medium
By using the shared weight neural network to reduce the number of layers and combining it with the ridge regression algorithm in communication traffic data prediction, the problem of gradient disappearance in deep networks is solved and the prediction accuracy and stability of communication traffic data are improved.
Patent Information
- Application Number
- CN202410797581.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Deep networks have a vanishing gradient problem in communication traffic data prediction, resulting in low prediction accuracy. Especially in longer time series, error accumulation causes the prediction accuracy to be improved.
The shared weight neural network is used to reduce the number of neural network layers, and the ridge regression algorithm is used to correct the prediction results to improve the prediction accuracy and stability.
By reducing the number of neural network layers, the prediction accuracy and speed of communication traffic data are improved, and the stability of prediction is improved through the ridge regression algorithm, which significantly improves the prediction effect of communication traffic data.
Smart Images

Figure CN118612092A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of Internet technology, and in particular, relates to a method, device, electronic device and storage medium for predicting communication traffic data. Background Art
[0002] With the development of information technology, communication traffic forecasting is one of the important tasks of network operators and other related industries. Deep learning methods perform well in communication traffic forecasting, mainly because deep learning can automatically extract features from communication traffic data and model time series communication traffic data.
[0003] The prediction of communication traffic depends on long-term statistical sequences. However, for longer statistical sequences, the prediction accuracy of deep networks needs to be further improved. In deep networks, gradients need to be propagated through multiple neural network layers, and each layer will introduce certain errors. These errors will accumulate and eventually cause the gradient to disappear, resulting in low accuracy of deep network predictions for communication traffic data.
[0004] Therefore, the accuracy of the prediction of communication traffic data needs to be improved. Summary of the invention
[0005] The embodiments of the present application provide a method, apparatus, device and storage medium for predicting communication traffic data, which can solve the current problem of needing to improve the accuracy of prediction of communication traffic data.
[0006] In a first aspect, an embodiment of the present application provides a method for predicting communication traffic data, the method comprising:
[0007] Acquire first communication flow data, wherein the first communication flow data includes: communication flow time series data and communication flow change characteristic data in a first time period;
[0008] Predicting the first communication flow data based on the trained shared weight neural network to obtain second communication flow data for a second time period, where the second time period is after the first time period;
[0009] The second communication flow data is corrected by a ridge regression algorithm to obtain third communication flow data.
[0010] In a second aspect, an embodiment of the present application provides a communication traffic data prediction device, the communication traffic data prediction device comprising:
[0011] An acquisition module, configured to acquire first communication flow data, wherein the first communication flow data includes: communication flow time series data and communication flow change characteristic data in a first time period;
[0012] A prediction module, configured to predict the first communication flow data based on a trained shared weight neural network to obtain second communication flow data for a second time period, where the second time period is after the first time period;
[0013] The correction module is used to perform correction processing on the second communication flow data through a ridge regression algorithm to obtain third communication flow data.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the method in the first aspect or any possible implementation of the first aspect.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the method in the first aspect or any possible implementation of the first aspect is implemented.
[0016] In an embodiment of the present application, by obtaining first communication traffic data, the first communication traffic data includes: communication traffic time series data and communication traffic change characteristic data of a first time period; then, based on the trained shared weight neural network, the first communication traffic data is predicted to obtain second communication traffic data of a second time period. The second time period is after the first time period. Since the trained shared weight neural network has fewer network layers and a faster fitting speed, the error accumulation generated during the prediction can be reduced, the prediction accuracy and prediction speed of the communication traffic data can be improved, and the second communication traffic data of the future time period can be predicted quickly and accurately. Finally, the second communication traffic data is corrected by a ridge regression algorithm to obtain third communication traffic data, which can improve the stability of the communication traffic data prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] Figure 1 is a flow chart of a method for predicting communication traffic data provided by an embodiment of the present application;
[0019] Figure 2 It is a structural schematic diagram of a shared weight neural network provided in an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of the structure of another shared weight neural network provided in an embodiment of the present application;
[0021] Figure 4 It is a structural schematic diagram of a communication flow data prediction device provided in an embodiment of the present application;
[0022] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present application and are not configured to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0024] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including 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, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0025] The following is a brief introduction to the technical terms involved in this application.
[0026] Communication traffic forecasting refers to the process of predicting and analyzing network data traffic. Communication traffic forecasting is one of the important tasks of network operators and other related industries. Highly accurate and efficient traffic forecasting can help related industries better plan network resources, improve network performance and service quality.
[0027] Shared weight neural network refers to the strategy of optimizing long short-term memory neural network, which is to reduce the error caused by the propagation layer of the neural network by optimizing the number of neural network layers of the long short-term memory neural network to achieve network optimization problem. It is named as shared weight neural network.
[0028] Ridge Regression (RR) is an optimized least squares estimation method. It abandons the partial unbiasedness of the least squares method at the cost of losing some of the mined customer traffic information, solves the overfitting problem in regression, improves the generalization performance of the model, and enhances the stability of the model.
[0029] The communication traffic data prediction method provided in the embodiment of the present application can be applied to at least the following application scenarios, which are described below.
[0030] Communication traffic forecasting is one of the important tasks of network operators and other related industries. Highly accurate and efficient traffic forecasting can help related industries better plan network resources, improve network performance and service quality.
[0031] Machine learning methods are widely used in communication traffic prediction. By learning a large amount of historical communication traffic data, a communication traffic prediction model is established, and then the model is used to predict future data.
[0032] Machine learning methods include regression analysis, decision trees, neural networks, clustering, and dimensionality reduction, etc. By learning a large amount of communication traffic data, a multi-level neural network model is established, and then the model is used to predict future communication traffic data.
[0033] Commonly used deep learning algorithms include recurrent neural networks, long short-term memory neural networks, and convolutional neural networks. Deep learning methods perform well in communication traffic prediction, mainly because deep learning can automatically extract features from communication traffic data and model time series communication traffic data.
[0034] Recurrent neural networks have the problem of gradient vanishing. Long short-term memory neural networks have alleviated this problem to a certain extent, but have not ultimately solved the problem. For longer sequences, its prediction accuracy needs to be further improved. The prediction of communication traffic depends on long-term statistical sequences.
[0035] In deep networks, the gradient needs to be propagated through multiple neural network layers. Each layer will introduce a certain error. These errors will accumulate and eventually cause the gradient to disappear. To alleviate the gradient vanishing problem, the optimization of long short-term memory neural networks is used. The gradient needs to be propagated through multiple layers. Each layer will introduce a certain error. These errors will accumulate and cause the gradient to disappear.
[0036] Therefore, the accuracy of the prediction of communication traffic data needs to be improved.
[0037] Figure 1 It is a flowchart of a method for predicting communication traffic data provided in an embodiment of the present application.
[0038] like Figure 1 As shown, the communication flow data prediction method may include steps 110 to 130, and the method is applied to a communication flow data prediction device, as shown below:
[0039] Step 110, obtaining first communication flow data, wherein the first communication flow data includes: communication flow time series data and communication flow change characteristic data in a first time period;
[0040] Step 120, predicting the first communication flow data based on the trained shared weight neural network to obtain second communication flow data of a second time period, where the second time period is after the first time period;
[0041] The communication traffic prediction is studied, the communication traffic prediction based on the shared weight neural network is analyzed, and the neural network is improved in a timely manner to make it suitable for accurate prediction of communication traffic. The experiments show that the improved neural network has achieved good communication traffic prediction results, and to a certain extent improves the fitting speed of the neural network to the communication traffic data. While maintaining the training speed, the shared weight neural network further maintains the precision and accuracy of traffic prediction.
[0042] Step 130: Correct the second communication flow data by using a ridge regression algorithm to obtain third communication flow data.
[0043] The ridge regression algorithm is used to perform regression analysis on the predicted value of communication traffic in the future time period based on the shared weight neural network. The ridge regression includes a regression residual process, through which the coefficient of the regression amplitude is adaptively adjusted, and the PCA principal component analysis is performed on the factors affecting customer traffic. The predicted value of communication traffic in the future time period is analyzed, and the predicted value of communication traffic after analysis is output, thereby improving the stability of communication traffic prediction.
[0044] In an embodiment of the present application, by obtaining first communication traffic data, the first communication traffic data includes: communication traffic time series data and communication traffic change characteristic data of a first time period; then, based on the trained shared weight neural network, the first communication traffic data is predicted to obtain second communication traffic data of a second time period. The second time period is after the first time period. Since the trained shared weight neural network has fewer network layers and a faster fitting speed, the error accumulation generated during the prediction can be reduced, the prediction accuracy and prediction speed of the communication traffic data can be improved, and the second communication traffic data of the future time period can be predicted quickly and accurately. Finally, the second communication traffic data is corrected by a ridge regression algorithm to obtain third communication traffic data, which can improve the stability of the communication traffic data prediction.
[0045] The contents of step 110 to step 130 are described below respectively:
[0046] This involves step 110 .
[0047] First communication flow data is acquired, wherein the first communication flow data includes: communication flow time series data and communication flow change characteristic data in a first time period.
[0048] First communication flow data is acquired, wherein the first communication flow data includes: communication flow time series data and communication flow change characteristic data in a first time period.
[0049] First, the original communication traffic time series data of the first time period is obtained, and the original communication traffic time series data is cleaned to supplement the missing values in the original communication traffic time series data, remove the abnormal values in the original communication traffic time series data, and delete the duplicate values in the original communication traffic time series data.
[0050] Then the original communication traffic time series data are arranged into a uniform time interval. The original communication traffic time series data records are in months and the data are arranged in chronological order to facilitate subsequent data processing.
[0051] The original communication traffic time series data records are processed by data standardization. After data standardization, the value of each element in the original communication traffic time series data records is proportionally mapped to the [0,1] interval through the normalization method.
[0052] Therefore, after the original communication traffic time series data records are normalized, they are processed into a range suitable for the shared weight neural network input to obtain the first communication traffic data.
[0053] In a possible embodiment, step 110 includes:
[0054] Acquire communication traffic time series data for the first time period;
[0055] Extracting the communication traffic change characteristic data from the communication traffic time series data;
[0056] The first communication traffic data is obtained by combining the communication traffic time series data and the communication traffic change characteristic data.
[0057] Communication traffic change characteristic data, for example, communication traffic change characteristic data associated with season, year, or month.
[0058] The communication traffic change characteristic data is extracted from the communication traffic time series data, and the extracted communication traffic change characteristic data is combined with the communication traffic time series data as input data for predicting the communication traffic in the future time period based on a shared weight neural network.
[0059] In a possible embodiment, the above-mentioned step of extracting the communication traffic change characteristic data from the communication traffic time series data may specifically include the following steps:
[0060] determining candidate change features associated with the communication traffic time series data;
[0061] Determining, based on the communication traffic time series data, combined solutions of candidate change features of different combinations;
[0062] Determining a target change feature from the candidate change features according to each of the combined solutions;
[0063] Extract the change feature data corresponding to the target change feature from the communication traffic time series data.
[0064] Target change characteristics, such as season, year, month and other time factors.
[0065] In the feature extraction process, the current communication traffic time series data is input, and the candidate features of the communication traffic time series data are listed and set to two states: 0 or 1. 0 represents discarding the current feature, and 1 represents selecting the current feature. All solutions of feature combinations are listed, that is, the combination solutions of candidate change features of different combinations are determined.
[0066] Solving the optimal feature combination problem is equivalent to a 0-1 programming problem. A genetic algorithm is used to iteratively solve a set of target change features, that is, a set of target change features are screened, and change feature data corresponding to the target change features are extracted from the communication traffic time series data. The change feature data corresponding to the target change features are combined with the communication traffic time series data as input data for predicting the communication traffic in future time periods based on a shared weight neural network.
[0067] This involves step 120 .
[0068] The first communication traffic data is predicted based on the trained shared weight neural network to obtain second communication traffic data for a second time period, where the second time period is after the first time period.
[0069] In neural networks, weight sharing is an optimization technique that is often used to reduce the number of model parameters and improve the generalization ability of the model. It is widely used in convolutional neural networks (CNNs), especially when processing images and other similarly structured data.
[0070] The concept of weight sharing involves using the same parameter weight values in different parts of the network. This means using the same weights for multiple locations or layers in a neural network, rather than learning different weights for each location or layer independently. This way of sharing weights can effectively capture local features of the input data, thereby reducing the number of parameters that need to be learned.
[0071] Among them, Figure 2 As shown, X1, X2 and X3 share Figure 2 The weight values of the shared weight neural network are shown.
[0072] In a possible embodiment, before step 120, the following steps may also be included:
[0073] Under the condition of maintaining the neural network unit structure of the initial neural network, merging the forget gate and the output gate in the initial neural network to obtain a merge gate;
[0074] The merging gate and the input gate are coupled to obtain a shared weight neural network, wherein the number of network layers of the shared weight neural network is less than the number of network layers of the initial neural network;
[0075] Train the shared weight neural network to obtain a trained shared weight neural network.
[0076] LSTM networks introduce memory cells, or cells for short. To control a memory cell, many gates are needed. One of the gates is used to output entries from the cell, called the output gate. Another gate is used to decide when to read data into the cell, called the input gate. A mechanism is also needed to reset the contents of the cell, which is managed by the forget gate. The motivation for this design is the same as that of the gated recurrent unit, which can decide when to remember or ignore inputs in the hidden state through a dedicated mechanism.
[0077] like Figure 2 As shown, the shared weight neural network includes: an input layer, a hidden layer and an output layer.
[0078] x t 、s t 、a t is the input of the input layer. C t Represents the current unit state, C t-1 Indicates the previous unit state. t 、h t-1 In represents the current and previous unit hidden layer states, net tAs intermediate variables, tanh(x) and σ(x) are activation functions. is the matrix element multiplication symbol.
[0079] At time t, calculate the shared gate. The calculation formula is as follows:
[0080]
[0081] Next, update the cell state C t The calculation formula is as follows:
[0082] C t =s t *C t-1 +(1-s t )*a t-1
[0083] Then, calculate the hidden layer output h t The calculation formula is as follows:
[0084] h t =s t *tanh(C t )
[0085] Finally, the output value yt of the output layer is calculated. The calculation formula is as follows:
[0086]
[0087] In an embodiment of the present application, while maintaining the neural network unit structure of the initial neural network, the forget gate and the output gate in the initial neural network are merged to obtain a merge gate, which can reduce the number of neural network layers of the long short-term memory neural network. The merge gate and the input gate are coupled to obtain a shared weight neural network, which can further reduce the number of neural network layers of the long short-term memory neural network.
[0088] The optimized LSTM neural network aims to reduce the propagation error between layers of the neural network by reducing the number of neural network layers of the LSTM neural network.
[0089] The neural network with reduced number of layers is named as shared weight neural network. In the shared weight neural network, the forget gate and output gate in the neural network are merged on the premise of maintaining the unit structure of the neural network, and the merged gate is coupled with the input gate to reduce the number of layers in the deep network to be optimized, reduce the propagation error between layers of the neural network, and improve the prediction accuracy.
[0090] In a possible embodiment, before step 120, the following steps may also be included:
[0091] Acquire first historical communication flow data and second historical communication flow data, wherein a time period of the second historical communication flow data is after a time period of the first historical communication flow data;
[0092] According to the first historical communication traffic data and the second historical communication traffic data, a shared weight neural network is trained until the shared weight neural network meets a training stop condition, thereby obtaining a trained shared weight neural network.
[0093] The time period of the second historical communication traffic data is after the time period of the first historical communication traffic data. For example, the second historical communication traffic data is the communication traffic data in December 2023, and the first historical communication traffic data is the communication traffic data in November 2023.
[0094] The first historical communication traffic data is input into a shared weight neural network, and the predicted second historical communication traffic data is output; the shared weight neural network is trained according to the second historical communication traffic data and the predicted second historical communication traffic data until the shared weight neural network meets the training stop condition, thereby obtaining a trained shared weight neural network.
[0095] This involves step 130 .
[0096] The second communication flow data is corrected by a ridge regression algorithm to obtain third communication flow data.
[0097] The ridge regression algorithm is used to perform regression analysis on the predicted value of communication traffic in the future time period based on the shared weight neural network. The ridge regression includes a regression residual process, through which the coefficient of the regression amplitude is adaptively adjusted, and the third communication traffic data is output, thereby improving the stability of the communication traffic data prediction.
[0098] like Figure 2 As shown, input data: customer monthly traffic time series training data set X i ;
[0099] Output data: Monthly flow forecast sequence Y i ;
[0100] l is the input data length;
[0101] R i Predict the residual series.
[0102] Exemplarily, the algorithm steps of the embodiment of the present application include:
[0103] 1: Perform data normalization processing on the first communication flow data, using standard normalization;
[0104] 2: Define the series_to_supervised function to convert the time series into a supervised learning problem;
[0105] 3: Set the number of steps;
[0106] 4: Divide the training set and test set;
[0107] 5: Construct a training data set for shared weight neural network model input;
[0108] 6: Initialize the shared weight neural network model;
[0109] Among them, the number of neurons is set to 16, the number of iterations is 100, and the Adam iterator is used;
[0110] 7: for i = 1 to;
[0111] 8: LSTM modeling;
[0112] 9: i++;
[0113] 10: end for;
[0114] 11: Output the shared weight neural network predicted traffic sequence value and predicted residual sequence;
[0115] 12: Reconstruct the input of the RR model;
[0116] Among them, the input this time is the shared weight neural network prediction sequence value and the prediction residual sequence value;
[0117] 13: for j = 1 to 1;
[0118] 14: RR modeling;
[0119] 15: Ridge regression is used to analyze and predict the residual sequence values;
[0120] 16: j++;
[0121] 17: end for;
[0122] 18: Introducing adjustable adaptive parameters;
[0123] 19: Introduce PCA principal component analysis;
[0124] 18: Output RR communication traffic prediction sequence;
[0125] 19: Denormalization;
[0126] 20: Output the final prediction result.
[0127] Through the embodiments of the present application, the monthly communication traffic data of the customer is used as an experimental data set to predict the customer's communication traffic for the next month.
[0128] The experimental dataset is shown in Table 1:
[0129] Table 1
[0130]
[0131] According to the experimental control principle, the communication traffic prediction method based on shared weight neural network is compared with the long short-term memory neural network communication traffic prediction method (LSTM) and the ridge regression (RR) communication traffic prediction method.
[0132] The prediction results for customer A are shown in Table 2, and the prediction results for customer B are shown in Table 3:
[0133] Table 2
[0134]
[0135]
[0136] Table 3
[0137]
[0138] Evaluation indicators are used for evaluation, including RMSE (root mean square error), R 2 (Determination coefficient), the comparison results of various flow prediction methods are as follows.
[0139] The root mean square error is used to measure the deviation between the predicted value and the true value. The smaller the root mean square error, the smaller the prediction deviation of the algorithm. The determination coefficient is a statistic that measures the goodness of fit. The larger the coefficient, the better the fit between the predicted data and the true data, indicating that the prediction effect is better.
[0140] The evaluation index table of Table 2 is as follows:
[0141]
[0142]
[0143] Through the evaluation index table, the root mean square error and determination coefficient between the predicted value and the true value are used as the evaluation criteria for the algorithm. The smaller the root mean square error is, the smaller the error between the algorithm predicted value and the true value is, which means that the algorithm prediction accuracy is higher. The communication traffic prediction method based on the shared weight neural network is compared with the long short-term memory neural network communication traffic prediction method (LSTM) and the ridge regression (RR) communication traffic prediction method.
[0144] The communication traffic prediction method based on shared weight neural network has a smaller root mean square error, which means that the deviation of communication traffic prediction by this method is relatively small. At the same time, the communication traffic prediction method based on shared weight neural network has a higher determination coefficient, which means that the degree of fit between the traffic prediction value and the true value is relatively high, and the communication traffic prediction accuracy is high.
[0145] In a possible embodiment, step 130 may specifically include the following steps:
[0146] Determine a residual sequence according to the second communication traffic data and actual communication traffic data in a second time period;
[0147] Regressing the residual sequence by a ridge regression algorithm to obtain a regression amplitude coefficient;
[0148] The second communication flow data is corrected by using the regression amplitude coefficient to obtain third communication flow data.
[0149] Among them, determining the residual sequence based on the second communication traffic data and the actual communication traffic data of the second time period refers to the result obtained after comparing the predicted value of the communication traffic in the future time period based on the shared weight neural network with the actual value.
[0150] The residual sequence is regressed through a ridge regression algorithm to obtain a regression amplitude coefficient. Here, the gap between the learned second communication traffic data and the actual second communication traffic data is determined, and an adjustable adaptive parameter λ is introduced. The adaptive parameter λ is used to adaptively adjust the coefficient of the regression amplitude. The adjustable adaptive parameter aims to minimize the above gap, and the size of the current adaptive parameter λ is adaptively adjusted according to the regression function.
[0151] The coefficient of the regression amplitude is adaptively adjusted using the adaptive parameter λ. If the gap between the currently learned second communication flow data and the actual second communication flow data is extremely small, it is considered that λ is the optimal parameter at this time, and the regression amplitude coefficient learned at this time is used to correct the communication flow in the future time period.
[0152] Therefore, the second communication flow data is corrected by the regression amplitude coefficient to obtain the third communication flow data, which can further improve the stability of the flow communication flow prediction.
[0153] In a possible embodiment, after step 130, the following steps may also be included:
[0154] Determine the spatiotemporal factors in the communication traffic time series data as the principal component analysis influencing factors of the communication traffic data, wherein the spatiotemporal factors include: seasonal factors, monthly factors, location factors and regional factors;
[0155] The principal component analysis is performed on the third communication flow data through the principal component analysis influencing factors to obtain the analyzed third communication flow data.
[0156] The time factors in the time-space factors in the customer communication traffic time series data, such as seasonal factors and monthly factors, and the spatial factors in the time-space factors, such as location factors and regional factors, are regarded as the influencing factors of the PCA principal component analysis of customer traffic.
[0157] PCA principal component analysis is performed on factors affecting customer traffic, and the third communication traffic data of the future period is analyzed, and the analyzed third communication traffic data is output, thereby improving the stability of communication traffic prediction.
[0158] In an embodiment of the present application, by obtaining first communication traffic data, the first communication traffic data includes: communication traffic time series data and communication traffic change characteristic data of a first time period; then, based on the trained shared weight neural network, the first communication traffic data is predicted to obtain second communication traffic data of a second time period. The second time period is after the first time period. Since the trained shared weight neural network has fewer network layers and a faster fitting speed, the error accumulation generated during the prediction can be reduced, the prediction accuracy and prediction speed of the communication traffic data can be improved, and the second communication traffic data of the future time period can be predicted quickly and accurately. Finally, the second communication traffic data is corrected by a ridge regression algorithm to obtain third communication traffic data, which can improve the stability of the communication traffic data prediction.
[0159] Based on the above Figure 1 The communication flow data prediction method shown in the embodiment of the present application also provides a communication flow data prediction device, such as Figure 4 As shown, the communication traffic data prediction device 400 may include:
[0160] The acquisition module 410 is used to acquire first communication flow data, wherein the first communication flow data includes: communication flow time series data and communication flow change characteristic data in a first time period;
[0161] A prediction module 420, configured to predict the first communication flow data based on a trained shared weight neural network to obtain second communication flow data for a second time period, where the second time period is after the first time period;
[0162] The correction module 430 is used to perform correction processing on the second communication flow data by using a ridge regression algorithm to obtain third communication flow data.
[0163] In a possible embodiment, the acquisition module 410 is specifically configured to:
[0164] Acquire communication traffic time series data for the first time period;
[0165] Extracting the communication traffic change characteristic data from the communication traffic time series data;
[0166] The first communication traffic data is obtained by combining the communication traffic time series data and the communication traffic change characteristic data.
[0167] In a possible embodiment, the acquisition module 410 is specifically configured to:
[0168] determining candidate change features associated with the communication traffic time series data;
[0169] Determining, based on the communication traffic time series data, combined solutions of candidate change features of different combinations;
[0170] Determining a target change feature from the candidate change features according to each of the combined solutions;
[0171] Extract the change feature data corresponding to the target change feature from the communication traffic time series data.
[0172] In a possible embodiment, the communication traffic data prediction device 400 may further include:
[0173] A merging module, used to merge the forget gate and the output gate in the initial neural network to obtain a merging gate while maintaining the neural network unit structure of the initial neural network;
[0174] A coupling module, used for coupling the merging gate and the input gate to obtain a shared weight neural network, wherein the number of network layers of the shared weight neural network is less than the number of network layers of the initial neural network;
[0175] The training module is used to train the shared weight neural network to obtain a trained shared weight neural network.
[0176] In a possible embodiment, the training module is further used for:
[0177] Acquire first historical communication flow data and second historical communication flow data, wherein a time period of the second historical communication flow data is after a time period of the first historical communication flow data;
[0178] According to the first historical communication traffic data and the second historical communication traffic data, a shared weight neural network is trained until the shared weight neural network meets a training stop condition, thereby obtaining a trained shared weight neural network.
[0179] In a possible embodiment, the correction module 430 is specifically configured to:
[0180] Determine a residual sequence according to the second communication traffic data and actual communication traffic data in a second time period;
[0181] Regressing the residual sequence by a ridge regression algorithm to obtain a regression amplitude coefficient;
[0182] The second communication flow data is corrected by using the regression amplitude coefficient to obtain third communication flow data.
[0183] In a possible embodiment, the communication traffic data prediction device 400 may further include:
[0184] A determination module, used to determine the spatiotemporal factors in the communication traffic time series data as the principal component analysis influencing factors of the communication traffic data, wherein the spatiotemporal factors include: seasonal factors, monthly factors, location factors and regional factors;
[0185] The analysis module is used to perform principal component analysis on the third communication flow data through the principal component analysis influencing factors to obtain the analyzed third communication flow data.
[0186] In an embodiment of the present application, by obtaining first communication traffic data, the first communication traffic data includes: communication traffic time series data and communication traffic change characteristic data of a first time period; then, based on the trained shared weight neural network, the first communication traffic data is predicted to obtain second communication traffic data of a second time period. The second time period is after the first time period. Since the trained shared weight neural network has fewer network layers and a faster fitting speed, the error accumulation generated during the prediction can be reduced, the prediction accuracy and prediction speed of the communication traffic data can be improved, and the second communication traffic data of the future time period can be predicted quickly and accurately. Finally, the second communication traffic data is corrected by a ridge regression algorithm to obtain third communication traffic data, which can improve the stability of the communication traffic data prediction.
[0187] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0188] The electronic device may include a processor 501 and a memory 502 storing computer program instructions.
[0189] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0190] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory. In a specific embodiment, the memory 502 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0191] The processor 501 reads and executes the computer program instructions stored in the memory 502 to implement any one of the communication traffic data prediction methods in the embodiments shown in the figure.
[0192] In one example, the electronic device may further include a communication interface 505 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 505 are connected via a bus 510 and communicate with each other.
[0193] The communication interface 505 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0194] Bus 510 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0195] The electronic device can execute the communication flow data prediction method in the embodiment of the present application, thereby realizing the combination Figure 1-Figure 3 A prediction method for communication flow data is described.
[0196] In addition, in combination with the communication traffic data prediction method in the above embodiment, the present application embodiment can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the Figure 1-Figure 3 A prediction method for communication traffic data.
[0197] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0198] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0199] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0200] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for predicting communication traffic data, It is characterized in that The method comprises: Acquire first communication flow data, wherein the first communication flow data includes: communication flow time series data and communication flow change characteristic data in a first time period; Predicting the first communication flow data based on the trained shared weight neural network to obtain second communication flow data for a second time period, where the second time period is after the first time period; The second communication flow data is corrected by a ridge regression algorithm to obtain third communication flow data.
2. The method according to claim 1, It is characterized in that The obtaining of the first communication flow data includes: Acquire communication traffic time series data for the first time period; Extracting the communication traffic change characteristic data from the communication traffic time series data; The first communication traffic data is obtained by combining the communication traffic time series data and the communication traffic change characteristic data.
3. The method according to claim 2, It is characterized in that The extracting the communication traffic change characteristic data from the communication traffic time series data includes: determining candidate change features associated with the communication traffic time series data; Determining, based on the communication traffic time series data, combined solutions of candidate change features of different combinations; Determining a target change feature from the candidate change features according to each of the combined solutions; Extract the change feature data corresponding to the target change feature from the communication traffic time series data.
4. The method according to claim 1, It is characterized in that Before predicting the first communication traffic data based on the trained shared weight neural network, the method further includes: Under the condition of maintaining the neural network unit structure of the initial neural network, merging the forget gate and the output gate in the initial neural network to obtain a merge gate; The merging gate and the input gate are coupled to obtain a shared weight neural network, wherein the number of network layers of the shared weight neural network is less than the number of network layers of the initial neural network; Train the shared weight neural network to obtain a trained shared weight neural network.
5. The method according to claim 1, It is characterized in that Before predicting the first communication flow data based on the trained shared weight neural network to obtain second communication flow data for a second time period, the method further includes: Acquire first historical communication flow data and second historical communication flow data, wherein a time period of the second historical communication flow data is after a time period of the first historical communication flow data; According to the first historical communication traffic data and the second historical communication traffic data, a shared weight neural network is trained until the shared weight neural network meets a training stop condition, thereby obtaining a trained shared weight neural network.
6. The method according to claim 1, It is characterized in that The correcting the second communication flow data by using a ridge regression algorithm to obtain third communication flow data includes: Determine a residual sequence according to the second communication traffic data and actual communication traffic data in a second time period; Regressing the residual sequence by a ridge regression algorithm to obtain a regression amplitude coefficient; The second communication flow data is corrected by using the regression amplitude coefficient to obtain third communication flow data.
7. The method according to claim 1, It is characterized in that After the second communication flow data is corrected by the ridge regression algorithm to obtain the third communication flow data, the method further includes: Determine the spatiotemporal factors in the communication traffic time series data as the principal component analysis influencing factors of the communication traffic data, wherein the spatiotemporal factors include: seasonal factors, monthly factors, location factors and regional factors; The principal component analysis is performed on the third communication flow data through the principal component analysis influencing factors to obtain the analyzed third communication flow data.
8. A communication flow data prediction device, It is characterized in that The communication flow data prediction device comprises: An acquisition module, configured to acquire first communication flow data, wherein the first communication flow data includes: communication flow time series data and communication flow change characteristic data in a first time period; A prediction module, configured to predict the first communication flow data based on a trained shared weight neural network to obtain second communication flow data for a second time period, where the second time period is after the first time period; The correction module is used to perform correction processing on the second communication flow data through a ridge regression algorithm to obtain third communication flow data.
9. An electronic device, It is characterized in that The electronic device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for predicting communication traffic data according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for predicting communication traffic data according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
A dynamic heterogeneous network traffic prediction method based on a deep space-time neural network
CN109862585A
Data processing method, neural network training method and related device and apparatus
CN113326930A
Traffic prediction method and device and server
CN116017528A
Training method, prediction method, device and equipment of time sequence signal prediction model
CN117852624A
Forecasting industrial aging processes with machine learning methods
US20230028276A1
