Method, device, equipment and medium for predicting regional demand of OD for intercity carpooling based on STZINB-GCN

Through the STZINB-GCN model, combined with deep convolution and diffusion graph convolution network, it solves the spatiotemporal correlation and data sparsity problems in intercity carpooling OD regional demand prediction, achieves more accurate demand forecasting, and improves carpooling services. efficiency and vehicle utilization.

CN118410915BActive Publication Date: 2024-10-22HUAQIAO UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410798558.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-22
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Regional demand prediction for intercity carpooling OD faces complex spatiotemporal correlation and data sparsity problems. Existing technology is difficult to accurately capture the spatial similarity and time correlation of travel demand between functionally similar areas, resulting in limited optimization of carpooling services.

Method used

The intercity carpooling OD regional demand prediction method based on STZINB-GCN is used to obtain historical order data, extract time and space features, use deep convolution and diffusion graph convolutional neural network to model time and space correlation, and combine with Hadamard Accumulate fusion information and decode zero-inflated negative binomial distribution to predict demand.

Benefits of technology

It improves the prediction accuracy under high spatial and temporal resolution, can effectively predict passenger travel demand, helps transportation agencies flexibly configure vehicles, improve vehicle utilization, and meet the demand prediction needs of intercity carpooling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410915B_ABST
    Figure CN118410915B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and medium for predicting regional demand of OD pairs of intercity carpooling based on STZINB-GCN, and relates to the technical field of intercity passenger carpooling planning. Among them, this prediction method comprises steps S1 to S5. S1. Obtain historical order data of intercity carpooling, propose historical demand characteristics, historical inflow characteristics and time information characteristics to construct a total data set and split it, and obtain input data. S2. Obtain an OD pair adjacency relationship graph. S3. According to the input data, the time information is compressed by separating the information of each channel through deep convolution, and the time correlation information is obtained through a two-layer convolution feedforward network. S4. According to the input data and the OD pair adjacency relationship graph, the spatial dependency information from one OD pair to another is learned through a three-layer diffusion graph convolutional neural network. S5. The time correlation information and the spatial dependency information are fused through the Hadamard product, and then decoded into a true distribution through a zero-inflated negative binomial distribution to obtain a predicted value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intercity passenger carpooling planning, and in particular to a method, device, equipment and medium for predicting OD of intercity carpooling based on STZINB-GCN for regional demand. Background Art

[0002] In the field of intercity passenger transport, carpooling services are increasingly becoming one of the mainstream travel modes. Compared with short-distance high-speed trains that need to go to specific stations, carpooling services rely on online car-hailing platforms to provide passengers with seamless connections from their doorsteps to their destinations, significantly improving the convenience and flexibility of travel. In terms of cost, carpooling services effectively reduce personal travel costs by matching passengers with similar departure points, destinations and departure times to share fares.

[0003] By predicting passenger travel demand and flexibly dispatching vehicle resources, intercity carpooling platforms can effectively improve vehicle utilization and serve more people who share travel. The challenges faced by intercity carpooling in forecasting OD pairs (Origin-Destination pairs) are mainly the complex spatiotemporal correlations within and between cities and the data sparsity problem at high spatiotemporal resolution.

[0004] In terms of spatial correlation, it is not only affected by the mutual influence of travel demands in urban areas, but also involves the mutual influence between the starting and ending city areas. At the same time, there is spatial correlation in travel demands in areas with similar functions within the city and between the starting and ending cities.

[0005] In terms of time correlation, regional demand forecast is not only related to the historical demand trend and cycle within the city, but also to the historical net inflow of passengers in the region. In the prior art, in order to capture the time correlation between days of the week, one-hot encoding or periodic function is used to map the week categories. However, this technical solution cannot reflect the time correlation that, for example, the inter-city travel demand is greater on Sundays than on Mondays.

[0006] The problem of data sparsity means that the Gaussian assumption of traditional deterministic deep learning models is no longer applicable.

[0007] In terms of passenger demand forecasting, the existing patent (patent number: ZL202311132916.8) only forecasts demand for the departure city area and fails to provide complete passenger travel information. The predicted passenger travel information does not include the passenger's destination and cannot provide the best carpooling service, which limits the optimization of carpooling services.

[0008] At present, most OD demand forecasting models focus on using regular grids or administrative divisions, considering the impact of adjacent regional demand on the forecast and the impact of historical demand. However, these methods may be limited by road blockage or detour problems, and it is difficult to accurately capture the spatial similarity of travel demand between functionally similar areas. In addition, the randomness of historical demand makes the learning of time correlation more complicated. Therefore, OD regional demand forecasting for intercity carpooling still needs to find a more effective solution. Summary of the invention

[0009] The present invention provides a method, device, equipment and medium for predicting OD for regional demand of inter-city carpooling based on STZINB-GCN, so as to improve at least one of the above technical problems.

[0010] In a first aspect, an embodiment of the present invention provides a method for predicting regional demand for OD of inter-city carpooling based on STZINB-GCN, which comprises steps S1 to S5.

[0011] S1. Obtain the historical order data of inter-city carpooling, and extract the historical demand characteristics, historical inflow characteristics and time information characteristics of city A from the historical order data to construct the total data set. Then, split the data according to the preset step size to obtain the input data.

[0012] S2. Obtain the OD pair adjacency relationship graph.

[0013] S3. According to the input data, the time information is compressed by separating the information of each channel through deep convolution, and the time correlation information of each feature and each channel is obtained through a two-layer convolution feedforward network.

[0014] S4. Based on the input data and the OD pair adjacency relationship graph, a three-layer diffusion graph convolutional neural network is used to model the spatial correlation as a diffusion process, and learn the spatial dependency information from one OD pair to another.

[0015] S5. Fusing the time correlation information and the space dependency information through the Hadamard product to capture the time-space dependency, and decoding the fused time-space information into a true distribution through a zero-inflated negative binomial distribution to obtain a predicted value.

[0016] In an optional embodiment, step S1 includes steps S11 to S16.

[0017] S11. Obtain historical order data of inter-city carpooling. In the formula, For departure point, For the destination, For departure time, The latitude and longitude of the order.

[0018] S12. According to the historical order data, the historical demand characteristics of all OD pairs within the time step are obtained, that is, the historical demand characteristics of all areas of city A to all areas of city B within the time step. The expression of the historical demand characteristics is: In the formula, Indicates that all OD pairs are Historical demand characteristics of time segments, , is the serial number of the OD pair, is the set of OD pairs, Indicates OD pairs Historical demand vector within a time slice; Indicates OD pairs on the previous day Travel demand in time segments. Indicates OD pairs in the previous week Travel demand in time segments. Indicates OD for History of the Week Time segment with highest travel demand. Indicates OD for History Week Minimum travel demand in a time segment. Indicates OD for History of the Week Average travel demand per time segment.

[0019] S13. According to the historical order data, the historical inflow characteristics of the OD pairs within the time step are obtained, that is, the number of passengers who flowed into the city A from all areas of the city B within the time step. The expression is: In the formula, Indicates that all OD pairs are The net inflow of passengers into all areas of city A during the time segment. Indicates OD pairs The net number of passengers flowing into all areas of city A during the time segment, is the serial number of the OD pair, is the set of OD pairs.

[0020] S14. Obtain an OD-to-time information feature set based on the historical order data. The expression of the OD-to-time information feature set is: In the formula, For week categories. It is a weekend feature, with a weekend value of 1 and a weekday value of 0. It is a holiday feature, with holidays as 1 and weekdays as 0.

[0021] S15. Historical demand characteristics , Historical inflow characteristics , and time information features Constructed as a total data set .

[0022] S16: Divide the total data set into input data according to a preset number of time periods or a preset time step.

[0023] In an optional embodiment, step S2 specifically includes: obtaining inter-city road network information and points of interest data , and the road network information Data elimination and topological processing are performed to divide the city into regions, regional POIs are marked for the divided regions, and then an OD pair adjacency relationship graph between cities is obtained. The cities include city A and city B.

[0024] In an optional embodiment, step S2 includes steps S21 to S27.

[0025] S21. Obtain the road network information of the starting and ending cities from the official website of OpenStreetMap . In the formula, It is the main traffic road in the city. It is a secondary urban road. It is a third-level road. For highways, For expressway, It is a residential road.

[0026] S22. Based on road network information ArcGIS software was used to perform data elimination and topological processing to divide the starting and ending cities into regions and obtain OD pairs between urban areas.

[0027] S23. Obtain the city’s points of interest data from the official website of commercial map software . In the formula, For the name, For the address, is the coordinate, For category.

[0028] S24, performing region identification on the acquired POI data according to the divided regions, and acquiring the number of POIs in each region.

[0029] S25, using the TF-IDF algorithm to calculate the weight of each type of POI in each OD pair. The expression of the TF-IDF algorithm is: In the formula, The area of ​​city A POI weight, The area of ​​city A The word frequency, The area of ​​city A The number of POIs in a category, The area of ​​city A Total number of POIs in The area of ​​city B POI weight, The area of ​​city B The word frequency, The area of ​​city B The number of POIs in a category, The area of ​​city B Total number of POIs in is the inverse document frequency, is the number of OD pairs, is the number of OD pairs containing one type of POI.

[0030] S26, calculating the POI similarity between the OD pairs by cosine similarity according to the weights. Wherein, the expression of the cosine similarity is: In the formula, is the cosine similarity value, represents the POI weight vector of all regions in city A, Represents the POI weight vector of all regions in city B. POI similarity matrix The expression is: In the formula, Indicates The OD pair and the The POI similarity of OD pairs.

[0031] S27, constructing an adjacency matrix of the OD pairs of the starting and ending cities according to the POI similarity matrix. The expression of the adjacency relationship graph of the OD pairs of the starting and ending cities is: In the formula, Represents the node set consisting of the area of ​​city A and the area of ​​city B. The area set divided by city A and city B and , , ,constitute OD pairs, that is , is the POI similarity matrix.

[0032] In an optional embodiment, step S3 specifically includes steps S31 to S33.

[0033] S31, input the input data to the one-dimensional depth separable convolution layer, perform feature extraction and embedding operations through depth convolution and point-by-point convolution, and obtain the first embedded feature. The expression of depth convolution and point-by-point convolution combined operation is: In the formula, is the first embedding feature, The number of features of the convolution input data, represents the temporal embedding features of the deep convolution output, and The weights and bias terms in the convolution kernel are respectively, and the depth convolution kernel size is , For input data. , and Indicates the serial number of its corresponding feature.

[0034] S32: Input the first embedded feature into the channel grouping convolution layer to capture the new feature representation of each variable and the dependency between the learning feature and the variable to obtain the second embedded feature. The expression of the channel grouping convolution is: In the formula, is the second embedding feature, Indicates the connection operation, is the first embedding feature, represents the convolution operation, represents the weight of the convolution kernel, Represents the bias term of the convolution kernel.

[0035] S33, input the second embedded feature into the variable grouping convolution layer to capture the cross-variable dependency of each feature, as well as the information mixed across the feature and variable dimensions, to supplement the feature representation learned in the second embedded feature, and obtain the third embedded feature. The third embedded feature is the time correlation information embedding. The expression of the variable grouping convolution is: In the formula, is the third embedding feature, Indicates a connection operation. is the second embedding feature, represents the convolution operation, represents the weight of the convolution kernel, Represents the bias term of the convolution kernel.

[0036] In an optional embodiment, step S4 specifically includes steps S41 to S45.

[0037] S41, inputting the input data and the OD pair adjacency relationship graph into a diffusion graph convolutional network, and performing shape transformation on the input data and the OD pair adjacency relationship graph, wherein the shape transformation is a transposition operation.

[0038] S42, perform random walk on the OD pair adjacency relationship graph to obtain a forward transfer matrix. The expression of the forward transfer matrix is: In the formula, represents the forward transfer matrix, is the POI similarity matrix, superscript Represents matrix transpose.

[0039] S43, after The Markov property of the diffusion process ensures that the forward transfer matrix converges to a steady-state distribution. , Each row of represents the probability of diffusion from that node, represents the set of real numbers, is the number of OD pairs. The calculation formula for the steady-state distribution is: In the formula, is the total number of diffusion steps, is the index of the diffusion step, is the transition probability, , is the node degree matrix, is the inverse matrix of the node degree matrix, is the POI similarity matrix.

[0040] S44, after The diffusion process generates the query diffusion matrix , the input data generates new feature data after multiple layers of diffusion operations, and then the original input data and the new feature data after diffusion are concatenated to obtain the total feature data, and then the total feature data is convolved, and the final output is obtained through the activation function. Its expression is: In the formula, is the index of the diffusion step, Indicates The characteristic data obtained by diffusion is the diffusion matrix, Indicates total feature data, Indicates the splicing operation, For input data, is the convolution kernel weight, is the convolution bias term, For the final output, is the activation function.

[0041] S45, input the final output into the two-dimensional convolution of the last layer of diffusion graph convolution network, and then use Function Guarantee For positive numbers, use Function Guarantee , obtain spatial dependency information embedding Among them, each of the three-layer diffusion graph convolutional networks is equipped with a two-dimensional convolution. and The expression is: In the formula, For the final output, Is the natural base.

[0042] In an optional embodiment, step S5 specifically includes steps S51 to S55.

[0043] S51. Introducing a new parameter in the negative binomial distribution Learn the zero expansion, and get the zero-inflated negative binomial distribution. The expression of the zero-inflated negative binomial distribution is: In the formula, is a zero-inflated negative binomial distribution, is a negative binomial distribution, For input data, is the learning parameter of zero expansion, and are shape parameters that determine the number of successes and the probability of word failure, respectively.

[0044] S52, spatial dependency information obtained by the diffusion graph convolutional network (D-GCN), and temporal correlation information obtained by the temporal convolutional network are used to parameterize the zero-inflated negative binomial distribution. The spatial dependency information and temporal correlation information contain independent estimates of the parameters of the zero-inflated negative binomial distribution for its spatial and temporal locality.

[0045] The spatiotemporal embedding expression is: In the formula, and The convolutions in the temporal convolutional network and the diffusion graph convolutional network are used to calculate feature embeddings. For input data, is the POI similarity matrix.

[0046] The expression of the two-dimensional convolution operation is: In the formula, the size of the two-dimensional convolution kernel is , is the number of features of the input data. For input data, represents the weight in the convolution kernel, Indicates bias term, lowercase symbol , and Indicates the serial number of its corresponding feature.

[0047] S53, using Hadamard product to fuse spatial dependency information and temporal correlation information, to obtain the parameter set that finally satisfies zero-inflated negative binomial distribution Among them, the parameter set of the zero-inflated negative binomial distribution is finally satisfied The expression is: In the formula, represents the Hadamard product operator, represents the multiplication of corresponding elements, , and They represent the first, second and third parameters of spatial information embedding respectively, , and They are respectively the first parameter, the second parameter and the third parameter for embedding the time correlation information.

[0048] S54, according to the parameter set satisfying the zero-inflated negative binomial distribution , get the probability mass function of the future prediction time step and get the predicted value.

[0049] In the second aspect, an embodiment of the present invention provides an OD-to-region demand forecasting device for inter-city carpooling based on STZINB-GCN, which is characterized by comprising a data acquisition module, a relationship graph acquisition module, a time feature extraction module, a spatial feature extraction module and a fusion decoding module.

[0050] The data acquisition module is used to obtain the historical order data of inter-city carpooling and extract the historical demand characteristics, historical inflow characteristics and time information characteristics of city A from the historical order data to construct the total data set. Then, the data is segmented according to the preset step size to obtain the input data.

[0051] The relationship graph acquisition module is used to obtain the OD pair adjacency relationship graph.

[0052] The time feature extraction module is used to compress the time information by separating the information of each channel through deep convolution according to the input data, and obtain the time correlation information of each feature and each channel through a two-layer convolution feedforward network.

[0053] The spatial feature extraction module is used to model the spatial correlation as a diffusion process based on the input data and the OD pair adjacency relationship graph through a three-layer diffusion graph convolutional neural network, and learn the spatial dependency information from one OD pair to another.

[0054] The fusion decoding module is used to fuse the time correlation information and the space dependency information through the Hadamard product to capture the time and space dependency, and decode the fused time and space information into a true distribution through a zero-inflated negative binomial distribution to obtain a predicted value.

[0055] In a third aspect, an embodiment of the present invention provides an OD-to-region demand forecasting device for intercity carpooling based on STZINB-GCN, characterized in that it includes a processor, a memory, and a computer program stored in the memory. The computer program can be executed by the processor to implement a method for forecasting OD-to-region demand for intercity carpooling based on STZINB-GCN as described in any paragraph of the first aspect.

[0056] In the fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a method for predicting OD regional demand for inter-city carpooling based on STZINB-GCN as described in any paragraph of the first aspect.

[0057] By adopting the above technical solution, the present invention can achieve the following technical effects:

[0058] The method for predicting regional demand of OD pairs of intercity carpooling based on STZINB-GCN in the embodiment of the present invention predicts passenger demand of future starting and ending cities divided into areas according to road network information based on historical demand sequences and historical inflow sequences. By predicting the passenger travel demand of OD pairs in advance, relevant transportation agencies can flexibly configure vehicles, achieve the goal of multi-person carpooling and shared travel, and improve vehicle utilization.

[0059] In addition, the embodiments of the present invention still have high accuracy when facing sparse data under high spatiotemporal resolution, solve the complex spatiotemporal correlations between urban and inter-city areas, provide a good solution for OD demand forecasting of inter-city carpooling, and meet the OD regional demand forecasting of inter-city carpooling in real life. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0061] Figure 1 This is a flow chart of the OD-to-regional demand prediction method for intercity carpooling based on STZINB-GCN.

[0062] Figure 2 It is a logical diagram for constructing the OD pair adjacency relationship graph.

[0063] Figure 3 This is the logic diagram of the OD-to-regional demand prediction method for intercity carpooling based on STZINB-GCN. DETAILED DESCRIPTION

[0064] The technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0065] Example 1, please refer to Figure 1 to Figure 2 The first embodiment of the present invention provides a method for predicting the OD-to-region demand of inter-city carpooling based on STZINB-GCN, which can be performed by a device for predicting the OD-to-region demand of inter-city carpooling based on STZINB-GCN (hereinafter referred to as: prediction device). In particular, it is performed by one or more processors in the prediction device to implement steps S1 to S5.

[0066] S1. Obtain the historical order data of inter-city carpooling, and extract the historical demand characteristics, historical inflow characteristics and time information characteristics of city A from the historical order data to construct a total data set. Then, split the data according to the preset step size to obtain the input data set.

[0067] Based on the above embodiment, in an optional embodiment of the present invention, step S1 includes steps S11 to S17.

[0068] S11. Obtain historical order data of inter-city carpooling. In the formula, For departure point, For the destination, For departure time, The latitude and longitude of the order.

[0069] S12. According to the historical order data, the historical demand characteristics of all OD pairs within the time step are obtained, that is, the historical demand characteristics of all areas of city A to all areas of city B within the time step. The expression is: In the formula, Indicates that all OD pairs are Historical demand characteristics of time segments, , is the serial number of the OD pair, is the set of OD pairs, Indicates OD pairs Historical demand vector within a time slice; Indicates OD pairs on the previous day Travel demand in time segments. Indicates OD pairs in the previous week Travel demand in time segments. Indicates OD for History of the Week Time segment with highest travel demand. Indicates OD for History of the Week Minimum travel demand in a time segment. Indicates OD for History of the Week Average travel demand per time segment.

[0070] S13. According to the historical order data, the historical inflow characteristics of the OD pairs within the time step are obtained, that is, the number of passengers who flowed into the city A from all areas of the city B within the time step. The expression is: In the formula, Indicates that all OD pairs are The net inflow of passengers into all areas of city A during the time segment. Indicates OD pairs The net number of passengers flowing into all areas of city A during the time segment, is the serial number of the OD pair, is the set of OD pairs.

[0071] S14. Obtain OD time information feature set based on the historical order data. The expression is: In the formula, For week categories. It is a weekend feature, with a weekend value of 1 and a weekday value of 0. It is a holiday feature, with 1 for holidays and 0 for weekdays.

[0072] Specifically, in order to fully reflect the time correlation between weeks, the week categories are mapped using periodic functions. The periodic function is: In the formula, is a cosine periodic function, Use 1 to 7 for Monday to Sunday.

[0073] The existing technical solutions only set Monday to Sunday to 0 to 6 or use one-hot encoding, which cannot reflect the time correlation between holidays and weekends. For example, the demand for inter-city travel on Sunday is greater than that on Monday. Therefore, the embodiment of the present invention specifically adds weekend categories and holiday categories.

[0074] S15. Historical demand characteristics , Historical inflow characteristics , and time information features Constructed as a total data set .

[0075] S16. Divide the total data set into input data according to the preset number of time periods or the preset time step. Then input the input data into the STZINB-GCN model (Spatiotemporal Zero-Inflated Negative Binomial Distribution-Graph Convolutional Neural Network Model. Among them, ST is the combination of Spatial Temporal space and time, ZINB is Zero-Inflated Negative Binomial Zero-Inflated Negative Binomial Distribution, and GCN is Graph Convolution Networ Graph Convolution Network) to perform steps S2 to S5 for prediction and obtain prediction data. Preferably, the number of time periods is 9.

[0076] The input data is represented as: In the formula, For input data, For historical demand characteristics, is the historical inflow characteristics, is the time information feature, For the start time, is the time step, The predicted data of the STZINB-GCN model (Spatial Temporal Zero Inflated Negative Binomial Distribution-Graph Convolutional Neural Network Model. ST is the combination of Spatial Temporal space and time, ZINB is Zero-Inflated Negative Binomial Zero Inflated Negative Binomial Distribution, and GCN is Graph Convolution Networ) is expressed as: In the formula, For forecasting data, is the predicted data of the last OD pair, For the start time, is the time step, is the number of time periods to be divided, is the number of time periods for the forecast.

[0077] It is understandable that in the training phase, the total data set needs to be divided into a training set and a test set, and then the model is trained using the loss function according to the training data set, and then the trained model is tested using the test data set. Specifically, the total data set is divided into a training data set and a test data set in a ratio of 7:3. The training data set and the test data set are respectively input as input data sets into the prediction model for calculation.

[0078] S2. Obtain the OD pair adjacency relationship graph.

[0079] Specifically, the training phase needs to construct the OD pair adjacency relationship graph of step S2. In the inference phase, the OD pair adjacency relationship graph constructed in the training phase is directly used without re-construction and can be directly obtained.

[0080] In the training phase, step S2 is specifically: obtaining the road network information between cities and points of interest data , and the road network information Data elimination and topological processing are performed to divide the city into regions, regional POIs are marked for the divided regions, and then an OD pair adjacency relationship graph between cities is obtained. The cities include city A and city B.

[0081] Preferably, step S2 includes steps S21 to S27.

[0082] S21. Obtain the road network information of the starting and ending cities from the official website of OpenStreetMap . In the formula, It is the main traffic road in the city. It is a secondary urban road. It is a third-level road. For highways, For expressway, It is a residential road.

[0083] S22. Based on road network information ArcGIS software was used to perform data elimination and topological processing to divide the starting and ending cities into regions. Specifically, city A and city B were divided into regional sets and , , , and finally form OD pairs between 𝑜×d city areas.

[0084] S23. Obtain the city's points of interest data from the official websites of commercial map software (e.g., Amap, Baidu Map, Tencent Map) . In the formula, For the name, For the address, are coordinates, For category.

[0085] S24, performing region identification on the acquired POI data according to the divided regions, and acquiring the number of POIs in each region.

[0086] Among them, the POI feature matrix expression of OD pair is: In the formula, , indicating the The number of POIs of each type in the OD pairs, is the number of catering and shopping categories, The number of life services, is the number of residential buildings, The number of office science and education categories, The number of leisure and entertainment categories, is the number of transportation facilities, The number of public facilities.

[0087] S25. Calculate the weight of each type of POI in each OD pair using the TF-IDF algorithm.

[0088] The TF-IDF algorithm is: In the formula, The area of ​​city A POI weight, The area of ​​city A The word frequency, The area of ​​city A The number of POIs in a category, The area of ​​city A Total number of POIs in The area of ​​city B POI weight, The area of ​​city B The word frequency, The area of ​​city B The number of POIs in a category, The area of ​​city B Total number of POIs in is the inverse document frequency, is the number of OD pairs, is the number of OD pairs containing one type of POI.

[0089] S26. Calculate the POI similarity between the OD pairs by cosine similarity according to the weights to construct a POI similarity matrix.

[0090] The cosine similarity formula is: In the formula, is the cosine similarity value, represents the POI weight vector of all regions in city A, Represents the POI weight vector of all regions in city B.

[0091] POI similarity matrix : In the formula, Indicates The OD pair and the The POI similarity of OD pairs.

[0092] S27: construct an adjacency matrix of the OD pairs of the starting and ending cities according to the POI similarity matrix.

[0093] Specifically, OD pairs are formed by the regional division of the obtained starting and ending cities, and the POI similarities between the OD pairs are used to construct an adjacency relationship graph.

[0094] The expression of the OD pair adjacency graph of the starting and ending cities is: In the formula, Represents the node set consisting of the area of ​​city A and the area of ​​city B. The area set divided by city A and city B and , , , and finally constitute OD pairs, that is , is the POI similarity matrix.

[0095] S3. According to the input data, the time information is compressed by separating the information of each channel through deep convolution, and the time correlation information of each feature and each channel is obtained through a two-layer convolution feedforward network.

[0096] Specifically, the input data is input into the Modern Temporal Convolution Network (MTCN network). The MTCN network contains a depth-separable convolution layer, a channel grouping convolution layer, and a variable grouping convolution layer connected in sequence. The temporal information is compressed by separating the information of each channel through deep convolution, and then the temporal correlation information of each feature and each channel is obtained through a two-layer convolution feedforward network. .

[0097] The forward process of the entire modern temporal convolutional network can be described as In the formula, represents a modern temporal convolutional block, It is The input of the blocks, for the first block .

[0098] like Figure 2 As shown, based on the above embodiment, in an optional embodiment of the present invention, step S3 specifically includes steps S31 to S33.

[0099] S31. Input the input data into a one-dimensional depth-wise separable convolutional layer, perform feature extraction and embedding operations through a combination of depth-wise convolution and point-wise convolution, and obtain a first embedded feature.

[0100] The expression of combining depthwise convolution and pointwise convolution: In the formula, is the first embedding feature, The number of features of the convolution input data, represents the temporal embedding features of the deep convolution output, and The weights and bias terms in the convolution kernel are respectively, and the depth convolution kernel size is , For input data, lowercase symbols , and Indicates the serial number of its corresponding feature.

[0101] S32, inputting the first embedded feature into the channel grouping convolution layer to capture the new feature representation of each variable, responsible for learning the dependency between the feature and the variable, and obtaining the second embedded feature;

[0102] The expression of channel grouped convolution is: In the formula, is the second embedding feature, Indicates the connection operation, is the first embedding feature, represents the convolution operation, represents the weight of the convolution kernel, Represents the bias term of the convolution kernel.

[0103] S33, input the second embedded feature into the variable grouping convolution layer to capture the cross-variable dependency of each feature and mix the information across feature and variable dimensions, supplement the feature representation learned in the second embedded feature, and obtain the third embedded feature. The third embedded feature is the time correlation information embedding . , and They are respectively the first parameter, the second parameter and the third parameter for embedding the time correlation information.

[0104] The expression of variable grouped convolution is: In the formula, is the third embedding feature, Indicates a connection operation. is the second embedding feature, represents the convolution operation, represents the weight of the convolution kernel, Represents the bias term of the convolution kernel.

[0105] S4. Based on the input data and the OD pair adjacency relationship graph, a three-layer diffusion graph convolutional neural network is used to model the spatial correlation as a diffusion process, and learn the spatial dependency information from one OD pair to another.

[0106] Specifically, the input data and the OD pair adjacency graph are fed into a three-layer diffusion graph convolutional neural network (D-GCN), which models the spatial correlation as a diffusion process and learns the spatial dependency parameters from one OD pair to another. .

[0107] Based on the above embodiments, in an optional embodiment of the present invention, as Figure 2 As shown, step S4 specifically includes steps S41 to S45.

[0108] S41, inputting the input data and the OD pair adjacency relationship graph into a diffusion graph convolutional network, and performing shape transformation on the input data.

[0109] The expression of shape transformation is: In the formula, For input data, superscript Represents matrix transpose.

[0110] S42. Perform a random walk on the OD pair adjacency graph to obtain a forward transfer matrix.

[0111] The expression of the forward transfer matrix is: In the formula, represents the forward transfer matrix, is the POI similarity matrix, superscript Represents matrix transpose.

[0112] S43, after The Markov property of the diffusion process ensures that the forward transfer matrix converges to a steady-state distribution. , Each row of represents the probability of diffusion from that node, represents the set of real numbers, is the number of OD pairs.

[0113] The calculation formula for the steady-state distribution is: In the formula, is the total number of diffusion steps, is the index of the diffusion step, is the transition probability, , is the node degree matrix, is the inverse matrix of the node degree matrix, is the POI similarity matrix.

[0114] S44, after The diffusion process generates the query diffusion matrix , the input data generates new feature data after multiple layers of diffusion operations, and then the original input data is concatenated with the new feature data after diffusion to obtain the total feature data, and then the total feature data is convolved and the final output is obtained through the activation function.

[0115] Its expression is: In the formula, is the index of the diffusion step, Indicates The characteristic data obtained by diffusion is the diffusion matrix, Indicates total feature data, Indicates the splicing operation, For input data, is the convolution kernel weight, is the convolution bias term, For the final output, is the activation function.

[0116] S45, input the final output into the two-dimensional convolution of the last layer of diffusion graph convolution network, and then use Function Guarantee For positive numbers, use Function Guarantee , thereby obtaining spatial information embedding .in, , and The first parameter, the second parameter and the third parameter respectively represent the spatial information embedding. The three-layer diffusion graph convolution network is respectively provided with a two-dimensional convolution. Preferably, the two-dimensional convolutions of the three-layer diffusion graph convolution network are the same.

[0117] and The expression is: In the formula, For the final output, Is the natural base.

[0118] Preferably, the basic unit of the diffusion graph convolutional network can be expressed as: In the formula, Indicates hidden layers, is the activation function, is the total number of diffusion steps, is the index of the diffusion step, is the Chebyshev polynomial, is the forward transfer matrix, is the backward transfer matrix, and For the The learned parameters of the hidden layers control how each node transforms the information it receives.

[0119] In this embodiment, the Chebyshev polynomial is used Used to replace the convolution operation, the boundary condition is and , is the identity matrix.

[0120] S5. Fusing the time correlation information and the space dependency information through the Hadamard product to capture the time-space dependency, and decoding the fused time-space information into a true distribution through a zero-inflated negative binomial distribution to obtain a predicted value.

[0121] During the training phase, it is also necessary to calculate the loss value based on the predicted value and the true value until the model with the minimum loss value is finally saved to obtain the optimal Spatial Temporal Zero-Inflated Negative Binomial Distribution-Graph Convolution Network (STZINB-GCN model for short).

[0122] Based on the above embodiments, in an optional embodiment of the present invention, as Figure 2 As shown, step S5 specifically includes steps S51 to S54.

[0123] S51. Introducing a new parameter in the negative binomial distribution Learn the zero inflation, resulting in the zero-inflated negative binomial distribution.

[0124] The expression for the zero-inflated negative binomial distribution is: In the formula, is a zero-inflated negative binomial distribution, is a negative binomial distribution, For input data, is the learning parameter of zero expansion, and are shape parameters that determine the number of successes and the probability of word failure, respectively.

[0125] S52. The spatial dependency information obtained by the diffusion graph convolutional network (D-GCN) and the temporal correlation information obtained by the temporal convolutional network are used to parameterize the zero-inflated negative binomial distribution. The spatial dependency information and the temporal correlation information contain independent estimates of the parameters of the zero-inflated negative binomial distribution for its spatial and temporal locality.

[0126] The spatiotemporal embedding expression is: In the formula, and The convolutions in the temporal convolutional network and the diffusion graph convolutional network are used to calculate feature embeddings. For input data, is the POI similarity matrix.

[0127] The expression of the two-dimensional convolution operation is: In the formula, the size of the two-dimensional convolution kernel is , is the number of features of the input data. For input data, represents the weight in the convolution kernel, Indicates bias term, lowercase symbol , and Indicates the serial number of its corresponding feature.

[0128] S53. Use Hadamard product to fuse spatial dependency information and temporal correlation information to obtain a parameter set that satisfies zero-inflated negative binomial distribution. .

[0129] Finally, the parameter set of zero-inflated negative binomial distribution is satisfied The expression is: In the formula, represents the Hadamard product operator, represents the multiplication of corresponding elements, , and They represent the first, second and third parameters of spatial information embedding respectively, , and They are respectively the first parameter, the second parameter and the third parameter for embedding the time correlation information.

[0130] Specifically, by fusing spatial dependency information and temporal correlation information, other nonlinear operators can be used instead.

[0131] S54, according to the parameter set satisfying the zero-inflated negative binomial distribution , get the probability mass function of the future prediction time step and get the predicted value.

[0132] The method for predicting regional demand of OD pairs of intercity carpooling based on STZINB-GCN in the embodiment of the present invention predicts passenger demand of future starting and ending cities divided into areas according to road network information based on historical demand sequences and historical inflow sequences. By predicting the passenger travel demand of OD pairs in advance, relevant transportation agencies can flexibly configure vehicles, achieve the goal of multi-person carpooling and shared travel, and improve vehicle utilization.

[0133] In addition, the embodiments of the present invention still have high accuracy when facing sparse data under high spatiotemporal resolution, solve the complex spatiotemporal correlations between urban and inter-city areas, provide a good solution for OD demand forecasting of inter-city carpooling, and meet the OD regional demand forecasting of inter-city carpooling in real life.

[0134] In the training phase, it is also necessary to calculate the loss value between the predicted value and the true value, and then save the model with the minimum loss value as the optimal STZINB-GCN model to complete the model training. In addition, in the training phase, it is also necessary to test the model, that is, execute step S6.

[0135] S6. Input the test data set into the optimal STZINB-GCN model saved above to obtain the predicted output.

[0136] Specifically, the above test data set is divided into Form a test sample and place the test sample Input into the inter-city carpooling OD demand forecasting model to obtain forecast output;

[0137] The test sample is represented as: The prediction output expression of the OD demand forecasting model for intercity carpooling is: In the formula, is the prediction result matrix, Representing the future Time Segment The passenger demand of each OD for the area.

[0138] It can be understood that once the intercity carpooling OD to regional demand prediction model based on STZINB-GCN is trained, the OD to regional demand of intercity carpooling can be predicted according to the trained intercity carpooling OD to regional demand prediction model based on STZINB-GCN, and new data with a fixed time step can be input into the OD to regional demand prediction model to realize the prediction of the number of people required for OD in the next time step in the future.

[0139] The present embodiment is further described below with reference to some actual cases.

[0140] The historical data of intercity carpooling orders of a certain company is selected as the research object, specifically the passenger carpooling order data set between City A and City B from June to October 2022. The passenger carpooling order data includes the scheduled boarding time, the longitude and latitude of the boarding point, the longitude and latitude of the alighting point, and the number of companions. As shown in Table 1, the statistical data of the data set are summarized.

[0141] Table 1. Statistics of the dataset

[0142]

[0143] The data from July 1, 2022 to June 30, 2023 were selected as the training set for model training, and the data from July 1, 2022 to March 31, 2023 were selected as the test set for model testing. The model parameter settings are shown in Table 2.

[0144] Table 2. Model parameter settings

[0145]

[0146] The present invention compares some typical prediction model methods, such as:

[0147] 1. History Average is a basic time series model that uses historical averages to predict travel demand.

[0148] 2. Spatiotemporal graph convolution network is a deep learning model for processing spatiotemporal data

[0149] 3. Negative Binomial-Graph Neural Network is a deep learning model used to process graph structured data, which uses negative binomial distribution to represent node features.

[0150] The performance of the model method of the present invention is compared by calculating the mean absolute error MAE, root mean square error RMSE, F1-Score and true zero rate of the above method and the present invention. Among them, the lower the value of MAE and RMSE, the better the prediction accuracy of the model, and the higher the value of F1-Score and True-zero rate, the better the performance of the model in the face of sparse data.

[0151] The calculation formula is as follows: in, and are the true value and the corresponding predicted value respectively, is the output step size.

[0152]

[0153] The comparison results are shown in Table 3:

[0154] Table 3. Prediction performance of different methods

[0155]

[0156] By observing and comparing the MAE, RMSE, F1-Score and True-zero rate of different methods, it can be found that the MAE and RMSE values ​​calculated by the OD demand forecasting method for intercity carpooling provided by the present invention are lower than those of other typical calculation and prediction methods, and the F1-Score and True-zero rate are higher than those of other typical calculation and prediction methods.

[0157] Therefore, compared with the prior art, the method for predicting regional OD demand for intercity carpooling based on STZINB-GCN in the embodiment of the present invention solves the challenge of data sparsity to demand prediction under high spatiotemporal resolution and the problem of incomplete passenger travel demand information (excluding the destination area). By predicting the passenger demand for the OD of the origin and destination cities in advance, the relevant transportation agencies can configure vehicles in advance, thereby reducing passenger waiting time and driver idle mileage.

[0158] Embodiment 2: The embodiment of the present invention provides an OD-to-region demand prediction device for inter-city carpooling based on STZINB-GCN, which is characterized by comprising a data acquisition module, a relationship graph acquisition module, a time feature extraction module, a spatial feature extraction module and a fusion decoding module.

[0159] The data acquisition module is used to obtain the historical order data of inter-city carpooling and extract the historical demand characteristics, historical inflow characteristics and time information characteristics of city A from the historical order data to construct the total data set. Then, the data is segmented according to the preset step size to obtain the input data.

[0160] The relationship graph acquisition module is used to obtain the OD pair adjacency relationship graph.

[0161] The time feature extraction module is used to compress the time information by separating the information of each channel through deep convolution according to the input data, and obtain the time correlation information of each feature and each channel through a two-layer convolution feedforward network.

[0162] The spatial feature extraction module is used to model the spatial correlation as a diffusion process based on the input data and the OD pair adjacency relationship graph through a three-layer diffusion graph convolutional neural network, and learn the spatial dependency information from one OD pair to another.

[0163] The fusion decoding module is used to fuse the time correlation information and the space dependency information through the Hadamard product to capture the time and space dependency, and decode the fused time and space information into a true distribution through a zero-inflated negative binomial distribution to obtain a predicted value.

[0164] Embodiment 3: The embodiment of the present invention provides an OD-to-region demand forecasting device for intercity carpooling based on STZINB-GCN, characterized by comprising a processor, a memory, and a computer program stored in the memory. The computer program can be executed by the processor to implement a method for forecasting OD-to-region demand for intercity carpooling based on STZINB-GCN as described in any paragraph of the first embodiment.

[0165] Embodiment 4. The embodiment of the present invention provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a method for predicting OD for regional demand of inter-city carpooling based on STZINB-GCN as described in any paragraph of the first embodiment.

[0166] It is understandable that the prediction device may be an electronic device with computing capabilities, such as a portable notebook computer, a desktop computer, a server, a smart phone, or a tablet computer.

[0167] In several embodiments provided in the embodiments of the present invention, it should be understood that the disclosed apparatus and method can also be implemented in other ways. The apparatus and method embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the apparatus, method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that 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 flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0168] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code. It should be noted that in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

Claims

1. A method for predicting regional demand for inter-city carpooling OD based on STZINB-GCN, characterized in that: Include: Obtain the historical order data of inter-city carpooling, and extract the historical demand characteristics, historical inflow characteristics, and time information characteristics of city A from the historical order data to construct a total data set; then, split the data according to the preset step size to obtain input data; Get the OD pair adjacency graph; According to the input data, the time information is compressed by separating the information of each channel through deep convolution, and the time correlation information of each feature and each channel is obtained through a two-layer convolution feedforward network; According to the input data and the OD pair adjacency graph, a three-layer diffusion graph convolutional neural network is used to model the spatial correlation as a diffusion process, and learn the spatial dependency information from one OD pair to another; The time correlation information and the space dependency information are fused through the Hadamard product to capture the time-space dependency, and the fused time-space information is decoded into a true distribution through a zero-inflated negative binomial distribution to obtain a predicted value; Obtain the historical order data of inter-city carpooling, and extract the historical demand characteristics, historical inflow characteristics, and time information characteristics of city A from the historical order data to construct the total data set; Then, the data is split according to the preset step size to obtain the input data set, including: Get historical order data of inter-city carpooling; In the formula, For departure point, For the destination, For departure time, is the order latitude and longitude; According to the historical order data, the historical demand characteristics of all OD pairs within the time step are obtained, that is, the historical demand characteristics of all areas of city A to all areas of city B within the time step; the expression of the historical demand characteristics is: In the formula, Indicates that all OD pairs are Historical demand characteristics of time segments, , is the serial number of the OD pair, is the set of OD pairs, Indicates OD pairs Historical demand vector within a time slice; Indicates OD pairs on the previous day Travel demand in time segments; Indicates OD pairs in the previous week Travel demand in time segments; Indicates OD for History Week The time segment with the highest travel demand; Indicates OD for History Week Minimum travel demand in time segment; Indicates OD for History Week Average travel demand in time segment; According to the historical order data, the historical inflow characteristics of the OD pairs within the time step are obtained, that is, the number of passengers from all areas of city B that net flow into city A within the time step; the expression is: In the formula, Indicates that all OD pairs are The number of passengers who flowed into all areas of city A during the time segment; Indicates OD pairs The net number of passengers flowing into all areas of city A during the time segment, is the serial number of the OD pair, is the set of OD pairs; According to the historical order data, an OD to time information feature set is obtained; the expression of the OD to time information feature set is: In the formula, For week categories; It is a weekend feature, with a weekend value of 1 and a weekday value of 0; It is a holiday feature, with holidays as 1 and working days as 0; Historical demand characteristics , Historical inflow characteristics , and time information features Constructed as a total data set ; The total data set is divided into input data according to a preset number of time periods or a preset time step.

2. According to claim 1, a method for predicting regional demand for OD of intercity carpooling based on STZINB-GCN is characterized in that: Get the OD pair adjacency relationship diagram, specifically: Get the road network information between cities and points of interest data , and the road network information Data elimination and topological processing are performed to divide the city into regions, regional POIs are marked for the divided regions, and then an OD pair adjacency relationship graph between cities is obtained; wherein the cities include city A and city B; Get inter-city road network information and points of interest data , and the road network information Data elimination and topological processing are performed to divide the city into regions, regional POIs are marked for the divided regions, and then the OD pair adjacency relationship diagram between cities is obtained, including: Get the road network information of the starting and ending cities on the official website of OpenStreetMap ; In the formula, It is the main traffic road in the city. It is a secondary urban road. It is a third-level road. For highways, For expressway, It is a residential road; According to the road network information ArcGIS software was used to perform data elimination and topological processing to divide the starting and ending cities into regions and obtain OD pairs between urban regions; Get the city's points of interest data from the official website of the commercial map software ; In the formula, For the name, For the address, are coordinates, For categories; The obtained POI data is marked according to the divided areas, and the number of POIs in each area is obtained; The TF-IDF algorithm calculates the weight of each type of POI in each OD pair; wherein the expression of the TF-IDF algorithm is: In the formula, The area of ​​city A POI weight, The area of ​​city A The word frequency, The area of ​​city A The number of POIs in a category, The area of ​​city A Total number of POIs in The area of ​​city B POI weight, The area of ​​city B The word frequency, The area of ​​city B The number of POIs in a category, The area of ​​city B Total number of POIs in is the inverse document frequency, is the number of OD pairs, is the number of OD pairs containing one type of POI; The POI similarity between the OD pairs is calculated by cosine similarity according to the weights; wherein the expression of the cosine similarity is: In the formula, is the cosine similarity value, represents the POI weight vector of all regions in city A, Represents the POI weight vector of all regions in city B; POI similarity matrix The expression is: In the formula, Indicates The OD pair and the POI similarity of OD pairs; According to the POI similarity matrix, an adjacency matrix of the OD pairs of the starting and ending cities is constructed; wherein the expression of the adjacency relationship graph of the OD pairs of the starting and ending cities is: In the formula, Represents the node set consisting of the area of ​​city A and the area of ​​city B. The area set divided by city A and city B and , , ,constitute OD pairs, that is , is the POI similarity matrix.

3. The method for predicting regional demand for OD of intercity carpooling based on STZINB-GCN according to claim 1 is characterized in that: According to the input data, the time information is compressed by separating the information of each channel through deep convolution, and the time correlation information of each feature and each channel is obtained through a two-layer convolution feedforward network, specifically including: The input data is input into a one-dimensional depthwise separable convolutional layer, and then subjected to a combination of depthwise convolution and pointwise convolution operations, feature extraction and embedding operations are performed to obtain the first embedded feature; wherein, the expression for the combination of depthwise convolution and pointwise convolution operations is: In the formula, is the first embedding feature, The number of features of the convolution input data, represents the temporal embedding features of the deep convolution output, and The weights and bias terms in the convolution kernel are respectively, and the depth convolution kernel size is , For input data; lowercase symbols , and Indicates the serial number of its corresponding feature; The first embedded feature is input into the channel grouping convolution layer to capture the new feature representation of each variable and learn the dependency between the feature and the variable to obtain the second embedded feature; wherein, the expression of the channel grouping convolution is: In the formula, is the second embedding feature, Indicates the connection operation, is the first embedding feature, represents the convolution operation, represents the weight of the convolution kernel, Represents the bias term of the convolution kernel; The second embedded feature is input into the variable grouping convolution layer to capture the cross-variable dependency of each feature and mix the information across feature and variable dimensions, supplement the feature representation learned in the second embedded feature, and obtain the third embedded feature; wherein the third embedded feature is the time correlation information embedding; the expression of the variable grouping convolution is: In the formula, is the third embedding feature, Indicates a connection operation. is the second embedding feature, represents the convolution operation, represents the weight of the convolution kernel, Represents the bias term of the convolution kernel.

4. The method for predicting regional demand for OD of intercity carpooling based on STZINB-GCN according to claim 1 is characterized in that: According to the input data and the OD pair adjacency graph, a three-layer diffusion graph convolutional neural network is used to model the spatial correlation as a diffusion process, and learn the spatial dependency information from one OD pair to another, specifically including: Inputting the input data and the OD pair adjacency relationship graph into a diffusion graph convolutional network, and performing shape transformation on the input data and the OD pair adjacency relationship graph; wherein the shape transformation is a transposition operation; Perform a random walk on the OD pair adjacency graph to obtain a forward transfer matrix; the expression of the forward transfer matrix is: In the formula, represents the forward transfer matrix, is the POI similarity matrix, superscript Represents matrix transpose; go through The Markov property of the diffusion process ensures that the forward transfer matrix converges to a steady-state distribution. , Each row of represents the probability of diffusion from that node, represents the set of real numbers, is the number of OD pairs; the calculation formula for the steady-state distribution is: In the formula, is the total number of diffusion steps, is the index of the diffusion step, is the transition probability, , is the node degree matrix, is the inverse matrix of the node degree matrix, is the POI similarity matrix; go through The diffusion process generates the query diffusion matrix , the input data generates new feature data after multiple layers of diffusion operations, and then the original input data and the new feature data after diffusion are concatenated to obtain the total feature data, and then the total feature data is convolved, and the final output is obtained through the activation function; its expression is: In the formula, is the index of the diffusion step, Indicates The characteristic data obtained by diffusion is the diffusion matrix, Indicates total feature data, Indicates the splicing operation, For input data, is the convolution kernel weight, is the convolution bias term, For the final output, is the activation function; The final output is fed into the 2D convolution of the last layer of diffusion graph convolutional network, and then used Function Guarantee For positive numbers, use Function Guarantee , obtain spatial dependency information embedding ; Among them, each of the three-layer diffusion graph convolutional networks is equipped with a two-dimensional convolution; and The expression is: In the formula, For the final output, Is the natural base.

5. The method for predicting regional demand for OD of intercity carpooling based on STZINB-GCN according to claim 1 is characterized in that: The time correlation information and the space dependency information are fused through the Hadamard product to capture the time and space dependency, and the fused time and space information is decoded into a true distribution through a zero-inflated negative binomial distribution to obtain a predicted value, specifically including: Introducing a new parameter in the negative binomial distribution Learning the zero expansion leads to the zero-inflated negative binomial distribution; the expression of the zero-inflated negative binomial distribution is: In the formula, is a zero-inflated negative binomial distribution, is a negative binomial distribution, For input data, is the learning parameter of zero expansion, and are the shape parameters that determine the number of successes and the probability of word failure, respectively; The spatial dependency information obtained by the diffusion graph convolutional network (D-GCN) and the temporal correlation information obtained by the temporal convolutional network are used to parameterize the zero-inflated negative binomial distribution; the spatial dependency information and the temporal correlation information contain independent estimates of the parameters of the zero-inflated negative binomial distribution for its spatial and temporal locality; The spatiotemporal embedding expression is: In the formula, and The convolutions in the temporal convolutional network and the diffusion graph convolutional network are used to calculate feature embeddings. For input data, is the POI similarity matrix; The expression of the two-dimensional convolution operation is: In the formula, the size of the two-dimensional convolution kernel is , is the number of features of the input data; For input data, represents the weight in the convolution kernel, Indicates bias term, lowercase symbol , and Indicates the serial number of its corresponding feature; The spatial dependency information and temporal correlation information are fused using the Hadamard product to obtain the parameter set that ultimately satisfies the zero-inflated negative binomial distribution. ; Among them, the parameter set of the zero-inflated negative binomial distribution is finally satisfied The expression is: In the formula, represents the Hadamard product operator, represents the multiplication of corresponding elements, , and They represent the first, second and third parameters of spatial information embedding respectively, , and are respectively the first parameter, the second parameter and the third parameter for embedding the time correlation information; According to the zero-inflated negative binomial distribution parameter set , get the probability mass function of the future prediction time step and get the predicted value.

6. A device for predicting regional demand for OD of inter-city carpooling based on STZINB-GCN, characterized in that: Include: The data acquisition module is used to obtain the historical order data of inter-city carpooling, and extract the historical demand characteristics, historical inflow characteristics and time information characteristics of city A from the historical order data to construct a total data set; then, the data is segmented according to a preset step size to obtain input data; A relationship graph acquisition module is used to obtain an OD pair adjacency relationship graph; A time feature extraction module, used to compress the time information by separating the information of each channel through deep convolution according to the input data, and obtain the time correlation information of each feature and each channel through a two-layer convolution feedforward network; A spatial feature extraction module is used to model the spatial correlation as a diffusion process based on the input data and the OD pair adjacency relationship graph through a three-layer diffusion graph convolutional neural network, and learn the spatial dependency information from one OD pair to another; A fusion decoding module, used to fuse the time correlation information and the space dependency information through Hadamard product, capture the time and space dependency, and decode the fused time and space information into a true distribution through zero-inflated negative binomial distribution to obtain a predicted value; The data acquisition module is specifically used to perform the following steps: Get historical order data of inter-city carpooling; In the formula, For departure point, For the destination, For departure time, is the order latitude and longitude; According to the historical order data, the historical demand characteristics of all OD pairs within the time step are obtained, that is, the historical demand characteristics of all areas of city A to all areas of city B within the time step; the expression of the historical demand characteristics is: In the formula, Indicates that all OD pairs are Historical demand characteristics of time segments, , is the serial number of the OD pair, is the set of OD pairs, Indicates OD pairs Historical demand vector within a time slice; Indicates OD pairs on the previous day Travel demand in time segments; Indicates OD pairs in the previous week Travel demand in time segments; Indicates OD for History Week The time segment with the highest travel demand; Indicates OD for History Week Minimum travel demand in time segment; Indicates OD for History Week Average travel demand in time segment; According to the historical order data, the historical inflow characteristics of the OD pairs within the time step are obtained, that is, the number of passengers from all areas of city B that net flow into city A within the time step; the expression is: In the formula, Indicates that all OD pairs are The number of passengers who flowed into all areas of city A during the time segment; Indicates OD pairs The net number of passengers flowing into all areas of city A during the time segment, is the serial number of the OD pair, is the set of OD pairs; According to the historical order data, an OD to time information feature set is obtained; the expression of the OD to time information feature set is: In the formula, For week categories; It is a weekend feature, with a weekend value of 1 and a weekday value of 0; It is a holiday feature, with holidays as 1 and working days as 0; Historical demand characteristics , Historical inflow characteristics , and time information features Constructed as a total data set ; The total data set is divided into input data according to a preset number of time periods or a preset time step.

7. A device for predicting regional demand for inter-city carpooling OD based on STZINB-GCN, characterized in that: It includes a processor, a memory, and a computer program stored in the memory; the computer program can be executed by the processor to implement a method for predicting OD to regional demand of inter-city carpooling based on STZINB-GCN as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method for predicting OD regional demand for inter-city carpooling based on STZINB-GCN as described in any one of claims 1 to 5.