Taxi trajectory big data driven passenger route recommendation method, device and medium
By integrating the Gurobi optimization algorithm of the angle and A* algorithm, combined with the GPS direction and sharp point elimination method, the problem of large calculation amount and long running time in the existing technology is solved, and efficient passenger route recommendation driven by big data of taxi trajectory is realized. , reducing fuel consumption and traffic congestion.
Patent Information
- Application Number
- CN202210531460.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-16
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-05-16
AI Technical Summary
Existing taxi trajectory big data-driven passenger route recommendation methods are based on greedy algorithms or genetic algorithms, which result in large amounts of calculation, long running time, large I/O overhead, high memory consumption, and can easily lead to high fuel consumption and traffic congestion.
Using the Gurobi optimization algorithm integrating angle and A* algorithm, through the road network node extraction method based on the taxi GPS direction and the angle-based sharp point elimination method, combined with the heuristic function of the A* algorithm, the A-Gurobi algorithm is generated to optimize the route Recommend models to reduce node access and improve computational efficiency.
It realizes the rapid generation of the shortest route from the starting point to the end point, reduces the calculation time and fuel consumption, and improves the calculation efficiency and user experience.
Smart Images

Figure CN115049105B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing technology, and in particular to a method, device and medium for recommending passenger routes driven by taxi trajectory big data. Background Art
[0002] In the era of big data, with the rapid development of digital technology, the pace of life is getting faster and faster, and as a result, people's demand for travel is getting higher and higher. In order to meet people's demand for efficient travel, the passenger route recommendation method driven by taxi trajectory big data came into being.
[0003] In the prior art, the traditional taxi trajectory big data-driven passenger route recommendation method is usually based on a greedy algorithm or a genetic algorithm, both of which require access to a large number of nodes to calculate the shortest route. Since a large number of nodes need to be accessed, it is very easy to cause problems such as "high I / O overhead and high memory consumption". At the same time, when the amount of calculation is huge and the computing power is limited, a lot of computing time is required to obtain the shortest route, which leads to problems such as "long running time and low computing efficiency".
[0004] In addition, blind cruising in urban traffic can easily lead to problems such as "high fuel consumption and severe traffic congestion". * The Gurobi optimization algorithm of the algorithm is applied to recommend the optimal passenger route for taxi trajectory big data in complex urban road networks. Firstly, a road network node extraction method based on taxi GPS direction is proposed to solve the problem that it is difficult to extract road network nodes from taxi GPS trajectory data. Secondly, an angle-based sharp point elimination method (ASPE) is constructed to optimize the search ability of the Gurobi algorithm to find the shortest route. Thirdly, a method based on A * The Gurobi optimization algorithm (A-Gurobi) uses A * The heuristic function of the algorithm enhances the ability to quickly guide from the departure point to the destination and improves the execution efficiency of the Gurobi algorithm. Summary of the invention
[0005] The embodiments of the present application provide a method, device and medium for recommending passenger routes driven by taxi trajectory big data, which can quickly plan the shortest route from the starting point to the end point for the vehicle.
[0006] A first aspect of an embodiment of the present application provides a method for recommending passenger routes driven by taxi trajectory big data, comprising:
[0007] Obtain a vehicle motion trajectory dataset in the target area;
[0008] Generate road network node data according to the vehicle motion trajectory data set;
[0009] Generating a route recommendation model according to the road network node data, wherein the route recommendation model integrates a heuristic algorithm and an optimization algorithm;
[0010] Acquire a starting point and an end point of a user, wherein the starting point and the end point are located in the target area;
[0011] A recommended route from the starting point to the end point is generated according to the route recommendation model.
[0012] Optionally, generating a route recommendation model according to the road network node data includes:
[0013] A * The algorithm's heuristics are integrated into the Gurobi algorithm to generate the A-Gurobi algorithm;
[0014] A route recommendation model is generated according to the road network node data and the A-Gurobi algorithm, wherein the road network node data serves as a parameter of the route recommendation model.
[0015] Optionally, generating a recommended route from the starting point to the end point according to the route recommendation model includes:
[0016] The starting point is connected to each road network node in the road network node data of the route recommendation model and the end point respectively to obtain a plurality of line segments, wherein each road network node corresponds to a line segment, and the line segment formed by the starting point and the end point is the target line segment;
[0017] Calculate the degrees of the angles formed by the target line segment and other line segments respectively;
[0018] Deleting the road network nodes corresponding to the line segments whose included angles with the target line segment are greater than or equal to the first preset angle, to obtain the recommended road network nodes;
[0019] A recommended route is generated according to the recommended road network node, the starting point and the end point.
[0020] Optionally, generating road network node data according to the vehicle motion trajectory data set includes:
[0021] Extracting a target motion trajectory data set from the vehicle motion trajectory data set, wherein the operation state of the target motion trajectory data set is continuously empty vehicle-passenger-passenger, and the operation state includes empty vehicle and passenger;
[0022] Generate road network node data according to the target motion trajectory data set.
[0023] Optionally, generating road network node data according to the target motion trajectory data set includes:
[0024] Extracting the time, coordinates and direction of each point from the target motion trajectory data set;
[0025] Determine the road network nodes according to the coordinates and direction of each point;
[0026] The road network node data is generated according to the road network nodes, and the road network node data includes a weighted undirected graph and an adjacency matrix.
[0027] Optionally, determining the road network node according to the coordinates and direction of each point includes:
[0028] For any target motion trajectory data, the adjacency relationship between points is determined based on the time of each point;
[0029] Calculate the direction change amount according to the adjacency relationship between the points and the coordinates of each point, where the direction change amount is the angle between two line segments formed by a point and two adjacent points respectively;
[0030] When the direction change is greater than or equal to the second preset angle, the point adjacent to the other two points among the corresponding three points is determined to be a road network node.
[0031] Optionally, generating road network node data according to the road network nodes includes:
[0032] Determine the adjacency relationship between road network nodes;
[0033] Calculate the distance between adjacent road network nodes according to the coordinates of each road network node;
[0034] Generate an adjacency matrix and a weighted undirected graph according to the adjacency relationship between road network nodes and the distance between adjacent road network nodes;
[0035] The road network node data is generated according to the weighted undirected graph and the adjacency matrix.
[0036] Optionally, before extracting the target motion trajectory dataset from the vehicle motion trajectory dataset, the method further includes:
[0037] The isolated points in the vehicle motion trajectory data set are deleted.
[0038] A second aspect of the embodiment of the present application provides a passenger route recommendation device driven by taxi trajectory big data, comprising:
[0039] A first acquisition unit is used to acquire a vehicle motion trajectory dataset in a target area;
[0040] A first generating unit, configured to generate road network node data according to the vehicle motion trajectory data set;
[0041] A second generating unit, configured to generate a route recommendation model according to the road network node data, wherein the route recommendation model integrates a heuristic algorithm and an optimization algorithm;
[0042] A second acquisition unit is used to acquire a starting point and an end point of a user, wherein the starting point and the end point are located in the target area;
[0043] The third generating unit is used to generate a recommended route from the starting point to the end point according to the route recommendation model.
[0044] A third aspect of the embodiment of the present application provides a passenger route recommendation device driven by taxi trajectory big data, comprising:
[0045] Processor, memory, input-output unit, and bus;
[0046] The processor is connected to the memory, the input and output unit, and the bus;
[0047] A program is stored in the memory, and the processor calls the program to execute the taxi trajectory big data driven passenger route recommendation method in the first aspect and any possible implementation manner of the first aspect.
[0048] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, in which a program is stored. When the program is executed on a computer, the computer executes the method for recommending passenger routes driven by taxi trajectory big data in the first aspect and any possible implementation scheme of the first aspect.
[0049] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0050] The taxi trajectory big data driven passenger route recommendation method provided in the embodiment of the present application first obtains the vehicle motion trajectory data set of the target area, then generates the road network node data according to the vehicle trajectory data set, and then generates the route recommendation model integrating the heuristic algorithm and the optimization algorithm according to the road network node data, and finally generates the recommended route from the starting point to the end point for the user according to the route recommendation model. Since the route recommendation model in the embodiment of the present application integrates the heuristic algorithm and the optimization algorithm, it is possible to access fewer nodes in the process of generating the recommended route, which reduces the amount of calculation compared to the taxi trajectory big data driven passenger route recommendation method based on the greedy algorithm, and under the same computing power, the recommended route can be generated faster, which is conducive to improving the computing efficiency. At the same time, it reduces the time spent on user travel, which is conducive to improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1A flowchart of an embodiment of a method for recommending passenger routes driven by taxi trajectory big data in an embodiment of the present application;
[0052] Figure 2 A flowchart of another embodiment of the method for recommending passenger routes driven by taxi trajectory big data in the embodiment of the present application;
[0053] Figure 3 This is a structural schematic diagram of an embodiment of a device for recommending passenger routes driven by taxi trajectory big data in an embodiment of the present application;
[0054] Figure 4 This is a structural schematic diagram of another embodiment of the passenger route recommendation device driven by taxi trajectory big data in the embodiment of the present application;
[0055] Figure 5 This is a structural schematic diagram of another embodiment of the passenger route recommendation device driven by taxi trajectory big data in the embodiment of the present application. DETAILED DESCRIPTION
[0056] The embodiments of the present application provide a method, device and medium for recommending passenger routes driven by taxi trajectory big data, which are used to quickly plan the shortest route from a starting point to a destination for a vehicle.
[0057] The method of the present application can be applied to a server, a terminal or other devices with logic processing capabilities, and the present application does not limit this. For the convenience of description, the following description is made by taking the execution subject as a server as an example.
[0058] The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0059] See also Figure 1 In the embodiment of the present application, an embodiment of the method for recommending passenger routes driven by taxi trajectory big data includes:
[0060] 101. The server obtains a vehicle motion trajectory dataset in a target area;
[0061] In practical applications, generating recommended routes is based on mobile trajectory big data, and relevant information needs to be extracted from a large amount of data. Therefore, the server first needs to obtain the vehicle motion trajectory dataset of the target area. It should be noted that the vehicle motion trajectory dataset includes large-scale vehicle motion trajectory data, each vehicle motion trajectory data consists of multiple points, each point has corresponding attribute information, each vehicle motion trajectory data corresponds to a vehicle, and a vehicle may include one or more vehicle motion trajectory data, which is not limited here.
[0062] 102. The server generates road network node data according to the vehicle motion trajectory data set;
[0063] After obtaining the vehicle motion trajectory data set, the server can process the vehicle trajectory data set to generate road network node data. The road network node data includes multiple road network nodes and distances between adjacent road network nodes.
[0064] 103. The server generates a route recommendation model according to the road network node data;
[0065] After generating the road network node data, the server can generate a route recommendation model based on the road network node data, and provide route recommendation services to vehicles through the route recommendation model. It should be noted that the route recommendation model integrates heuristic algorithms and optimization algorithms, and has the properties of heuristic algorithms and optimization algorithms. That is, as long as the starting point and the end point are given, the route recommendation model can generate the shortest route based on its own road network node data in a relatively short time.
[0066] 104. The server obtains the user's starting point and end point;
[0067] If a recommended route is generated for a user, the user's starting point and end point need to be obtained first. The starting point and end point are located in the target area. Therefore, the server obtains the user's starting point and end point. It should be noted that the starting point and end point are both located in the target area and are expressed in the form of coordinates.
[0068] 105. The server generates a recommended route from the starting point to the end point according to the route recommendation model.
[0069] After obtaining the user's starting point and destination, the server can input the starting point and destination into the route recommendation model, and generate a recommended route from the starting point to the destination through the route recommendation model. After the recommended route is generated, the recommended route is fed back to the user, so that the user can start from the starting point and drive to the destination according to the recommended route, thus completing the travel plan.
[0070] It should be noted that the taxi trajectory big data driven passenger route recommendation method in this embodiment can be executed on a single server or a distributed server, and the specific details are not limited here. When executed on a distributed server, since the task is split into multiple servers, it can be executed in parallel on multiple servers, thereby improving the execution efficiency.
[0071] In this embodiment, the server first obtains the vehicle motion trajectory data set of the target area, then generates the road network node data according to the vehicle trajectory data set, and then generates the route recommendation model integrating the heuristic algorithm and the optimization algorithm according to the road network node data, and finally generates the recommended route from the starting point to the end point for the user according to the route recommendation model. Since the route recommendation model in the embodiment of the present application integrates the heuristic algorithm and the optimization algorithm, it is possible to access fewer nodes in the process of generating the recommended route. Compared with the taxi trajectory big data driven passenger route recommendation method based on the greedy algorithm, the amount of calculation is reduced, and under the same computing power, the recommended route can be generated faster, which is conducive to improving the computing efficiency. At the same time, it reduces the time spent on user travel, which is conducive to improving the user experience.
[0072] See also Figure 2 Another embodiment of the method for recommending passenger routes driven by taxi trajectory big data in the embodiment of the present application includes:
[0073] 201. The server obtains a vehicle motion trajectory dataset in a target area;
[0074] In this implementation, step 201 is similar to step 101 in the aforementioned embodiment and will not be described again here.
[0075] 202. The server deletes isolated points in the vehicle motion trajectory data set;
[0076] After the server obtains the vehicle motion trajectory data set, it can obtain any unprocessed vehicle motion trajectory data and determine whether the points are continuous. If it is found that there are points that are discontinuous with other points, they can be determined as isolated points, that is, garbage data, and then delete them. After the execution, the vehicle motion trajectory data is marked as an isolated point and deleted. The server repeatedly obtains the vehicle motion trajectory data and determines whether there are isolated points until all the vehicle motion trajectory data are processed.
[0077] 203. The server extracts a target motion trajectory dataset from the vehicle motion trajectory dataset;
[0078] After deleting the isolated points in the isolated points in the vehicle motion trajectory data set, the server can perform the extraction of the target motion trajectory data set from the vehicle motion trajectory data set. Specifically, any vehicle motion trajectory data for data extraction is obtained in sequence, and then the data whose operating status is continuously empty-passenger-passenger is extracted and used as the target motion trajectory data. The operating status includes two states: empty and passenger. It should be noted that after extracting a section of empty-passenger-passenger, data extraction is performed again from the next continuous point, so each extracted section of empty-passenger-passenger is non-repetitive. After performing data extraction on a vehicle motion trajectory data, the vehicle motion trajectory data is marked as having undergone target motion trajectory data extraction, and then the data extraction operation is performed on the next vehicle motion trajectory data that is not marked as having undergone target motion trajectory data extraction, until all vehicle motion trajectory data are marked as having undergone target motion trajectory data extraction, so that the target motion trajectory data set can be obtained. It should be noted that the vehicle motion trajectory data consists of multiple operating status segments, and each operating status segment consists of multiple continuous points.
[0079] 204. The server extracts the time and coordinates of each point from the target motion trajectory data set;
[0080] After extracting the target motion trajectory dataset, the server can extract the time, coordinate and direction information of each point, and use this information to generate road network node data.
[0081] 205. For any target motion trajectory data, the server determines the adjacency relationship between points according to the time of each point;
[0082] For any target motion trajectory data, the server can determine the adjacency relationship between these points according to the time of each point in the target motion trajectory data. Among them, for any point, among all the points before the time of the point, the point corresponding to the time closest to the time of the point is adjacent to the point; among all the points after the time of the point, the point corresponding to the time closest to the time of the point is adjacent to the point.
[0083] 206. The server calculates the direction change according to the adjacency relationship between the points and the coordinates of each point;
[0084] After obtaining the adjacency relationship between the points of the target motion trajectory data, the server can calculate the direction change according to the adjacency relationship between these points and the coordinates of these points. Specifically, the server first obtains a target point, which is a point with two adjacent points, and then calculates the straight line function of the target point and the two adjacent points according to the coordinates of the target point and the coordinates of the two adjacent points of the target point, and then calculates the angle of the two straight line functions, which is the direction change corresponding to the target point. The direction change indicates the angle at which the vehicle turns at the target point. The direction change corresponds to 3 points, namely the target point and the two adjacent points of the target point. After calculating the direction change of a target point, the server marks the target point as the calculated direction change, and then calculates the direction change of the next target point that is not marked as the calculated direction change, until the direction changes of all target points are calculated.
[0085] 207. When the direction change is greater than or equal to the second preset angle, the server determines that a point adjacent to the other two points among the corresponding three points is a road network node;
[0086] In the process of calculating the direction change in the target motion trajectory data, each time a direction change is calculated, the server can determine the direction change. If the direction change is greater than or equal to the second preset angle, the point adjacent to the other two points among the three points corresponding to the direction change is determined to be a road network node. It should be noted that the second preset angle is generally set to 90°, but can also be set to other degrees, which is not specifically limited here.
[0087] It should be noted that the server can not only perform the judgment of the road network node in the process of calculating the directional change in the target motion trajectory data, but also perform the judgment of the road network node after calculating all directional changes in the target motion trajectory data. The specific details are not limited here.
[0088] The server repeatedly executes steps 205 to 207 to determine the road network nodes of all target motion trajectory data.
[0089] 208. The server determines the adjacency relationship between the network nodes;
[0090] Since the amount of vehicle motion trajectory data set obtained in the target area is huge, in the case of large-scale data, the road network nodes obtained by the server must be directly or indirectly connected. Since the adjacency relationship between the road network nodes in each target motion trajectory data is determined, the server can determine the adjacency relationship between all road network nodes after obtaining the road network nodes of all target motion trajectory data.
[0091] 209. The server calculates the distance between adjacent road network nodes according to the coordinates of each road network node;
[0092] After determining the adjacency relationship between all the road network nodes, the server can calculate the distance between two adjacent road network nodes according to the coordinates of the road network nodes. It should be noted that the distance calculated here is the Euclidean distance, that is, the straight line distance between two adjacent road network nodes.
[0093] 210. The server generates an adjacency matrix and a weighted undirected graph according to the adjacency relationship between the road network nodes and the distance between adjacent road network nodes;
[0094] The server can generate a weighted undirected graph about all network nodes based on the adjacency relationship between all network nodes and the distance between adjacent network nodes. At the same time, the server can generate an adjacency matrix about all network nodes based on the adjacency relationship between all network nodes. The adjacency matrix is used to represent the adjacency matrix of all network nodes. A graph is a data structure consisting of a vertex set V and an edge set E between vertices, represented by a binary pair G(V,E). The vertex set of a weighted undirected graph is V={V 1 , V 2 , V 3 , V 4 ,}, the edge set is E={e 12 , e 13 , e 21 , e 23 , e 24 , e 31 , e 32 , e 34 , e 42 , e 43}, the weight can be represented by the distance from one vertex to another vertex. In this embodiment, all the road network nodes are the vertex set, the straight line segment between two adjacent road network nodes is the edge set, and the distance between the straight line segment between two adjacent road network nodes is the weight.
[0095] 211. The server generates road network node data according to the weighted undirected graph and the adjacency matrix;
[0096] After generating the weighted undirected graph and the adjacency matrix, the server also generates the road network node data, which is the combination of the weighted undirected graph and the adjacency matrix.
[0097] 212. The server will A * The algorithm's heuristics are integrated into the Gurobi algorithm to generate the A-Gurobi algorithm;
[0098] The server can A * The heuristics of the algorithm are integrated into the Gurobi algorithm to generate the A-Gurobi algorithm. Specifically, A* The heuristic function of the algorithm is integrated into the Gurobi algorithm. The heuristic function is shown in formula (1). Since the Gurobi algorithm is an optimization algorithm, A * The heuristic function of the algorithm is integrated into the A-Gurobi algorithm generated by the Gurobi algorithm. While having the characteristics of an optimization algorithm, it also has the characteristics of a heuristic algorithm.
[0099] f(n)=g(n)+h(n) (Formula 1)
[0100] Among them, f(n) represents the cost to the target point, g(n) represents the cost from the initial node to any node n, and h(n) represents the heuristic evaluation cost from node n to the target point.
[0101] 213. The server generates a route recommendation model based on the road network node data and the A-Gurobi algorithm;
[0102] After generating the road network node data and the A-Gurobi algorithm, the server can generate a route recommendation model based on the road network node data and the A-Gurobi algorithm, and provide route recommendation services to users through the route recommendation model. It should be noted that the route recommendation model integrates the heuristic algorithm and the optimization algorithm, and has the properties of the heuristic algorithm and the optimization algorithm. That is, as long as the starting point and the end point are given, the route recommendation model can generate the shortest route based on its own road network node data in a relatively short time.
[0103] 214. The server obtains the user's starting point and destination;
[0104] In this embodiment, step 214 is similar to step 104 in the aforementioned embodiment and will not be described again here.
[0105] 215. The server connects the starting point with each road network node and the end point in the road network node data of the route recommendation model to obtain multiple line segments, wherein each road network node corresponds to a line segment, and the line segment formed by the starting point and the end point is the target line segment;
[0106] After obtaining the user's starting point and end point, the server can use straight line segments to connect the starting point with the end point and each road network node in the road network node data of the route recommendation model to obtain multiple line segments. Each line segment corresponds to a road network node or end point, and each road network node or end point also corresponds to a line segment. Among all the line segments, the server can determine the line segment corresponding to the end point as the target line segment, which represents the displacement from the starting point to the end point.
[0107] 216. The server calculates the degrees of the angles formed by the target line segment and other line segments respectively;
[0108] Since the endpoints of each line segment include the starting point, all line segments are directly connected, and angles can be formed between these line segments. The server can calculate the angles between the target line segment and each of the other line segments. For the convenience of calculation, the server can use the starting point as the coordinate origin, the east-west direction as the X-axis, and the north-south direction as the Y-axis to establish a rectangular coordinate system, and calculate the angles between the target line segment and each of the other line segments.
[0109] 217. The server deletes the road network nodes corresponding to the line segments whose included angles with the target line segment are greater than or equal to the first preset angle, to obtain recommended road network nodes;
[0110] In actual applications, when the angle between a line segment corresponding to a road network node and the target line segment exceeds a certain degree, the road network node is usually not passed. Therefore, the server can delete the road network nodes corresponding to the line segments whose angles with the target line segment are greater than or equal to the first preset angle, and retain the remaining road network nodes, which are the recommended road network nodes.
[0111] In this embodiment, the server deletes the road network nodes other than the recommended road network nodes, which can reduce the calculation amount of the route recommendation model, which is beneficial to improving the operating efficiency of generating recommended routes, and at the same time can save resource overhead and reduce unnecessary resource waste.
[0112] 218. The server generates a recommended route based on the recommended road network nodes, the starting point, and the end point.
[0113] After obtaining the recommended road network nodes, the server may use the recommended road network nodes, the starting point and the end point as parameters of the route recommendation model, and generate a recommended route using the A-Gurobi algorithm in the route recommendation model.
[0114] See also Figure 3 In the embodiment of the present application, an embodiment of the taxi trajectory big data driven passenger route recommendation device includes:
[0115] A first acquisition unit 301 is used to acquire a vehicle motion trajectory dataset in a target area;
[0116] A first generating unit 302, configured to generate road network node data according to a vehicle motion trajectory data set;
[0117] The second generating unit 303 is used to generate a route recommendation model according to the road network node data, wherein the route recommendation model integrates a heuristic algorithm and an optimization algorithm;
[0118] The second acquisition unit 304 is used to acquire the starting point and the end point of the user, where the starting point and the end point are located in the target area;
[0119] The third generating unit 305 is used to generate a recommended route from the starting point to the end point according to the route recommendation model.
[0120] In this embodiment, the first acquisition unit 301 first acquires the vehicle motion trajectory data set of the target area, then the first generation unit 302 generates the road network node data according to the vehicle trajectory data set, and then the second generation unit 303 generates a route recommendation model that integrates the heuristic algorithm and the optimization algorithm according to the road network node data, and finally the third generation unit 305 generates a recommended route from the starting point to the end point for the user according to the route recommendation model. Since the route recommendation model in the embodiment of the present application integrates the heuristic algorithm and the optimization algorithm, the server can access fewer nodes in the process of generating the recommended route. Compared with the taxi trajectory big data driven passenger route recommendation method based on the greedy algorithm, the amount of calculation is reduced, and under the same computing power, the recommended route can be generated faster, which is conducive to improving the operation efficiency. At the same time, it reduces the time spent on user travel, which is conducive to improving the user experience.
[0121] See also Figure 4 Another embodiment of the taxi trajectory big data driven passenger route recommendation device in the embodiment of the present application includes:
[0122] A first acquisition unit 401 is used to acquire a vehicle motion trajectory dataset in a target area;
[0123] A first generating unit 402, configured to generate road network node data according to a vehicle motion trajectory data set;
[0124] The second generating unit 403 is used to generate a route recommendation model according to the road network node data, wherein the route recommendation model integrates a heuristic algorithm and an optimization algorithm;
[0125] The second acquisition unit 404 is used to acquire the starting point and the end point of the user, where the starting point and the end point are located in the target area;
[0126] The third generating unit 405 is used to generate a recommended route from the starting point to the end point according to the route recommendation model.
[0127] In this embodiment, the second generating unit 403 is specifically used for:
[0128] A * The algorithm's heuristics are integrated into the Gurobi algorithm to generate the A-Gurobi algorithm;
[0129] A route recommendation model is generated according to the road network node data and the A-Gurobi algorithm, wherein the road network node data is used as a parameter of the route recommendation model.
[0130] The third generating unit 405 is specifically used for:
[0131] The starting point is connected to each road network node and the end point in the road network node data of the route recommendation model respectively to obtain multiple line segments, wherein each road network node corresponds to a line segment, and the line segment formed by the starting point and the end point is used as the target line segment;
[0132] Calculate the degrees of the angles formed by the target line segment and other line segments respectively;
[0133] Deleting the road network nodes corresponding to the line segments whose included angles with the target line segment are greater than or equal to the first preset angle, to obtain the recommended road network nodes;
[0134] Generate recommended routes based on recommended road network nodes, starting points and end points.
[0135] In this embodiment, the first generating unit 402 may include an extracting module 4021 , a generating module 4022 , and a deleting module 4023 .
[0136] The extraction module 4021 is used to extract a target motion trajectory data set from the vehicle motion trajectory data set. The operation status of the target motion trajectory data set is continuously empty-passenger-passenger, and the operation status includes empty and passenger.
[0137] The generation module 4022 may include an extraction submodule 40221 , a determination submodule 40222 and a generation submodule 40223 .
[0138] The extraction submodule 40221 is used to extract the time, coordinates and direction of each point from the target motion trajectory data set.
[0139] Determine submodule 40222, for:
[0140] For any target motion trajectory data, the adjacency relationship between points is determined based on the time of each point;
[0141] The direction change is calculated based on the adjacency relationship between points and the coordinates of each point. The direction change is the angle between two line segments formed by a point and two adjacent points.
[0142] When the direction change is greater than or equal to the second preset angle, the point adjacent to the other two points among the corresponding three points is determined to be a road network node.
[0143] Generate submodule 40223 for:
[0144] Determine the adjacency relationship between road network nodes;
[0145] Calculate the distance between adjacent road network nodes according to the coordinates of each road network node;
[0146] Generate an adjacency matrix and a weighted undirected graph according to the adjacency relationship between road network nodes and the distance between adjacent road network nodes;
[0147] Generate road network node data based on weighted undirected graph and adjacency matrix.
[0148] In this embodiment, the functions of each unit and module are the same as those described above. Figure 2 The steps in the illustrated embodiments correspond to each other and will not be described again here.
[0149] See also Figure 5 Another embodiment of the taxi trajectory big data driven passenger route recommendation device in the embodiment of the present application includes:
[0150] Processor 501, memory 502, input and output unit 503 and bus 504;
[0151] The processor 501 is connected to the memory 502, the input and output unit 503 and the bus 504;
[0152] The memory 502 stores a program, and the processor 501 calls the program to execute Figure 1 to Figure 2 Steps in the illustrated embodiment.
[0153] In this embodiment, the function of the processor 501 is the same as that of the aforementioned Figure 1 to Figure 2 The steps in the illustrated embodiments correspond to each other and will not be described again here.
[0154] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0155] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be electrical, mechanical or other forms.
[0156] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0157] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or software functional unit.
[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or it can be understood that the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A passenger route recommendation method driven by taxi trajectory big data, It is characterized in that include: Obtain a vehicle motion trajectory dataset in the target area; Generate road network node data according to the vehicle motion trajectory data set; Generating a route recommendation model according to the road network node data, wherein the route recommendation model integrates a heuristic algorithm and an optimization algorithm; Acquire a starting point and an end point of a user, wherein the starting point and the end point are located in the target area; generating a recommended route from the starting point to the end point according to the route recommendation model; Generating a route recommendation model according to the road network node data comprises: A * The algorithm's heuristics are integrated into the Gurobi algorithm to generate the A-Gurobi algorithm; Generating a route recommendation model according to the road network node data and the A-Gurobi algorithm, wherein the road network node data serves as a parameter of the route recommendation model; The generating a recommended route from the starting point to the end point according to the route recommendation model comprises: The starting point is connected to each road network node in the road network node data of the route recommendation model and the end point respectively to obtain a plurality of line segments, wherein each road network node corresponds to a line segment, and the line segment formed by the starting point and the end point is the target line segment; Calculate the degrees of the angles formed by the target line segment and other line segments respectively; Deleting the road network nodes corresponding to the line segments whose included angles with the target line segment are greater than or equal to the first preset angle, to obtain the recommended road network nodes; Generate a recommended route according to the recommended road network node, the starting point and the end point; Generating road network node data according to the vehicle motion trajectory data set includes: Extracting a target motion trajectory data set from the vehicle motion trajectory data set, wherein the operation state of the target motion trajectory data set is continuously empty vehicle-passenger-passenger, and the operation state includes empty vehicle and passenger; Generate road network node data according to the target motion trajectory data set; Generating road network node data according to the target motion trajectory data set includes: Extracting the time and coordinates of each point from the target motion trajectory data set; Determine the road network nodes based on the time and coordinates of each point; Generate road network node data according to the road network nodes, wherein the road network node data includes a weighted undirected graph and an adjacency matrix; Before extracting the target motion trajectory dataset from the vehicle motion trajectory dataset, the method further includes: The isolated points in the vehicle motion trajectory data set are deleted.
2. The taxi trajectory big data driven passenger route recommendation method according to claim 1, It is characterized in that Determining the road network node according to the time and coordinates of each point includes: For any target motion trajectory data, the adjacency relationship between points is determined based on the time of each point; Calculate the direction change amount according to the adjacency relationship between the points and the coordinates of each point, where the direction change amount is the angle between two line segments formed by a point and two adjacent points respectively; When the direction change is greater than or equal to the second preset angle, the point adjacent to the other two points among the corresponding three points is determined to be a road network node.
3. The taxi trajectory big data driven passenger route recommendation method according to claim 1, It is characterized in that Generating road network node data according to the road network nodes comprises: Determine the adjacency relationship between road network nodes; Calculate the distance between adjacent road network nodes according to the coordinates of each road network node; Generate an adjacency matrix and a weighted undirected graph according to the adjacency relationship between road network nodes and the distance between adjacent road network nodes; The road network node data is generated according to the weighted undirected graph and the adjacency matrix.
4. A passenger route recommendation device driven by taxi trajectory big data, It is characterized in that include: A first acquisition unit is used to acquire a vehicle motion trajectory dataset in a target area; A first generating unit, configured to generate road network node data according to the vehicle motion trajectory data set; A second generating unit, configured to generate a route recommendation model according to the road network node data, wherein the route recommendation model integrates a heuristic algorithm and an optimization algorithm; A second acquisition unit is used to acquire a starting point and an end point of a user, wherein the starting point and the end point are located in the target area; A third generating unit, configured to generate a recommended route from the starting point to the end point according to the route recommendation model; The second generating unit is specifically used for: A * The algorithm's heuristics are integrated into the Gurobi algorithm to generate the A-Gurobi algorithm; Generating a route recommendation model according to the road network node data and the A-Gurobi algorithm, wherein the road network node data serves as a parameter of the route recommendation model; The third generating unit is specifically used for: The starting point is connected to each road network node in the road network node data of the route recommendation model and the end point respectively to obtain a plurality of line segments, wherein each road network node corresponds to a line segment, and the line segment formed by the starting point and the end point is the target line segment; Calculate the degrees of the angles formed by the target line segment and other line segments respectively; Deleting the road network nodes corresponding to the line segments whose included angles with the target line segment are greater than or equal to the first preset angle, to obtain the recommended road network nodes; Generate a recommended route according to the recommended road network node, the starting point and the end point; The first generating unit comprises: An extraction module is used to extract a target motion trajectory data set from the vehicle motion trajectory data set, wherein the operation state of the target motion trajectory data set is continuously empty vehicle-passenger-passenger, and the operation state includes empty vehicle and passenger; A generating module, used for generating road network node data according to the target motion trajectory data set; The generation module comprises: An extraction submodule, used to extract the time and coordinates of each point from the target motion trajectory data set; A determination submodule, used to determine the road network nodes according to the time and coordinates of each point; A generation module, used to generate road network node data according to the road network nodes, wherein the road network node data includes a weighted undirected graph and an adjacency matrix; The first generating unit further includes: The deletion module is used to delete isolated points in the vehicle motion trajectory data set.
5. A passenger route recommendation device driven by taxi trajectory big data, It is characterized in that include: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; A program is stored in the memory, and the processor calls the program to execute the passenger route recommendation method driven by taxi trajectory big data as described in any one of claims 1 to 3.
6. A computer-readable storage medium, wherein a program is stored in the computer-readable storage medium, and when the program is executed on a computer, the computer executes the taxi trajectory big data driven passenger route recommendation method as described in any one of claims 1 to 3.
