Resource scheduling method, device, electronic device and storage medium

By obtaining and analyzing the spatial modal map of the travel area, and using the graph convolution network model to predict future travel volume, we can achieve reasonable scheduling of online ride-hailing resources, solve the problem of difficulty in taking taxis for passengers and empty drivers during peak periods, and improve travel efficiency. Platform service quality.

CN111784018BInactive Publication Date: 2024-08-23BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910265951.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-03
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure CN111784018B
    Figure CN111784018B
Patent Text Reader

Abstract

The present application relates to the field of computer technology, and in particular to a resource scheduling method, device, electronic device and storage medium, wherein the method comprises: obtaining multiple spatial modal graphs corresponding to a target travel area; each spatial modal graph is composed of nodes corresponding to all target travel sub-areas in the target travel area, and node connections corresponding to two target travel sub-areas with a spatial modal relationship, and the information of each node includes a corresponding historical travel volume and a corresponding spatial modal relationship; the multiple spatial modal graphs corresponding to the target travel area are input into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area in a preset time period in the future, and travel resource scheduling is performed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a resource scheduling method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of urban transportation, taxis have become the preferred mode of transportation for many people. Among them, online taxi-hailing platforms provide users with many conveniences.

[0003] For online ride-hailing platforms, it is currently a very important goal to rationally allocate travel resources and help drivers better respond to passengers' needs, thereby achieving a matching balance between passenger orders and vehicle resources to improve the service quality of the travel platform. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a resource scheduling method, device, electronic device and storage medium, which can realize the reasonable scheduling of travel resources.

[0005] It mainly includes the following aspects:

[0006] In a first aspect, the present application provides a resource scheduling method, comprising:

[0007] Acquire multiple spatial modal graphs corresponding to the target travel area; each spatial modal graph is composed of nodes corresponding to all target travel sub-areas in the target travel area and node connections corresponding to two target travel sub-areas having a spatial modal relationship, and information of each node includes a historical travel volume of the corresponding target travel sub-area and a spatial modal relationship between the corresponding target travel sub-area and another target travel sub-area;

[0008] Inputting multiple spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area in the target travel area in a future preset time period;

[0009] Travel resource scheduling is performed based on the travel volume of each target travel sub-area within the target travel area within a future preset time period.

[0010] In some embodiments, the spatial modal relationship includes a distance relationship; the spatial modal graph is obtained according to the following steps:

[0011] Get the distance value between every two target row sub-areas;

[0012] If the distance value is less than the set threshold, the nodes corresponding to the two target travel sub-areas corresponding to the distance value are connected;

[0013] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0014] In some embodiments, the spatial modal relationship includes a point of interest (POI) similarity relationship; a spatial modal graph is obtained according to the following steps:

[0015] For each target travel sub-area, the number of each type of points of interest in the target travel sub-area is obtained, and based on the number of each type of points of interest, a POI vector corresponding to the target travel sub-area is constructed;

[0016] Determine the POI similarity between the two target travel sub-areas based on the POI vectors of each of the two target travel sub-areas;

[0017] If the POI similarity is greater than the set similarity, connecting the nodes corresponding to the two target travel sub-areas;

[0018] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0019] In some embodiments, the spatial modal relationship includes a connectivity relationship; obtaining a spatial modal graph according to the following steps:

[0020] For each two target travel sub-areas, determining whether there is a travel route corresponding to the preset transportation equipment between the two target travel sub-areas;

[0021] If so, connect the nodes corresponding to the two target travel sub-areas;

[0022] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0023] In one embodiment, the inputting of multiple spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area in the target travel area in a future preset time period includes:

[0024] Inputting a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain an output modal graph corresponding to the target travel area;

[0025] The travel volume of the target travel sub-area corresponding to each node in the future preset time period is extracted from the information of each node of the obtained output modal diagram.

[0026] In another embodiment, the travel demand prediction model is trained according to the following steps:

[0027] Acquire multiple reference spatial modal graphs corresponding to the reference travel area; each reference spatial modal graph is composed of nodes corresponding to all reference travel sub-areas in the reference travel area and node connections corresponding to two reference travel sub-areas having a spatial modal relationship;

[0028] For each reference spatial modal graph, extract the historical travel volume of the reference travel sub-region corresponding to the node and a spatial modal relationship between the reference travel sub-region and another reference travel sub-region from the information of each node of the reference spatial modal graph;

[0029] The travel demand prediction model is trained based on the information of each node of each reference spatial modal graph extracted, including the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph including the travel volume in a preset time period in the future.

[0030] In some embodiments, the travel demand prediction model is trained based on the information of each node of each reference spatial modal graph extracted, including the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph, including the travel volume in a future preset time period, including:

[0031] For each reference spatial modal graph, based on the historical travel volume of the reference travel sub-region corresponding to the node included in the information extracted from each node of the reference spatial modal graph, a historical travel volume matrix of the reference travel region corresponding to the reference spatial modal graph is determined; and based on a spatial modal relationship between the reference travel sub-region corresponding to the node and another reference travel sub-region included in the information extracted from each node of the reference spatial modal graph, a spatial modal matrix of the reference travel region corresponding to the reference spatial modal graph is determined;

[0032] Determine a future travel volume matrix of a reference travel area corresponding to the reference output modal graph based on the travel volume in a future preset time period included in the information of each node of the reference output modal graph;

[0033] The historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph are used as input features of the travel demand prediction model to be trained, and the future travel volume matrix corresponding to the reference output modal graph is used as the output result of the travel demand prediction model to be trained, and the travel demand prediction model is trained to obtain the travel demand prediction model.

[0034] In some embodiments, the travel demand prediction model includes a first-layer graph convolutional network model and a second-layer graph convolutional network model; the number of the reference spatial modal graphs is M; the historical travel volume matrix and the spatial modal matrix corresponding to each reference spatial modal graph extracted are used as input features of the travel demand prediction model to be trained, and the future travel volume matrix corresponding to the reference output modal graph is used as the output result of the travel demand prediction model to be trained, and the travel demand prediction model is obtained by training, including:

[0035] Input the historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph into the first-layer graph convolution network model to be trained. For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, and the second graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, obtain the first-layer reference output modal graph of the first-layer graph convolution network model for the reference spatial modal graph, and use the first-layer reference output modal graph as an input of the second-layer graph convolution network model to be trained;

[0036] Inputting the historical travel volume matrix and the spatial modal matrix corresponding to the M first-layer reference output modal graphs into the second-layer graph convolution network model to be trained, based on the third graph convolution operation results of the historical travel volume matrix and the spatial modal matrix corresponding to each first-layer reference output modal graph and the third weight training parameters corresponding to each third graph convolution operation result, obtain the second-layer reference output modal graph of the M first-layer reference output modal graphs and the corresponding future travel volume prediction value of the second-layer graph convolution network model;

[0037] If the travel volume difference between the predicted future travel volume and the actual future travel volume is greater than or equal to a preset difference threshold, the first weight training parameter and the second weight training parameter do not comply with the preset weight penalty strategy, and the third weight training parameter does not comply with the preset tensor normal distribution, then adjust the first weight training parameter and the second weight training parameter, as well as the third weight training parameter, until the travel volume difference is less than the preset difference threshold, the first weight training parameter and the second weight training parameter comply with the preset weight penalty strategy, and the third weight training parameter complies with the preset tensor normal distribution.

[0038] In some embodiments, the first graph convolution operation result based on the historical travel volume matrix and the spatial modal matrix corresponding to the reference spatial modal graph, the first weight training parameter corresponding to the first graph convolution operation result, and the second graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result obtains the first-layer reference output modal graph of the first-layer graph convolution network model for the reference spatial modal graph, including:

[0039] For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, the first output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained; and based on the second graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, the second output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained;

[0040] The first output result and the second output result are summed to obtain a first-layer reference output modal graph of the first-layer graph convolutional network model for the reference spatial modal graph.

[0041] In some embodiments, any output result for any reference spatial modal diagram is determined according to the following formula:

[0042]

[0043] Among them, the G W It is used to represent any output result for any reference space modal diagram, the L α is used to represent the α-order spatial modal matrix corresponding to any of the reference spatial modal diagrams, X is used to represent the historical travel volume matrix corresponding to any of the reference spatial modal diagrams, and W α Used to indicate L α The weight training parameters corresponding to the graph convolution operation results are obtained by X, and K is used to represent the adjustable parameters.

[0044] In some embodiments, W is determined according to the following formula:

[0045]

[0046] Among them, W l It is used to represent the weight training parameters corresponding to the graph convolution operation results obtained for L and X in the l-th layer graph convolution network model. It is used to represent the weight training parameters from the i-th reference space modal graph to the j-th reference output modal graph in the l-th layer graph convolutional network model, and |M| is used to represent the number of reference space modal graphs.

[0047] In some embodiments, the reference output modal diagram for any reference spatial modal diagram is determined according to the following formula:

[0048]

[0049] Among them, the is used to represent the reference output modal diagram j for any reference spatial modal diagram i, the σ is used to represent the activation function, the It is used to represent any output result for any reference space modal diagram, and |M| is used to represent the number of reference space modal diagrams.

[0050] In some embodiments, whether the first weight training parameter and the second weight training parameter comply with a preset weight penalty strategy is determined according to the following formula:

[0051]

[0052] Among them, γ<1, and i=j under the condition Used to represent the first weight training parameter of the l-th layer graph convolutional network model, under the condition i≠j Used to represent the second weight training parameter of the l-th layer graph convolutional network model, During minimization, it is determined that the first weight training parameter and the second weight training parameter meet the preset weight penalty strategy.

[0053] In some embodiments, whether the third weight training parameter conforms to a preset tensor normal distribution is determined according to the following formula:

[0054]

[0055] Wherein, ∑ is used to represent the covariance matrix, vec() is used to represent the vec function, and W l The third weight training parameter used to represent the l-th layer graph convolutional network model is During minimization, it is determined that the third weight training parameter conforms to the preset tensor normal distribution.

[0056] In a second aspect, the present application also provides a resource scheduling device, including:

[0057] An acquisition module is used to acquire multiple spatial modal graphs corresponding to the target travel area; each spatial modal graph is composed of nodes corresponding to all target travel sub-areas in the target travel area and node connections corresponding to two target travel sub-areas having a spatial modal relationship, and the information of each node includes the historical travel volume of the corresponding target travel sub-area and a spatial modal relationship between the corresponding target travel sub-area and another target travel sub-area;

[0058] A prediction module, used for inputting a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area within the target travel area within a preset time period in the future;

[0059] The scheduling module is used to schedule travel resources based on the travel volume of each target travel sub-area in the target travel area within a future preset time period.

[0060] In some embodiments, the spatial modal relationship includes a distance relationship; the acquisition module is specifically used to:

[0061] Get the distance value between every two target row sub-areas;

[0062] If the distance value is less than the set threshold, the nodes corresponding to the two target travel sub-areas corresponding to the distance value are connected;

[0063] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0064] In some embodiments, the spatial modality relationship includes a point of interest (POI) similarity relationship; the acquisition module is specifically used to:

[0065] For each target travel sub-area, the number of each type of points of interest in the target travel sub-area is obtained, and based on the number of each type of points of interest, a POI vector corresponding to the target travel sub-area is constructed;

[0066] Determine the POI similarity between the two target travel sub-areas based on the POI vectors of each of the two target travel sub-areas;

[0067] If the POI similarity is greater than the set similarity, connecting the nodes corresponding to the two target travel sub-areas;

[0068] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0069] In some embodiments, the spatial modality relationship includes a connectivity relationship; and the acquisition module is specifically configured to:

[0070] For each two target travel sub-areas, determining whether there is a travel route corresponding to the preset transportation equipment between the two target travel sub-areas;

[0071] If so, connect the nodes corresponding to the two target travel sub-areas;

[0072] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0073] In some embodiments, the prediction module is specifically used to:

[0074] Inputting a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain an output modal graph corresponding to the target travel area;

[0075] The travel volume of the target travel sub-area corresponding to each node in the future preset time period is extracted from the information of each node of the obtained output modal diagram.

[0076] In one embodiment, it further includes:

[0077] A model training module is used to obtain multiple reference spatial modal graphs corresponding to a reference travel area; each reference spatial modal graph is composed of nodes corresponding to all reference travel sub-areas in the reference travel area, and node connections corresponding to two reference travel sub-areas having a spatial modal relationship;

[0078] For each reference spatial modal graph, extract the historical travel volume of the reference travel sub-region corresponding to the node and a spatial modal relationship between the reference travel sub-region and another reference travel sub-region from the information of each node of the reference spatial modal graph;

[0079] The travel demand prediction model is trained based on the information of each node of each reference spatial modal graph extracted, including the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph including the travel volume in a preset time period in the future.

[0080] In another embodiment, the model training module is specifically used to:

[0081] For each reference spatial modal graph, based on the historical travel volume of the reference travel sub-region corresponding to the node included in the information extracted from each node of the reference spatial modal graph, a historical travel volume matrix of the reference travel region corresponding to the reference spatial modal graph is determined; and based on a spatial modal relationship between the reference travel sub-region corresponding to the node and another reference travel sub-region included in the information extracted from each node of the reference spatial modal graph, a spatial modal matrix of the reference travel region corresponding to the reference spatial modal graph is determined;

[0082] Determine a future travel volume matrix of a reference travel area corresponding to the reference output modal graph based on the travel volume in a future preset time period included in the information of each node of the reference output modal graph;

[0083] The historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph are used as input features of the travel demand prediction model to be trained, and the future travel volume matrix corresponding to the reference output modal graph is used as the output result of the travel demand prediction model to be trained, and the travel demand prediction model is trained to obtain the travel demand prediction model.

[0084] In some embodiments, the travel demand prediction model includes a first-layer graph convolutional network model and a second-layer graph convolutional network model; the number of the reference space modal graphs is M; and the model training module is specifically used for:

[0085] Input the historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph into the first-layer graph convolution network model to be trained. For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, and the second graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, obtain the first-layer reference output modal graph of the first-layer graph convolution network model for the reference spatial modal graph, and use the first-layer reference output modal graph as an input of the second-layer graph convolution network model to be trained;

[0086] Inputting the historical travel volume matrix and the spatial modal matrix corresponding to the M first-layer reference output modal graphs into the second-layer graph convolution network model to be trained, based on the third graph convolution operation results of the historical travel volume matrix and the spatial modal matrix corresponding to each first-layer reference output modal graph and the third weight training parameters corresponding to each third graph convolution operation result, obtain the second-layer reference output modal graph of the M first-layer reference output modal graphs and the corresponding future travel volume prediction value of the second-layer graph convolution network model;

[0087] If the travel volume difference between the predicted future travel volume and the actual future travel volume is greater than or equal to a preset difference threshold, the first weight training parameter and the second weight training parameter do not comply with the preset weight penalty strategy, and the third weight training parameter does not comply with the preset tensor normal distribution, then adjust the first weight training parameter and the second weight training parameter, as well as the third weight training parameter, until the travel volume difference is less than the preset difference threshold, the first weight training parameter and the second weight training parameter comply with the preset weight penalty strategy, and the third weight training parameter complies with the preset tensor normal distribution.

[0088] In yet another embodiment, the model training module is specifically used to:

[0089] For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, the first output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained; and based on the second graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, the second output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained;

[0090] The first output result and the second output result are summed to obtain a first-layer reference output modal graph of the first-layer graph convolutional network model for the reference spatial modal graph.

[0091] In some embodiments, any output result for any reference spatial modal diagram is determined according to the following formula:

[0092]

[0093] Among them, the G W It is used to represent any output result for any reference space modal diagram, the L α is used to represent the α-order spatial modal matrix corresponding to any of the reference spatial modal diagrams, X is used to represent the historical travel volume matrix corresponding to any of the reference spatial modal diagrams, and W α Used to indicate L α The weight training parameters corresponding to the graph convolution operation results are obtained by X, and K is used to represent the adjustable parameters.

[0094] In some embodiments, W is determined according to the following formula:

[0095]

[0096] Among them, Wl It is used to represent the weight training parameters corresponding to the graph convolution operation results obtained for L and X in the l-th layer graph convolution network model. It is used to represent the weight training parameters from the i-th reference space modal graph to the j-th reference output modal graph in the l-th layer graph convolutional network model, and |M| is used to represent the number of reference space modal graphs.

[0097] In some embodiments, the reference output modal diagram for any reference spatial modal diagram is determined according to the following formula:

[0098]

[0099] Among them, the is used to represent the reference output modal diagram j for any reference spatial modal diagram i, the σ is used to represent the activation function, the It is used to represent any output result for any reference space modal diagram, and |M| is used to represent the number of reference space modal diagrams.

[0100] In some embodiments, whether the first weight training parameter and the second weight training parameter comply with a preset weight penalty strategy is determined according to the following formula:

[0101]

[0102] Among them, γ<1, and i=j under the condition Used to represent the first weight training parameter of the l-th layer graph convolutional network model, under the condition i≠j Used to represent the second weight training parameter of the l-th layer graph convolutional network model, During minimization, it is determined that the first weight training parameter and the second weight training parameter meet the preset weight penalty strategy.

[0103] In some embodiments, whether the third weight training parameter conforms to a preset tensor normal distribution is determined according to the following formula:

[0104]

[0105] Among them, ∑ is used to represent the covariance matrix, vec is used to represent the activation function, and W l The third weight training parameter used to represent the l-th layer graph convolutional network model is During minimization, it is determined that the third weight training parameter conforms to the preset tensor normal distribution.

[0106] In a third aspect, the present application also provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the resource scheduling method described in the first aspect.

[0107] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the resource scheduling method described in the first aspect are executed.

[0108] By adopting the above scheme, the historical travel volume and spatial modal relationship included in the reference spatial modal diagram are used as factors affecting travel demand, and the future travel volume included in the reference output modal diagram is used as the travel demand prediction result, and the travel demand prediction model is predicted. In this way, the travel volume of each target travel sub-area in the target travel area within a preset time period in the future can be predicted based on the trained travel demand prediction model and spatial modal diagram, and then the travel resources can be reasonably scheduled based on the predicted travel volume, thereby improving resource utilization and enhancing the service quality of the travel platform.

[0109] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0110] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application 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 paying creative work.

[0111] Figure 1 A flow chart of a resource scheduling method provided in Embodiment 1 of the present application is shown;

[0112] Figure 2 A flow chart of a method for obtaining a spatial modal diagram provided in Embodiment 2 of the present application is shown;

[0113] Figure 3 A flowchart of another method for obtaining a spatial modal diagram provided in the second embodiment of the present application is shown;

[0114] Figure 4 A flowchart of another method for obtaining a spatial modal diagram provided in the second embodiment of the present application is shown;

[0115] FIG. 5( a ) shows a schematic diagram of a spatial modal graph with a distance relationship provided in Example 2 of the present application; FIG. 5( b ) shows a schematic diagram of a spatial modal graph with a POI similarity relationship provided in Example 2 of the present application; FIG. 5( c ) shows a schematic diagram of a spatial modal graph with a connectivity relationship provided in Example 2 of the present application;

[0116] Figure 6 A flow chart of a travel demand prediction model training method provided in Embodiment 3 of the present application is shown;

[0117] Figure 7 A flowchart of another travel demand prediction model training method provided in Example 3 of the present application is shown;

[0118] Figure 8 A schematic diagram of the structure of a resource scheduling device provided in Embodiment 4 of the present application is shown;

[0119] Fig. 9 A structural schematic diagram of an electronic device provided in Embodiment 5 of the present application is shown. DETAILED DESCRIPTION

[0120] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0121] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0122] In order to enable those skilled in the art to use the contents of this application, the following implementation method is given in combination with the specific application scenario "online car-hailing (such as special cars, express cars, etc.) resource scheduling". For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application. Although this application is mainly described around online car-hailing resource scheduling, it should be understood that this is only an exemplary embodiment.

[0123] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0124] The positioning technology used in this application can be based on the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the Compass Navigation System (COMPASS), the Galileo Positioning System, the Quasi-Zenith Satellite System (QZSS), the Wireless Fidelity (WiFi) positioning technology, etc., or any combination thereof. One or more of the above positioning systems can be used interchangeably in this application.

[0125] It is worth noting that before the present application, the relevant technology lacked an effective travel resource scheduling method to solve the problem that it is difficult for passengers to get a taxi during peak hours, but the driver may be unloaded. In view of this, the embodiments of the present application provide a resource scheduling method, device, electronic device and storage medium, which can be applied to any scenario for scheduling travel resources. The travel resource can be a travel vehicle. In addition, the travel vehicle can be an express train, a special car, a taxi, etc. The embodiments of the present application do not make specific restrictions on this. The following is a specific description through several embodiments.

[0126] Embodiment 1

[0127] like Figure 1As shown, it is a flowchart of a resource scheduling method provided in the first embodiment of the present application. The execution subject of the method can be an electronic device, which can be a private device, an operator network device (for example, a base station device), or a station deployed by a certain industry organization, group, or individual, etc. Specifically, it can include but is not limited to a mobile station, a mobile terminal, a mobile phone, a user device, a mobile phone, a portable device (portable equipment), a vehicle, etc. For example, the terminal device can be a mobile phone (or a "cellular" phone), a computer with wireless communication function, etc. The terminal device can also be a portable, pocket-sized, handheld, computer-built-in, or vehicle-mounted mobile device. The above-mentioned resource scheduling method includes the following steps:

[0128] S101. Obtain multiple spatial modal diagrams corresponding to a target travel area.

[0129] Here, the target travel area can be any travel area for which travel volume is to be predicted within a preset time period in the future, and the target travel area can be an area included in a city (such as Beijing), an area included in an administrative district (such as Beijing's Haidian District), or any travel area divided in other ways (such as clustering). The implementation of this application does not impose any specific restrictions on this.

[0130] Before obtaining multiple spatial modal graphs corresponding to the target travel area, it is necessary to divide the target travel area to construct a spatial modal graph by connecting the nodes corresponding to all the target travel sub-areas divided by the target travel area and the nodes corresponding to two target travel sub-areas having a spatial modal relationship. That is, each spatial modal graph corresponds to a spatial modal relationship, which can be a distance relationship between two sub-areas, a point of interest (POI) similarity relationship between two sub-areas, a connectivity relationship between two sub-areas, or other spatial modal relationships. The multiple spatial modal graphs in the embodiment of the present application can be at least two spatial modal graphs corresponding to at least two of the above-mentioned spatial modal relationships.

[0131] When dividing the target travel area, the embodiment of the present application can divide the area according to the preset size. For example, for the target travel area of ​​Beijing, the embodiment of the present application can divide Beijing into several sub-areas, and the shape of each sub-area can be a quadrilateral, a hexagon or other polygon. The embodiment of the present application comprehensively considers geographical knowledge and can divide Beijing into multiple hexagonal areas in sequence. The side length of the hexagon can be from hundreds of meters to thousands of meters. In order to take into account the amount of data calculation and the accuracy of division, the side length selected by the embodiment of the present application is not too large or too small, and a side length of 120m can be selected.

[0132] It is worth noting that the embodiment of the present application can use the Geohash coding algorithm to divide the target travel area into a number of hexagonal areas, and can also encode each hexagonal area (such as hash coding), and use the coding result as the identification information corresponding to the hexagonal area. In this way, the nodes corresponding to all the divided target travel sub-areas can be determined based on the mapping relationship between each identification information and each node.

[0133] S102: Input a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area within the target travel area in a future preset time period.

[0134] Here, before predicting the future travel volume (i.e., the travel volume within a preset time period in the future), the travel demand prediction model can be trained first. In an embodiment of the present application, in the travel demand prediction model training stage, the historical travel volume of the reference travel sub-area corresponding to the node in the information of each node of the multiple reference spatial modal graphs corresponding to the reference travel area and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area can be used as travel demand prediction influencing factors, and the travel volume within a preset time period in the future included in the information of each node of the reference output modal graph can be used as the travel demand prediction result, and the training parameters of the above-mentioned travel demand prediction model can be trained, that is, the trained travel demand prediction model is obtained. In the present application, a graph convolutional neural network model (Graph Convolution Network, GCN) can be used as a travel demand prediction model.

[0135] After the travel demand prediction model is trained, the future travel volume can be predicted based on the trained travel demand prediction model. At this time, the historical travel volume and spatial modal relationship corresponding to each spatial modal graph corresponding to the target travel area can be input into the trained travel demand prediction model.

[0136] It is worth mentioning that, in specific predictions, if the current time (such as 6:00 p.m.) is used as a reference, the historical travel volume input into the travel demand prediction model can be the travel volume corresponding to the two time periods before the current time (such as 5:30 p.m.-6:00 p.m. and 5:00 p.m.-5:30 p.m.), or the travel volume corresponding to the above time periods yesterday. The travel volume in the above-mentioned future preset time period can be the future travel volume corresponding to 5:30 p.m.-6:00 p.m. tomorrow. The above description of historical travel volume and future travel volume is only an example. In specific applications, the travel volume can also be determined based on different scenario requirements.

[0137] Considering the application scenario of the resource scheduling method provided in the embodiment of the present application, the above-mentioned travel volume may refer to the travel order volume, which is the number of travel orders obtained by counting the target travel sub-area. Among them, the travel order may be generated when the user needs to take a taxi and inputs the corresponding taxi information on the online car-hailing service platform. Here, the travel order volume of the target travel area can be mainly counted based on whether the travel starting point information carried in the taxi information falls into the target travel sub-area.

[0138] It is worth noting that in the embodiment of the present application, the above-mentioned target travel area and reference travel area can be the same travel area, or two different travel areas with similar spatial modal relationships. In this way, the present application can train the corresponding travel demand prediction model for travel areas with different spatial modal relationships separately to further improve the applicability and accuracy of travel volume prediction.

[0139] S103: Perform travel resource scheduling based on the travel volume of each target travel sub-area within the target travel area within a future preset time period.

[0140] Here, after determining the travel volume of each target travel sub-area in the future preset time period, that is, we can determine which target travel sub-areas belong to sub-areas with relatively large travel demand and which target travel sub-areas belong to sub-areas with relatively small travel demand. Then, combined with the current distribution of vehicle resources, travel resources can be dispatched, such as allocating more vehicle resources to sub-areas with relatively large travel demand, thereby helping drivers to better respond to passengers' needs, effectively avoiding the problem of passengers having difficulty hailing a taxi during peak hours while drivers may be idle, and further improving the service quality of the online car-hailing travel platform.

[0141] Considering that the acquisition of the spatial modal graph is a key step in realizing the travel volume prediction, the acquisition of the spatial modal graph is specifically described in the following second embodiment.

[0142] Embodiment 2

[0143] Embodiment 2 of the present application provides three methods for obtaining spatial modal diagrams, which specifically include the following three aspects:

[0144] In the first aspect, the second embodiment of the present application provides a spatial modal diagram including distance relationships, such as Figure 2 As shown, the method for obtaining the spatial modal diagram specifically includes the following steps:

[0145] S201, obtaining the distance value between every two target travel sub-areas;

[0146] S202, if the distance value is less than a set threshold, connecting the nodes corresponding to the two target travel sub-areas corresponding to the distance value;

[0147] S203: Obtain a spatial modal diagram corresponding to the target travel area based on the obtained connections between the nodes and the corresponding nodes.

[0148] Here, for the target travel area, the distance value between each two target travel sub-areas can be obtained. If it is judged that the distance value is less than the set threshold, it is determined that the two target travel sub-areas have a distance relationship, and the nodes corresponding to the two target travel sub-areas can be connected. In this way, based on the obtained connections and nodes, a spatial modal diagram of the distance relationship can be obtained, that is, the node of the spatial modal diagram carries the distance relationship between the target travel sub-area corresponding to the node and another target travel sub-area.

[0149] Second aspect: Embodiment 2 of the present application provides a spatial modal graph including POI similarity relationships, such as Figure 3 As shown, the method for obtaining the spatial modal diagram specifically includes the following steps:

[0150] S301, for each target travel sub-area, obtaining the number of each type of points of interest in the target travel sub-area, and constructing a POI vector corresponding to the target travel sub-area based on the number of each type of points of interest;

[0151] S302, determining the POI similarity between two target travel sub-areas based on the POI vectors of each of the two target travel sub-areas;

[0152] S303, if the POI similarity is greater than a set similarity, connecting the nodes corresponding to the two target travel sub-areas;

[0153] S304: Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0154] Here, we can first obtain the number of each type of points of interest in each target travel sub-area, and then construct a POI vector corresponding to the target travel sub-area based on the number of each type of points of interest, and determine the POI similarity between any two target travel sub-areas. When it is determined that the POI similarity is greater than the set similarity, it is determined that the two target travel sub-areas have a POI similarity relationship, and the nodes corresponding to the two target travel sub-areas can be connected. In this way, based on the obtained connections and nodes, a spatial modal graph of the POI similarity relationship can be obtained, that is, the nodes of the spatial modal graph carry the POI similarity relationship between the target travel sub-area corresponding to the node and another target travel sub-area.

[0155] Among them, the above-mentioned various types of points of interest can be determined based on the identification information of hotels, schools, restaurants, etc. on the map information, and the above-mentioned various types of points of interest can be pre-set or determined based on the user's interest point ranking, and no specific restrictions are made here.

[0156] A third aspect: Embodiment 2 of the present application provides a spatial modal graph including connectivity relationships, such as Figure 4 As shown, the method for obtaining the spatial modal diagram specifically includes the following steps:

[0157] S401: for every two target travel sub-areas, determining whether there is a travel route corresponding to a preset transportation device between the two target travel sub-areas;

[0158] S402: If so, connect the nodes corresponding to the two target travel sub-areas;

[0159] S403: Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0160] Here, for every two target travel areas, we can rely on the traffic conditions of the road network to determine whether there is a travel route corresponding to the preset transportation equipment (such as high-speed rail, subway, etc.) between the two target travel sub-areas. If so, it is determined that the two target travel sub-areas have a connectivity relationship, and the nodes corresponding to the two target travel sub-areas can be connected. In this way, based on the obtained connections and nodes, a spatial modal graph of the connectivity relationship can be obtained, that is, the node of the spatial modal graph carries the connectivity relationship between the target travel sub-area corresponding to the node and another target travel sub-area.

[0161] In order to further understand the above three spatial modal diagrams and spatial modal relationships, a specific example and corresponding formulas are now used for specific explanation.

[0162] As shown in FIG5(a), a spatial modal diagram with a distance relationship is shown. A1, B1, C1, D1, E1, and F1 are six nodes corresponding to the spatial modal diagram. Since the distance value between the target travel sub-areas corresponding to the two nodes D1 and B1 is less than the set threshold, D1 and B1 are connected. Similarly, in the embodiment of the present application, D1 and C1, D1 and E1, and D1 and F1 can be connected respectively to obtain the spatial modal diagram shown in FIG5(a).

[0163] Among them, the above distance relationship A N,i,j It can be expressed by the following formula:

[0164]

[0165] Among them, A N,i,j It is used to represent the distance relationship between the i-th target travel sub-area and the j-th target travel sub-area. 1 indicates that the distance value between the two target travel sub-areas is less than the set threshold, and 0 indicates that the distance value between the two target travel sub-areas is greater than or equal to the set threshold.

[0166] As shown in FIG5(b), a spatial modal graph having a POI similarity relationship is shown. A2, B2, C2, D2, E2, and F2 are six nodes corresponding to the spatial modal graph. Since the POI similarity between the target travel sub-areas corresponding to the two nodes D2 and B2 is greater than the set similarity, D2 and B2 are connected. Similarly, in the embodiment of the present application, A2 and F2, A2 and E2, E2 and F2, B2 and C2, and C2 and D2 can be connected respectively to obtain the spatial modal graph shown in FIG5(b).

[0167] The above POI similarity relationship can be expressed by the following formula:

[0168]

[0169] Among them, A S,i,j It is used to represent the POI similarity relationship between the i-th target travel sub-area and the j-th target travel sub-area. and They are used to represent the POI vectors of the i-th target travel sub-area and the j-th target travel sub-area respectively.

[0170] As shown in FIG5(c), a spatial modal graph with connectivity is shown, where A3, B3, C3, D3, E3, and F3 are six nodes corresponding to the spatial modal graph. Since there is a travel route between the target travel sub-areas corresponding to the two nodes A3 and B3, A3 and B3 are connected. Similarly, in the embodiment of the present application, B3 and C3, C3 and F3, F3 and E3, and E3 and A3 can be connected respectively to obtain the spatial modal graph shown in FIG5(c).

[0171] The above connectivity relationship can be expressed by the following formula:

[0172] A C,i,j =max(0,conn(v i ,v j )-A N,i,j ) (3)

[0173] Among them, A C,i,jIt is used to represent the connectivity relationship between the i-th target travel sub-area and the j-th target travel sub-area, and the connectivity relationship focuses on whether there is a travel route corresponding to the preset transportation equipment between the two target travel sub-areas (corresponding to the conn function), and does not consider the distance relationship between the two target travel sub-areas. That is, for any two target travel sub-areas, even if the distance value between the two sub-areas is very close, due to the lack of corresponding travel routes, it also means that there is no connectivity relationship between the two sub-areas.

[0174] Based on the above-mentioned embodiment one or embodiment two, the embodiment of the present application can input multiple spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain an output modal graph corresponding to the target travel area, and then extract the travel volume of the target travel sub-area corresponding to each node in the future preset time period from the information of each node of the obtained output modal graph.

[0175] Considering that the training process of the travel demand prediction model is a key step in the resource scheduling method provided in the embodiment of the present application, the above training process is described in detail through the following embodiment three.

[0176] Embodiment 3

[0177] like Figure 6 As shown, it is a flow chart of a method for training a travel demand prediction model provided in an embodiment of the present application, and the training method specifically includes the following steps:

[0178] S601, obtaining a plurality of reference spatial modal graphs corresponding to a reference travel area;

[0179] S602: for each reference spatial modal graph, extracting, from information of each node of the reference spatial modal graph, a historical travel volume of a reference travel sub-region corresponding to the node and a spatial modal relationship between the reference travel sub-region and another reference travel sub-region;

[0180] S603, based on the information of each node of each reference spatial modal graph extracted, including the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph including the travel volume in a future preset time period, the travel demand prediction model is trained to obtain the travel demand prediction model.

[0181] Here, after obtaining multiple reference spatial modal graphs corresponding to the reference travel area, the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area can be extracted from the information of each node of each reference spatial modal graph. Finally, based on the information of each node of each reference spatial modal graph extracted, including the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph including the travel volume in a preset time period in the future, the travel demand prediction model is trained to obtain.

[0182] In the specific process of training the travel demand prediction model, the historical travel volume matrix of the reference travel area corresponding to the reference spatial modal graph can be first determined based on the historical travel volume of the reference travel sub-area corresponding to the node included in the information of each node extracted from each reference spatial modal graph; and a spatial modal matrix of the reference travel area corresponding to the reference spatial modal graph can be determined based on a spatial modal relationship between the reference travel sub-area corresponding to the node and another reference travel sub-area included in the information of each node extracted from the reference spatial modal graph. The future travel volume matrix of the reference travel area corresponding to the reference output modal graph can also be determined based on the travel volume in a preset future time period included in the information of each node of the reference output modal graph. In this way, the historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph are used as input features of the travel demand prediction model to be trained, and the future travel volume matrix corresponding to the reference output modal graph is used as the output result of the travel demand prediction model to be trained, so as to obtain the travel demand prediction model.

[0183] Here, the historical travel volume matrix corresponding to the reference spatial modal graph can be determined by the historical travel volume of each reference travel sub-region included in the reference travel region corresponding to the reference spatial modal graph, and the historical travel volume of each reference travel sub-region can include the travel volume of multiple historical time periods. The spatial modal matrix depends on the information of each node of the reference spatial modal graph, including a spatial modal relationship between the reference travel sub-region corresponding to the node and another reference travel sub-region, which can be determined by the following formula (4):

[0184]

[0185] Among them, L is used to represent the graph Laplacian matrix (ie, the spatial modal matrix) corresponding to the spatial modal relationship A, and D is used to represent the transformation matrix.

[0186] In this way, by respectively substituting the above formula (1) or (2) or (3) into the above formula (4), the spatial modal matrix for the distance relationship, POI similarity relationship, and connectivity relationship can be obtained.

[0187] In the specific training process of the model, the embodiment of the present application can select a two-layer graph convolutional network model. In the embodiment of the present application, in the training process of the first-layer graph convolutional network model, the low-level network retains the physical meaning of the input signal, and can use the method of establishing connections to interact with multiple graphs. In the training process of the second-layer graph convolutional network model, after multiple layers of stacked graph convolutions, the features learned by the high-level network no longer have the physical meaning of the input signal. The relationship between multi-modal graphs can be learned by density distribution estimation to model the high-level network and learn the multiple linear relationships between modalities. Figure 7 As shown, the training method of the above two-layer graph convolutional network model specifically includes the following steps:

[0188] S701, inputting the historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph into the first-layer graph convolution network model to be trained, for any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, and the second graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, obtain the first-layer reference output modal graph of the first-layer graph convolution network model for the reference spatial modal graph, and use the first-layer reference output modal graph as an input of the second-layer graph convolution network model to be trained;

[0189] S702, inputting the historical travel volume matrix and the spatial modal matrix corresponding to the M first-layer reference output modal graphs into the second-layer graph convolution network model to be trained, and obtaining the second-layer reference output modal graph and the corresponding future travel volume prediction value of the second-layer graph convolution network model for the M first-layer reference output modal graphs based on the third graph convolution operation results of the historical travel volume matrix and the spatial modal matrix corresponding to each first-layer reference output modal graph and the third weight training parameters corresponding to each third graph convolution operation result;

[0190] S703. If the travel volume difference between the predicted future travel volume and the actual future travel volume is greater than or equal to a preset difference threshold, the first weight training parameter and the second weight training parameter do not comply with the preset weight penalty strategy, and the third weight training parameter does not comply with the preset tensor normal distribution, then adjust the first weight training parameter and the second weight training parameter, as well as the third weight training parameter, until the travel volume difference is less than the preset difference threshold, the first weight training parameter and the second weight training parameter comply with the preset weight penalty strategy, and the third weight training parameter complies with the preset tensor normal distribution.

[0191] Among them, the first-layer reference output modal graph can be the sum of all input spatial modal graph values ​​after different graph convolution operations. In an embodiment of the present application, for any reference spatial modal graph, the first output result of the first-layer graph convolution network model for the reference spatial modal graph can be obtained based on the first graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result; and the second output result of the first-layer graph convolution network model for the reference spatial modal graph can be obtained based on the second graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result; then the first output result and the second output result are summed to obtain the first-layer reference output modal graph of the first-layer graph convolution network model for the reference spatial modal graph.

[0192] In order to further understand the above-mentioned training process using a two-layer graph convolutional network model, the following formula is used to specifically explain the training of the two-layer graph convolutional network model.

[0193] For the first-layer graph convolutional network model, assume that the input of the first-layer graph convolutional network model consists of three input modalities (i.e., corresponding to three reference spatial modal graphs), so the corresponding first-layer reference output modal graphs are also three. For each input modality and output modality, the transfer between them can be defined as a graph convolution operation (weight is W), and the weight of this layer of network is defined as follows:

[0194]

[0195] Among them, W l It is used to represent the weight training parameters corresponding to the graph convolution operation results obtained for L and X in the l-th layer graph convolution network model. It is used to represent the weight training parameters from the i-th reference space modal graph to the j-th reference output modal graph in the l-th layer graph convolutional network model, and |M| is used to represent the number of reference space modal graphs.

[0196] For each graph convolution operation from mode i to mode j (any output result of any reference spatial modal graph), it is defined as follows:

[0197]

[0198] Among them, the G W It is used to represent any output result for any reference space modal diagram, the L α is used to represent the α-order spatial modal matrix corresponding to any of the reference spatial modal diagrams, X is used to represent the historical travel volume matrix corresponding to any of the reference spatial modal diagrams, and W α Used to indicate L α The weight training parameters corresponding to the graph convolution operation results are obtained by X, and K is used to represent the adjustable parameters.

[0199] In this way, the multi-graph convolution operation is defined as the sum of multi-modal convolution operations, as shown in the following formula:

[0200]

[0201] Among them, the is used to represent the reference output modal diagram j for any reference spatial modal diagram i, the σ is used to represent the activation function, the It is used to represent any output result for any reference space modal diagram, and |M| is used to represent the number of reference space modal diagrams.

[0202] In addition, the embodiment of the present application can also determine whether the first weight training parameter and the second weight training parameter comply with the preset weight penalty strategy according to the following formula:

[0203]

[0204] Among them, γ<1, and i=j under the condition Used to represent the first weight training parameter of the l-th layer graph convolutional network model, under the condition i≠j Used to represent the second weight training parameter of the l-th layer graph convolutional network model, During minimization, it is determined that the first weight training parameter and the second weight training parameter meet the preset weight penalty strategy.

[0205] For the second-layer graph convolutional network model, the |M| trainable weights of the multi-graph convolutional neural network can be combined as follows:

[0206]

[0207] Assume that W follows a tensor normal distribution

[0208]

[0209] It can be seen that W is a four-dimensional tensor, and the four dimensions are input I, output O, Chebyshev degree K, and modal number |M| (that is, the number of modal diagrams in the reference space).

[0210] In the embodiment of the present application, whether the third weight training parameter conforms to the preset tensor normal distribution can be determined according to the following formula:

[0211]

[0212] Wherein, ∑ is used to represent the covariance matrix, vec() is used to represent the vec function, and W l The third weight training parameter used to represent the l-th layer graph convolutional network model is During minimization, it is determined that the third weight training parameter conforms to the preset tensor normal distribution.

[0213] In summary, the resource scheduling method provided in the embodiment of the present application uses a double-layer graph convolutional network model to optimize the loss function, which not only includes the prediction error (corresponding to the travel volume difference), but also includes the connection regularization term J1 and the tensor normal distribution regularization term J2. While ensuring the prediction accuracy, it can also avoid overfitting, improve the generalization ability of the model, and have stronger applicability.

[0214] Based on the above embodiments, the present application also provides a resource scheduling device. The implementation of the following various devices can refer to the implementation of the method, and the repeated parts will not be repeated.

[0215] Embodiment 4

[0216] like Figure 8 As shown, a resource scheduling device provided in Embodiment 7 of the present application is provided, and the device includes:

[0217] The acquisition module 801 is used to acquire multiple spatial modal graphs corresponding to the target travel area; each spatial modal graph is composed of nodes corresponding to all target travel sub-areas in the target travel area and node connections corresponding to two target travel sub-areas having a spatial modal relationship, and the information of each node includes the historical travel volume of the corresponding target travel sub-area and a spatial modal relationship between the corresponding target travel sub-area and another target travel sub-area;

[0218] Prediction module 802, used for inputting a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area in the target travel area in a future preset time period;

[0219] The scheduling module 803 is used to schedule travel resources based on the travel volume of each target travel sub-area in the target travel area within a future preset time period.

[0220] In some embodiments, the spatial modal relationship includes a distance relationship; the acquisition module 801 is specifically used to:

[0221] Get the distance value between every two target row sub-areas;

[0222] If the distance value is less than the set threshold, the nodes corresponding to the two target travel sub-areas corresponding to the distance value are connected;

[0223] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0224] In some embodiments, the spatial modality relationship includes a point of interest (POI) similarity relationship; the acquisition module 801 is specifically used to:

[0225] For each target travel sub-area, the number of each type of points of interest in the target travel sub-area is obtained, and based on the number of each type of points of interest, a POI vector corresponding to the target travel sub-area is constructed;

[0226] Determine the POI similarity between the two target travel sub-areas based on the POI vectors of each of the two target travel sub-areas;

[0227] If the POI similarity is greater than the set similarity, connecting the nodes corresponding to the two target travel sub-areas;

[0228] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0229] In some embodiments, the spatial modal relationship includes a connectivity relationship; the acquisition module 801 is specifically used to:

[0230] For each two target travel sub-areas, determining whether there is a travel route corresponding to the preset transportation equipment between the two target travel sub-areas;

[0231] If so, connect the nodes corresponding to the two target travel sub-areas;

[0232] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0233] In some embodiments, the prediction module 802 is specifically used to:

[0234] Inputting a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain an output modal graph corresponding to the target travel area;

[0235] The travel volume of the target travel sub-area corresponding to each node in the future preset time period is extracted from the information of each node of the obtained output modal diagram.

[0236] In one embodiment, it further includes:

[0237] The model training module 804 is used to obtain multiple reference spatial modal graphs corresponding to the reference travel area; each reference spatial modal graph is composed of nodes corresponding to all reference travel sub-areas in the reference travel area, and node connections corresponding to two reference travel sub-areas having a spatial modal relationship;

[0238] For each reference spatial modal graph, extract the historical travel volume of the reference travel sub-region corresponding to the node and a spatial modal relationship between the reference travel sub-region and another reference travel sub-region from the information of each node of the reference spatial modal graph;

[0239] The travel demand prediction model is trained based on the information of each node of each reference spatial modal graph extracted, including the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph including the travel volume in a preset time period in the future.

[0240] In another embodiment, the model training module 804 is specifically used to:

[0241] For each reference spatial modal graph, based on the historical travel volume of the reference travel sub-region corresponding to the node included in the information extracted from each node of the reference spatial modal graph, a historical travel volume matrix of the reference travel region corresponding to the reference spatial modal graph is determined; and based on a spatial modal relationship between the reference travel sub-region corresponding to the node and another reference travel sub-region included in the information extracted from each node of the reference spatial modal graph, a spatial modal matrix of the reference travel region corresponding to the reference spatial modal graph is determined;

[0242] Determine a future travel volume matrix of a reference travel area corresponding to the reference output modal graph based on the travel volume in a future preset time period included in the information of each node of the reference output modal graph;

[0243] The historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph are used as input features of the travel demand prediction model to be trained, and the future travel volume matrix corresponding to the reference output modal graph is used as the output result of the travel demand prediction model to be trained, and the travel demand prediction model is trained to obtain the travel demand prediction model.

[0244] In some embodiments, the travel demand prediction model includes a first-layer graph convolutional network model and a second-layer graph convolutional network model; the number of the reference space modal graphs is M; and the model training module 804 is specifically used to:

[0245] Input the historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph into the first-layer graph convolution network model to be trained. For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, and the second graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, obtain the first-layer reference output modal graph of the first-layer graph convolution network model for the reference spatial modal graph, and use the first-layer reference output modal graph as an input of the second-layer graph convolution network model to be trained;

[0246] Inputting the historical travel volume matrix and the spatial modal matrix corresponding to the M first-layer reference output modal graphs into the second-layer graph convolution network model to be trained, based on the third graph convolution operation results of the historical travel volume matrix and the spatial modal matrix corresponding to each first-layer reference output modal graph and the third weight training parameters corresponding to each third graph convolution operation result, obtain the second-layer reference output modal graph of the M first-layer reference output modal graphs and the corresponding future travel volume prediction value of the second-layer graph convolution network model;

[0247] If the travel volume difference between the predicted future travel volume and the actual future travel volume is greater than or equal to a preset difference threshold, the first weight training parameter and the second weight training parameter do not comply with the preset weight penalty strategy, and the third weight training parameter does not comply with the preset tensor normal distribution, then adjust the first weight training parameter and the second weight training parameter, as well as the third weight training parameter, until the travel volume difference is less than the preset difference threshold, the first weight training parameter and the second weight training parameter comply with the preset weight penalty strategy, and the third weight training parameter complies with the preset tensor normal distribution.

[0248] In yet another embodiment, the model training module 804 is specifically used to:

[0249] For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, the first output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained; and based on the second graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, the second output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained;

[0250] The first output result and the second output result are summed to obtain a first-layer reference output modal graph of the first-layer graph convolutional network model for the reference spatial modal graph.

[0251] In some embodiments, any output result for any reference spatial modal diagram is determined according to the following formula:

[0252]

[0253] Among them, the G W It is used to represent any output result for any reference space modal diagram, the L α is used to represent the α-order spatial modal matrix corresponding to any of the reference spatial modal diagrams, X is used to represent the historical travel volume matrix corresponding to any of the reference spatial modal diagrams, and W α Used to indicate L α The weight training parameters corresponding to the graph convolution operation results are obtained by X, and K is used to represent the adjustable parameters.

[0254] In some embodiments, W is determined according to the following formula:

[0255]

[0256] Among them, W l It is used to represent the weight training parameters corresponding to the graph convolution operation results obtained for L and X in the l-th layer graph convolution network model. It is used to represent the weight training parameters from the i-th reference space modal graph to the j-th reference output modal graph in the l-th layer graph convolutional network model, and |M| is used to represent the number of reference space modal graphs.

[0257] In some embodiments, the reference output modal diagram for any reference spatial modal diagram is determined according to the following formula:

[0258]

[0259] Among them, the is used to represent the reference output modal diagram j for any reference spatial modal diagram i, the σ is used to represent the activation function, the It is used to represent any output result for any reference space modal diagram, and |M| is used to represent the number of reference space modal diagrams.

[0260] In some embodiments, whether the first weight training parameter and the second weight training parameter comply with a preset weight penalty strategy is determined according to the following formula:

[0261]

[0262] Among them, γ<1, and i=j under the condition Used to represent the first weight training parameter of the l-th layer graph convolutional network model, under the condition i≠j Used to represent the second weight training parameter of the l-th layer graph convolutional network model, During minimization, it is determined that the first weight training parameter and the second weight training parameter meet the preset weight penalty strategy.

[0263] In some embodiments, whether the third weight training parameter conforms to a preset tensor normal distribution is determined according to the following formula:

[0264]

[0265] Among them, ∑ is used to represent the covariance matrix, vec is used to represent the activation function, and W l The third weight training parameter used to represent the l-th layer graph convolutional network model is During minimization, it is determined that the third weight training parameter conforms to the preset tensor normal distribution.

[0266] Embodiment 5

[0267] like Fig. 9 As shown, it is a structural diagram of an electronic device provided in Embodiment 7 of the present application, including: a processor 901, a storage medium 902 and a bus 903, wherein the storage medium 902 stores machine-readable instructions executable by the processor 901, and when the electronic device is running, the processor communicates with the storage medium 902 through the bus 903, and when the machine-readable instructions are executed by the processor 901, the following processing is performed:

[0268] Acquire multiple spatial modal graphs corresponding to the target travel area; each spatial modal graph is composed of nodes corresponding to all target travel sub-areas in the target travel area and node connections corresponding to two target travel sub-areas having a spatial modal relationship, and information of each node includes a historical travel volume of the corresponding target travel sub-area and a spatial modal relationship between the corresponding target travel sub-area and another target travel sub-area;

[0269] Inputting multiple spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area in the target travel area in a future preset time period;

[0270] Travel resource scheduling is performed based on the travel volume of each target travel sub-area within the target travel area within a future preset time period.

[0271] In some embodiments, the spatial modal relationship includes a distance relationship; in the processing performed by the processor 901, a spatial modal graph is obtained according to the following steps:

[0272] Get the distance value between every two target row sub-areas;

[0273] If the distance value is less than the set threshold, the nodes corresponding to the two target travel sub-areas corresponding to the distance value are connected;

[0274] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0275] In some embodiments, the spatial modal relationship includes a point of interest (POI) similarity relationship; in the process performed by the processor 901, a spatial modal graph is obtained according to the following steps:

[0276] For each target travel sub-area, the number of each type of points of interest in the target travel sub-area is obtained, and based on the number of each type of points of interest, a POI vector corresponding to the target travel sub-area is constructed;

[0277] Determine the POI similarity between the two target travel sub-areas based on the POI vectors of each of the two target travel sub-areas;

[0278] If the POI similarity is greater than the set similarity, connecting the nodes corresponding to the two target travel sub-areas;

[0279] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0280] In some embodiments, the spatial modal relationship includes a connectivity relationship; in the processing performed by the processor 901, a spatial modal graph is obtained according to the following steps:

[0281] For each two target travel sub-areas, determining whether there is a travel route corresponding to the preset transportation equipment between the two target travel sub-areas;

[0282] If so, connect the nodes corresponding to the two target travel sub-areas;

[0283] Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

[0284] In one embodiment, in the processing performed by the processor 901, the inputting of the multiple spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area in the target travel area in a future preset time period includes:

[0285] Inputting a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain an output modal graph corresponding to the target travel area;

[0286] The travel volume of the target travel sub-area corresponding to each node in the future preset time period is extracted from the information of each node of the obtained output modal diagram.

[0287] In another implementation, in the process performed by the processor 901, the travel demand prediction model is trained according to the following steps:

[0288] Acquire multiple reference spatial modal graphs corresponding to the reference travel area; each reference spatial modal graph is composed of nodes corresponding to all reference travel sub-areas in the reference travel area and node connections corresponding to two reference travel sub-areas having a spatial modal relationship;

[0289] For each reference spatial modal graph, extract the historical travel volume of the reference travel sub-region corresponding to the node and a spatial modal relationship between the reference travel sub-region and another reference travel sub-region from the information of each node of the reference spatial modal graph;

[0290] The travel demand prediction model is trained based on the information of each node of each reference spatial modal graph extracted, including the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph including the travel volume in a preset time period in the future.

[0291] In some embodiments, in the processing performed by the processor 901, the information of each node of each reference spatial modal graph extracted includes the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph includes the travel volume in a future preset time period, and the travel demand prediction model is trained, including:

[0292] For each reference spatial modal graph, based on the historical travel volume of the reference travel sub-region corresponding to the node included in the information extracted from each node of the reference spatial modal graph, a historical travel volume matrix of the reference travel region corresponding to the reference spatial modal graph is determined; and based on a spatial modal relationship between the reference travel sub-region corresponding to the node and another reference travel sub-region included in the information extracted from each node of the reference spatial modal graph, a spatial modal matrix of the reference travel region corresponding to the reference spatial modal graph is determined;

[0293] Determine a future travel volume matrix of a reference travel area corresponding to the reference output modal graph based on the travel volume in a future preset time period included in the information of each node of the reference output modal graph;

[0294] The historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph are used as input features of the travel demand prediction model to be trained, and the future travel volume matrix corresponding to the reference output modal graph is used as the output result of the travel demand prediction model to be trained, and the travel demand prediction model is trained to obtain the travel demand prediction model.

[0295] In some embodiments, the travel demand prediction model includes a first-layer graph convolutional network model and a second-layer graph convolutional network model; the number of the reference spatial modal graphs is M; in the processing performed by the processor 901, the historical travel volume matrix and the spatial modal matrix corresponding to each reference spatial modal graph extracted are used as input features of the travel demand prediction model to be trained, and the future travel volume matrix corresponding to the reference output modal graph is used as the output result of the travel demand prediction model to be trained, and the travel demand prediction model is obtained by training, including:

[0296] Input the historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph into the first-layer graph convolution network model to be trained. For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, and the second graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, obtain the first-layer reference output modal graph of the first-layer graph convolution network model for the reference spatial modal graph, and use the first-layer reference output modal graph as an input of the second-layer graph convolution network model to be trained;

[0297] Inputting the historical travel volume matrix and the spatial modal matrix corresponding to the M first-layer reference output modal graphs into the second-layer graph convolution network model to be trained, based on the third graph convolution operation results of the historical travel volume matrix and the spatial modal matrix corresponding to each first-layer reference output modal graph and the third weight training parameters corresponding to each third graph convolution operation result, obtain the second-layer reference output modal graph of the M first-layer reference output modal graphs and the corresponding future travel volume prediction value of the second-layer graph convolution network model;

[0298] If the travel volume difference between the predicted future travel volume and the actual future travel volume is greater than or equal to a preset difference threshold, the first weight training parameter and the second weight training parameter do not comply with the preset weight penalty strategy, and the third weight training parameter does not comply with the preset tensor normal distribution, then adjust the first weight training parameter and the second weight training parameter, as well as the third weight training parameter, until the travel volume difference is less than the preset difference threshold, the first weight training parameter and the second weight training parameter comply with the preset weight penalty strategy, and the third weight training parameter complies with the preset tensor normal distribution.

[0299] In some embodiments, the first graph convolution operation result based on the historical travel volume matrix and the spatial modal matrix corresponding to the reference spatial modal graph, the first weight training parameter corresponding to the first graph convolution operation result, and the second graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result obtains the first-layer reference output modal graph of the first-layer graph convolution network model for the reference spatial modal graph, including:

[0300] For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, the first output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained; and based on the second graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, the second output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained;

[0301] The first output result and the second output result are summed to obtain a first-layer reference output modal graph of the first-layer graph convolutional network model for the reference spatial modal graph.

[0302] In some embodiments, in the processing performed by the processor 901, any output result for any reference spatial modal diagram is determined according to the following formula:

[0303]

[0304] Among them, the G W It is used to represent any output result for any reference space modal diagram, the L α is used to represent the α-order spatial modal matrix corresponding to any of the reference spatial modal diagrams, X is used to represent the historical travel volume matrix corresponding to any of the reference spatial modal diagrams, and W α Used to indicate L α The weight training parameters corresponding to the graph convolution operation results are obtained by X, and K is used to represent the adjustable parameters.

[0305] In some embodiments, in the process performed by the processor 901, W is determined according to the following formula:

[0306]

[0307] Among them, W l It is used to represent the weight training parameters corresponding to the graph convolution operation results obtained for L and X in the l-th layer graph convolution network model. It is used to represent the weight training parameters from the i-th reference space modal graph to the j-th reference output modal graph in the l-th layer graph convolutional network model, and |M| is used to represent the number of reference space modal graphs.

[0308] In some embodiments, in the processing performed by the processor 901, the reference output modal diagram for any reference spatial modal diagram is determined according to the following formula:

[0309]

[0310] Among them, the is used to represent the reference output modal diagram j for any reference spatial modal diagram i, the σ is used to represent the activation function, the It is used to represent any output result for any reference space modal diagram, and |M| is used to represent the number of reference space modal diagrams.

[0311] In some embodiments, in the process performed by the processor 901, whether the first weight training parameter and the second weight training parameter comply with the preset weight penalty strategy is determined according to the following formula:

[0312]

[0313] Among them, γ<1, and i=j under the condition Used to represent the first weight training parameter of the l-th layer graph convolutional network model, under the condition i≠j Used to represent the second weight training parameter of the l-th layer graph convolutional network model, During minimization, it is determined that the first weight training parameter and the second weight training parameter meet the preset weight penalty strategy.

[0314] In some embodiments, in the process performed by the processor 901, whether the third weight training parameter conforms to the preset tensor normal distribution is determined according to the following formula:

[0315]

[0316] Wherein, ∑ is used to represent the covariance matrix, vec() is used to represent the vec function, and W l The third weight training parameter used to represent the l-th layer graph convolutional network model is During minimization, it is determined that the third weight training parameter conforms to the preset tensor normal distribution.

[0317] Embodiment 6

[0318] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the resource scheduling method are executed.

[0319] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned resource scheduling method can be executed, thereby solving the problem of the lack of effective travel resource scheduling methods in related technologies to solve the problem that passengers have difficulty getting a taxi during peak hours while drivers may be idle, thereby achieving the effect of reasonably scheduling travel resources using predicted travel volume.

[0320] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0321] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0322] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0323] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, 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 for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0324] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A resource scheduling method, characterized in that: include: Acquire multiple spatial modal graphs corresponding to the target travel area; each spatial modal graph is composed of nodes corresponding to all target travel sub-areas in the target travel area and node connections corresponding to two target travel sub-areas having a spatial modal relationship, and information of each node includes historical travel volume of the corresponding target travel sub-area and a spatial modal relationship between the corresponding target travel sub-area and another target travel sub-area, wherein the spatial modal relationship includes a distance relationship, a point of interest (POI) similarity relationship or a connectivity relationship, and the multiple spatial modal graphs are at least two spatial modal graphs corresponding to at least two of the spatial modal relationships; Inputting multiple spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area in the target travel area in a future preset time period; Performing travel resource scheduling based on the travel volume of each target travel sub-area within the target travel area within a preset time period in the future; During the travel demand prediction model training stage, the historical travel volume of the reference travel sub-area corresponding to each node in the multiple reference spatial modal graphs corresponding to the reference travel area and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area are used as travel demand prediction influencing factors, and the travel volume in a future preset time period included in the information of each node of the reference output modal graph is used as the travel demand prediction result to train the training parameters of the travel demand prediction model, and the reference travel area is the target travel area or other travel areas having a similar spatial modal relationship with the target travel area.

2. The method according to claim 1, characterized in that Follow the steps below to obtain a spatial modal diagram: Get the distance value between every two target row sub-areas; If the distance value is less than the set threshold, the nodes corresponding to the two target travel sub-areas corresponding to the distance value are connected; Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

3. The method according to claim 1, characterized in that: Follow the steps below to obtain a spatial modal diagram: For each target travel sub-area, the number of each type of points of interest in the target travel sub-area is obtained, and based on the number of each type of points of interest, a POI vector corresponding to the target travel sub-area is constructed; Determine the POI similarity between the two target travel sub-areas based on the POI vectors of each of the two target travel sub-areas; If the POI similarity is greater than the set similarity, connecting the nodes corresponding to the two target travel sub-areas; Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

4. The method according to claim 1, characterized in that: Follow the steps below to obtain a spatial modal diagram: For each two target travel sub-areas, determining whether there is a travel route corresponding to the preset transportation equipment between the two target travel sub-areas; If so, connect the nodes corresponding to the two target travel sub-areas; Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

5. The method according to claim 1, characterized in that The step of inputting a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area in the target travel area within a preset time period in the future includes: Inputting a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain an output modal graph corresponding to the target travel area; The travel volume of the target travel sub-area corresponding to each node in the future preset time period is extracted from the information of each node of the obtained output modal diagram.

6. The method according to any one of claims 1 to 5, characterized in that: Train the travel demand prediction model as follows: Acquire multiple reference spatial modal graphs corresponding to the reference travel area; each reference spatial modal graph is composed of nodes corresponding to all reference travel sub-areas in the reference travel area and node connections corresponding to two reference travel sub-areas having a spatial modal relationship; For each reference spatial modal graph, extract the historical travel volume of the reference travel sub-region corresponding to the node and a spatial modal relationship between the reference travel sub-region and another reference travel sub-region from the information of each node of the reference spatial modal graph; The travel demand prediction model is trained based on the information of each node of each reference spatial modal graph extracted, including the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph including the travel volume in a preset time period in the future.

7. The method according to claim 6, characterized in that The travel demand prediction model is obtained by training based on the information of each node of each reference spatial modal graph extracted, including the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph, including the travel volume in a future preset time period, including: For each reference spatial modal graph, based on the historical travel volume of the reference travel sub-region corresponding to the node included in the information extracted from each node of the reference spatial modal graph, a historical travel volume matrix of the reference travel region corresponding to the reference spatial modal graph is determined; and based on a spatial modal relationship between the reference travel sub-region corresponding to the node and another reference travel sub-region included in the information extracted from each node of the reference spatial modal graph, a spatial modal matrix of the reference travel region corresponding to the reference spatial modal graph is determined; Determine a future travel volume matrix of a reference travel area corresponding to the reference output modal graph based on the travel volume in a future preset time period included in the information of each node of the reference output modal graph; The historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph are used as input features of the travel demand prediction model to be trained, and the future travel volume matrix corresponding to the reference output modal graph is used as the output result of the travel demand prediction model to be trained, and the travel demand prediction model is trained to obtain the travel demand prediction model.

8. The method according to claim 7, characterized in that The travel demand prediction model includes a first-layer graph convolutional network model and a second-layer graph convolutional network model; the number of the reference spatial modal graphs is M; the historical travel volume matrix and the spatial modal matrix corresponding to each reference spatial modal graph extracted are used as input features of the travel demand prediction model to be trained, and the future travel volume matrix corresponding to the reference output modal graph is used as the output result of the travel demand prediction model to be trained, and the travel demand prediction model is obtained by training, including: Input the historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph into the first-layer graph convolution network model to be trained. For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, and the second graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, obtain the first-layer reference output modal graph of the first-layer graph convolution network model for the reference spatial modal graph, and use the first-layer reference output modal graph as an input of the second-layer graph convolution network model to be trained; Inputting the historical travel volume matrix and the spatial modal matrix corresponding to the M first-layer reference output modal graphs into the second-layer graph convolution network model to be trained, based on the third graph convolution operation results of the historical travel volume matrix and the spatial modal matrix corresponding to each first-layer reference output modal graph and the third weight training parameters corresponding to each third graph convolution operation result, obtain the second-layer reference output modal graph of the M first-layer reference output modal graphs and the corresponding future travel volume prediction value of the second-layer graph convolution network model; If the travel volume difference between the predicted future travel volume and the actual future travel volume is greater than or equal to a preset difference threshold, the first weight training parameter and the second weight training parameter do not comply with the preset weight penalty strategy, and the third weight training parameter does not comply with the preset tensor normal distribution, then adjust the first weight training parameter and the second weight training parameter, as well as the third weight training parameter, until the travel volume difference is less than the preset difference threshold, the first weight training parameter and the second weight training parameter comply with the preset weight penalty strategy, and the third weight training parameter complies with the preset tensor normal distribution.

9. The method according to claim 8, characterized in that The first-layer graph convolution network model obtains the first-layer reference output modal graph of the reference spatial modal graph based on the first graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, and the second graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, including: For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, the first output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained; and based on the second graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, the second output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained; The first output result and the second output result are summed to obtain a first-layer reference output modal graph of the first-layer graph convolutional network model for the reference spatial modal graph.

10. The method according to claim 9, characterized in that Any output result for any reference space modal diagram is determined as follows: Among them, the It is used to represent any output result for any reference space modal diagram, It is used to indicate the corresponding modal diagram of any reference space The spatial modal matrix of order, It is used to represent the historical travel volume matrix corresponding to any reference space modal diagram, Used to indicate and Obtain the weight training parameters corresponding to the graph convolution operation result, Used to indicate adjustable parameters.

11. The method according to claim 10, characterized in that Determine according to the following formula : in, Used to represent the l-th layer of the graph convolutional network model and Get the weight training parameters corresponding to the graph convolution operation results, It is used to represent the weight training parameters from the i-th reference space modal graph to the j-th reference output modal graph in the l-th layer graph convolutional network model, and |M| is used to represent the number of reference space modal graphs.

12. The method according to claim 11, characterized in that The reference output modal diagram for any reference spatial modal diagram is determined as follows: Among them, the It is used to represent the reference output modal diagram j for any reference spatial modal diagram i, Used to represent the activation function, It is used to represent any output result for any reference space modal diagram, and |M| is used to represent the number of reference space modal diagrams.

13. The method according to claim 8, characterized in that Determine whether the first weight training parameter and the second weight training parameter conform to the preset weight penalty strategy according to the following formula: in, ,and Conditional Used to represent the first weight training parameter of the l-th layer graph convolutional network model, Conditional Used to represent the second weight training parameter of the l-th layer graph convolutional network model, During minimization, it is determined that the first weight training parameter and the second weight training parameter meet the preset weight penalty strategy.

14. The method according to claim 8, characterized in that Determine whether the third weight training parameter conforms to the preset tensor normal distribution according to the following formula: in, Used to represent the covariance matrix, Used to indicate Function, The third weight training parameter used to represent the l-th layer graph convolutional network model is During minimization, it is determined that the third weight training parameter conforms to the preset tensor normal distribution.

15. A resource scheduling device, characterized in that: include: An acquisition module is used to acquire multiple spatial modal graphs corresponding to a target travel area; each spatial modal graph is composed of nodes corresponding to all target travel sub-areas in the target travel area and node connections corresponding to two target travel sub-areas having a spatial modal relationship, and information of each node includes a historical travel volume of the corresponding target travel sub-area and a spatial modal relationship between the corresponding target travel sub-area and another target travel sub-area, wherein the spatial modal relationship includes a distance relationship, a point of interest (POI) similarity relationship or a connectivity relationship, and the multiple spatial modal graphs are at least two spatial modal graphs corresponding to at least two of the spatial modal relationships; A prediction module, used for inputting a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain the travel volume of each target travel sub-area within the target travel area within a preset time period in the future; A scheduling module, used for scheduling travel resources based on the travel volume of each target travel sub-area in the target travel area within a future preset time period; During the travel demand prediction model training stage, the historical travel volume of the reference travel sub-area corresponding to each node in the multiple reference spatial modal graphs corresponding to the reference travel area and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area are used as travel demand prediction influencing factors, and the travel volume in a future preset time period included in the information of each node of the reference output modal graph is used as the travel demand prediction result to train the training parameters of the travel demand prediction model, and the reference travel area is the target travel area or other travel areas having a similar spatial modal relationship with the target travel area.

16. The device according to claim 15, characterized in that The acquisition module is specifically used for: Get the distance value between every two target row sub-areas; If the distance value is less than the set threshold, the nodes corresponding to the two target travel sub-areas corresponding to the distance value are connected; Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

17. The device according to claim 15, characterized in that The acquisition module is specifically used for: For each target travel sub-area, the number of each type of points of interest in the target travel sub-area is obtained, and based on the number of each type of points of interest, a POI vector corresponding to the target travel sub-area is constructed; Determine the POI similarity between the two target travel sub-areas based on the POI vectors of each of the two target travel sub-areas; If the POI similarity is greater than the set similarity, connecting the nodes corresponding to the two target travel sub-areas; Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

18. The device according to claim 15, characterized in that The acquisition module is specifically used for: For each two target travel sub-areas, determining whether there is a travel route corresponding to the preset transportation equipment between the two target travel sub-areas; If so, connect the nodes corresponding to the two target travel sub-areas; Based on the obtained connections between the nodes and the corresponding nodes, a spatial modal diagram corresponding to the target travel area is obtained.

19. The device according to claim 15, characterized in that The prediction module is specifically used for: Inputting a plurality of spatial modal graphs corresponding to the target travel area into a pre-trained travel demand prediction model to obtain an output modal graph corresponding to the target travel area; The travel volume of the target travel sub-area corresponding to each node in the future preset time period is extracted from the information of each node of the obtained output modal diagram.

20. The device according to any one of claims 15 to 19, characterized in that: Also includes: A model training module, used to obtain multiple reference spatial modal graphs corresponding to the reference travel area; Each reference spatial modal graph is composed of nodes corresponding to all reference travel sub-regions in the reference travel region, and node connections corresponding to two reference travel sub-regions having a spatial modal relationship; For each reference spatial modal graph, extract the historical travel volume of the reference travel sub-region corresponding to the node and a spatial modal relationship between the reference travel sub-region and another reference travel sub-region from the information of each node of the reference spatial modal graph; The travel demand prediction model is trained based on the information of each node of each reference spatial modal graph extracted, including the historical travel volume of the reference travel sub-area corresponding to the node and a spatial modal relationship between the reference travel sub-area and another reference travel sub-area, and the information of each node of the reference output modal graph including the travel volume in a preset time period in the future.

21. The device according to claim 20, characterized in that The model training module is specifically used for: For each reference spatial modal graph, based on the historical travel volume of the reference travel sub-region corresponding to the node included in the information extracted from each node of the reference spatial modal graph, a historical travel volume matrix of the reference travel region corresponding to the reference spatial modal graph is determined; and based on a spatial modal relationship between the reference travel sub-region corresponding to the node and another reference travel sub-region included in the information extracted from each node of the reference spatial modal graph, a spatial modal matrix of the reference travel region corresponding to the reference spatial modal graph is determined; Determine a future travel volume matrix of a reference travel area corresponding to the reference output modal graph based on the travel volume in a future preset time period included in the information of each node of the reference output modal graph; The historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph are used as input features of the travel demand prediction model to be trained, and the future travel volume matrix corresponding to the reference output modal graph is used as the output result of the travel demand prediction model to be trained, and the travel demand prediction model is trained to obtain the travel demand prediction model.

22. The device according to claim 21, characterized in that The travel demand prediction model includes a first-layer graph convolutional network model and a second-layer graph convolutional network model; the number of the reference space modal graphs is M; and the model training module is specifically used for: Input the historical travel volume matrix and spatial modal matrix corresponding to each extracted reference spatial modal graph into the first-layer graph convolution network model to be trained. For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, and the second graph convolution operation result of the historical travel volume matrix and spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, obtain the first-layer reference output modal graph of the first-layer graph convolution network model for the reference spatial modal graph, and use the first-layer reference output modal graph as an input of the second-layer graph convolution network model to be trained; Inputting the historical travel volume matrix and the spatial modal matrix corresponding to the M first-layer reference output modal graphs into the second-layer graph convolution network model to be trained, based on the third graph convolution operation results of the historical travel volume matrix and the spatial modal matrix corresponding to each first-layer reference output modal graph and the third weight training parameters corresponding to each third graph convolution operation result, obtain the second-layer reference output modal graph of the M first-layer reference output modal graphs and the corresponding future travel volume prediction value of the second-layer graph convolution network model; If the travel volume difference between the predicted future travel volume and the actual future travel volume is greater than or equal to a preset difference threshold, the first weight training parameter and the second weight training parameter do not comply with the preset weight penalty strategy, and the third weight training parameter does not comply with the preset tensor normal distribution, then adjust the first weight training parameter and the second weight training parameter, as well as the third weight training parameter, until the travel volume difference is less than the preset difference threshold, the first weight training parameter and the second weight training parameter comply with the preset weight penalty strategy, and the third weight training parameter complies with the preset tensor normal distribution.

23. The device according to claim 22, characterized in that The model training module is specifically used for: For any reference spatial modal graph, based on the first graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to the reference spatial modal graph, and the first weight training parameter corresponding to the first graph convolution operation result, the first output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained; and based on the second graph convolution operation result of the historical travel volume matrix and the spatial modal matrix corresponding to other reference spatial modal graphs, and the second weight training parameter corresponding to the second graph convolution operation result, the second output result of the first-layer graph convolution network model for the reference spatial modal graph is obtained; The first output result and the second output result are summed to obtain a first-layer reference output modal graph of the first-layer graph convolutional network model for the reference spatial modal graph.

24. The device according to claim 23, characterized in that Any output result for any reference space modal diagram is determined as follows: Among them, the It is used to represent any output result for any reference space modal diagram, It is used to indicate the corresponding modal diagram of any reference space The spatial modal matrix of order, It is used to represent the historical travel volume matrix corresponding to any reference space modal diagram, Used to indicate and Obtain the weight training parameters corresponding to the graph convolution operation result, Used to indicate adjustable parameters.

25. The device according to claim 24, characterized in that Determine according to the following formula : in, Used to represent the l-th layer of the graph convolutional network model and Get the weight training parameters corresponding to the graph convolution operation results, It is used to represent the weight training parameters from the i-th reference space modal graph to the j-th reference output modal graph in the l-th layer graph convolutional network model, and |M| is used to represent the number of reference space modal graphs.

26. The device according to claim 25, characterized in that The reference output modal diagram for any reference spatial modal diagram is determined as follows: Among them, the It is used to represent the reference output modal diagram j for any reference spatial modal diagram i, Used to represent the activation function, It is used to represent any output result for any reference space modal diagram, and |M| is used to represent the number of reference space modal diagrams.

27. The device according to claim 22, characterized in that Determine whether the first weight training parameter and the second weight training parameter conform to the preset weight penalty strategy according to the following formula: in, ,and Conditional Used to represent the first weight training parameter of the l-th layer graph convolutional network model, Conditional Used to represent the second weight training parameter of the l-th layer graph convolutional network model, During minimization, it is determined that the first weight training parameter and the second weight training parameter meet the preset weight penalty strategy.

28. The device according to claim 22, characterized in that Determine whether the third weight training parameter conforms to the preset tensor normal distribution according to the following formula: in, Used to represent the covariance matrix, Used to represent the activation function, The third weight training parameter used to represent the l-th layer graph convolutional network model is During minimization, it is determined that the third weight training parameter conforms to the preset tensor normal distribution.

29. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the resource scheduling method as described in any one of claims 1 to 14.

30. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the resource scheduling method according to any one of claims 1 to 14 are executed.