Model optimization method and device and electronic equipment
By generating a target adjacency matrix with an attention mechanism, the problem of difficulty in displaying the strength of connections between nodes in the cellular traffic prediction model is solved, and the prediction accuracy and topological map feature mining capabilities are improved.
Patent Information
- Application Number
- CN202410759189.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-06
AI Technical Summary
Existing cellular traffic prediction models based on graph neural networks and attention mechanisms cannot effectively display the strength of connections between nodes, resulting in insufficient prediction accuracy.
By generating a target adjacency matrix with an attention mechanism, use the Laplacian matrix to process the topological map, obtain eigenvalues and eigenvectors, adjust the initial adjacency matrix, fuse the attention mechanism, and generate a target matrix to show the strength of the connections between nodes. relation.
It improves the accuracy of the prediction model in predicting cellular traffic, avoids the over-smoothing problem in the graph neural network aggregation process, and enhances the ability to mine graph structure features of topological graphs.
Smart Images

Figure CN118607148A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a model optimization method, device and electronic device. Background Art
[0002] With the development of wireless communication technology, cellular traffic is increasing day by day. The traffic classification, traffic prediction, and traffic description of cellular traffic are of great significance to the configuration of network resources and the improvement of network service quality. The prediction of cellular traffic is usually achieved based on a prediction model that includes graph neural networks and attention mechanisms.
[0003] First, we need to convert cellular traffic into a topological map based on the graph neural network, and then convert the topological map into an adjacency matrix based on the attention mechanism. Finally, we use the adjacency matrix to implement the classification prediction of cellular traffic by the prediction model. The specific process of determining the adjacency matrix is as follows:
[0004] Based on the graph neural network, cellular traffic is converted into a topological map. Different nodes in the topological map represent different cellular traffic, and the edges between nodes represent the relationship between cellular traffic. In one aggregation of the graph neural network, each node integrates the information of adjacent nodes, so that each node can fuse the features of adjacent nodes. However, as the number of aggregations increases, the nodes begin to integrate the features of farther nodes. Each node will integrate the information of the entire topological map, making the similarity of features between nodes extremely high, so that the distinguishability between nodes is reduced, resulting in the over-smoothing problem of the graph neural network.
[0005] After the topology graph is determined based on the graph neural network, it is necessary to convert the topology graph into an adjacency matrix through the attention mechanism. The adjacency matrix represents the direct connection between nodes in the topology graph. If there is a direct connection between nodes, the numbers between directly connected nodes are recorded as 1 in the adjacency matrix; if there is no direct connection between nodes, the numbers between nodes without direct connection are recorded as 0 in the adjacency matrix, thereby constructing the adjacency matrix.
[0006] The adjacency matrix obtained above can only show the connection relationship between nodes, and thus can only show the correlation relationship between cellular traffic, but cannot show the strength of the correlation between cellular traffic. Therefore, how to adjust the defects of the adjacency matrix in the attention mechanism has become the main problem to be solved at present. Summary of the invention
[0007] The present application provides a model optimization method, device and electronic device for generating an adjacency matrix with an attention mechanism, thereby ensuring the accuracy of the prediction model in predicting cellular traffic.
[0008] In a first aspect, the present application provides a model optimization method, the method comprising:
[0009] Obtain the topology map corresponding to the cellular traffic;
[0010] Processing the topological map based on a Laplace matrix to obtain eigenvalues and eigenvectors corresponding to the Laplace matrix, wherein the Laplace matrix is obtained based on the topological map;
[0011] An initial adjacency matrix corresponding to the topology graph is determined, and an attention mechanism is adjusted on the initial adjacency matrix based on the eigenvalue and the eigenvector to obtain a target adjacency matrix, wherein the target adjacency matrix is used for a prediction model to perform traffic prediction on cellular traffic.
[0012] Through the above method, the topological graph is processed based on the Laplace matrix, and a target adjacency matrix with an attention mechanism is generated, which solves the defects of the adjacency matrix in the attention mechanism, so that the target adjacency matrix can not only show the connection relationship between the nodes in the topological graph, but also show the strength relationship between the connections between the nodes in the topological graph.
[0013] In a possible design, the Laplace matrix is obtained based on the topological graph, including:
[0014] Determine each vertex and each edge in the topological graph, and determine that the rows and columns of a matrix correspond to the nodes in the topological graph respectively;
[0015] Traversing each of the vertices and the edges to determine the connection relationship between each node and the number of edges connected to each node;
[0016] Establish the initial adjacency matrix and degree matrix based on all connection relationships and the number of edges connected to the corresponding nodes;
[0017] The initial adjacency matrix is subtracted from the degree matrix to obtain a Laplacian matrix.
[0018] Through the above method, the Laplace matrix is determined, which is conducive to the mining of graph structure features in the topological graph.
[0019] In a possible design, the topological graph is processed based on a Laplace matrix to obtain eigenvalues and eigenvectors corresponding to the Laplace matrix, including:
[0020] Aggregating the topological graph and determining a spectrum reservation rate corresponding to each aggregation;
[0021] If the spectrum retention rate does not exceed the retention threshold, the aggregation of the topology graph is stopped, and the eigenvector and eigenvalue corresponding to the last aggregation are determined.
[0022] Through the above method, based on the size relationship between the spectrum retention rate and the retention threshold, the number of aggregation times of the topology map is controlled, thereby solving the problem of over-smoothing of the topology map during the aggregation process.
[0023] In a possible design, the processing of the topological graph based on the Laplace matrix to obtain the eigenvalues and eigenvectors corresponding to the Laplace matrix further includes:
[0024] If the spectrum reservation rate exceeds the reservation threshold, the topology map continues to be aggregated.
[0025] Through the above method, based on the size relationship between the spectrum retention rate and the retention threshold, the number of aggregation times of the topology map is controlled, thereby solving the problem of over-smoothing of the topology map during the aggregation process.
[0026] In a possible design, performing an attention mechanism adjustment on the adjacency matrix based on the eigenvalue and the eigenvector to obtain a target adjacency matrix includes:
[0027] Determine all eigenvectors corresponding to the eigenvector;
[0028] Calculate the component differences between each pair of eigenvectors to obtain all component differences;
[0029] Calculate the total component difference corresponding to all component differences, bring each component difference and the total component difference into the conversion function, and obtain the component proportion corresponding to each component difference;
[0030] Based on the proportions of all components, the graph neural network training parameters in the prediction model are adjusted to obtain the target adjacency matrix.
[0031] Through the above method, the initial adjacency matrix is adjusted based on the feature vector, so that the target adjacency matrix integrates the attention mechanism, thereby achieving the purpose of tuning the prediction model.
[0032] In a possible design, performing an attention mechanism adjustment on the adjacency matrix based on the eigenvalue and the eigenvector to obtain a target adjacency matrix includes:
[0033] Determine all eigenvalues corresponding to the topological graph;
[0034] Calculate the difference between each eigenvalue and the total difference of all differences;
[0035] Calculate the difference ratio corresponding to each difference based on each difference and the total difference;
[0036] Based on the size relationship between the difference ratio and the ratio threshold, the weight values between the connected nodes are adjusted to obtain the target adjacency matrix.
[0037] Through the above method, the initial adjacency matrix is adjusted based on the eigenvalue, so that the target adjacency matrix integrates the attention mechanism, thereby achieving the purpose of tuning the prediction model.
[0038] In a second aspect, the present application provides a model optimization device, the device comprising:
[0039] An acquisition module, used to obtain a topology map corresponding to cellular traffic;
[0040] A feature module, used for processing the topological map based on a Laplace matrix to obtain eigenvalues and eigenvectors corresponding to the Laplace matrix, wherein the Laplace matrix is obtained based on the topological map;
[0041] The target module is used to determine the initial adjacency matrix corresponding to the topological graph, and adjust the initial adjacency matrix based on the eigenvalue and the eigenvector to obtain a target adjacency matrix, wherein the target adjacency matrix is used for the prediction model to perform traffic prediction on the cellular traffic.
[0042] In one possible design, the feature module is specifically used to determine each vertex and each edge in the topological graph, and to determine that the rows and columns of the matrix correspond to the nodes in the topological graph, respectively, to traverse the each vertex and each edge, to determine the connection relationship between each node and the number of edges connected to each node, to establish an initial adjacency matrix and a degree matrix based on all the connection relationships and the number of edges connected to the corresponding nodes, and to subtract the initial adjacency matrix from the degree matrix to obtain a Laplace matrix.
[0043] In a possible design, the target module is specifically used to aggregate the topology map and determine the spectrum retention rate corresponding to each aggregation. If the spectrum retention rate does not exceed the retention threshold, the aggregation of the topology map is stopped, and the eigenvector and eigenvalue corresponding to the last aggregation are determined.
[0044] In a possible design, the target module is further used to continue aggregating the topology map if the spectrum retention rate exceeds a retention threshold.
[0045] In one possible design, the target module is also used to determine all eigenvectors corresponding to the eigenvector, calculate the component differences between each pair of eigenvectors, obtain all component differences, calculate the total component difference corresponding to all component differences, bring each component difference and the total component difference into the conversion function, obtain the component proportion corresponding to each component difference, adjust the graph neural network training parameters in the prediction model based on all component proportions, and obtain the target adjacency matrix.
[0046] In a possible design, the target module is also used to determine all eigenvalues corresponding to the topological map, calculate the difference between each eigenvalue, and calculate the total difference of all differences, calculate the difference ratio corresponding to each difference based on each difference and the total difference, and adjust the weight values between the connected nodes based on the relationship between the difference ratio and the ratio threshold to obtain the target adjacency matrix.
[0047] In a third aspect, the present application provides an electronic device, including:
[0048] Memory, used to store computer programs;
[0049] The processor is used to implement the above-mentioned model optimization method steps when executing the computer program stored in the memory.
[0050] In a fourth aspect, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned model optimization method are implemented.
[0051] For each aspect from the first to the fourth aspect and the technical effects that may be achieved by each aspect, please refer to the above description of the technical effects that can be achieved by the first aspect or various possible schemes in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A flowchart of the steps of a model optimization method provided in this application;
[0053] Figure 2 A schematic diagram of the structure of a model optimization device provided in this application;
[0054] Figure 3 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0055] 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. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent: A is directly connected to B and A is connected to B through C. In addition, in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0056] In previous technologies, the prediction model realizes traffic prediction of cellular traffic based on graph neural networks and attention mechanisms. The adjacency matrix can be determined based on graph neural networks and attention mechanisms. The adjacency matrix can only show the connection relationship between nodes, and thus can only show the correlation relationship between cellular traffic, but cannot show the strength of the correlation of cellular traffic. Therefore, how to adjust the defects of the adjacency matrix in the attention mechanism has become the main problem to be solved at present.
[0057] In order to solve the above-described problems, the embodiments of the present application provide a model optimization method to solve the defects of the adjacency matrix, so that the adjacency matrix integrates the attention mechanism, thereby improving the accuracy of the prediction model in predicting cellular traffic. Among them, the method and device described in the embodiments of the present application are based on the same technical concept. Since the principles of the problems solved by the method and the device are similar, the embodiments of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0058] The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0059] Reference Figure 1 The present application provides a model optimization method, which can obtain an adjacency matrix that integrates an attention mechanism, so that the prediction model can predict cellular traffic based on the adjacency matrix, thereby achieving the purpose of optimizing the prediction model. The implementation process of the method is as follows:
[0060] Step S1: Obtain a topology map corresponding to cellular traffic.
[0061] The prediction model usually predicts cellular traffic based on graph neural networks and attention mechanisms. First, the cellular traffic needs to be obtained from the network, and then the cellular traffic is processed based on the graph neural network to obtain the topological map corresponding to the cellular traffic.
[0062] Converting cellular traffic into a topological graph structure is beneficial to extracting the features of each node in the topological graph.
[0063] Step S2: Processing the topological graph based on the Laplace matrix to obtain eigenvalues and eigenvectors corresponding to the Laplace matrix.
[0064] In the process of aggregating topological maps by graph neural networks, too many aggregation times will cause over-smoothing problems, and too few aggregation times will result in insufficient information for each element in the topological map. Therefore, in order to determine the number of aggregation times of the topological map, it is necessary to process the topological map based on the Laplace matrix to obtain the eigenvalues and eigenvectors corresponding to the Laplace matrix.
[0065] Furthermore, before aggregating the topological graph, each vertex and each edge in the topological graph will be determined, and the position of each node in the topological graph in the corresponding matrix will be determined, that is: based on the rows and columns in the matrix, the corresponding nodes can be determined from the topological graph. In order to establish the connection relationship between nodes in the topological graph, it is necessary to traverse each vertex and each edge, and determine the connection relationship between each node and the number of edges connected to each node. Since the adjacency matrix records whether the nodes in the topological graph are directly connected, each element on the diagonal of the degree matrix represents the number of connections of the corresponding node. Therefore, the initial adjacency matrix and degree matrix can be established based on all the determined connection relationships and the number of edges connected to the corresponding nodes, and then the initial adjacency matrix is subtracted from the degree matrix. The resulting matrix is called a Laplace matrix, which reflects the connectivity and overall stability of the topological graph.
[0066] After determining the Laplace matrix, the topology map is aggregated, the spectrum retention rate corresponding to each aggregation is determined, and then the spectrum retention rate is compared with the retention threshold. When the spectrum retention rate exceeds the retention threshold, the topology map continues to be aggregated; when the spectrum retention rate does not exceed the retention threshold, the topology map is stopped from being aggregated, and the eigenvector and eigenvalue corresponding to the last aggregation are determined. The eigenvalue represents the global connectivity and stability of the topology map, and the eigenvector represents the local connection model between nodes.
[0067] According to the relationship between the spectrum retention rate and the retention threshold, the number of aggregation times of the topological graph is limited so that the topological graph will not be over-aggregated or the number of aggregation times is too small, thus avoiding the problem of over-smoothing of the topological graph and the problem of too little information on the nodes in the topological graph. The spectral characteristics of the graph are combined with the structural learning of the graph neural network to ensure that the graph structural characteristics of the topological graph can be fully mined.
[0068] Through the above method, the topological map is converted into a Laplace matrix, and the eigenvalues and eigenvectors corresponding to the Laplace matrix are obtained. The structural characteristics of the topological map are described from the dimensions of the eigenvalues and eigenvectors, which is conducive to mining more graph structural features of the topological map.
[0069] Step S3: Determine the initial adjacency matrix corresponding to the topological graph, adjust the adjacency matrix based on the eigenvalue and eigenvector using the attention mechanism, and obtain the target adjacency matrix.
[0070] In the process of determining the Laplace matrix corresponding to the topological graph, the initial adjacency matrix is obtained, and then the initial adjacency matrix is adjusted based on the eigenvalues and eigenvectors. The specific adjustment process is as follows:
[0071] All eigenvectors corresponding to the Laplace matrix are determined. Since the processing method for each eigenvector is the same, only the processing method for one eigenvector is cited here.
[0072] Determine all the eigenvectors corresponding to the eigenvector, calculate the modulus value corresponding to each eigenvector, and then calculate the component difference between each pair of eigenvectors to obtain all the component differences, and add all the component differences to obtain the total component difference. In order to optimize the initial adjacency matrix based on the eigenvector, it is necessary to bring each component difference and the total component difference into the conversion function. The conversion function can calculate the weight corresponding to each component difference, that is, obtain the component proportion corresponding to each component difference, and adjust the graph neural network training parameters in the prediction model based on each component proportion to obtain the target adjacency matrix.
[0073] Specifically, the total component difference can be calculated using the following formula:
[0074]
[0075] In the above formula, u k represents the kth eigenvector corresponding to the Laplace matrix, i and j represent any two nodes in the topological graph, △ ij Represents the total weight difference.
[0076] The specific formula of the conversion function is as follows:
[0077]
[0078] a ij represents the component proportion, n represents the number of eigenvectors corresponding to the eigenvector, i and j represent any two nodes in the topology graph, ∑ k∈n exp(-△ ik ) represents the sum of the component differences between node i and other nodes, ∑k∈n exp(-△ jk ) represents the sum of the component differences between node j and other nodes.
[0079] In addition, the specific process of optimizing the initial adjacency matrix based on the eigenvalue is as follows:
[0080] All eigenvalues corresponding to the topological graph are determined, the differences between each pair of eigenvalues are calculated, all the differences are added together, the total difference is calculated, and the difference ratio corresponding to each difference is calculated based on each difference and the total difference.
[0081] After calculating the difference ratio, compare the difference ratio with the ratio threshold. If the difference ratio is greater than the ratio threshold, the weight value between the nodes corresponding to the difference ratio is reduced; if the difference ratio is lower than the ratio threshold, the weight value between the nodes corresponding to the difference ratio is increased, thereby obtaining the target adjacency matrix.
[0082] The target adjacency matrix obtained based on the above method is an adjacency matrix that integrates the attention mechanism, which is conducive to the effective transmission and aggregation of information in the topological graph.
[0083] Based on the above method, the spectrum retention rate obtained by Laplace transform of the topology map is used to limit the number of aggregation times in the graph neural network training process, so as to accurately capture the graph structure characteristics in the topology map, and optimize the initial adjacency matrix through eigenvalues or eigenvectors to ensure that attention is focused on the relatively isolated or weakly connected parts of the topology map, ensuring the accuracy of the prediction model in predicting cellular traffic based on graph neural networks and attention mechanisms.
[0084] Based on the same inventive concept, a model optimization device is also provided in the embodiment of the present application. The model optimization device is used to implement the function of a model optimization method. Figure 2 , the device comprises:
[0085] An acquisition module 201 is used to obtain a topology map corresponding to cellular traffic;
[0086] A feature module 202 is used to process the topological map based on a Laplace matrix to obtain eigenvalues and eigenvectors corresponding to the Laplace matrix, wherein the Laplace matrix is obtained based on the topological map;
[0087] The target module 203 is used to determine the initial adjacency matrix corresponding to the topology graph, and adjust the initial adjacency matrix based on the eigenvalue and the eigenvector to obtain a target adjacency matrix, wherein the target adjacency matrix is used for the prediction model to predict the cellular traffic.
[0088] In one possible design, the feature module 202 is specifically used to determine each vertex and each edge in the topological graph, and determine that the rows and columns of the matrix correspond to the nodes in the topological graph, traverse the each vertex and each edge, determine the connection relationship between each node and the number of edges connected to each node, establish an initial adjacency matrix and a degree matrix based on all the connection relationships and the number of edges connected to the corresponding nodes, subtract the initial adjacency matrix from the degree matrix, and obtain a Laplace matrix.
[0089] In a possible design, the target module 203 is specifically used to aggregate the topology map and determine the spectrum retention rate corresponding to each aggregation. If the spectrum retention rate does not exceed the retention threshold, the aggregation of the topology map is stopped, and the eigenvector and eigenvalue corresponding to the last aggregation are determined.
[0090] In a possible design, the target module 203 is further configured to continue aggregating the topology map if the spectrum retention rate exceeds a retention threshold.
[0091] In one possible design, the target module 203 is also used to determine all eigenvectors corresponding to the eigenvector, calculate the component differences between each pair of eigenvectors, obtain all component differences, calculate the total component difference corresponding to all component differences, bring each component difference and the total component difference into the conversion function, obtain the component proportion corresponding to each component difference, adjust the graph neural network training parameters in the prediction model based on all component proportions, and obtain the target adjacency matrix.
[0092] In a possible design, the target module 203 is also used to determine all eigenvalues corresponding to the topological graph, calculate the difference between each eigenvalue, and calculate the total difference of all differences, calculate the difference ratio corresponding to each difference based on each difference and the total difference, and adjust the weight values between the connected nodes based on the relationship between the difference ratio and the ratio threshold to obtain the target adjacency matrix.
[0093] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application, and the electronic device can realize the functions of the aforementioned model optimization device, referring to Figure 3 , the electronic device comprises:
[0094] At least one processor 301, and a memory 302 connected to the at least one processor 301. The specific connection medium between the processor 301 and the memory 302 is not limited in the embodiment of the present application. Figure 3 In the example, the processor 301 and the memory 302 are connected via the bus 300. The bus 300 is connected to the memory 302 via the bus 300. Figure 3The bus 300 is represented by a bold line, and the connection between other components is only for schematic illustration and is not intended to be limiting. The bus 300 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 301 can also be called a controller, and there is no limitation on the name.
[0095] In the embodiment of the present application, the memory 302 stores instructions that can be executed by at least one processor 301. The at least one processor 301 can execute a model optimization method discussed above by executing the instructions stored in the memory 302. The processor 301 can implement Figure 2 The functions of each module in the device shown.
[0096] Among them, the processor 301 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 302 and calling data stored in the memory 302, the various functions of the device and process data, the device can be monitored as a whole.
[0097] In one possible design, the processor 301 may include one or more processing units, and the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 301. In some embodiments, the processor 301 and the memory 302 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
[0098] Processor 301 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of a model optimization method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor execution, or a combination of hardware and software modules in the processor.
[0099] The memory 302 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 302 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 302 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 302 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0100] By programming the processor 301, the code corresponding to the model optimization method described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 1 A model optimization step of the embodiment shown. How to design and program the processor 301 is a technique known to those skilled in the art and will not be described in detail here.
[0101] Based on the same inventive concept, an embodiment of the present application also provides a storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes a model optimization method discussed above.
[0102] In some possible implementations, various aspects of a model optimization method provided by the present application may also be implemented in the form of a program product, which includes program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of a model optimization method according to various exemplary implementations of the present application described above in this specification.
[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0104] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0107] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A model optimization method, characterized in that: include: Obtain the topology map corresponding to the cellular traffic; Processing the topological map based on a Laplace matrix to obtain eigenvalues and eigenvectors corresponding to the Laplace matrix, wherein the Laplace matrix is obtained based on the topological map; An initial adjacency matrix corresponding to the topology graph is determined, and an attention mechanism is adjusted on the initial adjacency matrix based on the eigenvalue and the eigenvector to obtain a target adjacency matrix, wherein the target adjacency matrix is used for a prediction model to perform traffic prediction on cellular traffic.
2. The method according to claim 1, characterized in that The Laplace matrix is obtained based on the topological graph, including: Determine each vertex and each edge in the topological graph, and determine that the rows and columns of a matrix correspond to the nodes in the topological graph respectively; Traversing each of the vertices and the edges to determine the connection relationship between each node and the number of edges connected to each node; Establish the initial adjacency matrix and degree matrix based on all connection relationships and the number of edges connected to the corresponding nodes; The initial adjacency matrix is subtracted from the degree matrix to obtain a Laplacian matrix.
3. The method according to claim 1, characterized in that The processing of the topological graph based on the Laplace matrix to obtain eigenvalues and eigenvectors corresponding to the Laplace matrix includes: Aggregating the topological graph and determining a spectrum reservation rate corresponding to each aggregation; If the spectrum retention rate does not exceed the retention threshold, the aggregation of the topology graph is stopped, and the eigenvector and eigenvalue corresponding to the last aggregation are determined.
4. The method according to claim 3, characterized in that The processing of the topological graph based on the Laplace matrix to obtain the eigenvalues and eigenvectors corresponding to the Laplace matrix also includes: If the spectrum reservation rate exceeds the reservation threshold, the topology map continues to be aggregated.
5. The method according to claim 1, characterized in that The step of performing an attention mechanism adjustment on the adjacency matrix based on the eigenvalue and the eigenvector to obtain a target adjacency matrix includes: Determine all eigenvectors corresponding to the eigenvector; Calculate the component differences between each eigenvector and obtain all component differences; Calculate the total component difference corresponding to all component differences, bring each component difference and the total component difference into the conversion function, and obtain the component proportion corresponding to each component difference; Based on the proportions of all components, the graph neural network training parameters in the prediction model are adjusted to obtain the target adjacency matrix.
6. The method according to claim 1, characterized in that The step of performing an attention mechanism adjustment on the adjacency matrix based on the eigenvalue and the eigenvector to obtain a target adjacency matrix includes: Determine all eigenvalues corresponding to the topological graph; Calculate the difference between each eigenvalue and the total difference of all differences; Calculate the difference ratio corresponding to each difference based on each difference and the total difference; Based on the size relationship between the difference ratio and the ratio threshold, the weight values between the connected nodes are adjusted to obtain the target adjacency matrix.
7. A model optimization device, characterized in that: include: An acquisition module, used to obtain a topology map corresponding to cellular traffic; A feature module, used for processing the topological map based on a Laplace matrix to obtain eigenvalues and eigenvectors corresponding to the Laplace matrix, wherein the Laplace matrix is obtained based on the topological map; The target module is used to determine the initial adjacency matrix corresponding to the topological graph, and adjust the initial adjacency matrix based on the eigenvalue and the eigenvector to obtain a target adjacency matrix, wherein the target adjacency matrix is used for the prediction model to predict the cellular traffic.
8. The device according to claim 7, characterized in that The feature module is specifically used to determine each vertex and each edge in the topological graph, and determine that the rows and columns of the matrix correspond to the nodes in the topological graph respectively, traverse the each vertex and each edge, determine the connection relationship between each node and the number of edges connected to each node, establish an initial adjacency matrix and a degree matrix based on all the connection relationships and the number of edges connected to the corresponding nodes, subtract the initial adjacency matrix from the degree matrix, and obtain a Laplace matrix.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing the computer program stored in the memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 6 are implemented.
