A control strategy error correction method for lane-level traffic lights
By integrating the spiking neural network of brain glial cells to build a spatiotemporal logic switching network model, it solves the problem of signal light errors that are difficult to correct with deep learning in smart traffic lights, and realizes the spatiotemporal and time domain logic correction of lane-level traffic lights, improving Improve the stability and reliability of traffic light control.
Patent Information
- Application Number
- CN202311247096.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-09-26
AI Technical Summary
The existing technology lacks methods for correcting signal light errors caused by traffic light decision-making software errors. Especially in smart traffic lights led by artificial intelligence, due to the lack of interpretability of deep learning, it is difficult to ensure the correctness of the output results.
A spiking neural network fused with brain glial cells is used to construct a lane-level traffic light spatio-temporal logic switching network model. It receives intersection lane traffic light control signals in real time for correction and outputs the corrected signal to correct the spatio-temporal domain switching logic and time. Domain switching logic error.
It effectively solves the problem of traffic light color correction between conflicting lanes. It is significantly better than traditional methods and deep learning methods. It can correct spatial domain conflicts and time domain switching logic errors in intersections, ensuring the stability and reliability of traffic light display. .
Smart Images

Figure CN117116068B
Abstract
Description
Technical Field
[0001] The invention relates to a control strategy error correction method for a lane-level traffic light, belonging to the technical field of traffic signal light control. Background Art
[0002] Traffic lights are the executors of urban traffic dispatch, and it is crucial to ensure their stable and reliable operation. Currently, there are many detection methods for traffic light errors caused by hardware failures, but there is a lack of error correction methods for traffic light errors caused by errors in the decision-making software behind the traffic lights. Especially in smart traffic lights dominated by artificial intelligence, due to the lack of explainability of deep learning, it is difficult to ensure that its output results are always correct or reasonable. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a control strategy error correction method for lane-level traffic lights. A lane-level traffic light spatiotemporal logic switching network model is constructed based on a pulse neural network that integrates brain glial cells to correct errors in the spatiotemporal domain switching logic of traffic lights.
[0004] To achieve the above object, the present invention is implemented by adopting the following technical solution: a control strategy error correction method for lane-level traffic lights, comprising the following steps:
[0005] Create intersection map data files;
[0006] Perform lane relationship analysis on the intersection map data file to obtain a lane name number list and a lane conflict relationship list;
[0007] According to the lane number list and lane conflict relationship list, a lane traffic light spatiotemporal logic switching network model is established;
[0008] Receive traffic light control signals at intersection lanes in real time;
[0009] The lane traffic light control signal at the intersection is corrected through the lane traffic light spatiotemporal logic switching network model, and the corrected intersection lane traffic light control signal is output.
[0010] Furthermore, an open source traffic simulation software is used to prepare the intersection map data file, and the intersection map data file is in XML format.
[0011] Furthermore, the lane relationship analysis is performed on the intersection map data file to obtain a lane name number list and a lane conflict relationship list, including:
[0012] Use the python script to count the number of intersection lanes in the intersection map data file and number them to obtain a list of lane name numbers.
[0013] According to the lane travel direction, the intersection lane conflict relationship in the intersection map data file is analyzed using a python script to obtain a lane conflict relationship list.
[0014] Furthermore, the element data structure in the lane name number list is:
[0015] [[lane_name],[lane_id]]
[0016] Among them, lane_name represents the string name of the lane, and lane_id represents the numeric number of the lane.
[0017] The element data structure within the lane conflict relationship category is:
[0018] [[laneN_num_conflicts],[laneN_conflict_lane_id1]…[laneN_conflict_lane_idM]]
[0019] Among them, laneN_num_conflicts represents the number of lanes that conflict with the lane numbered N, and laneN_conflict_lane_idM represents the number of the Mth lane that conflicts with the lane numbered N.
[0020] Furthermore, the lane traffic light spatiotemporal logic switching network model includes four functional layers, which are the current expected input and spatial domain conflict correction layer, the previous output memory layer, the time domain logic correction layer and the current actual output layer.
[0021] The output ends of the current expected input and spatial domain conflict correction layer and the previous output memory layer are connected to the input end of the time domain logic error correction layer, and the output end of the time domain logic error correction layer is connected to the input end of the current actual output layer.
[0022] Each of the functional layers includes a plurality of functional populations, each of the functional populations includes a plurality of neurons, and each lane corresponds one-to-one to a neuron in each functional population in each functional layer.
[0023] Furthermore, the current expected input and spatial domain conflict correction layer is used to correct the expected input and state space domain logic of the traffic light colors of all lanes, which includes multiple current allowed traffic light color state neurons, and the current allowed traffic light color state neurons correspond to the red, yellow, and green traffic lights of each lane respectively.
[0024] The method for constructing the expected input and spatial domain conflict error correction layer includes:
[0025] An inhibition connection is established for the red, yellow and green traffic lights of each lane, so that only one color of traffic lights is lit in each lane.
[0026] An inhibition connection is established between lanes having a conflicting relationship so that the lanes having a conflicting relationship do not simultaneously display green traffic lights, yellow traffic lights, or yellow-green traffic lights.
[0027] Furthermore, the last output memory layer is used to memorize the color of the last traffic light in all lanes, so that the traffic lights can change periodically. It includes multiple primary traffic light color memory glial cells, traffic light color memory neurons, secondary traffic light color memory glial cells, last traffic light color state neurons and glial cell bias.
[0028] The method for constructing the last output memory layer comprises:
[0029] When the last traffic light color state memory is red or green, the primary traffic light color memory glial cells receive the pulse signal of the current traffic light color state neurons, and after a signal processing cycle, transmit the pulse signal to the traffic light color memory neurons.
[0030] Traffic light color memory neurons receive pulse signals and transmit them to secondary traffic light color memory glial cells.
[0031] After the secondary traffic light color memory glial cells receive the pulse signal, they transmit the pulse signal to the previous traffic light color state neurons after a signal processing cycle.
[0032] The last traffic light color state neuron reproduces the traffic light color state in the next signal processing cycle.
[0033] When the last traffic light color state memory is yellow, the neurons of the last red light state and the last green light state are not activated, then the glial cell population stimulates and activates the neurons of the last yellow light state, and causes the neurons of the last yellow light state to continue to emit pulses.
[0034] The last output memory layer also includes glial cell rests, which are used to reset self-excited neurons so that a new traffic memory judgment is performed in the next signal processing cycle.
[0035] Furthermore, the signal processing cycle is a traffic light control cycle.
[0036] Furthermore, the time domain logic error correction layer is used to implement the time domain logic of the traffic light state using neurons, which includes a plurality of current allowed traffic light color-last traffic light color state logic neurons.
[0037] The method for constructing the time domain logic error correction layer includes:
[0038] When the current expected input and allowed color neurons in the spatial domain conflict correction layer and the last traffic light color state neurons in the last output memory layer emit pulses at high frequency at the same time, the current allowed traffic light color-last traffic light color state logic neurons are activated, and emit pulses to the current traffic light color state neurons in the current actual output layer, so that the current traffic light color state neurons are activated.
[0039] Furthermore, the actual output layer is used to output the actual results of the traffic light colors of all lanes at the intersection, which includes multiple current traffic light color state neurons. The current traffic light color state neurons are activated under the pulse of the current allowed traffic light color-last traffic light color state logic neurons in the time domain logic error correction layer, and output the current traffic light color.
[0040] Compared with the prior art, the present invention has the following beneficial effects:
[0041] The present invention solves the traffic light color correction between conflicting lanes as a NP (Nondeterministic Polynomially) problem in the spatiotemporal domain, that is, the combination of traffic lights in an intersection is subject to specific conditions, and it is feasible to meet the limited conditions. For example, there can only be one green light in the conflicting lane, and the others must be red lights. If the light on the current lane is green at all times, then the current light can only be yellow or green, etc.;
[0042] The pulse neural network integrating brain glial cells has significant advantages over traditional methods and deep learning methods in solving NP problems. The present invention is based on the pulse neural network integrating brain glial cells. A lane-level intersection traffic light spatiotemporal logic error correction network model is constructed through neurons and brain glial cells. The model can be used to correct green light conflicts, yellow light conflicts, yellow-green light conflict errors in spatial domain conflict lanes in intersections, and red, yellow, and green time domain switching logic errors of traffic lights in all lanes in intersections. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a lane traffic light spatiotemporal logic error correction network of a lane-level traffic light control strategy error correction method in an embodiment of the present invention;
[0044] Figure 2 It is a structural schematic diagram of the basic neural network of “AND” logic in the time domain logic error correction layer of the control strategy error correction method of the lane-level traffic light in one embodiment of the present invention. DETAILED DESCRIPTION
[0045] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0046] like Figure 1 As shown, the control strategy error correction method for lane-level traffic lights provided by the embodiment of the present invention includes the following steps:
[0047] Firstly, the open source traffic simulation software SUMO (Simulation of Urban Mobility) is used to create an intersection traffic map data file in XML format.
[0048] The lane relationship analysis of the intersection traffic map data file in XML format is performed through a python script to obtain a lane name number list and a lane conflict relationship list, including:
[0049] Count the number of lanes at the intersection and number them to get a list of lane name numbers. The data structure of the elements in the list is [[lane_name], [lane_id]], where lane_name represents the string name of the lane and lane_id represents the numeric number of the lane.
[0050] The conflict relationship between lanes at the intersection is analyzed according to the lane travel direction to obtain a lane conflict relationship list. The element data structure in the list is [[laneN_num_conflicts], [laneN_conflict_lane_id1]…[laneN_conflict_lane_idM]], where laneN_num_conflicts represents the number of lanes that conflict with the lane numbered N, and laneN_conflict_lane_idM represents the number of the Mth lane that conflicts with the lane numbered N.
[0051] A lane traffic light spatiotemporal logic switching network model is established according to the lane name number list and the lane conflict relationship list. In practical application, the lane traffic light spatiotemporal logic switching network model is embedded in the controller.
[0052] The controller receives the intersection lane traffic light control signal in real time, calibrates the intersection lane traffic light control signal through the lane traffic light spatiotemporal logic switching network model, and outputs the calibrated intersection lane traffic light control signal so that the traffic light of the corresponding color is lit. This can effectively prevent the control signal error from causing abnormal traffic light display.
[0053] The lane traffic light spatiotemporal logic switching network model includes four functional layers, namely the expected input and spatial domain conflict correction layer, the previous output memory layer, the temporal domain logic correction layer, and the actual output layer. Each lane corresponds to a glial cell of each functional population in each functional layer of the lane traffic light spatiotemporal logic switching network.
[0054] The role of this expected input and spatial domain conflict correction layer is to realize the expected input and state space logic error correction of the traffic light colors of all lanes, such as Figure 1 As shown, R1 indicates that the light is expected to be red, Y1 indicates that the light is expected to be yellow, and G1 indicates that the light is expected to be green. They establish an inhibitory connection with each other to ensure that only one color of light can be lit, that is, pulses are emitted. This can avoid the error of lane signal lights with multiple colors lighting up at the same time.
[0055] At the same time, lanes with conflicting relationships between G1 establish inhibition connections with each other, and lanes with conflicting relationships between G1 and Y1 establish inhibition connections. This can avoid the error of both green lights, both yellow-green lights, and both yellow lights in the conflicting lanes. The result of self-organized competition can ensure that only one of the conflicting lanes has a green light and the others are red lights, or only one has a yellow light and the others are red lights.
[0056] The traffic light state space domain logic is shown in Table 1:
[0057] Table 1: Traffic light color state space domain logic
[0058]
[0059] Among them, R represents that the traffic light is red, Y represents that the traffic light is yellow, and G represents that the traffic light is green.
[0060] The function of the last output memory layer is to remember the color of the traffic lights in all lanes. Different from the event-driven mode of neurons, brain glial cells adopt a time-driven mode, that is, their pulse information processing is carried out in a time cycle, which makes it easy to realize periodic regular activities, and the changes of traffic lights are also periodic.
[0061] Taking the memory of the last red light state as an example, the primary red memory glial cell RM1 first receives the pulse signal of the current red state neuron R. After its processing cycle, RM1 transmits it to the red memory neuron RM2. At the same time, RM2 immediately transmits the signal to the secondary red memory glial cell RM3. After its processing cycle, it is finally transmitted to the last red state neuron R_memory. As long as the signal processing cycle of the primary red memory glial cell RM1 and the secondary red memory glial cell RM3 is exactly one traffic light control cycle, the current red light state will be reproduced by the last red state neuron R_memory in the next control cycle. The memory of the last green light state is the same as that of the red light.
[0062] The last yellow state neuron Y_memory can be inferred based on the results of the last red state neuron R_memory and the last green state neuron G_memory. That is, if R_memory and G_memory are not activated, then Y_memory will be activated and emit pulses under the stimulation of glial cell bias. Self-connection will cause Y_memory to continuously emit pulses at a high frequency. Otherwise, Y_memory will be inhibited by R_memory or G_memory and will not be active. The role of glial cell reset is to reset the self-excited neurons so that a new traffic light memory judgment can be made in the next cycle.
[0063] As shown in Table 2:
[0064] Table 2: Traffic light color state time domain logic
[0065]
[0066]
[0067] The function of the time domain logic error correction layer is to use neurons to implement the "AND" logic to implement the time domain logic of the traffic light status shown in "Table 2". Figure 2 As shown, Figure 2 In order to realize the neural network structure based on "AND" logic, by adjusting the value of weight W, it can be achieved that only when neuron A and neuron B simultaneously emit pulses at high frequency, neuron C can enter the active state and emit pulses at high frequency.
[0068] Here, taking the last final color as R and the current allowed color as R1 as an example, the current allowed red state neuron R1 and the last red state neuron R_memory will both stimulate the current allowed red-last red state logic neuron R_R_logic and activate it to emit pulses. R_R_logic will stimulate and activate the current red state neuron R2, that is, the current lit color is red. Other time domain logics are similar and will not be repeated.
[0069] The actual output layer is used to output the actual results of the traffic light colors of all lanes. The time domain logic error correction layer will activate one of the red light state neuron R2, the yellow light state neuron Y2, and the green light state neuron G2. The activation of the neuron means that the light of the corresponding color is lit.
[0070] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A control strategy error correction method for lane-level traffic lights. It is characterized in that The following steps are involved: Create intersection map data files; Perform lane relationship analysis on the intersection map data file to obtain a lane name number list and a lane conflict relationship list; According to the lane number list and lane conflict relationship list, a lane traffic light spatiotemporal logic switching network model is established; Receive traffic light control signals at intersection lanes in real time; The lane traffic light control signal of the intersection is corrected through the lane traffic light spatiotemporal logic switching network model, and the corrected lane traffic light control signal of the intersection is output; The lane traffic light spatiotemporal logic switching network model includes four functional layers, which are the expected input and spatial domain conflict correction layer, the previous output memory layer, the time domain logic correction layer and the actual output layer. The output ends of the current expected input and spatial domain conflict error correction layer and the previous output memory layer are connected to the input end of the time domain logic error correction layer, and the output end of the time domain logic error correction layer is connected to the input end of the current actual output layer; Each of the functional layers includes a plurality of functional populations, each of the functional populations includes a plurality of neurons, and each lane corresponds one-to-one to a neuron in each functional population in each functional layer; The current expected input and spatial domain conflict correction layer is used to correct the expected input and state spatial domain logic of the traffic light colors of all lanes, and includes a plurality of current allowed traffic light color state neurons, and the current allowed traffic light color state neurons correspond to the red, yellow, and green color traffic lights of each lane respectively; The method for constructing the expected input and spatial domain conflict error correction layer includes: Establish an inhibition connection for the red, yellow and green traffic lights of each lane so that only one color of traffic lights is lit in each lane; Establishing suppression connections between lanes with conflicting relationships so that the lanes with conflicting relationships do not simultaneously display green traffic lights, yellow traffic lights, or yellow-green traffic lights; The last output memory layer is used to memorize the color of the last traffic light of all lanes, so that the traffic lights can change periodically, and includes a plurality of primary traffic light color memory glial cells, traffic light color memory neurons, secondary traffic light color memory glial cells, last traffic light color state neurons and glial cell bias; The method for constructing the last output memory layer comprises: When the last traffic light color state memory is red or green, the primary traffic light color memory glial cells receive the pulse signal of the current traffic light color state neuron, and after a signal processing cycle, transmit the pulse signal to the traffic light color memory neuron; Traffic light color memory neurons receive pulse signals and transmit them to secondary traffic light color memory glial cells; After receiving the pulse signal, the secondary traffic light color memory glial cells transmit the pulse signal to the neurons of the previous traffic light color state after a signal processing cycle; The last traffic light color state neuron reproduces the traffic light color state in the next signal processing cycle; When the last traffic light color state memory is yellow, the last red light state neurons and the last green light state neurons are not activated, then the glial cell population stimulates and activates the last yellow light state neurons, and makes the last yellow light state neurons continue to emit pulses; The last output memory layer also includes a glial cell rest, which is used to reset the self-excited neurons so that a new traffic memory judgment is performed in the next signal processing cycle; The time domain logic error correction layer is used to implement the time domain logic of the traffic light state using neurons, which includes a plurality of current allowed traffic light color-last traffic light color state logic neurons; The method for constructing the time domain logic error correction layer includes: When the current expected input and the current allowed color neurons in the spatial domain conflict correction layer and the previous traffic light color state neurons in the previous output memory layer simultaneously emit pulses at high frequency, the current allowed traffic light color-last traffic light color state logic neurons are activated, and emit pulses to the current traffic light color state neurons in the current actual output layer, so that the current traffic light color state neurons are activated; The actual output layer is used to output the actual results of the traffic light colors of all lanes at the intersection, and includes multiple current traffic light color state neurons. The current traffic light color state neurons are activated under the pulse of the current allowed traffic light color-last traffic light color state logic neurons in the time domain logic error correction layer to output the current traffic light color.
2. The control strategy error correction method for lane-level traffic lights according to claim 1, It is characterized in that Open source traffic simulation software is used to make the intersection map data file, and the intersection map data file is in XML format.
3. The control strategy error correction method for lane-level traffic lights according to claim 1, It is characterized in that Perform lane relationship analysis on the intersection map data file to obtain a lane name number list and a lane conflict relationship list, including: Use Python script to count the number of lanes in the intersection map data file and number them to get a list of lane name numbers; According to the lane travel direction, the intersection lane conflict relationship in the intersection map data file is analyzed using a python script to obtain a lane conflict relationship list.
4. The control strategy error correction method for lane-level traffic lights according to claim 3, It is characterized in that The element data structure in the lane name number list is: [[lane_name],[lane_id]] Where lane_name represents the string name of the lane, and lane_id represents the numeric number of the lane; The element data structure within the lane conflict relationship category is: [[laneN_num_conflicts],[laneN_conflict_lane_id1]…[laneN_conflict_lane_idM]] Among them, laneN_num_conflicts represents the number of lanes that conflict with the lane numbered N, and laneN_conflict_lane_idM represents the number of the Mth lane that conflicts with the lane numbered N.
5. The control strategy error correction method for lane-level traffic lights according to claim 1, It is characterized in that The signal processing cycle is a traffic light control cycle.
