A method for predicting power business bandwidth based on dual-path fusion network
Through the dual-channel fusion network model, combined with DBN and LSTM networks, the multi-dimensional and sequence features of the power business bandwidth are extracted, feature fusion and backpropagation optimization are performed, which solves the problem of insufficient bandwidth prediction accuracy and robustness in the existing technology. It achieves higher prediction accuracy and stability, providing guarantee for the operation of power communication network.
Patent Information
- Application Number
- CN202111400483.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-19
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-11-19
AI Technical Summary
Existing power service bandwidth prediction methods rely on the identification accuracy of signal parameters. When the accuracy decreases, the accuracy of protocol classification will be seriously reduced, affecting the use effect. Moreover, it has high requirements on data processing and distribution, making it difficult to ensure high accuracy and robustness.
The electric power business bandwidth prediction method based on dual-channel fusion network is used to build a model including DBN network and LSTM network. Through feature fusion and backpropagation optimization, the requirements for data processing and distribution are reduced, and the prediction accuracy and robustness are improved.
It achieves higher prediction accuracy and robustness, improves the accuracy of bandwidth prediction, provides guarantee for the carrying capacity and stable operation of the power communication network, and reduces the requirements for sample data.
Smart Images

Figure CN114118567B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of smart grids, and in particular relates to a method for predicting power business bandwidth based on a dual-path fusion network. Background Art
[0002] Smart grid is the product of various advanced technologies. In order to ensure the smooth and efficient operation of the power grid, the construction of a large-capacity, high-speed, real-time, safe and stable information communication system is the key to the development of smart grid. Reasonable network traffic prediction can solve various problems of network service management, accelerate the exchange of engineering data, control network congestion, etc. In the network environment, bandwidth quantifies the maximum rate at which data can be transmitted on a network link or path. The transmission efficiency of bandwidth between nodes will directly affect the application performance and quality of the server.
[0003] The importance of bandwidth prediction has attracted the efforts of a large number of researchers. There are many algorithms related to bandwidth changes, mainly regression models, time series models, etc. The theoretical basis is mainly neural network theory, fuzzy theory, wavelet theory, etc. The resource prediction system is a well-known linear bandwidth prediction project that uses time series models for modeling, including autoregressive models, moving average models, autoregressive moving averages, differential autoregressive moving average models, and integral autoregressive moving average models. In addition, the well-known network prediction system also has a network meteorological service system. The availability prediction data generated by this system is highly accurate, effective and reliable, and has been widely used in network environments. The existing communication protocol classification method first identifies signal parameters such as modulation schemes and frequencies, then vectorizes the parameters according to entropy, and finally compares the parameter set with the protocol parameters or uses machine learning methods to classify the protocol. However, this type of method relies on the identification of various signal parameters. When the identification accuracy of signal parameters is high, protocol classification can obtain higher accuracy. When the identification accuracy of one or more signal parameters is reduced, the accuracy of protocol classification is seriously reduced due to error accumulation, affecting the use effect. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and to provide a power business bandwidth prediction method based on a dual-path fusion network, which has higher prediction accuracy and robustness, improves the accuracy of bandwidth prediction, and provides a strong guarantee for the carrying capacity and stable operation of the power communication network.
[0005] The technical solution adopted by the present invention is: a method for predicting power business bandwidth based on a dual-path fusion network, comprising the following steps:
[0006] S1: Build a power business bandwidth prediction model, which includes at least two basic sub-networks: DBN network and LSTM network;
[0007] S2: Select power bandwidth data to establish a data set, and divide the data set into a training set, a validation set, and a test set;
[0008] S3: input the data of the training set into the DBN network and the LSTM network for training, and extract corresponding information respectively to obtain two sets of information;
[0009] S4: performing feature fusion on the two pieces of information in the channel dimension, and inputting the fused features into a classifier to predict bandwidth data of the next stage, thereby obtaining a prediction result;
[0010] S5: Back propagation optimization parameters of the power business bandwidth prediction model are performed using the prediction results and the pre-calibrated actual bandwidth value, and the training is completed;
[0011] S6: Determine whether the trained power business bandwidth prediction model meets the preset convergence requirements. If so, end the training. If not, iterate steps S3-S5 until it meets the requirements.
[0012] Specifically, the depth of the DBN network is set to 6, the number of nodes is set to 128, and the number of neurons of the LSTM network is set to 480.
[0013] Specifically, the ratio of the training set, validation set and test set is set to 7:2:1.
[0014] Specifically, the step S3 is as follows:
[0015] The data of the training set is input into the DBN network to extract the multi-dimensional information in the bandwidth signal; the data of the training set is input into the LSTM network to extract the correlation information of the bandwidth sequence.
[0016] Specifically, the DBN network is composed of three layers of RBM stacking. The DBN network is used to simulate the comprehensive probability of the visible layer and the hidden layer. The definition of the comprehensive probability is expressed as follows:
[0017]
[0018] Where x = h 0 , P(h k |h k+1 ) is the conditional probability of the visible and hidden layers of the k-layer RBM, P(h l-1 |h l ) are the conditional probabilities of the visible and hidden layers of the top RBM.
[0019] Specifically, the LSTM network is used to extract the sequence characteristics of bandwidth data, and the output calculation process of the LSTM network is:
[0020] Calculate the states of the input gate, output gate, and forget gate at time t. The calculation formula is as follows:
[0021]
[0022]
[0023]
[0024] Among them, i t represents the state of the input gate at time t, o t represents the state of the output gate at time t, f t represents the state of the forget gate at time t, x t represents the state of the input layer at time t, h t-1 represents the state of the hidden layer at time t-1, W x , W h and b represent the weight and bias value of the corresponding gate respectively, σ represents the normalization operation of the Sigmoid activation function, and then the storage unit c can be derived t The calculation formula is:
[0025]
[0026]
[0027] in, and b c Represent the weight and bias value of the corresponding memory unit respectively, is a memory unit without a forget gate, c t Represents the current memory unit, and finally the state of the hidden layer at time t is obtained, which is expressed as follows:
[0028] h t =o t ·tanh(c t ).
[0029] Specifically, the classifier in step S4 is a SoftMax classifier.
[0030] Specifically, in step S5, when back-propagating the power business bandwidth prediction model, the Adam optimizer is used to update the parameters, and two hyperparameters of the Adam optimizer are set to 0.9 and 0.999 respectively.
[0031] Specifically, in step S6, a learning rate decay strategy is adopted during iteration, and the initial learning rate is set to 0.001.
[0032] Specifically, the learning rate decay strategy is as follows: the current learning rate is multiplied by 0.95 every three iterations. After 200 iterations, the learning rate decays to 3.27×1e-5.
[0033] Beneficial effects of the present invention: The present invention integrates the DBN network and the LSTM network to form a dual-branch model as the final power business bandwidth prediction model, and trains the model. During training, the model does not need to perform complex data processing, and the sample data does not need to obey a certain distribution, which greatly reduces the requirements for sample data. The trained model can fully extract and analyze the predicted results, thereby successfully predicting the broadband demand for the next time period, with higher prediction accuracy and robustness, improving the accuracy of bandwidth prediction, providing a strong guarantee for the carrying capacity and stable operation of the power communication network, and providing a constructive reference for the next stage of network construction and power company construction. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a flow chart of the steps of the present invention;
[0035] Figure 2 It is a structural schematic diagram of the power business bandwidth prediction model of the present invention;
[0036] Figure 3 It is a schematic diagram of the structure of the DBN network of the present invention;
[0037] Figure 4 It is a structural diagram of the LSTM network of the present invention;
[0038] Figure 5 The figure is a comparison curve of the prediction results and actual bandwidth of the DBN, LSTM, and DBN-LSTM models of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention, and are specifically described in combination with the embodiments below.
[0040] like Figure 1 As shown, the present invention comprises the following steps:
[0041] S1: Construct a power business bandwidth prediction model, the structure diagram of which is as follows Figure 2As shown, it includes at least two basic sub-networks: a DBN network and an LSTM network. The depth of the DBN network is set to 6, the number of nodes is set to 128, and the number of neurons of the LSTM network is set to 480. The model takes advantage of the dense connection of the DBN network in terms of dimension to make the connection between information closer, and also takes advantage of the LSTM in predicting continuous time series.
[0042] S2: Select power bandwidth data to establish a data set, and divide the data set into a training set, a validation set, and a test set. The ratio of the training set, the validation set, and the test set is set to 7:2:1. Use the training set to establish a prediction model, use the validation set for optimization, and use the test set for evaluation. The model takes historical data as input and generates predictions of future changes.
[0043] S3: Input the data of the training set into the DBN network and the LSTM network for training, and extract the corresponding information to obtain two sets of information. The specific process is as follows:
[0044] The data of the training set is input into the DBN network to extract the multi-dimensional information in the bandwidth signal; the data of the training set is input into the LSTM network to extract the correlation information of the bandwidth sequence.
[0045] like Figure 3 As shown, the present invention designs a DBN branch in the model to extract the overall characteristics of bandwidth data. DBN can learn the structure of input data, gradually extract the characteristics of input data through multi-layer RBM, and use these characteristics to classify signals. The present invention adjusts and optimizes the parameters of the model in the experiment, so that the branch can better predict power bandwidth data, wherein RBM is a two-layer undirected graphical model consisting of a visible layer and a hidden layer. They are connected through a "fully connected layer". RBM simulates the probability distribution of visible layer nodes through random features. Unlike BM, the connection between nodes in RBM needs to meet certain restrictions, that is, nodes in the same layer are not allowed to be connected, and nodes in different layers must be fully connected. DBN is a deep learning model for extracting data features. Similar to the RBM structure, nodes in the same layer are not allowed to be connected, and nodes between layers are connected in a "fully connected" manner. The DBN network described in the present invention is composed of three layers of RBM stacking. DBN can simulate the comprehensive probability of visible layer vectors and hidden layers. The definition of comprehensive probability is as follows:
[0046]
[0047] Where x = h 0 , P(h k |h k+1 ) is the conditional probability of the visible and hidden layers of the k-layer RBM, P(hl-1 |h l ) are the conditional probabilities of the visible and hidden layers of the top RBM.
[0048] like Figure 4 As shown, the present invention designs an LSTM branch in the model to extract the time series characteristics of bandwidth data. The LSTM network consists of recursively connected subnetworks, which can be called storage units. Each storage unit contains one or more self-connected memories and three multipliers. The three multipliers are input gates, output gates and forget gates, which provide read, write and reset operations. The LSTM network is not a single-layer neural network, but a multi-layer structure that interacts in a very special way. The LSTM network is used to extract the sequence characteristics of bandwidth data. The output calculation process of the LSTM network is:
[0049] Calculate the states of the input gate, output gate, and forget gate at time t. The calculation formula is as follows:
[0050]
[0051]
[0052]
[0053] Among them, i t represents the state of the input gate at time t, o t represents the state of the output gate at time t, f t represents the state of the forget gate at time t, x t represents the state of the input layer at time t, h t-1 represents the state of the hidden layer at time t-1, W x , W h and b represent the weight and bias value of the corresponding gate respectively, σ represents the normalization operation of the Sigmoid activation function, and then the storage unit c can be derived t The calculation formula is:
[0054]
[0055]
[0056] in, and b c Represent the weight and bias value of the corresponding memory unit respectively, is a memory unit without a forget gate, c t Represents the current memory unit, and finally the state of the hidden layer at time t is obtained, which is expressed as follows:
[0057] h t =o t ·tanh(ct )
[0058] From the above equation, we can see that the function of the input gate is to multiply the storage units without the forget gate and control the input into the storage unit. The function of the forget gate is to multiply the memory units at the last moment and control the decay in the memory units. The function of the output gate is to multiply the storage units in the current memory to obtain the output of the hidden layer, control the output of the storage unit to the hidden layer, and further affect the result of each gate at the next moment. LSTM solves the problem of gradient disappearance.
[0059] S4: performing feature fusion on the two information paths in the channel dimension, and inputting the fused features into the SoftMax classifier to predict the bandwidth data of the next stage, and obtaining a prediction result;
[0060] In this embodiment, before the training starts, the network weights are randomly initialized, the initial learning rate is adjusted to 0.001, and when the DBN-LSTM network is trained using the training data set, the power bandwidth data of a single month is input into the current network each time, and the prediction data of the current network is obtained through forward propagation calculation.
[0061] S5: Use the prediction results and the pre-calibrated actual bandwidth value to back-propagate the optimization parameters of the power business bandwidth prediction model, that is, use the mean square error loss function to calculate the loss function between the output bandwidth and its corresponding manually labeled data, and use the chain rule to back-propagate this loss function to the network. The Adam optimization algorithm is an extension of the stochastic gradient descent method. The Adam optimizer uses momentum and adaptive learning rate to speed up the convergence speed. During the back-propagation process, the present invention uses the Adam optimizer to update the parameters in the network. The hyperparameters β1 and β2 of the Adam optimizer are set to the default values of 0.9 and 0.999, respectively.
[0062] S6: Determine whether the trained power business bandwidth prediction model meets the preset convergence requirements. If so, end the training. If not, iterate steps S3-S5 until it meets the requirements.
[0063] It is not advisable to use a large learning rate during the convergence process of the network. A large learning rate can easily cause the network to oscillate during the convergence process, thereby deviating from the optimal value. On the other hand, in deep neural networks, as the number of layers increases, gradient vanishing or gradient explosion is likely to occur during the gradient descent process. Therefore, the embodiment of the present invention adopts a learning rate decay strategy to optimize the learning process during the iteration process. The learning rate decay strategy used here multiplies the current learning rate by 0.95 every 3 iterations. After 200 iterations, the learning rate decays to 3.27×1e-5, which meets the convergence requirements.
[0064] During the initial convergence process of the network, the present invention also sets a learning rate warm-up stage, that is, a smaller learning rate is used in the first few iterations, and then gradually increased to the standard level. Its significance lies in that in the initial stage of model training, the model is extremely unfamiliar with the data distribution, and a smaller learning rate is needed to gradually adjust and correct the weight distribution. If a large learning rate is used directly, there is a high probability that the training results will deviate from the correct gradient direction, thereby causing the gradient to disappear or the gradient to explode, and may also indirectly cause overfitting.
[0065] In order to further improve the accuracy of the power business bandwidth prediction method based on the dual-path fusion network proposed in the present invention, the branch model parameters will be selected below, and the results are shown in Tables 1 and 2.
[0066] Table 1
[0067]
[0068] Table 1 shows the influence of the network depth and number of network nodes of the DBN branch on the bandwidth prediction accuracy and prediction time. In order to simplify the network, the same number of nodes is selected for each hidden layer. The experimental results show that as the network deepens and the number of nodes increases, the bandwidth prediction accuracy of the network model is gradually increasing. When the network depth is 6 and the number of nodes is 256, the prediction accuracy is the highest, but the program runs relatively slowly. Therefore, the present invention selects a DBN network with a network depth of 6 and a number of nodes of 128 as a branch. Table 2 shows the influence of the number of neurons in the LSTM branch on the bandwidth prediction accuracy and prediction time. When the number of neurons is 640, the prediction effect is the best, but at the same time, considering the network execution efficiency, the present invention sets the number of neurons to 480.
[0069] Table 2
[0070]
[0071] In order to further illustrate the performance of the power business bandwidth prediction model proposed in the present invention, namely the DBN-LSTM model, a comparative simulation experiment was carried out using the DBN model, LSTM model, ARIMA model, SVM support vector machine, LightGBM and DBN-LSTM model in the same environment. Figure 5 In order to compare the actual bandwidth with the predicted bandwidth of DBN, LSTM, and DBN-LSTM models, the present invention divides the experimental data into three groups at a ratio of 1:2:3, and the evaluation index is the mean square error. The prediction accuracy of the above network bandwidth situation change is shown in Table 3. It can be seen from Table 3 that the network of the present invention is superior to other networks in each group of indicators.
[0072] Table 3
[0073]
[0074] The classification performance of the algorithm used in the bandwidth prediction method of the present invention can also be measured by other statistical data, namely: true positive (TP), false positive (FP), false negative (FN) and true negative (TN), which are defined as follows:
[0075] If the true label is A and the predicted label is also A, the sample is considered TP; if the true label is not A and the predicted label is A, the sample is considered FP; if the true label is A and the predicted label is not A, the sample is considered FN; if the true label is not A and the predicted label is not A, the sample is considered TN. Through the above statistics, the present invention can obtain the accuracy P, recall rate R and F1 score of the performance evaluation indicators, which are expressed as follows:
[0076]
[0077]
[0078]
[0079] P, R, and F1 are evaluation indicators for each category. The present invention uses the average value P with equal weights. avg , R avg , To evaluate the overall performance, the closer these indicators are to 1, the better the performance of the model algorithm.
[0080] The above analysis of the network's signal-to-noise ratio shows that, as the signal-to-noise ratio increases, P avg , R avg , The classification performance of DBN-LSTM algorithm is getting better and better. When the signal-to-noise ratio SNR = 10dB, P avg =0.778, R avg =0.798 and At this time, the classification performance of the algorithm is better. When the signal-to-noise ratio SNR = -5dB, P avg =0.526, R avg =0.618 and At this time, the classification performance of the algorithm is poor, but compared with other models, the DBN-LSTM model still has certain advantages.
[0081] Table 4
[0082]
[0083] The present invention studies the prediction of power network bandwidth and proposes a new bandwidth prediction method based on DBN and LSTM networks. The method does not require complex data processing, and sample data does not need to obey a certain distribution, which greatly reduces the requirements for sample data. The present invention compares a variety of different models and conducts a large number of simulation experiments to verify the effectiveness of the method. The experimental results show that the algorithm adopted in the steps of the method has higher accuracy and robustness than traditional algorithms such as support vector machines (SVM). The present invention provides a strong guarantee for the carrying capacity and stable operation of the power communication network, and provides a constructive reference for the next stage of network construction and power company construction.
[0084] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations within the meaning and scope of the elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A method for predicting power business bandwidth based on a dual-path fusion network, characterized in that: The steps include: S1: Build a power business bandwidth prediction model, which includes at least two basic sub-networks: DBN network and LSTM network; S2: Select power bandwidth data to establish a data set, and divide the data set into a training set, a validation set, and a test set; S3: input the data of the training set into the DBN network and the LSTM network for training, and extract corresponding information respectively to obtain two pieces of information; S4: performing feature fusion on the two pieces of information in the channel dimension, and inputting the fused features into a classifier to predict bandwidth data of the next stage, thereby obtaining a prediction result; S5: Back propagation optimization parameters of the power business bandwidth prediction model are performed using the prediction results and the pre-calibrated actual bandwidth value, and the training is completed; S6: Determine whether the trained power business bandwidth prediction model meets the preset convergence conditions. If so, terminate the training. If not, iterate steps S3-S5 until it meets the conditions. The step S3 is specifically as follows: Input the data of the training set into the DBN network to extract the multi-dimensional information in the bandwidth signal; Input the data of the training set into the LSTM network to extract the correlation information of the bandwidth sequence; The DBN network is composed of three layers of RBM stacking. The DBN network is used to simulate the comprehensive probability of the visible layer and the hidden layer. The definition of the comprehensive probability is as follows: Where x = h 0 , P(h k |h k+1 ) is the conditional probability of the visible and hidden layers of the k-layer RBM, P(h l-1 |h l ) are the conditional probabilities of the visible and hidden layers of the top RBM; The LSTM network is used to extract the sequence characteristics of bandwidth data. The output calculation process of the LSTM network is: Calculate the states of the input gate, output gate, and forget gate at time t. The calculation formula is as follows: Among them, i t represents the state of the input gate at time t, o t represents the state of the output gate at time t, f t represents the state of the forget gate at time t, x t represents the state of the input layer at time t, h t-1 represents the state of the hidden layer at time t-1, W x , W h and b represent the weight and bias value of the corresponding gate respectively, σ represents the normalization operation of the Sigmoid activation function, and then the storage unit c can be derived t The calculation formula is: in, and b c Represent the weight and bias value of the corresponding memory unit respectively, is a memory unit without a forget gate, c t Represents the current memory unit, and finally the state of the hidden layer at time t is obtained, which is expressed as follows: h t =o t ·tanh(c t )。 2. According to claim 1, a method for predicting power service bandwidth based on a dual-path fusion network is characterized in that: The depth of the DBN network is set to 6, the number of nodes is set to 128, and the number of neurons of the LSTM network is set to 480.
3. The method for predicting power business bandwidth based on a dual-path fusion network according to claim 1 is characterized in that: The ratio of the training set, validation set, and test set is set to 7:2:
1.
4. The method for predicting power service bandwidth based on a dual-path fusion network according to claim 1 is characterized in that: The classifier in step S4 is a SoftMax classifier.
5. The method for predicting power business bandwidth based on a dual-path fusion network according to claim 1 is characterized in that: In step S5, when back-propagating the power business bandwidth prediction model, the Adam optimizer is used to update the parameters, and two hyperparameters of the Adam optimizer are set to 0.9 and 0.999 respectively.
6. The method for predicting power service bandwidth based on a dual-path fusion network according to claim 1 is characterized in that: In step S6, a learning rate decay strategy is adopted during iteration, and the initial learning rate is set to 0.
001.
7. A method for predicting power business bandwidth based on a dual-path fusion network according to claim 6, characterized in that: The specific learning rate decay strategy is: multiply the current learning rate by 0.95 every three iterations. After 200 iterations, the learning rate decays to 3.27×1e-5.
