Disclosure of Invention
The invention aims to adapt to the traffic flow of each traffic flow of an intersection which changes constantly along with time, avoid the phenomena that a certain flow direction lane is crowded and the other flow direction lane is vacant, and provides a self-adaptive variable lane control method and a self-adaptive variable lane control system of a signal control intersection.
In some embodiments, the following technical scheme is adopted:
a self-adaptive variable lane control method for a signal control intersection comprises the following steps:
(1) collecting historical traffic data of the intersection, and determining the cycle of each conversion of lane functions according to the traffic change rule of the entrance;
(2) taking the traffic load degree index of the current intersection as a basis for lane function conversion;
(3) judging whether lane switching is carried out or not according to the switching period and the traffic load degree index of the current intersection; if yes, switching the pre-signal, optimizing the timing of the main signal, and entering the step (4); otherwise, keeping the original signal scheme;
(4) judging whether the optimized signal scheme is superior to the original scheme, if so, changing the current signal scheme into the optimized scheme; otherwise, keeping the original signal scheme;
(5) returning to the step (3), starting the judgment of the next period.
The method comprises the following steps of collecting historical traffic data of an intersection, and determining the cycle of each conversion of lane functions according to the traffic change rule of an entrance, wherein the method specifically comprises the following steps:
selecting a data segment space with the length of n as a sliding window, wherein n is the number of data contained in the sliding window;
setting the allowable deviation of single data in a sliding window, and setting a standard deviation threshold of n periodic flow data in the sliding window according to the allowable deviation;
calculating the standard deviation of the n flow data according to the first n calculated flow initial mean values of the flow data;
sliding a sliding window from a data starting point to a data end point, discarding the original starting point flow data and entering a window with a new period flow data every time the sliding window moves once, and calculating the mean value and the standard deviation of new n flow data;
if the total number of the N periodic flow data is N, obtaining N-N +1 standard deviation calculation values, and counting the number m of the standard deviations less than or equal to the standard deviation threshold valuen;
Changing the length of the sliding window, repeating the above steps, and comparing m under each sliding window lengthnValue, take mnAnd taking the length of the sliding window at the maximum as a function switching judgment period of the lane at the intersection.
In other embodiments, the following technical solutions are adopted:
a terminal device comprising a processor and a computer-readable storage medium, the processor being configured to implement instructions; the computer readable storage medium is used for storing a plurality of instructions which are suitable for being loaded by a processor and executing the adaptive variable lane control method for the signal control intersection.
In other embodiments, the following technical solutions are adopted:
a computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor of a terminal device and to execute the above-described method of adaptive variable lane control at a signalized intersection.
Compared with the prior art, the invention has the beneficial effects that:
the invention can adapt to the traffic flow that each traffic flow of the intersection changes constantly along with time, avoid the phenomenon that a certain traffic flow lane is crowded, another traffic flow lane is vacant; the lane function is allowed to be coordinated according to the actual running condition of the road, and then signal timing optimization is carried out aiming at the change of the lane function, so that the aim of fully utilizing space resources in the intersection is fulfilled.
Example one
In one or more embodiments, an adaptive variable lane control method based on bayonet detection data is disclosed, and it should be noted that not all intersections are suitable for setting a dynamic variable lane, and the following conditions and assumptions need to be satisfied in terms of road physical conditions, traffic states, and the like:
conditions are as follows:
(1) the number of the lanes at the inlet lane and the outlet lane is 4;
(2) setting a special left-turn phase for an entrance lane of the variable lane under the phase condition;
the basic assumption is that:
(1) influence of pedestrians crossing the street and non-motor vehicles is not considered;
(2) the case where right turn is controlled by a signal is not considered herein;
(3) is not suitable for a three-dimensional intersection ring intersection and the like;
(4) no consideration is given to special conditions such as traffic accidents.
The general workflow of the adaptive variable lane of the present embodiment is shown in fig. 2, and includes the following steps:
(1) collecting historical traffic data of the intersection, and determining the cycle of each conversion of lane functions according to the traffic change rule of the entrance;
(2) taking the traffic load degree index of the current intersection as a basis for lane function conversion;
(3) judging whether lane switching is carried out or not according to the switching period and the traffic load degree index of the current intersection; if so, switching the pre-signal (namely switching between left turn permission and straight going permission), optimizing the timing of the main signal, and entering the step (4); otherwise, keeping the original signal scheme;
(4) judging whether the optimized signal scheme is superior to the original scheme, if so, changing the current signal scheme into the optimized scheme; otherwise, keeping the original signal scheme;
(5) returning to the step (3), starting the judgment of the next period.
In particular, the amount of the solvent to be used,
1) determining time intervals of every two adjacent lane changes
If the time interval of the judgment is too long, the requirement of traffic flow in each direction of the road can not be met in real time, the space utilization efficiency is improved limitedly, and if the time interval of the judgment is too short, the coordination pressure between a driver and the road can be increased, and even the traffic order is disordered. Therefore, it is necessary to determine the time interval between each determination of whether the lane change function is required at the intersection through the historical rule analysis of the data collected at the actual intersection. The judgment method comprises the following steps:
the method comprises the steps of firstly, statistically analyzing the flow change characteristics of an entrance way according to a time sliding window with a period as a unit by using bayonet historical data, and determining the period of each conversion of lane functions according to the flow change rule. The time length of the lane function changing period is ensured to be shortened as much as possible under the condition that the fluctuation of the traffic flow in each flow direction is not large. The steps are as follows
(1) And selecting a data segment space with the length of n as a sliding window to judge the minimum time length of the stability of the flow data segment, wherein n is the number of data contained in the sliding window. Each data is a statistical value in a unit of one cycle
(2) Setting allowable deviation epsilon of single data in a sliding window, and setting a threshold sigma of standard deviation of n periodic flow data in the sliding window according to the allowable deviationn。
(3) Calculating the standard deviation sigma of the n flow data according to the first n calculated flow initial mean values E of the flow data0
(4) And in the process of sliding the window from the data starting point to the data ending point, the original starting point flow data is abandoned and a new period flow data enters the window every time the window is moved once, and the mean value and the standard deviation of the new n flow data are calculated. If the total N periodic flow data are obtained, obtaining N-N +1 standard deviation calculated values, and counting to satisfy the condition that the sigma is not more thannThe number of standard deviations of (a) is mn。
(5) Changing the length of the sliding window, repeating the above steps, and comparing m under each sliding window lengthnValue, take mnAnd taking the length of the sliding window at the maximum as a function switching judgment period of the lane at the intersection.
2) Basis of lane function conversion
The saturation is an important criterion for judging how the lane function should be changed, and is an index describing the traffic load degree of a road or an intersection by dividing the traffic flow of the road or the intersection by the traffic capacity of the road or the intersection.
When the left-turn traffic flow saturation is greater than the straight-going traffic flow saturation, the lane function is changed into left-turn;
when the left-turn traffic flow saturation is less than the straight traffic flow saturation, the lane function becomes straight.
The jth lane saturation calculation formula of each entrance lane is
C is the intersection signal period, qiIs the actual flow of the jth lane, SjIs the saturation flow rate of the jth lane, (pcu/h), giThe effective green time of the j-th lane traffic flow in the period,(s).
3) Signal switching scheme
In order to ensure that the traffic flow of the previous phase on the variable lane with the lane function changed is empty and the normal running of the vehicles facing to the entrance lane and the adjacent entrance lane is not influenced, the signal lamp group of the variable lane needs to ensure that the current traffic flow is closed earlier than the main signal lamp group, the vehicle of the next phase can enter the variable lane at the moment, if the average speed of the vehicle of the variable lane is v, the length of the variable lane is L, (the distance between a stop line and a variable sign) and the time length of closing the variable lane in advance is V
t
2Time to drive off the intersection from the entrance lane stop line; in addition, in order to further ensure that the vehicle can be emptied, the releasing time of the variable lane can be delayed, and the delay time is not suitable to be too long.
With reference to figure 1 of the drawings,
phase of main signal turning left in north-south directionThe time of day is,
is the phase time of the main signal going straight in the north-south direction,
for the left-hand phase time of the main signal in the east-west direction,
is the straight-ahead phase time of the main signal in the east-west direction.
Common left-turn lane slave
When the vehicle starts to accumulate left-turning vehicles to pass in the next period, the variable lane needs to be delayed for a few times (the delay time is t)
2) To avoid that too many vehicles accumulated on the variable lane cannot be drained in time during the left-turn phase, and the lane function is switched at t
2When the time is finished, in order to ensure that the straight traffic flow on the lane before the left turn can be cleared in time when the lane changing function is switched, the pre-signal needs to be closed in advance (the advance time is t)
1) Only the last straight-going vehicle entering the variable lane can be ensured to be in the state of closing the straight-going pre-signal
And driving away from the intersection before finishing.
End time to t
2And finishing calculating the saturation index and the right-turn saturation index of the traffic flow on the left-turn lane of the road within the time period of the ending time.
Referring to fig. 3, in an initial state, the variable lane is straight, which is represented by α -0, α -1 represents that the variable lane is left-turned, i represents a cycle number, from the first cycle, the traffic flow of the left-turn lane and the traffic flow of the straight lane are input, the saturation of the left-turn lane and the saturation of the straight lane are calculated and compared, if the saturation of the left-turn lane is less than the saturation of the straight lane, α -0 is set, no action is performed, the lane function attribute remains unchanged, if the saturation of the left-turn lane is greater than the saturation of the straight lane, α -1 is set, N starts to count N-1, which represents that a lane function change request is received, and when the number of requests is accumulated to N times or more, the variable lane function attribute is changed to "left-turn", and the cycle count is increased by 1, and the next cycle is entered, and the above steps are repeated.
4) Main signal timing optimization
Because the number of each functional lane is continuously changed, the phase timing of each signal may need to be optimized in real time, and the optimization method is an optimization model with multiple constraint conditions.
① with average delay per car as optimization objective:
n is the number of the entrance lanes at the intersection, DiFor the average delay per car for the ith entrance lane, (s/pcu).
Wherein d isLAverage delay for left-turn traffic, qLFor left-turn traffic flow, dTIs the average delay of the straight-through traffic, qTIs a straight-going flow.
The control delay of the left-turn or straight-going traffic flow vehicles consists of three parts, namely control delay, random delay and initial queuing delay:
control delay calculation formula:
wherein λ is
jIs the split green for the jth lane,
x
jis the saturation of the jth lane.
Random delay calculation formula:
wherein x isjSaturation of jth lane, T duration of analysis period, (h), QjJ the traffic capacity of the first lane, (pcu/h), I the incremental delay correction factor for lane change and adjustment of the vehicle at the upstream signal, and K the delay correction factor for induction control.
Initial queuing delay calculation formula:
t' is the duration of the saturation state in the analysis period, (h), μ is the delay parameter, QbFor the number of queued vehicles at the beginning of the analysis period, Q when the chef queue length is 0b=0。
② constraints of the signal optimization model:
a) the effective green time of each lane group must be not less than the minimum effective green time, g
iFor the effective green time of the ith phase,
then it indicates that the ith phase has right of way in the jth lane
The traffic capacity calculation formula is as follows:
b) the green time of each phase should also satisfy the minimum period and maximum period constraints
TlossIs the total loss time in the cycle, CminAnd CmaxThe minimum period and the maximum period allowed by the intersection are respectively, and C is satisfied because the green light time of each phase is balanced under the fixed periodmin=Cmax。
c) Saturation constraint
After the functional attribute of the lane is changed, the saturation of the left-turn traffic flow and the straight traffic flow must be ensured to be within a certain range, and the condition that the saturation of a certain flow direction is too large is avoided
xiL≤ximax,xiT≤ximax
xiLAverage per lane saturation, x, for left-turn trafficiTIs the average per lane saturation of the straight-ahead traffic.
In this embodiment, the south road is set to be a changeable lane by taking a ten-way young east road intersection in china, deng and china as an example, and the intersection canalization is as shown in fig. 4.
The intersection signal phase is shown in the following table:
assuming that the traffic flow at the intersection arrives randomly, adopting single-point preset signal control, referring to HCM2000, and setting the period C as 210 s; the distance between the intersection and the adjacent upstream intersection is more than or equal to 1.6km, so that the increment delay correction coefficient I for lane change and adjustment of the upstream signal lamp vehicle is 1.0; for a fixed period signal, the delay correction factor K for the inductive control is taken to be 0.5.
N is obtained by the lane attribute switching judgment methodp=6。
Because the method can not be applied to an actual road, the road network is drawn in VISSIM traffic simulation software, and the simulation control is completed by a program through a python through a COM port. The road network graph is shown in fig. 5.
The simulation results are as follows: the average delay per vehicle comparison graph of the flow direction lanes before and after the variable lane is shown in fig. 6 (obtained by taking one sampling point every ten periods). The average delay of left turn vehicles before and after using a variable lane is shown in fig. 7.
Optimized lane change and signal timing times (starting at 6:00 and ending at 21:00)