A method for setting boundaries of intelligent network dedicated lanes
Through deep learning classifiers and decision tree technology, the boundaries of intelligent network-connected lanes are dynamically adjusted to solve the problems of high road traffic accident rates and low logistics transportation efficiency in the port area, and to improve traffic safety and transportation efficiency in the port area.
Patent Information
- Application Number
- CN202410627847.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-21
AI Technical Summary
The existing technology lacks a scientific boundary delineation method for intelligent network-connected dedicated lanes, resulting in high road traffic accident rates and low logistics transportation efficiency in port areas, and the existing technical methods are not suitable for specific port scenarios.
Using a deep learning classifier, based on intelligent network-connected autonomous vehicle OD data and land use data, a decision tree is constructed to dynamically adjust the boundary of the dedicated lane to ensure the continuity and smoothness of the road section and optimize the boundaries of the intelligent network-connected dedicated lane.
It improves road traffic safety and logistics transportation efficiency in the port area, ensures the normal operation and traffic efficiency of intelligent networked vehicles, takes into account the scientific nature and smoothness of the boundary, and achieves systematic optimization of the transportation network.
Smart Images

Figure CN118246835B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of port planning and design, and specifically relates to a method for setting boundaries of an intelligent network-connected dedicated lane. Background Art
[0002] The road traffic environment in the port area has long been in a state of mixed traffic of heavy-loaded large trucks and small private vehicles. Due to the significant differences in the driving dynamics of the two, the road traffic accident rate in the port area remains high. With the gradual maturity of vehicle-road collaboration and autonomous driving technologies, intelligent networked autonomous driving container trucks have begun to be demonstrated and applied in port logistics and transportation operations. As an intelligent transportation infrastructure, the intelligent networked dedicated lane has a significant role in accelerating the promotion and application of intelligent networked autonomous driving container trucks through intelligent management and control at the roadside level.
[0003] In addition, with the annual growth of port container throughput, the port area has also slowly extended and expanded outward. The existing road ban policy is usually based on regional administrative boundaries and road grade attributes. Port freight vehicles have long been restricted to a limited space. The suspension and detour caused by the ban policy make the overall logistics and transportation efficiency of the port low. The existing technical methods for dedicated lanes mainly focus on solving the optimization and control problems of dedicated lanes, and lack relevant technical research on scientifically demarcating the boundaries of dedicated lanes; the existing technical methods for regional boundaries are mainly based on the regional division of macro urban agglomerations and urban core areas. There is no road-level boundary division method, and the relevant technical methods are not suitable for specific port scenarios. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art, to scientifically define the setting boundaries of intelligent connected autonomous driving vehicle lanes, and to provide a method for defining the setting boundaries of intelligent connected dedicated lanes. Based on the OD data of intelligent connected autonomous driving vehicles and land use data, through a certain processing method, the setting boundaries of intelligent connected dedicated lanes can be dynamically adjusted as the scale of the port changes, thereby improving road traffic safety and logistics transportation efficiency in the port area.
[0005] The objective of the present invention is achieved through the following technical solutions:
[0006] A method for setting boundaries of an intelligent network-connected dedicated lane comprises the following steps:
[0007] S1. Build a deep learning classifier: the running frequency of intelligent connected vehicles per unit time on the road section , land use mix on both sides , road segment attributes , Ratio of trucks per unit time , average vehicle speed Deep learning of five types of independent variable features, including building a sample library, selecting training data, and training decision trees;
[0008] ;
[0009] ;
[0010] in, It indicates the mixed degree of land use on both sides of the road section, also known as the entropy index, which reflects the combination degree and land use efficiency of various land function types in a certain area; Indicates land type The ratio of the number of POIs to the total number of POIs in the area; N represents the total number of land use types in the area where the road segment is located. is the independent variable The characteristic value of is the category number of the independent variable feature, is the sample road section number, is the number of sample data;
[0011] S2. Delineate the initial boundaries of the intelligent connected lanes;
[0012] S3. Define the boundaries of the intelligent connected lanes to ensure the continuity of the road section;
[0013] S4. Define the boundaries of the intelligent network dedicated lanes to ensure smooth traffic;
[0014] S5. Determine the boundaries of the dedicated intelligent connected lanes.
[0015] Further, step S1 includes the following steps:
[0016] S101. Establish a sample library;
[0017] 1011) Select at least 5 intelligent network dedicated road sections that have been opened or are planned to be opened, at least 5 sections with full-time or partial-time cargo bans, and at least 5 sections without intelligent network dedicated road sections and without cargo ban policies as sample sections and form a sample library, and extract the independent variable and dependent variable eigenvalues of each sample section as its sample data; the dependent variable eigenvalue indicates whether a dedicated lane Y is set up. If set, the value is 1, otherwise the value is 0;
[0018] 1012) Balance the dimensions of independent variable parameters; calculate the average values of the characteristic values of various independent variables of the sample sections in the sample library and the variance of the eigenvalues of various independent variables , given a fixed value D and ,like Then , iterate the calculation until or ; Take a group that meets the conditions ,make ;
[0019] ;
[0020] ;
[0021] is the independent variable The characteristic value of is the category number of the independent variable feature, is the sample road section number, is the number of sample data;
[0022] S102. Selecting training data;
[0023] 1021) Randomly select training data, and for at least 15 sample sections in the sample library, use bootstrap sampling with replacement to obtain 10 training sets with repeated samples and containing at least 15 sample sections;
[0024] 1022) The five types of independent variable features are combined in pairs and randomly assigned to 10 training sets. During training, the two types of independent variable feature values corresponding to the sample sections in the training set are used as input to form 10 decision tree training sets; the independent variable feature value of each decision tree training set is defined as , is the number of the decision tree training set, The training set for the decision tree The assigned independent variable characteristic category number, is the sample road section number in the decision tree training set i;
[0025] ;
[0026] S103. Train decision tree;
[0027] 1031) Decision tree splitting rule; the decision tree training set All sample sections in the parent node are classified into the parent node, and an independent variable eigenvalue in the parent node is selected , the sample road segment in the parent node The class variable eigenvalue and For comparison, The class variable eigenvalue is less than The sample road sections of the parent node and the two child nodes A and B are divided into A child nodes, and the number of sample road sections with dependent variable values of 0 and 1 in the sample road sections of the parent node and the two child nodes A and B is counted respectively. and and , and , calculate the eigenvalue of the independent variable The information gain IG obtained as the branch point of the parent node is used to traverse all the independent variable eigenvalues of the sample road section of the parent node in turn, and the independent variable eigenvalue with the largest information gain is used as the branch point to split the parent node into two child nodes A and B;
[0028] In the formula, , , are the information entropy of the parent node, A and B child nodes respectively, and is the weight of the A and B child nodes;
[0029] ;
[0030] ;
[0031] ;
[0032] ; ;
[0033] ;
[0034] 1032) Through the independent variable eigenvalue, at each node of the decision tree, the independent variable eigenvalue is determined according to the principle of maximizing the information gain IG to branch; calculate and The average values of the eigenvalues of the variables are and ; s represents the number of decision tree training sets i. From step 1021), we can know that s=10.
[0035] , ;
[0036] 1033) Calculate the branch value of the eigenvalues of two independent variables and ; If there are several independent variable eigenvalues in a child node, and they obtain the same branch value, then any one of the eigenvalues is taken as the branch value;
[0037] ;
[0038] ;
[0039] 1034) respectively according to and ; and Rules for decision tree branches; calculate the value of each branch node , ; is the variance of all sample dependent variables of the corresponding node layer, are the variances of the dependent variables of the A and B subnodes of this node layer, respectively;
[0040] 1035) The A and B child nodes obtained by splitting are regarded as parent nodes, and steps 1031)-1034) are repeated to determine the branch point of the parent node, and the parent node is split into A and B child nodes until the dependent variable values of the sample sections in the current parent node are the same, the parent node is marked as the end node and the splitting is stopped. When all parent nodes are marked as end nodes, the training of the decision tree is completed; the average value of the independent variable feature value contained in the end node is used as the output y value of the decision tree.
[0041] Further, step S2 includes the following steps:
[0042] S201. Obtain the operating frequency of intelligent networked vehicles per unit time on each road section in the target area , land use mix on both sides , road segment attributes , Ratio of trucks per unit time , average vehicle speed 5 types of independent variable characteristic values; input the 5 types of independent variable characteristic values as input variables to the deep learning classifier constructed in step S1, generate a decision tree, and output the dependent variable y value; according to the size of the y value, delineate the initial intelligent network dedicated lane setting boundary;
[0043] S202. If , the corresponding decision tree is determined to be a feature sample of the opening of an intelligent connected lane, marked as Class I; if , the corresponding decision tree is determined to be a feature sample of the closure of the intelligent network dedicated lane, marked as Class II; if , marked as Class III, and transferred to step S3 for further identification.
[0044] Further, step S3 includes the following steps:
[0045] S301. In the target area, select a Class I road section R1 as a reference road section; calculate the y value of any adjacent road section R2 of the road section R1, and determine the road section category; and sequentially traverse all the target area sections and determine the corresponding road section category;
[0046] S302. Establish a data set; the data set includes a boundary set, a boundary node set, a soliton point set, and a candidate boundary set; wherein the boundary set represents a set of road sections with the intelligent network dedicated lane as the boundary; the boundary node set represents a set of nodes on both sides of the intelligent network dedicated lane as the boundary; the soliton point set represents a set of end nodes with the intelligent network dedicated lane as the boundary; the candidate boundary set represents a set of road sections with the intelligent network dedicated lane as the candidate boundary;
[0047] S303. According to the shortest path principle, all boundary node sets are connected to the soliton point set, so that the road sections of all boundary sets and candidate boundary sets are interconnected; the newly added connecting road sections are defined as Class IV road sections.
[0048] Further, step S301 includes the following steps:
[0049] 3011) If the road segment R2 is a Class I road segment, mark the road segment R2 as a reference road segment, and add the road segment R1 to the boundary set;
[0050] 3012) If the road segment R2 is a Class II road segment, determine the categories of other adjacent road segments of R1. If all of them are Class II road segments or there are no adjacent road segments, then mark the road segment R1 as a soliton road segment, and the two endpoints of R1 are called soliton points, and are added to the soliton point set; otherwise, add R1 to the boundary set, and add the intersection nodes of R1 and all adjacent Class II road segments to the boundary node set;
[0051] 3013) If the road segment R2 is a Class III road segment, mark the road segment R2 as a reference road segment, and add the road segment R1 to the candidate boundary set;
[0052] 3014) According to the above steps, mark the road sections in turn. If the reference road section R n If it is a Class I or Class II road section, repeat 3011) and 3012);
[0053] 3015) If the current benchmark section R n For a Class III road section, further determine the adjacent road section R of another node n+1 categories, go to 3016);
[0054] 3016) If R n+1 If it is a Class I road section, the current reference road section R n Changed to a Class I section, R n Remove from the candidate boundary set, add to the boundary set, and mark R n+1 The benchmark section;
[0055] 3017) If R n+1 If it is a Category III road section, then the section R is marked n+1 As the reference section, Rn and R n+1 Merge into a new section R n,n+1 , and segment R n,n+1 Add to the candidate boundary set;
[0056] 3018) If R n+1 If it is a Class II section, then section R n Add to the candidate boundary set; mark R n With R n+1 intersects the node and adds it to the boundary node set;
[0057] 3019) Repeat steps 3011)-3018) to traverse all road sections in the target area and output boundary sets, candidate boundary sets, boundary node sets, and soliton point sets.
[0058] Further, step S4 includes the following steps:
[0059] S401. Obtain the OD data of the intelligent networked vehicles on the road network; the intelligent networked vehicles run based on the dispatching instructions of the cloud control platform, and the OD data is determined; the unit distance transportation cost of the intelligent networked vehicle k from node r to node s is in units of: yuan / kilometer, recorded as ;
[0060] S402. Establishing an objective function for minimizing travel costs;
[0061] ;
[0062] in, Represents the shortest path from node r to node s, unit: kilometers; Indicates the distance of road section ij, unit: kilometers; Indicates whether the route from node r to node s passes through section ij. If so, ,otherwise ; is the compensation coefficient, which represents the cost compensation for the operation of intelligent connected vehicles on non-intelligent connected lanes. The value range is 2~5; Indicates whether to change the IV-class road section to the I-class road section. If so, ,otherwise ; is the penalty coefficient, unit: yuan / km, which indicates the penalty coefficient generated by converting a Class IV road section into a Class I road section. The value range is 20~1000;
[0063] S403. Randomly convert Class IV road sections into Class I road sections;
[0064] Number the Class-IV road segments, and denote the maximum number as M; generate a string of length M containing 0 or 1 from left to right, that is the string; different digits correspond to the road segment numbers respectively; the value of each digit is generated by the random number function rand(), if rand() > 0.5, then the value of this digit is 1, otherwise it is 0; the string "101" means that the Class-IV road segments numbered 1 and 3 are changed to Class-I road segments, and the Class-IV road segment numbered 2 remains unchanged;
[0065] S404. Calculate and output the first objective function Z 1 , and denote min Z = Z 1 ;
[0066] S405. Output the optimal objective function value. If the objective function value Z n output at the nth time < min Z, then let min Z = Z n ;
[0067] S406. Termination condition; repeat S403 to S405. When the set maximum number of iterations N1 is reached, or the minimum value of the objective function Z has not changed for N2 consecutive iterations, terminate the calculation and output all strings; N2 is a constant value, determined by the maximum number of iterations N1, and its value is N1 / 100.
[0068] Furthermore, step S5 includes the following steps: change all Class-III road segments in step S4 to Class-I road segments, and change all Class-IV road segments to Class-II road segments. Finally, the road network result only includes Class-I road segments and Class-II road segments; thus, the boundary enclosed by the Class-I road segments is the boundary for setting the intelligent connected vehicle dedicated lane.
[0069] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the steps of the method for delimiting the setting boundary of the intelligent connected vehicle dedicated lane.
[0070] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the method for delimiting the setting boundary of the intelligent connected vehicle dedicated lane.
[0071] Compared with the prior art, the beneficial effects brought by the technical solution of the present invention are:
[0072] The method of the present invention solves the long-standing scientific problems of the boundaries of dedicated lanes and the discontinuity of dedicated lanes, especially the scientific layout of dedicated lanes in the port-city integration area. In addition, based on the vehicle OD travel big data, the system travel cost under the boundary division of different intelligent networked dedicated lanes is calculated and solved, ensuring the smoothness of vehicle transportation and improving regional transportation efficiency. In this regard, the present invention constructs a decision classifier based on deep learning technology to scientifically decide the conditions for the demarcation of intelligent networked dedicated lanes; a multi-level intelligent networked dedicated lane demarcation method is adopted, which takes into account the scientific nature of the boundaries of the intelligent networked dedicated lanes while ensuring the continuity and smoothness of the dedicated lane settings, maximizing the improvement of road traffic safety and logistics transportation efficiency in the port area; in order to ensure the goal of smoothness, an objective function for minimizing travel costs is established, and a solution optimization method based on the principle of heuristic algorithms is adopted to achieve the systematic optimization of the transportation network. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 It is a schematic diagram of the overall process of the present invention;
[0074] Figure 2 It is a flow chart of constructing a deep learning classifier in the present invention;
[0075] Figure 3 is a flow chart of initial dedicated lane boundary delineation of the present invention;
[0076] Figure 4 It is a flow chart of the boundary delineation of a dedicated lane for ensuring the continuity of a road section according to the present invention;
[0077] Figure 5 This is a flow chart of the boundary delineation of a dedicated lane for ensuring smoothness of a road section according to the present invention;
[0078] Figure 6 It is a schematic diagram of the boundary demarcation of the intelligent connected dedicated lane setting of the present invention. DETAILED DESCRIPTION
[0079] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0080] With the implementation of unmanned driving and intelligent connected vehicles, the establishment of intelligent connected lanes is an important guarantee for the safe operation and efficiency improvement of intelligent driving vehicles. Scientific boundary demarcation of intelligent connected lanes can ensure the safety and smoothness of the intelligent connected lanes. By accurately demarcating the boundaries, intelligent connected vehicles can be distinguished from non-intelligent connected vehicles, avoiding the interference and confusion of non-intelligent connected vehicles, and ensuring the normal operation and traffic efficiency of intelligent connected vehicles. Secondly, by rationally planning the boundaries of intelligent connected lanes, road space can be fully utilized, the road capacity can be improved, and road resources can be used to the greatest extent. In addition, scientific boundary demarcation can improve the safety and reliability of intelligent connected vehicles. By standardizing the aggregation of intelligent connected vehicles in dedicated lanes, a more reliable communication and collaborative driving environment can be provided, the risk of accidents can be reduced, and the safety of vehicles and the reliability of the overall transportation system can be improved. Finally, scientific boundary demarcation helps promote the development and application of intelligent connected technology. By providing dedicated roads for intelligent connected vehicles, a better environment can be provided for the research, development and testing of the technology, promoting its further innovation and application, and promoting the widespread application of intelligent connected technology in actual roads.
[0081] See Figure 1 This embodiment provides a method for setting boundaries of an intelligent network-connected dedicated lane, which specifically includes the following steps:
[0082] S1: Build a deep learning classifier. The frequency of intelligent connected vehicles running per unit time on the road section , Mixed degree of land use on both sides of the road section , road segment attributes , the proportion of trucks per unit time on the road section , Average vehicle speed on the road section Deep learning is performed on five types of key independent variable features, including establishing a sample library, selecting training data, and training a decision tree. The frequency of operation of intelligent connected vehicles per unit time is determined by the average number of vehicles passing through the road per hour, and the land use mix on both sides is calculated using the land use mix index M. The attributes of the road section are divided into four types: expressway, trunk road, secondary trunk road, and branch road, which are represented by 1, 2, 3, and 4 respectively.
[0083] ;
[0084] ;
[0085] Among them, M represents the land use mixing degree, also known as the entropy index, which reflects the combination degree and land use efficiency of various land function types in a specific area. When one land use type is dominant, the entropy index is relatively low, that is, the larger the proportion, the lower the mixing degree. iIndicates the ratio of the number of POIs of land type i to the total number of POIs in the grid. N indicates the total number of land use types in the grid. Figure 2 .
[0086] S101: Establish a sample library.
[0087] 1) Select 5 intelligent network dedicated road sections that have been opened or are planned to be opened, 5 sections with full-time or partial-time cargo bans, and 5 sections without intelligent network dedicated road sections and without cargo ban policies. The dependent variable is whether a dedicated lane Y is set up. If set, the value is 1, otherwise the value is 0. The characteristic values of the sample library are shown in Table 1.
[0088] Table 1 Sample library characteristic values
[0089]
[0090] 2) Balance the dimensions of the independent variable parameters. Calculate the average of the eigenvalues of each variable , the variance between the eigenvalues of each variable , given a fixed value D and ,like Then , iterate the calculation until or . Take a group that meets the conditions ,make The value of D in the present invention is 0.1. The value is 0.2. The results of the independent variable parameters are shown in Table 2.
[0091] ;
[0092] ;
[0093] Table 2 Results of balanced independent variable parameters
[0094]
[0095] S102: Training data selection.
[0096] 1) Randomly select training data. The sample data points are randomly sampled 15 times using bootstrap sampling (with replacement) S times to obtain a training set containing S samples (with repetitions); the remaining unselected samples (s) are used as test data. In this embodiment, there are 15 samples in total, and the above method is used to randomly sample 15 times to obtain 9 training set data and 6 test set data as shown in Table 3.
[0097] Table 3 Training set and test set data
[0098]
[0099] 2) For the 5 independent variable features, 2 of them are randomly selected as input during training and form 3 decision tree training sets. The features of each decision tree training set are defined as and The three decision trees obtained are shown in Table 4.
[0100] , ;'
[0101] Table 4 Decision tree
[0102]
[0103] S103: Train a decision tree.
[0104] 1) Through the eigenvalue of the independent variable, at each node of the decision tree, the eigenvalue of the independent variable is determined according to the principle of maximizing the information gain IG to branch; calculate and The average values of the eigenvalues of the variables are and ; Taking decision tree 1 in Table 4 as an example, after calculation, we get , .
[0105] , ;
[0106] 2) Calculate the branch value of the eigenvalues of two independent variables and ; If there are several independent variable feature values in the child node, and the same branch value is obtained, then any one of the feature values is taken as the branch value. Taking decision tree 1 in Table 4 as an example, after calculation, we get , .
[0107] 3) According to and ; and Rules for decision tree branches; calculate the value of each branch node , ; is the variance of all sample dependent variables of the corresponding node layer, are the variances of the dependent variables of the A and B child nodes of this node layer, respectively.
[0108] 4) Consider the A and B child nodes obtained by splitting as parent nodes, repeat steps 1031-1034, determine the branch point of the parent node, and split the parent node into A and B child nodes until the dependent variable values of the sample road sections in the current parent node are the same, mark the parent node as the end node and stop splitting. When all parent nodes are marked as end nodes, the training of the decision tree is completed. The average value of the independent variable feature value contained in the end node is used as the output y value of the decision tree.
[0109] The final calculated output values y of the three decision trees are 0.375, 0.201, and 0.25 respectively; the variances of the three decision trees are 0, -0.22, and -0.33 respectively.
[0110] Figure 6 The schematic diagram of setting the boundary of the intelligent connected lane in this embodiment is as follows:
[0111] S2: See Figure 3 , the initial dedicated lane boundary is delineated. Obtain the operating frequency of intelligent connected vehicles per unit time on each road section in the target area , land use mix on both sides , road segment attributes , Ratio of trucks per unit time , average vehicle speed The five categories of independent variable feature values are used as input variables and input into the deep learning classifier constructed in step 1 to output the dependent variable y value.
[0112] Furthermore, if , the decision tree is judged to be a feature sample of the opening of intelligent network dedicated lanes, marked as Class I; if , the decision tree is judged to be a characteristic sample of the closure of the intelligent network dedicated lane, and is marked as Class II; if , marked as Class III, and proceed to step 3 for further identification.
[0113] S3: Demarcation of dedicated lane boundaries to ensure road section continuity. Figure 4 .
[0114] Step 3.1 In the target area, select any Class I road section R1 as the reference road section. Calculate the y value of any adjacent road section R2 to the road section R1 and determine the road section category. Further, traverse all the target area road sections according to the following method.
[0115] 1) If the road section R2 is a Class I road section, mark the road section R2 as the reference road section and add the road section R1 to the boundary set;
[0116] 2) If the road section R2 is a Class II road section, determine the categories of other adjacent road sections of R1. If all of them are Class II road sections or there are no adjacent road sections, then mark the road section R1 as a soliton road section, and the two endpoints of R1 are called soliton points, and add them to the soliton point set; otherwise, add R1 to the boundary set, and add the intersection nodes of R1 and all adjacent Class II road sections to the boundary node set;
[0117] 3) If the road section R2 is a Class III road section, mark the road section R2 as the reference road section and add the road section R1 to the candidate boundary set;
[0118] 4) Follow the above steps to mark the road sections one by one. If the reference road section R n If it is a Category I or Category II road section, repeat 1) and 2);
[0119] 5) If the current benchmark section R n For a Class III road section, further determine the adjacent road section R of another node n+1 category, go to 6);
[0120] 6) If R n+1 If it is a Class I road section, the current reference road section R n Changed to a Class I section, R n Remove from the candidate boundary set, add to the boundary set, and mark R n+1 The benchmark section;
[0121] 7) If R n+1 If it is a Category III road section, then the section R is marked n+1 As the reference section, R n and R n+1 Merge into a new section R n,n+1 , and segment R n,n+1 Add to the candidate boundary set;
[0122] 8) If R n+1 If it is a Class II section, then section R n Add to the candidate boundary set; mark R n With R n+1 intersects the node and adds it to the boundary node set;
[0123] 9) Repeat steps 1)-8) to traverse all road sections in the target area and output the boundary set, candidate boundary set, boundary node set, and soliton point set.
[0124] Step 3.2 According to the shortest path principle, all boundary node sets are connected to the soliton point set, so that all road segments of the boundary set and the candidate boundary set are interconnected. The newly added connecting road segments are defined as Class IV road segments.
[0125] S 4: Demarcation of dedicated lane boundaries to ensure smooth traffic flow. Figure 5 .
[0126] Step 4.1: Obtain the OD data of intelligent connected vehicles on the road network. Intelligent connected vehicles run based on the dispatch instructions of the cloud control platform, and the OD data is fixed. The unit distance transportation cost of intelligent connected vehicle k from node r to node s (unit: yuan / km) is recorded as .
[0127] Step 4.2: Establish the objective function of minimizing travel cost.
[0128] ;
[0129] in, Represents the shortest path from node r to node s (unit: kilometers); Represents the distance of road section ij (unit: kilometers); Indicates whether the route from node r to node s passes through section ij. If so, ,otherwise . is the compensation coefficient, which represents the cost compensation of the intelligent networked vehicle running on the non-intelligent networked dedicated lane. The value is 5. Indicates whether to change the IV-class road section to the I-class road section. If so, ,otherwise . is the penalty coefficient (unit: yuan / km), which indicates the penalty coefficient generated by converting a Class IV road section into a Class I road section. The value range is 50.
[0130] Step 4.3: Randomly transform the Class IV road sections into Class I road sections.
[0131] Number the IV road sections, with the largest number being M. Generate a set of M strings containing 0 or 1 from left to right, that is String. Different digits correspond to the road section numbers. The value of each digit is generated by the random number function rand(). If rand()>0.5, the value of the digit is 1, otherwise it is 0. For example: the string "101" means that the IV-class road sections numbered 1 and 3 are transformed into I-class road sections, and the IV-class road section numbered 2 remains unchanged.
[0132] Step 4.4: Calculate and output the first objective function Z 1 , let min Z = Z 1 .
[0133] Step 4.5: Output the optimal objective function value. If the objective function value Z output for the nth timen If Z is less than min Z, then let min Z = Z n .
[0134] Step 4.6: Termination condition. Repeat steps 4.3 to 4.5. When the set maximum number of iterations N1 is reached, or when the minimum value of the objective function Z has not changed for N2 consecutive iterations, terminate the calculation and output all strings.
[0135] S 5: Determine the boundary of the intelligent connected vehicle dedicated lane. Convert all type III road segments in step 4 into type I road segments, and convert all type IV road segments into type II road segments. Finally, the road network result only contains type I road segments and type II road segments.至此,I类路段所围合的边界即为智能网联专用道设置边界。At this point, the boundary enclosed by the type I road segments is the boundary for setting the intelligent connected vehicle dedicated lane.
[0136] Preferably, an embodiment of the present application further provides a specific implementation manner of an electronic device that can implement all steps in the method for delimiting the setting boundary of the intelligent connected vehicle dedicated lane in the above embodiment. The electronic device specifically includes the following contents:
[0137] A processor, a memory, a communication interface, and a bus;
[0138] Among them, the processor, the memory, and the communication interface complete mutual communication through the bus; the communication interface is used to implement information transmission between related devices such as the server-side device, the metering device, and the user-side device.
[0139] The processor is used to call the computer program in the memory. When the processor executes the computer program, it implements all steps in the method for delimiting the setting boundary of the intelligent connected vehicle dedicated lane in the above embodiment.
[0140] An embodiment of the present application further provides a computer-readable storage medium that can implement all steps in the method for delimiting the setting boundary of the intelligent connected vehicle dedicated lane in the above embodiment. A computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, it implements all steps in the method for delimiting the setting boundary of the intelligent connected vehicle dedicated lane in the above embodiment.
[0141] The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the specific order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0142] Although the present application provides method operation steps such as embodiments or flow charts, more or fewer operation steps may be included based on conventional or non-creative work. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the device or client product in practice is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).
[0143] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0144] 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.
[0145] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0146] The present invention is not limited to the embodiments described above. The above description of the specific embodiments is intended to describe and illustrate the technical solution of the present invention. The above specific embodiments are merely illustrative and not restrictive. Without departing from the scope of the present invention and the scope of protection of the claims, a person of ordinary skill in the art can also make many forms of specific changes under the guidance of the present invention, which all fall within the scope of protection of the present invention.
Claims
1. A method for delimiting the setting boundary of an intelligent connected dedicated lane, characterized in that, it includes the following steps: S1. Build a deep learning classifier: the running frequency of intelligent connected vehicles per unit time on the road section X 1 , mixed degree of land use on both sides X 2 , road segment attribute X 3 , Truck ratio per unit time X 4 、Vehicle average speed X 5 Deep learning of five types of independent variable features, including building a sample library, selecting training data, and training decision trees; Among them, Mix represents the mixed degree of land use on both sides of the road section, also known as the entropy index, which reflects the combination degree and land use efficiency of various land function types in a certain area; j represents the ratio of the number of POIs of land type j to the total number of POIs in the area; N represents the total number of land use types in the area where the road segment is located. is the independent variable X n The characteristic value of is, n is the category number of the independent variable feature, m is the sample road section number, and M is the number of sample data; specifically, the following steps are included: S101. Establish a sample library; 1011) Select at least 5 intelligent connected dedicated road sections that have been opened or are planned to be opened, at least 5 sections with full-time or part-time goods transportation bans, and at least 5 sections without intelligent connected dedicated roads and without goods transportation ban strategies as sample sections and form a sample library. Extract the independent variable and dependent variable characteristic values of each sample section as its sample data; the dependent variable characteristic value represents whether a dedicated lane Y is set. If it is set, the value is 1; otherwise, the value is 0; 1012) Balance the independent variable parameter dimensions; calculate the average value of the characteristic values of various independent variables of the sample sections in the sample library and the variance D of the eigenvalues of various independent variables n , given a fixed value D and If D n >D then Repeat the iterative calculation until D n ≤D or Take a set of X that satisfies the conditions n ,make is the independent variable X n The characteristic value of , n is the category number of the independent variable feature, m is the sample road section number, and M is the number of sample data; S102. Select training data; 1021) Randomly select training data. For at least 15 sample sections in the sample library, use bootstrap sampling with replacement to obtain 10 repeated samples and a training set containing at least 15 sample sections; 1022) The five types of independent variable features are combined in pairs and randomly assigned to 10 training sets. During training, the two types of independent variable feature values corresponding to the sample sections in the training set are used as input to form 10 decision tree training sets; the independent variable feature value of each decision tree training set is defined as n i The independent variable feature category number assigned to the decision tree training set i, m i is the sample road section number in the decision tree training set i; S103. Train a decision tree; 1031) Decision tree splitting rule: assign all sample sections in the decision tree training set i to the parent node, and select an independent variable feature value in the parent node The sample road segment in the parent node The class variable eigenvalue and For comparison, The class variable eigenvalue is less than The sample road sections of the parent node and the two child nodes A and B are divided into A child nodes, and the number of sample road sections with dependent variable values of 0 and 1 in the sample road sections of the parent node and the two child nodes A and B is counted respectively. and and and Calculate the eigenvalues of the independent variables The information gain IG obtained as the branch point of the parent node is used to traverse all the independent variable eigenvalues of the sample road section of the parent node in turn, and the independent variable eigenvalue with the largest information gain is used as the branch point to split the parent node into two child nodes A and B; In the formula, E(par), E(A), and E(B) are the information entropy of the parent node, A, and B child nodes respectively, ω A and ω B is the weight of the A and B child nodes; IG=E(par)-ω A E(A)-ω B E(B); 1032) By using the eigenvalue of the independent variable, at each node of the decision tree, the eigenvalue of the independent variable is determined according to the principle of maximizing the information gain IG to branch; calculate and The average values of the eigenvalues of the variables are and sum represents the number of decision tree training sets i, and from step 1021), sum = 10; 1033) Calculate the branch value x′ of the eigenvalues of the two independent variables 1 and x′ 2 ; If there are several independent variable eigenvalues in a child node, and they obtain the same branch value, then any one of the eigenvalues is taken as the branch value; 1034) respectively according to E(A)>x′ 1 and E(A)≤x′ 1 ; E(B)>x′ 2 and E(B)≤x′ 2 Rules for decision tree branches; calculate the value of each branch node D all is the variance of all sample dependent variables of the corresponding node layer, D Left ,D Right are the variances of the dependent variables of the A and B subnodes of this node layer, respectively; 1035) Regard the split A and B child nodes as the parent node, repeat the steps of 1031)-1034), determine the branching point of the parent node, and split the parent node into A and B child nodes until the dependent variable values of the sample sections in the current parent node are the same. Calibrate the parent node as the end node and stop splitting. When all parent nodes are calibrated as end nodes, the training of the decision tree is completed; the average value of the independent variable characteristic values included in the end node is used as the output y value of the decision tree; S2. Delimit the initial setting boundary of the intelligent connected dedicated lane; it includes the following steps: S201. Obtain the operating frequency per unit time of intelligent networked vehicles on each road section in the target area X 1 , mixed degree of land use on both sides X 2 , road segment attribute X 3 , Truck ratio per unit time X 4 、Vehicle average speed X 5 5 types of independent variable characteristic values; input the 5 types of independent variable characteristic values as input variables to the deep learning classifier constructed in step S1, generate a decision tree, and output the dependent variable y value; according to the size of the y value, delineate the initial intelligent network dedicated lane setting boundary; S202. If y≥0.75, determine that the corresponding decision tree is a characteristic sample for the opening of the intelligent connected dedicated lane and mark it as type I; if y≤0.25, determine that the corresponding decision tree is a characteristic sample for the closing of the intelligent connected dedicated lane and mark it as type II; if 0.25 < y < 0.75, mark it as type III and transfer to step S3 for further discrimination; S3. Delimit the boundary of the intelligent connected dedicated lane to ensure the continuity of the road section; it includes the following steps: S301. In the target area, arbitrarily select an I-type road section R1 as the reference road section; calculate the y value of any adjacent road section R2 to the road section R1 and judge the road section category; and sequentially traverse all road sections in the target area and judge the corresponding road section category; S302. Establish a data set; the data set includes a boundary set, a boundary node set, a solitary point set, and a candidate boundary set; among them, the boundary set represents the set of road sections with the intelligent connected dedicated lane as the boundary; the boundary node set represents the set of two-side nodes with the intelligent connected dedicated lane as the boundary; the solitary point set represents the set of end nodes with the intelligent connected dedicated lane as the boundary; the candidate boundary set represents the set of road sections with the intelligent connected dedicated lane as the candidate boundary; S303. Connect all boundary node sets and solitary point sets according to the shortest path principle to make the road sections of all boundary sets and candidate boundary sets connected to each other; the newly added connecting road sections are defined as type IV road sections; S4. Delimit the boundary of the intelligent connected dedicated lane to ensure the smoothness of the road section; it includes the following steps: S401. Obtain the OD data of the intelligent networked vehicles on the road network; the intelligent networked vehicles run based on the dispatching instructions of the cloud control platform, and the OD data is determined; the unit distance transportation cost of the intelligent networked vehicle k from node r to node s is in units of: yuan / km, recorded as S402. Establish an objective function Z for minimizing the travel cost; Among them, l r,s Indicates the shortest path from node r to node s, in kilometers; l ij Indicates the distance of road section ij, unit: kilometers; Indicates whether the route from node r to node s passes through section ij. If so, otherwise α is the compensation coefficient, which represents the cost compensation for the operation of intelligent connected vehicles on non-intelligent connected lanes. The value range of α is 2 to 5; g ij Indicates whether to change the IV-type road section to the I-type road section. If so, g ij =1, otherwise g ij =0; β is the penalty coefficient, unit: yuan / km, which represents the penalty coefficient generated by converting a Class IV road section into a Class I road section, and the value range of β is 20~1000; S403. Randomly convert type IV road sections into type I road sections; Number the IV road sections, with the largest number being M. b ; Generate a set of length M from left to right b A string containing 0 or 1, that is, g ij String; different digits correspond to the road section numbers; the value of each digit is generated by the random number function rand(). If rand()>0.5, the corresponding digit is 1, otherwise it is 0; the string "101" means that the IV-class road sections numbered 1 and 3 are transformed into I-class road sections, and the IV-class road section numbered 2 remains unchanged; S404. Calculate and output the first objective function Z 1 , let min Z = Z 1 ; S405. Output the optimal objective function value. If the objective function value Z output at the nth time n <is less than min Z, then let min Z = Z n ; S406. Termination condition; repeat S403 to S405, when the maximum number of iterations N is reached 1 , or the objective function Z is continuous N 2 When the minimum value of the iteration has not changed, the calculation is terminated and all g ij string; N 2 A constant value, determined by the maximum number of iterations N 1 Determine, the value is N 1 / 100; S5. Determine the setting boundary of the intelligent connected dedicated lane.
2. According to the method for setting boundaries of an intelligent connected lane according to claim 1, It is characterized in that Step S301 includes the following steps: 3011) If the road section R2 is a Class I road section, mark the road section R2 as a reference road section, and add the road section R1 to the boundary set; 3012) If the road section R2 is a Class II road section, determine the categories of the road sections adjacent to the road section R1. If all of them are Class II road sections or there are no adjacent road sections, mark the road section R1 as a soliton road section, and the two endpoints of R1 are called soliton points, and are added to the soliton point set; otherwise, add R1 to the boundary set, and add the intersection nodes of R1 and all adjacent Class II road sections to the boundary node set; 3013) if the road section R2 is a Class III road section, mark the road section R2 as a reference road section, and add the road section R1 to the candidate boundary set; 3014) According to the above steps, mark the road sections in turn. If the reference road section R n If it is a Category I or Category II road section, repeat 3011) and 3012); 3015) If the current reference road section R n For a Class III road section, further determine the adjacent road section R of another node n+1 categories, go to 3016); 3016) If R n+1 If it is a Class I road section, the current reference road section R n Changed to a Class I section, R n Remove from the candidate boundary set, add to the boundary set, and mark R n+1 The benchmark section; 3017) If R n+1 If it is a Category III road section, then the section R is marked n+1 As the reference section, R n and R n+1 Merge into a new section R n,n+1 , and segment R n,n+1 Add to the candidate boundary set; 3018) If R n+1 If it is a Class II section, then section R n Add to the candidate boundary set; mark R n With R n+1 intersects the node and adds it to the boundary node set; 3019) Repeat steps 3011)-3018), traverse all road sections in the target area, and output boundary sets, candidate boundary sets, boundary node sets, and soliton point sets.
3. According to the method for setting boundaries of an intelligent connected lane according to claim 1, It is characterized in that Step S5 includes the following steps: converting all Class III sections in step S4 into Class I sections, and converting all Class IV sections into Class II sections, so that the final road network result only includes Class I sections and Class II sections; at this point, the boundary enclosed by the Class I section is the boundary for setting the intelligent connected lane.
4. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method for setting boundaries of the intelligent connected lane described in any one of claims 1 to 3 are implemented.
5. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method for setting boundaries of an intelligent connected lane as described in any one of claims 1 to 3 are implemented.
