Online car-hailing point dynamic prediction and multi-strategy configuration method and device

Through the combination of the multi-modal deep forest regression model and the iterative Kuhn-Munkres algorithm, the problem of singleness and low efficiency in the online pick-up point recommendation method is solved, and more accurate and efficient dynamic prediction and multi-strategy configuration of pick-up points are achieved. , improving the overall efficiency and passenger satisfaction of online ride-hailing services.

CN118657235APending Publication Date: 2024-09-17ZHEJIANG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410677900.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The existing online car-hailing pick-up point recommendation method is single, which cannot guarantee the effectiveness and accuracy of the recommendation, leading to order backlog and traffic congestion problems, and fails to take the global optimal as the optimization goal.

Method used

Using a multi-mode deep forest regression model combined with the iterative Kuhn-Munkres algorithm, through a multi-strategy configuration method, comprehensively considering factors such as passenger walking distance, walking time, road conditions at the boarding point, and estimated order amount, the boarding point configuration is dynamically predicted and optimized. Improve the average scheduling effect and solution efficiency of the configuration algorithm.

Benefits of technology

It significantly improves the accuracy and efficiency of boarding point recommendation, reduces the risk of over-fitting, improves the generalization ability of the model, and ensures efficient solution of large-scale calculation examples and global optimal configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657235A
    Figure CN118657235A
Patent Text Reader

Abstract

The invention provides an online car-hailing point dynamic prediction and multi-strategy configuration method and device, and belongs to the technical field of intelligent transportation, and the method comprises the steps: obtaining order information according to an order initiated by an online car-hailing passenger; calculating various boarding point influence factors corresponding to each potential boarding point; inputting various boarding point influence factors into the multi-mode deep forest regression model to obtain scores of passengers on each potential boarding point; the multi-mode depth forest regression model comprises a multi-mode random forest model and a composite random forest model, and the multi-mode random forest model is obtained by utilizing a gradient boosting tree fitting residual error to iteratively train a random forest model; performing polynomial transformation on the input by the composite random forest model, and taking a polynomial transformation result as the input of the composite random forest model again; and finally, performing multi-strategy configuration to obtain an optimal boarding point. According to the method, the overfitting risk is effectively reduced, and the method has relatively high solving efficiency in large-scale examples.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent transportation technology, and specifically relates to a method and device for dynamic prediction and multi-strategy configuration of online car-hailing boarding points. Background Art

[0002] In recent years, the popularity of intelligent communication terminals has provided convenience and immediacy for information exchange between passengers and online car-hailing drivers. After passengers initiate orders through intelligent software and match with drivers, both parties need to go to the designated pick-up point. Reasonable pick-up point configuration can effectively improve pick-up efficiency, reduce the economic and time costs of services, and help alleviate traffic congestion. However, the existing pick-up point recommendation method is relatively simple, and the effectiveness and accuracy of the recommended pick-up point cannot be guaranteed. There are bottlenecks in the global optimization and solution efficiency of large-scale examples, and the global optimization is not used as the optimization goal, resulting in a backlog of orders at a single pick-up point in the same period, which leads to problems such as order cancellation or traffic congestion. Summary of the invention

[0003] In view of the shortcomings of the existing technology, the present application proposes a method and device for dynamic prediction and multi-strategy configuration of online car-hailing boarding points.

[0004] In the first aspect, the present application proposes a method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points, including:

[0005] Obtain order information based on orders initiated by online ride-hailing passengers;

[0006] Extracting a set of potential pick-up points based on the order information and the spatiotemporal trajectory data of the online ride-hailing vehicle;

[0007] Calculate various boarding point influencing factors corresponding to each potential boarding point according to the potential boarding point set and / or order information;

[0008] Input the various boarding point influencing factors into the multi-mode deep forest regression model to obtain the passenger's score for each potential boarding point; the multi-mode deep forest regression model includes: a multi-mode random forest model and a composite random forest model, the multi-mode random forest model is obtained by iteratively training a random forest model using a gradient boosting tree fitting residual; the composite random forest model performs a polynomial transformation on the input, and uses the polynomial transformation result as the input of the composite random forest model again;

[0009] Under different dominant conditions, the passengers' scores on each potential boarding point are configured with multiple strategies to obtain the optimal boarding point.

[0010] The various factors affecting the pick-up point include: passenger walking distance, passenger walking time, pick-up point road condition index and estimated order amount from the pick-up point to the destination.

[0011] The multi-mode random forest model is obtained by iteratively training the random forest model using a gradient boosted tree fitting residual, including:

[0012] The input space of the multi-mode random forest model is divided into U units, and each unit has a fixed output value;

[0013] Define a decision tree model based on a fixed output value at each unit;

[0014] Use multiple decision tree models to integrate the random forest model and calculate the residual between the initial predicted value and the actual value of the random forest model;

[0015] The residual is used as the target value of the multi-mode random forest model, and the residual is fitted by a gradient boosting tree. The gradient descent method is used for iteration to solve the optimal random forest model that satisfies the residual, and the optimal random forest model is used as the multi-mode random forest model.

[0016] The step of performing a polynomial transformation on the input and using the polynomial transformation result as the input of the composite random forest model again includes:

[0017] In the node splitting process of the decision tree model, the node input is subjected to polynomial transformation to obtain a polynomial feature set;

[0018] Using the polynomial feature set as a new input to a decision tree model;

[0019] Calculate the square error based on the new input and the output of the corresponding decision tree model;

[0020] The minimum value of the square error is used as the condition for dividing the nodes to obtain a composite random forest model.

[0021] Under different dominant conditions, the passenger's score for each potential boarding point is configured with multiple strategies to obtain the optimal boarding point, including:

[0022] The multi-strategy configuration problem of passengers and their ratings on potential boarding points is defined as a directed weighted bipartite graph, with passengers and potential boarding points as nodes of the directed weighted bipartite graph, and the ratings of passengers on potential boarding points as edge weights of the directed weighted bipartite graph.

[0023] In a directed weighted bipartite graph under different dominant conditions, an iterative Kuhn-Mankels algorithm is used to solve the preset configuration model objective function to obtain the optimal configuration strategy. The edge weights of the directed weighted bipartite graph are adaptively adjusted in each round of iteration, and the edge with the highest passenger score for the potential boarding point is selected as the augmenting path of the iterative Kuhn-Mankels algorithm. The optimal configuration strategy includes the optimal boarding point for the passenger.

[0024] The preset configuration model objective function is the maximum value of the weighted function values ​​of various boarding point influencing factors, and the different dominant conditions represent different weights of various boarding point influencing factors.

[0025] In the second aspect, the present application proposes a device for dynamic prediction and multi-strategy configuration of online car-hailing boarding points, characterized in that it includes: an order acquisition module, a point set extraction module, an influencing factor calculation module, a rating prediction module, and a multi-strategy configuration module;

[0026] The order acquisition module is used to obtain order information based on the orders initiated by online ride-hailing passengers;

[0027] A point set extraction module, used to extract a potential pick-up point set based on the order information and the spatiotemporal trajectory data of the online car-hailing vehicle;

[0028] An influencing factor calculation module, used to calculate various boarding point influencing factors corresponding to each potential boarding point according to the potential boarding point set and the order;

[0029] The score prediction module is used to input the various boarding point influencing factors into the multi-mode deep forest regression model to obtain the passenger's score for each potential boarding point; the multi-mode deep forest regression model includes: a multi-mode random forest model and a composite random forest model, the multi-mode random forest model is obtained by iteratively training the random forest model using the gradient boosting tree fitting residual; the composite random forest model performs a polynomial transformation on the input, and uses the polynomial transformation result as the input of the composite random forest model again;

[0030] The multi-strategy configuration module is used to configure the passengers' scores on each potential boarding point through multi-strategy configuration under different dominant conditions to obtain the optimal boarding point.

[0031] In the third aspect, the present application proposes an electronic device, comprising: one or more processors, and a memory, wherein the memory is used to store instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points.

[0032] In a fourth aspect, the present application proposes a computer-readable storage medium storing executable instructions, which, when executed, cause a processor to execute the method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points.

[0033] In a fifth aspect, the present application proposes a computer program product, including a computer program or instructions, which, when executed by a processor, implements the method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points.

[0034] Beneficial effects:

[0035] This application proposes a method and device for dynamic prediction and multi-strategy configuration of online car-hailing boarding points, which incorporates four key influencing factors, namely, passenger walking distance, walking time, boarding point road condition indicators, and estimated order amount, into the boarding point recommendation model to comprehensively consider the impact of various influencing factors on the boarding point recommendation; this application uses a multi-mode random forest model and a composite random forest model to replace the original random forest model and the complete random forest model, effectively reducing the risk of overfitting and improving the generalization ability of the model. This application also uses an iterative Kuhn-Munkres algorithm to obtain the global optimal configuration of the boarding point. In each round of iteration, the weights between passengers and boarding points are automatically adjusted through a multi-scenario adaptive mechanism, and the optimal edges are selected for augmentation to continuously optimize the configuration results, thereby significantly improving the average scheduling effect of the configuration algorithm and having a high solution efficiency on large-scale examples. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 Flowchart of the method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points according to an embodiment of the present invention;

[0037] Figure 2 Schematic diagram of a method for dynamic prediction and multi-strategy configuration of online ride-hailing pick-up points according to an embodiment of the present invention;

[0038] Figure 3 Schematic diagram of a multi-modal deep forest regression model according to an embodiment of the present invention;

[0039] Figure 4 Average running time comparison diagram of the embodiment of the present invention;

[0040] Figure 5 Principle block diagram of the device for dynamic prediction and multi-strategy configuration of online ride-hailing boarding points in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The specific implementation of the present application is further described in detail below in conjunction with the drawings and examples.

[0042] At present, the research on online ride-hailing services at home and abroad mainly focuses on demand forecasting, matching scheduling, and route planning, while the research on pick-up point recommendation is relatively limited. The existing pick-up point recommendation methods can be summarized as reducing the walking distance and walking time of passengers, optimizing the road conditions at the pick-up point, and reducing travel costs. In general, the existing methods still have the following problems that need to be further solved: a) Existing research is mainly based on GPS data for analysis, but due to the difference between the coordinate points tracked by GPS data and the actual feasible pick-up locations, it is still challenging to accurately extract potential pick-up points; b) The influencing factors considered in recommending pick-up points are relatively single, resulting in the recommended pick-up points being unfeasible or poorly feasible, requiring subsequent communication and adjustment, thereby reducing service efficiency and passenger satisfaction; c) The matching algorithm only considers a single recommendation independently, and does not take the global optimum as the optimization goal, resulting in a backlog of orders for a single pick-up point in the same period, which leads to problems such as order cancellation or traffic congestion.

[0043] In response to the above problems, this application proposes a method and device for dynamic prediction and multi-strategy configuration of online car-hailing boarding points, which realizes dynamic configuration of boarding points from multiple angles and multiple strategies. This application has the following beneficial effects in terms of dynamic prediction of online car-hailing boarding points:

[0044] a) A potential boarding point extraction method based on road network matching is proposed. By comprehensively considering factors such as road conditions and real-time traffic information, the road network information is fully integrated to make the extracted potential boarding points more real-time and accurate.

[0045] b) Four key influencing factors, namely, passenger walking distance, walking time, boarding point road condition indicators and estimated order amount, are incorporated into the boarding point recommendation model to comprehensively consider the impact of various influencing factors on the boarding point recommendation.

[0046] c) A dynamic boarding point prediction algorithm based on multimodal deep forest is proposed. The algorithm integrates decision trees of different structures, uses multimodal random forest and compound random forest to replace the original random forest and complete random forest, performs multimodal feature sampling on the sub-samples after sliding window scanning, and organizes and integrates the sampled features layer by layer through a cascade structure, which effectively reduces the risk of overfitting and improves the generalization ability of the model.

[0047] d) An efficient iterative Kuhn-Munkres global optimal boarding point configuration algorithm is designed. In each round of iteration, the edge weights between passengers and boarding points are automatically adjusted through a multi-scenario adaptive mechanism, and the optimal edges are selected for augmentation to continuously optimize the configuration results, thereby significantly improving the average scheduling effect of the configuration algorithm and having a high solution efficiency on large-scale examples.

[0048] Embodiment 1:

[0049] This embodiment proposes a method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points, such as Figure 1 , Figure 2 As shown, including:

[0050] Step S1: Obtain order information based on the order initiated by the online car-hailing passenger;

[0051] In this embodiment, due to the consideration of the global optimal problem of large-scale examples, the orders should be different orders initiated by different passengers in the same time period and within the same preset range. For example, passenger A and passenger B initiate online car-hailing orders in the same time period and within the same preset range, where the order information includes: the initial location, destination, and time when the passenger initiates the order. In this case, the traditional method can no longer solve the corresponding problem, which can easily lead to a backlog of orders at a single boarding point in the same time period, thereby causing the problem of order cancellation, or the high consistency of the recommended boarding points, which ultimately leads to traffic congestion.

[0052] Step S2: extracting a set of potential boarding points based on the order information and the spatiotemporal trajectory data of the online car-hailing service, including:

[0053] Step S2.1: sorting the spatiotemporal trajectory data of the online-hailing vehicles in the order of their running trajectory time according to the historical trajectory point identifiers of the online-hailing vehicles;

[0054]

[0055] t 1 ≤t 2 ≤t 3 ≤…≤t n

[0056] in, arrive The first trajectory point marked as 1 in the historical trajectory point of the online car-hailing service starts from t 1 to n The running trajectory at time t 1 to n Strictly arranged in ascending chronological order, It is the sorted spatiotemporal trajectory data of online ride-hailing vehicles.

[0057] Step S2.2: Obtain a set of potential boarding points on all road networks based on the historical trajectory point identifiers of the online ride-hailing vehicle and the sorted spatiotemporal trajectory data;

[0058] Specifically, this embodiment obtains the change in the passenger status of the online car-hailing vehicle at two adjacent trajectory points based on the historical trajectory point identifiers of the online car-hailing vehicle in the GPS data and the sorted spatiotemporal trajectory data, and then obtains the potential boarding point set of all road networks.

[0059] Generally speaking, the potential boarding points mined from GPS data are usually not very accurate. In this embodiment, a point-to-line matching method is used to match the extracted potential boarding point set to a road network to obtain a more accurate potential boarding point set.

[0060] The point-to-line matching method is to regard all road sections in the road network as candidate road sections, and use the geometric distance between two points and the geometric features of the point and the surrounding road sections as constraints. First, the center of the circle is used as the center of the circle, and the error threshold r is used as the radius to perform a circle center matching search, and the projection distance composed of the geometric distance and angle between the point to be matched and each candidate road section is calculated. The shorter the projection distance, the higher the road network matching degree, so the road section can be regarded as the best matching road section.

[0061] The point-to-line matching method has the following process:

[0062] Step 2.2.1: Calculate the geometric distance from the point to be matched to each candidate road segment. The distance calculation formula is as follows:

[0063]

[0064] Among them, L represents the geometric distance from the point to be matched to the candidate road section, lat 1 ,lon 1 Respectively represent the longitude and latitude of the point to be matched, lat 2 ,lon 2 Respectively represent the longitude and latitude of the candidate point on the candidate road section.

[0065] Step 2.2.2: Calculate the projection distance from the point to be matched to each candidate road segment. The projection distance formula is as follows:

[0066]

[0067] Among them, θ represents the angle between the point to be matched and the candidate point on the candidate road section, μ and ω are the weight parameters of L and θ, respectively, which are used to adjust the influence of distance and angle on the projection distance.

[0068] Step 2.2.3: The candidate point with the shortest projection distance is taken as the optimized potential boarding point.

[0069] The point-to-line matching method can accurately match the potential boarding points in the actual road network.

[0070] In this embodiment, all potential boarding point sets of the optimized road network can be saved in advance. When a passenger places an order, the potential boarding point set corresponding to the order can be directly found according to the corresponding time period and the corresponding area.

[0071] Step S3: Calculating various boarding point influencing factors corresponding to each potential boarding point according to the potential boarding point set and / or order information;

[0072] The various factors affecting the pick-up point include: passenger walking distance, passenger walking time, pick-up point road condition index and estimated order amount from the pick-up point to the destination.

[0073] In specific implementation, if the potential pickup point set and orders are known, the passenger walking distance, passenger walking time, pickup point road condition index and estimated order amount from the pickup point to the destination can be calculated as follows:

[0074] Pick-up point b i The calculation formula of the road condition index is:

[0075] in, Pick-up point b i Road condition indicators, Indicates boarding point b i The acceleration of Indicates that the online car-hailing vehicle passes the pick-up point b i The average azimuth at the time of i The weight of the acceleration, β is the boarding point b i The weight of the average azimuth angle at .

[0076] The boarding point b i The acceleration is calculated as:

[0077] in, Pick-up point B i The acceleration of represents the boarding point b at time t selected through the spatiotemporal trajectory data i is the instantaneous speed, and Δt is the time interval between two adjacent moments.

[0078] Passenger j Go to pick-up point b i The walking distance calculation formula is as follows:

[0079]

[0080] in, For passengers j Go to pick-up point b i Walking distance, lo i ,la i Respectively represent the longitude and latitude of the boarding point, cx j 、cy j Respectively represent the longitude and latitude of the passenger’s initial position, Represents the radius of the Earth.

[0081] Passenger j Go to pick-up point b i The walking time calculation formula is:

[0082]

[0083] in, For passengers j Go to pick-up point b i Walking time, Respectively represent the hour, minute, and second of the passenger's boarding time. Respectively represent the hours, minutes, and seconds when the passenger requested a ride at the initial location.

[0084] Passenger j From pick-up point B i The calculation formula for the estimated order amount from departure to destination is:

[0085] in, For passengers j From pick-up point B i The estimated order amount from departure to destination, f represents the starting price, w represents the mileage rate, Indicates passenger p j From pick-up point B i The actual mileage to the destination, z represents the market surcharge.

[0086] Step S4: Input the various boarding point influencing factors into the multi-mode deep forest regression model to obtain the passenger's score for each potential boarding point; the multi-mode deep forest regression model includes: a multi-mode random forest model and a composite random forest model, the multi-mode random forest model is obtained by iteratively training a random forest model using a gradient boosting tree fitting residual; the composite random forest model performs a polynomial transformation on its input, and uses the polynomial transformation result as the input of the composite random forest model again;

[0087] In this embodiment, the potential boarding point set is first obtained by using historical data, and then various boarding point influencing factors corresponding to the historical data are obtained, and the data set suitable for dynamic boarding point prediction is constructed by combining the definition. And use the multi-modal deep forest regression model for training to obtain the pre-trained multi-modal deep forest regression model.

[0088] During the training process,

[0089]

[0090] Among them, y j∈{0, 1} represents the score of the boarding point after normalization. Indicates boarding point b i Road condition indicators, Indicates passenger p j Walk to the pick-up point b i The distance represents the passenger walking time, Indicates passenger p j From pick-up point B i Estimated order value to destination, co ij Indicates passenger p j Are you at the boarding point b? i Get on the bus, α is The weight parameter in the objective function of the configuration model, δ is The weight parameter in the objective function of the configuration model, γ is In configuring the weight parameters in the model objective function, for The weight parameters in the objective function of the configuration model are n, the number of boarding points, and m, the number of passengers.

[0091] In actual prediction, the x calculated by passenger orders is j Input into the pre-trained multi-modal deep forest regression model to obtain the corresponding score for each potential boarding point.

[0092] Various factors affecting the boarding point and the historical ratings of passengers on the boarding point are used as the input of the multi-modal deep forest model, a training set for model training and a test set for verification are constructed, and the prediction results that can be used for boarding point recommendation are output. The prediction process is as follows:

[0093] Step 4.1: The 4 feature vectors are input into the multi-granularity scanning stage, and the calculation formula of the multi-granularity scanning stage is as follows:

[0094] MGS=(e τ ,c,λ,ε)

[0095] Among them, MGS is multi-granularity scanning, e τ is the original input τ-dimensional sample, c represents the sliding window size, λ represents the scanning step size, and ε represents the number of subsamples.

[0096] Step 4.2: Input the scanned sub-samples into the multi-modal random forest model and the composite random forest model for training respectively.

[0097] The multi-mode random forest model process is: using the random forest model as the base model, and then using the gradient boosting tree to fit the residuals to improve the prediction performance, generalization ability and stability of the model.

[0098] The multi-mode random forest model is obtained by iteratively training the random forest model using a gradient boosted tree fitting residual, including:

[0099] Step S4.211 divides the input space of the multi-mode random forest model into U units U 1 ,U 2 ,…,U U , and in each unit U l There is a fixed output value u l ;

[0100] Step S4.212 defines a decision tree model based on fixed output values ​​on each unit;

[0101] The decision tree model can be defined as:

[0102]

[0103] Among them, f(x l ) is the decision tree model, U is the total number of units, x l is the eigenvector, and I is the indicative function.

[0104] Step S4.213: Utilize multiple decision tree models to integrate a random forest model, and calculate the residual between the initial predicted value of the random forest model and the actual value;

[0105]

[0106] in, is the actual value, l is the residual between the initial predicted value and the actual value.

[0107] Step S4.214: The residual is used as the target value of the multi-mode random forest model, and the residual is fitted by a gradient boosting tree, and the gradient descent method is used for iteration to solve the optimal random forest model that satisfies the residual, and the optimal random forest model is used as the multi-mode random forest model.

[0108]

[0109] Among them, η l represents the weight of the lth decision tree, f(x l ) is the decision tree model defined, MRF(x l ) is a multi-mode random forest model. The gradient boosting tree uses the gradient descent method to solve the optimal model. For the ιth iteration, MRF can be defined as:

[0110]

[0111] in, is MRF(xl ) in x l The gradient at L(y l ,MRF ι-1 (x l )+υ l ) is the loss function, y l is the score of the dynamic boarding point, υ l is the residual between the initial predicted value and the actual value.

[0112] The composite random forest algorithm process is: embedding polynomial feature transformation into the decision tree algorithm, performing polynomial feature transformation on the input sub-samples during the node splitting process, forming a new feature set, so as to enhance the nonlinear modeling ability of the decision tree.

[0113] The step of performing a polynomial transformation on the input and using the polynomial transformation result as the input of the composite random forest model again includes:

[0114] Step S4.221: In the node splitting process of the decision tree model, the node input is subjected to a polynomial transformation to obtain a polynomial feature set;

[0115] Polynomial feature set, calculated as follows:

[0116] x j =(1,x j1 ,…,x j4 ,x j1 2 ,…,x j4 2 ,…,x j1 κ ,…,x j4 κ )X j =(x 1 ,x 2 ,…,x j ,…x m )

[0117] Among them, x j4 κ represents the k-th order polynomial of the fourth dimension feature of the j-th data, X j is a polynomial feature set, m is the number of elements in the polynomial feature set, which is equal to the number of passengers m.

[0118] Step S4.222: using the polynomial feature set as a new input to the decision tree model;

[0119] Step S4.223: Calculate the square error based on the new input and the output of the corresponding decision tree model;

[0120] Step S4.224: Using the minimum value of the square error as a condition for dividing nodes, a composite random forest model is obtained.

[0121] The composite random forest model is defined as:

[0122]

[0123] Among them, CRF(X j ) is a composite random forest model, X j is a polynomial feature set, U is the total number of units, f(X j ) is a decision tree model with a polynomial feature set as input.

[0124] Step 4.3: All vectors output after training are combined as the first layer input of the cascade forest stage, and the feature vector is used as the first layer output. The previous layer input and output results are combined as the input of the next layer. Each layer input comes from the feature processing of the upper layer, and the processed features are passed to the lower layer. The calculation formula of the cascade forest stage is:

[0125]

[0126] in, represents the first layer output, represents the output of the Mth layer, g (I) represents the feature processing function in the cascade forest at level I, MGS o represents the output result of the multi-granularity scanning stage, FV represents the feature vector, Represents the M+1th layer input.

[0127] The process of predicting dynamic boarding points faces challenges of data uncertainty and dynamics, which makes the distribution and characteristics of boarding points change dynamically with time, location and other external factors, thereby increasing the difficulty of prediction. In addition, the problem of dynamic boarding point prediction involves nonlinear relationships. The multi-modal deep forest regression algorithm (MDFR) used in this embodiment can better capture the nonlinear characteristics and complex relationships in the data and improve the prediction accuracy. At the same time, by using MDFR to predict dynamic boarding points, the advantages of ensemble learning can be fully utilized to improve the robustness of prediction. The multi-modal deep forest regression model in this embodiment is improved from the original deep forest model. The original deep forest model includes two stages, the first stage is the multi-granularity scanning stage, and the second stage is the cascade forest stage. In the multi-granularity scanning stage, the input features are firstly scanned by sliding, and then respectively input into the random forest and the completely random forest for training, and the trained data are merged as the input of the cascade forest stage. Each layer of the cascade forest contains the random forest and the completely random forest. After N layers of training, the maximum value of the final result is averaged to obtain the final score. This embodiment changes the random forest in the multi-grained scanning stage and the cascade forest stage into a multi-mode random forest, and changes the complete random forest into a composite random forest. MDFR also consists of a multi-grained scanning stage (Multi-GrainedScanning, MGS) and a cascade forest stage (Cascade Forest, CF), where MGS scans the original features through a sliding window and extracts the relationship between each feature in the sample, aiming to enhance the performance of CF and achieve feature reuse; CF simulates the cascade forest framework of a deep neural network and enhances the representation learning ability of the algorithm.

[0128] In this embodiment, Figure 3 As shown in the figure, the multi-granularity scanning stage shows the process of MGS generating CF input feature vectors. First, the 4-dim As the input layer, the sliding window c takes 1-dim, 2-dim and 3-dim sizes respectively, and the input samples are sampled. The scanning step size λ defaults to 1, and the number of sub-samples ε is 4, 3 and 2 respectively. Then MRF and CRF are used to train the obtained sub-samples, and each sample outputs a 2-dim probability feature vector, that is, 16-dim, 12-dim and 8-dim feature vectors are generated respectively. Finally, all vectors are merged as the CF input feature vector.

[0129] Step 4.4: The above steps can get each forest prediction sample x J The output class vector and output result are calculated based on the prediction vector for the sample x JThe maximum value of the average value is taken to get the score of the final boarding point. The calculation formula is as follows:

[0130] CF(x J )=max(avg(W(x J )))

[0131] Figure 3 The middle cascade forest stage shows the complete process of CF. After MGS, a total of 36-dim feature vectors are extracted as the first layer input of CF; the first layer generates an 8-dim increased feature vector after MRF and CRF training, and adds the original 36-dim feature vector to form a 44-dim transformed feature vector as the second layer input. Similarly, after N layers of processing, the output is the predicted score of each MRF or CRF for the dynamic boarding point. Finally, the average of the results is taken to the maximum value to get the final boarding point score.

[0132] Step S5: Under different dominant conditions, the scores of passengers on each potential boarding point are configured with multiple strategies to obtain the optimal boarding point.

[0133] The dominant conditions include: the dominant condition of the number of passengers and the dominant condition of the number of boarding points. Under different dominant conditions, the scores of passengers on each potential boarding point are configured with multiple strategies to obtain the optimal boarding point, including:

[0134] The multi-strategy configuration problem of passengers and their ratings on potential boarding points is defined as a directed weighted bipartite graph, with passengers and potential boarding points as nodes of the directed weighted bipartite graph, and the ratings of passengers on potential boarding points as edge weights of the directed weighted bipartite graph.

[0135] In a directed weighted bipartite graph under different dominant conditions, an iterative Kuhn-Mankels algorithm is used to solve the preset configuration model objective function to obtain the optimal configuration strategy. The edge weights of the directed weighted bipartite graph are adaptively adjusted in each round of iteration, and the edge with the highest passenger score for the potential boarding point is selected as the augmenting path of the iterative Kuhn-Mankels algorithm. The optimal configuration strategy includes the optimal boarding point for the passenger.

[0136] In this embodiment, the preset configuration model objective function is used as the maximum value of the weighted function value of various boarding point influencing factors, and the different dominant conditions represent different weights of various boarding point influencing factors. The preset configuration model objective function is calculated as follows:

[0137]

[0138] Constraints:

[0139]

[0140] Among them, y j ∈{0, 1} represents the score of the boarding point after normalization. Indicates boarding point b i Road condition indicators, Indicates passenger p j Walk to the pick-up point b i The distance represents the passenger walking time, Indicates passenger p j From pick-up point B i Estimated order value to destination, co ij Indicates passenger p j Are you at the boarding point b? i Get on the bus, α is The weight parameter in the objective function of the configuration model, δ is The weight parameter in the objective function of the configuration model, γ is In configuring the weight parameters in the model objective function, for The weight parameters in the objective function of the configuration model are: n is the number of boarding points, m is the number of passengers, For boarding point b i The threshold number of passengers on board, co ij ∈{0,1}, 1 means getting on the bus, and 0 means not getting on the bus.

[0141] In this embodiment, in the dynamic configuration problem of passengers and boarding points, it is first necessary to construct a weighted bipartite graph, and use the passenger's rating of the boarding point as the edge weight. Then the bipartite graph maximum weight matching algorithm is used to find the optimal matching solution, and the sum of all edge weights in the matched subgraph is calculated. However, due to the large number of actual road networks, the traditional bipartite graph maximum weight matching algorithm (Kuhn-Munkres, KM) shows a high time complexity when processing large-scale examples, and its running time shows a superlinear trend growth. Therefore, it is difficult to plan the configuration strategy between passengers and any boarding point at the same time, and the real-time performance of the algorithm cannot be guaranteed. In addition, the KM algorithm can only solve one-to-one matching problems and cannot effectively handle one-to-many matching problems. For example: There are three boarding points ABC near passenger a and passenger b. The multi-mode deep forest model trained based on historical data predicts the three nearby boarding points ABC, and predicts the scores of passenger a for ABC and passenger b for ABC respectively. Assuming that a conventional algorithm is used and the goal is not global maximization, then passenger a goes to C closest and passenger b goes to B closest, then the above scheme can be directly allocated, but in fact there will be multiple factors. If there is a large tourist attraction near B, it is easy to get stuck in traffic or the road conditions are bad, then b should go to A or C to get on the bus. Based on the above considerations, this application proposes an iterative Kuhn-Munkres boarding point configuration algorithm (Iterative Kuhn-Munkres, IKM). The algorithm can search for a better configuration result in a relatively short time, and can flexibly adjust the path and switch the configuration vertices according to the actual situation to achieve a global supply and demand balance between passengers and boarding points. In each round of iteration, the local augmented path is updated, and the iteration is stopped in advance when no more augmented paths can be found, thereby reducing the calculation time and improving the efficiency of the algorithm.

[0142] The α, δ, γ, The size of is affected by different dominant conditions. In this embodiment, different weights α, δ, γ, and The process is as follows:

[0143] Step S5.1: The configuration problem of passengers and boarding points is defined as a directed weighted bipartite graph. On this basis, the iterative Kuhn-Munkres algorithm is used to perform configuration through a multi-scenario adaptive mechanism. The calculation process is as follows:

[0144]

[0145] in, represents a directed weighted bipartite graph, Represents the weight of pairing passenger node j in set P to the boarding point in set B.

[0146] Step S5.2: Select from the directed weighted bipartite graph that meets the preset conditions The edges of the auxiliary bipartite graph O are constructed au , and randomly select a potential boarding point in the auxiliary bipartite graph to match the score Q i .

[0147] Step S5.3: If Q i Saturated All nodes of Q i That is the optimal match, the calculation stops and returns the matching result, where Q i Saturated All nodes of mean that an edge must include two vertices is called saturation. Otherwise, go to step 5.4.

[0148] Step S5.4: Recalculate the edge weights of the directed weighted bipartite graph and the optimal boarding point. The calculation process is as follows:

[0149]

[0150] Among them, av i Indicates boarding point b i The average number of passengers on the bus, bf represents the buffer factor for handling uncertainty capacity space, ma i Indicates that it is assigned to the boarding point b i Number of people, Indicates boarding point b i The maximum number of passengers that can be accommodated, be i Indicates whether it is the best boarding point.

[0151] Step S5.5: If at this time be i ≠Φ, then p j Assign to be i , the number of people that can be accommodated at the best boarding point increases accordingly by 1. When the number of people at the best boarding point is greater than the capacity threshold of the boarding point, the best boarding point at this time is removed from the boarding point set.

[0152] Step S5.6: Find an augmenting path ρ from set P to set B, where the augmenting path is the edge with the highest score given by the passenger to the potential boarding point. Go to step S5.2.

[0153] Experimental verification:

[0154] Multimodal Deep Forest Regression Model (MDFR) Evaluation:

[0155] This example uses mean absolute error (MAE), root mean square error (RMSE), coefficient of determination (R2) and explained variance (EV) to evaluate MDFR.

[0156] The comparison models include (1) integrated models: gradient boosted tree regression model (GBDTR) and random forest regression model (RFR); (2) machine learning models: linear regression model (LR), support vector machine regression model (SVR) and K nearest neighbor regression model (KNNR); (3) representative deep learning models, including recurrent neural network (RNN) and long short-term memory neural network (LSTM); (4) others: multi-head attention spatiotemporal convolutional graph network model (MASCGN), LightGBM hybrid model (HLGBM) and multi-element interactive attention mechanism model (SDT-ATT). The prediction model comparison experimental results are shown in Table 1.

[0157] Table 1 Comparative experimental results of different prediction models

[0158]

[0159]

[0160] As shown in Table 1, for MDFR, its MAE, RMSE, R 2 The average EV values ​​are 2.375, 30.935, 0.909, and 0.911, respectively. Compared with other models, the average absolute error of MDFR is reduced by 2.705, the mean square error is reduced by 5.915, the coefficient of determination is increased by 0.214, and the explained variance is increased by 0.195, indicating that MDFR performs well in predicting the best boarding point. In addition, different models perform differently on data sets of different sizes. As the size of the data set increases, the degree of model fit improves. However, LR performs the worst among all models, indicating that the linear model cannot accurately predict the best boarding point, which is consistent with the actual situation.

[0161] In order to verify the efficiency and effectiveness of MRF and CRF in the MDFR algorithm, this embodiment uses the deep forest prediction model (DFR) as the basic model to perform ablation experiments on the original data set. In order to ensure the reliability of the results, each randomly selected data set of different sizes is run 10 times, and the average of the 10 times is taken as the final result. The experimental results are shown in Table 2.

[0162] It can be seen from Table 2 that the MRF and CRF in the MDFR algorithm have significant effects on MAE, RMSE, and R 2 The impact of EV is different, but all of them are improved compared with the basic model. When processing data sets of different sizes, MDFR, MRF only, and CRF only algorithms are compared with DFR without these algorithms. MAE is reduced by 0.514, 0.255, and 0.265, respectively; RMSE is reduced by 0.568, 0.272, and 0.302, respectively; R 2The results were improved by 0.034, 0.014 and 0.019 respectively, and EV was improved by 0.042, 0.019 and 0.022 respectively. The reasons for these results are that MRF combines the advantages of random forest and gradient boosting tree, and captures the data dynamics that cannot be explained by the previous round of models in each iteration, which can gradually reduce the prediction error, continuously optimize the model performance, and improve the prediction accuracy of the model; CRF generates new features by introducing polynomial feature transformation in the decision tree, so that the model can divide data at a more detailed level. As the feature space becomes more complex, the decision tree can find more suitable division points in the multidimensional space and better adapt to the nonlinear relationship and complexity in the data.

[0163] In summary, the MDFR algorithm has good feasibility and effectiveness in the big data environment.

[0164] Table 2 Ablation comparison experiment

[0165]

[0166] Configure algorithm evaluation:

[0167] This embodiment compares and analyzes the advantages and disadvantages of the Pick-up Point Priority Strategy (PPPS), the Passenger Priority Strategy (PPS) and the strategy of this embodiment (Comprehensive Strategy, CS) under the conditions of Passenger Quantity Advantage (PQA) and Pick-up Point Quantity Advantage (PPQA) from the two perspectives of the number of passengers and the number of pick-up points, as well as their impact on dynamic pick-up point recommendation.

[0168] This embodiment simulates 6 instances, 3 instances with different numbers of passengers and 3 instances with different numbers of boarding points. The instance parameters are shown in Table 3. The 6 instances are executed 10 times using the IKM and KM algorithms respectively. The average solution and average time of the IKM are compared with the optimal solution and average time of the KM algorithm to obtain the quality ratio and time ratio. The comparative experimental results are shown in Table 4. The average running time comparison is shown in the figure below. Figure 4 shown.

[0169] Table 3 Configuration algorithm instance parameters

[0170]

[0171] Table 4 Experimental results of comparison between IKM and KM algorithms

[0172]

[0173] As can be seen from Table 4, for larger-scale examples, the time ratio gradually decreases as the size of the data set increases, and the quality ratio is above 98%, indicating that compared with the optimal solution of the KM algorithm, IKM can obtain a high-quality solution in a shorter time. Figure 4 It can be seen that for large-scale instances, the average running time of the IKM algorithm increases slowly, while the average running time of the KM algorithm increases nonlinearly and rapidly, indicating that the time efficiency of IKM is better than that of KM.

[0174] Embodiment 2:

[0175] This embodiment proposes a device for dynamically predicting and configuring online car-hailing boarding points. Figure 5 As shown, it includes: order acquisition module, point set extraction module, influencing factor calculation module, rating prediction module and multi-strategy configuration module;

[0176] The order acquisition module is respectively connected to the point set extraction module and the influencing factor calculation module, the point set extraction module is connected to the influencing factor calculation module, the influencing factor calculation module is connected to the score prediction module, and the score prediction module is connected to the multi-strategy configuration module;

[0177] The order acquisition module is used to obtain order information based on the orders initiated by online ride-hailing passengers;

[0178] A point set extraction module, used to extract a potential pick-up point set based on the order information and the spatiotemporal trajectory data of the online car-hailing vehicle;

[0179] An influencing factor calculation module, used for calculating various boarding point influencing factors corresponding to each potential boarding point according to the potential boarding point set and / or order information;

[0180] The score prediction module is used to input the various boarding point influencing factors into the multi-mode deep forest regression model to obtain the passenger's score for each potential boarding point; the multi-mode deep forest regression model includes: a multi-mode random forest model and a composite random forest model, the multi-mode random forest model is obtained by iteratively training the random forest model using the gradient boosting tree fitting residual; the composite random forest model performs a polynomial transformation on the input, and uses the polynomial transformation result as the input of the composite random forest model again;

[0181] The multi-strategy configuration module is used to configure the passengers' scores on each potential boarding point through multi-strategy configuration under different dominant conditions to obtain the optimal boarding point.

[0182] Embodiment 3:

[0183] This embodiment proposes an electronic device, including: one or more processors, and a memory, wherein the memory is used to store instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points.

[0184] The electronic device may be a mobile phone, a computer or a tablet computer, etc., including a memory and a processor, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the method for dynamically predicting the online car-hailing boarding point and configuring multiple strategies as described in the embodiment is implemented. It is understood that the electronic device may also include an input / output (I / O) interface and a communication component.

[0185] The processor is used to execute all or part of the steps in the method for dynamically predicting and configuring a multi-strategy online car-hailing boarding point as described in the above embodiment. The memory is used to store various types of data, which may include, for example, instructions for any application or method in the electronic device, as well as data related to the application.

[0186] The processor can be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the dynamic prediction and multi-strategy configuration method of online car-hailing boarding points described in the above embodiments.

[0187] Embodiment 4:

[0188] This embodiment provides a computer-readable storage medium storing executable instructions. When the instructions are executed and implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.

[0189] The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points described in the various embodiments of the present application.

[0190] The aforementioned storage media include: flash memory, hard disk, multimedia card, card-type memory (for example, SD (Secure Digital Memory Card) or DX (Memory Data Register, MDR) memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, CD, server, APP (Application, abbreviation of application software) application store and other media that can store program verification codes, on which computer programs are stored. When the computer program is executed by the processor, the various steps of the above-mentioned online car-hailing boarding point dynamic prediction and multi-strategy configuration method can be implemented.

[0191] Embodiment 5:

[0192] This embodiment proposes a computer program product, including a computer program or instructions, which, when executed by a processor, implements the method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points.

[0193] Based on such understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a computer program product.

[0194] The various embodiments in the present application are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0195] The protection scope of the present application is not limited to the above-mentioned embodiments. Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the scope and spirit of the present disclosure. If these changes and modifications fall within the scope of the claims of the present disclosure and their equivalents, the intention of the present disclosure also includes these changes and modifications.

Claims

1. A method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points, characterized in that: include: Obtain order information based on orders initiated by online ride-hailing passengers; Extracting a set of potential boarding points based on the order information and the spatiotemporal trajectory data of the online ride-hailing vehicle; Calculate various boarding point influencing factors corresponding to each potential boarding point according to the potential boarding point set and / or order information; Input the various factors affecting the boarding point into the multi-mode deep forest regression model to obtain the passenger's score for each potential boarding point; The multi-mode deep forest regression model includes: a multi-mode random forest model and a composite random forest model, wherein the multi-mode random forest model is obtained by iteratively training a random forest model using a gradient boosting tree fitting residual; The composite random forest model performs a polynomial transformation on the input, and uses the polynomial transformation result as the input of the composite random forest model again; under different dominant conditions, the passenger's score on each potential boarding point is configured with multiple strategies to obtain the optimal boarding point.

2. The method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points according to claim 1 is characterized in that: The various factors affecting the pick-up point include: passenger walking distance, passenger walking time, pick-up point road condition index and estimated order amount from the pick-up point to the destination.

3. The method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points according to claim 1 is characterized in that: The multi-mode random forest model is obtained by iteratively training the random forest model using a gradient boosted tree fitting residual, including: The input space of the multi-mode random forest model is divided into U units, and each unit has a fixed output value; Define a decision tree model based on a fixed output value at each unit; Use multiple decision tree models to integrate the random forest model and calculate the residual between the initial predicted value and the actual value of the random forest model; The residual is used as the target value of the random forest model, and the residual is fitted by a gradient boosting tree. The gradient descent method is used for iteration to solve the optimal random forest model that satisfies the residual, and the optimal random forest model is used as the multi-mode random forest model.

4. The method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points according to claim 1, characterized in that: The step of performing a polynomial transformation on the input and using the polynomial transformation result as the input of the composite random forest model again includes: In the node splitting process of the decision tree model, the node input is subjected to polynomial transformation to obtain a polynomial feature set; Using the polynomial feature set as a new input to a decision tree model; Calculate the square error based on the new input and the output of the corresponding decision tree model; The minimum value of the square error is used as the condition for dividing the nodes to obtain a composite random forest model.

5. The method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points according to claim 1, characterized in that: Under different dominant conditions, the passenger's score for each potential boarding point is configured with multiple strategies to obtain the optimal boarding point, including: The multi-strategy configuration problem of passengers and their ratings on potential boarding points is defined as a directed weighted bipartite graph, with passengers and potential boarding points as nodes of the directed weighted bipartite graph, and the ratings of passengers on potential boarding points as edge weights of the directed weighted bipartite graph. In a directed weighted bipartite graph under different dominant conditions, an iterative Kuhn-Mankels algorithm is used to solve the preset configuration model objective function to obtain the optimal configuration strategy. The edge weights of the directed weighted bipartite graph are adaptively adjusted in each round of iteration, and the edge with the highest passenger score for the potential boarding point is selected as the augmenting path of the iterative Kuhn-Mankels algorithm. The optimal configuration strategy includes the optimal boarding point for the passenger.

6. The method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points according to claim 5, characterized in that: The preset configuration model objective function is the maximum value of the weighted function values ​​of various boarding point influencing factors, and the different dominant conditions represent different weights of various boarding point influencing factors.

7. A device for dynamic prediction and multi-strategy configuration of online car-hailing boarding points, characterized in that: include: Order acquisition module, point set extraction module, influencing factor calculation module, rating prediction module and multi-strategy configuration module; The order acquisition module is used to obtain order information based on the orders initiated by online ride-hailing passengers; A point set extraction module, used to extract a potential pick-up point set based on the order information and the spatiotemporal trajectory data of the online car-hailing vehicle; An influencing factor calculation module, used for calculating various boarding point influencing factors corresponding to each potential boarding point according to the potential boarding point set and / or order information; A rating prediction module, used to input the various boarding point influencing factors into the multi-modal deep forest regression model to obtain the passenger's rating of each potential boarding point; The multi-mode deep forest regression model includes: a multi-mode random forest model and a composite random forest model, wherein the multi-mode random forest model is obtained by iteratively training a random forest model using a gradient boosting tree fitting residual; the composite random forest model performs a polynomial transformation on the input, and uses the polynomial transformation result as the input of the composite random forest model again; The multi-strategy configuration module is used to configure the passengers' scores on each potential boarding point through multi-strategy configuration under different dominant conditions to obtain the optimal boarding point.

8. An electronic device, characterized in that: include: One or more processors, and a memory, wherein the memory is used to store instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: It stores executable instructions, which, when executed, enable the processor to execute the method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points as described in any one of claims 1 to 6.

10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the method for dynamic prediction and multi-strategy configuration of online car-hailing boarding points as described in any one of claims 1 to 6 is implemented.