Model training method and device, traffic prediction method and device, and storage medium

By preprocessing and feature extraction of historical network traffic, network topology and traffic package data, combined with multi-input tensor fusion and graph transformation models, the problem of inaccurate network traffic prediction results in the existing technology is solved and more accurate traffic forecast.

CN115460099BActive Publication Date: 2024-09-17CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211148056.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-20
Publication Date
2024-09-17
Estimated Expiration
2042-09-20

AI Technical Summary

Technical Problem

In the existing technology, machine learning models trained using only historical network traffic data cannot effectively reflect the impact of changes in traffic packages or network topology when predicting network traffic, resulting in inaccurate prediction results.

Method used

By preprocessing historical network traffic data, network topology data, and traffic package historical data, the packet feature extraction model is used to extract features, and the multi-input tensor fusion model is used to calculate correlation information, and the graph transformation model is used for training and verification. , to generate more accurate traffic prediction results.

Benefits of technology

It improves the accuracy of network traffic prediction, enables accurate prediction when traffic packages and network topology changes, and supports more effective business planning and network adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115460099B
    Figure CN115460099B
Patent Text Reader

Abstract

The present disclosure provides a model training method and device, a traffic prediction method and device, and a storage medium, and relates to the field of network technology. The model training method includes: preprocessing historical network traffic data, network topology data, and traffic package historical data respectively; using the DPFE model to extract the first feature of the preprocessed historical network traffic data, the second feature of the preprocessed network topology data, and the third feature of the preprocessed traffic package historical data respectively; using the MTF model to calculate the correlation information of the first feature and the third feature, and the fusion feature of the first feature and the third feature; dividing the fusion feature, the correlation information of the first feature and the third feature, and the second feature into a training set and a verification set; using the fusion feature, the correlation information, and the second feature included in the training set to train the Graphformer model; using the fusion feature, the correlation information, and the second feature included in the verification set to verify the Graphformer model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network technology, and in particular to a model training method and device, a traffic prediction method and device, and a storage medium. Background Art

[0002] In the prior art, a machine learning model is trained by using historical network traffic data so that the network traffic can be predicted using the trained machine learning model. Summary of the invention

[0003] The inventors noticed that in the related art, since the machine learning model is trained only using historical network traffic data, when the trained machine learning model performs network traffic prediction, the prediction results cannot reflect the impact of traffic packages or changes in network topology on network traffic.

[0004] Based on this, the present disclosure provides a model training scheme that can effectively improve the accuracy of network traffic prediction.

[0005] According to a first aspect of an embodiment of the present disclosure, a model training method is provided, including: preprocessing historical network traffic data, network topology data and traffic package historical data respectively; extracting a first feature of the preprocessed historical network traffic data, a second feature of the preprocessed network topology data and a third feature of the preprocessed traffic package historical data respectively using a data packet feature extraction DPFE model; calculating correlation information of the first feature and the third feature, as well as fusion features of the first feature and the third feature using a multi-input tensor fusion MTF model; dividing the fusion feature, the correlation information of the first feature and the third feature and the second feature into a training set and a verification set; training a graph transformation Graphformer model using the fusion feature, correlation information and second feature included in the training set; and verifying the Graphformer model using the fusion feature, correlation information and second feature included in the verification set.

[0006] In some embodiments, training the Graphformer model using the fusion features, correlation information and second features included in the training set includes: using the Graphformer model to process the fusion features, correlation information and second features included in the training set to generate a first traffic prediction result; determining the huber loss function based on the first traffic prediction result; and training the Graphformer model using the huber loss function.

[0007] In some embodiments, verifying the Graphformer model using the fusion features, correlation information and second features included in the validation set includes: using the Graphformer model to process the fusion features, correlation information and second features included in the validation set to generate a second traffic prediction result; and updating the hyperparameters of the Graphformer model based on the second traffic prediction result and the corresponding preset result.

[0008] In some embodiments, preprocessing the historical network traffic data, network topology data and traffic package historical data respectively includes: cleaning abnormal data of the historical network traffic data, network topology data and traffic package historical data respectively.

[0009] In some embodiments, preprocessing the historical network traffic data, network topology data and traffic package historical data respectively includes: filling in the incomplete data in the historical network traffic data with the average value of the historical network traffic data; filling in the incomplete data in the network topology data with the average value of the network topology data; filling in the incomplete data in the traffic package historical data with the average value of the traffic package historical data.

[0010] According to a second aspect of an embodiment of the present disclosure, a model training device is provided, including: a first processing module, configured to preprocess historical network traffic data, network topology data and traffic package historical data respectively; a second processing module, configured to use a data packet feature extraction DPFE model to extract a first feature of the preprocessed historical network traffic data, a second feature of the preprocessed network topology data and a third feature of the preprocessed traffic package historical data respectively; a third processing module, configured to use a multi-input tensor fusion MTF model to calculate the correlation information of the first feature and the third feature, and the fusion feature of the first feature and the third feature; a fourth processing module, configured to divide the fusion feature, the correlation information of the first feature and the third feature and the second feature into a training set and a verification set; a fifth processing module, configured to train a graph transformation Graphformer model using the fusion feature, correlation information and second feature included in the training set; and a sixth processing module, configured to verify the Graphformer model using the fusion feature, correlation information and second feature included in the verification set.

[0011] In some embodiments, the fifth processing module is configured to use the Graphformer model to process the fusion features, correlation information and second features included in the training set to generate a first traffic prediction result, determine the huber loss function based on the first traffic prediction result, and train the Graphformer model using the huber loss function.

[0012] In some embodiments, the sixth processing module is configured to use the Graphformer model to process the fusion features, correlation information and second features included in the validation set to generate a second traffic prediction result, and update the hyperparameters of the Graphformer model based on the second traffic prediction result and the corresponding preset result.

[0013] In some embodiments, the first processing module is configured to perform abnormal data cleaning on historical network traffic data, network topology data and traffic package historical data respectively.

[0014] In some embodiments, the first processing module is configured to fill in the incomplete data in the historical network traffic data with the average value of the historical network traffic data, to fill in the incomplete data in the network topology data with the average value of the network topology data, and to fill in the incomplete data in the traffic package historical data with the average value of the traffic package historical data.

[0015] According to a third aspect of an embodiment of the present disclosure, a model training device is provided, comprising: a memory configured to store instructions; a processor coupled to the memory, the processor being configured to execute a model training method as involved in any of the above embodiments based on the instructions stored in the memory.

[0016] According to the fourth aspect of the embodiment of the present disclosure, a traffic prediction method is provided, including: extracting features of historical network traffic data, network topology data and traffic package historical data respectively; and processing the extracted features using a Graphformer model to obtain a traffic prediction result.

[0017] In some embodiments, respectively extracting features of historical network traffic data, network topology data, and traffic package historical data includes: respectively preprocessing the historical network traffic data, network topology data, and traffic package historical data; respectively extracting a first feature of the preprocessed historical network traffic data, a second feature of the preprocessed network topology data, and a third feature of the preprocessed traffic package historical data using a DPFE model; and calculating correlation information between the first feature and the third feature, as well as fusion features of the first feature and the third feature using an MTF model.

[0018] In some embodiments, processing the extracted features using the Graphformer model includes: processing the fused features, the correlation information, and the second feature using the Graphformer model to obtain a traffic prediction result.

[0019] In some embodiments, the Graphformer model is trained using the model training method of any of the above embodiments.

[0020] In some embodiments, preprocessing the historical network traffic data, network topology data and traffic package historical data respectively includes: cleaning abnormal data of the historical network traffic data, network topology data and traffic package historical data respectively.

[0021] In some embodiments, preprocessing the historical network traffic data, network topology data and traffic package historical data respectively includes: filling in the incomplete data in the historical network traffic data with the average value of the historical network traffic data; filling in the incomplete data in the network topology data with the average value of the network topology data; filling in the incomplete data in the traffic package historical data with the average value of the traffic package historical data.

[0022] According to the fifth aspect of the embodiment of the present disclosure, a traffic prediction device is provided, including: a first traffic prediction module, configured to extract features of historical network traffic data, network topology data and traffic package historical data respectively; a second traffic prediction module, configured to process the extracted features using a Graphformer model to obtain a traffic prediction result.

[0023] In some embodiments, the first traffic prediction module includes: a preprocessing module, configured to preprocess historical network traffic data, network topology data and traffic package historical data respectively; a feature extraction module, configured to use the DPFE model to extract the first feature of the preprocessed historical network traffic data, the second feature of the preprocessed network topology data and the third feature of the preprocessed traffic package historical data respectively; a feature processing module, configured to use the MTF model to calculate the correlation information of the first feature and the third feature, as well as the fusion feature of the first feature and the third feature.

[0024] In some embodiments, the second traffic prediction module is configured to process the fused features, the correlation information, and the second features using a Graphformer model to obtain a traffic prediction result.

[0025] In some embodiments, the Graphformer model is trained using the model training method involved in any of the above embodiments.

[0026] In some embodiments, the preprocessing module cleans the historical network traffic data, network topology data and traffic package historical data separately.

[0027] In some embodiments, the preprocessing module uses the average value of historical network traffic data to fill in the incomplete data in the historical network traffic data; the preprocessing module uses the average value of network topology data to fill in the incomplete data in the network topology data; the preprocessing module uses the average value of traffic package historical data to fill in the incomplete data in the traffic package historical data.

[0028] According to the sixth aspect of an embodiment of the present disclosure, a traffic prediction device is provided, comprising: a memory configured to store instructions; a processor coupled to the memory, the processor being configured to execute a traffic prediction method as involved in any of the above embodiments based on the instructions stored in the memory.

[0029] According to a seventh aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the method involved in any of the above embodiments is implemented.

[0030] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present disclosure 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 disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0032] Figure 1 A flowchart of a model training method according to an embodiment of the present disclosure;

[0033] Figure 2 A schematic diagram of model training according to an embodiment of the present disclosure;

[0034] Figure 3 A schematic diagram of the structure of a model training device according to an embodiment of the present disclosure;

[0035] Figure 4 A schematic diagram of the structure of a model training device according to another embodiment of the present disclosure;

[0036] Figure 5 A flow chart of a flow prediction method according to an embodiment of the present disclosure;

[0037] Figure 6 A flow chart of a flow prediction method according to another embodiment of the present disclosure;

[0038] Figure 7A schematic diagram of the structure of a flow prediction device according to an embodiment of the present disclosure;

[0039] Figure 8 A schematic diagram of the structure of a flow prediction device according to another embodiment of the present disclosure;

[0040] Fig. 9 It is a structural diagram of a traffic prediction device according to another embodiment of the present disclosure. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0042] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure.

[0043] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0044] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0045] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0046] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0047] Figure 1 The following is a flow chart of a model training method according to an embodiment of the present disclosure. In some embodiments, the following model training method is performed by a model training device.

[0048] In step 101, historical network traffic data, network topology data and traffic package historical data are preprocessed respectively.

[0049] In some embodiments, abnormal data cleaning is performed on historical network traffic data, network topology data, and traffic package historical data respectively, so as to delete data exceeding a preset range.

[0050] In some embodiments, the incomplete data in the historical network traffic data, network topology data and traffic package historical data are supplemented respectively to ensure the model training effect.

[0051] For example, the average value of historical network traffic data is used to fill in the incomplete data in the historical network traffic data, the average value of network topology data is used to fill in the incomplete data in the network topology data, and the average value of traffic package historical data is used to fill in the incomplete data in the traffic package historical data.

[0052] In step 102, a DPFE (Data Package Feature Extraction) model is used to extract the first feature of the preprocessed historical network traffic data, the second feature of the preprocessed network topology data, and the third feature of the preprocessed traffic package historical data.

[0053] In step 103, the correlation information between the first feature and the third feature, and the fusion feature of the first feature and the third feature are calculated using an MTF (Multi Input Tensor Fusion) model.

[0054] In step 104, the fused feature, the correlation information of the first feature and the third feature, and the second feature are divided into a training set and a validation set.

[0055] For example, the obtained fusion features, the correlation information of the first and third features, and the second feature are divided into a training set and a validation set according to a predetermined ratio, respectively. Thus, the generated training set and validation set both have the corresponding fusion features, the correlation information of the first and third features, and the second feature.

[0056] In step 105, the Graphformer model is trained using the fusion features, correlation information and second features included in the training set.

[0057] In some embodiments, the fusion feature, correlation information, and second feature included in the training set are processed using a Graphformer model to generate a first traffic prediction result. Next, a huber loss function is determined based on the first traffic prediction result. The huber loss function is then used to train the Graphformer model.

[0058] In step 106, the Graphformer model is verified using the fusion features, correlation information, and second features included in the verification set.

[0059] In some embodiments, the fused features, correlation information, and second features included in the validation set are processed using a Graphformer model to generate a second traffic prediction result. Next, the hyperparameters of the Graphformer model are updated according to the second traffic prediction result and the corresponding preset result.

[0060] Figure 2 A schematic diagram of model training according to an embodiment of the present disclosure.

[0061] like Figure 2 As shown, the DPFE model is used to extract the first feature of the historical network traffic data, the second feature of the network topology data, and the third feature of the traffic package historical data. Next, the MTF model calculates the correlation information of the first feature and the third feature, as well as the fusion feature of the first feature and the third feature. Next, the GraphFormer model is trained using the fusion feature, the correlation information of the first feature and the third feature, and the second feature.

[0062] In the model training method provided in the above embodiments of the present disclosure, the model is trained by utilizing historical network traffic data, network topology data, and traffic package historical data, so that the trained model can accurately predict network traffic when the network topology changes and the traffic package is adjusted, so as to facilitate further business planning and network adjustment.

[0063] Figure 3 FIG. 1 is a schematic diagram of the structure of a model training device according to an embodiment of the present disclosure. Figure 3 As shown, the model training module includes a first processing module 31, a second processing module 32, a third processing module 33, a fourth processing module 34, a fifth processing module 35 and a sixth processing module 36.

[0064] The first processing module 31 is configured to pre-process the historical network traffic data, the network topology data and the traffic package historical data respectively.

[0065] In some embodiments, the first processing module 31 performs abnormal data cleaning on historical network traffic data, network topology data and traffic package historical data respectively, so as to delete data exceeding a preset range.

[0066] In some embodiments, the first processing module 31 supplements the incomplete data in the historical network traffic data, network topology data and traffic package historical data respectively to ensure the model training effect.

[0067] For example, the first processing module 31 uses the average value of historical network traffic data to fill in the incomplete data in the historical network traffic data, uses the average value of the network topology data to fill in the incomplete data in the network topology data, and uses the average value of the traffic package historical data to fill in the incomplete data in the traffic package historical data.

[0068] The second processing module 32 is configured to respectively extract the first feature of the preprocessed historical network traffic data, the second feature of the preprocessed network topology data, and the third feature of the preprocessed traffic package historical data using the DPFE model.

[0069] The third processing module 33 is configured to calculate the correlation information between the first feature and the third feature, and the fusion feature of the first feature and the third feature by using the MTF model.

[0070] The fourth processing module 34 is configured to divide the fused feature, the correlation information of the first feature and the third feature, and the second feature into a training set and a validation set.

[0071] The fifth processing module 35 is configured to train the Graphformer model using the fusion features, correlation information and second features included in the training set.

[0072] In some embodiments, the fifth processing module 35 uses the Graphformer model to process the fusion features, correlation information and second features included in the training set to generate a first traffic prediction result, determines the huber loss function based on the first traffic prediction result, and trains the Graphformer model using the huber loss function.

[0073] The sixth processing module 36 is configured to validate the Graphformer model using the fused features, correlation information and second features included in the validation set.

[0074] In some embodiments, the sixth processing module 36 uses the Graphformer model to process the fusion features, correlation information and second features included in the validation set to generate a second traffic prediction result, and updates the hyperparameters of the Graphformer model based on the second traffic prediction result and the corresponding preset result.

[0075] Figure 4 FIG. 1 is a schematic diagram of the structure of a model training device according to another embodiment of the present disclosure. Figure 4 As shown, the model training device includes a memory 41 and a processor 42.

[0076] The memory 41 is used to store instructions. The processor 42 is coupled to the memory 41. The processor 42 is configured to execute the instructions stored in the memory to implement the following. Figure 1 The method of any one of the embodiments.

[0077] like Figure 4 As shown, the model training device also includes a communication interface 43 for information exchange with other devices. At the same time, the model training device also includes a bus 44, through which the processor 42, the communication interface 43, and the memory 41 communicate with each other.

[0078] The memory 41 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory. The memory 41 may also be a memory array. The memory 41 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules.

[0079] In addition, the processor 42 may be a central processing unit (CPU), or may be an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present disclosure.

[0080] The present disclosure also relates to a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, which are executed by a processor to implement the following Figure 1 The method of any one of the embodiments.

[0081] Figure 5 The flow chart of the flow prediction method of one embodiment of the present disclosure is as follows. In some embodiments, the following flow prediction method is executed by a flow prediction device.

[0082] In step 501, features of historical network traffic data, network topology data, and traffic package historical data are extracted respectively.

[0083] In some embodiments, the feature extraction step of step 501 is as follows: Figure 6 As shown in steps 601-603 in .

[0084] In step 502, the extracted features are processed using a Graphformer model to obtain a flow prediction result.

[0085] In some embodiments, the feature extraction step of step 502 is as follows: Figure 6 As shown in step 604 in .

[0086] Figure 6 FIG. 1 is a flow chart of a flow prediction method according to another embodiment of the present disclosure. In some embodiments, the following flow prediction method is executed by a flow prediction device.

[0087] In step 601, historical network traffic data, network topology data and traffic package historical data are preprocessed respectively.

[0088] In some embodiments, abnormal data cleaning is performed on historical network traffic data, network topology data, and traffic package historical data respectively, so as to delete data exceeding a preset range.

[0089] In some embodiments, the incomplete data in the historical network traffic data, network topology data and traffic package historical data are supplemented respectively to ensure the model training effect.

[0090] For example, the average value of historical network traffic data is used to fill in the incomplete data in the historical network traffic data, the average value of network topology data is used to fill in the incomplete data in the network topology data, and the average value of traffic package historical data is used to fill in the incomplete data in the traffic package historical data.

[0091] In step 602, the DPFE model is used to extract the first feature of the preprocessed historical network traffic data, the second feature of the preprocessed network topology data, and the third feature of the preprocessed traffic package historical data.

[0092] In step 603, the correlation information between the first feature and the third feature, and the fusion feature of the first feature and the third feature are calculated using the MTF model.

[0093] In step 604, the fused feature, the correlation information and the second feature are processed using the Graphformer model to obtain a traffic prediction result.

[0094] In some embodiments, the Graphformer model utilizes Figure 1 The model is obtained by training using the model training method of any embodiment.

[0095] Figure 7 FIG. 1 is a schematic diagram of the structure of a flow prediction device according to an embodiment of the present disclosure. Figure 7 As shown, the traffic prediction device includes a first traffic prediction module 71 and a second traffic prediction module 72 .

[0096] The first traffic prediction module 71 is configured to extract features of historical network traffic data, network topology data and traffic package historical data respectively.

[0097] The second traffic prediction module 72 is configured to process the extracted features using a Graphformer model to obtain a traffic prediction result.

[0098] Figure 8 FIG. 1 is a schematic diagram of the structure of a flow prediction device according to an embodiment of the present disclosure. Figure 8 As shown, the first traffic prediction module includes a preprocessing module 81 , a feature extraction module 82 and a feature processing module 83 .

[0099] The preprocessing module 81 is configured to preprocess the historical network traffic data, the network topology data and the traffic package historical data respectively.

[0100] In some embodiments, the pre-processing module 81 performs abnormal data cleaning on the historical network traffic data, network topology data and traffic package historical data respectively, so as to delete the data exceeding the preset range.

[0101] In some embodiments, the preprocessing module 81 supplements the incomplete data in the historical network traffic data, network topology data and traffic package historical data respectively to ensure the model training effect.

[0102] For example, the preprocessing module 681 uses the average value of historical network traffic data to fill in the incomplete data in the historical network traffic data, uses the average value of the network topology data to fill in the incomplete data in the network topology data, and uses the average value of the traffic package historical data to fill in the incomplete data in the traffic package historical data.

[0103] The feature extraction module 82 is configured to use the DPFE model to respectively extract the first feature of the preprocessed historical network traffic data, the second feature of the preprocessed network topology data, and the third feature of the preprocessed traffic package historical data.

[0104] The feature processing module 83 is configured to calculate the correlation information between the first feature and the third feature, and the fusion feature of the first feature and the third feature by using the MTF model.

[0105] In some embodiments, the second traffic prediction module 72 is configured to process the fused features, the correlation information and the second features using a Graphformer model to obtain a traffic prediction result.

[0106] In some embodiments, the Graphformer model utilizes Figure 1 The model is obtained by training using the model training method involved in any one of the embodiments.

[0107] Fig. 9 FIG. 1 is a schematic diagram of the structure of a flow prediction device according to another embodiment of the present disclosure. Fig. 9 As shown, the traffic prediction device includes a memory 91, a processor 92, a communication interface 93 and a bus 94. Fig. 9 and Figure 4 The difference is that in Fig. 9 In the illustrated embodiment, the processor 92 is configured to execute instructions stored in the memory to implement the following Figure 5-6 The method of any one of the embodiments.

[0108] The present disclosure also relates to a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, which are executed by a processor to implement the following Figure 5-6 The method of any one of the embodiments.

[0109] In some embodiments, the functional unit module described above can be implemented as a general-purpose processor, a programmable logic controller (PLC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components or any appropriate combination thereof for performing the functions described in the present disclosure.

[0110] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0111] The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.

Claims

1. A model training method, comprising: Preprocess historical network traffic data, network topology data and traffic package historical data respectively; The data packet feature extraction DPFE model is used to respectively extract the first feature of the preprocessed historical network traffic data, the second feature of the preprocessed network topology data, and the third feature of the preprocessed traffic package historical data; Calculating correlation information between the first feature and the third feature, and fusion features of the first feature and the third feature using a multi-input tensor fusion MTF model; Dividing the fused feature, the correlation information of the first feature and the third feature, and the second feature into a training set and a validation set; Training a graphformer model using the fusion features, correlation information and second features included in the training set; The Graphformer model is verified using the fusion features, correlation information and the second feature included in the verification set.

2. The method according to claim 1, wherein: Training the Graphformer model using the fusion feature, correlation information and second feature included in the training set includes: Processing the fusion feature, correlation information and second feature included in the training set by using the Graphformer model to generate a first traffic prediction result; Determine a huber loss function according to the first traffic prediction result; The Graphformer model is trained using the huber loss function.

3. The method according to claim 2, wherein: Verifying the Graphformer model using the fusion feature, correlation information and second feature included in the verification set includes: Processing the fusion features, correlation information, and second features included in the validation set using the Graphformer model to generate a second traffic prediction result; According to the second traffic prediction result and the corresponding preset result, the hyperparameters of the Graphformer model are updated.

4. The method according to any one of claims 1 to 3, wherein: Preprocessing the historical network traffic data, network topology data and traffic package historical data includes: Abnormal data cleaning is performed on historical network traffic data, network topology data and traffic package historical data respectively.

5. The method according to claim 4, wherein: Preprocessing the historical network traffic data, network topology data and traffic package historical data includes: The incomplete data in the historical network traffic data is filled by using the average value of the historical network traffic data; The incomplete data in the network topology structure data are filled by using the average value of the network topology structure data; The incomplete data in the historical data of the traffic package is filled with the average value of the historical data of the traffic package.

6. A model training device, comprising: A first processing module is configured to pre-process the historical network traffic data, the network topology data and the traffic package historical data respectively; The second processing module is configured to respectively extract a first feature of the preprocessed historical network traffic data, a second feature of the preprocessed network topology data, and a third feature of the preprocessed traffic package historical data using a data packet feature extraction DPFE model; A third processing module is configured to calculate the correlation information between the first feature and the third feature, and the fusion feature of the first feature and the third feature by using a multi-input tensor fusion MTF model; a fourth processing module, configured to divide the fused feature, the correlation information of the first feature and the third feature, and the second feature into a training set and a validation set; A fifth processing module is configured to train a graphformer model using the fusion feature, correlation information and second feature included in the training set; The sixth processing module is configured to verify the Graphformer model using the fusion features, correlation information and second features included in the verification set.

7. The device according to claim 6, wherein: The fifth processing module is configured to use the Graphformer model to process the fusion features, correlation information and second features included in the training set to generate a first traffic prediction result, determine the huber loss function based on the first traffic prediction result, and train the Graphformer model using the huber loss function.

8. The device according to claim 7, wherein: The sixth processing module is configured to use the Graphformer model to process the fusion features, correlation information and second features included in the verification set to generate a second traffic prediction result, and update the hyperparameters of the Graphformer model based on the second traffic prediction result and the corresponding preset result.

9. The device according to any one of claims 6 to 8, wherein: The first processing module is configured to perform abnormal data cleaning on historical network traffic data, network topology data and traffic package historical data respectively.

10. The device according to claim 9, wherein: The first processing module is configured to fill in the incomplete data in the historical network traffic data with the average value of the historical network traffic data, to fill in the incomplete data in the network topology data with the average value of the network topology data, and to fill in the incomplete data in the traffic package historical data with the average value of the traffic package historical data.

11. A model training device, comprising: a memory configured to store instructions; A processor is coupled to the memory, and the processor is configured to execute the method according to any one of claims 1 to 5 based on instructions stored in the memory.

12. A flow prediction method, comprising: Extract the features of historical network traffic data, network topology data and traffic package historical data respectively; The extracted features are processed using the Graphformer model to obtain traffic prediction results; Among them, the features of extracting historical network traffic data, network topology data and traffic package historical data include: Preprocess historical network traffic data, network topology data and traffic package historical data respectively; The DPFE model is used to extract the first feature of the preprocessed historical network traffic data, the second feature of the preprocessed network topology data, and the third feature of the preprocessed traffic package historical data; Calculating correlation information between the first feature and the third feature, and fusion features of the first feature and the third feature by using the MTF model; Among them, using the Graphformer model to process the extracted features includes: The fused feature, the correlation information and the second feature are processed using the Graphformer model to obtain a traffic prediction result.

13. The method according to claim 12, wherein: The Graphformer model is trained using the model training method described in any one of claims 1-5.

14. The method according to claim 12, wherein: Preprocessing the historical network traffic data, network topology data and traffic package historical data includes: Abnormal data cleaning is performed on historical network traffic data, network topology data and traffic package historical data respectively.

15. The method according to claim 14, wherein: Preprocessing the historical network traffic data, network topology data and traffic package historical data includes: The incomplete data in the historical network traffic data is filled by using the average value of the historical network traffic data; The incomplete data in the network topology structure data are filled by using the average value of the network topology structure data; The incomplete data in the historical data of the traffic package is filled with the average value of the historical data of the traffic package.

16. A flow prediction device, comprising: The first traffic prediction module is configured to extract features of historical network traffic data, network topology data, and traffic package historical data, respectively, wherein the first traffic prediction module includes: A preprocessing module is configured to preprocess the historical network traffic data, the network topology data and the traffic package historical data respectively; A feature extraction module is configured to respectively extract a first feature of the preprocessed historical network traffic data, a second feature of the preprocessed network topology data, and a third feature of the preprocessed traffic package historical data using the DPFE model; A feature processing module, configured to calculate correlation information between the first feature and the third feature, and a fusion feature of the first feature and the third feature by using an MTF model; The second traffic prediction module is configured to use a Graphformer model to process the extracted features to obtain a traffic prediction result, wherein the Graphformer model is used to process the fused features, the correlation information and the second features to obtain a traffic prediction result.

17. The device according to claim 16, wherein: The Graphformer model is trained using the model training method described in any one of claims 1-5.

18. The device according to claim 16, wherein: The preprocessing module cleans abnormal data of historical network traffic data, network topology data and traffic package historical data respectively.

19. The device according to claim 18, wherein: The preprocessing module uses the average value of historical network traffic data to fill in the incomplete data in the historical network traffic data; The preprocessing module uses the average value of the network topology data to fill in the incomplete data in the network topology data; The preprocessing module uses the average value of the traffic package historical data to fill in the incomplete data in the traffic package historical data.

20. A flow prediction device, comprising: a memory configured to store instructions; A processor is coupled to the memory, and the processor is configured to execute the method according to any one of claims 12 to 15 based on instructions stored in the memory.

21. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the method according to any one of claims 1-5 and 12-15 is implemented.