A Carbon Footprint-User Classification Method Based on Hierarchical Graph Convolutional Network
By using a method based on hierarchical graph convolutional networks, the graph structure and clustering information of trajectory data are constructed, and the hybrid spatiotemporal graph convolutional network and graph attention network are used to solve the problem of poor effectiveness of trajectory data modeling and classification in the existing technology. , achieving high-precision carbon footprint-user classification.
Patent Information
- Application Number
- CN202111631593.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-28
AI Technical Summary
Existing technologies have problems of poor effectiveness and scalability when modeling complex trajectory spatial and temporal information and identifying differences in carbon emissions of different users, especially when processing high-dimensional and sparse mobility data. Extract hidden information.
A method based on hierarchical graph convolutional networks is used to extract sampling points from the historical trajectory data of private cars, construct road sections and road network information, use hybrid spatiotemporal graph convolutional networks and graph attention networks for learning, generate high-dimensional trajectory vectors and Classification model training is performed through multi-layer perceptron to achieve effective classification of carbon footprint-users.
Through the construction of graph structure and clustering method, the problem of data sparseness is alleviated, the accuracy and scalability of the classification model are improved, and high-precision classification of carbon footprint-users is achieved.
Smart Images

Figure CN114266316B
Abstract
Description
Technical Field
[0001] The disclosed embodiments relate to the field of data processing technology, and in particular to a carbon footprint-user classification method based on a hierarchical graph convolutional network. Background Art
[0002] At present, with the continuous increase in the number of cars, especially private cars, traffic congestion, environmental pollution and other problems have arisen, and many cities have formed "urban diseases" that are difficult to eradicate. Many studies at home and abroad have confirmed that excessive emissions of greenhouse gases such as carbon dioxide are an important cause of global warming. Among them, carbon dioxide emissions from the transportation industry account for 14% of global anthropogenic carbon dioxide emissions, and are still increasing year by year, and the huge number of private cars is one of the important sources of carbon dioxide. The impact of private car travel on urban transportation carbon emissions is huge. How to promote the transformation of residents' travel behavior is a key issue for cities to achieve green transportation and low-carbon development.
[0003] In the field of transportation, the GPS and system information collection capabilities of mobile devices are constantly improving, and more and more spatiotemporal trajectory data are being collected. Massive trajectory data provides us with unprecedented information to understand human mobility patterns, and inspires trajectory mining tasks for various applications, such as personalized travel recommendations, intelligent traffic management, etc.
[0004] The main challenge of current research is how to model complex trajectory space and time information, and how to identify the similarities and differences in carbon emissions of different users in similar movement patterns. Although existing representation learning methods have achieved good results, they still have certain limitations. For example, most trajectory data are often too sparse, causing the model to ignore the implicit information preferences in the data. For example, existing work focuses on the relationship between nodes and ignores the natural hierarchical structure in the traffic system, and ignores the contribution of global spatial modeling of trajectory data to classification tasks.
[0005] In recent years, graph structures have been widely studied by researchers for use in building trajectory networks. They usually use graph structures to model traffic data and use graph neural networks to extract the spatial correlation of geographic locations and the temporal correlation of trajectories. However, due to the high dimensionality and sparsity of mobility data, deep mining of mobility trajectories and extracting implicit information for further application has always been a challenging problem. How to model the carbon emission-user classification problem from both macro and micro perspectives in the form of graph structures, and how to make the proposed method more effective and scalable, these issues urgently need further research.
[0006] It can be seen that there is an urgent need for a more effective and scalable carbon footprint-user classification method based on hierarchical graph convolutional networks. Summary of the invention
[0007] In view of this, the embodiments of the present disclosure provide a carbon footprint-user classification method based on a hierarchical graph convolutional network, which at least partially solves the problems of poor classification effectiveness and scalability in the prior art.
[0008] The present disclosure provides a carbon footprint-user classification method based on a hierarchical graph convolutional network, including:
[0009] Extracting multiple sampling points from historical trajectory data of multiple private cars;
[0010] Constructing road section information according to the distances between all sampling points, and constructing road network information according to all the road section information using a spectral clustering method;
[0011] Inputting the road section information and the road network information into the hybrid spatiotemporal graph convolutional network for learning to obtain a hierarchical trajectory embedding representation;
[0012] Encoding the user information and its corresponding trajectory data and embedding them into the hierarchical trajectory embedding representation to obtain a high-dimensional trajectory vector;
[0013] The high-dimensional trajectory vector is input into the graph attention network for dimensionality reduction, and the interaction between carbon footprint and user is learned from the labeled historical trajectory data to obtain the target trajectory vector;
[0014] The target trajectory vector is input into a multi-layer perceptron and an activation function to obtain a classification model.
[0015] According to a specific implementation of the embodiment of the present disclosure, the characteristics of the sampling point include the longitude and latitude of the sampling point, the fuel consumption per 100 kilometers of the private car within a preset interval of the sampling point, and the time corresponding to the sampling point;
[0016] The conversion formula between the carbon footprint of the historical trajectory and the fuel consumption per 100 kilometers is C ft =Fu*0.785, where C ft represents the carbon footprint of the historical trajectory, and Fu represents the fuel consumption per 100 miles.
[0017] According to a specific implementation of the embodiment of the present disclosure, the step of constructing the road network information according to all the road segment information using the spectral clustering method includes:
[0018] An adjacency matrix is formed according to all the road section information, and a Laplacian matrix of the adjacency matrix is subjected to spectral clustering to obtain a plurality of nodes and a plurality of edges;
[0019] The road network information is constructed according to all the nodes, all the edges and the adjacency matrix.
[0020] According to a specific implementation of an embodiment of the present disclosure, the hybrid spatiotemporal graph convolutional network includes a temporal graph convolutional layer and a spatial gated convolutional layer, and the step of inputting the road section information and the road network information into the hybrid spatiotemporal graph convolutional network for learning to obtain a hierarchical trajectory embedding representation includes:
[0021] All the nodes are normalized and then input into the spatial gated convolution layer for convolution operation to obtain the local features corresponding to each road section information;
[0022] All the local features are spatially propagated and then input into the temporal graph convolution layer to extract global features and obtain the hierarchical trajectory embedding representation.
[0023] According to a specific implementation of the embodiment of the present disclosure, the formula for the hierarchical trajectory embedding representation is: Among them, W c and b c They are the weight matrix and bias that can be learned in the network, is the output feature matrix of the local feature layer l, and is the fine-grained output representation in the road network.
[0024] According to a specific implementation of the embodiment of the present disclosure, the step of encoding the user information and its corresponding trajectory data and embedding them into the hierarchical trajectory embedding representation to obtain a high-dimensional trajectory vector includes:
[0025] After encoding the user information and the corresponding trajectory data, encoded data is obtained;
[0026] The encoded data is connected to the hierarchical trajectory embedding representation through a fully connected layer to obtain the high-dimensional trajectory vector.
[0027] According to a specific implementation of an embodiment of the present disclosure, the graph attention network includes a layer of skip connections and a layer of context perception. The step of inputting the high-dimensional trajectory vector into the graph attention network for dimensionality reduction and learning the interaction between carbon footprint and user from the marked historical trajectory data to obtain the target trajectory vector includes:
[0028] Inputting the high-dimensional trajectory vector into the skip connection to obtain different stage features;
[0029] Inputting the stage features and the marked historical trajectory data into the context sensor to calculate similarity and form an attention weight matrix;
[0030] A context vector is generated according to the attention weight matrix to form the target trajectory vector.
[0031] According to a specific implementation of an embodiment of the present disclosure, the step of inputting the target trajectory vector into a multilayer perceptron and an activation function to obtain a classification model includes:
[0032] Inputting the target trajectory vector into the multilayer perceptron and the activation function, iteratively training the parameter factors in the multilayer perceptron, and obtaining the likelihood probability of the carbon footprint-user;
[0033] Optimizing the error between the likelihood probability and the true label corresponding to the target trajectory vector using a cross entropy loss function;
[0034] When the error reaches a preset condition, the multilayer perceptron and activation function after this iterative training are used as the classification model.
[0035] According to a specific implementation of the embodiment of the present disclosure, after the step of inputting the target trajectory vector into a multilayer perceptron and an activation function to obtain a classification model, the method further includes:
[0036] The unlabeled trajectory data is input into the classification model to obtain the corresponding carbon footprint prediction result.
[0037] The carbon footprint-user classification scheme based on the hierarchical graph convolutional network in the embodiment of the present disclosure includes: extracting multiple sampling points from the historical trajectory data of multiple private cars; constructing road section information according to the distances between all the sampling points, and using the spectral clustering method to construct road network information according to all the road section information; inputting the road section information and the road network information into the hybrid spatiotemporal graph convolutional network for learning to obtain a hierarchical trajectory embedding representation; encoding the user information and its corresponding trajectory data and embedding them into the hierarchical trajectory embedding representation to obtain a high-dimensional trajectory vector; inputting the high-dimensional trajectory vector into the graph attention network for dimensionality reduction, and learning the interaction between carbon footprint and users from the labeled historical trajectory data to obtain a target trajectory vector; inputting the target trajectory vector into a multi-layer perceptron and an activation function to obtain a classification model.
[0038] The beneficial effects of the embodiments of the present disclosure are as follows: through the scheme of the present disclosure, a spatiotemporal graph is constructed using a graph structure, and then the hierarchical embedded information of private car trajectories is aggregated using a clustering method, which greatly alleviates the problem of data sparsity, and then training is performed through a graph convolutional network and an attention mechanism network to obtain a high-precision and scalable classification model. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 A schematic diagram of a process flow of a carbon footprint-user classification method based on a hierarchical graph convolutional network provided in an embodiment of the present disclosure;
[0041] Figure 2 An overall framework diagram of a carbon footprint-user classification method based on a hierarchical graph convolutional network provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0042] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0043] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0044] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0045] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0046] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0047] The disclosed embodiment provides a carbon footprint-user classification method based on a hierarchical graph convolutional network, which can be applied to the carbon footprint prediction process of private cars in smart transportation or environmental protection scenarios.
[0048] See also Figure 1 , is a flow chart of a carbon footprint-user classification method based on a hierarchical graph convolutional network provided by an embodiment of the present disclosure. Figure 1 As shown, the method mainly comprises the following steps:
[0049] S101, extracting multiple sampling points from historical trajectory data of multiple private cars;
[0050] Optionally, the characteristics of the sampling point include the latitude and longitude of the sampling point, the fuel consumption per 100 kilometers of the private car within a preset interval at the sampling point, and the time corresponding to the sampling point;
[0051] The conversion formula between the carbon footprint of the historical trajectory and the fuel consumption per 100 kilometers is C ft =Fu*0.785, where C ft represents the carbon footprint of the historical trajectory, and Fu represents the fuel consumption per 100 miles.
[0052] In specific implementation, historical trajectory data of multiple private cars may be obtained first, and the historical trajectory data may include context information such as fuel consumption and trajectory time, location and speed of the private cars. Then all the historical trajectory data may be sampled to obtain multiple sampling points.
[0053] S102, constructing road section information according to the distances between all sampling points, and constructing road network information according to all the road section information using a spectral clustering method;
[0054] Furthermore, in step S102, the road network information is constructed according to all the road segment information using a spectral clustering method, including:
[0055] An adjacency matrix is formed according to all the road section information, and a Laplacian matrix of the adjacency matrix is subjected to spectral clustering to obtain a plurality of nodes and a plurality of edges;
[0056] The road network information is constructed according to all the nodes, all the edges and the adjacency matrix.
[0057] In specific implementation, the distance between sampling points can be used to construct the road section information as a microscopic representation of the trajectory, and then the macroscopic representation of the road network is constructed based on the spectral clustering method. First, the road network graph is represented by the adjacency matrix based on all the road section information, and then the Laplace matrix of the adjacency matrix is spectrally clustered. Each cluster after clustering can be regarded as a node to represent the region. Among them, the trajectory of the road section is represented as TrS, the local graph is represented as GS = (VS, ES, AS); the regional trajectory is represented as TrR, and the global graph is represented as GR = (VR, ER, AR). V, E, and A correspond to the nodes, edges, and adjacency matrix representation matrices on the graph respectively. The regional representation of the road network data is generated by clustering, and together with the road section trajectory features, it is input into the Hybrid Spatio-Temporal Graph Convolutional Network (HST-GCN) as training data to obtain the road network information.
[0058] S103, inputting the road section information and the road network information into the hybrid spatiotemporal graph convolutional network for learning to obtain a hierarchical trajectory embedding representation;
[0059] Optionally, the hybrid spatiotemporal graph convolutional network includes a temporal graph convolutional layer and a spatial gated convolutional layer. In step S103, the road section information and the road network information are input into the hybrid spatiotemporal graph convolutional network for learning to obtain a hierarchical trajectory embedding representation, including:
[0060] All the nodes are normalized and then input into the spatial gated convolution layer for convolution operation to obtain the local features corresponding to each road section information;
[0061] All the local features are spatially propagated and then input into the temporal graph convolution layer to extract global features and obtain the hierarchical trajectory embedding representation.
[0062] In specific implementation, the HST-GCN network includes a graph convolutional network and a spatial gated convolutional network. In order to capture the local spatiotemporal features of the trajectory, all the nodes can be normalized and then input into the spatial gated convolutional layer for convolution operation to obtain the local features corresponding to each section of the road information, and then the local graph GS spatial features are convolved. The formula of the spatial gated convolutional layer is as follows:
[0063] E adp =norm(ReLU(E 1 ,E 2T ))
[0064]
[0065]
[0066] The temporal graph convolution layer follows the multi-layer spatial network propagation rules:
[0067]
[0068] In the formula, E adp represents the adaptive coefficient of the adjacent nodes, D is the degree matrix, and D adpl Represented as the adaptability matrix of the l-th layer network, W l is the trainable weight matrix of the l-th layer network, and ReLU is the activation function of the network; is the adjacency matrix of the local graph, wherein the adjacency matrix represents the feature quantities represented by the nodes in the graph, is the output feature matrix of the l+1th layer of the local graph and the lth layer, and is the fine-grained output representation in the road network.
[0069] In addition, the GCN on the road network graph has the same structure as the GCN on the regional graph. The local spatial features are input into the graph convolutional network to extract the global spatial features, and the hierarchical trajectory embedding representation is obtained. The specific formula is as follows:
[0070]
[0071] In the formula, the network input data becomes is represented as the adjacency matrix of the global graph, is the input feature matrix of the l+1th layer of the global graph, and is the coarse-grained output representation in the road network.
[0072] S104, encoding the user information and its corresponding trajectory data and embedding them into the hierarchical trajectory embedding representation to obtain a high-dimensional trajectory vector;
[0073] Optionally, the formula for the hierarchical trajectory embedding representation is: Among them, W c and b c They are the weight matrix and bias that can be learned in the network, is the output feature matrix of the local feature layer l, and is the fine-grained output representation in the road network.
[0074] Furthermore, as described in step S104, the user information and its corresponding trajectory data are encoded and embedded into the hierarchical trajectory embedding representation to obtain a high-dimensional trajectory vector, including:
[0075] After encoding the user information and the corresponding trajectory data, encoded data is obtained;
[0076] The encoded data is connected to the hierarchical trajectory embedding representation through a fully connected layer to obtain the high-dimensional trajectory vector.
[0077] For example, the formula for concatenating the local embedding and global embedding vectors is as follows:
[0078]
[0079] Where W c and b c They are the weight matrix and bias that can be learned in the network, It is the trajectory embedding representation of the fusion of two-level features generated by the user. The historical trajectory data marked with user ID information, that is, the link trajectory data encoding is represented as Through a fully connected layer, it is connected to the two-level trajectory embedding representation generated by the previous layer, expressed as:
[0080]
[0081] Where W i , b i are the weight matrix and bias in the network, Tanh is the activation function, [;] represents the connection function, H l Represented as a high-dimensional trajectory feature vector.
[0082] S105, inputting the high-dimensional trajectory vector into a graph attention network for dimensionality reduction, and learning the interaction between carbon footprint and user from the marked historical trajectory data to obtain a target trajectory vector;
[0083] Based on the above embodiment, the graph attention network includes a layer of skip connection and a layer of context perception. In step S105, the high-dimensional trajectory vector is input into the graph attention network for dimensionality reduction, and the interaction between carbon footprint and user is learned from the marked historical trajectory data to obtain the target trajectory vector, including:
[0084] Inputting the high-dimensional trajectory vector into the skip connection to obtain different stage features;
[0085] Inputting the stage features and the marked historical trajectory data into the context sensor to calculate similarity and form an attention weight matrix;
[0086] A context vector is generated according to the attention weight matrix to form the target trajectory vector.
[0087] In specific implementation, considering the need to obtain more information from different stage features, these features can be processed through a skip connection, while skipping the information of some nodes to improve network processing efficiency. The formula is as follows:
[0088] H skip =SC(H l )
[0089] In addition, the context sensor uses the output feature vector of the skip connection layer and the history vector, that is, the historical trajectory data encoding of the marked user ID information to calculate the similarity and form an attention weight matrix. Then, a context vector consisting of a weighted sum is generated. The formula is as follows:
[0090] H attention =∑α l *H skip
[0091]
[0092]
[0093] In the formula, H skip is the output feature vector of the skip connection layer; is the history vector; α is the similarity weight; H attention is the attention weight matrix; f(·) is the similarity calculation function; D h is the dimension size of the two vectors.
[0094] S106, inputting the target trajectory vector into a multilayer perceptron and an activation function to obtain a classification model.
[0095] Furthermore, as described in step S106, the target trajectory vector is input into a multilayer perceptron and an activation function to obtain a classification model, including:
[0096] Inputting the target trajectory vector into the multilayer perceptron and the activation function, iteratively training the parameter factors in the multilayer perceptron, and obtaining the likelihood probability of the carbon footprint-user;
[0097] Optimizing the error between the likelihood probability and the true label corresponding to the target trajectory vector using a cross entropy loss function;
[0098] When the error reaches a preset condition, the multilayer perceptron and activation function after this iterative training are used as the classification model.
[0099] For example, the execution process is as follows:
[0100] y i = Dropout(ReLU((H attention )Wattention +b attention ))
[0101]
[0102] Where W attention and b attention are all trainable parameter factors in MLP; y i represents the likelihood probability of carbon footprint linking users, and then performs softmax normalization processing; V u is the one-hot vector representation of the user number; It is expressed as the error result with the true value. This paper uses the cross entropy loss function for calculation; by softmax(y i ), balance the likelihood probability of the classification results of the carbon footprint output to the interval [0,1], so as to find the most likely user matching result.
[0103] Specifically, the disclosed embodiment intends to use the travel trajectory data of private cars in Hunan Province and Guangdong Province. The trajectory data used is based on the travel trajectory data of private cars in Hunan and Guangdong Provinces. As shown in Table 1:
[0104]
[0105] Table 1
[0106] The statistical data of the data set are shown below. The fields of the data set are explained below. The fields used in the data set represent the number of sampling points; the average fuel consumption of the trip (summing up the sampled fuel consumption and dividing it by the number of sampling points); the average carbon emissions of the trip (calculated by C ft =Fu*0.785 formula conversion); statistical time, this article statistics the movement trajectory data of private cars for 30 days; and the average speed of the trip.
[0107] Specifically, the first 80% of the experimental data is used as the training set, and the last 20% is used as the test set; the Adam algorithm is used as the optimizer of the model; the initial value of the learning rate is set to 0.001, and the model automatically decays the initial 90% every 1000 iterations; the batch size of the model training is 64; the experiment sets an early stopping strategy, when the loss of the test set is equal to the loss of the training set, the model training reaches the optimal, that is, the training is stopped to prevent the model from overfitting, and then the classification model is obtained. The experiment uses the cross entropy loss function to evaluate the experimental results:
[0108]
[0109]
[0110] in, is the user ID information of the real trajectory; y i is the predicted trajectory user ID link; V is the predicted trajectory user ID embedded information; V u is the one-hot vector representation of the user ID.
[0111] The carbon footprint-user classification method based on the hierarchical graph convolutional network provided in this embodiment greatly alleviates the problem of data sparsity by making full use of the advantages of the graph structure itself, reconstructs the road network through the spectral clustering method and models the road network through the hierarchy, which provides a new idea for processing massive trajectory data, and uses the hybrid spatiotemporal graph convolutional network to extract the characteristics of time and space at the same time. At the same time, based on the graph attention network layer, it efficiently analyzes the traffic conditions of the road network and extracts private car data features such as carbon emissions. It also encodes the contextual feature information of the mobile trajectory, such as historical trajectory data, to further improve the classification accuracy of the model.
[0112] Based on the above embodiment, after the target trajectory vector is input into a multilayer perceptron and an activation function to obtain a classification model in step S106, the method further includes:
[0113] The unlabeled trajectory data is input into the classification model to obtain the corresponding carbon footprint prediction result.
[0114] In specific implementation, the unlabeled trajectory data may include data that only contains user information or only contains vehicle speed information but lacks some information. When it is necessary to perform classification prediction on the unlabeled trajectory data set, the unlabeled trajectory data can be input into the classification model to obtain the corresponding carbon footprint prediction result.
[0115] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A carbon footprint-user classification method based on hierarchical graph convolutional network, characterized in that: include: Extracting multiple sampling points from historical trajectory data of multiple private cars; Constructing road section information according to the distances between all sampling points, and constructing road network information according to all the road section information using a spectral clustering method; The step of constructing the road network information according to all the road section information by using the spectral clustering method comprises: An adjacency matrix is formed according to all the road section information, and a Laplacian matrix of the adjacency matrix is subjected to spectral clustering to obtain a plurality of nodes and a plurality of edges; Constructing the road network information according to all the nodes, all the edges and the adjacency matrix; Inputting the road section information and the road network information into a hybrid spatiotemporal graph convolutional network for learning to obtain a hierarchical trajectory embedding representation; The hybrid spatiotemporal graph convolutional network includes a temporal graph convolutional layer and a spatial gated convolutional layer. The step of inputting the road section information and the road network information into the hybrid spatiotemporal graph convolutional network for learning to obtain a hierarchical trajectory embedding representation includes: All the nodes are normalized and then input into the spatial gated convolution layer for convolution operation to obtain the local features corresponding to each road section information; After all the local features are spatially propagated, they are input into the temporal graph convolution layer to extract global features and obtain the hierarchical trajectory embedding representation, where the formula of the hierarchical trajectory embedding representation is: Among them, W c and b c They are the weight matrix and bias that can be learned in the network, is the output feature matrix of the local feature layer l, A fine-grained output representation for the road network; Encoding the user information and its corresponding trajectory data and embedding them into the hierarchical trajectory embedding representation to obtain a high-dimensional trajectory vector; The high-dimensional trajectory vector is input into the graph attention network for dimensionality reduction, and the interaction between carbon footprint and user is learned from the labeled historical trajectory data to obtain the target trajectory vector; The target trajectory vector is input into a multi-layer perceptron and an activation function to obtain a classification model.
2. The method according to claim 1, characterized in that ,The characteristics of the sampling point include the latitude and longitude of the sampling point, the fuel consumption per 100 kilometers of the private car within the preset interval of the sampling point, and the time corresponding to the sampling point; The conversion formula between the carbon footprint of the historical trajectory and the fuel consumption per 100 kilometers is C ft =Fu*0.785, where C ft represents the carbon footprint of the historical trajectory, and Fu represents the fuel consumption per 100 miles.
3. The method according to claim 1, characterized in that ,The step of encoding the user information and the corresponding trajectory data and embedding them into the hierarchical trajectory embedding representation to obtain a high-dimensional trajectory vector includes: After encoding the user information and the corresponding trajectory data, encoded data is obtained; The encoded data is connected to the hierarchical trajectory embedding representation through a fully connected layer to obtain the high-dimensional trajectory vector.
4. The method according to claim 1, characterized in that The graph attention network includes a layer of skip connection and a layer of context perception. The step of inputting the high-dimensional trajectory vector into the graph attention network for dimensionality reduction and learning the interaction between carbon footprint and user from the labeled historical trajectory data to obtain the target trajectory vector includes: Inputting the high-dimensional trajectory vector into the skip connection to obtain different stage features; Inputting the stage features and the marked historical trajectory data into the context sensor to calculate similarity and form an attention weight matrix; A context vector is generated according to the attention weight matrix to form the target trajectory vector.
5. The method according to claim 1, characterized in that The step of inputting the target trajectory vector into a multilayer perceptron and an activation function to obtain a classification model includes: Inputting the target trajectory vector into the multilayer perceptron and the activation function, iteratively training the parameter factors in the multilayer perceptron, and obtaining the likelihood probability of the carbon footprint-user; Optimizing the error between the likelihood probability and the true label corresponding to the target trajectory vector using a cross entropy loss function; When the error reaches a preset condition, the multilayer perceptron and activation function after this iterative training are used as the classification model.
6. The method according to claim 1, characterized in that After the step of inputting the target trajectory vector into a multilayer perceptron and an activation function to obtain a classification model, the method further includes: The unlabeled trajectory data is input into the classification model to obtain the corresponding carbon footprint prediction result.
Citation Information
Patent Citations
Track destination prediction method based on knowledge graph and self-attention mechanism
CN113065074A
Methods and systems for predicting a trajectory of a road agent based on an intermediate space
US20210056402A1
Machine learning models of livestock value chain
US20210374640A1
Vehicle travel volume prediction model construction method, and prediction method and system
WO2021212866A1
