Method and system for searching for vehicles on a designated route based on trajectory points
By matching the vehicle GPS data with the standard road set, the temporal sequence matching and segmentation technology of multiple roads is used to solve the problem of matching errors caused by trajectory point drift, achieve more accurate route matching and vehicle search, and are suitable for massive data processing and logistics supervision.
Patent Information
- Application Number
- CN202110170111.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-03
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-02-03
AI Technical Summary
The existing technology has the problem that abnormal trajectory points lead to large matching errors during the trajectory point matching process, especially when the trajectory points reported by the vehicle and the machine drift, which affects the accuracy of the statistical results.
By obtaining the GPS data of the vehicle, drawing the road data set, and matching it with the standard road set, we use the time-sequential matching and segmentation technology of multiple roads to extract route features to improve the matching accuracy and solve the matching error caused by abnormal trajectory points.
It achieves more accurate route matching results and vehicle search results, improves the accuracy and efficiency of matching, can efficiently process massive vehicle data, and is suitable for freight logistics and highway construction planning.
Smart Images

Figure CN112836144B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of artificial intelligence technology, and specifically, relates to a method and system for searching for vehicles on a specified route based on trajectory points. Background Art
[0002] The existing technology for analyzing vehicle driving behavior based on trajectory data mainly starts from the perspective of known vehicles and processes and calculates a certain vehicle or a group of vehicles that travel through certain geographical locations. It lacks an accurate and efficient method for reverse searching for vehicles based on routes.
[0003] The patent document with patent number CN111552761A discloses an analysis method for finding the longest matching segment between a target trajectory and a specified route. The core implementation method of the matching is to obtain the matching status of the trajectory point and the specified route by calculating the vertical distance between the current trajectory point and the specified route. If the vertical distance between the current trajectory point and the specified route is less than or equal to the given distance threshold, the current trajectory point is judged to match the specified route. This method makes matching judgments based on distance, and does not solve the problem of trajectory point offset. For example, if the trajectory point reported by the vehicle computer drifts, it will seriously affect the accuracy of the statistical results. Summary of the invention
[0004] The present invention proposes a method and system for searching for vehicles on a specified route based on trajectory points, aiming to solve the problems of abnormal trajectory points and large matching errors in the existing route matching process.
[0005] According to a first aspect of an embodiment of the present application, a method for searching for vehicles on a specified route based on track points is provided, which specifically includes the following steps:
[0006] Get vehicle data and vehicle GPS data within a specified geographic range;
[0007] According to the trajectory points of the vehicle's GPS data, the vehicle's road is drawn, and finally the road data set of each vehicle is obtained;
[0008] According to the map data of the designated route, a standard road set of the designated route is obtained; wherein a plurality of standard roads in the standard road set sequentially constitute a complete designated route with direction;
[0009] The road data in the road data sets of multiple vehicles are matched one by one with the standard roads in the standard road set to obtain the matching overlap rate of the road data sets of each vehicle, and obtain vehicles whose matching overlap rate is greater than or equal to a first overlap rate threshold.
[0010] In some embodiments of the present application, the road data set is a road list consisting of multiple roads sorted in chronological order, and each road is formed by describing track points of GPS data.
[0011] In some embodiments of the present application, the road data in the road data sets of multiple vehicles are matched one by one with the standard roads in the standard road set to obtain the matching overlap rate of the road data sets of each vehicle, specifically including:
[0012] Traversing each road in the road data set of each vehicle, matching it with the first M roads and / or the last N roads in the standard road set, and obtaining at least one road data subset;
[0013] Each road in the road data subset is traversed, and matched with each standard road in the standard road set one by one to obtain the road data subset matching coincidence rate, and obtain vehicles whose road data subset matching coincidence rate is greater than or equal to the second coincidence rate threshold.
[0014] In some embodiments of the present application, each road in the road data set of each vehicle is traversed and matched with the first M roads and / or the last N roads in the standard road set to obtain at least one road data subset, specifically including:
[0015] Traverse the road data set of each vehicle in chronological order, select M roads including the current road, and match them one by one with the first M roads in the standard road set. When the number of matched roads is greater than or equal to the first matching threshold, mark the current road as the route start road;
[0016] Select N roads after the current road and match them one by one with the last N roads in the standard road set. When the number of matched roads is greater than or equal to the second matching threshold, mark the last road of the N roads in the road data set as the end road of the route.
[0017] The road data set is divided into at least one road data subset according to the route start road and the route end road; wherein the road data subset starts with the route start road and ends with the route end road.
[0018] In some embodiments of the present application, each road in the road data set of each vehicle is traversed and matched with the first M roads and / or the last N roads in the standard road set to obtain at least one road data subset, specifically including:
[0019] Traverse the road data set of each vehicle in chronological order, select M roads including the current road, and match them one by one with the first M roads in the standard road set. When the number of matched roads is greater than or equal to the first matching threshold, mark the current road as the route start road;
[0020] According to the route start road, the road data set is divided into at least one road data subset; wherein the road data subset starts with the route start road.
[0021] In some embodiments of the present application, each road in the road data set of each vehicle is traversed and matched with the first M roads and / or the last N roads in the standard road set to obtain at least one road data subset, specifically including:
[0022] Traverse the road data set of each vehicle in chronological order, select N roads after the current road, and match them one by one with the last N roads in the standard road set. When the number of matched roads is greater than or equal to the second matching threshold, mark the last road of the N roads in the road data set as the end road of the route;
[0023] According to the end road of the route, the road data set is divided into at least one road data subset; wherein the road data subset ends with the end road of the route.
[0024] In some embodiments of the present application, traversing each road in the road data subset, matching each standard road in the standard road set one by one, obtaining the road data subset matching coincidence rate, and obtaining vehicles whose road data subset matching coincidence rate is greater than or equal to the second coincidence rate threshold, specifically includes:
[0025] Traversing each road in at least one road data subset in chronological order, matching each standard road in the standard road set one by one, and marking the current road data subset when the number of matched roads is greater than or equal to a third matching threshold;
[0026] According to the marked road data subset, the corresponding vehicle data and travel time data are determined.
[0027] According to a second aspect of an embodiment of the present application, a system for searching for vehicles on a specified route based on trajectory points is provided, specifically comprising:
[0028] Vehicle data module: used to obtain vehicle data within a specified geographic range and vehicle GPS data;
[0029] Road data module: used to draw the road of the vehicle according to the trajectory points of the vehicle's GPS data, and finally obtain the road data set of each vehicle;
[0030] The designated route module is used to obtain a standard road set of the designated route according to the map data of the designated route; wherein the multiple standard roads in the standard road set sequentially constitute a complete designated route with direction;
[0031] Matching search module: used to match the road data in the road data sets of multiple vehicles with the standard roads in the standard road set one by one, obtain the matching overlap rate of the road data sets of each vehicle, and obtain vehicles whose matching overlap rate is greater than or equal to the first overlap rate threshold.
[0032] According to a third aspect of an embodiment of the present application, there is provided a device for searching for vehicles on a designated route based on track points, comprising:
[0033] Memory: used to store executable instructions; and
[0034] Processor: used to connect with the memory to execute executable instructions to complete the method of searching for vehicles on a designated route based on trajectory points.
[0035] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored; the computer program is executed by a processor to implement a method for searching for vehicles on a designated route based on trajectory points.
[0036] The method and system for searching for vehicles on a designated route based on trajectory points in the embodiments of the present application are used to obtain vehicle data and GPS data of vehicles within a designated geographical range; the roads of the vehicles are drawn according to the trajectory points of the vehicle's GPS data, and finally a road data set of each vehicle is obtained; a standard road set of the designated route is obtained according to the map data of the designated route; wherein a plurality of standard roads in the standard road set sequentially constitute a complete designated route with direction; the road data in the road data sets of multiple vehicles are matched one by one with the standard roads in the standard road set, respectively, to obtain the matching coincidence rate of the road data sets of each vehicle, and obtain vehicles whose matching coincidence rate is greater than or equal to the first coincidence rate threshold. The present application obtains more accurate route matching results and vehicle search results by extracting the features of each section of the target route and comparing the features with the road sequence on which the vehicle is traveling. The present application solves the problem of matching errors caused by abnormal trajectory points by comparing roads with roads, compared with the comparison of distances between single trajectory points. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0038] Figure 1 A schematic diagram of the steps of a method for searching for vehicles on a designated route based on trajectory points according to an embodiment of the present application is shown in FIG.
[0039] Figure 2 : A schematic diagram of a process of searching for vehicles on a designated route based on trajectory points according to an embodiment of the present application is shown;
[0040] Figure 3 FIG. 2 shows a schematic diagram of the principle of dividing a road data set of a vehicle into road data subsets according to an embodiment of the present application;
[0041] Figure 4: shows a schematic diagram of the structure of a system for searching for vehicles on a designated route based on trajectory points according to an embodiment of the present application;
[0042] Figure 5 A schematic diagram of the structure of a device for searching for vehicles on a specified route based on trajectory points according to an embodiment of the present application is shown in FIG. DETAILED DESCRIPTION
[0043] In the process of implementing this application, the inventor found that in terms of analyzing vehicle driving behavior based on trajectory data, the core implementation method of route matching is to obtain the matching status of the trajectory point and the specified route by calculating the vertical distance between the current trajectory point and the specified route. The existing method does not solve the situation of trajectory point offset. For example, if the trajectory point reported by the vehicle computer drifts, it will seriously affect the accuracy of the statistical results.
[0044] Based on this, the present application obtains the road sequence that the vehicle has traveled through through road network matching based on the vehicle trajectory points, and then obtains the route sequence by combining the geographic GIS data. The pattern characteristics of the route sequence entering and exiting the designated highway section are compared with the route sequence pattern of driving to find out the vehicles that have passed through the highway and the specific time of passing.
[0045] Specifically, the method and system of searching for vehicles on a designated route based on trajectory points of the present application obtain vehicle data and vehicle GPS data within a designated geographical range; map the roads of the vehicles based on the trajectory points of the vehicle's GPS data, and finally obtain a road data set for each vehicle; obtain a standard road set for the designated route based on the map data of the designated route; wherein multiple standard roads in the standard road set sequentially constitute a complete designated route with direction; match the road data in the road data sets of multiple vehicles with the standard roads in the standard road set one by one, obtain a matching overlap rate of the road data sets of each vehicle, and obtain vehicles whose matching overlap rate is greater than or equal to a first overlap rate threshold.
[0046] This application extracts the features of each section of the target route and compares the features with the road sequence that the vehicle is traveling on to obtain more accurate route matching results and vehicle search results. This application solves the problem of matching errors caused by abnormal trajectory points by comparing roads with each other, rather than comparing the distances between single trajectory points.
[0047] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0048] Example 1
[0049] Figure 1 Schematic diagram of the steps of a method for searching for vehicles on a designated route based on trajectory points according to an embodiment of the present application is shown in FIG.
[0050] like Figure 1 As shown, the method for searching for vehicles on a specified route based on trajectory points in an embodiment of the present application specifically includes the following steps:
[0051] S101: Acquire vehicle data and GPS data of vehicles within a specified geographical range.
[0052] Specifically, according to the user's search needs, the longitude and latitude range of the set route is filtered to obtain corresponding GPS data, which includes track point data of vehicles within the specified range, including vehicle ID, vehicle location and corresponding time.
[0053] S102: Draw the vehicle's road based on the trajectory points of the vehicle's GPS data, and finally obtain a road data set for each vehicle.
[0054] According to the trajectory point data of the vehicle's GPS data, the road sequence through which the vehicle travels can be matched to obtain the roads (link) passed by the vehicle. Then, these roads passed by are arranged into a list in chronological order to form the road data set of the vehicle.
[0055] Therefore, the road data set is a road list L (L0, L1, ..., Ln, ...) consisting of a plurality of roads sorted in chronological order, and each road (L0, L1, ..., Ln, ...) is formed by describing the trajectory points of GPS data.
[0056] S103: Obtaining a standard road set of the designated route according to the map data of the designated route; wherein a plurality of standard roads in the standard road set sequentially constitute a complete designated route with direction.
[0057] S104: Match the road data in the road data sets of multiple vehicles with the standard roads in the standard road set one by one, obtain the matching overlap rate of the road data sets of each vehicle, and obtain vehicles whose matching overlap rate is greater than or equal to a first overlap rate threshold.
[0058] Specifically, it includes the following two steps:
[0059] Step 1: traverse each road in the road data set of each vehicle, match it with the first M roads and / or the last N roads in the standard road set, and obtain at least one road data subset.
[0060] In step one, there are three implementation methods.
[0061] a) First, traverse the road data set of each vehicle in chronological order, select M roads including the current road, and match them one by one with the first M roads in the standard road set. When the number of matched roads is greater than or equal to the first matching threshold, mark the current road as the route start road.
[0062] Secondly, select N roads after the current road and match them one by one with the last N roads in the standard road set. When the number of matched roads is greater than or equal to the second matching threshold, mark the last road of the N roads in the road data set as the end road of the route.
[0063] Finally, the road data set is segmented into at least one road data subset according to the route start road and the route end road; wherein the road data subset starts with the route start road and ends with the route end road.
[0064] The road data subset obtained by dividing in this way is more consistent with the standard route, which improves the accuracy.
[0065] b) First, traverse the road data set of each vehicle in chronological order, select M roads including the current road, and match them one by one with the first M roads in the standard road set. When the number of matched roads is greater than or equal to the first matching threshold, mark the current road as the route start road.
[0066] Finally, the road data set is divided into at least one road data subset according to the route start road; wherein the road data subset starts with the route start road.
[0067] C) traversing the road data set of each vehicle in chronological order, selecting N roads after the current road, and matching them one by one with the last N roads in the standard road set, and when the number of matched roads is greater than or equal to a second matching threshold, marking the last road of the N roads in the road data set as the end road of the route;
[0068] According to the end road of the route, the road data set is divided into at least one road data subset; wherein the road data subset ends with the end road of the route.
[0069] When the matching time limit is required to be higher, the present application selects methods b and c to divide the road data subsets, thereby further improving the division efficiency.
[0070] The present application takes into account that the same vehicle may travel back and forth to the designated route multiple times within the search range, and therefore adopts step one to segment the road data set of each vehicle, specifically by matching and segmenting the vehicle's road data set with the starting and ending sections of the designated route to obtain at least one road data subset, and one road data subset represents that the vehicle has passed the designated route once.
[0071] Step 2: traverse each road in the road data subset, match it with each standard road in the standard road set one by one, obtain the road data subset matching coincidence rate, and obtain vehicles whose road data subset matching coincidence rate is greater than or equal to the second coincidence rate threshold.
[0072] When the step 2 is implemented, first, each road in at least one road data subset is traversed in chronological order, and matched with each standard road in the standard road set one by one. When the number of matched roads is greater than or equal to the third matching threshold, the current road data subset is marked. Finally, the corresponding vehicle data and travel time data are determined according to the marked road data subset.
[0073] In the embodiment of the present application, although the starting road and / or ending road in the road data subset matches the starting road and / or ending road of the specified route, it is still uncertain whether the intermediate roads match. Therefore, through step two, each road data subset is matched with the standard road set. If the matching overlap rate meets the requirements, the vehicle and route corresponding to the road data subset are one of the search results.
[0074] Figure 2 Detailed description of the process of searching for vehicles on a designated route based on trajectory points according to an embodiment of the present application is shown in FIG. Figure 3 A schematic diagram showing the principle of dividing a vehicle's road data set into road data subsets according to an embodiment of the present application is shown in FIG.
[0075] In specific implementation, Figure 2 As shown, first, input data, including vehicle data and road data.
[0076] Vehicle data: According to the trajectory point data, match the road sequence (link) that the vehicle travels through, filter according to the longitude and latitude range of the set route, and obtain a road list L (L0, L1, ...Ln...) for each vehicle in the chronological order of the route.
[0077] Road data: Use map GIS data to take a road sequence template that is passed through a complete specified route to form a standard road set pattern, including the specified route direction.
[0078] Next, the list L of the road dataset is matched with the standard road set pattern, and the start / end sub-patterns are extracted from the pattern. For example, the first 20 sub-patterns and the last 20 sub-patterns are extracted.
[0079] like Figure 3As shown, each road in the list L of each vehicle's road data set is traversed and matched with the first 20 roads in the standard road set. If there are more than 6 roads that match in the same time order, the sequence number of the current road is marked, such as beg0, as the start mark of a route sub-pattern. After traversal, all sequence number sets M (beg0, beg1, ... begn ...) that meet the start condition are found.
[0080] If M in the previous step is not an empty set, then traverse the subsequence consisting of two start identifiers, the start and the end, to find the sub-pattern end identifier. If there are more than 6 roads with the same time sequence that match, then mark the last number of the matching road as the end identifier of the route sub-pattern.
[0081] Finally, the road data set can be segmented into at least one road data subset through a sub-pattern start identifier and a sub-pattern end identifier.
[0082] In the map stage, the application filters vehicle travel data according to the longitude and latitude range of the specified route and the time range to be queried; extracts the standard road set Pattern in two directions of the route from the GIS data and puts it into the memory; in the matching stage, for each vehicle's road sequence, matches the qualified subsequence according to the Pattern, and outputs the qualified vehicles, including the vehicle travel start time, that is, the time corresponding to the first road in the subsequence, and the vehicle travel end time, that is, the time corresponding to the last road in the subsequence.
[0083] The method for searching for vehicles on a designated route based on trajectory points in the embodiment of the present application obtains vehicle data and GPS data of vehicles within a designated geographical range; maps the roads of the vehicles based on the trajectory points of the GPS data of the vehicles, and finally obtains a road data set of each vehicle; obtains a standard road set of the designated route based on the map data of the designated route; wherein the multiple standard roads in the standard road set sequentially constitute a complete designated route with direction; matches the road data in the road data sets of multiple vehicles with the standard roads in the standard road set one by one, obtains the matching coincidence rate of the road data sets of each vehicle, and obtains vehicles whose matching coincidence rate is greater than or equal to the first coincidence rate threshold. The present application obtains more accurate route matching results and vehicle search results by extracting the features of each section of the target route and comparing the features with the road sequence of the vehicle.
[0084] The present application solves the problem of matching errors caused by abnormal trajectory points by comparing roads with each other rather than comparing the distances between single trajectory points.
[0085] This application processes massive amounts of vehicle driving data based on big data technology, mines and analyzes the driving behavior of vehicles with unknown ranges, and adopts Hadoop's MapReduce distributed computing model. Through the design of key-value types and a customized sorting method, it can efficiently and quickly find the target vehicle from tens of millions of vehicles with relatively small memory resources.
[0086] At the same time, this application can accurately obtain the time points when vehicles enter and exit the route, and can quickly find the vehicles that have passed the specified route within the specified time range. It can provide important data support for freight logistics, vehicle supervision, highway construction planning, etc.
[0087] Example 2
[0088] This embodiment provides a system for searching for vehicles on a specified route based on trajectory points. For details not disclosed in the system for searching for vehicles on a specified route based on trajectory points in this embodiment, please refer to the specific implementation content of the method for searching for vehicles on a specified route based on trajectory points in other embodiments.
[0089] Figure 4 A structural schematic diagram of a system for searching for vehicles on a designated route based on trajectory points according to an embodiment of the present application is shown in FIG.
[0090] like Figure 4 As shown, the system for searching for vehicles on a designated route based on trajectory points in an embodiment of the present application specifically includes a vehicle data module 10 , a road data module 20 , a designated route module 30 and a matching search module 40 .
[0091] Specifically,
[0092] The vehicle data module 10 is used to obtain vehicle data within a specified geographical range and GPS data of the vehicle.
[0093] Specifically, according to the user's search needs, the longitude and latitude range of the set route is filtered to obtain corresponding GPS data, which includes track point data of vehicles within the specified range, including vehicle ID, vehicle location and corresponding time.
[0094] Road data module 20: used to draw the road of the vehicle according to the track points of the GPS data of the vehicle, and finally obtain the road data set of each vehicle.
[0095] According to the trajectory point data of the vehicle's GPS data, the road sequence through which the vehicle travels can be matched to obtain the roads (link) passed by the vehicle. Then, these roads passed by are arranged into a list in chronological order to form the road data set of the vehicle.
[0096] Therefore, the road data set is a road list L (L0, L1, ..., Ln, ...) consisting of a plurality of roads sorted in chronological order, and each road (L0, L1, ..., Ln, ...) is formed by describing the trajectory points of GPS data.
[0097] The designated route module 30 is used to obtain a standard road set of the designated route according to the map data of the designated route; wherein the multiple standard roads in the standard road set sequentially constitute a complete designated route with direction.
[0098] Matching search module 40: used to match the road data in the road data sets of multiple vehicles with the standard roads in the standard road set one by one, obtain the matching overlap rate of the road data sets of each vehicle, and obtain vehicles whose matching overlap rate is greater than or equal to the first overlap rate threshold.
[0099] Specifically, it includes the following two steps:
[0100] Step 1: traverse each road in the road data set of each vehicle, match it with the first M roads and / or the last N roads in the standard road set, and obtain at least one road data subset.
[0101] In step one, there are three implementation methods.
[0102] a) First, traverse the road data set of each vehicle in chronological order, select M roads including the current road, and match them one by one with the first M roads in the standard road set. When the number of matched roads is greater than or equal to the first matching threshold, mark the current road as the route start road.
[0103] Secondly, select N roads after the current road and match them one by one with the last N roads in the standard road set. When the number of matched roads is greater than or equal to the second matching threshold, mark the last road of the N roads in the road data set as the end road of the route.
[0104] Finally, the road data set is segmented into at least one road data subset according to the route start road and the route end road; wherein the road data subset starts with the route start road and ends with the route end road.
[0105] The road data subset obtained by dividing in this way is more consistent with the standard route, which improves the accuracy.
[0106] b) First, traverse the road data set of each vehicle in chronological order, select M roads including the current road, and match them one by one with the first M roads in the standard road set. When the number of matched roads is greater than or equal to the first matching threshold, mark the current road as the route start road.
[0107] Finally, the road data set is divided into at least one road data subset according to the route start road; wherein the road data subset starts with the route start road.
[0108] C) traversing the road data set of each vehicle in chronological order, selecting N roads after the current road, and matching them one by one with the last N roads in the standard road set, and when the number of matched roads is greater than or equal to a second matching threshold, marking the last road of the N roads in the road data set as the end road of the route;
[0109] According to the end road of the route, the road data set is divided into at least one road data subset; wherein the road data subset ends with the end road of the route.
[0110] When the matching time limit is required to be higher, the present application selects methods b and c to divide the road data subsets, thereby further improving the division efficiency.
[0111] The present application takes into account that the same vehicle may travel back and forth to the designated route multiple times within the search range, and therefore adopts step one to segment the road data set of each vehicle, specifically by matching and segmenting the vehicle's road data set with the starting and ending sections of the designated route to obtain at least one road data subset, and one road data subset represents that the vehicle has passed the designated route once.
[0112] Step 2: traverse each road in the road data subset, match it with each standard road in the standard road set one by one, obtain the road data subset matching coincidence rate, and obtain vehicles whose road data subset matching coincidence rate is greater than or equal to the second coincidence rate threshold.
[0113] When the step 2 is implemented, first, each road in at least one road data subset is traversed in chronological order, and matched with each standard road in the standard road set one by one. When the number of matched roads is greater than or equal to the third matching threshold, the current road data subset is marked. Finally, the corresponding vehicle data and travel time data are determined according to the marked road data subset.
[0114] In the embodiment of the present application, although the starting road and / or ending road in the road data subset matches the starting road and / or ending road of the specified route, it is still uncertain whether the intermediate roads match. Therefore, through step two, each road data subset is matched with the standard road set. If the matching overlap rate meets the requirements, the vehicle and route corresponding to the road data subset are one of the search results.
[0115] In the method for searching for vehicles on a designated route based on trajectory points in the embodiment of the present application, the vehicle data module 10 obtains the vehicle data and the GPS data of the vehicle within the designated geographical range; the road data module 20 draws the road of the vehicle according to the trajectory points of the vehicle's GPS data, and finally obtains the road data set of each vehicle; the designated route module 30 obtains the standard road set of the designated route according to the map data of the designated route; wherein the multiple standard roads in the standard road set sequentially constitute a complete designated route with direction; the matching search module 40 matches the road data in the road data set of multiple vehicles with the standard roads in the standard road set one by one, obtains the matching coincidence rate of the road data set of each vehicle, and obtains the vehicle whose matching coincidence rate is greater than or equal to the first coincidence rate threshold. The present application obtains more accurate route matching results and vehicle search results by extracting the features of each section of the target route and comparing the features with the road sequence of the vehicle. The present application solves the problem of matching errors caused by abnormal trajectory points by comparing roads with roads, compared with the comparison of distances between single trajectory points.
[0116] This application processes massive amounts of vehicle driving data based on big data technology, mines and analyzes the driving behavior of vehicles with unknown ranges, and adopts Hadoop's MapReduce distributed computing model. Through the design of key-value types and a customized sorting method, it can efficiently and quickly find the target vehicle from tens of millions of vehicles with relatively small memory resources.
[0117] At the same time, this application can accurately obtain the time points when vehicles enter and exit the route, and can quickly find the vehicles that have passed the specified route within the specified time range. It can provide important data support for freight logistics, vehicle supervision, highway construction planning, etc.
[0118] Example 3
[0119] This embodiment provides a device for searching for vehicles on a specified route based on trajectory points. For details not disclosed in the device for searching for vehicles on a specified route based on trajectory points in this embodiment, please refer to the specific implementation content of the method or system for searching for vehicles on a specified route based on trajectory points in other embodiments.
[0120] Figure 5 Schematic diagram of the structure of a device 400 for searching for vehicles on a specified route based on trajectory points according to an embodiment of the present application is shown in FIG.
[0121] like Figure 5 As shown, the search device 400 includes:
[0122] Memory 402: used to store executable instructions; and
[0123] Processor 401: used to connect with memory 402 to execute executable instructions to complete the motion vector prediction method.
[0124] Those skilled in the art will understand that Figure 5 This is only an example of the search device 400 and does not constitute a limitation of the search device 400. The search device 400 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the search device 400 may also include input and output devices, network access devices, buses, etc.
[0125] The processor 401 (Central Processing Unit, CPU) may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor 401 may also be any conventional processor, etc. The processor 401 is the control center of the search device 400, and uses various interfaces and lines to connect various parts of the entire search device 400.
[0126] The memory 402 can be used to store computer-readable instructions. The processor 401 implements various functions of the search device 400 by running or executing the computer-readable instructions or modules stored in the memory 402 and calling the data stored in the memory 402. The memory 402 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the search device 400, etc. In addition, the memory 402 can include a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM) or other non-volatile / volatile storage devices.
[0127] If the module integrated in the search device 400 is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware to complete it through computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium, and when the computer-readable instructions are executed by the processor, the steps of the above-mentioned various method embodiments can be implemented.
[0128] Example 4
[0129] This embodiment provides a computer-readable storage medium on which a computer program is stored; the computer program is executed by a processor to implement the method of searching for vehicles on a designated route based on trajectory points in other embodiments.
[0130] The device and computer storage medium for searching for vehicles on a designated route based on trajectory points in the embodiment of the present application obtain vehicle data and vehicle GPS data within a designated geographical range; map the vehicle's roads based on the trajectory points of the vehicle's GPS data, and finally obtain a road data set for each vehicle; obtain a standard road set for the designated route based on the map data of the designated route; wherein multiple standard roads in the standard road set sequentially constitute a complete designated route with direction; match the road data in the road data sets of multiple vehicles with the standard roads in the standard road set one by one, obtain the matching coincidence rate of the road data sets of each vehicle, and obtain vehicles whose matching coincidence rate is greater than or equal to the first coincidence rate threshold. The present application obtains more accurate route matching results and vehicle search results by extracting the features of each section of the target route and comparing the features with the road sequence on which the vehicle is traveling.
[0131] The present application solves the problem of matching errors caused by abnormal trajectory points by comparing roads with each other rather than comparing the distances between single trajectory points.
[0132] This application processes massive amounts of vehicle driving data based on big data technology, mines and analyzes the driving behavior of vehicles with unknown ranges, and adopts Hadoop's MapReduce distributed computing model. Through the design of key-value types and a customized sorting method, it can efficiently and quickly find the target vehicle from tens of millions of vehicles with relatively small memory resources.
[0133] At the same time, this application can accurately obtain the time points when vehicles enter and exit the route, and can quickly find the vehicles that have passed the specified route within the specified time range. It can provide important data support for freight logistics, vehicle supervision, highway construction planning, etc.
[0134] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0135] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0138] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0139] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0140] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0141] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for searching for vehicles on a specified route based on trajectory points, specifically comprising: Get vehicle data and vehicle GPS data within a specified geographic range; According to the trajectory points of the GPS data of the vehicle, the road through which the vehicle passes is drawn, and finally a road data set of each vehicle is obtained; According to the map data of the designated route, a standard road set of the designated route is obtained; wherein a plurality of standard roads in the standard road set sequentially constitute a complete designated route with direction; Matching the road data in the road data sets of the multiple vehicles with the standard roads in the standard road set one by one, obtaining a matching coincidence rate of the road data sets of each vehicle, and obtaining vehicles whose matching coincidence rate is greater than or equal to a first coincidence rate threshold; The step of matching the road data in the road data sets of the plurality of vehicles with the standard roads in the standard road set one by one to obtain the matching overlap rate of the road data sets of each vehicle specifically includes: Traversing each road in the road data set of each vehicle, matching it with the first M roads and / or the last N roads in the standard road set, and obtaining at least one road data subset; Traverse each road in the road data subset, match each standard road in the standard road set one by one, obtain the road data subset matching coincidence rate, and obtain vehicles whose road data subset matching coincidence rate is greater than or equal to a second coincidence rate threshold.
2. The method for searching for vehicles on a designated route based on trajectory points according to claim 1, characterized in that: The road data set is a road list of multiple roads sorted in chronological order, and each road is formed by describing track points of GPS data.
3. The method for searching for vehicles on a designated route based on trajectory points according to claim 1, characterized in that: The traversing each road in the road data set of each vehicle and matching it with the first M roads and / or the last N roads in the standard road set to obtain at least one road data subset specifically includes: Traversing the road data set of each vehicle in chronological order, selecting M roads including the current road, and matching them one by one with the first M roads in the standard road set, and marking the current road as the route start road when the number of matched roads is greater than or equal to a first matching threshold; Select N roads after the current road, and match them one by one with the last N roads in the standard road set. When the number of matched roads is greater than or equal to a second matching threshold, mark the last road of the N roads in the road data set as the end road of the route. The road data set is divided into at least one road data subset according to the route start road and the route end road; wherein the road data subset starts with the route start road and ends with the route end road.
4. The method for searching for vehicles on a designated route based on trajectory points according to claim 1, characterized in that: The traversing each road in the road data set of each vehicle and matching it with the first M roads and / or the last N roads in the standard road set to obtain at least one road data subset specifically includes: Traversing the road data set of each vehicle in chronological order, selecting M roads including the current road, and matching them one by one with the first M roads in the standard road set, and marking the current road as the route start road when the number of matched roads is greater than or equal to a first matching threshold; According to the route start road, the road data set is divided into at least one road data subset; wherein the road data subset starts with the route start road.
5. The method for searching for vehicles on a designated route based on trajectory points according to claim 1, characterized in that: The traversing each road in the road data set of each vehicle and matching it with the first M roads and / or the last N roads in the standard road set to obtain at least one road data subset specifically includes: Traversing the road data set of each vehicle in chronological order, selecting N roads after the current road, and matching them one by one with the last N roads in the standard road set, and when the number of matched roads is greater than or equal to a second matching threshold, marking the last road of the N roads in the road data set as the end road of the route; According to the route end road, the road data set is divided into at least one road data subset; wherein the road data subset ends with the route end road.
6. The method for searching for vehicles on a designated route based on trajectory points according to claim 1, characterized in that: The traversing each road in the road data subset and matching each standard road in the standard road set one by one to obtain a road data subset matching coincidence rate, and obtaining vehicles whose road data subset matching coincidence rate is greater than or equal to a second coincidence rate threshold, specifically includes: Traversing each road in the at least one road data subset in chronological order, matching each standard road in the standard road set one by one, and marking the current road data subset when the number of matched roads is greater than or equal to a third matching threshold; Corresponding vehicle data and travel time data are determined based on the marked road data subset.
7. A system for searching for vehicles on a specified route based on trajectory points, characterized in that: Specifically include: Vehicle data module: used to obtain vehicle data within a specified geographic range and vehicle GPS data; Road data module: used to draw the road of the vehicle according to the track points of the GPS data of the vehicle, and finally obtain the road data set of each vehicle; The designated route module is used to obtain a standard road set of the designated route according to the map data of the designated route; wherein the multiple standard roads in the standard road set sequentially constitute a complete designated route with direction; A matching search module: used for matching the road data in the road data sets of the plurality of vehicles with the standard roads in the standard road set one by one, obtaining a matching coincidence rate of the road data sets of each vehicle, and obtaining vehicles whose matching coincidence rate is greater than or equal to a first coincidence rate threshold; The step of matching the road data in the road data sets of the plurality of vehicles with the standard roads in the standard road set one by one to obtain the matching overlap rate of the road data sets of each vehicle specifically includes: Traversing each road in the road data set of each vehicle, matching it with the first M roads and / or the last N roads in the standard road set, and obtaining at least one road data subset; Traverse each road in the road data subset, match each standard road in the standard road set one by one, obtain the road data subset matching coincidence rate, and obtain vehicles whose road data subset matching coincidence rate is greater than or equal to a second coincidence rate threshold.
8. A search device for searching vehicles on a specified route based on trajectory points, characterized in that: include: Memory: used to store executable instructions; as well as Processor: used to connect to the memory to execute the executable instructions to complete the method of searching for vehicles on a designated route based on trajectory points as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon; the computer program is executed by a processor to implement the method for searching for a vehicle on a designated route based on trajectory points as described in any one of claims 1-6.
Citation Information
Patent Citations
Analysis method for finding out longest matching section of target track and specified route
CN111552761A
A bicycle lane service level evaluation method based on shared bicycle track data
CN109816271A
