Path planning method and device
Through the adaptive path planning method, the congestion degree estimate of the bayonet cluster is used to optimize the path, and combined with future traffic flow prediction data, the traffic congestion problem caused by the path planning lag in the existing technology is solved, and the accuracy of the path planning is improved. and real-time.
Patent Information
- Application Number
- CN202111283418.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-01
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-11-01
AI Technical Summary
Due to the lag in real-time road network information updates, existing path planning methods lead to inaccurate path planning and traffic congestion.
Adopting an adaptive path planning method, by identifying multiple checkpoints between the starting point and the end point, the traffic flow is estimated based on historical traffic flow data, cluster analysis is used to generate checkpoint clusters, the congestion degree estimate is calculated, and the route planning is iteratively optimized. , combined with future traffic flow prediction data for path planning.
It effectively solves the traffic congestion problem caused by the lag in updating real-time road network information, improves the accuracy and real-time nature of path planning, and simplifies the path planning process.
Smart Images

Figure CN114184202B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of path planning, and in particular to a path planning method and device. Background Art
[0002] Traffic congestion is an urban disaster that brings about a series of negative impacts, such as a sharp increase in travel costs, increased commuting time, energy waste and environmental pollution. With the continuous upgrading of the intelligent urban traffic management system, the actual road conditions are monitored to formulate driving routes for travelers, effectively reducing traffic congestion and achieving reasonable distribution of traffic flow. However, due to the lag in monitoring the actual conditions, the route planning may also have a certain lag, which may lead to inaccurate route planning and cause traffic congestion. Summary of the invention
[0003] The present application provides a path planning method and device, which combines future traffic flow prediction data and adopts an adaptive method to perform path planning, thereby solving the problem of traffic congestion caused by a certain lag in real-time road network information update.
[0004] To achieve the above object, the present application provides a path planning method, which includes:
[0005] Determine multiple checkpoints between the starting point and the end point;
[0006] Predict the estimated traffic flow data for each checkpoint based on the historical traffic flow data of each checkpoint;
[0007] Performing cluster analysis on the multiple checkpoints to generate at least two checkpoint clusters; and determining an estimated congestion level of each checkpoint cluster based on traffic flow estimation data of at least some checkpoints in each checkpoint cluster;
[0008] Based on the estimated congestion level of each checkpoint cluster, the planned path from the starting point to the end point is determined.
[0009] The step of performing cluster analysis on the multiple checkpoints to generate at least two checkpoint clusters includes:
[0010] Select at least two bayonet points from a plurality of bayonet points as initial center bayonet points;
[0011] According to the principle of being closest to the initial center bayonet, the remaining bayonet is allocated to the bayonet cluster represented by the initial center bayonet, and the remaining bayonet is the bayonet other than at least two bayonet in the multiple bayonet.
[0012] The step of determining the estimated value of the congestion level of each checkpoint cluster based on the traffic flow estimated data of at least part of the checkpoints in each checkpoint cluster includes:
[0013] Calculate the discreteness of each bayonet in each bayonet cluster. The discreteness of a bayonet is the sum of the distances from the bayonet to the other bayonet in the bayonet cluster to which it belongs.
[0014] The bayonet with the smallest dispersion in each bayonet cluster is taken as the final central bayonet of each bayonet cluster;
[0015] The estimated congestion level of each checkpoint cluster is determined based on the traffic flow estimation data of the final central checkpoint of each checkpoint cluster.
[0016] The traffic flow estimation data of the checkpoint includes an estimated value of the number of vehicles at the checkpoint, an estimated value of the traffic volume, an estimated value of the traffic flow density and / or an estimated value of the average traffic speed.
[0017] The method further comprises:
[0018] Determine the historical traffic flow data of the neighboring checkpoints of each checkpoint, wherein the neighboring checkpoints of the checkpoint are checkpoints connected to the checkpoint and whose distance to the checkpoint is less than the first distance;
[0019] The steps of predicting the estimated traffic flow data of each checkpoint based on the historical traffic flow data of each checkpoint include:
[0020] Based on the historical traffic flow data of each checkpoint and the historical traffic flow data of its neighboring checkpoints, the estimated traffic flow data of each checkpoint is predicted.
[0021] The method further comprises:
[0022] Determine the weather characteristics of each set of historical traffic flow data for each checkpoint;
[0023] The steps of predicting the estimated traffic flow data of each checkpoint based on the historical traffic flow data of each checkpoint include:
[0024] The traffic flow estimation data of each checkpoint is predicted based on the current weather characteristics of each checkpoint, the historical traffic flow data of each checkpoint and its weather characteristics.
[0025] The method further comprises:
[0026] Determine the temporal and spatial characteristics of each set of historical traffic flow data at each checkpoint;
[0027] The steps of predicting the estimated traffic flow data of each checkpoint based on the historical traffic flow data of each checkpoint include:
[0028] Based on the current weather characteristics of each checkpoint, the historical traffic flow data of each checkpoint and its time characteristics, weather characteristics and spatial characteristics, the estimated traffic flow data of each checkpoint is predicted.
[0029] The steps of determining a planned path from a starting point to an end point based on the estimated congestion level of each checkpoint cluster include:
[0030] Perform at least one iteration process based on the estimated congestion level of each checkpoint cluster;
[0031] During the k+1th iteration, based on the planning starting point and the basic path determined in the kth iteration, the checkpoint cluster with the lowest estimated congestion level among all the checkpoint clusters including the next checkpoint of the planning starting point is determined; from the checkpoint cluster with the lowest estimated congestion level, the next checkpoint with the shortest distance to the planning starting point is selected; when the next checkpoint with the shortest distance meets the preset conditions, the basic path is updated based on the next checkpoint with the shortest distance, and the planning starting point is updated to the next checkpoint with the shortest distance.
[0032] The steps of determining a planned path from a starting point to an end point based on the estimated congestion level of each checkpoint cluster include:
[0033] Determine a basic path from the starting point to the end point;
[0034] Use the starting point as a starting point for planning;
[0035] Determine the checkpoint cluster with the lowest estimated congestion level among all checkpoint clusters that include the next checkpoint of the planned starting point;
[0036] Traverse all the next checkpoints of the planned starting point in the checkpoint cluster with the lowest estimated congestion level, and determine the next checkpoint with the shortest distance to the planned starting point;
[0037] When the next checkpoint at the planned starting point in the basic path is inconsistent with the next checkpoint with the shortest distance, the next checkpoint at the planned starting point in the basic path is replaced with the next opening with the shortest distance to obtain a replacement path;
[0038] When the total distance of the replacement path is less than the total distance of the basic path, the basic path is updated to the replacement path, and the planned starting point is updated to the next checkpoint with the shortest distance, and the step of determining the checkpoint cluster with the lowest estimated congestion level among all checkpoint clusters containing the next checkpoint of the planned starting point is returned until the next checkpoint with the shortest distance is determined as the end point.
[0039] The step of traversing all next checkpoints of the starting point in the checkpoint cluster with the lowest estimated congestion level to determine the next checkpoint with the shortest distance from the planned starting point includes:
[0040] Taking the planning starting point as the first target point, selecting two checkpoints from all the next checkpoints as the starting point and the second target point respectively, and calculating the saving information value from the starting point to the first target point and the second target point;
[0041] The second target point among the two checkpoints with the largest saving information value is taken as the next checkpoint with the shortest distance to the planned starting point.
[0042] To achieve the above objectives, the present application also provides a path planning device, which includes a processor; the processor is used to execute instructions to implement the above method.
[0043] To achieve the above objectives, the present application also provides a computer-readable storage medium, which is used to store instructions / program data, and the instructions / program data can be executed to implement the above method.
[0044] In the path planning method of the present application, a plurality of checkpoints between a starting point and an end point are first determined, and then traffic flow estimation data of the plurality of checkpoints are predicted and obtained, and all the checkpoints are clustered to generate at least two checkpoint clusters, and then an estimated congestion level of each checkpoint cluster is determined based on the estimated traffic flow data of at least some of the checkpoints in each checkpoint cluster. In this way, path planning can be performed based on the estimated congestion levels of at least two checkpoint clusters, without the need to record the estimated congestion levels of all checkpoints, and without the need to perform path planning based on the estimated congestion levels of all checkpoints, thereby simplifying path planning. In addition, in combination with future traffic flow prediction data, an adaptive method is used for path planning, thereby solving the problem of traffic congestion caused by a certain lag in real-time road network information updates. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] 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:
[0046] Figure 1 It is a flowchart of an implementation method of the path planning method of the present application;
[0047] Figure 2 It is a flow chart of vehicle quantity statistics in the path planning method of this application;
[0048] Figure 3 It is a schematic diagram of traffic flow estimation data prediction of a checkpoint in the path planning method of the present application;
[0049] Figure 4 is a schematic diagram of a distance saving algorithm used in the path planning process in the path planning method of the present application;
[0050] Figure 5 It is a structural schematic diagram of an implementation method of a path planning device of the present application;
[0051] Figure 6It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative work are within the scope of protection of the present application. In addition, unless otherwise specified (for example, "or in addition" or "or in an alternative"), the term "or" as used herein refers to a non-exclusive "or" (that is, "and / or"). Moreover, the various embodiments described herein are not necessarily mutually exclusive, because some embodiments can be combined with one or more other embodiments to form new embodiments.
[0053] This application provides a path planning method, specifically Figure 1 As shown, the path planning method of this embodiment includes the following steps. It should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The execution order of each step of this embodiment can be changed arbitrarily without violating the technical idea of this application.
[0054] S101: Determine a plurality of checkpoints between a starting point and an end point.
[0055] After determining the starting point and the end point of the route planning, multiple checkpoints between the starting point and the end point can be determined first, so that the route planning can be performed based on the traffic flow estimation data of the multiple checkpoints.
[0056] Optionally, in step S101, at least one initial path from the starting point to the end point may be determined first, and then all checkpoints on all initial paths are used as multiple checkpoints between the starting point and the end point. Specifically, simple path planning may be performed based on an existing path planning algorithm to obtain at least one initial path from the starting point to the end point.
[0057] Of course, in other embodiments, all checkpoints within the second distance range between the starting point and the end point and their straight line connection can be collected to obtain multiple checkpoints between the starting point and the end point. The second distance can be set according to actual conditions and is not limited here, for example, it can be 10 km or 12 km.
[0058] S102: Determine the historical traffic flow data of each checkpoint.
[0059] After determining multiple checkpoints between the starting point and the end point based on step S101, the historical traffic flow data of all checkpoints can be determined, so as to predict the traffic flow estimated data of each checkpoint based on the historical traffic flow data of each checkpoint, so as to subsequently perform path planning based on the traffic flow estimated data of each checkpoint.
[0060] In one implementation, the path planning device or server stores the historical traffic flow data of all checkpoints within its path planning area. In this way, in step S102, it is sufficient to obtain the historical traffic flow data of the checkpoint from the path planning device or server based on the spatial characteristics of the checkpoint (such as the checkpoint number, checkpoint latitude and longitude, etc.). This method can be used to obtain the historical traffic flow data of all checkpoints.
[0061] In another implementation, the path planning device or server stores the historical video data of all checkpoints in its path planning area. In this way, in step S102, the historical video data of the checkpoint can be obtained from the path planning device or server based on the spatial characteristics of the checkpoint, and then the vehicles in each historical video data of the checkpoint are detected through the target detection network, so as to count the total number of vehicles in each historical video data of the checkpoint based on the detected vehicles; then the historical traffic flow data of the historical video data can be calculated based on the total number of vehicles in each historical video data of the checkpoint. In this way, the historical traffic flow data of all checkpoints can be obtained.
[0062] The traffic flow data may include data such as vehicle flow, traffic flow density and average vehicle flow speed. After determining the total number of vehicles in the historical video data, the historical traffic flow data of the historical video data may be calculated by the following formula;
[0063] X=n / t
[0064] Y = n / l;
[0065] V=X / Y
[0066] Where X is the traffic volume of historical video data, n is the total number of vehicles in the historical video data, t is the length of the road in the historical video data; Y is the traffic flow density of historical video data, l represents the time length of historical video data; V is the average traffic speed of historical video data.
[0067] In addition, if Figure 2 As shown, the total number of vehicles in the above historical video data refers to the data obtained by performing vehicle detection and target tracking on the historical video data using a target detection algorithm and performing deduplication processing.
[0068] The target detection algorithm of the present application can be set according to the actual situation and is not limited here. For example, it can be YOLO or Faster R-CNNN.
[0069] S103: Predicting estimated traffic flow data of the checkpoint based on the historical traffic flow data of the checkpoint.
[0070] After the historical traffic flow data of each checkpoint is obtained based on step S102, the traffic flow estimation data of each checkpoint can be obtained based on the prediction of the historical traffic flow data of each checkpoint.
[0071] Among them, each checkpoint has at least one set of historical traffic flow data. In step S103, all the sets of historical traffic flow data of each checkpoint need to be input into the prediction model to obtain the traffic flow estimation data of each checkpoint output by the prediction model. For example, for checkpoint A, the path planning device or server only stores the historical video data or historical traffic flow data of checkpoint A during the previous working hours (e.g., 7-10 o'clock) and the previous working hours (e.g., 17-20 o'clock) of the previous day, so that in step S102, two sets of historical traffic flow data of checkpoint A during the previous working hours and the previous working hours can be determined; in step S103, both sets of historical traffic flow data of checkpoint A during the previous working hours and the previous working hours need to be input into the prediction model to obtain the traffic flow estimation data of checkpoint A.
[0072] Optionally, the traffic flow estimation data of each checkpoint can be predicted based on the current weather characteristics of each checkpoint, the historical traffic flow data of each checkpoint and its weather characteristics. Specifically, the current weather characteristics of each checkpoint, all groups of historical traffic flow data of each checkpoint, and the weather characteristics of each group of historical traffic flow data of each checkpoint can be input into the prediction model to obtain the traffic flow estimation data of each checkpoint. In this way, considering that weather factors will affect people's choice of travel mode, adding weather factors when predicting traffic flow estimation data can improve the accuracy of future traffic flow prediction. For example, when two groups of historical traffic flow data of checkpoint A during the previous working hours and the previous off-get off work hours are determined based on step S102, the weather characteristics of checkpoint A during the previous working hours and the previous off-get off work hours can be determined before step S103, and the current weather characteristics can be determined; in step S103, the current weather characteristics of checkpoint A, the historical traffic flow data and weather characteristics of checkpoint A during the previous working hours, and the historical traffic flow data and weather characteristics of checkpoint A during the previous off-get off work hours can be input into the prediction model, so that the prediction model can predict traffic flow estimation data based on the current weather characteristics of checkpoint A, all groups of historical traffic flow data and their weather characteristics.
[0073] The weather characteristics corresponding to the historical traffic flow data of each checkpoint can be obtained by querying the historical meteorological data of the time period corresponding to the historical traffic flow data. Alternatively, the weather characteristics corresponding to the historical traffic flow data of each checkpoint can be obtained by principal component analysis (PCA).
[0074] Further, in step S103, if Figure 3 As shown, the traffic flow estimation data of each checkpoint can be predicted based on the current weather characteristics of each checkpoint, the historical traffic flow data of each checkpoint and its time characteristics, weather characteristics and spatial characteristics. Specifically, the current weather characteristics of each checkpoint, all groups of historical traffic flow data of each checkpoint, and the time characteristics, weather characteristics and spatial characteristics of each group of historical traffic flow data of each checkpoint can be input into the prediction model to obtain the traffic flow estimation data of each checkpoint. In this way, when predicting the traffic flow estimation data, not only the weather conditions of the checkpoint are taken into account, but also the time conditions and spatial conditions are taken into account, so that the future traffic flow prediction is more accurate. For example, when two groups of historical traffic flow data of the previous working time period and the previous off-get off work time period of checkpoint A are determined based on step S102, the weather characteristics, spatial characteristics and time characteristics of the previous working time period of checkpoint A can be determined before step S103, and the weather characteristics, spatial characteristics and time characteristics of the previous off-get off work time period of checkpoint A can be determined, and the current weather characteristics can be determined; in step S103, the current weather characteristics of checkpoint A, the historical traffic flow data, weather characteristics, spatial characteristics and time characteristics of the previous working time period of checkpoint A, and the historical traffic flow data, weather characteristics, spatial characteristics and time characteristics of the previous off-get off work time period of checkpoint A (for example, 17-20 o'clock) can be input into the prediction model, so that the prediction model can predict the traffic flow estimation data based on the current weather characteristics of checkpoint A, all groups of historical traffic flow data and their weather characteristics, spatial characteristics and time characteristics.
[0075] Optionally, the spatial features of the historical traffic flow data (for example, the longitude and latitude of the checkpoint to which the historical traffic flow data belongs, the road number and the length of the section, etc.) and the temporal features (for example, the video time length and recording time information of the historical video data to which the historical traffic flow data belongs) can be obtained by statistically processing the historical video data corresponding to the historical traffic flow data through a statistical model. Alternatively, in other embodiments, the spatial features of the historical traffic flow data can be obtained by manually performing statistics on the actual spatial conditions of the checkpoint to which the historical traffic flow data belongs, and accordingly, the temporal features of the historical traffic flow data can also be obtained by manually performing statistics on the temporal information of the historical video data to which the historical traffic flow data belongs. Among them, the statistical model can be selected according to the actual situation, and is not limited here. For example, it can be a CNN model.
[0076] Further, in step S103, the estimated traffic flow data of each checkpoint can be predicted based on the current weather characteristics and predicted time period of each checkpoint, the historical traffic flow data of each checkpoint and its time characteristics, weather characteristics and spatial characteristics. Among them, the predicted time period can be selected by the user, or it can be determined by the path planning device based on the time when the user issues the path planning instruction. Specifically, the path planning device can use the next time period of the time when the path planning instruction is issued as the predicted time period. For example, if the time when the user issues the path planning instruction is 10:00, the path planning device can use 10:00-11:00 as the predicted time period. Alternatively, in other embodiments, the path planning method of the present application is applied to path planning based on short-term traffic flow prediction for commuting on weekdays, and the time period to which the user issues the path planning instruction can be used as the predicted time period. For example, if the user issues the path planning instruction during the working time period (e.g., 7-10 o'clock), the path planning device can select the working time period as the predicted time period.
[0077] In addition, considering the traffic flow conditions in the neighborhood, it will affect people's choice of travel routes. Therefore, when predicting the traffic flow estimation data of a checkpoint, it is necessary not only to base it on the historical traffic flow data of the checkpoint, but also to consider the historical traffic flow data of the checkpoint's neighborhood checkpoints. That is, when predicting the traffic flow estimation data of a checkpoint, it is also necessary to input the historical traffic flow data of the checkpoint's neighborhood checkpoints and related data (such as the spatial characteristics, temporal characteristics and weather characteristics of each group of historical traffic flow data of the neighborhood checkpoints) into the prediction model. Among them, the checkpoint's neighborhood checkpoint can be a checkpoint connected to the checkpoint and the distance between the checkpoint and the checkpoint is less than the first distance. The first distance can be set according to the actual situation, and is not limited here. For example, it can be 1km or 1.5km.
[0078] Optionally, the above prediction model can be specifically set according to actual conditions, which is not limited here, for example, it can be a NN, LSTM and GRU model.
[0079] S104: Perform cluster analysis on all the checkpoints to generate at least two checkpoint clusters.
[0080] All checkpoints can be clustered to generate at least two checkpoint clusters, so that the estimated congestion level of each checkpoint cluster can be determined based on the traffic flow estimation data of at least some of the checkpoints in each checkpoint cluster, so as to plan a planned route with a low estimated congestion level.
[0081] Optionally, all the checkpoints can be clustered using improved k-means. Specifically, in step S104, at least two points can be selected from all the checkpoints as initial center checkpoints; then, based on the center point nearest principle, the remaining checkpoints are assigned to the checkpoint cluster represented by the initial center checkpoint, thereby generating at least two checkpoint clusters.
[0082] Among them, at least two points can be randomly selected from all the checkpoints as the initial center checkpoints. Alternatively, in other embodiments, at least two points can be evenly selected from the starting point to the end point as the initial center checkpoint based on the spatial characteristics of all the checkpoints, so as to avoid the situation where the estimated values of the congestion degree of checkpoints in the same checkpoint cluster are inconsistent due to the at least two randomly selected points being located near the starting point or the end point, and to prevent the situation where the estimated value of the congestion degree of the checkpoint cluster cannot represent the congestion conditions of most of the checkpoints in it. Furthermore, the starting point and the end point can also be used as the initial center checkpoint.
[0083] The number of initial center bayonet ports that can be selected is not limited, and can be, for example, 2 or 3. The number of initial center bayonet ports can be positively correlated with the total number of bayonet ports; for example, when the total number of bayonet ports is 100, 9 initial center bayonet ports can be selected from all bayonet ports; for another example, when the total number of bayonet ports is 132, 10 initial center bayonet ports can be selected from all bayonet ports.
[0084] After the initial center checkpoint is determined, all checkpoints except the initial center checkpoint can be assigned to the checkpoint cluster represented by the initial center checkpoint based on the principle of the nearest center point. In this way, checkpoints with different estimated congestion levels can be distinguished based on the principle that the estimated congestion levels of checkpoints with similar address locations are roughly the same, so as to subsequently plan a route with a low estimated congestion level. Specifically, each checkpoint except the initial center checkpoint can be traversed among all checkpoints, the distance between the traversed checkpoint and each initial center checkpoint can be confirmed, and the traversed checkpoint can be added to the checkpoint cluster represented by the initial center checkpoint that is closest to the traversed checkpoint.
[0085] Of course, in other embodiments, all the checkpoints may also be clustered using a mean shift clustering algorithm, a DBSCAN clustering algorithm, or a hierarchical clustering algorithm.
[0086] In addition, the execution order of step S104 is not limited, and it only needs to be executed before step S105. For example, step S104 can also be executed before step S103.
[0087] S105: Determine a congestion level estimate of each checkpoint cluster based on traffic flow estimate data of at least some checkpoints in each checkpoint cluster.
[0088] After obtaining at least two checkpoint clusters formed by clustering all checkpoints based on step S104, the estimated congestion level of each checkpoint cluster can be determined based on the traffic flow estimation data of at least some of the checkpoints in each checkpoint cluster, so that path planning can be subsequently performed based on the estimated congestion levels of at least two checkpoint clusters. In this way, there is no need to record the estimated congestion levels of all checkpoints, and there is no need to perform path planning based on the estimated congestion levels of all checkpoints, which simplifies path planning.
[0089] Optionally, in step S105, when determining the estimated congestion level of a checkpoint cluster, the estimated congestion level of each checkpoint in the checkpoint cluster can be determined based on the traffic flow estimation data of each checkpoint in the checkpoint cluster, and then the estimated congestion level that appears most times in the checkpoint cluster can be used as the estimated congestion level of the checkpoint cluster. For example, checkpoint cluster N includes 10 checkpoints, of which 8 checkpoints have an estimated congestion level of level 1, and the remaining two checkpoints have an estimated congestion level of level 2, then the estimated congestion level of checkpoint cluster N can be level 1.
[0090] In other implementations, the estimated congestion level of the center point of each checkpoint cluster can be used as the estimated congestion level of each checkpoint cluster, so that the estimated congestion level of each checkpoint cluster can be simply determined. The center point of each checkpoint cluster can be the initial center checkpoint of each checkpoint cluster. In order to avoid the estimated congestion level of the initial center checkpoint of each checkpoint cluster failing to represent the congestion conditions of most checkpoints of each checkpoint cluster, the center point of each checkpoint cluster can be optimized and updated to determine the final center checkpoint that can represent the congestion conditions of most checkpoints of each checkpoint cluster, and then the estimated congestion level of the final center checkpoint can be used as the estimated congestion level of the checkpoint cluster to which it belongs.
[0091] Optionally, the step of optimizing and updating the center point may include: calculating the discreteness of each bayonet in each bayonet cluster, and taking the bayonet with the smallest discreteness in each bayonet cluster as the final center bayonet of each bayonet cluster. The discreteness of a bayonet in a bayonet cluster is the sum of the distances from the bayonet to the other bayonet in the bayonet cluster to which it belongs.
[0092] Optionally, the congestion situation of the checkpoint may be determined based on the traffic flow estimation data of the checkpoint. When the traffic flow data includes vehicle flow, traffic flow density and / or average vehicle flow speed, the congestion situation of the checkpoint may be determined based on one of the traffic flow data of the checkpoint, for example, the estimated congestion level of the checkpoint may be determined based on the vehicle flow of the checkpoint, or the estimated congestion level of the checkpoint may be determined based on the traffic flow density of the checkpoint.
[0093] Based on the actual situation, the estimated congestion levels of the checkpoints and checkpoint clusters can be divided into at least two levels. For example, the estimated congestion levels can be divided into five levels, where level 1 represents no congestion, level 2 represents a little congestion, level 3 represents congestion, level 4 represents very congestion, and level 5 represents extremely congestion.
[0094] S106: Determine a planned path from the starting point to the end point based on the estimated congestion level of each checkpoint cluster.
[0095] After the estimated congestion levels of all checkpoint clusters are determined based on step S105 , path planning can be performed based on the estimated congestion levels of all checkpoint clusters to plan a planned path from the starting point to the end point.
[0096] The path planning can be performed based on the estimated congestion levels of all checkpoint clusters, with the lowest estimated congestion level and the smallest total path distance as the principle. It is understandable that in some specific embodiments, it may not be possible to traverse all paths, and the estimated congestion level of the planned path planned according to the above principle may not be the lowest, and the total distance may not be the smallest; and the lowest estimated congestion level and the smallest total path distance may not be satisfied at the same time. In this case, the principle of the lowest estimated congestion level will be preferred, and the principle of the smallest total path distance will be secondly satisfied.
[0097] Specifically, in step S106, at least one iteration process is performed based on the estimated congestion level of each checkpoint cluster; in the k+1th iteration process, based on the planned starting point and the basic path determined in the kth iteration process, the checkpoint cluster with the lowest estimated congestion level among all the checkpoint clusters containing the next checkpoint of the planned starting point is determined; from the checkpoint cluster with the lowest estimated congestion level, the next checkpoint with the shortest distance from the planned starting point is selected; if the next checkpoint with the shortest distance meets the preset condition, the basic path is updated based on the next checkpoint with the shortest distance, and the planned starting point is updated to the next checkpoint with the shortest distance. The preset condition can be understood as: the total distance of the replacement path obtained based on the next checkpoint with the shortest distance is less than the total distance of the basic path.
[0098] Specifically, the specific implementation steps of the above iterative scheme can be embodied as follows: A basic path from the starting point to the ending point can be determined; The starting point is used as the planning starting point; Determine the cluster of checkpoints with the lowest estimated congestion level among all the checkpoint clusters containing the next checkpoint of the planning starting point; Traverse all the next checkpoints of the planning starting point in the cluster of checkpoints with the lowest estimated congestion level to determine the next checkpoint with the shortest distance from the planning starting point; In the case where the next checkpoint of the planning starting point in the basic path is inconsistent with the next checkpoint with the shortest distance, replace the next checkpoint of the planning starting point in the basic path with the next checkpoint with the shortest distance to obtain a replacement path; In the case where the total distance of the replacement path is less than the total distance of the basic path, update the basic path to the replacement path, otherwise do not update the basic route; Update the planning starting point to the next checkpoint with the shortest distance, and return to execute the step of determining the cluster of checkpoints with the lowest estimated congestion level among all the checkpoint clusters containing the next checkpoint of the planning starting point until the next checkpoint with the shortest distance determined is the ending point. The specific implementation steps of this path planning scheme are as follows:
[0099] (1) Define the basic path S0. Assume there are m neighborhoods (checkpoint clusters), denoted as (k = 1, 2, 3, …, m), k = 1;
[0100] (2) Use the neighborhood structure N i , i ∈ [1, 3] for searching until falling into the local optimal solution h' (i.e., the next checkpoint with the shortest distance from the planning starting point), k = k + 1;
[0101] (3) If the replacement path S' obtained from the local optimal solution h' < S0, let S0 = S', otherwise repeat step (2);
[0102] (4) If k > m, end the above loop;
[0103] (5) Output the updated planning path;
[0104] In step (1), the basic path S0 can be defined through the savings algorithm, as shown in the formula s(i, j) = d(0, i) + d(0, j) - d(i, j), which adopts the principle that the sum of two sides in a triangle inequality must be greater than the third side, such as Figure 4As shown, according to the formula s(i,j)=d(0,i)+d(0,j)-d(i,j), the saving value information between checkpoints i and j can be calculated, and when the area constraint is met, the paths are merged from large to small until all checkpoints are traversed. In addition, in other embodiments, when multiple checkpoints are obtained based on at least one initial path from the starting point to the end point in step S101, in step S106, one of the at least one initial path can be selected as the basic path, and then the path optimization is performed based on the estimated congestion levels of at least two checkpoint clusters to obtain a planned path.
[0105] In the above scheme, the next checkpoint with the shortest distance from the planned starting point can be determined by the distance saving algorithm. Specifically, the planned starting point can be used as the first target point, and two checkpoints can be selected from all the checkpoints next to the planned starting point in the checkpoint cluster with the lowest estimated congestion level as the starting point and the second target point, respectively, and the saving information value from the starting point to the first target point and the second target point can be calculated; then the second target point of the two checkpoints with the largest saving information value can be used as the next checkpoint with the shortest distance from the planned starting point. For example, checkpoint cluster A is the checkpoint cluster with the lowest estimated congestion level among all checkpoint clusters that include the next checkpoint of the planned starting point. The next checkpoints of the planned starting point in checkpoint cluster A are checkpoint A, checkpoint B and checkpoint D. The saving information values of the combinations of (planning starting point, checkpoint A and checkpoint B), (planning starting point, checkpoint A and checkpoint D), (planning starting point, checkpoint B and checkpoint D), (planning starting point, checkpoint B and checkpoint A), (planning starting point, checkpoint D and checkpoint A), and (planning starting point, checkpoint D and checkpoint B) can be calculated in sequence, and then the second target point in the combination with the largest saving information value is taken as the next checkpoint with the shortest distance to the planned starting point.
[0106] The calculation formula of the above-mentioned distance saving algorithm is as follows:
[0107] s(o,p)=d(z,o)+d(z,p)-d(o,p);
[0108] Among them, point z is the starting point, point o is the first target point, and point p is the second target point.
[0109] In addition, in other embodiments, during the k+1th iteration, the next checkpoint with the shortest distance from the starting point may be determined from the checkpoint cluster with the lowest estimated congestion level; and when the next checkpoint with the shortest distance from the starting point satisfies the second preset condition, the basic path is updated based on the next checkpoint with the shortest distance from the starting point, and the planned starting point is updated to the next checkpoint with the shortest distance from the starting point. When determining the next checkpoint with the shortest distance from the starting point, the saving information value is calculated with the starting point as the first target point, and the rest are equivalent to "determining the solution of the next checkpoint with the shortest distance from the planned starting point". In addition, the second preset condition can be understood as: the total distance of the replacement path obtained based on the next checkpoint with the shortest distance from the starting point is less than the total distance of the basic path.
[0110] Furthermore, in the process of gradually determining the next checkpoint at the planning starting point, if the congestion level estimated values of the checkpoint cluster with the lowest congestion level estimated value selected for multiple consecutive times are all greater than the first threshold, it is possible to jump back to the starting point for re-planning. When re-planning, a checkpoint with the shortest distance can be selected from the checkpoint cluster with the second lowest congestion level estimated value among all the checkpoint clusters including the next checkpoint at the starting point. After the selection, the path can be gradually planned again according to the above scheme. Among them, the first threshold can be set according to the actual situation and is not limited here. For example, when the congestion level estimated value is divided into 5 levels, the first threshold can be set to level 3.
[0111] In this embodiment, a plurality of checkpoints between the starting point and the end point are first determined, and then traffic flow estimation data of the plurality of checkpoints are predicted, and all the checkpoints are clustered to generate at least two checkpoint clusters, and then the estimated congestion level of each checkpoint cluster is determined based on the estimated traffic flow data of at least some of the checkpoints in each checkpoint cluster. In this way, path planning can be performed based on the estimated congestion levels of at least two checkpoint clusters, without having to record the estimated congestion levels of all checkpoints, and without having to perform path planning based on the estimated congestion levels of all checkpoints, thereby simplifying path planning. In addition, in combination with future traffic flow prediction data, an adaptive method is used for path planning, thereby solving the problem of traffic congestion caused by a certain lag in real-time road network information updates.
[0112] See also Figure 5 , Figure 5 The schematic diagram is a schematic diagram of an embodiment of a path planning device 20 of the present application. The path planning device 20 of the present application includes a processor 22, and the processor 22 is used to execute instructions to implement the method of any of the above embodiments of the present application and the method provided by any non-conflicting combination.
[0113] The path planning device 20 may be a camera device or a server, etc., which is not limited here.
[0114] The processor 22 may also be referred to as a CPU (Central Processing Unit). The processor 22 may be an integrated circuit chip having signal processing capabilities. The processor 22 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor, or the processor 22 may also be any conventional processor, etc.
[0115] The path planning device 20 may further include a memory 21 for storing instructions and data required for the processor 22 to run.
[0116] See also Figure 6 , Figure 6 It is a schematic diagram of the structure of the computer-readable storage medium in the implementation mode of the present application. The computer-readable storage medium 30 of the embodiment of the present application stores instructions / program data 31, and when the instructions / program data 31 are executed, the method provided by any embodiment of the above-mentioned method of the present application and any non-conflicting combination is implemented. Among them, the instructions / program data 31 can form a program file and be stored in the above-mentioned storage medium 30 in the form of a software product, so that a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of each implementation method of the present application. The aforementioned storage medium 30 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, or a computer, a server, a mobile phone, a tablet and other devices.
[0117] 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 units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0118] 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-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0119] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0120] The above are only implementation methods of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A path planning method, It is characterized in that The method comprises: Determine multiple checkpoints between the starting point and the end point; Predicting estimated traffic flow data for each checkpoint based on historical traffic flow data for each checkpoint; Performing cluster analysis on the multiple checkpoints to generate at least two checkpoint clusters; and determining a congestion level estimate for each checkpoint cluster based on the traffic flow estimate data of at least some checkpoints in each checkpoint cluster; Determining a planned path from the starting point to the end point based on an estimated congestion level of each of the checkpoint clusters; The step of determining the planned path from the starting point to the end point based on the estimated congestion level of each checkpoint cluster includes: Perform at least one iteration process based on the estimated congestion level of each of the checkpoint clusters; During the k+1th iteration, based on the planning starting point and the basic path determined in the kth iteration, the checkpoint cluster with the lowest estimated congestion level among all the checkpoint clusters including the next checkpoint of the planning starting point is determined; from the checkpoint cluster with the lowest estimated congestion level, the next checkpoint with the shortest distance to the planning starting point is selected; when the next checkpoint with the shortest distance meets a preset condition, the basic path is updated based on the next checkpoint with the shortest distance, and the planning starting point is updated to the next checkpoint with the shortest distance.
2. The path planning method according to claim 1, It is characterized in that The step of performing cluster analysis on the plurality of bayonet ports to generate at least two bayonet port clusters comprises: Selecting at least two bayonet points from the plurality of bayonet points as initial center bayonet points; According to the principle of being closest to the initial central bayonet, the remaining bayonet are allocated to the bayonet cluster represented by the initial central bayonet; the remaining bayonet is the bayonet among the multiple bayonet except the at least two bayonet.
3. The path planning method according to claim 2, It is characterized in that The step of determining the estimated value of the congestion level of each checkpoint cluster based on the estimated traffic flow data of at least part of the checkpoints in each checkpoint cluster comprises: Calculating the discreteness of each bayonet in each bayonet cluster, where the discreteness of the bayonet is the sum of the distances from the bayonet to the other bayonet in the bayonet cluster to which it belongs; Taking the bayonet with the smallest discreteness in each bayonet cluster as the final central bayonet of each bayonet cluster; Based on the traffic flow estimation data of the final central checkpoint of each checkpoint cluster, an estimated congestion level of each checkpoint cluster is determined.
4. The path planning method according to claim 3, It is characterized in that The traffic flow estimation data of the checkpoint includes an estimated value of the number of vehicles, an estimated value of the vehicle flow, an estimated value of the traffic flow density and / or an estimated value of the average vehicle flow speed at the checkpoint.
5. The path planning method according to claim 1, It is characterized in that The method further comprises: Determine the historical traffic flow data of the neighboring checkpoints of each checkpoint, wherein the neighboring checkpoints of the checkpoint are checkpoints connected to the checkpoint and the distance between the checkpoint and the checkpoint is less than a first distance; The step of predicting the estimated traffic flow data of each checkpoint based on the historical traffic flow data of each checkpoint comprises: Based on the historical traffic flow data of each checkpoint and the historical traffic flow data of the checkpoints in the neighborhood of each checkpoint, the traffic flow estimation data of each checkpoint is predicted.
6. The path planning method according to claim 1, It is characterized in that The method further comprises: Determine weather characteristics of each set of historical traffic flow data for each of the checkpoints; The step of predicting the estimated traffic flow data of each checkpoint based on the historical traffic flow data of each checkpoint comprises: Traffic flow estimation data of each checkpoint is predicted based on the current weather characteristics of each checkpoint, the historical traffic flow data of each checkpoint and its weather characteristics.
7. The path planning method according to claim 6, It is characterized in that The method further comprises: Determine the temporal characteristics and spatial characteristics of each set of historical traffic flow data of each of the checkpoints; The step of predicting the estimated traffic flow data of each checkpoint based on the historical traffic flow data of each checkpoint comprises: Based on the current weather characteristics of each checkpoint, the historical traffic flow data of each checkpoint and its time characteristics, weather characteristics and spatial characteristics, the traffic flow estimation data of each checkpoint is predicted.
8. The path planning method according to claim 1, It is characterized in that The step of determining a planned path from the starting point to the end point based on the estimated congestion level of each of the checkpoint clusters comprises: Determine a basic path from the starting point to the end point; Take the starting point as the starting point for planning; Determine a checkpoint cluster having the lowest estimated congestion level among all checkpoint clusters including the next checkpoint of the planned starting point; Traversing all next checkpoints of the planned starting point in the checkpoint cluster with the lowest estimated congestion level, and determining the next checkpoint with the shortest distance from the planned starting point; When the next checkpoint of the planned starting point in the basic path is inconsistent with the next checkpoint with the shortest distance, the next checkpoint of the planned starting point in the basic path is replaced with the next opening with the shortest distance to obtain a replacement path; When the total distance of the replacement path is less than the total distance of the basic path, the basic path is updated to the replacement path, and the planned starting point is updated to the next checkpoint with the shortest distance, and the step of determining the checkpoint cluster with the lowest estimated congestion level among all checkpoint clusters including the next checkpoint of the planned starting point is returned to be executed until the next checkpoint with the shortest distance is determined to be the end point.
9. The path planning method according to claim 8, It is characterized in that The step of traversing all next checkpoints of the starting point in the checkpoint cluster with the lowest estimated congestion level to determine the next checkpoint with the shortest distance from the planned starting point comprises: Taking the planned starting point as the first target point, selecting two checkpoints from all the next checkpoints in sequence as the starting point and the second target point respectively, and calculating the saving information value from the starting point to the first target point and the second target point; The second target point of the two checkpoints with the largest saving information value is used as the next checkpoint with the shortest distance to the planned starting point.
10. A path planning device, It is characterized in that The path planning device comprises a processor; the processor is used to execute instructions to implement the steps of the method as claimed in any one of claims 1-9.
11. A computer-readable storage medium having a program and / or instructions stored thereon, It is characterized in that When the program and / or instruction is executed, the steps of the method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Traffic flow prediction method for checkpoint similarity division and recurrent neural network
CN109767622A
Predictive navigation route planning method and system
CN113532459A
