A road traffic detector layout optimization method considering travel time distribution characteristics
By estimating the path travel time probability density function and calculating the travel time distinguishability, a complete path observation model is established, and heuristic methods are used to optimize the detector layout, which solves the problem of too many detectors in the existing technology and achieves resource optimization and Cost reduction effect.
Patent Information
- Application Number
- CN202410362997.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-03-28
AI Technical Summary
The existing road traffic detector layout optimization method cannot fully utilize the travel time information monitored by AVI detectors, resulting in an excessive number of detectors and increasing the cost of building a traffic detection system.
By estimating the probability density function of the path travel time, calculating the intersection and union ratio of the travel time probability density function, determining the travel time distinguishability of each two paths, and establishing a path complete observation model that considers the travel time distribution characteristics, using heuristic methods Optimize detector layout and reduce the number of detectors.
When completing the complete observation task of the same path, fewer detectors are used, effectively reducing the cost of building a traffic detection system, and showing a performance improvement of approximately 21.9% on the measured data set.
Smart Images

Figure CN118116201B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of traffic detection, and in particular relates to a road traffic detector layout optimization method considering travel time distribution characteristics. Background Art
[0002] In order to effectively alleviate traffic congestion, an effective traffic monitoring system must be established. With the advancement of artificial intelligence and information and communication technology, AVI (Automatic Vehicle Identification) sensors represented by video and electric police have been widely used in my country. AVI sensors can capture richer vehicle driving information, including the vehicle's license plate number, time and location of appearance, and instantaneous speed. By reasonably arranging AVI detectors, not only can the traffic flow of the detection section be directly obtained, but it can also be used to infer the distribution of traffic flow (i.e., path flow) on all paths of the global network. Characterizing the source and destination of traffic flow with paths as units can not only realize the traceability analysis of traffic congestion, that is, answer the practical problem of "where does the traffic at the congested location come from and where does it go", but also deeply analyze the influencing factors of the generation and evolution of traffic congestion, and provide theoretical support for data-driven refined and precise traffic control and congestion management.
[0003] How to optimize the detector layout and achieve complete observation of global network path traffic has become a common concern of management departments and researchers. However, existing methods focus on time period statistical data and ignore individual operation information. They only know the aggregated traffic flow of sections, but not the non-aggregated vehicle trajectories, and fail to fully utilize the individual travel time information recorded in AVI data. Although these methods can provide detector layout solutions for global road network observation, they cannot guarantee the minimum number of detectors required, which increases the cost of traffic detection system construction. Summary of the invention
[0004] The technical problem to be solved by the present invention is that most of the existing road traffic detector layout optimization methods cannot fully utilize the travel time information monitored by the AVI detector, that is, although the existing methods can ensure the uniqueness of traffic flow observation, they cannot ensure that the minimum number of detectors is used. The present invention provides a road traffic detector layout optimization method that takes into account the travel time distribution characteristics, which can better reduce the cost of traffic detection system construction and achieve resource optimization.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a method for optimizing the layout of road traffic detectors considering travel time distribution characteristics, comprising the following steps:
[0006] S1. Estimate the probability density function of the path travel time based on the path travel time that obeys the normal distribution;
[0007] S2, calculating the intersection-combination ratio of the travel time probability density functions of every two paths, and then determining the distinguishability of the travel time of every two paths;
[0008] S3, according to the distinguishability of the travel time of every two paths and the status of the detectors set on the road section, a path complete observation model considering the travel time distribution characteristics is established;
[0009] S4. Use the heuristic method to solve the path complete observation model and obtain the optimization result of the road traffic detector layout.
[0010] Furthermore, in the aforementioned step S1, the path travel time probability density function is as follows:
[0011]
[0012] Among them, g(t|r) is the travel time probability density function of path r, is the sample mean of the travel time of path r, is the sample variance of the travel time of path r.
[0013] Furthermore, the sample mean of the travel time of the aforementioned path r is and the sample variance of the travel time of path r The calculation is as follows:
[0014]
[0015]
[0016] Among them, c l,n is the travel time of the nth vehicle sample on road segment l, N l is the total number of vehicle samples on road section l, VAR(c l ) is the variance of vehicle travel time on road segment l.
[0017] Furthermore, in the aforementioned step S2, the intersection-combination ratio of the travel time probability density function Pr(r1,r2) is calculated as follows:
[0018]
[0019] Among them, g(t|r1) and g(t|r2) are the travel time probability density functions of paths r1 and r2; t0 is the intersection of the two travel time probability density functions.
[0020] Furthermore, the intersection point t0 of the two aforementioned travel time probability density functions is calculated as follows:
[0021]
[0022] Where x is the independent variable. When the solution t0 of the quadratic equation is not unique, take t0 that maximizes the probability density function g(t0|r).
[0023] Furthermore, in the aforementioned step S2, the travel time differentiation is calculated as follows:
[0024]
[0025] Furthermore, in the aforementioned step S3, the path complete observation model considering the travel time distribution characteristics is as follows:
[0026]
[0027]
[0028]
[0029] Among them, a, b are road segments; r, r1, r2 are 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, z a =1 means setting up a detector on section a or b, z a =0 means no detector is set on section a or b; Temporal distinguishability of paths r1 and r2 when detectors are set for both segments a and b; is a 0-1 variable, Indicates that section a is on path r; Indicates that section a is not on path r.
[0030] Furthermore, the aforementioned step S4 includes the following sub-steps:
[0031] S4-1, initializing the road section set U where sensors are arranged to be an empty set;
[0032] S4-2, determining whether U is a feasible solution of the road traffic detector layout optimization model considering travel time distribution characteristics, if yes, executing U as the local optimal solution to obtain a result of the road traffic detector layout optimization considering travel time distribution characteristics, otherwise executing step S4-3;
[0033] S4-3, select the road section a corresponding to the maximum value of C(U,a); if the maximum value of C(U,a) is not unique, select the road section a that makes D(U,a) maximum; if the road section that makes C(U,a) maximum and D(U,a) maximum is not unique, select a new road section for setting the detector according to the road section sequence in the initial road section sequence set IR, and update the road section set U for arranging the detector, and then return to execute step S4-2;
[0034] Among them, a is the newly added section where the detector is arranged, and C(U,a) is the newly added section that satisfies the constraint The number of paths r, D(U,a) is the newly added constraint:
[0035] The number of path pairs (r1, r2); IR is defined as: when U is an empty set, all road segments are sorted according to the size of C(U, a) + D(U, a) to obtain the initial road segment order set.
[0036] Compared with the prior art, the beneficial technical effects of the present invention using the above technical solution are as follows:
[0037] 1. The travel time information in the AVI data is fully utilized. Compared with the prior art, when completing the same path complete observation task, the road traffic detector layout optimization model considering the travel time distribution characteristics proposed in the present invention uses fewer detectors.
[0038] 2. Most of the existing technologies are based on simulated data for method testing, while the present invention conducts comparative tests on the method of the present invention and the traditional method on a large-scale measured data set πNEUMA data set, which better reflects the actual situation and helps to effectively solve practical problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flow chart of the present invention is shown.
[0040] Figure 2 This is a road segment set result graph obtained after processing the πNEUMA dataset used in the embodiment of the present invention.
[0041] Figure 3 This is a diagram of optimization results of the road traffic detector layout optimization model considering travel time distribution characteristics on the πNEUMA dataset according to an embodiment of the present invention.
[0042] Figure 4 This is a diagram showing the optimization results of the traditional road traffic detector layout optimization model of Example 1 of the present invention on the πNEUMA dataset. DETAILED DESCRIPTION
[0043] In order to better understand the technical content of the present invention, specific embodiments are described below in conjunction with the accompanying drawings.
[0044] Various aspects of the invention are described herein with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the invention are not limited to those described in the accompanying drawings. It should be understood that the invention is implemented by any of the various concepts and embodiments described above, as well as the concepts and embodiments described in detail below, because the concepts and embodiments disclosed in the invention are not limited to any implementation. In addition, some aspects disclosed in the invention may be used alone or in any appropriate combination with other aspects disclosed in the invention.
[0045] refer to Figure 1 The present invention conducts model testing based on the πNEUMA dataset, and the specific steps include:
[0046] S1. Generate initial data. Based on the heuristic method, all path sets and road segment sets are extracted from the original πNEUMA dataset. For the path set, the paths with relatively large traffic volume are selected as input according to the traffic volume. Finally, 282 paths and 573 road segments are obtained. The road segment set is shown in Figure 2 ,The black solid lines in the figure are all the road segments of the πNEUMA dataset. Based on the path travel time that obeys the normal distribution, the path travel time probability density function is estimated.
[0047] S2. Calculate the intersection-combination ratio of the travel time probability density functions of every two paths, and then determine the distinguishability of the travel time of every two paths.
[0048] S3. According to the distinguishability of the travel time between every two paths and the status of the detectors set on the road section, a path complete observation model considering the travel time distribution characteristics is established.
[0049] S4. Use the heuristic method to solve the path complete observation model and obtain the optimization result of the road traffic detector layout.
[0050] As a preferred embodiment of the present invention, in step S1, the path travel time probability density function is as follows:
[0051]
[0052] Among them, g(t|r) is the travel time probability density function of path r, is the sample mean of the travel time of path r, is the sample variance of the travel time of path r. The sample mean of the travel time of path r and the sample variance of the travel time of path r The calculation is as follows:
[0053]
[0054]
[0055] Among them, c l,n is the travel time of the nth vehicle sample on road segment l, N l is the total number of vehicle samples on road section l, VAR(c l ) is the variance of vehicle travel time on road segment l.
[0056] As a preferred embodiment of the present invention, in step S2, the intersection-and-combination ratio of the travel time probability density function Pr(r1, r2) is calculated as follows:
[0057]
[0058] Among them, g(t|r1) and g(t|r2) are the travel time probability density functions of paths r1 and r2; t0 is the intersection of the two travel time probability density functions. The intersection point t0 of the two travel time probability density functions is calculated as follows:
[0059]
[0060] Where x is the independent variable. When the solution t0 of the quadratic equation is not unique, take t0 that maximizes the probability density function g(t0|r).
[0061] As a preferred embodiment of the present invention, in step S2, the travel time differentiation is calculated as follows:
[0062]
[0063] Since the main contribution of the present invention is the detector complete observation model, in this embodiment, the present invention randomly generates the travel time distinguishability between any two paths r1, r2 and any two road sections a, b. and The present invention generates a combination of road segments and paths with a probability of 20% being true.
[0064] As a preferred embodiment of the present invention, in step S3, the path complete observation model considering the travel time distribution characteristics is as follows:
[0065]
[0066]
[0067]
[0068] Among them, a, b are road segments; r, r1, r2 are 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, z a=1 means setting up a detector on section a or b, z a =0 means no detector is set on section a or b; Temporal distinguishability of paths r1 and r2 when detectors are set for both segments a and b; is a 0-1 variable, Indicates that section a is on path r; Indicates that section a is not on path r.
[0069] The proposed model was solved on a Windows computer with 32 logical processors, 24 cores, and 32GB memory. The CPU is Intel Core i9-13900HX and the development language is C++14. Finally, the total code running time is 8635.13 seconds, and an optimal solution obtained by a heuristic method is obtained. The optimal solution is a one-dimensional vector composed of 0-1 variables with a length of 573, of which 100 values are 1, indicating that a total of 100 detectors are deployed. The results are shown in Figure 3 ,In the figure, the red bold sections indicate the installation of detectors, ,total 100.
[0070] As a preferred embodiment of the present invention, step S4 includes the following sub-steps:
[0071] S4-1, initializing the road section set U where sensors are arranged to be an empty set;
[0072] S4-2, determining whether U is a feasible solution of the road traffic detector layout optimization model considering travel time distribution characteristics, if yes, executing U as the local optimal solution to obtain a result of the road traffic detector layout optimization considering travel time distribution characteristics, otherwise executing step S4-3;
[0073] S4-3, select the road section a corresponding to the maximum value of C(U,a); if the maximum value of C(U,a) is not unique, select the road section a that makes D(U,a) maximum; if the road section that makes C(U,a) maximum and D(U,a) maximum is not unique, select a new road section for setting the detector according to the road section sequence in the initial road section sequence set IR, and update the road section set U for arranging the detector, and then return to execute step S4-2;
[0074] Among them, a is the newly added section where the detector is arranged, and C(U,a) is the newly added section that satisfies the constraint The number of paths r, D(U,a) is the newly added constraint:
[0075] The number of path pairs (r1, r2); IR is defined as: when U is an empty set, all road segments are sorted according to the size of C(U, a) + D(U, a) to obtain the initial road segment order set.
[0076] At the same time, the present invention tests the detector layout scheme of the traditional detector layout optimization model that does not consider the travel time distribution characteristics under the same path and road section data. The heuristic solution results show that 128 detectors need to be deployed. Figure 4 ,The red bold road sections in the figure indicate the installation of detectors, totaling 128. This means that under the condition of generating travel time distinguishability with a probability of 20% true, the road traffic detector layout optimization model proposed in the present invention that considers travel time distribution characteristics has a performance improvement of about 21.9%.
[0077] Although the present invention has been described above with preferred embodiments, it is not intended to limit the present invention. A person skilled in the art of the present invention may make various modifications and improvements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the definition of the claims.
Claims
1. A road traffic detector layout optimization method considering travel time distribution characteristics, characterized in that: The steps include: S1. Based on the path travel time that obeys the normal distribution, the probability density function of the path travel time is estimated as follows: Among them, g(t|r) is the travel time probability density function of path r, is the sample mean of the travel time of path r, is the sample variance of the travel time of path r; S2, calculating the intersection-combination ratio of the travel time probability density functions of every two paths, and then determining the travel time differentiation of every two paths; The intersection and union ratio of the travel time probability density function of each two paths, Pr(r1,r2), is calculated as follows: Among them, g(t|r1) and g(t|r2) are the travel time probability density functions of paths r1 and r2; t0 is the intersection of the two travel time probability density functions; t0 is calculated as follows: Where x is the independent variable. When the solution t0 of the quadratic equation is not unique, take the t0 that maximizes the probability density function g(t0|r); The travel time differentiation is calculated as follows: S3. According to the travel time distinction between every two paths and the status of the detectors set on the road section, a complete observation model of the path considering the travel time distribution characteristics is established as follows: Among them, a, b are road segments; r, r1, r2 are 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, z a =1 means setting up a detector on section a or b, z a =0 means no detector is set on section a or b; Time discrimination between paths r1 and r2 when detectors are set for both segments a and b; is a 0-1 variable, Indicates that section a is on path r; It means that road segment a is not on path r; S4. Use the heuristic method to solve the path complete observation model and obtain the optimization result of the road traffic detector layout.
2. A method for optimizing the layout of road traffic detectors taking into account travel time distribution characteristics as described in claim 1, characterized in that: Sample mean of travel time for path r and the sample variance of the travel time of path r The calculation is as follows: Among them, c l,n is the travel time of the nth vehicle sample on road segment l, N l is the total number of vehicle samples on road section l, VAR(c l ) is the variance of vehicle travel time on road segment l.
3. The method for optimizing the layout of road traffic detectors considering travel time distribution characteristics according to claim 2, characterized in that: Step S4 includes the following sub-steps: S4-1, initializing the road section set U where sensors are arranged to be an empty set; S4-2, determining whether U is a feasible solution of the road traffic detector layout optimization model considering travel time distribution characteristics, if yes, executing U as the local optimal solution to obtain a result of the road traffic detector layout optimization considering travel time distribution characteristics, otherwise executing step S4-3; S4-3, select the road section a corresponding to the maximum value of C(U,a); if the maximum value of C(U,a) is not unique, select the road section a that makes D(U,a) maximum; if the road section that makes C(U,a) maximum and D(U,a) maximum is not unique, select a new road section for setting the detector according to the road section sequence in the initial road section sequence set IR, and update the road section set U for arranging the detector, and then return to execute step S4-2; Among them, a is the newly added section where the detector is arranged, and C(U,a) is the newly added section that satisfies the constraint The number of paths r, D(U,a) is the newly added constraint: The number of path pairs (r1, r2); IR is defined as: when U is an empty set, according to the size of C(U,a)+D(U,a), The initial segment order set is obtained by sorting all the segments.
