A method for predicting order type, a prediction device and a readable storage medium

Through the association of travel origin and destination feature vectors in the multi-relational heterogeneous information model diagram, the problem of low efficiency and accuracy in travel order type prediction in the existing technology is solved, and more efficient order type prediction is achieved.

CN111861535BInactive Publication Date: 2024-09-24BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010321062.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-22
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology relies on separate location feature statistics when predicting travel order types, resulting in isolated features, poor prediction efficiency and low accuracy, and requires a lot of manpower and material resources to mine location features.

Method used

The multi-relationship heterogeneous information model diagram is used to represent the travel relationship through the predicted feature vectors of the travel origin and destination, reducing the amount of forecast data and improving the efficiency and accuracy of order type prediction.

Benefits of technology

Through the travel origin and destination feature vectors in the multi-relationship heterogeneous information model diagram, travel relationships are associated to improve the efficiency and accuracy of order type prediction and reduce the amount of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111861535B
    Figure CN111861535B
Patent Text Reader

Abstract

The present application provides a prediction method, prediction device and readable storage medium for order types, which obtains the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination in the order from a pre-constructed multi-relation heterogeneous information model diagram; determines the first prediction feature vector of the travel origin based on the travel origin information and the first relationship feature vector, and determines the second prediction feature vector of the travel destination based on the travel destination information and the second relationship feature vector; determines the order type of the order based on the first prediction feature vector and the second prediction feature vector. In this way, not only can the amount of data processed in the prediction process be reduced, but also the prediction feature vectors of the travel origin and the travel destination in the multi-relation heterogeneous information model diagram can characterize the association between the travel relationships between each other, contain rich multi-dimensional features, and help improve the efficiency of order type prediction and the accuracy of order prediction results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of travel order prediction, and in particular to an order type prediction method, prediction device and readable storage medium. Background Art

[0002] With the gradual development of science and technology and the improvement of people's living standards, nowadays, most people choose to take taxi services through travel software when traveling. At present, after the passenger enters the starting point and end point and other vehicle information to make a vehicle reservation and generate a travel order, the category of the travel order will generally be identified. This can determine the order category in advance, such as whether the travel order is a drunk order, a designated driver order or a low-quality order, etc., so as to provide different travel services, which will help to further optimize the system scheduling, reduce safety risks, and thus improve the driver and passenger experience.

[0003] At present, when predicting the order type for travel orders, most of them are based on travel information related to the travel orders, and even combined with historical travel information, to perform feature statistics on the starting point and the end point respectively, in order to obtain the characteristics of the starting point and the end point respectively. However, whether it is through machine learning or manual experts to mine location features, it consumes a lot of manpower and material resources, and can only obtain features that individually characterize the attributes of each feature location itself, resulting in isolated features used in order prediction, poor prediction efficiency, and low accuracy. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide an order type prediction method, a prediction device and a readable storage medium, which can predict the order type by using the prediction feature vectors of the travel origin and the travel destination clustered in the multi-relationship heterogeneous information model graph. Not only can the amount of data processed in the prediction process be reduced, but the prediction feature vectors of the travel origin and the travel destination in the multi-relationship heterogeneous information model graph can characterize the association between the travel relationships between each other, contain rich multi-dimensional features, and help improve the efficiency of order type prediction and improve the accuracy of order prediction results.

[0005] According to a first aspect of the present application, a method for predicting order types is provided, the method comprising:

[0006] Determining the travel origin and travel destination of the order to be predicted from the acquired order information of the order to be predicted;

[0007] Obtaining a first relational feature vector of the travel origin and a second relational feature vector of the travel destination from a pre-constructed multi-relational heterogeneous information model graph of a travel area including the travel origin and the travel destination;

[0008] Determine a first prediction feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and determine a second prediction feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector;

[0009] Based on the first prediction feature vector and the second prediction feature vector, an order type of the order to be predicted is determined.

[0010] In some embodiments of the present application, the multi-relationship heterogeneous information model graph is determined by the following steps:

[0011] Determining, from the travel data stored in the travel platform, a plurality of travel relationships in a travel area including the travel origin and the travel destination;

[0012] Determining a plurality of feature prediction locations in the travel area, wherein the plurality of feature prediction locations include the travel origin and the travel destination;

[0013] Based on the multiple feature prediction locations and the multiple travel relationships, determine multiple travel samples, wherein each travel sample includes a sample departure place, a sample destination, and a sample relationship between the sample departure place and the sample destination;

[0014] Input each travel sample into the constructed neural network model for training until the change value of the objective function of the neural network model is less than a preset threshold, and obtain the predicted feature vector of each sample departure place and the predicted feature vector of each sample destination;

[0015] Determine the predicted feature vector of each sample departure place as the relationship feature vector of the corresponding feature prediction place, and determine the predicted feature vector of each sample destination place as the relationship feature vector of the corresponding feature prediction place;

[0016] Based on each feature prediction location and the corresponding relationship feature vector, the multi-relationship heterogeneous information model graph is constructed.

[0017] In some embodiments of the present application, the determining of a plurality of characteristic predicted locations in the travel area includes:

[0018] Determine a plurality of travel orders from the travel data, and determine a departure point and a destination of each travel order;

[0019] The determined multiple departure places and multiple destinations are determined as multiple characteristic prediction points in the travel area.

[0020] In some embodiments of the present application, the determining of a plurality of characteristic predicted locations in the travel area includes:

[0021] Dividing the travel area into a plurality of sub-areas according to a preset area division condition, wherein the preset area division condition includes one or more of latitude and longitude, location category, and geographic information;

[0022] Based on the division information of each sub-region, a feature prediction location corresponding to each sub-region is determined.

[0023] In some embodiments of the present application, each travel sample is input into the constructed neural network model for training until the change value of the objective function of the neural network model is less than a preset threshold, and a predicted feature vector of each sample departure place and a predicted feature vector of each sample destination are obtained, including:

[0024] Determine a first initial feature vector of a sample departure place, a second initial feature vector of a sample destination, and a neural network parameter corresponding to the sample relationship in each travel sample;

[0025] The constructed neural network model is trained by taking the first initial feature vector in each travel sample as input, the second initial feature vector as output, and the neural network parameters as model parameters;

[0026] The first initial feature vector, the second initial feature vector and the neural network parameters in each travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold value, and each adjusted first initial feature vector is determined to be a predicted feature vector of the corresponding sample departure point, and each adjusted second initial feature vector is determined to be a predicted feature vector of the corresponding sample destination.

[0027] In some embodiments of the present application, the first initial feature vector in each travel sample is used as input, the second initial feature vector is used as output, and the neural network parameter is used as the model parameter to train the constructed neural network model, including:

[0028] For each travel sample, determine multiple negative samples of the travel sample, wherein each negative sample includes a sample departure place of the travel sample, a negative sample destination, and a sample relationship of the travel sample;

[0029] The first initial feature vector in the travel sample is used as input, the neural network parameters are used as model parameters, and the output destination is obtained through the constructed neural network model;

[0030] Determine the probability of going from the sample departure point of the trip sample to the output destination, the sample destination, and each negative sample destination through the trained classifier;

[0031] The first initial feature vector, the second initial feature vector and the neural network parameter in each travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold value, and each adjusted first initial feature vector is determined as a predicted feature vector of the corresponding sample departure place, and each adjusted second initial feature vector is determined as a predicted feature vector of the corresponding sample destination, including:

[0032] For each travel sample, the first initial feature vector, the second initial feature vector and the neural network parameters in the travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold, and the probability of going from the sample departure point of the travel sample to the sample destination is greater than the probability of going from the sample departure point of the travel sample to other destinations, and the adjusted first initial feature vector is determined as the predicted feature vector of the sample departure point in the travel sample, and the adjusted second initial feature vector is determined as the predicted feature vector of the sample destination in the travel sample, wherein the other destination is the output destination and any one of the multiple determined negative sample destinations.

[0033] In some embodiments of the present application, after determining a plurality of travel samples based on the plurality of feature prediction locations and the plurality of travel relationships, wherein each travel sample includes a sample departure location, a sample destination, and a sample relationship between the sample departure location and the sample destination, the prediction method includes:

[0034] Determine a reverse sample for each travel sample, wherein each reverse sample includes a sample relationship, a reverse departure point, and a reverse destination in the travel sample corresponding to the reverse sample;

[0035] Input each reverse sample into the neural network model for training respectively until the change value of the objective function of the neural network model is less than the preset threshold value, and obtain the reverse feature vector of each reverse departure point and the reverse feature vector of each reverse destination;

[0036] The step of determining the predicted feature vector of each sample departure place as the relationship feature vector of the corresponding feature prediction place, and determining the predicted feature vector of each sample destination place as the relationship feature vector of the corresponding feature prediction place includes:

[0037] Based on the predicted feature vector of the sample departure place in each travel sample and the reverse feature vector of the reverse destination in the corresponding reverse sample, the relationship feature vector of the feature prediction place corresponding to the sample departure place in each travel sample is determined, and based on the predicted feature vector of the sample destination in each travel sample and the reverse feature vector of the reverse departure place in the corresponding reverse sample, the relationship feature vector of the feature prediction place corresponding to the sample destination in each travel sample is determined.

[0038] In some embodiments of the present application, the determining of the reverse sample of each travel sample, wherein each reverse sample includes a sample relationship, a reverse departure place, and a reverse destination in the travel sample corresponding to the reverse sample, includes:

[0039] For each travel sample, determine that the sample departure point in the travel sample is the reverse destination, and the sample destination in the travel sample is the reverse departure point;

[0040] The sample including the determined reverse departure place, reverse destination and the sample relationship of the travel sample is determined as the reverse sample corresponding to the travel sample.

[0041] In some embodiments of the present application, the step of determining a relationship feature vector of a feature prediction location corresponding to a sample departure location in each travel sample based on a prediction feature vector of a sample departure location in each travel sample and a reverse feature vector of a reverse destination in a corresponding reverse sample, and determining a relationship feature vector of a feature prediction location corresponding to a sample destination in each travel sample based on a prediction feature vector of a sample destination in each travel sample and a reverse feature vector of a reverse departure location in a corresponding reverse sample, includes:

[0042] For each travel sample, the predicted feature vector of the sample departure place in the travel sample and the reverse feature vector of the reverse destination in the reverse sample corresponding to the travel sample are concatenated, and the obtained concatenated vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample departure place in the travel sample;

[0043] The predicted feature vector of the sample destination in the travel sample and the reverse feature vector of the reverse departure point in the reverse sample corresponding to the travel sample are vector-concatenated, and the obtained concatenated vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample destination in the travel sample.

[0044] In some embodiments of the present application, determining the first predicted feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and determining the second predicted feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector, includes:

[0045] Determining a departure feature vector of the travel origin based on the travel origin information indicated in the order information;

[0046] Performing vector splicing on the determined departure feature vector and the first relationship feature vector, and determining the obtained splicing vector as the first predicted feature vector of the trip origin;

[0047] Determining an arrival feature vector of the travel destination based on the travel destination information indicated in the order information;

[0048] The determined arrival feature vector and the second relationship feature vector are concatenated, and the obtained concatenated vector is determined as the second predicted feature vector of the travel destination.

[0049] According to a second aspect of the present application, there is provided an order type prediction device, the prediction device comprising:

[0050] A travel determination module, used to determine the travel origin and travel destination of the order to be predicted from the acquired order information of the order to be predicted;

[0051] A vector acquisition module, used to acquire a first relational feature vector of the travel origin and a second relational feature vector of the travel destination from a pre-constructed multi-relational heterogeneous information model diagram of a travel area including the travel origin and the travel destination;

[0052] a first vector determination module, configured to determine a first predicted feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and to determine a second predicted feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector;

[0053] An order prediction module is used to determine the order type of the order to be predicted based on the first prediction feature vector and the second prediction feature vector.

[0054] In some embodiments of the present application, the prediction device further includes a model graph construction module, and the model graph construction module is used to:

[0055] Determining, from the travel data stored in the travel platform, a plurality of travel relationships in a travel area including the travel origin and the travel destination;

[0056] Determining a plurality of feature prediction locations in the travel area, wherein the plurality of feature prediction locations include the travel origin and the travel destination;

[0057] Based on the multiple feature prediction locations and the multiple travel relationships, determine multiple travel samples, wherein each travel sample includes a sample departure place, a sample destination, and a sample relationship between the sample departure place and the sample destination;

[0058] Input each travel sample into the constructed neural network model for training until the change value of the objective function of the neural network model is less than a preset threshold, and obtain the predicted feature vector of each sample departure place and the predicted feature vector of each sample destination;

[0059] Determine the predicted feature vector of each sample departure place as the relationship feature vector of the corresponding feature prediction place, and determine the predicted feature vector of each sample destination place as the relationship feature vector of the corresponding feature prediction place;

[0060] Based on each feature prediction location and the corresponding relationship feature vector, the multi-relationship heterogeneous information model graph is constructed.

[0061] In some embodiments of the present application, when the model graph construction module is used to determine a plurality of feature prediction locations in the travel area, the model graph construction module is used to:

[0062] Determine a plurality of travel orders from the travel data, and determine a departure point and a destination of each travel order;

[0063] The determined multiple departure places and multiple destinations are determined as multiple characteristic prediction points in the travel area.

[0064] In some embodiments of the present application, when the model graph construction module is used to determine a plurality of feature prediction locations in the travel area, the model graph construction module is used to:

[0065] Dividing the travel area into a plurality of sub-areas according to a preset area division condition, wherein the preset area division condition includes one or more of latitude and longitude, location category, and geographic information;

[0066] Based on the division information of each sub-region, a feature prediction location corresponding to each sub-region is determined.

[0067] In some embodiments of the present application, the model graph construction module is used to input each travel sample into the constructed neural network model for training, until the change value of the objective function of the neural network model is less than a preset threshold, and the predicted feature vector of each sample departure place and the predicted feature vector of each sample destination are obtained, the model graph construction module is used to:

[0068] Determine a first initial feature vector of a sample departure place, a second initial feature vector of a sample destination, and a neural network parameter corresponding to the sample relationship in each travel sample;

[0069] The constructed neural network model is trained by taking the first initial feature vector in each travel sample as input, the second initial feature vector as output, and the neural network parameters as model parameters;

[0070] The first initial feature vector, the second initial feature vector and the neural network parameters in each travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold value, and each adjusted first initial feature vector is determined to be a predicted feature vector of the corresponding sample departure point, and each adjusted second initial feature vector is determined to be a predicted feature vector of the corresponding sample destination.

[0071] In some embodiments of the present application, when the model graph construction module is used to train the constructed neural network model using the first initial feature vector in each travel sample as input, the second initial feature vector as output, and the neural network parameters as model parameters, the model graph construction module is used to:

[0072] For each travel sample, determine multiple negative samples of the travel sample, wherein each negative sample includes a sample departure place of the travel sample, a negative sample destination, and a sample relationship of the travel sample;

[0073] The first initial feature vector in the travel sample is used as input, the neural network parameters are used as model parameters, and the output destination is obtained through the constructed neural network model;

[0074] Determine the probability of going from the sample departure point of the trip sample to the output destination, the sample destination, and each negative sample destination through the trained classifier;

[0075] The model graph construction module is used to adjust the first initial feature vector, the second initial feature vector and the neural network parameters in each travel sample until the change value of the objective function of the neural network model is less than a preset threshold value, and each adjusted first initial feature vector is determined to be a predicted feature vector of the corresponding sample departure place, and each adjusted second initial feature vector is determined to be a predicted feature vector of the corresponding sample destination. The model graph construction module is used to:

[0076] For each travel sample, the first initial feature vector, the second initial feature vector and the neural network parameters in the travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold, and the probability of going from the sample departure point of the travel sample to the sample destination is greater than the probability of going from the sample departure point of the travel sample to other destinations, and the adjusted first initial feature vector is determined as the predicted feature vector of the sample departure point in the travel sample, and the adjusted second initial feature vector is determined as the predicted feature vector of the sample destination in the travel sample, wherein the other destination is the output destination and any one of the multiple determined negative sample destinations.

[0077] In some embodiments of the present application, the prediction device further includes a second vector determination module, and the second vector determination module is used to:

[0078] Determine a reverse sample for each travel sample, wherein each reverse sample includes a sample relationship, a reverse departure point, and a reverse destination in the travel sample corresponding to the reverse sample;

[0079] Input each reverse sample into the neural network model for training respectively until the change value of the objective function of the neural network model is less than the preset threshold value, and obtain the reverse feature vector of each reverse departure point and the reverse feature vector of each reverse destination;

[0080] When the vector acquisition module is used to determine the predicted feature vector of each sample departure place as the relationship feature vector of the corresponding feature prediction place, and to determine the predicted feature vector of each sample destination as the relationship feature vector of the corresponding feature prediction place, the vector acquisition module is used to:

[0081] Based on the predicted feature vector of the sample departure place in each travel sample and the reverse feature vector of the reverse destination in the corresponding reverse sample, the relationship feature vector of the feature prediction place corresponding to the sample departure place in each travel sample is determined, and based on the predicted feature vector of the sample destination in each travel sample and the reverse feature vector of the reverse departure place in the corresponding reverse sample, the relationship feature vector of the feature prediction place corresponding to the sample destination in each travel sample is determined.

[0082] In some embodiments of the present application, when the second vector determination module is used to determine the reverse sample of each travel sample, wherein each reverse sample includes a sample relationship, a reverse departure place, and a reverse destination in the travel sample corresponding to the reverse sample, the second vector determination module is used to:

[0083] For each travel sample, determine that the sample departure point in the travel sample is the reverse destination, and the sample destination in the travel sample is the reverse departure point;

[0084] The sample including the determined reverse departure place, reverse destination and the sample relationship of the travel sample is determined as the reverse sample corresponding to the travel sample.

[0085] In some embodiments of the present application, when the second vector determination module is used to determine the relationship feature vector of the feature prediction place corresponding to the sample departure place in each travel sample based on the prediction feature vector of the sample departure place in each travel sample and the reverse feature vector of the reverse destination in the corresponding reverse sample, and to determine the relationship feature vector of the feature prediction place corresponding to the sample destination in each travel sample based on the prediction feature vector of the sample destination in each travel sample and the reverse feature vector of the reverse departure place in the corresponding reverse sample, the second vector determination module is used to:

[0086] For each travel sample, the predicted feature vector of the sample departure place in the travel sample and the reverse feature vector of the reverse destination in the reverse sample corresponding to the travel sample are concatenated, and the obtained concatenated vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample departure place in the travel sample;

[0087] The predicted feature vector of the sample destination in the travel sample and the reverse feature vector of the reverse departure point in the reverse sample corresponding to the travel sample are vector-concatenated, and the obtained concatenated vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample destination in the travel sample.

[0088] In some embodiments of the present application, when the first vector determination module is used to determine the first predicted feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and to determine the second predicted feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector, the first vector determination module is used to:

[0089] Determining a departure feature vector of the travel origin based on the travel origin information indicated in the order information;

[0090] Performing vector splicing on the determined departure feature vector and the first relationship feature vector, and determining the obtained splicing vector as the first predicted feature vector of the trip origin;

[0091] Determining an arrival feature vector of the travel destination based on the travel destination information indicated in the order information;

[0092] The determined arrival feature vector and the second relationship feature vector are concatenated, and the obtained concatenated vector is determined as the second predicted feature vector of the travel destination.

[0093] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the order type prediction method as described above are performed.

[0094] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the order type prediction method as described above are executed.

[0095] The order type prediction method, prediction device and readable storage medium provided in the embodiments of the present application determine the travel origin and travel destination of the order to be predicted from the acquired order information of the order to be predicted; obtain the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination from a pre-constructed multi-relationship heterogeneous information model diagram of the travel area including the travel origin and the travel destination; determine the first prediction feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and determine the second prediction feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector; determine the order type of the order to be predicted based on the first prediction feature vector and the second prediction feature vector.

[0096] Compared with the order prediction method in the prior art, the travel origin and travel destination of the order to be predicted are determined, and the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination are determined from the pre-constructed multi-relationship heterogeneous information model diagram, and based on the first relationship feature vector and the second relationship feature vector, the first prediction feature vector of the travel origin and the second relationship feature vector of the travel destination are correspondingly determined, and then the order type of the order to be predicted is determined according to the first prediction feature vector and the second prediction feature vector. In this way, not only the amount of data processed in the prediction process can be reduced, but also the prediction feature vectors of the travel origin and the travel destination in the multi-relationship heterogeneous information model diagram can characterize the association between the travel relationships between each other, and contain rich multi-dimensional features, which helps to improve the efficiency of order type prediction and the accuracy of order prediction results.

[0097] 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

[0098] 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.

[0099] Figure 1 A schematic diagram of the architecture of a prediction system provided in an embodiment of the present application;

[0100] Figure 2 A flowchart of a method for predicting order types provided in an embodiment of the present application;

[0101] Figure 3 It is a schematic diagram of a multi-relation heterogeneous information model;

[0102] Figure 4 A flowchart of a method for predicting order types provided in another embodiment of the present application;

[0103] Figure 5 One of the structural schematic diagrams of an order type prediction device provided in an embodiment of the present application;

[0104] Figure 6 A second structural diagram of an order type prediction device provided in an embodiment of the present application;

[0105] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0106] 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. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different 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, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0107] In order to enable those skilled in the art to use the contents of this application, the following implementation is given in conjunction with the specific application scenario "predicting order type". 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 determining the first predicted feature vector of the travel origin and the second predicted feature vector of the travel destination based on the first relationship feature vector corresponding to the travel destination in the order information and the first relationship feature vector corresponding to the travel destination, and then determining the order type, it should be understood that this is only an exemplary embodiment.

[0108] 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.

[0109] The terms "passenger", "requester", "service requester" and "customer" in this application are used interchangeably to refer to individuals, entities or tools that can request or order services. The terms "driver", "provider", "service provider" and "supplier" in this application are used interchangeably to refer to individuals, entities or tools that can provide services. The term "user" in this application may refer to an individual, entity or tool that requests a service, orders a service, provides a service, or facilitates the provision of a service. For example, a user may be a passenger, a driver, an operator, etc., or any combination thereof. In this application, "passenger" and "passenger terminal" are used interchangeably, and "driver" and "driver terminal" are used interchangeably.

[0110] The terms "service request" and "order" in this application are used interchangeably to refer to a request initiated by a passenger, a service requester, a driver, a service provider, a supplier, etc., or any combination thereof. The "service request" or "order" may be accepted by a passenger, a service requester, a driver, a service provider, a supplier, etc., or any combination thereof. A service request may be charged or free of charge.

[0111] One aspect of the present application relates to a prediction system. The prediction system can determine the travel origin and travel destination of the order to be predicted from the acquired order information of the order to be predicted, determine the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination from the pre-constructed multi-relationship heterogeneous information model graph, and based on the first relationship feature vector and the second relationship feature vector, correspondingly determine the first prediction feature vector of the travel origin and the second relationship feature vector of the travel destination, and then determine the order type of the order to be predicted based on the first prediction feature vector and the second prediction feature vector. In this way, not only can the amount of data processed in the prediction process be reduced, but also the prediction feature vectors of the travel origin and the travel destination in the multi-relationship heterogeneous information model graph can characterize the association between travel relationships, contain rich multi-dimensional features, and help improve the efficiency of order type prediction, as well as improve the accuracy of order prediction results.

[0112] It is worth noting that at present, when predicting the order type for travel orders, most of them are based on travel information related to the travel orders, and even combined with historical travel information, to perform feature statistics on the starting point and the end point respectively, so as to obtain the features of the starting point and the end point respectively. However, whether it is through machine learning or manual experts to mine location features, it requires a lot of manpower and material resources, and can only obtain features that individually characterize the attributes of each feature location itself, resulting in isolated features used in order prediction, poor prediction efficiency, and low accuracy. The purpose of this application is to provide an order type prediction method, prediction device, and readable storage medium, which can predict the order type by using the predicted feature vectors of the travel origin and travel destination clustered in a multi-relationship heterogeneous information model graph, which can not only reduce the amount of data processed in the prediction process, but also the predicted feature vectors of the travel origin and travel destination in the multi-relationship heterogeneous information model graph can characterize the association between travel relationships, contain rich multi-dimensional features, and help improve the efficiency of order type prediction and the accuracy of order prediction results.

[0113] Figure 1 A schematic diagram of the architecture of a prediction system provided in an embodiment of the present application. For example, the prediction system may be an online transportation service platform for transportation services such as taxis, chauffeur services, express trains, carpooling, bus services, driver rentals, or shuttle services, or any combination thereof. The prediction system may include one or more of a server 110, a network 120, a service request terminal 130, a service provider terminal 140, and a database 150.

[0114] In some embodiments, the server 110 may include a processor. The processor may process information and / or data related to the service request to perform one or more functions described in the present application. For example, the processor may determine the order information based on the service request obtained from the service request end 130. In some embodiments, the processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). By way of example only, the processor may include a central processing unit (CPU), an application specific integrated circuit (ASIC), an application specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a microcontroller unit, a reduced instruction set computer (RISC), or a microprocessor, or any combination thereof.

[0115] In some embodiments, the device types corresponding to the service request end 130 and the service provider end 140 may be mobile devices, such as smart home devices, wearable devices, smart mobile devices, virtual reality devices, or augmented reality devices, etc., or may be tablet computers, laptop computers, or built-in devices in motor vehicles, etc.

[0116] In some embodiments, the database 150 may be connected to the network 120 to communicate with one or more components in the prediction system (e.g., the server 110, the service requester 130, the service provider 140, etc.). One or more components in the prediction system may access data or instructions stored in the database 150 via the network 120. In some embodiments, the database 150 may be directly connected to one or more components in the prediction system, or the database 150 may also be part of the server 110.

[0117] The following is combined with the above Figure 1 The content described in the forecasting system shown is a detailed description of the order type forecasting method provided in the embodiment of the present application.

[0118] See also Figure 2 , Figure 2 This is a flowchart of a method for predicting order types provided in an embodiment of the present application. The method can be executed by a processor in a prediction system, and the specific execution process is:

[0119] S201: Determine a travel origin and a travel destination of the order to be predicted from the acquired order information of the order to be predicted.

[0120] In this step, when a travel order to be predicted is obtained, the travel origin and travel destination are determined from the order information corresponding to the order to be predicted.

[0121] Here, the order information of the travel order to be predicted may include information such as the travel origin, travel destination, and travel time period corresponding to the order.

[0122] S202: Obtain a first relational feature vector of the travel origin and a second relational feature vector of the travel destination from a pre-constructed multi-relational heterogeneous information model graph of the travel area including the travel origin and the travel destination.

[0123] In this step, a first relationship feature vector with the travel origin in the order to be predicted and a second relationship feature vector with the travel destination are determined from a multi-relationship heterogeneous information model graph constructed based on order information of historical orders, wherein the multi-relationship heterogeneous information model graph represents a travel area including the travel origin and the travel destination.

[0124] Here, the first relationship feature vector and the second relationship feature vector respectively represent the relationship between the travel origin node and other nodes (which may be the travel destination), as well as the relationship between the travel destination node and other nodes (which may be the travel origin). They can also represent the relationship between the travel origin / travel destination and the feature relationship. The relationship here can refer to the taxi time, and the relationship feature vector can be represented by a triple (departure place, taxi time, destination).

[0125] Here, the multi-relation heterogeneous information model graph is constructed based on the historical order data in the platform. The triples (departure place, taxi time, destination) that constitute the multi-relation heterogeneous information model graph are obtained through a large amount of historical order data. For example, Figure 3 As shown, Figure 3It is a schematic diagram of a multi-relation heterogeneous information model graph. Each edge in the graph represents a travel record, and each node represents a travel origin or destination in a travel record. Each edge represents a travel type, that is, the taxi time in the triple. In fact, based on the time period described in the taxi time, ten types can be determined, corresponding to the 10 taxi time periods of weekday early morning, weekday morning peak, weekday daytime flat peak, weekday evening peak, weekday evening, holiday early morning, holiday morning peak, holiday daytime flat peak, holiday evening peak, and holiday evening. Based on the acquired order records, seven triples are determined, (1, weekday morning peak, 5); (1, weekday evening peak, 2); (5, weekday daytime flat peak, 2); (2, weekday daytime flat peak, 3); (3, weekday morning peak, 4); (4, weekday evening peak, 5); (4, weekday daytime flat peak, 6). The edges in the multi-relation heterogeneous information model graph can be designed into different shapes to more intuitively determine the relationship between each two nodes, such as Figure 3 As shown in , the single straight line r1 represents the morning peak on weekdays, the dotted line r2 represents the daytime flat peak on weekdays, and the double straight line r3 represents the evening peak on weekdays.

[0126] The heterogeneous information model graph may also be a single relationship graph, which means that all edges in the single relationship graph are of the same type, that is, the single relationship graph counts the relationship between each node in a certain taxi-hailing time.

[0127] S203. Determine a first predicted feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and determine a second predicted feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector.

[0128] In this step, the first predicted feature vector of the travel origin is determined based on the travel origin information indicated in the order information and the first relationship feature vector determined in step S202, and the second predicted feature vector of the travel destination is determined by reverse calculation based on the travel destination information and the second relationship feature vector determined in step S202 according to the same principle.

[0129] Among them, the first predicted feature vector can be obtained by concatenating the travel origin information of the travel origin and the first relationship feature vector; similarly, the second predicted feature vector can be obtained by concatenating the travel destination information of the travel destination and the second relationship feature vector, which represents the attribute information of the travel origin itself and the relationship with other nodes (which may be the travel destination), as well as the attribute information of the travel destination itself and the relationship with other nodes (which may be the travel origin), and can also represent the relationship between the travel origin / travel destination and the feature relationship.

[0130] S204: Determine the order type of the order to be predicted based on the first prediction feature vector and the second prediction feature vector.

[0131] In this step, the order type of this order is determined based on the qualitative description of the travel origin by the first predicted feature vector of the travel origin and the qualitative description of the travel destination by the second predicted feature vector of the travel destination, and then the driving route and whether to accept the order and other information are determined based on the order type.

[0132] Here, the order type can indicate whether the passenger's ride-hailing type is a ride-sharing or a taxi, etc., and can also indicate the passenger's status based on the passenger's travel origin, etc. For example, a passenger submitted a designated driver order at the door of a restaurant at 11 o'clock in the evening. At this time, based on the travel time and travel location, the passenger is likely to be drunk. The order type is a drunk order. When accepting the order, the driver considers the time and the passenger's status and can choose whether to accept the order.

[0133] The order type prediction method provided in the embodiment of the present application determines the travel origin and travel destination of the order to be predicted from the acquired order information of the order to be predicted; obtains the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination from a pre-constructed multi-relationship heterogeneous information model diagram of the travel area including the travel origin and the travel destination; determines the first prediction feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and determines the second prediction feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector; determines the order type of the order to be predicted based on the first prediction feature vector and the second prediction feature vector.

[0134] Compared with the order prediction method in the prior art, the travel origin and travel destination of the order to be predicted are determined, and the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination are determined from the pre-constructed multi-relationship heterogeneous information model diagram, and based on the first relationship feature vector and the second relationship feature vector, the first prediction feature vector of the travel origin and the second relationship feature vector of the travel destination are correspondingly determined, and then the order type of the order to be predicted is determined according to the first prediction feature vector and the second prediction feature vector. In this way, not only the amount of data processed in the prediction process can be reduced, but also the prediction feature vectors of the travel origin and the travel destination in the multi-relationship heterogeneous information model diagram can characterize the association between the travel relationships between each other, and contain rich multi-dimensional features, which helps to improve the efficiency of order type prediction and the accuracy of order prediction results.

[0135] See also Figure 4 , Figure 4 This is a flowchart of a method for predicting order types provided by another embodiment of the present application. The method can be executed by a processor in a prediction system, and the specific execution process is:

[0136] S401: Determine a travel origin and a travel destination of the order to be predicted from the acquired order information of the order to be predicted.

[0137] S402: Obtain a first relational feature vector of the travel origin and a second relational feature vector of the travel destination from a pre-constructed multi-relational heterogeneous information model graph of a travel area including the travel origin and the travel destination.

[0138] S403: Determine a departure feature vector of the travel origin based on the travel origin information indicated in the order information.

[0139] In this step, according to the travel origin information indicated in the order information, a plurality of features in the travel origin information are combined to determine the departure feature vector.

[0140] Among them, the departure feature vector may include the location (geographical location) of the travel origin, the surrounding buildings of the travel origin, multiple travel destinations corresponding to the travel origin in historical order data, and the most frequently visited travel destination and other information.

[0141] S404: Concatenate the determined departure feature vector and the first relationship feature vector, and determine the obtained concatenated vector as the first predicted feature vector of the travel origin.

[0142] In this step, the departure feature vector determined in step S403 and the first relationship feature vector are concatenated to determine a new vector, and the new vector is the first predicted feature vector of the travel origin.

[0143] Among them, the first relationship feature vector can be a representation of the taxi-hailing relationship between the travel origin and the travel destination, which is generally represented by the taxi-hailing time, or it can be a representation of the relationship between the travel origin and the taxi-hailing relationship. This relationship can be reflected in the number of times the travel origin is used as the travel origin within a certain taxi-hailing time period.

[0144] Here, when the starting feature vector and the first relationship feature vector are concatenated, the two may be concatenated directly, or the features contained in the two may be analyzed, and the same features may be merged before concatenating.

[0145] S405: Determine an arrival feature vector of the travel destination based on the travel destination information indicated in the order information.

[0146] In this step, according to the travel destination information indicated in the order information, multiple features in the travel destination information are combined to determine the arrival feature vector.

[0147] Among them, the arrival feature vector may include the location (geographical location) of the travel destination, the surrounding buildings of the travel destination, multiple travel origins corresponding to the travel destination in historical order data, and the travel origin with the most starts and other information.

[0148] S406: Concatenate the determined arrival feature vector and the second relationship feature vector, and determine the obtained concatenated vector as the second predicted feature vector of the travel destination.

[0149] In this step, the arrival feature vector determined in step S405 and the second relationship feature vector are concatenated to determine a new vector, and the new vector is the second predicted feature vector of the travel origin.

[0150] Among them, the second relationship feature vector can be a taxi-hailing relationship between the travel destination and the travel origin, which is generally represented by the taxi-hailing time, or it can be a relationship between the travel destination and the taxi-hailing relationship. This relationship can be reflected in the number of times the travel destination is used as a driving destination within a certain taxi-hailing time period.

[0151] Here, when the arrival feature vector and the second relationship feature vector are concatenated, the two may be concatenated directly, or the same features may be merged after analyzing the features contained in the two and then concatenated.

[0152] S407: Determine the order type of the order to be predicted based on the first prediction feature vector and the second prediction feature vector.

[0153] Among them, the description of S401, S402 and S407 can refer to the description of S201, S202 and S204, and can achieve the same technical effect, which is not repeated here.

[0154] Further, the multi-relationship heterogeneous information model graph is determined by the following steps:

[0155] S4021. Determine, from the travel data stored in the travel platform, a plurality of travel relationships in the travel area including the travel origin and the travel destination.

[0156] In this step, the travel data in the historical records stored in the travel platform includes multiple travel relationships in the travel areas of the travel origin and travel destination in the travel data.

[0157] Here, multiple travel data can be obtained from the travel platform, and each travel data includes a travel origin and a travel destination. When obtaining location data, there is no need to obtain the characteristics of whether the location is a travel origin or a travel destination, only the corresponding travel area needs to be determined.

[0158] Here, the travel relationship is still represented by taxi-hailing time, and multiple taxi-hailing times are determined from multiple travel data.

[0159] S4022. Determine a plurality of feature prediction locations in the travel area, wherein the plurality of feature prediction locations include the travel origin and the travel destination.

[0160] In this step, a plurality of feature prediction locations are determined from the travel area, and these travel prediction locations include a travel origin and a travel destination.

[0161] Here, the travel area may be determined based on the area to which the travel origin and the travel destination in the travel data belong, or may be multiple travel areas determined based on preset division conditions.

[0162] S4023. Determine a plurality of travel samples based on the plurality of feature-predicted locations and the plurality of travel relationships, wherein each travel sample includes a sample departure point, a sample destination, and a sample relationship between the sample departure point and the sample destination.

[0163] In this step, the multiple feature prediction locations determined in step S4022 and the multiple travel relationships determined in step S4021 are randomly arranged and combined to determine multiple travel samples including a sample departure point, a sample destination, and a sample relationship between the sample departure point and the sample destination.

[0164] Here, the format of the travel sample may be a triple (sample departure place, sample relationship, and sample purpose).

[0165] For example, three feature prediction locations are determined: A, B, C, and two sample relationships: weekday morning peak and holiday evening peak. The travel samples that can be determined are (A, weekday morning peak, B), (A, holiday evening peak, B), (A, weekday morning peak, C), (A, holiday evening peak, C), (B, weekday morning peak, C), (B, holiday evening peak, C), (B, weekday morning peak, A), (B, holiday evening peak, A), (C, weekday morning peak, A), (C, holiday evening peak, A), (C, weekday morning peak, B), (C, holiday evening peak, B).

[0166] Among them, the travel sample is determined based on the random combination of the travel origin, travel destination and travel relationship in the order, so the number of sample data is more than the number of orders, and the travel origin, travel destination and travel relationship indicated in the order are included in the travel sample.

[0167] S4024. Input each travel sample into the constructed neural network model for training until the change value of the objective function of the neural network model is less than a preset threshold, and obtain the predicted feature vector of each sample departure point and the predicted feature vector of each sample destination.

[0168] In this step, each travel sample determined in step S4023 is input into the constructed neural network model for training. After each travel sample is input, the parameters of the neural network model are adjusted until the change value of the objective function of the neural network model is less than a preset threshold, and the predicted feature vector of each sample departure point and the predicted feature vector of each sample destination are obtained.

[0169] Here, the neural network can be regarded as a function. During the training process, the parameters are adjusted after each input of different travel samples, and the convergence range of the function is adjusted until the change value of the corresponding objective function is less than the preset threshold, and the training is determined to be completed.

[0170] Here, each prediction feature vector represents the travel relationship between the sample departure point / sample destination and the sample destination / sample departure point. Similarly, the travel relationship is represented by the taxi time.

[0171] Here, the determined multiple travel samples can generate a vector matrix and input it into the neural network model at the same time. The vector matrix is ​​related to the number of predicted locations. Assuming that a certain travel area includes 30,000 predicted locations, each predicted location randomly initializes an initial d-dimensional feature vector, assuming that d = 20. The vector matrix corresponding to the input into the neural network model is a 30,000*20-dimensional vector matrix.

[0172] S4025. Determine the predicted feature vector of each sample departure point as the relationship feature vector of the corresponding feature prediction location, and determine the predicted feature vector of each sample destination as the relationship feature vector of the corresponding feature prediction location.

[0173] In this step, for each sample departure point, the predicted feature vector determined in step S4024 is determined as the corresponding relationship feature vector. Similarly, for each sample destination, the predicted feature vector determined in step S4024 is determined as the corresponding relationship feature vector.

[0174] S4026: Construct the multi-relationship heterogeneous information model graph based on each feature prediction location and the corresponding relationship feature vector.

[0175] In this step, based on each feature prediction location and the corresponding relationship feature vector, multiple feature prediction locations and the relationship feature vector between every two predicted feature locations are determined, each feature prediction location is used as a vertex, and the travel relationship indicated by the relationship feature vector between every two predicted feature locations is used as an edge attribute to form the multi-relationship heterogeneous information model graph.

[0176] Among them, in the multi-relation heterogeneous information model graph, the edges of the same travel relationship are the same, which are single straight lines, dotted lines, etc.

[0177] For example, the relationship feature vector corresponding to the predicted feature location A is (A, r, B), and in the figure, there is a line segment representing the travel relationship r between the predicted feature location A and the predicted feature B.

[0178] Further, step S4022 includes: determining multiple travel orders from the travel data, and determining the departure point and destination of each travel order; and determining the determined multiple departure points and multiple destinations as multiple feature prediction locations in the travel area.

[0179] In this step, multiple travel orders are determined from the travel data of the travel platform, and the departure point and destination in each order are determined, and the determined multiple departure points and multiple destinations are determined as multiple feature prediction locations in the travel area.

[0180] Here, the same location may represent different location features in different orders. For example, location S is the departure point in order 1 and the destination in order 2. In this case, when determining the feature prediction location, location S is a location.

[0181] Furthermore, step S4022 includes: dividing the travel area into multiple sub-areas according to preset area division conditions, wherein the preset area division conditions include one or more of longitude and latitude, place category, and geographic information; based on the division information of each sub-area, determining the characteristic prediction location corresponding to each sub-area.

[0182] In this step, the travel area is divided according to preset area division conditions to determine a plurality of sub-areas, and the characteristic prediction location corresponding to each sub-area is determined based on the division information of each sub-area.

[0183] Among them, the preset area division conditions include one or more of longitude and latitude, location category, and geographic information. When the division conditions include longitude and latitude, the characteristic prediction locations that can be determined include all locations at X° east longitude, etc.; when the division conditions include location category, the characteristic prediction locations that can be determined include office buildings, department stores, and gas stations; when the division conditions include geographic information, the characteristic prediction locations that can be determined include XX street, XX road section, etc.

[0184] Furthermore, step S4024 includes: determining the first initial feature vector of the sample departure place, the second initial feature vector of the sample destination and the neural network parameters corresponding to the sample relationship in each travel sample; training the constructed neural network model using the first initial feature vector in each travel sample as input, the second initial feature vector as output and the neural network parameters as model parameters; adjusting the first initial feature vector, the second initial feature vector and the neural network parameters in each travel sample until the change value of the objective function of the neural network model is less than a preset threshold, determining each adjusted first initial feature vector as the predicted feature vector of the corresponding sample departure place, and determining each adjusted second initial feature vector as the predicted feature vector of the corresponding sample destination.

[0185] In this step, in each travel sample, a first initial feature vector is initialized for the sample departure place in the sample, and a second initial feature vector is initialized for the sample destination, and the sample relationship between the sample departure place and the sample destination in each sample is determined as a neural network parameter. For each travel sample, the first initial feature vector in each travel sample is used as input, the second initial feature vector is used as output, and the neural network parameter is used as a model parameter. The constructed neural network model is trained, and the first initial feature vector, the second initial feature vector and the neural network parameter are adjusted during the training process. Each adjustment of the objective function of the neural network model will correspond to a change value until the change value of the objective function is less than a preset threshold value, and it is determined that the adjustment of the corresponding feature vector is completed, and each adjusted first initial feature vector is determined to be a predicted feature vector of the corresponding sample departure place, and each adjusted second initial feature vector is determined to be a predicted feature vector of the corresponding sample destination.

[0186] Here, for the first initial feature vector and the second initial feature vector, with respect to the sample origin and the sample destination, when initializing the feature vector, a vector can be randomly initialized, and the meaning and number of parameters contained in the initialized feature vector can be not specifically limited; or the number of parameters in the initial feature vector can be determined based on the number of parameters in the final predicted feature vector, and each parameter in the initial feature vector can be randomly assigned a value; or the meaning and number of parameters contained in the feature vector can be correspondingly limited based on the departure information and destination information of the sample origin and the sample destination in the historical data.

[0187] Here, the neural network parameters are determined based on the sample relationship (taxi hailing time). Corresponding to the previous embodiment, there are ten types of taxi hailing times, so 10 sets of independent neural network parameters need to be initialized.

[0188] Here, there is no specific limitation on the composition structure of the neural network model. Each layer of the neural network model can be limited by a three-layer perceptron. The perceptron is composed of two layers of neurons. The input layer receives external input signals and then transmits them to the output layer. The perceptron is a binary linear classification model. The input is the feature vector of the instance, and the output is the category of the instance, which takes the binary values ​​of +1 and -1. The linear classification model is manifested in that the perceptron needs to learn a hyperplane between the positive class and the negative class so that the positive class and the negative class can be correctly divided. Therefore, when the model is trained through travel samples, the input is positive and negative samples.

[0189] Furthermore, the first initial feature vector in each travel sample is used as input, the second initial feature vector is used as output, and the neural network parameters are used as model parameters to train the constructed neural network model, including: for each travel sample, determining multiple negative samples of the travel sample, wherein each negative sample includes a sample departure point of the travel sample, a negative sample destination, and a sample relationship of the travel sample; using the first initial feature vector in the travel sample as input, and the neural network parameters as model parameters, and obtaining the output destination through the constructed neural network model; and determining the probability of going from the sample departure point of the travel sample to the output destination, the sample destination, and each negative sample destination through the trained classifier.

[0190] In this step, for each travel sample, the correct sample destination in the travel sample is randomly replaced with other incorrect negative sample destinations to form multiple negative samples. The first initial feature vector in the travel sample is used as input, and the neural network parameters are used as model parameters. The output destination is obtained through the constructed neural network model. The output destination, the sample destination and each negative sample destination are input into the trained classifier to determine the probability of going from the sample starting point of the travel sample to the output destination, the sample destination and each negative sample destination.

[0191] Here, for a travel sample (A, r, B), where A is the sample travel destination, r is the sample relationship, and B is the correct sample destination in the sample, multiple incorrect locations are randomly determined to generate k negative samples, such as (A, r, B1), (A, r, B2)...(A, r, Bk), etc., and B1, B2 to Bk can all belong to one of the feature prediction locations.

[0192] Here, the type of classifier can be a softmax function, through which the probability values ​​of the sample starting points being B, B1, B2..., Bk are output respectively, and the larger the probability value of B, the better, and the smaller the probability values ​​of B1, B2..., Bk, the better.

[0193] Further, based on the determined multiple negative samples, the first initial feature vector, the second initial feature vector and the neural network parameters in each travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold, and each adjusted first initial feature vector is determined as a predicted feature vector of the corresponding sample departure place, and each adjusted second initial feature vector is determined as a predicted feature vector of the corresponding sample destination, including:

[0194] For each travel sample, the first initial feature vector, the second initial feature vector and the neural network parameters in the travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold, and the probability of going from the sample departure point of the travel sample to the sample destination is greater than the probability of going from the sample departure point of the travel sample to other destinations, and the adjusted first initial feature vector is determined as the predicted feature vector of the sample departure point in the travel sample, and the adjusted second initial feature vector is determined as the predicted feature vector of the sample destination in the travel sample, wherein the other destination is the output destination and any one of the multiple determined negative sample destinations.

[0195] In this step, the first initial feature vector, the second initial feature vector and the neural network parameters in the travel sample are gradually adjusted. When the change value of the objective function of the neural network model is less than a preset threshold value, and in the travel sample and each negative sample, the probability value of the sample departure point to the sample destination determined by the classifier is the largest, then it is determined that the adjustment of the first initial feature vector and the second initial feature vector is completed, and the adjusted first initial feature vector is determined as the predicted feature vector of the sample departure point in the travel sample, and the adjusted second initial feature vector is determined as the predicted feature vector of the sample destination in the travel sample.

[0196] Here, during the adjustment process, a gradient descent method may be used to gradually adjust the first initial eigenvector and the second initial eigenvector in the travel sample so that the value of the objective function of the neural network model tends to decrease.

[0197] Furthermore, after step S4023, the prediction method also includes: determining a reverse sample for each travel sample, wherein each reverse sample includes a sample relationship, a reverse departure point, and a reverse destination in the travel sample corresponding to the reverse sample; inputting each reverse sample into the neural network model for training until the change value of the objective function of the neural network model is less than the preset threshold, thereby obtaining a reverse feature vector for each reverse departure point and a reverse feature vector for each reverse destination.

[0198] In this step, the sample departure place and the sample destination in each travel sample are swapped, the sample departure place is used as the reverse destination, and the sample destination is used as the reverse departure place, a plurality of reverse samples are determined, and each determined reverse sample is input into the neural network model for training. As in the forward training, the initial feature vector of the reverse departure place, the initial feature vector of the reverse destination and the neural network parameters of each reverse sample are adjusted until the change value of the objective function of the neural network model is less than the preset threshold value, and the reverse feature vector of each reverse departure place and the reverse feature vector of each reverse destination are obtained.

[0199] Here, the replacement process for each travel sample obtained can be the following process: there is a predicted location A and a predicted location B that has a travel relationship with it. In the forward sample, the predicted location A is used as the sample departure point, and the predicted location B is used as the sample destination. Then in the reverse sample, the predicted location A is used as the sample destination, and the predicted location B is used as the sample departure point.

[0200] Further, after determining the reverse sample, step S4025 includes: determining the relationship feature vector of the feature prediction location corresponding to the sample departure location in each travel sample based on the predicted feature vector of the sample departure location in each travel sample and the reverse feature vector of the reverse destination in the corresponding reverse sample, and determining the relationship feature vector of the feature prediction location corresponding to the sample destination in each travel sample based on the predicted feature vector of the sample destination in each travel sample and the reverse feature vector of the reverse departure location in the corresponding reverse sample.

[0201] In this step, in each travel sample, the predicted feature vector corresponding to the sample departure place and the reverse feature vector of the reverse destination in the corresponding reverse sample are vector-concatenated to determine the relationship feature vector of the feature prediction place corresponding to the sample departure place in the travel sample; similarly, in each travel sample, the predicted feature vector corresponding to the sample destination and the reverse feature vector of the reverse destination in the corresponding reverse sample are vector-concatenated to determine the relationship feature vector of the feature prediction place corresponding to the sample destination in each travel sample.

[0202] Here, the relationship feature vector of each predicted location covers all travel relationships of the predicted location, so it is necessary to determine the predicted feature vector of the predicted location as the sample departure point and the reverse feature vector as the reverse destination. Vector splicing is performed to ensure that the formed predicted feature vector includes all information of the predicted location.

[0203] Furthermore, the reverse sample of each travel sample is determined, wherein each reverse sample includes the sample relationship, reverse departure point and reverse destination in the travel sample corresponding to the reverse sample, including: for each travel sample, determining the sample departure point in the travel sample as the reverse destination, and the sample destination in the travel sample as the reverse departure point; determining the sample including the determined reverse departure point, reverse destination and the sample relationship of the travel sample as the reverse sample corresponding to the travel sample.

[0204] In this step, for each travel sample, the sample departure point in the travel sample is taken as the reverse destination, and the sample destination is taken as the reverse departure point. The sample relationship in the sample remains unchanged, and the determined reverse departure point, reverse destination and the travel sample are formed into a reverse sample corresponding to the travel sample according to the sample format.

[0205] For example, in the travel sample (A, r, B), the predicted location A is the sample departure point, the predicted location B is the sample destination, and r is the sample relationship. Then when forming the reverse sample, the predicted location A is used as the reverse destination, and the predicted location B is used as the reverse departure point. The sample relationship r remains unchanged, so the reverse sample corresponding to the travel sample (A, r, B) is (B, r, A).

[0206] Further, the method of determining the relationship feature vector of the feature prediction location corresponding to the sample departure location in each travel sample based on the prediction feature vector of the sample departure location in each travel sample and the reverse feature vector of the reverse destination in the corresponding reverse sample, and determining the relationship feature vector of the feature prediction location corresponding to the sample destination in each travel sample based on the prediction feature vector of the sample destination in each travel sample and the reverse feature vector of the reverse departure location in the corresponding reverse sample, includes:

[0207] (1) For each travel sample, the predicted feature vector of the sample departure place in the travel sample and the reverse feature vector of the reverse destination in the reverse sample corresponding to the travel sample are concatenated, and the obtained concatenated vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample departure place in the travel sample.

[0208] In this step, for each travel sample, the predicted feature vector of the sample departure place in the sample and the reverse feature vector of the reverse destination in the reverse sample corresponding to the sample are vector-splicing, and the obtained splicing vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample departure place in the travel sample.

[0209] Here, for the sample departure point in the same travel sample and the reverse destination in the corresponding reverse sample, the predicted location, the predicted feature vector of the sample departure point and the reverse feature vector of the reverse destination can both represent the information of the predicted location, and the two need to be spliced.

[0210] When the predicted feature vector and the reverse feature vector are concatenated, the two may be concatenated directly, or the same features may be merged after analyzing the features contained in the two and then concatenated.

[0211] (2) Concatenate the predicted feature vector of the sample destination in the travel sample and the reverse feature vector of the reverse departure point in the reverse sample corresponding to the travel sample, and determine the obtained concatenated vector as the relationship feature vector of the feature prediction location corresponding to the sample destination in the travel sample.

[0212] In this step, similarly, for each travel sample, the predicted feature vector of the sample destination in the sample and the reverse feature vector of the reverse departure point in the reverse sample corresponding to the sample are vector-concatenated, and the obtained concatenated vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample destination in the travel sample.

[0213] Here, the sample destination in the same travel sample and the reverse departure point in the corresponding reverse sample are the same predicted location. The predicted feature vector of the sample destination and the reverse feature vector of the reverse departure point can both represent the information of the predicted location, and the two need to be spliced.

[0214] When the predicted feature vector and the reverse feature vector are concatenated, the two may be concatenated directly, or the same features may be merged after analyzing the features contained in the two and then concatenated.

[0215] The order type prediction method provided in the embodiment of the present application determines the travel origin and travel destination of the order to be predicted from the acquired order information of the order to be predicted; obtains the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination from a pre-constructed multi-relationship heterogeneous information model diagram of the travel area including the travel origin and the travel destination; determines the departure feature vector of the travel origin based on the travel origin information indicated in the order information; performs vector splicing on the determined departure feature vector and the first relationship feature vector, and determines the obtained splicing vector as the first predicted feature vector of the travel origin; determines the arrival feature vector of the travel destination based on the travel destination information indicated in the order information; performs vector splicing on the determined arrival feature vector and the second relationship feature vector, and determines the obtained splicing vector as the second predicted feature vector of the travel destination.

[0216] Compared with the order prediction method in the prior art, the travel origin and travel destination of the order to be predicted are determined, and the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination are determined from the pre-constructed multi-relationship heterogeneous information model diagram, and based on the first relationship feature vector and the second relationship feature vector, the first prediction feature vector of the travel origin and the second relationship feature vector of the travel destination are correspondingly determined, and then the order type of the order to be predicted is determined according to the first prediction feature vector and the second prediction feature vector. In this way, not only the amount of data processed in the prediction process can be reduced, but also the prediction feature vectors of the travel origin and the travel destination in the multi-relationship heterogeneous information model diagram can characterize the association between the travel relationships between each other, and contain rich multi-dimensional features, which helps to improve the efficiency of order type prediction and the accuracy of order prediction results.

[0217] See also Figure 5 , Figure 6 , Figure 5 This is one of the structural schematic diagrams of an order type prediction device provided in an embodiment of the present application, Figure 6 This is a second structural diagram of an order type prediction device provided in an embodiment of the present application. Figure 5 As shown in , the prediction device 500 includes:

[0218] The travel determination module 510 is used to determine the travel origin and travel destination of the order to be predicted from the acquired order information of the order to be predicted.

[0219] The vector acquisition module 520 is used to acquire the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination from a pre-constructed multi-relation heterogeneous information model diagram of the travel area including the travel origin and the travel destination.

[0220] The first vector determination module 530 is used to determine the first predicted feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and to determine the second predicted feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector.

[0221] The order prediction module 540 is used to determine the order type of the order to be predicted based on the first prediction feature vector and the second prediction feature vector.

[0222] Further, such as Figure 6 As shown, the prediction device 500 further includes a model graph construction module 550, and the model graph construction module 550 is used to:

[0223] Determining, from the travel data stored in the travel platform, a plurality of travel relationships in a travel area including the travel origin and the travel destination;

[0224] Determining a plurality of feature prediction locations in the travel area, wherein the plurality of feature prediction locations include the travel origin and the travel destination;

[0225] Based on the multiple feature prediction locations and the multiple travel relationships, determine multiple travel samples, wherein each travel sample includes a sample departure place, a sample destination, and a sample relationship between the sample departure place and the sample destination;

[0226] Input each travel sample into the constructed neural network model for training until the change value of the objective function of the neural network model is less than a preset threshold, and obtain the predicted feature vector of each sample departure place and the predicted feature vector of each sample destination;

[0227] Determine the predicted feature vector of each sample departure place as the relationship feature vector of the corresponding feature prediction place, and determine the predicted feature vector of each sample destination place as the relationship feature vector of the corresponding feature prediction place;

[0228] Based on each feature prediction location and the corresponding relationship feature vector, the multi-relationship heterogeneous information model graph is constructed.

[0229] Furthermore, when the model graph construction module 550 is used to determine a plurality of feature prediction locations in the travel area, the model graph construction module 550 is used to:

[0230] Determine a plurality of travel orders from the travel data, and determine a departure point and a destination of each travel order;

[0231] The determined multiple departure places and multiple destinations are determined as multiple characteristic prediction points in the travel area.

[0232] Furthermore, when the model graph construction module 550 is used to determine a plurality of feature prediction locations in the travel area, the model graph construction module 550 is used to:

[0233] Dividing the travel area into a plurality of sub-areas according to a preset area division condition, wherein the preset area division condition includes one or more of latitude and longitude, location category, and geographic information;

[0234] Based on the division information of each sub-region, a feature prediction location corresponding to each sub-region is determined.

[0235] Furthermore, the model graph construction module 550 is used to input each travel sample into the constructed neural network model for training, until the change value of the objective function of the neural network model is less than a preset threshold, and the predicted feature vector of each sample departure place and the predicted feature vector of each sample destination are obtained, the model graph construction module 550 is used to:

[0236] Determine a first initial feature vector of a sample departure place, a second initial feature vector of a sample destination, and a neural network parameter corresponding to the sample relationship in each travel sample;

[0237] The constructed neural network model is trained by taking the first initial feature vector in each travel sample as input, the second initial feature vector as output, and the neural network parameters as model parameters;

[0238] The first initial feature vector, the second initial feature vector and the neural network parameters in each travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold value, and each adjusted first initial feature vector is determined to be a predicted feature vector of the corresponding sample departure point, and each adjusted second initial feature vector is determined to be a predicted feature vector of the corresponding sample destination.

[0239] Furthermore, when the model graph construction module 550 is used to train the constructed neural network model by taking the first initial feature vector in each travel sample as input, the second initial feature vector as output, and the neural network parameters as model parameters, the model graph construction module 550 is used to:

[0240] For each travel sample, determine multiple negative samples of the travel sample, wherein each negative sample includes a sample departure place of the travel sample, a negative sample destination, and a sample relationship of the travel sample;

[0241] The first initial feature vector in the travel sample is used as input, the neural network parameters are used as model parameters, and the output destination is obtained through the constructed neural network model;

[0242] Determine the probability of going from the sample departure point of the travel sample to the output destination, the sample destination and each negative sample destination through the trained classifier;

[0243] The model graph construction module 550 is used to adjust the first initial feature vector, the second initial feature vector and the neural network parameters in each travel sample until the change value of the objective function of the neural network model is less than a preset threshold value, and each adjusted first initial feature vector is determined to be a predicted feature vector of the corresponding sample departure place, and each adjusted second initial feature vector is determined to be a predicted feature vector of the corresponding sample destination. The model graph construction module 550 is used to:

[0244] For each travel sample, the first initial feature vector, the second initial feature vector and the neural network parameters in the travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold, and the probability of going from the sample departure point of the travel sample to the sample destination is greater than the probability of going from the sample departure point of the travel sample to other destinations, and the adjusted first initial feature vector is determined as the predicted feature vector of the sample departure point in the travel sample, and the adjusted second initial feature vector is determined as the predicted feature vector of the sample destination in the travel sample, wherein the other destination is any one of the multiple negative sample destinations determined by the output destination.

[0245] Further, such as Figure 6 As shown, the prediction device 500 further includes a second vector determination module 560, and the second vector determination module 560 is used to:

[0246] Determine a reverse sample for each travel sample, wherein each reverse sample includes a sample relationship, a reverse departure point, and a reverse destination in the travel sample corresponding to the reverse sample;

[0247] Input each reverse sample into the neural network model for training respectively until the change value of the objective function of the neural network model is less than the preset threshold value, and obtain the reverse feature vector of each reverse departure point and the reverse feature vector of each reverse destination;

[0248] When the model graph construction module 550 is used to determine the predicted feature vector of each sample departure place as the relationship feature vector of the corresponding feature prediction place, and to determine the predicted feature vector of each sample destination as the relationship feature vector of the corresponding feature prediction place, the model graph construction module 550 is used to:

[0249] Based on the predicted feature vector of the sample departure place in each travel sample and the reverse feature vector of the reverse destination in the corresponding reverse sample, the relationship feature vector of the feature prediction place corresponding to the sample departure place in each travel sample is determined, and based on the predicted feature vector of the sample destination in each travel sample and the reverse feature vector of the reverse departure place in the corresponding reverse sample, the relationship feature vector of the feature prediction place corresponding to the sample destination in each travel sample is determined.

[0250] Further, when the second vector determination module 560 is used to determine the reverse sample of each travel sample, wherein each reverse sample includes a sample relationship, a reverse departure place, and a reverse destination in the travel sample corresponding to the reverse sample, the second vector determination module 560 is used to:

[0251] For each travel sample, determine that the sample departure point in the travel sample is the reverse destination, and the sample destination in the travel sample is the reverse departure point;

[0252] The sample including the determined reverse departure place, reverse destination and the sample relationship of the travel sample is determined as the reverse sample corresponding to the travel sample.

[0253] Further, when the second vector determination module 560 is used to determine the relationship feature vector of the feature prediction location corresponding to the sample departure location in each travel sample based on the prediction feature vector of the sample departure location in each travel sample and the reverse feature vector of the reverse destination in the corresponding reverse sample, and to determine the relationship feature vector of the feature prediction location corresponding to the sample destination in each travel sample based on the prediction feature vector of the sample destination in each travel sample and the reverse feature vector of the reverse departure location in the corresponding reverse sample, the second vector determination module 560 is used to:

[0254] For each travel sample, the predicted feature vector of the sample departure place in the travel sample and the reverse feature vector of the reverse destination in the reverse sample corresponding to the travel sample are concatenated, and the obtained concatenated vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample departure place in the travel sample;

[0255] The predicted feature vector of the sample destination in the travel sample and the reverse feature vector of the reverse departure point in the reverse sample corresponding to the travel sample are vector-concatenated, and the obtained concatenated vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample destination in the travel sample.

[0256] Further, when the first vector determination module 530 is used to determine the first predicted feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and to determine the second predicted feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector, the first vector determination module 530 is used to:

[0257] Determining a departure feature vector of the travel origin based on the travel origin information indicated in the order information;

[0258] Performing vector splicing on the determined departure feature vector and the first relationship feature vector, and determining the obtained splicing vector as the first predicted feature vector of the trip origin;

[0259] Determining an arrival feature vector of the travel destination based on the travel destination information indicated in the order information;

[0260] The determined arrival feature vector and the second relationship feature vector are concatenated, and the obtained concatenated vector is determined as the second predicted feature vector of the travel destination.

[0261] The order type prediction device provided in the embodiment of the present application determines the travel origin and travel destination of the order to be predicted from the acquired order information of the order to be predicted; obtains the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination from a pre-constructed multi-relationship heterogeneous information model diagram of the travel area including the travel origin and the travel destination; determines the first prediction feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and determines the second prediction feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector; determines the order type of the order to be predicted based on the first prediction feature vector and the second prediction feature vector.

[0262] Compared with the order prediction method in the prior art, the travel origin and travel destination of the order to be predicted are determined, and the first relationship feature vector of the travel origin and the second relationship feature vector of the travel destination are determined from the pre-constructed multi-relationship heterogeneous information model diagram, and based on the first relationship feature vector and the second relationship feature vector, the first prediction feature vector of the travel origin is correspondingly determined, and the second relationship feature vector of the travel destination is determined, and then the order type of the order to be predicted is determined according to the first prediction feature vector and the second prediction feature vector. In this way, not only the amount of data processed in the prediction process can be reduced, but also the prediction feature vectors of the travel origin and the travel destination in the multi-relationship heterogeneous information model diagram can characterize the association between the travel relationships between each other, and contain rich multi-dimensional features, which helps to improve the efficiency of order type prediction and the accuracy of order prediction results.

[0263] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown in , the electronic device 700 includes a processor 710 , a memory 720 and a bus 730 .

[0264] The memory 720 stores machine-readable instructions executable by the processor 710. When the electronic device 700 is running, the processor 710 communicates with the memory 720 via the bus 730. When the machine-readable instructions are executed by the processor 710, the above-mentioned Figure 2 as well as Figure 4The steps of the method for predicting the order type in the method embodiment shown, and the specific implementation method thereof can be found in the method embodiment, which will not be described in detail here.

[0265] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 2 as well as Figure 4 The steps of the method for predicting the order type in the method embodiment shown, and the specific implementation method thereof can be found in the method embodiment, which will not be described in detail here.

[0266] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0267] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units 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, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0268] The units described as separate components may or may not be physically separated, and the components shown as units 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.

[0269] 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.

[0270] 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 can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a 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 a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0271] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for predicting order types, It is characterized in that The prediction method comprises: Determine the travel origin and travel destination of the order to be predicted from the acquired order information of the order to be predicted, wherein the order information of the order to be predicted includes the travel origin, travel destination and travel time period corresponding to the order; From a pre-constructed multi-relation heterogeneous information model graph of a travel area including the travel origin and the travel destination, a first relation feature vector of the travel origin and a second relation feature vector of the travel destination are obtained, wherein the multi-relation heterogeneous information model graph is constructed by the following steps: from travel data stored in a travel platform, a plurality of travel relations in the travel area including the travel origin and the travel destination are determined; a plurality of feature prediction locations in the travel area are determined, wherein the plurality of feature prediction locations include the travel origin and the travel destination; and the multi-relation heterogeneous information model graph is constructed based on the plurality of feature prediction locations and the plurality of travel relations; Determine a first prediction feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and determine a second prediction feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector; Based on the first prediction feature vector and the second prediction feature vector, an order type of the order to be predicted is determined.

2. The prediction method according to claim 1, It is characterized in that The constructing the multi-relation heterogeneous information model graph based on the multiple feature predicted locations and the multiple travel relationships includes: Determine a plurality of travel samples based on the plurality of feature predicted locations and the plurality of travel relationships, wherein each travel sample includes a sample departure location, a sample destination, and a sample relationship between the sample departure location and the sample destination; Input each travel sample into the constructed neural network model for training until the change value of the objective function of the neural network model is less than a preset threshold, and obtain the predicted feature vector of each sample departure place and the predicted feature vector of each sample destination; Determine the predicted feature vector of each sample departure place as the relationship feature vector of the corresponding feature prediction place, and determine the predicted feature vector of each sample destination place as the relationship feature vector of the corresponding feature prediction place; Based on each feature prediction location and the corresponding relationship feature vector, the multi-relationship heterogeneous information model graph is constructed.

3. The prediction method according to claim 2, It is characterized in that The determining of a plurality of feature prediction locations in the travel area comprises: Determine a plurality of travel orders from the travel data, and determine a departure point and a destination of each travel order; The determined multiple departure places and multiple destinations are determined as multiple characteristic prediction points in the travel area.

4. The prediction method according to claim 2, It is characterized in that The determining of a plurality of feature prediction locations in the travel area comprises: Dividing the travel area into a plurality of sub-areas according to a preset area division condition, wherein the preset area division condition includes one or more of latitude and longitude, location category, and geographic information; Based on the division information of each sub-region, a feature prediction location corresponding to each sub-region is determined.

5. The prediction method according to claim 2, It is characterized in that The method of inputting each travel sample into the constructed neural network model for training until the change value of the objective function of the neural network model is less than a preset threshold value, and obtaining the predicted feature vector of each sample departure place and each sample destination, includes: Determine a first initial feature vector of a sample departure place, a second initial feature vector of a sample destination, and a neural network parameter corresponding to the sample relationship in each travel sample; The constructed neural network model is trained by taking the first initial feature vector in each travel sample as input, the second initial feature vector as output, and the neural network parameters as model parameters; The first initial feature vector, the second initial feature vector and the neural network parameters in each travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold value, and each adjusted first initial feature vector is determined to be a predicted feature vector of the corresponding sample departure point, and each adjusted second initial feature vector is determined to be a predicted feature vector of the corresponding sample destination.

6. The prediction method according to claim 5, It is characterized in that The first initial feature vector in each travel sample is used as input, the second initial feature vector is used as output, and the neural network parameter is used as the model parameter to train the constructed neural network model, including: For each travel sample, determine multiple negative samples of the travel sample, wherein each negative sample includes a sample departure place of the travel sample, a negative sample destination, and a sample relationship of the travel sample; The first initial feature vector in the travel sample is used as input, the neural network parameters are used as model parameters, and the output destination is obtained through the constructed neural network model; Determine the probability of going from the sample departure point of the travel sample to the output destination, the sample destination and each negative sample destination through the trained classifier; The first initial feature vector, the second initial feature vector and the neural network parameter in each travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold value, and each adjusted first initial feature vector is determined as a predicted feature vector of the corresponding sample departure place, and each adjusted second initial feature vector is determined as a predicted feature vector of the corresponding sample destination, including: For each travel sample, the first initial feature vector, the second initial feature vector and the neural network parameters in the travel sample are adjusted until the change value of the objective function of the neural network model is less than a preset threshold, and the probability of going from the sample departure point of the travel sample to the sample destination is greater than the probability of going from the sample departure point of the travel sample to other destinations, and the adjusted first initial feature vector is determined as the predicted feature vector of the sample departure point in the travel sample, and the adjusted second initial feature vector is determined as the predicted feature vector of the sample destination in the travel sample, wherein the other destination is the output destination and any one of the multiple determined negative sample destinations.

7. The prediction method according to claim 2, It is characterized in that After determining a plurality of travel samples based on the plurality of feature prediction locations and the plurality of travel relationships, wherein each travel sample includes a sample departure location, a sample destination, and a sample relationship between the sample departure location and the sample destination, the prediction method includes: Determine a reverse sample for each travel sample, wherein each reverse sample includes a sample relationship, a reverse departure point, and a reverse destination in the travel sample corresponding to the reverse sample; Input each reverse sample into the neural network model for training respectively until the change value of the objective function of the neural network model is less than the preset threshold value, and obtain the reverse feature vector of each reverse departure point and the reverse feature vector of each reverse destination; The step of determining the predicted feature vector of each sample departure place as the relationship feature vector of the corresponding feature prediction place, and determining the predicted feature vector of each sample destination place as the relationship feature vector of the corresponding feature prediction place includes: Based on the predicted feature vector of the sample departure place in each travel sample and the reverse feature vector of the reverse destination in the corresponding reverse sample, the relationship feature vector of the feature prediction place corresponding to the sample departure place in each travel sample is determined, and based on the predicted feature vector of the sample destination in each travel sample and the reverse feature vector of the reverse departure place in the corresponding reverse sample, the relationship feature vector of the feature prediction place corresponding to the sample destination in each travel sample is determined.

8. The prediction method according to claim 7, It is characterized in that The determining of the reverse sample of each travel sample, wherein each reverse sample includes a sample relationship, a reverse departure place and a reverse destination in the travel sample corresponding to the reverse sample, comprises: For each travel sample, determine that the sample departure point in the travel sample is the reverse destination, and the sample destination in the travel sample is the reverse departure point; The sample including the determined reverse departure place, reverse destination and the sample relationship of the travel sample is determined as the reverse sample corresponding to the travel sample.

9. The prediction method according to claim 7, It is characterized in that The method of determining a relationship feature vector of a feature prediction location corresponding to the sample departure location in each travel sample based on the prediction feature vector of the sample departure location in each travel sample and the reverse feature vector of the reverse destination in the corresponding reverse sample, and determining a relationship feature vector of a feature prediction location corresponding to the sample destination in each travel sample based on the prediction feature vector of the sample destination in each travel sample and the reverse feature vector of the reverse departure location in the corresponding reverse sample, includes: For each travel sample, the predicted feature vector of the sample departure place in the travel sample and the reverse feature vector of the reverse destination in the reverse sample corresponding to the travel sample are concatenated, and the obtained concatenated vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample departure place in the travel sample; The predicted feature vector of the sample destination in the travel sample and the reverse feature vector of the reverse departure point in the reverse sample corresponding to the travel sample are vector-concatenated, and the obtained concatenated vector is determined as the relationship feature vector of the feature prediction location corresponding to the sample destination in the travel sample.

10. The prediction method according to claim 1, It is characterized in that The step of determining a first prediction feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and determining a second prediction feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector, comprises: Determining a departure feature vector of the travel origin based on the travel origin information indicated in the order information; Performing vector splicing on the determined departure feature vector and the first relationship feature vector, and determining the obtained splicing vector as the first predicted feature vector of the trip origin; Determining an arrival feature vector of the travel destination based on the travel destination information indicated in the order information; The determined arrival feature vector and the second relationship feature vector are concatenated, and the obtained concatenated vector is determined as the second predicted feature vector of the travel destination.

11. A device for predicting order types, It is characterized in that The prediction device comprises: A travel determination module, used to determine the travel origin and travel destination of the order to be predicted from the acquired order information of the order to be predicted, wherein the order information of the order to be predicted includes the travel origin, travel destination and travel time period corresponding to the order; A vector acquisition module, used to acquire a first relational feature vector of the travel origin and a second relational feature vector of the travel destination from a pre-constructed multi-relational heterogeneous information model diagram of a travel area including the travel origin and the travel destination; A model graph construction module is used to determine, from the travel data stored in the travel platform, a plurality of travel relations in a travel area including the travel origin and the travel destination; determine a plurality of feature prediction locations in the travel area, wherein the plurality of feature prediction locations include the travel origin and the travel destination; and construct the multi-relation heterogeneous information model graph based on the plurality of feature prediction locations and the plurality of travel relations; a first vector determination module, configured to determine a first predicted feature vector of the travel origin based on the travel origin information indicated in the order information and the first relationship feature vector, and to determine a second predicted feature vector of the travel destination based on the travel destination information indicated in the order information and the second relationship feature vector; An order prediction module is used to determine the order type of the order to be predicted based on the first prediction feature vector and the second prediction feature vector.

12. The prediction device according to claim 11, It is characterized in that The model graph construction module is further used to determine a plurality of travel samples based on the plurality of feature prediction locations and the plurality of travel relationships, wherein each travel sample includes a sample departure location, a sample destination, and a sample relationship between the sample departure location and the sample destination; Input each travel sample into the constructed neural network model for training until the change value of the objective function of the neural network model is less than a preset threshold, and obtain the predicted feature vector of each sample departure place and the predicted feature vector of each sample destination; Determine the predicted feature vector of each sample departure place as the relationship feature vector of the corresponding feature prediction place, and determine the predicted feature vector of each sample destination place as the relationship feature vector of the corresponding feature prediction place; Based on each feature prediction location and the corresponding relationship feature vector, the multi-relationship heterogeneous information model graph is constructed.

13. An electronic device, It is 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 order type prediction method as described in any one of claims 1 to 10.

14. A computer-readable storage medium, It is 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 order type prediction method according to any one of claims 1 to 10 are executed.