Method and system for urban multi-regional data transmission aggregation based on artificial intelligence

Through artificial intelligence-based methods, we collect and optimize urban multi-regional data, build heterogeneous information networks and data transmission models, solve multi-regional data transmission efficiency and quality problems, achieve efficient and accurate data transmission and summary, and provide urban management Provides high-quality data support.

CN118473934BActive Publication Date: 2024-09-13CHANGZHOU DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410930078.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-13
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Existing technology cannot effectively optimize data transmission between multiple regions, resulting in high latency and low efficiency. It cannot integrate multi-source heterogeneous data from different fields and formats. It is difficult to retain the semantic and structural information of the data and lacks outlier identification and processing. , affecting data quality and the scientific nature of urban management decisions.

Method used

Adopt artificial intelligence-based methods to collect urban multi-regional data, perform pre-processing and heterogeneous information network construction, use heterogeneous graph neural networks to obtain node embedding vectors, build multi-regional data transmission optimization models, and solve the optimal problem through simulated annealing algorithms Data transfer strategies to identify outliers and improve data quality.

Benefits of technology

It achieves high efficiency and accuracy of multi-regional data transmission in the city, integrates multi-source heterogeneous data, retains data semantics and structural information, improves data quality and the reliability of summary, and provides high-quality data support for urban management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118473934B
    Figure CN118473934B
Patent Text Reader

Abstract

The present invention belongs to the technical field of data transmission, and discloses an artificial intelligence-based urban multi-regional data transmission aggregation method and system; the method comprises: collecting original urban area data from n areas of a city; preprocessing the original urban area data, and constructing a heterogeneous information network based on the preprocessed original urban area data; inputting the heterogeneous information network into a heterogeneous graph neural network to obtain a node embedding vector; constructing a multi-regional data transmission optimization model based on the node embedding vector; using the multi-regional data transmission optimization model using a simulated improved annealing algorithm to solve the optimal data transmission strategy for the n areas; applying the optimal data transmission strategy for the n areas to a data transmission aggregation management terminal; the method can significantly improve the efficiency, comprehensiveness and accuracy of multi-regional data transmission and aggregation in the city, and provide better data transmission aggregation support for urban management and decision-making.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data transmission technology, and more specifically, to an artificial intelligence-based urban multi-region data transmission aggregation method and system. Background Art

[0002] The patent application with the publication number CN106961473A discloses an efficient data transmission method and system for dynamically balancing the bandwidth of a smart city network, including: using an on-board terminal to collect vehicle data, transmitting it to the control center via the Internet when the network is normal, storing it in a data buffer when the network fails, and transmitting the data in the data buffer to the control center after recovery, and the amount of data sent each time is controlled by a scheduling transmitter. Among them: the scheduling transmitter obtains the time used for each data transmission to calculate the average time T each time; and obtains the time t and data volume n used for the most recent data transmission; calculates the optimal data volume for the next transmission; determines whether the data in the data buffer is greater than m, if so, controls the amount of data sent to the Internet next time to be m, if not, all the data in the data buffer is sent to the Internet.

[0003] However, data transmission usually adopts simple point-to-point transmission, which cannot optimize the data transmission between multiple regions as a whole, resulting in high data transmission delay and low efficiency; it is impossible to minimize the data transmission delay between regions, resulting in low bandwidth resource utilization; the existing technology cannot effectively integrate multi-source heterogeneous data from different fields and formats in the city, and it is difficult to retain the semantic and structural information of the data, which affects the comprehensiveness and accuracy of subsequent data analysis and decision-making; there is a lack of in-depth modeling of the inherent laws and characteristics of urban data, and it is impossible to fully explore and utilize the rich information contained in the data; secondly, there is a lack of effective identification and processing mechanism for outliers in urban data, resulting in poor data quality and affecting the reliability of data aggregation; data quality issues further aggravate the difficulty of analysis and decision-making based on these data, affecting the scientific nature of urban management and decision-making.

[0004] In view of this, the present invention proposes an urban multi-regional data transmission aggregation method and system based on artificial intelligence to solve the above problems. Summary of the invention

[0005] In order to overcome the above-mentioned defects of the prior art and to achieve the above-mentioned purpose, the present invention provides the following technical solution: A method for summarizing urban multi-regional data transmission based on artificial intelligence, comprising: S1, collecting data from urban The original urban area data of each region; the original urban area data is preprocessed, and a heterogeneous information network is constructed based on the preprocessed original urban area data;

[0006] S2, input the heterogeneous information network into the heterogeneous graph neural network to obtain the node embedding vector;

[0007] S3. Based on the node embedding vector, a multi-region data transmission optimization model is constructed. The multi-region data transmission optimization model is solved by using the simulated improved annealing algorithm. The optimal data transmission strategy for each region; The optimal data transmission strategy for each area is applied to the data transmission summary management terminal.

[0008] Furthermore, the original urban area data includes traffic data, population data and energy consumption data;

[0009] Traffic data includes road network data, traffic flow data and public transportation station data; population data includes population size, population density and population age structure; energy consumption data includes electricity consumption data and fuel consumption data.

[0010] Furthermore, the method of preprocessing the original urban area data includes:

[0011] The original urban area data is standardized or normalized so that the original urban area data is within the same numerical range; a standard urban area data set is obtained; a density clustering algorithm is used on the standard urban area data to identify outliers in the standard urban area data, and the identified outliers are removed to obtain the pre-processed original urban area data.

[0012] Furthermore, the outlier identification method includes:

[0013] Defines the key parameters of the density clustering algorithm; key parameters include neighborhood radius and the minimum number of samples MP;

[0014] For each data point in the standard urban area dataset , calculate its neighborhood radius -The number of points in the neighborhood ;in, Represents data points With point The distance between is an indicator function, which takes the value of 1 when its internal condition is met, otherwise it takes the value of 0;

[0015] like When it is less than or equal to MP, it is called a data point is the core object; if there is another core object , so that the data points lie in Neighborhood radius -neighborhood, then it is called is a density-reachable object; if there is a chain, the data point With another core object Connected together, it is called are density-connected objects; the density-connected objects are clustered to form a cluster; the data points that are not clustered are marked as outliers;

[0016] For steps marked as outliers, a distance threshold is introduced , calculate each data point To the center of the cluster to which it belongs Distance ;like Greater than distance threshold , then Mark as outlier;

[0017] The distance threshold ;in, For all The mean of For all The standard deviation of is a hyperparameter;

[0018] Set the proportion threshold based on the number of outliers , when the number of outliers in a cluster is greater than , all data points in the cluster are marked as outliers; otherwise, only outlier data points are removed; It is a cluster size.

[0019] Furthermore, the key parameters and distance thresholds are obtained as follows:

[0020] Collect an algorithm training data set, divide the algorithm training data set into a training set and a validation set, and calculate the Rand index of the density clustering algorithm as an evaluation indicator of the outlier recognition effect; the algorithm training data set is a data set composed of original urban area data within a period of history; and mark the data points in the algorithm training data set with real labels; the real label is whether it is an outlier;

[0021] Calculate the distance matrix between all data points in the algorithm training data set, and draw a distance matrix histogram based on the distance matrix to obtain the distance distribution; obtain the neighborhood radius based on the distance distribution , and set The minimum number of samples MP is initially set to search in the range of [5, 20], and the step size is 1 or 2;

[0022] Calculate the distance from each data point in the algorithm training data set to the center of the cluster to which it belongs; draw a distribution histogram of these distances; determine the search range of the distance threshold based on the distribution histogram, and set the step size of the distance threshold;

[0023] A batch of data points are taken out from the training set one by one as the validation set, and the remaining data points are used as the training subset; on the training subset, the density clustering algorithm is run with different parameter combinations to obtain clustering results; the parameter combination is a combination of key parameters and distance thresholds; the reserved data points are assigned to the nearest cluster according to their distances from the center of each cluster; the evaluation index under the parameter combination is calculated, and repeated until all data points have been used as the validation set once; the mean of the evaluation index of all validation sets is calculated as the comprehensive score of the parameter combination; all parameter combinations are enumerated, and the parameter combination with the highest comprehensive score is selected as the optimal solution, that is, the specific values ​​of the key parameters and distance thresholds are obtained;

[0024] The calculation formula of the evaluation index is: ;in, is the number of pairs of data points in the same cluster; is the number of pairs of data points in different clusters; is the number of pairs of data points in different clusters but with the same true label; is the number of pairs of data points in the same cluster but with different true labels.

[0025] Furthermore, the construction method of the heterogeneous information network includes:

[0026] The heterogeneous information network is defined to include nodes and edges between nodes. According to the semantics of the pre-processed original urban data, entities with the same attributes and functions are divided into the same type of node types; for complex entities, further subdivided;

[0027] The abstract data in the preprocessed original urban data is regarded as the attributes of the node rather than a separate node type; the edge type is defined according to the semantic association between entities; the edge types include topological adjacent edges, traffic flow edges, inclusion edges and influence edges;

[0028] Topological adjacent edges connect adjacent road nodes and building nodes; traffic flow edges connect the starting and ending nodes that generate traffic flow data; inclusion edges are building nodes that include population nodes and energy nodes; influence edges are traffic flow data that affects energy consumption and population density that affects traffic flow data; for undirected relationships, undirected edges are used; for directed relationships, directed edges are used; all edges carry attribute information, including weights and timestamps; thus, the basic framework of heterogeneous information networks is completed;

[0029] The different entities in the preprocessed original urban area data are matched and mapped to the basic framework according to the designed node types; the relationships between the entities are connected to the basic framework according to the designed edge types.

[0030] Furthermore, the node embedding vector is obtained by:

[0031] Define the network architecture of heterogeneous graph neural network; the network architecture includes input layer, node-level embedding layer, edge-level embedding layer, hierarchical aggregation layer and output layer;

[0032] The input layer is used to input the node feature matrix obtained from the heterogeneous information network and the adjacency matrix corresponding to different edge types;

[0033] Node-level embedding layer, for the node feature matrix, use the embedding function to transform; get the embedding representation; use the 2-layer fully connected neural network as the embedding function;

[0034] The expression of the embedded function is: ;in, Indicates that at the node Embedding representation of ; is the trainable weight matrix of the first layer of the fully connected neural network; is the bias vector of the first layer of the fully connected neural network; Representation Node The node feature matrix of is the trainable weight matrix of the second layer of fully connected neural network; is the bias vector of the second layer of the fully connected neural network; is a nonlinear activation function, such as the ReLU function;

[0035] The edge-level embedding layer uses the edge embedding function to transform the adjacency matrix to obtain the adjacency matrix of the attention weights;

[0036] The expression of the edge embedding function is: ; Edge Type The adjacency matrix of attention weights; Edge Type The corresponding degree matrix; For edge type Convolution weight matrix;

[0037] The hierarchical aggregation layer uses K-layer neighbor aggregation functions to aggregate the neighbor information of each node to obtain the updated node representation;

[0038] The expression of the neighbor aggregation function is: ;in, For the Layer Node Embedding representation of ; No. Layer for Node Neighbor aggregation function of ; Indicates Layer for Node Aggregate representation of ; Indicates Layer for Node Aggregate representation of ; is the number of adjacency matrices; is the index of the edge type;

[0039] The neighbor aggregation function is mean / max pooling, attention mechanism or gated recurrent unit; through K-layer aggregation, the node representation can fuse the information of K-order neighbors;

[0040] The embedding representation obtained from the last layer of the K-layer neighbor aggregation function is used as the output of the output layer, which is the node embedding vector.

[0041] Furthermore, the multi-region data transmission optimization model is constructed in the following manner:

[0042] Define the model layer structure of the multi-region data transmission optimization model; the model layer structure includes the optimization target layer and the constraint condition layer; and define the decision variables of the multi-region data transmission optimization model X ' = [ x i 1 , x in ] ;in, Indicates from the area The amount of data transferred to the first region; Indicates from the area To the last area Data transmission volume; city Each region in the region has a corresponding node embedding vector; that is, the construction of the multi-region data transmission optimization model is completed;

[0043] The optimization target layer minimizes the total delay of data transmission between regions by using the delay function;

[0044] Delay function ;in, Indicates from the area To area The unit data transmission delay of Indicates from the area To area The amount of data transmission; and Indexes for different regions;

[0045] The constraint condition layer uses a comprehensive constraint piecewise function to constrain the balance of inbound and outbound data in each area, constrain the bandwidth capacity limit of each area, and constrain data transmission between adjacent areas;

[0046] The expression of the comprehensive constraint piecewise function is: ;

[0047] in, For Region The bandwidth capacity limit of Indicates from the area To area The amount of data transmission; For Region The node embedding vector and Region The node embedding vector Similarity function of ; is the preset similarity threshold; For all regions ; For all regions and .

[0048] Furthermore, the The solution to the optimal data transmission strategy for a region includes:

[0049] The optimal data transmission strategy is initialized to generate an initial feasible solution ,in, ; Set the initial temperature of the simulated improved annealing algorithm , Cooling coefficient and termination temperature ; The value range of is in the interval [0, 1];

[0050] Calculate the initial solution Initial feasible solution The corresponding total delay ; and enter the simulated annealing cycle;

[0051] The simulated annealing cycle comprises:

[0052] Set the temperature of the current simulated improved annealing algorithm ; and when When , a new solution is generated , new solution By solving the current The perturbation operation is performed to obtain the new solution; when generating a new solution, the constraint condition layer is used to constrain the solution;

[0053] New calculation solution The corresponding total delay ; and calculate the change in the objective function value ;in, For the current solution The corresponding total delay;

[0054] like , then accept the new solution, that is ;like , then with probability Accept the new solution and lower the temperature. Reduce to ;

[0055] The disturbance operation includes:

[0056] Randomly select a region , the area Data transfer volume Add a disturbance value , get the area New data transfer volume For other areas ; Adjust the data transmission volume according to the constraint layer ; and replace the current solution with the new solution; when the temperature Less than the end temperature When the end temperature is reached, the cycle is terminated. When , the current optimal solution is output as the optimal strategy for multi-region data transmission.

[0057] The urban multi-regional data transmission and aggregation system based on artificial intelligence is used to implement the urban multi-regional data transmission and aggregation method based on artificial intelligence, including: a data collection and network construction module for collecting data from the city The original urban area data of each region; the original urban area data is preprocessed, and a heterogeneous information network is constructed based on the preprocessed original urban area data;

[0058] The network fusion module is used to input the heterogeneous information network into the heterogeneous graph neural network to obtain the node embedding vector;

[0059] The transmission strategy output module builds a multi-region data transmission optimization model based on the node embedding vector; the multi-region data transmission optimization model is solved using the simulated improved annealing algorithm. The optimal data transmission strategy for each region; The optimal data transmission strategy for each area is applied to the data transmission summary management terminal; each module is connected by wired and / or wireless means.

[0060] The technical effects and advantages of the method and system for urban multi-regional data transmission and aggregation based on artificial intelligence of the present invention are as follows:

[0061] High efficiency of multi-regional data transmission in the city is achieved; by constructing a multi-regional data transmission optimization model and using the simulated annealing algorithm to solve the optimal strategy, the total delay of data transmission between regions can be minimized, the data transmission efficiency can be improved, and the inefficiency of traditional point-to-point transmission methods can be avoided; secondly, the comprehensiveness and accuracy of data aggregation are improved; by constructing a heterogeneous information network, it can effectively integrate multi-source heterogeneous data in the city, retain the semantic and structural information of the data, and provide richer and more accurate data support for subsequent data analysis and decision-making; at the same time, the outlier identification method based on density clustering can effectively improve data quality and further enhance the reliability of data aggregation; it can significantly improve the efficiency, comprehensiveness and accuracy of multi-regional data transmission and aggregation in the city, and provide better data transmission and aggregation support for urban management and decision-making. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a schematic diagram of the method for summarizing urban multi-regional data transmission based on artificial intelligence of the present invention;

[0063] Figure 2 It is a schematic diagram of the urban multi-region data transmission and aggregation system based on artificial intelligence of the present invention;

[0064] Figure 3 It is a schematic diagram of an electronic device of the present invention. DETAILED DESCRIPTION

[0065] 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. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.

[0066] Example 1

[0067] See also Figure 1 As shown, the method for summarizing urban multi-regional data transmission based on artificial intelligence in this embodiment includes:

[0068] S1. Collect from cities The original urban area data of each region; the original urban area data is preprocessed, and a heterogeneous information network is constructed based on the preprocessed original urban area data;

[0069] S2, input the heterogeneous information network into the heterogeneous graph neural network to obtain the node embedding vector;

[0070] S3. Based on the node embedding vector, a multi-region data transmission optimization model is constructed. The multi-region data transmission optimization model is solved by using the simulated improved annealing algorithm. The optimal data transmission strategy for each region; The optimal data transmission strategy for each area is applied to the data transmission summary management terminal.

[0071] Furthermore, the original urban area data includes traffic data, population data and energy consumption data;

[0072] Traffic data includes road network data, traffic flow data and public transportation station data; population data includes population size, population density and population age structure; energy consumption data includes electricity consumption data and fuel consumption data;

[0073] The road network data describes the location, type (highway, urban road, etc.), number of lanes and traffic direction of each road in the city; these data exist in the form of vector data and are obtained from the Geographic Information System (GIS) database of the government department;

[0074] The traffic flow data reflects the real-time traffic flow and vehicle speed on the road; these data are obtained by roadside sensors, video surveillance or mobile terminal data collection; for example, the number and speed of vehicles on the road are counted by induction coils or video analysis methods;

[0075] The public transportation station data includes the location of bus stations, the location of subway stations, routes and operation information; these data exist in the form of vector data, provided by public transportation operators, or can be obtained from open geographic data sources, such as OpenStreetMap;

[0076] Population density refers to the number of people per unit area, measured in people per square kilometer; the population age structure describes the distribution of the population in different age groups, including the proportion of children, youth, middle-aged and elderly people;

[0077] The total electricity consumption data of the area is obtained from the power company, and the fuel sales data of the corresponding area is obtained from the energy supplier, which is the fuel consumption data.

[0078] It should be noted that traffic data can reflect the flow of people and logistics between different regions, which helps to predict data transmission needs and optimize transmission routes; population data can reflect the population distribution and population structure characteristics of different regions, which helps to evaluate regional data needs and determine transmission priorities; energy consumption data can reflect the energy usage in different regions, which helps to evaluate the energy consumption cost of data transmission and achieve energy optimization.

[0079] Furthermore, the method of preprocessing the original urban area data includes:

[0080] Standardize or normalize the original urban area data so that the original urban area data are within the same numerical range; obtain a standard urban area data set; use a density clustering algorithm on the standard urban area data to identify the outliers in the standard urban area data, and remove the identified outliers to obtain the pre-processed original urban area data;

[0081] The outlier identification method includes:

[0082] Defines the key parameters of the density clustering algorithm; key parameters include neighborhood radius and the minimum number of samples MP;

[0083] For each data point in the standard urban area dataset , calculate its neighborhood radius -The number of points in the neighborhood ;in, Represents data points With point The distance between is an indicator function, which takes the value of 1 when its internal condition is met, otherwise it takes the value of 0;

[0084] like When it is less than or equal to MP, it is called a data point is the core object; if there is another core object , so that the data points lie in Neighborhood radius -neighborhood, then it is called is a density-reachable object; if there is a chain, the data point With another core object Connected together, it is called are density-connected objects; the density-connected objects are clustered to form a cluster; the data points that are not clustered are marked as outliers;

[0085] For steps marked as outliers, a distance threshold is introduced , calculate each data point The distance to the center c of the cluster to which it belongs ;like Greater than distance threshold , then Mark as outlier;

[0086] The distance threshold ;in, For all The mean of For all The standard deviation of is a hyperparameter, and its usual value range is [2, 3];

[0087] Set the proportion threshold according to the number of outliers , when the number of outliers in a cluster is greater than When , all data points in the cluster are marked as outliers; otherwise, only outlier data points are removed; It is a cluster The size of ; that is, the number of data points it contains.

[0088] Proportion threshold The setting method is: initially set a medium The clustering effect is evaluated by cross-validation and other methods, and then adjusted continuously. You can also set different values ​​for different clusters according to specific scenarios and needs. value.

[0089] It should be noted that the outlier identification effect of the density clustering algorithm depends largely on the key parameters and distance threshold;

[0090] Methods for obtaining the key parameters and distance thresholds:

[0091] Collect an algorithm training data set, divide the algorithm training data set into a training set and a validation set, and calculate the Rand index of the density clustering algorithm as an evaluation indicator of the outlier recognition effect; the algorithm training data set is a data set composed of original urban area data within a period of history; and mark the data points in the algorithm training data set with real labels; the real label is whether it is an outlier;

[0092] Calculate the distance matrix between all data points in the algorithm training data set, and draw a distance matrix histogram based on the distance matrix to obtain the distance distribution; obtain the neighborhood radius based on the distance distribution , usually taking the first 10%-90% interval of the distance distribution, and setting The step size, for example, 0.05 or 0.1, ensures the search accuracy.

[0093] Initially, the minimum number of samples MP is set to search in the range of [5, 20], and the step size is 1 or 2;

[0094] Calculate the distance from each data point in the algorithm training data set to the center of the cluster to which it belongs; draw a distribution histogram of these distances; determine the search range of the distance threshold based on the distribution histogram, and set the step size of the distance threshold, for example, 0.05 or 0.1;

[0095] A batch of data points are taken out from the training set one by one as the validation set, and the remaining data points are used as the training subset; on the training subset, the density clustering algorithm is run with different parameter combinations to obtain clustering results; the parameter combination is a combination of key parameters and distance thresholds; the reserved data points are assigned to the nearest cluster according to their distances from the center of each cluster; the evaluation index under the parameter combination is calculated, and repeated until all data points have been used as the validation set once; the mean of the evaluation index of all validation sets is calculated as the comprehensive score of the parameter combination; all parameter combinations are enumerated, and the parameter combination with the highest comprehensive score is selected as the optimal solution, that is, the specific values ​​of the key parameters and distance thresholds are obtained;

[0096] The calculation formula of the evaluation index is: ;in, is the number of pairs of data points in the same cluster (pairs of data points belong to the same cluster and have the same true labels); is the number of pairs of data points in different clusters (the data point pairs do not belong to the same cluster and have different true labels); is the number of pairs of data points in different clusters but with the same true label; is the number of pairs of data points in the same cluster but with different true labels; the pairs of data points are paired data points.

[0097] It should be noted that the above-mentioned outlier identification process is performed on the same type of data points, so the outlier identification process is multiple times; by effectively identifying outliers from the data set, cleaned high-quality data is provided for the subsequent heterogeneous network construction.

[0098] Furthermore, the construction method of the heterogeneous information network includes:

[0099] The heterogeneous information network is defined to include nodes and edges between nodes. According to the semantics of the pre-processed original urban data, entities with the same attributes and functions are divided into the same type of node types, such as road section nodes, intersection nodes, building nodes, population nodes, and energy nodes.

[0100] For complex entities, further subdivide them, for example, divide building nodes into residential nodes, commercial nodes, and factory nodes;

[0101] The abstract data in the pre-processed original urban area data, such as traffic flow data and population density, are regarded as node attributes rather than separate node types;

[0102] According to the semantic association between entities, edge types are defined; edge types include topological adjacent edges, traffic flow edges, inclusion edges, and influence edges.

[0103] Topological adjacent edges connect adjacent road nodes and building nodes; traffic flow edges connect the start and end nodes that generate traffic flow data; inclusion edges include building nodes including population nodes and energy nodes; influence edges are traffic flow data affecting energy consumption and population density affecting traffic flow data; for undirected relationships, undirected edges are used; for directed relationships, directed edges are used; all edges carry attribute information, including weights and timestamps, to enhance semantic expression capabilities; that is, the basic framework of heterogeneous information networks is completed;

[0104] The different entities in the pre-processed original urban data are matched and mapped to the basic framework according to the designed node types; the relationships between entities are connected to the basic framework according to the designed edge types; in addition to the nodes and edges directly from the data, some virtual nodes and edges can be introduced based on domain knowledge and expert experience to expand the network's expressive power; for example, the "region" virtual node is introduced to represent the boundaries and regional attributes of different regions; or the traffic control node is introduced to represent the traffic flow regulation strategy, etc.

[0105] Heterogeneous information networks can effectively integrate multi-source heterogeneous data in cities, retain the semantic and structural information of the data, and provide information-rich and clearly structured input data for subsequent machine learning tasks, thereby improving the performance of the model.

[0106] Furthermore, the node embedding vector is obtained by:

[0107] Define the network architecture of heterogeneous graph neural network; the network architecture includes input layer, node-level embedding layer, edge-level embedding layer, hierarchical aggregation layer and output layer;

[0108] The input layer is used to input the node feature matrix obtained from the heterogeneous information network and the adjacency matrix corresponding to different edge types;

[0109] Specifically, there are N nodes in a heterogeneous information network, and each node has F features, then the node feature matrix X can be expressed as: X=[x_1, x_2, ..., x_N]; where the dimension of the elements in the node feature matrix is ​​F; there are M different edge types in a heterogeneous information network, and for each edge type r (1≤r≤M), an N×N adjacency matrix A(r) is constructed; if the matrix element is 1, there is an edge of type r between the nodes; if the matrix element is 0, there is no edge of type r between the nodes.

[0110] Node-level embedding layer, for the node feature matrix, use the embedding function to transform; get the embedding representation; use the 2-layer fully connected neural network as the embedding function;

[0111] The expression of the embedded function is: ;in, Indicates that at the node Embedding representation of ; is the trainable weight matrix of the first layer of the fully connected neural network; is the bias vector of the first layer of the fully connected neural network; Representation Node The node feature matrix of is the trainable weight matrix of the second layer of fully connected neural network; is the bias vector of the second layer of the fully connected neural network; is a nonlinear activation function, such as the ReLU function; the trainable weight matrix is ​​used to map the input node features to the space of the node embedding vector; the bias vector adds an adjustable offset to the output of the neural network, making the neural network more expressive.

[0112] The edge-level embedding layer uses the edge embedding function to transform the adjacency matrix to obtain the adjacency matrix of the attention weights;

[0113] The expression of the edge embedding function is: ; Edge Type The adjacency matrix of attention weights; Edge Type The corresponding degree matrix; For edge type Convolution weight matrix; For each edge type, the degree matrix is ​​a diagonal matrix, and the diagonal elements are the degree (number of connected edges) of each node with respect to that edge type; The degree matrix is ​​used to normalize the adjacency matrix to prevent high-degree nodes from having too much influence on low-degree nodes;

[0114] For each edge type, the convolution weight matrix is ​​used to learn the attention weight corresponding to the edge type; the adjacency matrix is ​​converted into an attention weight adjacency matrix through the convolution operation to capture the different effects of different edge types on node representation.

[0115] The hierarchical aggregation layer uses K-layer neighbor aggregation functions to aggregate the neighbor information of each node to obtain the updated node representation;

[0116] The expression of the neighbor aggregation function is: ;in, For the Layer Node Embedding representation of ; No. Layer for Node The neighbor aggregation function is used to integrate the information of the node and its neighbor nodes; Indicates Layer for Node Aggregate representation of ; Indicates Layer for Node Aggregate representation of ; is the number of adjacency matrices; Index of the edge type.

[0117] The neighbor aggregation function can be mean / max pooling, attention mechanism or gated recurrent unit, etc. Through K-layer aggregation, the node representation can fuse the information of K-order neighbors;

[0118] The embedding representation obtained from the last layer of the K-layer neighbor aggregation function is used as the output of the output layer, which is the node embedding vector.

[0119] It should be noted that after the network architecture of the heterogeneous graph neural network is built, the network parameters need to be adjusted to achieve better output effects. In the process of adjusting the network parameters, the output effect of the node embedding vector is evaluated to adjust the network parameters in real time. The output effect of the node embedding vector is evaluated by interpretability. Interpretability can be understood as a high-quality node embedding vector that should be able to retain the structural semantic information of the nodes in the heterogeneous network. The interpretability of the embedding vector can be evaluated through some visualization and analysis methods. Specifically, it is projected into 2D / 3D space to observe whether similar nodes are clustered together. The cosine similarity between similar / heterogeneous nodes is calculated, and the similarity of similar nodes should be higher. For known node attributes, check whether the embedding vector can retain these attribute information well.

[0120] The multi-region data transmission optimization model is constructed in the following manner:

[0121] Define the model layer structure of the multi-region data transmission optimization model; the model layer structure includes the optimization target layer and the constraint condition layer; and define the decision variables of the multi-region data transmission optimization model X ' = [ x i 1 , x in ] ;in, Indicates from the area The amount of data transferred to the first region; Indicates from the area To the last area Data transmission volume; city Each of the regions has a corresponding node embedding vector; that is, the construction of the multi-region data transmission optimization model is completed.

[0122] The optimization target layer minimizes the total delay of data transmission between regions by using the delay function;

[0123] Delay function ;in, Indicates from the area To area The unit data transmission delay of Indicates from the area To area The amount of data transmission; and They are indexes of different regions; they cannot index the same region at the same time;

[0124] The constraint condition layer uses a comprehensive constraint piecewise function to constrain the balance of inbound and outbound data in each area, constrain the bandwidth capacity limit of each area, and constrain data transmission between adjacent areas;

[0125] The expression of the comprehensive constraint piecewise function is: ;

[0126] in, For Region The bandwidth capacity limit of Indicates from the area To area The amount of data transmission; For Region The node embedding vector and Region The node embedding vector Similarity function of ; is the preset similarity threshold; For all regions ; For all regions and .

[0127] The similarity function ;in, is the bandwidth parameter, The choice of affects the measure of similarity;

[0128] The preset similarity threshold has a value range between [0, 1]. The larger the value, the higher the similarity requirement for adjacent regions. The specific preset method takes into account the number and distribution of regions. If the number of regions is large and the regional distribution is dispersed, the value of the similarity threshold can be appropriately reduced to allow a certain degree of cross-domain transmission to avoid excessive concentration. On the contrary, if the number of regions is small and the regional distribution is concentrated, the value of the similarity threshold can be appropriately increased to limit cross-domain transmission. If different regions differ greatly in characteristics such as transportation, population, and energy, the value of the similarity threshold can be increased to force data to be transmitted only between highly similar regions. On the contrary, if the regional characteristics are relatively similar, the similarity threshold can be appropriately reduced. On the other hand, if the network bandwidth is sufficient and the delay requirement is not high, the similarity threshold can be appropriately reduced to allow a certain degree of cross-domain transmission. On the contrary, if the bandwidth is limited and the delay is sensitive, the similarity threshold needs to be increased to limit cross-domain transmission. The similarity threshold corresponding to the region is finally obtained after multiple experiments based on the region.

[0129] Furthermore, the The solution to the optimal data transmission strategy for a region includes:

[0130] The optimal data transmission strategy is initialized to generate an initial feasible solution ,in, ; Set the initial temperature of the simulated improved annealing algorithm , Cooling coefficient and termination temperature ; The value range of is in the interval [0, 1];

[0131] Calculate the initial solution Initial feasible solution The corresponding total delay ; and enter the simulated annealing cycle;

[0132] The simulated annealing cycle comprises:

[0133] Set the temperature of the current simulated improved annealing algorithm ; and when When , a new solution is generated , new solution By solving the current The perturbation operation is performed to obtain the new solution; when generating a new solution, the constraint condition layer is used to constrain the solution;

[0134] New calculation solution The corresponding total delay ; and calculate the change in the objective function value ;in, For the current solution The corresponding total delay;

[0135] like , then accept the new solution, that is ;like , then with probability Accept the new solution and lower the temperature. Reduce to .

[0136] The disturbance operation modes include:

[0137] Randomly select a region , the area Data transfer volume Add a disturbance value , get the area New data transfer volume For other areas ; Adjust the data transmission volume according to the constraint layer ; and replace the current solution with the new solution;

[0138] When the temperature Less than the end temperature When , terminate the loop;

[0139] When the end temperature is reached When , the current optimal solution is output as the optimal strategy for multi-region data transmission.

[0140] It should be noted that the current solution represents a feasible data transmission scheme in the current cycle, that is, a set of data transmission amounts from each region to other regions, and the current solution corresponds to a target value, that is, the total delay under the data transmission scheme;

[0141] The new solution generates a new feasible data transmission scheme based on the current solution through certain disturbances in each cycle of the simulated annealing cycle; by comparing the total delays under the data transmission schemes of the current solution and the new solution, it is decided with a certain probability whether to accept the new solution, so as to continuously update the current solution, and finally obtain a globally optimal or approximately optimal data transmission strategy;

[0142] Through the above-mentioned simulated annealing algorithm, the multi-region data transmission optimization model can be effectively solved to obtain the optimal data transmission strategy, thereby minimizing the total delay of inter-regional data transmission.

[0143] This embodiment achieves high efficiency of multi-regional data transmission in the city; by constructing a multi-regional data transmission optimization model and using the simulated annealing algorithm to solve the optimal strategy, the total delay of inter-regional data transmission can be minimized, the data transmission efficiency can be improved, and the inefficiency of the traditional point-to-point transmission method can be avoided; secondly, the comprehensiveness and accuracy of data aggregation are improved; by constructing a heterogeneous information network, it can effectively integrate multi-source heterogeneous data in the city, retain the semantic and structural information of the data, and provide richer and more accurate data support for subsequent data analysis and decision-making; at the same time, the outlier identification method based on density clustering can effectively improve data quality and further enhance the reliability of data aggregation; it can significantly improve the efficiency, comprehensiveness and accuracy of multi-regional data transmission and aggregation in the city, and provide better data transmission aggregation support for urban management and decision-making.

[0144] Example 2

[0145] See also Figure 2 As shown, the part not described in detail in this embodiment is described in Example 1, providing an artificial intelligence-based urban multi-regional data transmission and aggregation system, including: a data collection and network construction module for collecting data from the city The original urban area data of each region; the original urban area data is preprocessed, and a heterogeneous information network is constructed based on the preprocessed original urban area data;

[0146] The network fusion module is used to input the heterogeneous information network into the heterogeneous graph neural network to obtain the node embedding vector;

[0147] The transmission strategy output module builds a multi-region data transmission optimization model based on the node embedding vector; the multi-region data transmission optimization model is solved using the simulated improved annealing algorithm. The optimal data transmission strategy for each region; The optimal data transmission strategy for each area is applied to the data transmission summary management terminal; each module is connected by wired and / or wireless means to realize data transmission between modules.

[0148] Example 3

[0149] See also Figure 3 As shown, this embodiment discloses an electronic device, including a memory, a central processing unit, and a computer program stored in the memory and executable on the central processing unit. When the processor executes the computer program, the operation mode of the above-mentioned artificial intelligence-based urban multi-region data transmission aggregation method is implemented.

[0150] Since the electronic device introduced in this embodiment is an electronic device used to implement the method for summarizing urban multi-regional data transmission based on artificial intelligence in the embodiment of this application, based on the method for summarizing urban multi-regional data transmission based on artificial intelligence introduced in the embodiment of this application, a person skilled in the art can understand the specific implementation of the electronic device of this embodiment and its various variations, so how the electronic device implements the method in the embodiment of this application is not described in detail here. As long as a person skilled in the art implements the electronic device used by the method for summarizing urban multi-regional data transmission based on artificial intelligence in the embodiment of this application, it belongs to the scope of protection of this application.

[0151] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.

[0152] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technical users in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A method for summarizing urban multi-regional data transmission based on artificial intelligence, characterized in that: include: S1. Collect from cities The original urban area data of each region; Preprocessing the original urban area data, and building a heterogeneous information network based on the preprocessed original urban area data; S2, input the heterogeneous information network into the heterogeneous graph neural network to obtain the node embedding vector; S3. Based on the node embedding vector, a multi-region data transmission optimization model is constructed. The multi-region data transmission optimization model is solved by using the simulated improved annealing algorithm. The optimal data transmission strategy for each region; The optimal data transmission strategy for each area is applied to the data transmission summary management terminal; The method of preprocessing the original urban area data includes: Standardize or normalize the original urban area data so that the original urban area data are within the same numerical range; obtain a standard urban area data set; use a density clustering algorithm on the standard urban area data to identify the outliers in the standard urban area data, and remove the identified outliers to obtain the pre-processed original urban area data; The construction method of the heterogeneous information network includes: The heterogeneous information network is defined to include nodes and edges between nodes. According to the semantics of the pre-processed original urban data, entities with the same attributes and functions are divided into the same type of node types; for complex entities, further subdivided; The abstract data in the preprocessed original urban data is regarded as the attributes of the node rather than a separate node type; the edge type is defined according to the semantic association between entities; the edge types include topological adjacent edges, traffic flow edges, inclusion edges and influence edges; Topological adjacent edges connect adjacent road nodes and building nodes; traffic flow edges connect the starting and ending nodes that generate traffic flow data; inclusion edges are building nodes that include population nodes and energy nodes; influence edges are traffic flow data that affects energy consumption and population density that affects traffic flow data; for undirected relationships, undirected edges are used; for directed relationships, directed edges are used; all edges carry attribute information, including weights and timestamps; thus, the basic framework of heterogeneous information networks is completed; Match and map different entities in the preprocessed original urban area data to the basic framework according to the designed node types; connect the relationships between entities to the basic framework according to the designed edge types; The node embedding vector is obtained by: Define the network architecture of heterogeneous graph neural network; the network architecture includes input layer, node-level embedding layer, edge-level embedding layer, hierarchical aggregation layer and output layer; The input layer is used to input the node feature matrix obtained from the heterogeneous information network and the adjacency matrix corresponding to different edge types; Node-level embedding layer, for the node feature matrix, use the embedding function to transform; get the embedding representation; use the 2-layer fully connected neural network as the embedding function; The expression of the embedded function is: ;in, Indicates that at the node Embedding representation of ; is the trainable weight matrix of the first layer of the fully connected neural network; is the bias vector of the first layer of the fully connected neural network; Representation Node The node feature matrix of is the trainable weight matrix of the second layer of fully connected neural network; is the bias vector of the second layer of the fully connected neural network; is a nonlinear activation function, such as the ReLU function; The edge-level embedding layer uses the edge embedding function to transform the adjacency matrix to obtain the adjacency matrix of the attention weights; The expression of the edge embedding function is: ; Edge Type The adjacency matrix of attention weights; Edge Type The corresponding degree matrix; For edge type Convolution weight matrix; The hierarchical aggregation layer uses K-layer neighbor aggregation functions to aggregate the neighbor information of each node to obtain the updated node representation; The expression of the neighbor aggregation function is: ;in, For the Layer Node Embedding representation of ; No. Layer for Node Neighbor aggregation function of ; Indicates Layer for Node Aggregate representation of ; Indicates Layer for Node Aggregate representation of ; is the number of adjacency matrices; is the index of the edge type; The neighbor aggregation function is mean / max pooling, attention mechanism or gated recurrent unit; through K-layer aggregation, the node representation can fuse the information of K-order neighbors; The embedding representation obtained by the last layer of the K-layer neighbor aggregation function is used as the output of the output layer, which is the node embedding vector; The multi-region data transmission optimization model is constructed in the following manner: Define the model layer structure of the multi-region data transmission optimization model; the model layer structure includes the optimization target layer and the constraint condition layer; and define the decision variables of the multi-region data transmission optimization model ;in, Indicates from the area The amount of data transferred to the first region; Indicates from the area To the last area Data transmission volume; city Each region in the region has a corresponding node embedding vector; that is, the construction of the multi-region data transmission optimization model is completed; The optimization target layer minimizes the total delay of data transmission between regions by using the delay function; Delay function ;in, Indicates from the area To area The unit data transmission delay of Indicates from the area To area The amount of data transmission; and Indexes for different regions; The constraint condition layer uses a comprehensive constraint piecewise function to constrain the balance of inbound and outbound data in each area, constrain the bandwidth capacity limit of each area, and constrain data transmission between adjacent areas; The expression of the comprehensive constraint piecewise function is: ; in, For Region The bandwidth capacity limit of Indicates from the area To area The amount of data transmission; For Region The node embedding vector and Region The node embedding vector Similarity function of ; is the preset similarity threshold; For all regions ; For all regions and ; Said The solution to the optimal data transmission strategy for a region includes: The optimal data transmission strategy is initialized to generate an initial feasible solution ,in, ; Set the initial temperature of the simulated improved annealing algorithm , Cooling coefficient and termination temperature ; The value range of is in the interval [0, 1]; Calculate the initial solution Initial feasible solution The corresponding total delay ; and enter the simulated annealing cycle; The simulated annealing cycle comprises: Set the temperature of the current simulated improved annealing algorithm ; and when When , a new solution is generated , new interpretation By solving the current The perturbation operation is performed to obtain the new solution; when generating a new solution, the constraint condition layer is used to constrain the solution; New calculation solution The corresponding total delay ; and calculate the change in the objective function value ;in, For the current solution The corresponding total delay; like , then accept the new solution, that is ;like , then with probability Accept the new solution and lower the temperature. Reduce to ; The disturbance operation includes: Randomly select a region , the area Data transfer volume Add a disturbance value , get the area New data transfer volume For other areas ; Adjust the data transmission volume according to the constraint layer ; and replace the current solution with the new solution; when the temperature Less than the end temperature When the end temperature is reached, the cycle is terminated. When , the current optimal solution is output as the optimal strategy for multi-region data transmission.

2. The method for urban multi-regional data transmission and aggregation based on artificial intelligence according to claim 1 is characterized in that: The original urban area data includes traffic data, population data and energy consumption data; Traffic data includes road network data, traffic flow data and public transportation station data; population data includes population size, population density and population age structure; energy consumption data includes electricity consumption data and fuel consumption data.

3. The method for urban multi-regional data transmission and aggregation based on artificial intelligence according to claim 1 is characterized in that: The outlier identification method includes: Defines the key parameters of the density clustering algorithm; key parameters include neighborhood radius and the minimum number of samples MP; For each data point in the standard urban area dataset , calculate its neighborhood radius -The number of points in the neighborhood ;in, Represents data points With point The distance between is an indicator function, which takes the value of 1 when its internal condition is met, otherwise it takes the value of 0; like When it is less than or equal to MP, it is called a data point is the core object; if there is another core object , so that the data points lie in Neighborhood radius -neighborhood, then it is called is a density-reachable object; if there is a chain, the data point With another core object Connected together, it is called are density-connected objects; the density-connected objects are clustered to form a cluster; the data points that are not clustered are marked as outliers; For steps marked as outliers, a distance threshold is introduced , calculate each data point To the center of the cluster to which it belongs Distance ;like Greater than distance threshold , then Mark as outlier; The distance threshold ;in, For all The mean of For all The standard deviation of is a hyperparameter; Set the proportion threshold based on the number of outliers , when the number of outliers in a cluster is greater than When , all data points in the cluster are marked as outliers; otherwise, only outlier data points are removed; It is a cluster size.

4. The method for urban multi-region data transmission and aggregation based on artificial intelligence according to claim 3 is characterized in that: Methods for obtaining the key parameters and distance thresholds: Collect the algorithm training data set, divide the algorithm training data set into training set and validation set, and calculate the Rand index of the density clustering algorithm as an evaluation indicator of the outlier identification effect; The algorithm training data set is a data set consisting of original urban area data within a period of history; And mark the data points in the algorithm training data set with real labels; The true label is whether it is an outlier; Calculate the distance matrix between all data points in the algorithm training data set, and draw a distance matrix histogram based on the distance matrix to obtain the distance distribution; Get the neighborhood radius based on the distance distribution , and set The minimum number of samples MP is initially set to search in the range of [5, 20], and the step size is 1 or 2; Calculate the distance from each data point in the algorithm training data set to the center of the cluster to which it belongs; draw a distribution histogram of these distances; determine the search range of the distance threshold based on the distribution histogram, and set the step size of the distance threshold; A batch of data points are taken out from the training set one by one as the validation set, and the remaining data points are used as the training subset; on the training subset, the density clustering algorithm is run with different parameter combinations to obtain clustering results; the parameter combination is a combination of key parameters and distance thresholds; the reserved data points are assigned to the nearest cluster according to their distances from the center of each cluster; the evaluation index under the parameter combination is calculated, and repeated until all data points have been used as the validation set once; the mean of the evaluation index of all validation sets is calculated as the comprehensive score of the parameter combination; all parameter combinations are enumerated, and the parameter combination with the highest comprehensive score is selected as the optimal solution, that is, the specific values ​​of the key parameters and distance thresholds are obtained; The calculation formula of the evaluation index is: ;in, is the number of pairs of data points in the same cluster; is the number of pairs of data points in different clusters; is the number of pairs of data points in different clusters but with the same true label; is the number of pairs of data points in the same cluster but with different true labels.

5. An artificial intelligence-based urban multi-regional data transmission aggregation system, used to implement the artificial intelligence-based urban multi-regional data transmission aggregation method as claimed in claim 1, characterized in that: include: Data collection and network construction module, used to collect data from cities The original urban area data of each region; Preprocessing the original urban area data, and building a heterogeneous information network based on the preprocessed original urban area data; The network fusion module is used to input the heterogeneous information network into the heterogeneous graph neural network to obtain the node embedding vector; The transmission strategy output module builds a multi-region data transmission optimization model based on the node embedding vector; the multi-region data transmission optimization model is solved using the simulated improved annealing algorithm. The optimal data transmission strategy for each region; The optimal data transmission strategy for each area is applied to the data transmission summary management terminal; each module is connected by wired and / or wireless means.