A method for traffic detector layout optimization and path flow estimation under budget constraints
By calculating the path time consumption distribution curve and establishing an optimization model, the traffic detector layout and path flow estimation are optimized, which solves the problems of large number of detectors and inaccurate estimation in the existing technology, and achieves global network path flow under limited budget. Maximize observations and more accurate flow estimates.
Patent Information
- Application Number
- CN202410316165.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-03-19
AI Technical Summary
Existing methods are difficult to ensure the use of the minimum number of detectors to maximize the observation of global network path flow under limited budgets, and do not fully utilize the individual travel time information in automatic vehicle identification detectors.
By calculating the path time consumption distribution curve, a road traffic detector layout optimization model under the budget constraint of a limited number of detectors is established, the detector layout is optimized, the path flow estimation model is improved, and the path flow estimation is performed based on the detector observation data.
It achieves maximizing the number of observations using fewer detectors under limited detector budget, and improves the accuracy of path flow estimation.
Smart Images

Figure CN118197049B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of traffic detection, and in particular relates to a traffic detector layout optimization and path flow estimation method under budget constraints. Background Art
[0002] In order to effectively deal with traffic congestion, an efficient traffic monitoring system must be established. With the improvement and maturity of image recognition technology, Automatic Vehicle Identification (AVI) sensors have been widely used in my country. AVI sensors can capture vehicle driving information more comprehensively, including license plate numbers, time and location of appearance, and instantaneous speed. By reasonably arranging AVI detectors, we can not only directly obtain the traffic flow of the detection section, but also infer the traffic flow distribution of each path on the global network.
[0003] Considering the high cost of AVI detectors, how to optimize the layout of detectors under a limited cost budget to maximize the observation of global network path traffic has been the focus of attention of competent departments and researchers in recent years. However, current methods often focus more on time period statistics, while ignoring individual operation information, and fail to fully utilize the individual travel time information recorded in AVI data. Although these methods can provide detector layout solutions for maximizing road network observation under a limited budget, they cannot guarantee the minimum number of detectors required, thereby increasing the cost of building a traffic detection system.
[0004] The invention with the publication number CN103489316B discloses a method for laying out network traffic flow detectors based on the road network topology relationship. First, the road sections in the road network are divided into three categories: road network entrance sections, exit sections and internal sections, and the sections with traffic generation are determined. The minimum number of sections required for detection is the sum of the number of road network entrance sections and the number of sections with traffic generation; then, according to the law of conservation of intersection traffic flow, a group of road network flow conservation equations is established; then, the sections are prioritized for detection according to the road grade and cost, and the reverse order is taken as the detection weight; finally, the highest priority of the detection section set is taken as the optimization goal, and the number of detectors laid out and the rank of the detector optimization coefficient matrix are taken as constraints. A detector layout optimization model is established, and a greedy algorithm is used for solving to determine the optimal layout position of the detector. This invention can reduce the construction and maintenance costs of the road network traffic flow detection system while avoiding the high cost of OD matrix investigation and the distorted assumptions of travelers' path selection behavior. However, it cannot solve the technical problem of detector layout for maximizing observation of the road network under a limited budget. Summary of the invention
[0005] Technical problem to be solved: In view of the technical problem that existing research focuses more on time period statistical data, although it can provide a detector layout solution for maximizing road network observation under a limited budget, it cannot guarantee the minimum number of required detectors. The present invention discloses a traffic detector layout optimization and path flow estimation method under budget constraints. By utilizing the travel time data in the vehicle automatic identification detector, it achieves the maximum observation of the number of paths using fewer detectors under the constraint of a limited detector budget. On this basis, the traditional path flow estimation model is improved, and the calculated observable road section data is incorporated into the traditional flow estimation model to achieve global network path flow estimation under limited observation conditions.
[0006] Technical solution:
[0007] A method for optimizing the layout of traffic detectors and estimating path flow under budget constraints, the method comprising the following steps:
[0008] S1. Calculate the time consumption of all paths in the road network according to the path time consumption distribution curve;
[0009] S2. Establish a road traffic detector layout optimization model under the budget constraint of a limited number of detectors;
[0010] S3, solving the road traffic detector layout optimization model to obtain the detector layout plan;
[0011] S4. Establish an improved path flow estimation model based on the detector layout scheme;
[0012] S5. Combine the observation data of the detector to solve the improved path flow estimation model and complete the path flow estimation.
[0013] Furthermore, in step S1, the process of estimating the path time consumption distribution curve according to the sample data includes the following steps:
[0014] Assume that the path time consumption follows a log-normal distribution, i.e., ln(c p )~N(μ,σ), then:
[0015]
[0016]
[0017]
[0018] Among them, EXP(c p ) and VAR(c p ) are the time consumption of each path c p The expectation and variance of EXP(cp ) and VAR(c p ) are obtained by counting the GPS data of vehicles on all sections of the path; the average time consumption of vehicles on all sections is calculated to obtain EXP(c p ):
[0019]
[0020] Among them, c l,n is the time consumption of the nth GPS sample on the road segment l, N l is the total number of GPS samples on road section l; calculate the variance of vehicle time consumption on all road sections and obtain VAR(c p ):
[0021]
[0022] Where VAR(c l ) is the variance of vehicle time consumption on road section l.
[0023] Furthermore, in step S2, the road traffic detector layout optimization model is:
[0024]
[0025] Where a, b are the road segment numbers; r, r′ are the paths; A is the set of all road segments; R is the set of all paths; z a and z b is a 0-1 variable, indicating whether a detector is set on section a or section b. If a detector is set on section a, then z a =1, otherwise 0; is a 0-1 variable, indicating whether section a is on path r. If section a is on path r, then Otherwise it is 0; y r is a 0-1 decision variable, indicating whether path r is observed. If path r is observable, then y r =1, otherwise 0; B is the upper limit of the number of detectors allowed to be installed; When detectors are set for both sections a and b, the temporal distinguishability of paths r1 and r2 is calculated as:
[0026]
[0027] Among them, f(c p ) is the time consumption distribution curve of path p; t0 is the time consumption curve of the two paths and The horizontal coordinate of the intersection point is equivalent to the equation The solution.
[0028] Furthermore, in step S3, the process of solving the road traffic detector layout optimization model includes the following steps:
[0029] S3-1. Initialize the road section set U where sensors are deployed to be an empty set:
[0030] S3-2, determine whether U is a feasible solution of the road traffic detector layout optimization model under the budget constraint of a limited number of detectors; if U is not feasible, go to step S3-3; if U is feasible, return U as the initial optimal solution;
[0031] S3-3, select the road section a corresponding to the maximum value of |Cov(U, a)|+|Div(U, a)|; if the maximum value is not unique, select a new road section for setting sensors according to the road section sequence in the initial road section sequence set, and update the road section set U for arranging sensors, and go to step S3-2;
[0032] In the above |Cov(U, a)|+|Div(U, a)|, a is the newly added section where the detector is arranged, and Cov(U, a) is the newly added section that satisfies the constraint The number of paths r, Div(U, a) is the newly added path that satisfies the constraint The number of path pairs (r, r′).
[0033] The definition of the initial segment order set is: when U is an empty set, all segments are sorted according to the size of |Cov(U, a)|+|Div(U, a)| to obtain the initial segment order set.
[0034] Furthermore, in step S4, the improved path flow estimation model is:
[0035]
[0036] Among them, f a represents the estimated traffic volume on road section a; f′ a and f′ w,r Represent the traffic volume of the observed road section and path respectively; W and R are the sets of all OD pairs and all paths r between OD pairs in the road network respectively; M and N are the sets of observed road sections and unobserved road sections respectively; A is the set of all road sections; θ represents the discrete parameter; ∈ a represents the permissible traffic volume measurement error on road section a; f w,r represents the estimated traffic volume on path r contained in OD pair w; C a and t a represents the capacity and travel time on road segment a; is a 0-1 variable, indicating whether section a is on path r. If section a is on path r, then Otherwise it is 0.
[0037] Furthermore, in step S5, the improved path flow estimation model is solved by a heuristic method or an optimization solver.
[0038] Beneficial effects:
[0039] First, the traffic detector layout optimization and path flow estimation method under budget constraints of the present invention makes full use of the travel time data in the AVI detector and realizes the maximum observation of the number of paths using fewer detectors under the limited detector budget constraint.
[0040] Secondly, the traffic detector layout optimization and path flow estimation method under budget constraints of the present invention improves the constraint conditions of the traditional path flow estimation model based on the observed path flow, and realizes more accurate path flow estimation. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of a road network structure according to an embodiment of the present invention;
[0042] Figure 2 The flowchart is a method for optimizing the layout of traffic detectors and estimating path flow under budget constraints according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following examples will enable those skilled in the art to more fully understand the present invention, but are not intended to limit the present invention in any way.
[0044] See also Figure 2 The embodiment of the present invention discloses a method for optimizing the layout of traffic detectors and estimating path flow under budget constraints. The method for optimizing the layout of traffic detectors and estimating path flow comprises the following steps:
[0045] S1. Calculate the time consumption of all paths in the road network according to the path time consumption distribution curve;
[0046] S2. Establish a road traffic detector layout optimization model under the budget constraint of a limited number of detectors;
[0047] S3, solving the road traffic detector layout optimization model to obtain the detector layout plan;
[0048] S4. Establish an improved path flow estimation model based on the detector layout scheme;
[0049] S5. Combine the observation data of the detector to solve the improved path flow estimation model and complete the path flow estimation.
[0050] The time consumption distribution in step S1 is based on the path time consumption distribution curve f(c p) is obtained. According to sample estimation, when the vehicle travels without a destination, the path time consumption is approximately log-normally distributed. Therefore, the present invention assumes that the path time consumption obeys the log-normal distribution, that is, ln(c p )~N(μ,σ), then:
[0051]
[0052]
[0053]
[0054] Among them, EXP(c p ) and VAR(c p ) are the time consumption of each path c p For each path p, EXP(c p ) and VAR(c p ) are obtained by counting the GPS data of vehicles on all sections of the route. By calculating the average time consumption of vehicles on all sections, we can get EXP(c p ):
[0055]
[0056] Among them, c l,n is the time consumption of the nth GPS sample on segment 1, N l is the total number of GPS samples on road section l. By calculating the variance of vehicle time consumption on all road sections, we can get VAR(c p ):
[0057]
[0058] Where VAR(c l ) is the variance of vehicle time consumption on road section l.
[0059] The road traffic detector layout optimization model under the limited detector number budget constraint in step S2 is:
[0060]
[0061]
[0062]
[0063] Where a and b are road segments; r and r′ are paths; A is the set of all road segments; R is the set of all paths; z a and z bIt is a 0-1 variable, indicating whether a detector is set on section a or b. If a detector is set on section a, za=1, otherwise it is 0; is a 0-1 variable, indicating whether section a is on path r. If section a is on path r, then Otherwise it is 0; y r is a 0-1 decision variable, indicating whether the path r is observed. If the path r is observable, yr = 1, otherwise it is 0; B is the upper limit of the number of detectors that can be installed; When detectors are set for both sections a and b, the temporal distinguishability of paths r1 and r2 is calculated as:
[0064]
[0065] Among them, f(c p ) is the time consumption distribution curve of path p; t0 is the time consumption curve of the two paths and The intersection of .
[0066] The steps of solving the detector layout optimization model in step S3 include:
[0067] S3-1, initializing the road section set U where sensors are arranged to be an empty set;
[0068] S3-2. Determine whether U is a feasible solution to the road traffic detector layout optimization model under the budget constraint of the limited number of detectors in claim 3.
[0069] S3-3, if U is not feasible, select the road section a corresponding to the maximum value of |Cov(U, a)|+|Div(U, a)|; if the maximum value is not unique, select a new road section for setting sensors according to the road section sequence in the initial road section sequence set, and update the road section set A for arranging sensors, and go to S3-2. If U is feasible, return U as the initial optimal solution.
[0070] Wherein, Cov(U, a) and Div(U, a) are respectively the road sections selected from the set U as the road section set for arranging detectors, and when the road section a is selected as the newly added detector coverage section, the number of newly added path pairs (r, r′) that meet the constraint (1) of the road traffic detector layout optimization model under the finite detector number budget constraint described in claim 3 and the number of newly added paths r that meet the constraint (2). When U is an empty set, all road sections are sorted according to the size of |Cov(U, a)|+|Div(U, a)| to obtain the initial road section order set described in S3-3.
[0071] The improved flow estimation model in step S4 adds the flow error constraint of the road section observed by the detector on the basis of the traditional flow estimation model. The improved flow estimation model of the present invention is:
[0072]
[0073]
[0074] Among them, f a represents the estimated traffic volume on road section a; f′ a and f′ w,r Represent the traffic volume of the observed road section and path respectively; W and R are the sets of all OD pairs and all paths r between OD pairs in the road network respectively; M and U represent the set of observed road sections and the set of unobserved road sections respectively; A is the set of all road sections; θ represents the discrete parameter; ∈ a represents the permissible traffic volume measurement error on road section a; f w,r represents the estimated traffic volume on path r contained in OD pair w; C a and t a represents the capacity and travel time on road segment a; is a 0-1 variable, indicating whether section a is on path r. If section a is on path r, then Otherwise it is 0.
[0075] The path flow estimation model in step S5 can be solved by a heuristic method or an optimization solver.
[0076] The following is based on Figure 1 An example road network is used to illustrate the proposed method.
[0077] In the example road network, there are 4 paths and 6 road segments. The inclusion relationship between the paths and road segments can be represented by a 6-dimensional vector, as shown in Table 1.
[0078] Table 1 Path-segment inclusion relationship matrix
[0079]
[0080] To highlight the contribution of the present invention, this example assumes that: the upper limit of the number of detectors that can be installed is B = 2; if and only if (a, b) = (1, 6) and (r, r′) ∈ {(1, 2), (1, 3), (1, 4), (2, 4), (3, 4)}, if detectors are installed on both sections a and b, the temporal distinguishability of paths r1 and r2 is
[0081] Substitute the above data into the following road traffic detector layout optimization model under limited budget constraints proposed by the present invention to solve:
[0082]
[0083]
[0084] Get one of the optimal solutions corresponding to yr = [1, 0, 0, 1], then the total number of paths observed ∑ r∈R y r =2. As a comparison, the present invention continues to substitute the above data into the following traditional road traffic detector layout optimization model for solution:
[0085]
[0086] Get the y corresponding to one of the optimal solutions r =[1, 0, 0, 0], the total number of paths observed at this time is ∑ r∈R y r =1.
[0087] By comparison, it is found that the road traffic detector layout optimization model under limited budget constraints proposed by the present invention observes more paths on the example road network compared with the traditional model.
[0088] Under the above partial observation conditions, the path flow estimation can continue. Since the two detectors have completed the observation of two of the four paths, the observation results of these two paths will be used as parameters in the newly added constraints of the traditional path flow observation model. Solving the path flow estimation model proposed in the present invention that considers the flow constraints of the observed paths can obtain all the flow information of the road network.
[0089] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A method for optimizing the layout of traffic detectors and estimating path flow under budget constraints, characterized in that: The traffic detector layout optimization and path flow estimation method comprises the following steps: S1. Estimate the path time consumption distribution curve based on sample data; S2. Establish a road traffic detector layout optimization model under the budget constraint of a limited number of detectors; S3, solving the road traffic detector layout optimization model to obtain the detector layout plan; S4. Establish an improved path flow estimation model based on the detector layout scheme; S5. Combining the observation data of the detector, solving the improved path flow estimation model, and completing the path flow estimation; In step S1, the process of estimating the path time consumption distribution curve according to the sample data includes the following steps: Assume that the path time consumption follows a log-normal distribution, i.e., ln(c p )~N(μ,σ), then: Among them, f(c p ) is the path time consumption distribution curve; EXP(c p ) and VAR(c p ) are the time consumption of each path c p The expectation and variance of EXP(c p ) and VAR(c p ) are obtained by counting the GPS data of vehicles on all sections of the path; the average time consumption of vehicles on all sections is calculated to obtain EXP(c p ): Among them, c l,n is the time consumption of the nth GPS sample on the road segment l, N l is the total number of GPS samples on road section l; calculate the variance of vehicle time consumption on all road sections and obtain VAR(c p ): Where VAR(c l ) is the variance of vehicle time consumption on road section l; In step S2, the road traffic detector layout optimization model is: Where a, b are the road segment numbers; r, r′ are the path numbers; A is the set of all road segments; R is the set of all paths; z a and z b is a 0-1 variable, indicating whether a detector is set on section a or section b. If a detector is set on section a, then z a =1, otherwise 0; is a 0-1 variable, indicating whether section a is on path r. If section a is on path r, then Otherwise it is 0; y r is a 0-1 decision variable, indicating whether path r is observed. If path r is observable, then y r =1, otherwise 0; B is the upper limit of the number of detectors allowed to be installed; When detectors are set for both sections a and b, the temporal distinguishability of paths r1 and r2 is calculated as: Among them, f(c p ) is the time consumption distribution curve of path p; t0 is the time consumption curve of paths p1 and p2 and The horizontal coordinate of the intersection point, t0 is equivalent to the equation The solution; In step S3, the process of solving the road traffic detector layout optimization model includes the following steps: S3-1, initializing the road section set U where sensors are arranged to be an empty set; S3-2, determine whether U is a feasible solution of the road traffic detector layout optimization model under the budget constraint of a limited number of detectors; if U is not feasible, go to step S3-3; if U is feasible, return U as the initial optimal solution; S3-3, select the road section a corresponding to the maximum value of |Cov(U,a)|+|Div(U,a)|; if the maximum value is not unique, select a new road section for setting sensors according to the road section sequence in the initial road section sequence set, and update the road section set U for arranging sensors, and go to step S3-2; In the above |Cov(U,a)|+|Div(U,a)|, a is the newly added section where the detector is arranged, and Cov(U,a) is the newly added section that satisfies the constraint The number of paths r, Div(U,a) is the newly added path that satisfies the constraint The path pair (r,r ′ ) The definition of the initial segment order set is: when U is an empty set, all segments are sorted according to the size of |Cov(U,a)|+|Div(U,a)| to obtain the initial segment order set; In step S4, the improved path flow estimation model is: Among them, f a represents the estimated traffic volume on road section a; f′ a and f′ w,r Represent the traffic volume of the observed road section and path respectively; W and R are the sets of all OD pairs and all paths r between OD pairs in the road network respectively; M and N are the sets of observed road sections and unobserved road sections respectively; A is the set of all road sections; θ represents the discrete parameter; ∑ a represents the permissible traffic volume measurement error on road section a; f w,r represents the estimated traffic volume on path r contained in OD pair w; C a and t a represents the capacity and travel time on road segment a; is a 0-1 variable, indicating whether section a is on path r. If section a is on path r, then Otherwise it is 0.
2. The method for optimizing the layout of traffic detectors and estimating the path flow under budget constraints according to claim 1, characterized in that: In step S5, the improved path flow estimation model is solved by a heuristic method or an optimization solver.
Citation Information
Patent Citations
A network traffic flow detector layout method based on road network topological relationship
CN103489316B
Urban road radio frequency identification device (RFID) detector optimization arranging method
CN104332051A
Optimized layout method of traffic detectors for highway black spots
CN113935158A
