Online car-hailing order sending method and device, computer equipment and storage medium
By acquiring and analyzing orders from online ride-hailing platforms, and using the improved Transformer model to calculate matching scores, multi-platform resource sharing and reasonable scheduling are achieved, solving the problem of wasted online ride-hailing resources and improving utilization and service quality.
Patent Information
- Application Number
- CN202411001543.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Existing online car-hailing platforms are fragmented, resulting in a waste of online car-hailing resources. How to realize multi-platform resource sharing and reasonable scheduling to improve utilization is an urgent problem that needs to be solved.
By obtaining orders from various online ride-hailing platforms, the order dispatching parameters, such as commission ratio, driver distance and unit price, are determined. The improved Transformer model is used to calculate the matching score and the most suitable driver is selected for order dispatch.
It achieves efficient integration of multi-platform resources and reasonable allocation of orders, improves the utilization of online ride-hailing resources, and improves service quality and operational efficiency.
Smart Images

Figure CN118552003A
Abstract
Description
Technical Field
[0001] The present application relates to the field of traffic big data technology, and in particular to a method, device, computer equipment and storage medium for dispatching online ride-hailing vehicles. Background Art
[0002] With the development of the online car-hailing industry, multiple online car-hailing traffic platforms have emerged on the market. Each online car-hailing traffic platform operates independently and uses its own dispatching method to dispatch orders, resulting in a huge waste of online car-hailing resources. Therefore, how to achieve resource sharing and reasonable dispatch of multiple online car-hailing traffic platforms to improve the utilization rate of online car-hailing resources is a technical problem that needs to be solved urgently. Summary of the invention
[0003] In order to achieve resource sharing and reasonable scheduling of multiple online ride-hailing traffic platforms, thereby improving the utilization rate of online ride-hailing resources, the present application provides an online ride-hailing dispatching method, device, computer equipment and storage medium.
[0004] The above-mentioned invention objective of the present application is achieved through the following technical solutions: Obtain online ride-hailing orders received by various online ride-hailing traffic platforms; Determine the dispatch parameters of the online car-hailing order, wherein the dispatch parameters include the commission rate corresponding to the online car-hailing traffic platform that receives the online car-hailing order, and the driving distance and estimated fare unit price corresponding to each candidate driver in the candidate driver set of the online car-hailing order; Determine a matching score between each candidate driver and the online car-hailing order according to the dispatching parameters; According to the matching score of each candidate driver, a target driver is determined from the candidate driver set, and the online car-hailing order is assigned to the target driver.
[0005] By adopting the above technical solution, resource sharing and reasonable scheduling of multiple online ride-hailing traffic platforms are achieved, thereby improving the utilization rate of online ride-hailing resources.
[0006] In one example, the present application may be further configured as follows: determining the matching score between each candidate driver and the online car-hailing order according to the dispatching parameters includes: The matching score between each candidate driver and the online car-hailing order is determined based on the dispatching parameters through the trained score model.
[0007] By adopting the above technical solution, the matching score can be determined quickly and accurately based on the dispatching parameters.
[0008] In one example, the present application may be further configured as follows: the trained score model includes a trained improved Transformer model.
[0009] By adopting the above technical solution, the trained improved Transformer model has higher accuracy in matching score calculation applications.
[0010] In one example, the present application may be further configured as follows: determining the matching score between each candidate driver and the online car-hailing order according to the dispatching parameters through the trained score model, including: The dispatching parameters are input into the trained improved Transformer model, and the commission ratio, the driver-passenger distance and the estimated fare unit price corresponding to each candidate driver are weighted respectively through each attention head of the trained improved Transformer model to obtain a first weight and a first representation coefficient of the commission ratio, a second weight and a second representation coefficient of the driver-passenger distance corresponding to each candidate driver, and a third weight and a third representation coefficient of the estimated fare unit price corresponding to each candidate driver; According to the first weight and the first representation coefficient, the second weight and the second representation coefficient, and the third weight and the third representation coefficient, the commission ratio and the driving distance and the estimated fare unit price corresponding to each candidate driver are weightedly summed to obtain a matching score between each candidate driver and the online car-hailing order.
[0011] By adopting the above technical solution, the dispatch parameters can be weighted and processed through the trained improved Transformer model, so that the weights and representation coefficients of different indicators in the dispatch parameters are adjusted to appropriate proportions, thereby improving the accuracy and reliability of the matching score.
[0012] In one example, the present application may be further configured as follows: determining a target driver from the set of candidate drivers according to the matching score of each candidate driver includes: Comparing the matching score of each candidate driver to obtain a comparison result; According to the comparison result, a target driver is determined from the set of candidate drivers.
[0013] By adopting the above technical solution, the flexibility, fairness and reliability of online car-hailing dispatching can be improved.
[0014] In one example, the present application may be further configured as follows: determining the dispatching parameters of the online car-hailing order includes: Determine the dispatch parameters of the online car-hailing order based on the detailed information carried by the online car-hailing order.
[0015] By adopting the above technical solution, a comprehensive and accurate basis can be provided for online car-hailing dispatching.
[0016] In one example, the present application may be further configured as follows: before obtaining the online car-hailing orders received by each online car-hailing traffic platform, it also includes: Enhance the attention mechanism of the preset Transformer model to obtain an improved Transformer model; The improved Transformer model is trained according to the historical dispatching parameters of preset historical online car-hailing orders and their corresponding historical matching scores to obtain the trained improved Transformer model.
[0017] By adopting the above technical solution, the training speed and training accuracy can be improved, thereby improving the performance and adaptability of the trained improved Transformer model in adjusting the weights of dispatching parameters.
[0018] The second object of the invention is achieved by the following technical solutions: A network-hailing car dispatching device, the network-hailing car dispatching device comprising: The acquisition module is used to obtain the online car-hailing orders received by each online car-hailing traffic platform; A first determination module is used to determine the dispatching parameters of the online car-hailing order, wherein the dispatching parameters include the commission ratio corresponding to the online car-hailing traffic platform that receives the online car-hailing order, and the driving distance and estimated fare unit price corresponding to each candidate driver in the candidate driver set of the online car-hailing order; A second determination module is used to determine a matching score between each candidate driver and the online car-hailing order according to the dispatching parameters; A dispatching module is used to determine a target driver from the candidate driver set according to the matching score of each candidate driver, and dispatch the online car-hailing order to the target driver.
[0019] The third objective of the present application is achieved through the following technical solutions: A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned online car-hailing dispatching method when executing the computer program.
[0020] The fourth objective of the present application is achieved through the following technical solutions: A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned online car-hailing dispatching method.
[0021] In summary, this application includes the following beneficial technical effects: The online car-hailing comprehensive service platform uses dispatch parameters to uniformly assign suitable drivers to online car-hailing orders from multiple online car-hailing traffic platforms, thereby achieving efficient integration of online car-hailing resources from multiple online car-hailing traffic platforms and reasonable dispatch of online car-hailing orders from multiple online car-hailing traffic platforms, ensuring that online car-hailing orders can be responded to quickly and improving the flexibility, fairness, reliability and efficiency of dispatching online car-hailing orders from multiple online car-hailing traffic platforms. In this way, the sharing and reasonable dispatch of online car-hailing resources are strengthened, thereby improving the utilization rate of online car-hailing resources, which not only helps to optimize the quality of online car-hailing services to enhance the satisfaction of passengers, drivers and other users, but also improves the operating level of the online car-hailing comprehensive service platform and ensures the operating income of the online car-hailing comprehensive service platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of a method for dispatching online car-hailing orders provided in an embodiment of the present application; Figure 2 Another schematic diagram of a process for dispatching online car-hailing orders provided in an embodiment of the present application; Figure 3 An example diagram of an application scenario of a method for dispatching online car-hailing orders provided in an embodiment of the present application; Figure 4 A schematic block diagram of an online car-hailing dispatching device provided in an embodiment of the present application; Figure 5 The present invention is a block diagram showing the structure of a computer device according to an embodiment of the present application.
[0023] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0026] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0027] It should be further understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0028] The embodiments of the present application provide a method, device, computer equipment and storage medium for dispatching online car-hailing orders. In the method, the online car-hailing order dispatching method is to uniformly assign suitable drivers to online car-hailing orders from multiple online car-hailing traffic platforms by using dispatching parameters by the online car-hailing comprehensive service platform, thereby realizing efficient integration of online car-hailing resources from multiple online car-hailing traffic platforms, and realizing reasonable dispatching of online car-hailing orders from multiple online car-hailing traffic platforms, ensuring that online car-hailing orders can be responded to quickly, and improving the flexibility, fairness, reliability and efficiency of dispatching online car-hailing orders from multiple online car-hailing traffic platforms. In this way, the sharing and reasonable dispatching of online car-hailing resources are strengthened, thereby improving the utilization rate of online car-hailing resources, which not only helps to optimize the quality of online car-hailing services to improve the satisfaction of users such as passengers and drivers, but also can improve the operation level of the online car-hailing comprehensive service platform and ensure the operation income of the online car-hailing comprehensive service platform.
[0029] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0030] Please refer to Figure 1 , Figure 1 A flowchart of a method for dispatching online car-hailing orders provided in an embodiment of the present application. The method for dispatching online car-hailing orders is mainly applied to computer devices, such as PCs (Personal Computers) or servers and other terminal devices with data processing functions.
[0031] Among them, the server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN), as well as big data and data analysis platforms.
[0032] like Figure 1 As shown, the online car-hailing order dispatching method includes steps S101 to S104.
[0033] Step S101, obtaining the online car-hailing orders received by each online car-hailing traffic platform.
[0034] Among them, the computer equipment carries an online car-hailing integrated service platform. The online car-hailing integrated service platform is used to integrate the online car-hailing resources of multiple online car-hailing traffic platforms, and realize the unified dispatch and supervision of online car-hailing orders received by multiple online car-hailing traffic platforms. The online car-hailing traffic platform can be a taxi-hailing software (such as Didi Chuxing software, AutoNavi Map taxi-hailing software, etc.), or a taxi-hailing applet (such as Meituan taxi-hailing applet, WeChat taxi-hailing applet, etc.).
[0035] The online car-hailing comprehensive service platform can obtain the online car-hailing orders received by each online car-hailing traffic platform in real time through an interface connected to the online car-hailing traffic platform.
[0036] Step S102, determine the dispatch parameters of the online car-hailing order, which include the commission rate corresponding to the online car-hailing traffic platform that receives the online car-hailing order, and the driving distance and estimated unit price corresponding to each candidate driver in the candidate driver set of the online car-hailing order.
[0037] For any online car-hailing order from various online car-hailing traffic platforms, the online car-hailing integrated service platform must first determine the dispatch parameters of the online car-hailing order, which include but are not limited to the commission rate corresponding to the online car-hailing traffic platform that receives the online car-hailing order, and the driving distance and estimated fare unit price corresponding to each candidate driver in the candidate driver set of the online car-hailing order. It can be understood that the commission rate refers to the profit rate that the online car-hailing integrated service platform can give to the online car-hailing traffic platform that receives the online car-hailing order.
[0038] In one embodiment, the dispatching parameters of the online car-hailing order may be determined by determining the dispatching parameters of the online car-hailing order based on detailed information carried by the online car-hailing order.
[0039] The detailed information carried by online ride-hailing orders mainly includes the source identification of the online ride-hailing order, order number, passenger information, ride starting point and ride end point, etc.
[0040] Exemplarily, the source identifier can be extracted from the detailed information, matched with a preset database, and the pre-stored online ride-hailing traffic platform identifier that is consistent with the source identifier can be found in the preset database. Based on the mapping relationship between the pre-stored online ride-hailing traffic platform identifiers and the pre-stored commission ratios in the preset database, the pre-stored commission ratio corresponding to the pre-stored online ride-hailing traffic platform identifier that is consistent with the source identifier can be determined, and the determined pre-stored commission ratio can be used as the commission ratio corresponding to the online ride-hailing traffic platform for the online ride-hailing order.
[0041] It can be understood that the preset database has good maintainability and scalability, and the preset database can be updated according to actual needs.
[0042] For example, the starting point of the ride can be extracted from the detailed information, so as to determine the candidate driver according to the distance between the starting point of the ride and the driver. For example, all drivers who are not assigned orders within a radius of 3 kilometers from the starting point of the ride are determined as candidate drivers, and these candidate drivers constitute a candidate driver set. The actual distance between the position of each candidate driver in the candidate driver set and the starting point of the ride (defined as the driver-passenger distance) is determined respectively.
[0043] For example, the starting point and the end point of the ride can be extracted from the detailed information, so as to calculate the mileage of the online car-hailing order based on the starting point and the end point of the ride. It is also possible to determine the estimated travel cost for each candidate driver in the candidate driver set based on the driving distance corresponding to each candidate driver in the candidate driver set. Thus, based on the estimated travel cost for each candidate driver in the candidate driver set and the mileage, the estimated unit price of the cost for each candidate driver in the candidate driver set is determined.
[0044] In this way, a comprehensive and accurate basis can be provided for the dispatch of online car-hailing orders.
[0045] Step S103, determining the matching score between each candidate driver and the online car-hailing order based on the dispatching parameters.
[0046] Afterwards, based on the dispatch parameters, the matching score between each candidate driver in the candidate driver set and the online ride-hailing order is determined.
[0047] In one embodiment, in order to determine a more accurate matching score, step S103 may be to determine the matching score between each candidate driver and the online car-hailing order according to the dispatch parameters through a trained score model.
[0048] The dispatch parameters can be analyzed through the trained score model to quickly determine the matching score between each candidate driver in the candidate driver set and the online ride-hailing order.
[0049] In one embodiment, the trained score model includes a trained improved Transformer model.
[0050] like Figure 2 As shown, before step S101, steps S105 to S106 are included.
[0051] Step S105, enhancing the attention mechanism of the preset Transformer model to obtain an improved Transformer model.
[0052] The Transformer model is an advanced neural network model for natural language processing tasks. The Transformer model includes multiple attention heads and multi-layer neural networks.
[0053] Considering that the Transformer model completely relies on the attention mechanism of each attention head to calculate the representation of its input and output, the original attention mechanism of each attention head of the Transformer model is enhanced to obtain an improved Transformer model.
[0054] Step S106, training the improved Transformer model according to the historical dispatching parameters of the preset historical online car-hailing orders and their corresponding historical matching scores to obtain a trained improved Transformer model.
[0055] The improved Transformer model with enhanced attention can be trained according to the historical dispatching parameters of preset historical online ride-hailing orders and their corresponding historical matching scores.
[0056] Specifically, the historical dispatch parameters can be input into the improved Transformer model, so that the enhanced attention mechanism of each attention head of the improved Transformer model can perform weight adjustment training on the historical dispatch parameters, and obtain the importance of the historical commission ratio, historical driver-passenger distance and historical fare unit price in the historical dispatch parameters between different attention heads, thereby generating the weight and representation coefficient corresponding to the historical commission ratio, the weight and representation coefficient corresponding to the historical driver-passenger distance, and the weight and representation coefficient corresponding to the historical fare unit price according to the importance. Among them, the weight corresponding to the historical commission ratio, the weight corresponding to the historical driver-passenger distance and the weight corresponding to the historical fare unit price are all normalized by the softmax function. It can be understood that the historical commission ratio The higher the ratio, the smaller the representation coefficient of the historical commission ratio; the weight corresponding to the historical commission ratio is multiplied by the representation coefficient to obtain the weighted value corresponding to the historical commission ratio, the weight corresponding to the historical driver-passenger distance is multiplied by the representation coefficient to obtain the weighted value corresponding to the historical driver-passenger distance, and the weight corresponding to the historical fee unit price is multiplied by the representation coefficient to obtain the weighted value corresponding to the historical fee unit price; the weighted value corresponding to the historical commission ratio, the weighted value corresponding to the historical driver-passenger distance, and the weighted value corresponding to the historical fee unit price are summed up to obtain the predicted comprehensive weight; the predicted comprehensive weight is processed by the activation function (such as sigmoid or softmax) of the MLP (multi-layer perceptron) of the improved Transformer model to obtain the predicted matching score corresponding to the historical online car-hailing orders. Finally, according to the loss between the predicted matching score and the historical matching score, the parameters of the improved Transformer model are iteratively updated until the number of iterations reaches the preset threshold, and the trained improved Transformer model is obtained.
[0057] It should be noted that the sum of the weights corresponding to the historical commission ratio, the weights corresponding to the historical driver-passenger distance, and the weights corresponding to the historical fare unit price is equal to 1.
[0058] The enhanced attention mechanism of the improved Transformer model can effectively focus the attention on historical dispatch parameters and target them for training, thereby improving the training speed and accuracy, and improving the performance and adaptability of the trained improved Transformer model in adjusting the weights of dispatch parameters.
[0059] It is understandable that the historical dispatch parameters may also include historical indicators such as the scores, orders received and / or order completion volume corresponding to the historical order-taking drivers. Then, when the historical dispatch parameters also include other historical indicators, the corresponding weights and representation coefficients can be generated for other historical indicators when training the improved Transformer model after attention enhancement to obtain the weighted values corresponding to other historical indicators, thereby adding the weighted values corresponding to other historical indicators to the sum calculation, so that the predicted comprehensive weight covers the weighted values corresponding to other historical indicators, and then the predicted matching score takes into account the importance of other historical indicators.
[0060] In this way, the trained improved Transformer model can be used to adjust the weights and perform weighted summation on the dispatch parameters of online ride-hailing orders, thereby determining the matching score between each candidate driver in the candidate driver set and the online ride-hailing order.
[0061] In one embodiment, the matching score between each candidate driver and the online ride-hailing order is determined according to the dispatch parameters through the trained score model. The dispatch parameters are input into the trained improved Transformer model, and the commission ratio and the driver-rider distance and the estimated fare unit price corresponding to each candidate driver are weighted adjusted through each attention head of the trained improved Transformer model to obtain a first weight and a first representation coefficient of the commission ratio, a second weight and a second representation coefficient of the driver-rider distance corresponding to each candidate driver, and a third weight and a third representation coefficient of the estimated fare unit price corresponding to each candidate driver; according to the first weight and the first representation coefficient, the second weight and the second representation coefficient, and the third weight and the third representation coefficient, the commission ratio and the driver-rider distance and the estimated fare unit price corresponding to each candidate driver are weightedly summed to obtain the matching score between each candidate driver and the online ride-hailing order.
[0062] Specifically, the commission ratio, the driver-passenger distance corresponding to each candidate driver, and the estimated fare unit price in the dispatch parameters of the online car-hailing order are input into the trained improved Transformer model, so that the enhanced attention mechanism of each attention head of the improved Transformer model adjusts the weights of the dispatch parameters to obtain the first weight and the first representation coefficient of the commission ratio, the second weight and the second representation coefficient of the driver-passenger distance corresponding to each candidate driver, and the third weight and the third representation coefficient of the estimated fare unit price corresponding to each candidate driver, wherein the first weight, the second weight, and the third weight are all normalized by the softmax function; the first weight of the commission ratio is multiplied by the first representation coefficient to obtain the commission ratio. The first weighted value corresponding to the method is calculated, and the second weight of the driver-passenger distance corresponding to each candidate driver is multiplied by the second representation coefficient to obtain the second weighted value of the driver-passenger distance corresponding to each candidate driver, and the third weight of the estimated fare unit price corresponding to each candidate driver is multiplied by the third representation coefficient to obtain the third weighted value of the estimated fare unit price corresponding to each candidate driver; the first weighted value is summed with the second weighted value of the driver-passenger distance corresponding to each candidate driver and the third weighted value of the estimated fare unit price to obtain the comprehensive weight of each candidate driver; finally, the comprehensive weight of each candidate driver is processed by improving the activation function of the MLP (multi-layer perceptron) of the Transformer model, and the matching score between each candidate driver and the online car-hailing order is output.
[0063] For example, if the first weight of the commission ratio is w1 and the first expression coefficient is R1, the second weight of the driving distance corresponding to any candidate driver is w2 and the second expression coefficient is R2, and the third weight of the estimated unit price is w3 and the third expression coefficient is R3, then the comprehensive weight R of the candidate driver is: R=R1w1+R2w2+R3w3, where w1+w2+w3=1.
[0064] It should be noted that the higher the commission rate, the smaller the first representation coefficient corresponding to the commission rate.
[0065] It is understandable that when the dispatch parameters of online car-hailing orders also include other indicators (such as the corresponding scores of candidate drivers and the number of orders and orders, etc.), the comprehensive weight of the candidate driver is R=R1w1+R2w2+R3w3+…+R n w n , where R1, R2, …, R n Indicates the coefficients corresponding to the n indicators in the dispatch parameter, w1, w2, ..., w n represents the weights corresponding to the n indicators in the dispatching parameters, and w1+w2+…+w n =1.
[0066] In this way, the dispatch parameters are weighted and processed through the trained improved Transformer model, so that the weights and representation coefficients of different indicators in the dispatch parameters are adjusted to appropriate proportions, thereby improving the accuracy and reliability of the matching score.
[0067] Step S104, determining a target driver from the candidate driver set based on the matching score of each candidate driver, and assigning the online car-hailing order to the target driver.
[0068] Furthermore, a target driver is selected from the candidate driver set according to the matching score of each candidate driver in the candidate driver set.
[0069] In one embodiment, step S104 may be to compare the matching score of each candidate driver to obtain a comparison result; and determine the target driver from the candidate driver set based on the comparison result.
[0070] For example, the matching score of each candidate driver in the candidate driver set and the online car-hailing order can be compared, and the candidate driver with the highest matching score can be selected as the target driver. A candidate driver can also be randomly selected from the top M candidate drivers with the highest matching scores as the target driver, where the value of N can be flexibly set according to actual needs.
[0071] Finally, the online ride-hailing orders are assigned to the target drivers, which can improve the flexibility, fairness and reliability of online ride-hailing dispatching.
[0072] like Figure 3 As shown, Figure 3 This is an example diagram of an application scenario. In order to better understand the above embodiment, Figure 3 The following are some application scenarios: The online car-hailing comprehensive service platform obtains the online car-hailing orders received by online car-hailing traffic platforms such as Didi Chuxing, Meituan Taxi, and AutoNavi Taxi in real time through the interface connected to online car-hailing traffic platforms such as Didi Chuxing, Meituan Taxi, and AutoNavi Taxi; taking the online car-hailing order received by Didi Chuxing as an example, the dispatching parameters corresponding to the online car-hailing order are determined, and the dispatching parameters include the corresponding commission ratio of Didi Chuxing, and the driver-passenger distance and estimated fare unit price corresponding to each candidate driver in the candidate driver set of the online car-hailing order; the dispatching parameters of the online car-hailing order are weighted and weighted through the trained improved Transformer model to obtain the comprehensive weight of each candidate driver, and according to the comprehensive weight of each candidate driver, the matching score of each candidate driver and the online car-hailing order is obtained; finally, according to the matching score of each candidate driver, the target driver is selected from the candidate driver set for the online car-hailing order, and the online car-hailing order is dispatched to the target driver. In this way, the reasonable dispatch of online car-hailing orders from Didi Chuxing is realized.
[0073] The online car-hailing order dispatching method provided in the above embodiment comprises the following steps: an online car-hailing integrated service platform obtains online car-hailing orders received by various online car-hailing traffic platforms; determines dispatching parameters for the online car-hailing orders, the dispatching parameters including the commission ratio corresponding to the online car-hailing traffic platform that receives the online car-hailing order, and the driver-rider distance and estimated fare unit price corresponding to each candidate driver in the candidate driver set for the online car-hailing order; determines the matching score between each candidate driver and the online car-hailing order based on the dispatching parameters; determines the target driver from the candidate driver set based on the matching score of each candidate driver, and dispatches the online car-hailing order to the target driver. The online car-hailing comprehensive service platform uses dispatch parameters to uniformly assign suitable drivers to online car-hailing orders from multiple online car-hailing traffic platforms, thereby achieving efficient integration of online car-hailing resources from multiple online car-hailing traffic platforms and reasonable dispatch of online car-hailing orders from multiple online car-hailing traffic platforms, ensuring that online car-hailing orders can be responded to quickly and improving the flexibility, fairness, reliability and efficiency of dispatching online car-hailing orders from multiple online car-hailing traffic platforms. In this way, the sharing and reasonable dispatch of online car-hailing resources are strengthened, thereby improving the utilization rate of online car-hailing resources, which not only helps to optimize the quality of online car-hailing services to enhance the satisfaction of passengers, drivers and other users, but also improves the operating level of the online car-hailing comprehensive service platform and ensures the operating income of the online car-hailing comprehensive service platform.
[0074] Please refer to 4. Figure 4 A schematic block diagram of an online car-hailing dispatching device provided in an embodiment of the present application.
[0075] like Figure 4 As shown, the online car-hailing dispatching device 400 includes: an acquisition module 401, a first determination module 402, a second determination module 403 and a dispatching module 404.
[0076] The acquisition module 401 is used to acquire the online car-hailing orders received by each online car-hailing traffic platform; A first determination module 402 is used to determine the dispatch parameters of the online car-hailing order, wherein the dispatch parameters include the commission rate corresponding to the online car-hailing traffic platform that receives the online car-hailing order, and the driving distance and estimated fare unit price corresponding to each candidate driver in the candidate driver set of the online car-hailing order; A second determination module 403 is used to determine a matching score between each candidate driver and the online car-hailing order according to the dispatching parameters; The dispatching module 404 is used to determine a target driver from the candidate driver set according to the matching score of each candidate driver, and dispatch the online car-hailing order to the target driver.
[0077] The apparatus provided in the above embodiment may be implemented in the form of a computer program. The computer program may be Figure 5 Runs on the computer device shown.
[0078] See also Figure 5 , Figure 5 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application.
[0079] like Figure 5 As shown, the computer device 500 includes a processor 502, a memory 503 and a communication interface 504 connected via a system bus 501, wherein the memory may include a non-volatile storage medium and an internal memory.
[0080] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any one of the online car-hailing dispatching methods.
[0081] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0082] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any online car-hailing dispatching method.
[0083] The communication interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0084] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a processor or the processor may also be any conventional processor, etc.
[0085] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps: Obtain online ride-hailing orders received by various online ride-hailing traffic platforms; Determine the dispatch parameters of the online car-hailing order, wherein the dispatch parameters include the commission rate corresponding to the online car-hailing traffic platform that receives the online car-hailing order, and the driving distance and estimated fare unit price corresponding to each candidate driver in the candidate driver set of the online car-hailing order; Determine a matching score between each candidate driver and the online car-hailing order according to the dispatching parameters; According to the matching score of each candidate driver, a target driver is determined from the candidate driver set, and the online car-hailing order is assigned to the target driver.
[0086] In one embodiment, when the processor implements determining the matching score between each candidate driver and the online car-hailing order according to the dispatching parameters, it is used to implement: The matching score between each candidate driver and the online car-hailing order is determined based on the dispatching parameters through the trained score model.
[0087] In one embodiment, the trained score model includes a trained improved Transformer model.
[0088] In one embodiment, the processor implements the trained score model to determine the matching score between each candidate driver and the online car-hailing order according to the dispatching parameters, and is used to implement: The dispatching parameters are input into the trained improved Transformer model, and the commission ratio, the driver-passenger distance and the estimated fare unit price corresponding to each candidate driver are weighted respectively through each attention head of the trained improved Transformer model to obtain a first weight and a first representation coefficient of the commission ratio, a second weight and a second representation coefficient of the driver-passenger distance corresponding to each candidate driver, and a third weight and a third representation coefficient of the estimated fare unit price corresponding to each candidate driver; According to the first weight and the first representation coefficient, the second weight and the second representation coefficient, and the third weight and the third representation coefficient, the commission ratio and the driving distance and the estimated fare unit price corresponding to each candidate driver are weightedly summed to obtain a matching score between each candidate driver and the online car-hailing order.
[0089] In one embodiment, when the processor implements determining a target driver from the set of candidate drivers according to the matching score of each candidate driver, the processor is used to implement: Comparing the matching score of each candidate driver to obtain a comparison result; According to the comparison result, a target driver is determined from the set of candidate drivers.
[0090] In one embodiment, when the processor implements the determining of the dispatching parameters of the online car-hailing order, it is used to implement: Determine the dispatch parameters of the online car-hailing order based on the detailed information carried by the online car-hailing order.
[0091] In one embodiment, before the processor implements the acquisition of online car-hailing orders received by each online car-hailing traffic platform, it is also used to implement: Enhance the attention mechanism of the preset Transformer model to obtain an improved Transformer model; The improved Transformer model is trained according to the historical dispatching parameters of preset historical online car-hailing orders and their corresponding historical matching scores to obtain the trained improved Transformer model.
[0092] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the online car-hailing dispatching method of the present application.
[0093] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
[0094] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0095] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0096] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a" does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0097] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements 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 dispatching online car-hailing orders. It is characterized in that The method is applied to an online car-hailing integrated service platform, and the method comprises: Obtain online ride-hailing orders received by various online ride-hailing traffic platforms; Determine the dispatch parameters of the online car-hailing order, wherein the dispatch parameters include the commission rate corresponding to the online car-hailing traffic platform that receives the online car-hailing order, and the driving distance and estimated fare unit price corresponding to each candidate driver in the candidate driver set of the online car-hailing order; Determine a matching score between each candidate driver and the online car-hailing order according to the dispatching parameters; According to the matching score of each candidate driver, a target driver is determined from the candidate driver set, and the online car-hailing order is assigned to the target driver.
2. The online car-hailing dispatching method according to claim 1, It is characterized in that Determining the matching score between each candidate driver and the online car-hailing order according to the dispatching parameters includes: The matching score between each candidate driver and the online car-hailing order is determined based on the dispatching parameters through the trained score model.
3. The online car-hailing dispatching method according to claim 2, It is characterized in that The trained score model includes a trained improved Transformer model.
4. The online car-hailing dispatching method according to claim 3, It is characterized in that The method of determining the matching score between each candidate driver and the online car-hailing order according to the dispatching parameters using the trained score model includes: The dispatching parameters are input into the trained improved Transformer model, and the commission ratio, the driver-passenger distance and the estimated fare unit price corresponding to each candidate driver are weighted respectively through each attention head of the trained improved Transformer model to obtain a first weight and a first representation coefficient of the commission ratio, a second weight and a second representation coefficient of the driver-passenger distance corresponding to each candidate driver, and a third weight and a third representation coefficient of the estimated fare unit price corresponding to each candidate driver; According to the first weight and the first representation coefficient, the second weight and the second representation coefficient, and the third weight and the third representation coefficient, the commission ratio and the driving distance and the estimated fare unit price corresponding to each candidate driver are weightedly summed to obtain a matching score between each candidate driver and the online car-hailing order.
5. The online car-hailing dispatching method according to claim 1, It is characterized in that Determining a target driver from the set of candidate drivers according to the matching score of each candidate driver includes: Comparing the matching score of each candidate driver to obtain a comparison result; According to the comparison result, a target driver is determined from the set of candidate drivers.
6. The online car-hailing dispatching method according to claim 1, It is characterized in that The step of determining the dispatching parameters of the online car-hailing order includes: Determine the dispatch parameters of the online car-hailing order based on the detailed information carried by the online car-hailing order.
7. The online car-hailing dispatching method according to claim 3, It is characterized in that Before obtaining the online car-hailing orders received by each online car-hailing traffic platform, the method further includes: Enhance the attention mechanism of the preset Transformer model to obtain an improved Transformer model; The improved Transformer model is trained according to the historical dispatching parameters of preset historical online car-hailing orders and their corresponding historical matching scores to obtain the trained improved Transformer model.
8. A device for dispatching online car-hailing services. It is characterized in that The online car-hailing dispatching device comprises: The acquisition module is used to obtain the online car-hailing orders received by each online car-hailing traffic platform; A first determination module is used to determine the dispatching parameters of the online car-hailing order, wherein the dispatching parameters include the commission ratio corresponding to the online car-hailing traffic platform that receives the online car-hailing order, and the driving distance and estimated fare unit price corresponding to each candidate driver in the candidate driver set of the online car-hailing order; A second determination module is used to determine a matching score between each candidate driver and the online car-hailing order according to the dispatching parameters; A dispatching module is used to determine a target driver from the candidate driver set according to the matching score of each candidate driver, and dispatch the online car-hailing order to the target driver.
9. A computer device, It is characterized in that It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the online car-hailing dispatching method as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the online car-hailing dispatching method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Order distribution method and device thereof
CN112700049A
Car reservation dispatching method and system, equipment and medium
CN113222202A
Vehicle order dispatching method and system based on time and safety, computer and medium
CN113743767A
Joint order dispatching and fleet management for online ride-sharing platforms
CN113811915A
Aggregated taxi taking method and device, computer equipment and storage medium
CN114187072A
Cited By
Online car-hailing order allocation method and device based on driver preference, and storage medium
CN120996431A
Online car-hailing cross-platform transport capacity cooperative scheduling method and system
CN122089004A
