A traffic congestion relief method based on multi-agent reinforcement learning
By constructing an agent group and adjusting the traffic light signal based on the neural network model, the local optimal solution problem of multi-agent reinforcement learning in alleviating traffic congestion is solved, and the effective alleviation of global traffic congestion and optimization of traffic flow are achieved.
Patent Information
- Application Number
- CN202411017351.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-29
AI Technical Summary
Existing multi-agent reinforcement learning methods are prone to falling into local optimal solutions when alleviating traffic congestion, and cannot effectively alleviate the global traffic congestion problem.
By collecting traffic flow data, an intelligent agent group is constructed, including an intelligent agent array, a vehicle input agent, and a vehicle output agent. Based on neural network model training and deployment, the traffic light signal is adjusted in real time to respond to the overall situation in the congested area and avoid local optimality. untie.
It achieves effective alleviation of global traffic congestion, avoids the phenomenon of multi-agent reinforcement learning falling into a local optimal solution, optimizes the traffic light control sequence, and improves the overall efficiency of traffic flow.
Smart Images

Figure CN118553103B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of traffic control, and in particular to a traffic congestion dissipation method based on multi-agent reinforcement learning. Background Art
[0002] With the development of social economy, the number of cars in my country has been increasing, making urban traffic problems more and more prominent, and traffic congestion has become a problem that people have to face every day. Traffic congestion not only wastes a lot of time, but also wastes energy by braking and idling in the queue. Traffic light control, as the main means of traffic control, plays an important role in alleviating traffic congestion. How to reasonably control traffic lights and alleviate traffic congestion to the greatest extent has become an urgent problem to be solved.
[0003] People are gradually adopting intelligent traffic signal control solutions to control traffic lights. Intelligent traffic signal control solutions use algorithms such as reinforcement learning methods to interact with the real-time traffic environment and make control decisions in real time for dynamically changing traffic flows to alleviate traffic congestion. However, when using multi-agent reinforcement learning methods to allow multiple agents to learn simultaneously, the control decisions made by each agent can only alleviate the congestion problem in the area where it is located, but cannot effectively alleviate the global traffic congestion problem, and are prone to fall into local optimal solutions. Summary of the invention
[0004] In order to solve the technical problem that multi-agent reinforcement learning in the prior art is prone to fall into a local optimal solution and cannot effectively alleviate global traffic congestion, the traffic congestion dissipation method based on multi-agent reinforcement learning proposed in the present invention specifically includes the following steps:
[0005] S1. Collect traffic data for one day, and the cloud server determines the congested intersections based on the traffic data;
[0006] S2, constructing an agent group according to the congested plane intersections, each plane intersection corresponds to an agent group, and the agent group includes an agent array, a vehicle input agent and a vehicle output agent;
[0007] S3, the cloud server trains a neural network model applied to the vehicle input agent and the vehicle output agent based on the vehicle flow data;
[0008] S4. The cloud server deploys the neural network model on the vehicle input agent and the vehicle output agent, and the agent group controls the traffic light signal according to the real-time traffic flow information.
[0009] Preferably, in S1, each set of traffic lights is provided with a corresponding intelligent computing device and a high-definition camera. The high-definition camera takes real-time images of the corresponding road section at set time intervals. The intelligent computing device calculates the number of motor vehicles in the real-time image through image processing and sends the number of motor vehicles to a cloud server. The cloud server determines the congested road section based on the number of motor vehicles and identifies the plane intersection containing two or more congested road sections as a congested plane intersection.
[0010] Preferably, in S1, the method for determining the congested section is that if the number of motor vehicles is greater than the congestion threshold for five consecutive times, the section is deemed to be congested; if the section is congested at least once in the three time periods of 7:00-10:00, 12:00-15:00, and 17:00-21:00, it is deemed to be a congested section.
[0011] Preferably, in S2, the intelligent body array is composed of intelligent computing devices arranged in a traffic light group located at a congested intersection, the vehicle input intelligent body is an intelligent computing device arranged in a traffic light group connected to the congested intersection and located at a section of the road that guides vehicles entering the intersection, away from the intersection; the vehicle output intelligent body is an intelligent computing device arranged in a traffic light group connected to the congested intersection and located at a section of the road that guides vehicles leaving the intersection, away from the intersection.
[0012] Preferably, in S4, the specific process of controlling the traffic light signal is as follows:
[0013] S41, the vehicle input agent and the vehicle output agent determine a traffic light control sequence based on a neural network model;
[0014] S42, the vehicle input agent and the vehicle output agent obtain the real-time number of motor vehicles through a high-definition camera, and the agent array adjusts the traffic light control sequence of the vehicle input agent and the vehicle output agent based on the real-time number of motor vehicles;
[0015] S43: The agent array determines the traffic light control sequence of each traffic light group at the intersection based on the traffic light control sequence of the vehicle input agent and the vehicle output agent.
[0016] Preferably, in S42, the traffic light control sequence adjustment process is as follows:
[0017] S421, the vehicle input agent obtains the real-time number of motor vehicles through a high-definition camera, the agent array estimates the expected number of input motor vehicles of the road section corresponding to the vehicle input agent based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle input agent, calculates the average number of input motor vehicles of the road section corresponding to all vehicle input agents, and uses the average number of input motor vehicles as the reference value of the number of motor vehicles;
[0018] S422, the agent array adjusts the traffic light control sequence of each vehicle input agent according to the motor vehicle quantity reference value;
[0019] S423, the agent array calculates the output motor vehicle demand of each vehicle output agent corresponding to the road section, and the actual number of output motor vehicles of each vehicle output agent corresponding to the road section, and adjusts the traffic light control sequence of each output agent according to the output motor vehicle demand and the actual number of output motor vehicles;
[0020] S424, the intelligent body array calculates the total motor vehicle input and the total motor vehicle output, and calculates the ratio of the total motor vehicle input to the total motor vehicle output. If the ratio is less than the ratio threshold, the adjustment is ended; if the ratio is greater than or equal to the ratio threshold, the motor vehicle quantity baseline value is adjusted to 80% of the original value, and the process returns to S422.
[0021] Preferably, in S422, the estimated number of input motor vehicles of the road section corresponding to the vehicle input intelligent body is compared with the motor vehicle number baseline value. If the estimated number of input motor vehicles is less than or equal to the motor vehicle number baseline value, the traffic light control sequence of the vehicle input intelligent body does not need to be adjusted. If the estimated number of input motor vehicles is greater than the motor vehicle number baseline value, the intelligent body array reduces the traffic light passage time according to the set adjustment range until the estimated number of input motor vehicles becomes 80% of the initial value.
[0022] Preferably, in S423, the calculation process of the output motor vehicle demand is that the intelligent body array obtains the real-time number of motor vehicles in the road section connected by the plane intersection through a high-definition camera, and the intelligent body array calculates the output motor vehicle demand of each vehicle output intelligent body corresponding to the road section according to the real-time number of motor vehicles obtained by the intelligent body array, the real-time number of motor vehicles obtained by each vehicle input intelligent body, the traffic light control sequence of each vehicle input intelligent body and the travel direction of each road section; the calculation process of the actual number of output motor vehicles is that the vehicle output intelligent body obtains the real-time number of motor vehicles through a high-definition camera, and the intelligent body array estimates the actual number of output motor vehicles in the road section corresponding to the vehicle output intelligent body based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle output intelligent body; the traffic light control sequence of the output intelligent body is adjusted by calculating the ratio of the output motor vehicle demand and the actual number of output motor vehicles to obtain the adjustment ratio, and increasing the traffic light passage time according to the adjustment ratio.
[0023] Preferably, in S424, the process of calculating the total motor vehicle input quantity is that the vehicle input agent obtains the real-time number of motor vehicles through a high-definition camera, the agent array estimates the expected number of input motor vehicles in the road section corresponding to the vehicle input agent based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle input agent, and calculates the sum of the expected number of input motor vehicles in the road sections corresponding to all vehicle input agents as the total motor vehicle input quantity, and the process of calculating the total motor vehicle output quantity is that the vehicle output agent obtains the real-time number of motor vehicles through a high-definition camera, the agent array estimates the actual number of output motor vehicles in the road section corresponding to the vehicle output agent based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle output agent, and calculates the sum of the actual number of output motor vehicles in the road sections corresponding to all vehicle output agents as the total motor vehicle output quantity.
[0024] Preferably, in S43, the specific process of determining the traffic light control sequence of each traffic light group at the plane intersection is that the intelligent body array determines multiple travel paths according to the travel directions of each road section connected by the plane intersection, the vehicle input intelligent body and the vehicle output intelligent body obtain the real-time number of motor vehicles through a high-definition camera, the intelligent body array determines the expected number of motor vehicles on each travel path according to the real-time number of motor vehicles and the traffic light control sequence of the vehicle input intelligent body and the vehicle output intelligent body, and determines the traffic light control sequence of each traffic light group at the plane intersection according to the ratio between the expected number of motor vehicles on each travel path.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] The intelligent agent obtains the initial traffic light control sequence based on the neural network model. The intelligent agent array adjusts the initial traffic light control sequence according to the overall situation of the congested area to obtain the final traffic light control sequence, thus preventing multi-agent reinforcement learning from falling into the local optimal solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of the traffic congestion dissipation method of the present invention. DETAILED DESCRIPTION
[0028] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0029] like Figure 1 As shown, the traffic congestion dissipation method based on multi-agent reinforcement learning proposed in the present invention specifically includes the following steps:
[0030] S1. Collect traffic data for one day, and the cloud server determines the congested intersections based on the traffic data. Each set of traffic lights is equipped with a corresponding intelligent computing device and a high-definition camera. The process of acquiring traffic data is that the high-definition camera takes real-time images of the corresponding road section at a set time interval (for example, 10 minutes), and the intelligent computing device calculates the number of motor vehicles in the real-time image through image processing, and sends the number of motor vehicles to the cloud server. The process of determining the congested intersection is that the cloud server determines the congested section based on the number of motor vehicles, and identifies the intersection containing two or more congested sections as a congested intersection. The method for determining the congested section is that if the number of motor vehicles is greater than the congestion threshold for five consecutive times, the section is identified as a congested section. If the section is congested at least once in the three time periods of 7:00-10:00, 12:00-15:00, and 17:00-21:00, it is identified as a congested section.
[0031] S2. Build an agent group according to the congested plane intersections, and each plane intersection corresponds to an agent group. The agent group includes an agent array, a vehicle input agent, and a vehicle output agent. The agent array is composed of intelligent computing devices arranged in the traffic light group located at the congested plane intersection. The vehicle input agent is an intelligent computing device arranged in the traffic light group connected to the congested plane intersection, which is far away from the plane intersection. The vehicle output agent is an intelligent computing device arranged in the traffic light group connected to the congested plane intersection, which is far away from the plane intersection.
[0032] S3. The cloud server trains the neural network model applied to the vehicle input agent and the vehicle output agent based on the traffic flow data. The input of the neural network model is the number of motor vehicles, and the output is the traffic light control sequence.
[0033] S4. The cloud server deploys the neural network model to the vehicle input agent and the vehicle output agent. The agent group controls the traffic light signal according to the real-time traffic flow information. The specific process of controlling the traffic light signal is as follows:
[0034] S41. The vehicle input agent and the vehicle output agent determine the traffic light control sequence based on the neural network model.
[0035] S42, the vehicle input agent and the vehicle output agent obtain the real-time number of motor vehicles through the high-definition camera, and the agent array adjusts the traffic light control sequence of the vehicle input agent and the vehicle output agent based on the real-time number of motor vehicles. The traffic light control sequence adjustment process is as follows:
[0036] S421. The vehicle input agent obtains the real-time number of motor vehicles through a high-definition camera. The agent array estimates the expected number of input motor vehicles on the road section corresponding to the vehicle input agent based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle input agent, calculates the average number of input motor vehicles on the road section corresponding to all vehicle input agents, and uses the average number of input motor vehicles as the benchmark value for the number of motor vehicles.
[0037] S422, the agent array adjusts the traffic light control sequence of each vehicle input agent according to the motor vehicle number benchmark value. The specific process of adjusting the traffic light control sequence of the vehicle input agent according to the motor vehicle number benchmark value is to compare the expected number of motor vehicles inputted to the road section corresponding to the vehicle input agent with the motor vehicle number benchmark value. If the expected number of motor vehicles inputted is less than or equal to the motor vehicle number benchmark value, the traffic light control sequence of the vehicle input agent does not need to be adjusted. If the expected number of motor vehicles inputted is greater than the motor vehicle number benchmark value, the agent array reduces the traffic light passage time according to the set adjustment range until the expected number of motor vehicles inputted becomes 80% of the initial value.
[0038] S423, the agent array calculates the output motor vehicle demand of each vehicle output agent corresponding to the road section, and the actual number of output motor vehicles of each vehicle output agent corresponding to the road section, and adjusts the traffic light control sequence of each output agent according to the output motor vehicle demand and the actual number of output motor vehicles. The calculation process of the output motor vehicle demand is that the agent array obtains the real-time number of motor vehicles of the road section connected by the plane intersection through a high-definition camera, and the agent array calculates the output motor vehicle demand of each vehicle output agent corresponding to the road section according to the real-time number of motor vehicles obtained by the agent array, the real-time number of motor vehicles obtained by each vehicle input agent, the traffic light control sequence of each vehicle input agent, and the travel direction of each road section. The calculation process of the actual number of output motor vehicles is that the vehicle output agent obtains the real-time number of motor vehicles through a high-definition camera, and the agent array estimates the actual number of output motor vehicles of the road section corresponding to the vehicle output agent based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle output agent. The traffic light control sequence of the output agent is adjusted by calculating the ratio of the output motor vehicle demand and the actual number of output motor vehicles to obtain an adjustment ratio, and increasing the traffic light passage time according to the adjustment ratio.
[0039] S424, the agent array calculates the total motor vehicle input and the total motor vehicle output, and calculates the ratio of the total motor vehicle input to the total motor vehicle output. If the ratio is less than the ratio threshold, the adjustment is terminated. If the ratio is greater than or equal to the ratio threshold, the motor vehicle number benchmark is adjusted to 80% of the original value, and the process returns to S422. The calculation process of the total motor vehicle input is that the vehicle input agent obtains the real-time number of motor vehicles through a high-definition camera, the agent array estimates the expected number of input motor vehicles in the road section corresponding to the vehicle input agent based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle input agent, and calculates the sum of the expected number of input motor vehicles in the road section corresponding to all vehicle input agents as the total motor vehicle input. The calculation process of the total motor vehicle output is that the vehicle output agent obtains the real-time number of motor vehicles through a high-definition camera, the agent array estimates the actual number of output motor vehicles in the road section corresponding to the vehicle output agent based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle output agent, and calculates the sum of the actual number of output motor vehicles in the road section corresponding to all vehicle output agents as the total motor vehicle output.
[0040] S43, the agent array determines the traffic light control sequence of each traffic light group at the flat intersection based on the traffic light control sequence of the vehicle input agent and the vehicle output agent. The specific process of determining the traffic light control sequence of each traffic light group at the flat intersection is that the agent array determines multiple travel paths according to the travel directions of each road section connected by the flat intersection, the vehicle input agent and the vehicle output agent obtain the real-time number of motor vehicles through a high-definition camera, the agent array determines the estimated number of motor vehicles for each travel path according to the real-time number of motor vehicles and the traffic light control sequence of the vehicle input agent and the vehicle output agent, and determines the traffic light control sequence of each traffic light group at the flat intersection according to the ratio between the estimated number of motor vehicles for each travel path.
[0041] The above disclosure is only the preferred embodiment of the present invention, and certainly cannot be used to limit the scope of the present invention. It should be pointed out that for those skilled in the art, any equivalent changes made to the scheme of the present invention without departing from the design structure and principle of the present invention are considered to be within the protection scope of the present invention.
Claims
1. A traffic congestion dissipation method based on multi-agent reinforcement learning, characterized in that ,The traffic congestion dissipation method specifically includes the following steps: S1. Collect traffic flow data for one day, and the cloud server determines the congested intersections based on the traffic flow data; S2. Building an agent group according to the congested plane intersections, each plane intersection corresponds to an agent group, the agent group includes an agent array, a vehicle input agent and a vehicle output agent, the vehicle input agent is an intelligent computing device set in a traffic light group connected to the congested plane intersection and guiding vehicles to enter the plane intersection at one end away from the plane intersection, and the vehicle output agent is an intelligent computing device set in a traffic light group connected to the congested plane intersection and guiding vehicles to leave the plane intersection at one end away from the plane intersection; S3, the cloud server trains a neural network model applied to the vehicle input agent and the vehicle output agent based on the vehicle flow data; S4, the cloud server deploys the neural network model on the vehicle input agent and the vehicle output agent, and the agent group controls the traffic light signal according to the real-time traffic flow information; In S4, the specific process of controlling the traffic light signal is as follows: S41, the vehicle input agent and the vehicle output agent determine a traffic light control sequence based on a neural network model; S42, the vehicle input agent and the vehicle output agent obtain the real-time number of motor vehicles through a high-definition camera, and the agent array adjusts the traffic light control sequence of the vehicle input agent and the vehicle output agent based on the real-time number of motor vehicles; S43, the agent array determines the traffic light control sequence of each traffic light group at the plane intersection based on the traffic light control sequence of the vehicle input agent and the vehicle output agent; In S42, the traffic light control sequence adjustment process is as follows: S421, the vehicle input agent obtains the real-time number of motor vehicles through a high-definition camera, the agent array estimates the expected number of input motor vehicles of the road section corresponding to the vehicle input agent based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle input agent, calculates the average number of input motor vehicles of the road section corresponding to all vehicle input agents, and uses the average number of input motor vehicles as the reference value of the number of motor vehicles; S422, the agent array adjusts the traffic light control sequence of each vehicle input agent according to the motor vehicle quantity reference value; S423, the agent array calculates the output motor vehicle demand of each vehicle output agent corresponding to the road section, and the actual number of output motor vehicles of each vehicle output agent corresponding to the road section, and adjusts the traffic light control sequence of each output agent according to the output motor vehicle demand and the actual number of output motor vehicles; S424, the intelligent body array calculates the total motor vehicle input and the total motor vehicle output, and calculates the ratio of the total motor vehicle input to the total motor vehicle output. If the ratio is less than the ratio threshold, the adjustment is ended; if the ratio is greater than or equal to the ratio threshold, the motor vehicle quantity baseline value is adjusted to 80% of the original value, and returns to S422.
2. The method for alleviating traffic congestion according to claim 1, characterized in that: In S1, each set of traffic lights is provided with a corresponding intelligent computing device and a high-definition camera. The high-definition camera takes real-time images of the corresponding road section at set time intervals. The intelligent computing device calculates the number of motor vehicles in the real-time image through image processing and sends the number of motor vehicles to the cloud server. The cloud server determines the congested road section based on the number of motor vehicles and identifies the plane intersection containing two or more congested road sections as a congested plane intersection.
3. The method for alleviating traffic congestion according to claim 2, characterized in that: In S1, the method for determining a congested road section is that if the number of motor vehicles is greater than the congestion threshold for five consecutive times, the road section is deemed to be congested; if the road section is congested at least once in the three time periods of 7:00-10:00, 12:00-15:00, and 17:00-21:00, it is deemed to be a congested road section.
4. The method for alleviating traffic congestion according to claim 1, characterized in that: In S2, the intelligent body array is composed of intelligent computing devices arranged in a traffic light group at a congested flat intersection and connected by communication.
5. The method for alleviating traffic congestion according to claim 1, characterized in that: In S422, the estimated number of input motor vehicles of the road section corresponding to the vehicle input intelligent body is compared with the motor vehicle number benchmark value. If the estimated number of input motor vehicles is less than or equal to the motor vehicle number benchmark value, the traffic light control sequence of the vehicle input intelligent body does not need to be adjusted. If the estimated number of input motor vehicles is greater than the motor vehicle number benchmark value, the intelligent body array reduces the traffic light passage time according to the set adjustment range until the estimated number of input motor vehicles becomes 80% of the initial value.
6. The method for alleviating traffic congestion according to claim 1, characterized in that: In S423, the calculation process of the output motor vehicle demand is that the intelligent body array obtains the real-time number of motor vehicles in the road section connected by the plane intersection through a high-definition camera, and the intelligent body array calculates the output motor vehicle demand of each vehicle output intelligent body corresponding to the road section according to the real-time number of motor vehicles obtained by the intelligent body array, the real-time number of motor vehicles obtained by each vehicle input intelligent body, the traffic light control sequence of each vehicle input intelligent body and the travel direction of each road section. The calculation process of the actual number of output motor vehicles is that the vehicle output intelligent body obtains the real-time number of motor vehicles through a high-definition camera, and the intelligent body array estimates the actual number of output motor vehicles in the road section corresponding to the vehicle output intelligent body based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle output intelligent body. The traffic light control sequence of the output intelligent body is adjusted by calculating the ratio of the output motor vehicle demand and the actual number of output motor vehicles to obtain an adjustment ratio, and increasing the traffic light travel time according to the adjustment ratio.
7. The method for alleviating traffic congestion according to claim 1, characterized in that: In S424, the calculation process of the total motor vehicle input quantity is that the vehicle input agent obtains the real-time number of motor vehicles through a high-definition camera, the agent array estimates the expected number of input motor vehicles in the road section corresponding to the vehicle input agent based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle input agent, and calculates the sum of the expected number of input motor vehicles in the road sections corresponding to all vehicle input agents as the total motor vehicle input quantity. The calculation process of the total motor vehicle output quantity is that the vehicle output agent obtains the real-time number of motor vehicles through a high-definition camera, the agent array estimates the actual number of output motor vehicles in the road section corresponding to the vehicle output agent based on the real-time number of motor vehicles and the traffic light control sequence of the vehicle output agent, and calculates the sum of the actual number of output motor vehicles in the road sections corresponding to all vehicle output agents as the total motor vehicle output quantity.
8. The method for alleviating traffic congestion according to claim 1, characterized in that: In the S43, the specific process of determining the traffic light control sequence of each traffic light group at the plane intersection is that the intelligent body array determines multiple travel paths according to the travel directions of each road section connected by the plane intersection, the vehicle input intelligent body and the vehicle output intelligent body obtain the real-time number of motor vehicles through a high-definition camera, the intelligent body array determines the expected number of motor vehicles on each travel path according to the real-time number of motor vehicles and the traffic light control sequence of the vehicle input intelligent body and the vehicle output intelligent body, and determines the traffic light control sequence of each traffic light group at the plane intersection according to the ratio between the expected number of motor vehicles on each travel path.
Citation Information
Patent Citations
Intersection signal control method based on multiple intelligent agents
CN105225502A
Traffic light dynamic timing algorithm based on deep Q network learning
CN109544913A
Traffic control method and traffic control system
CN111968388A
Traffic light intelligent regulation and control system for crossroad
CN113192345A
Urban road network signal coordination control method based on game equilibrium theory
CN113780624A
