Travel time estimation method based on dual graph convolutional network based on intersection joint modeling
By capturing complex relationships between intersections and road segments through dual graph convolutional networks, combined with spatiotemporal features, it solves the problem that the relationship between intersections and road segments is not fully considered in the existing technology, and achieves higher travel time estimation accuracy.
Patent Information
- Application Number
- CN202211622742.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-16
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-12-16
AI Technical Summary
It is difficult for the existing technology to accurately consider the complex relationship between intersections and road sections when estimating travel time, resulting in poor travel time estimation accuracy.
A deep learning model based on dual graph convolutional network is used to capture the complex relationships of intersections and road sections through node graphs and edge graphs. It combines the spatiotemporal graph learning layer and the multi-task learning layer to integrate multi-scale spatial and temporal features to conduct intersection and road section analysis. Joint modeling.
The accuracy of travel time estimation is significantly improved and the travel time of the entire path, road segment and intersection can be estimated simultaneously, which is better than traditional methods.
Smart Images

Figure CN116246457B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of road network analysis, and more specifically, to a travel time estimation method of a dual graph convolutional network based on intersection joint modeling. Background Art
[0002] Estimating the travel time of a given path plays an important role in many urban transportation systems, such as navigation, route planning, and carpooling. Since the path sequence on the traffic network consists of alternating road segments and intersections, the potential features of intersections and road segments are very important for estimating the travel time on the road network. Intersections, where traffic lights or other traffic signs are usually introduced to guide traffic behavior, have a significant impact on driving speed. How to jointly model intersections and road segments is a very challenging problem. First, there is a complex relationship between intersections and road segments. Specifically, there is a mutual influence between two adjacent intersections, and their correlation changes with the traffic conditions. For example, when traffic congestion occurs at one intersection, this congestion state is likely to spread to the adjacent intersections. At the same time, the road segments connected to the same intersection are also closely related, and the interaction between them depends on their upstream or downstream sections. Traffic flow flows from the upstream section to the downstream section, while the congestion state of the section is back-propagated from the downstream to the upstream section, so there is also a strong correlation between the adjacent upstream and downstream sections. In addition, the spatiotemporal attributes attached to the transportation network are not only related to the local traffic patterns in a small area, but may also be affected by the global traffic patterns in a large area.
[0003] In the prior art, methods related to travel time estimation mainly include segment-based, path-based and deep learning-based travel time estimation methods.
[0004] Work related to segment-based travel time estimation mainly studies the travel time estimation of individual segments. For example, support vector regression is used to predict the travel time of a segment. However, since existing segment-based methods do not consider intersections and correlations between segments, it is difficult to accurately predict the travel time of the entire path. Path-based travel time estimation methods are used to solve the problem of full path travel time estimation. For example, based on the assumption that paths with similar sources and destinations have similar travel times, the travel time of a path is estimated by looking up nearby historical trajectories. However, this method has difficulty in effectively capturing the complex spatiotemporal patterns of traffic along the path, resulting in poor accuracy.
[0005] The travel time estimation method based on deep learning can better learn the complex spatiotemporal features related to the path. For example, the end-to-end deep learning framework DeepTTE is used to estimate the travel time of the path. The model can capture the spatial and temporal correlation characteristics of a given path. However, the model does not consider the joint modeling of intersections and paths.
[0006] In summary, most existing works focus on estimating the travel time of a route by modeling road segments or intersections separately. These works do not consider the complex relationship between intersections and road segments, and thus cannot accurately estimate the travel time. This is because intersections and road segments, as basic elements of routes, not only contain diverse spatial attributes and temporal dynamics, but also have strong coupling correlations. If the characteristics of intersections and road segments are not considered simultaneously, it is difficult to achieve higher accuracy in the travel time estimation task. Summary of the invention
[0007] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a travel time estimation method based on a dual graph convolutional network with joint intersection modeling. The method comprises the following steps:
[0008] Obtaining a target path and a corresponding departure time, wherein the target path is a sequence of a series of road sections and intersections in a road network;
[0009] For the target path and the corresponding departure time, the travel time is estimated using a dual graph convolutional network, where the dual graph convolutional network takes minimizing a set loss function as a goal and is trained using a historical trajectory dataset;
[0010] The dual graph convolution network includes an embedding layer, a spatiotemporal graph learning layer and a multi-task learning layer, and the spatiotemporal graph learning layer captures spatiotemporal features by performing dual graph convolution on the node graph and the edge graph;
[0011] Each node and edge of the node graph represents a road intersection and road section respectively, and the nodes of the edge graph are corresponding edges in the node graph.
[0012] Compared with the prior art, the present invention has the advantage of proposing a novel end-to-end deep learning model framework, namely a dual graph convolutional network for travel time estimation, for joint modeling of intersections and road segments. The provided model uses a dual graph convolution method to capture the complex relationship between intersections and road segments, wherein a node graph is constructed to characterize the correlation between intersections, and an edge graph is constructed to characterize the interaction characteristics between road segments. In addition, in order to capture the joint relationship of spatial and temporal features, a spatiotemporal learning module is introduced to capture temporal dependencies while integrating multi-scale spatial relationships from multiple neighborhoods.
[0013] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0015] Figure 1 is a flow chart of a travel time estimation method based on a dual graph convolutional network of intersection joint modeling according to an embodiment of the present invention;
[0016] Figure 2 is an overall framework diagram of a deep learning model according to an embodiment of the present invention;
[0017] Figure 3 is a general framework diagram of an embedding layer according to an embodiment of the present invention;
[0018] Figure 4 is a schematic diagram of a spatiotemporal graph learning layer according to an embodiment of the present invention;
[0019] Figure 5 is a schematic diagram of an enhanced graph convolutional network according to an embodiment of the present invention;
[0020] Figure 6 is an architectural diagram of a multi-task learning layer according to one embodiment of the present invention;
[0021] Figure 7 This is a diagram showing the changing trend of model performance under different parameter combinations according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0023] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0024] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0025] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0026] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0027] The present invention proposes an innovative end-to-end learning model framework (or DGCN-TTE) based on graph convolutional neural network (GCN) to estimate travel time. First, in order to learn the complex relationship between intersections and road sections, a dual graph convolution architecture is proposed, which not only considers the correlation between different intersections and different road sections, but also explores the interaction pattern between intersections and road sections. Furthermore, an enhanced GCN (R-GCN) module is proposed to integrate spatial information within different neighborhoods, and the gated recurrent neural network (GRU) structure is integrated with R-GCN to capture the temporal correlation of dynamic attributes of the road network while combining spatial relationships to achieve learning of spatiotemporal dependency associations. Finally, the present invention adopts a multi-task learning method to simultaneously estimate the travel time of the complete path, each pass section and intersection.
[0028] See also Figure 1 As shown, the provided dual graph convolutional network travel time estimation method for intersection joint modeling includes the following steps.
[0029] Step S110 , jointly modeling road segments and intersections to estimate the travel time of a given path.
[0030] First, road segments and intersections are jointly modeled according to the following definitions.
[0031] Trajectory: A trajectory Y is defined as a series of consecutive GPS observations Y = {y1, y2, ..., y |Y|}, where each value includes the location (i.e. latitude longitude and timestamp ).
[0032] Road network: The road network is defined as a directed graph G = (V, E), where V and E represent the node set and edge set respectively. Node v∈V represents an intersection in the road network. Edge e i,j ∈E represents the connection intersection v i and v j section of road.
[0033] Path: A path P is a sequence of road segments and intersections in a road network, for example, P = {e start,1 , v1, e 1,2 , v2, ..., e M-1,end}. The path can be obtained from the original trajectory data through the road network matching method.
[0034] Task description: Given a path P and a departure time t d , the present invention aims to use the historical trajectory dataset D and the corresponding network G to estimate the travel time t θ , which can be expressed as:
[0035]
[0036] Where Θ = {P, v P ,s P} represents the entire path and its corresponding set of road segments and intersections. is a function used for travel time estimation, i.e., the deep learning model proposed in the present invention.
[0037] Step S120, using a dual graph convolutional network to build an end-to-end deep learning model, where the node graph is used to characterize the correlation between intersections, and the edge graph is used to characterize the interaction characteristics between road sections.
[0038] Jointly modeling intersections and road segments for travel time estimation is challenging. First, the relationship between intersections and road segments is complex. Second, this relationship also implies diverse spatiotemporal features. In addition, these two features are not independent of each other. To address these problems, this paper proposes a novel model, namely the dual graph convolutional network (DGCN-TTE), which includes an embedding layer, a spatiotemporal graph learning layer, and a multi-task learning layer. The overall framework is as follows: Figure 2 shown.
[0039] (1) Embedding layer design
[0040] Good initial representation vectors (also called embeddings) of road segments and intersections are very important for effectively learning their complex features in other parts of the model. One possible way is to use one-hot encoding representation, but the data generated by this method is too sparse to distinguish the characteristics of different road segments and intersections well. To solve this problem, in one embodiment, external factors (e.g., the type of road segment and the geospatial attributes of the intersection) are integrated to initialize the representation vectors of road segments and intersections. In particular, for intersections, the information of its adjacent road segments can also be merged into the intersection representation vector.
[0041] For example, the representation of road segments is initialized by incorporating important factors that affect the path travel time (such as driving speed, road type, and driving distance) into the provided model, such as Figure 3 As shown, specifically, the representation of the road segment at time t can be defined as follows:
[0042]
[0043] where s e (t) is the average speed of the road section at time t, d eis the distance of the road segment, p e is the road type. e is a learnable parameter matrix. [] is a merge operator.
[0044] For intersections, since they are connected to multiple road segments, their representation can be initialized by aggregating the representations of the connected road segments. At the same time, they also have their own specific geospatial attributes (such as traffic lights at intersections). Therefore, the representation of an intersection at time t can be defined as:
[0045]
[0046] Where F(v) represents the set of road segments connected to the intersection node v. v Indicates whether there is a traffic light at the intersection. W1 and W2 represent learnable parameter matrices.
[0047] (2) Spatiotemporal graph learning layer
[0048] To address the challenge of how to jointly model intersections and road sections, the present invention first designs node and edge graph convolutions to capture their complex relationships. Furthermore, to capture spatial features at different scales, the R-GCN model is proposed to integrate features from multiple spatial information scales. Next, a spatiotemporal learning method is introduced to jointly learn their spatiotemporal features.
[0049] The spatiotemporal graph learning layer is as follows Figure 4 As shown in the figure, it mainly includes dual graph convolution method, enhanced GCN (R-GCN) and spatiotemporal learning method, so as to realize the joint modeling of intersections and road sections.
[0050] Dual Graph Convolution: Existing methods use GCN with weighted graphs to learn the interactions between road segments, while the intersections connecting the road segments are represented by fixed scalars (e.g., weighted sums). This method ignores the complex interactions between road segments and their connected intersections. To learn their joint features, the present invention designs a dual graph convolution method to simultaneously model their complex relationships.
[0051] Let G = (V, E, W) represent the node graph, where each node and edge represents an intersection and road section respectively. G′ = (V′, E′, Q) is the corresponding edge graph, E′ represents the new edge in the edge graph, and the node V′ of G′ is the corresponding edge in the node graph edge set E, that is, V′(i→j), (i, j)∈E and |V′| = |E|. W and Q represent the weighted adjacency matrices of their interactions respectively.
[0052] In the node graph G, the edge weights between any two adjacent nodes i and j are different. Intuitively, if node i and node j have large out-degree and in-degree respectively, then the edge weight representing the correlation between node i and node j is small. Therefore, the edge weight W is defined as follows:
[0053]
[0054] Among them, deg + (i) and deg + (j) represents the out-degree and in-degree of node i and node j respectively. R is the standard deviation of node degree. ij represents the adjacent relationship between nodes i and j in the graph. Specifically, for each pair (i, j)∈V×V, if (i, j)∈E then R ij is 1 if the value is true, otherwise it is 0.
[0055] In the edge graph G′, the edge weight q i,j It is defined as the fraction of the flow from segment i to segment j. Obviously, if the flow from segment i to segment j is greater than the flow from segment i to other adjacent segments, then the correlation between i and segment j is strong. Therefore, the edge weight Q is defined as follows:
[0056]
[0057] Among them, z ij is the number of trajectories from node i to node j. N(i) is the set of one-hop neighbors of node i.
[0058] Therefore, the k-hop dual graph convolution can be expressed as:
[0059]
[0060] Among them, θ *G is a graph convolution operation with parameter θ, The association matrix encodes the connection relationship between nodes and edges and is defined as: i,(i→j) =M j,(i→j) =1, otherwise 0. (l+1) and H (l+1) Represent the output of the node graph and edge graph respectively.
[0061] Enhanced GCN (R-GCN): Graph convolution can aggregate information of one-hop neighbors. By stacking multiple graph convolution layers, the range of the receptive neighborhood can be expanded. However, as the number of network layers increases, the features of nodes tend to be global patterns, while local pattern features are lost. Therefore, in one embodiment, multi-scale information is integrated to capture global and local features simultaneously. To solve this problem, an enhanced GCN (R-GCN) is proposed, such as Figure 5 shown.
[0062] In order to capture important features from the output of the first few layers, the present invention improves the existing work and uses the snowball method to incrementally connect multi-scale features. For example, the gated recurrent unit (GRU) is first proposed to filter and select features. Compared with other types of RNN models, GRU is a simple but effective structure. The structure is expressed as:
[0063]
[0064] in, A is a symmetric adjacency matrix, I is an identity matrix. σ is a nonlinear activation function, such as the function Tanh. (l) is the hidden representation of the intersection or road segment at the lth hop. l is the hidden state after processing the l-1th hop neighbor, and its initial value is c (-1) = 0. Then the vector representation of the hidden state is derived from GRU and is defined as:
[0065]
[0066] where ⊙ represents element-wise multiplication. is the weight parameter, is the bias parameter.
[0067] Spatiotemporal learning method: This paper uses GRU to capture the temporal dependencies of intersection and road segment features, such as Figure 5 Specifically, the historical information of intersections and road sections is used to learn their temporal features. The formula can be expressed as:
[0068]
[0069] Where f() represents the function of dual graph convolution, and L represents the number of layers of dual graph convolution. i (t) is the representation of the i-th intersection at time step t, z i (t) is the representation of the i-th road segment at time step t, s i (t) is the hidden state after the i-th intersection after the dual graph convolution operation at time step t, x i (t) The hidden state of the i-th road segment after the dual graph convolution operation at time step t. W Ω , W′ Ω , U Ω and U′ Ω is the weight matrix, b Ω , b′ Ωis a bias parameter, where Ω∈{u, r, h}. In particular, the present invention applies dual graph convolution operations to both the input and hidden representations of GRU to fully learn both spatial and temporal information.
[0070] (3) Multi-task learning layer
[0071] In order to simultaneously estimate the travel time of each road section, intersection and the entire path, the present invention adopts a multi-task sequence model with a multi-task loss function, which can simultaneously estimate the local (i.e., intersection and road section) and global (i.e., path) travel time.
[0072] Since traffic information is always sequentially dependent, the present invention uses path information reflecting the temporal dependencies between road segments and intersections to further learn it, e.g. Figure 6 As shown. For simplicity, q is used to represent s and x. Therefore, the formula can be expressed as:
[0073]
[0074] Among them, c i (t) represents the final representation of the i-th road segment or intersection at time step t.
[0075] Prediction: To estimate the travel time for each road segment (intersection), for example, a two-layer fully connected neural network with specifications λ and 1 is used, and is the travel time of the i-th road section (j-th intersection).
[0076] To directly estimate the travel time of the entire path, the feature sequence c i Converted into a fixed-length vector. The estimated travel time for the complete path is expressed as:
[0077]
[0078] Where |P| is the total number of road segments and intersections in path P. Finally, g P Pass it through several fully connected layers of equal size and obtain an estimate of the entire path travel time.
[0079] Step S130, training the deep learning model using the set loss function.
[0080] In the training phase, the mean absolute percentage error (MAPE) is used as the objective function to estimate the travel time of the entire path, and the loss function is expressed as:
[0081]
[0082] Among them, t i represents the estimated travel time, is the true value of the travel time of the ith path. In addition, a parameter ∈ is added to avoid the loss value exploding when the denominator is close to 0. For example, ∈ is set to 5.
[0083] For local path travel time estimation, the corresponding loss is defined as the average loss of all local paths:
[0084]
[0085] in, represents the true value of the travel time of the jth road segment, represents the estimated value of the travel time of the jth road segment.
[0086] For the estimation of the intersection travel time, the corresponding loss is defined as the average loss of all intersections:
[0087]
[0088] in is the true value of the travel time at the jth intersection, represents the estimated travel time of the jth intersection.
[0089] In the training process of the proposed model, the weighted combination of the three loss terms is minimized as the overall loss, which is expressed as:
[0090] L=αL P +βL l +(1-α-β)L v (15)
[0091] Among them, α and β are used to balance L P , L l and L v .
[0092] Step S140, using the trained deep learning model to estimate the travel time of the target path.
[0093] After the model training is completed, it can be applied to the actual road network to estimate the travel time for the target path. Since the proposed model framework can estimate the travel time of road segments, intersections and the entire path in parallel, it is helpful to deploy it in practical map navigation services.
[0094] It should be noted that the above model training process can be performed offline on the server or cloud, and the travel time of the target path can be estimated in real time by embedding the trained model into an electronic device. The electronic device can be a terminal device or a server, and the terminal device includes any terminal device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sale (POS), a car computer, a smart wearable device (smart watch, virtual reality glasses, virtual reality helmet, etc.). The server includes but is not limited to an application server or a Web server, and can be an independent server, a cluster server or a cloud server, etc.
[0095] In order to verify the effect of the present invention, the model was verified using a real data set, and the effectiveness of each component of the model was further demonstrated using an ablation experiment. The experimental process is described as follows.
[0096] 1) Dataset Introduction
[0097] The proposed model is evaluated using three real-world datasets, namely the Chengdu dataset, the Porto dataset, and the Beijing dataset.
[0098] The Chengdu dataset contains taxi trajectories of more than 14,000 taxis in Chengdu, China in August 2014, and is publicly available at (TaxiTravel Time Prediction Challenge[Z]. http: / / www.dcjingsai.com.2016).
[0099] The Porto dataset contains taxi trajectories of 442 taxis in Porto, Portugal from July 2013 to June 2014 and can be easily obtained from https: / / www.kaggle.com / crailtap / taxi-trajectory.
[0100] The Beijing dataset contains 34,696 anonymized trajectories from the popular mobile application Amap in Beijing, China, between 8:00 AM and 1:00 PM on December 15, 2020. We use this dataset to evaluate the proposed framework on the deep learning platform of Amap's service provider.
[0101] For the two public datasets, the road network information of Chengdu and Porto, including road segments, intersections and their connectivity, was first obtained from OpenStreetMap. Next, for each dataset, each trajectory was projected into the road network using existing map matching methods to obtain the corresponding path, and the unmatched paths with significant deviations (±10%) from the original trajectory were filtered out. Finally, 310,507 and 1,788,723 paths were extracted from the Porto and Chengdu datasets, respectively. Due to the limitation of computing resources, the present invention did not use all the matching paths in the two datasets, and selected the trajectories distributed in the city center because there are relatively large numbers of trajectories in these areas. For the Beijing dataset, after preprocessing by the AutoNavi data platform, the sequence of road segments and intersections for each trajectory was obtained. Unlike the other two datasets, the travel time of each intersection in this dataset is available, which makes it possible to simultaneously estimate the travel time of the entire path, road segments and intersections.
[0102] Table 1 is the statistical data of the three datasets used in the experiment. Since geographic space and time factors may affect the prediction performance of travel time, in order to verify the universality of the proposed model, the present invention also selects trajectories on the Chengdu dataset according to three scenarios: suburban, peak and off-peak. Especially for the suburban scenario, since some trajectories are traversed along the suburban paths, it can further verify the impact of data sparsity on the performance of the proposed model. At the same time, peak and off-peak time scenarios are defined in the urban area. It should be noted that in the experiment, the peak hours on weekdays are defined as 7:00-9:00 in the morning and 5:00-7:00 in the afternoon, and other time periods are regarded as off-peak hours. Table 2 is the statistical data of the Chengdu dataset in three scenarios.
[0103] Table 1 Basic information of the experimental dataset
[0104] Dataset Chengdu Porto Beijing Number of tracks 15303 12683 34696 Number of sections 873 544 714 Number of intersections 807 450 320 Average travel time (seconds) 246.54 248.49 343.3 Average moving distance (meters) 1435.34 1394.82 3929.7
[0105] Table 2 Numerical statistics of Chengdu dataset in three scenarios: suburban, peak and non-peak
[0106]
[0107]
[0108] 2) Evaluation indicators and loss functions
[0109] The experiment selected three indicators to evaluate the performance of the model, including mean error (MAE), root mean square error (RMSE) and mean absolute percentage error (MAPE). MAE and RMSE can well reflect the error between the estimated result and the true value, among which RMSE is more useful for large errors. MAPE is a relative error that measures the accuracy of the estimation. These indicators can be used to comprehensively evaluate the performance of the model. The definitions of these indicators are as follows:
[0110]
[0111]
[0112]
[0113] For the above indicators, smaller values represent better prediction performance. In the proposed model, the dimension size of the representation of intersections and road sections is set to 20. The number of R-GCN layers is set to 3, and the number of hops of the dual graph convolution is set to 1 by default. The historical information of intersections and road sections with 5 minutes as the basic time unit in the first 12 time steps is used to capture their spatiotemporal dynamic characteristics. The number of fully connected layers in the multi-task learning layer is set to 2, and the number of hidden layers is set to 60. The model is trained using the Adam optimizer, and the model of the present invention is run on the TITAN XP GPU and implemented in Python using the PyTorch 1.5 environment. Each experiment is repeated 5 times and the average is taken.
[0114] 3) Baseline Model
[0115] To evaluate the effectiveness of the proposed model, ten state-of-the-art comparison methods are selected and summarized as follows:
[0116] AVG: Calculates the average segment speed for a city over a specific time interval. With such historical average speeds, the travel time for a given driving route can be estimated based on the departure time.
[0117] TEMP: This is a collective travel time estimation method that uses neighboring historical trajectories with similar origins and destinations. The present invention assigns five neighboring trajectories to each trajectory to be estimated in the experiment and takes the average travel time of these trajectories as the travel time of the trajectory to be estimated.
[0118] GBDT: Use gradient boosted decision tree regression to estimate travel time. Each GPS point sequence is uniformly sampled to 128. The maximum depth of the tree model is set to 8.
[0119] M1pTTE: A multi-layer perceptron is used to estimate travel time. In the experiment, the number of layers of the model is set to 5 and the activation function is ReLU. The size of the hidden layer in MlpTTE is fixed to 64.
[0120] RnnTTE: Using GRU as the implementation of recurrent neural network, the raw GPS sequence is processed into a 128-dimensional feature vector, which is then passed to two fully connected layers to obtain the estimated value of the travel time.
[0121] DeepTTE: This is an end-to-end deep learning model for travel time estimation that captures spatial and temporal dependencies based on consecutively sampled GPS points on the query path. The hidden sizes of the Geo-Conv layer and the GRU layer are set to 64 and 128, respectively.
[0122] T-GCN: This is a temporal GCN model that combines GCN and GRU to simultaneously characterize the spatial and temporal dependencies of traffic prediction. In the experiment, the core architecture of this model is used to estimate travel time. The embedding size of the GCN model is set to 20, and the hidden size of the GRU is set to 128.
[0123] DCRNN: This is a spatiotemporal graph neural network for traffic prediction. The model uses GCN to capture spatial dependencies and then uses recurrent neural networks to model temporal dependencies. In the experiment, its core architecture is used to estimate travel time. The settings of GCN embedding size and GRU hidden size are the same as those of the T-GCN model.
[0124] ConSTGAT: This model uses a graph attention mechanism to explore the joint relationship of spatiotemporal information, which has been proven to be effective in travel time estimation. In the experiment, its core architecture is used, where the embedding size of the graph attention network is set to 32.
[0125] GCNAttTTE: This model first uses GCN to model the road segments, and then adopts the attention mechanism to learn the characteristics of the intersection by summing the embeddings of the connected road segments. In the experiment, the embedding size of the road segment is set to 20.
[0126] 4) Experimental results
[0127] After experimental verification, the model proposed in the present invention has achieved significant improvement compared with the baseline model. This phenomenon can be explained from two aspects. First, for some graph-based methods, such as T-GCN, DCRNN and ConSTGAT, they only focus on modeling road segments. However, intersections, as key nodes connecting multiple connecting road segments, also play an important role in travel time estimation. Therefore, without considering intersections, the model cannot obtain higher accuracy. Secondly, for models such as GCNAttTTE, it has considered intersections and road segments at the same time, but has not fully utilized their joint relationship, so GCNAttTTE cannot achieve the best performance. Unlike the above models, the DGCN-TTE model proposed in the present invention not only considers the characteristics of intersections and road segments, but also captures their complex relationships. Therefore, DGCN-TTE has the best performance.
[0128] Table 3 Performance comparison of DGCN-TTE and other methods on three datasets
[0129]
[0130] Since the model proposed in the present invention can estimate the travel time of road sections, intersections and the entire path at the same time, in the experiment, the proposed model is compared with other graph learning-based methods in predicting the travel time of road sections and intersections. It should be noted that only the Beijing dataset has the travel time information of intersections, and the other models except GCNAttTTE in the compared baseline models do not consider intersections. Therefore, the model of the present invention is compared with GCNAttTTE for the estimation of the travel time of intersections in the Beijing dataset, where the prediction results of intersections are listed after the symbol " / ". Referring to Table 4, it is observed that the model proposed in the present invention obtains better prediction performance on the three datasets for road sections. For intersections, the model proposed in the present invention improves RMSE by 12.23%, MAE by 20.55% and MAPE by 20.53% compared with GCNAttTTE, because the model proposed in the present invention captures the interactive relationship between road sections and intersections, which helps to improve the accuracy of estimating the travel time of road sections and intersections.
[0131] Table 4 Performance comparison of DGCN-TTE and other methods on three datasets
[0132]
[0133] Performance in different scenarios: Since geospatial and temporal factors have a significant impact on travel time estimation. Specifically, different types of areas have different traffic conditions. For example, the city center is usually busy with traffic, while there are few motor vehicles traveling in the suburbs. At the same time, traffic conditions change over time. For example, traffic congestion is more likely to occur during peak hours than during non-peak hours. Based on the above analysis, experiments are conducted to evaluate the performance of the proposed model in estimating the travel time of the path in three different scenarios, including suburban areas, peak hours, and non-peak hours. See the experimental results in Table 5. It can be observed that although traffic congestion may occur during peak hours, the proposed model can achieve at least 7.36%, 7.56%, and 6.86% improvements in RMSE, MAE, and MAPE. However, during non-peak hours, the proposed model achieves at least 10.81%, 13.24%, and 8.58% improvements in RMSE, MAE, and MAPE. At the same time, in suburban areas with a small number of trajectories, the proposed model also achieved at least 2.27%, 4.84% and 8.46% improvement in the prediction performance of RMSE, MAE and MAPE. Relatively speaking, the proposed model has the largest improvement in the non-peak period scenario. However, in either case, the proposed model is significantly better than other methods.
[0134] Table 5 Performance comparison of DGCN-TTE and other methods in three scenarios
[0135]
[0136] Ablation experiment: In order to verify how the spatiotemporal learning method in DGCN-TTE can effectively capture the joint relationship of spatial and temporal attributes, we first remove R-GCN from the hidden state of GRU when processing sequences to obtain the variant DGCN-TTE w / o R-GCN. Analyzing Table 6, it can be found that it cannot achieve good performance compared with DGCN-TTE on both datasets. For example, by comparing with the proposed model, its RMSE, MAE and MAPE performance on the Chengdu dataset decrease by 4.41%, 5.4% and 5.38%, respectively. This is because the spatial information is incorporated into the temporal dependency, which proves the effectiveness of the proposed model. Then, DGCN-TTE without RNN is constructed, which removes the temporal part in DGCN-TTE and obtains the variant DGCN-TTE w / o RNN. The results are shown in Table 6, which shows that the prediction performance of the two datasets decreases significantly after removing the temporal part. This is because the temporal part is crucial for capturing the traffic history information along the path, which shows that simply capturing spatial features cannot achieve better performance. Based on the above analysis, it can be concluded that the spatiotemporal learning method of the present invention can effectively solve the joint relationship of spatiotemporal attributes.
[0137] Next, we study how intersection modeling affects the performance. In the DGCN-TTE w / o Intersection variant, only road segments are modeled to estimate travel time. Referring to Table 6, we can observe that the performance gets worse regardless of the dataset. Specifically, in terms of RMSE, MAE, and MAPE, the performance of DGCN-TTE w / o Intersection drops by 2.45%, 2.5%, and 2.16% on the Chengdu dataset, and by 5.58%, 2.34%, and 3.23% on the Porto dataset. The reason is that intersections not only contain important information of their own, but also have strong correlations with multiple connected intersections. Therefore, DGCN-TTE w / o Intersection, which ignores intersection features, cannot achieve good performance. Finally, the impact of R-GCN in the proposed model is demonstrated. Specifically, a simple GCN is used instead of R-GCN in the DGCN-TTE Simple GCN variant, and then its performance is evaluated. The results show that combining the proposed model with R-GCN can achieve better performance on both datasets, so R-GCN has a stronger ability in capturing multi-scale spatiotemporal information.
[0138] Table 6 Performance comparison of DGCN-TTE and its variants on two datasets
[0139]
[0140] Parameter Analysis: To further demonstrate the effectiveness of the proposed model, experiments are conducted under different parameter combinations, including the number of layers of R-GCN (denoted as n) and the number of hops of the dual graph convolution (denoted as k). Specifically, the proposed model is evaluated under different n for a certain k, see Figure 7 As shown, Figure 7 (a) is the effect of the change of the number of layers n of R-GCN on the performance when the number of graph convolution hops k = 1. Figure 7 (b) shows the effect of the change in the number of layers n of R-GCN on the performance when the number of graph convolution hops k = 2. The upper curve in each figure corresponds to the Chengdu dataset, and the lower curve corresponds to the Porto dataset. Figure 7 As shown in (a), in terms of RMSE, MAE, and MAPE, on the two city datasets, under the condition of k = 1, when n gradually changes from 1 to 3, the performance gradually improves. However, when n = 4, the performance deteriorates. This shows that a higher number of layers in R-GCN does not mean better performance. Figure 7It is observed in (b) that, regardless of the dataset, when the number of layers of R-GCN is 2, its performance is optimal under the condition of k=2. In addition, the performance under different parameter combinations is compared on each dataset. The results in Table 7 show that the proposed model achieves the best performance under the conditions of n=3 and k=1 on the Chengdu dataset, and the best performance under the conditions of n=2 and k=2 on the Porto dataset. This shows that both the number of layers of R-GCN and the number of hops of the dual graph convolution play a key role in achieving higher travel time estimation accuracy. In summary, more layers of R-GCN and larger hops of the dual graph convolution do not mean better performance, and the most appropriate parameter values should be selected according to the corresponding dataset.
[0141] Table 7 Performance comparison of DGCN-TTE and its variants on two datasets
[0142]
[0143] In summary, the present invention proposes an end-to-end deep learning framework to estimate travel time for paths, road segments, and intersections. This is the first attempt to jointly model the features of intersections and road segments for travel time estimation. In addition, a dual graph convolution is proposed to model the relationship between intersections and road segments. This method uses a node graph to capture intersection correlations and constructs an edge graph to characterize the interactive features of road segments. In addition, the present invention proposes an enhanced GCN that can integrate multi-scale spatial information, and introduces a spatiotemporal learning method to fully explore the joint dependency association of spatial and temporal features. Furthermore, the proposed framework is evaluated through multiple experiments on three real-world datasets. Experimental results show that the proposed framework outperforms existing state-of-the-art methods in multiple indicators.
[0144] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0145] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0146] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0147] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages-such as Smalltalk, C++, Python, etc., and conventional procedural programming languages-such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network-including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0148] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0149] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0150] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0151] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0152] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A travel time estimation method for a dual graph convolutional network with joint intersection modeling, comprising the following steps: Obtaining a target path and a corresponding departure time, wherein the target path is a sequence of a series of road sections and intersections in a road network; For the target path and the corresponding departure time, the travel time is estimated using a dual graph convolutional network, where the dual graph convolutional network takes minimizing a set loss function as a goal and is trained using a historical trajectory dataset; The dual graph convolution network includes an embedding layer, a spatiotemporal graph learning layer and a multi-task learning layer, and the spatiotemporal graph learning layer captures spatiotemporal features by performing dual graph convolution on the node graph and the edge graph; Each node and edge of the node graph represents a road intersection and road section respectively, and the nodes of the edge graph are corresponding edges in the node graph.
2. The method according to claim 1, characterized in that The embedding layer initializes the representation of the road segment based on the driving speed, road type and driving distance. The representation of the road segment at time t is defined as: Among them, s r (t) is the average speed of the road section at time t, d e is the distance of the road segment, p e is the road type, W e is a learnable parameter matrix and [] is a merge operator.
3. The method according to claim 1, characterized in that For an intersection, the embedding layer initializes the representation of the intersection by aggregating the representations of connected road segments. The representation of the intersection at time t is defined as: Among them, F(v) represents the set of road segments connected to the intersection node v, p v Indicates whether there is a traffic light at the intersection. W1 and W2 are learnable parameter matrices.
4. The method according to claim 1, characterized in that: The dual graph convolution stacks multiple hop graph convolution layers, each hop graph convolution layer outputs features of different scales, and the output features of each hop graph convolution layer are filtered and selected through a gated recurrent unit.
5. The method according to claim 1, characterized in that The multi-task learning layer adopts a gated recurrent unit.
6. The method according to claim 4, characterized in that The spatiotemporal graph learning layer uses gated recurrent units to capture the temporal dependencies of intersection and road segment features, expressed as: s i (t)=GRU(h i (t),s′ i (t-1)∣W Ω ,U Ω ,b Ω ) x i (t)=GRU(z i (t),x′ i (t-1)∣W′ Ω .U′ Ω ,b′ Ω ) s′ i (t-1),x′ i (t-1)=f(G,G′,s i (t-1),x i (t-1),L) Where f() represents the function of dual graph convolution, L represents the number of layers of dual graph convolution, and h i (t) is the i-th intersection at time step t, z i (t) is the representation of the i-th (road segment) at time step t, s i (t) is the hidden state of the ith intersection (road section) after the dual graph convolution operation at time step t, x i (t) is the hidden state of the i-th road segment after the dual graph convolution operation at time step t, W Ω , W′ Ω , U Ω and U′ Ω is the weight matrix, b Ω , b′ Ω is the bias parameter, G represents the node graph, and G′ represents the edge graph.
7. The method according to claim 1, characterized in that The loss function is set to: L=αL P +βL l +(1-α-β)L v Among them, L P The travel time loss function of the entire path, L l represents the loss function of the local path travel time, L v Represents the loss function of the intersection travel time, α and β are set parameters.
8. The method according to claim 7, characterized in that The travel time loss function of the entire path is set to: Among them, t i represents the estimated travel time, is the true value of the travel time of the ith path, ∈ is the setting parameter, and D represents the historical trajectory dataset; The loss function of the local path travel time is set to: Where P represents the path, represents the true value of the travel time of the jth road segment, represents the estimated value of the travel time of the jth road segment; The loss function of the intersection travel time is set to: in, is the true value of the travel time at the jth intersection, represents the estimated travel time of the jth intersection.
9. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer device comprising a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Driving time estimation method based on graph convolution network and graph attention network
CN112071062A
Traffic prediction method based on dual dynamic space-time diagram convolution
CN114495500A
Attention-based space-time diagram convolution strip mine truck travel time prediction method
CN115034517A
