Our Traffic Management System Uses AI to Coordinate traffic such that people have to Spent the least time in traffic. Our AI coordinate between traffic signals to ensure people don't have to stop at multiple signals. We use image detection to find traffic density and allot time dynamically to each lane.
- Congestion is mainly due to the intensive use of automobiles, whose ownership has spread massively in Urban Area in recent decades.
- A lot of time gets wasted in traffic signals as the no. of the vehicles is the less than expected.
- While driving through consecutive traffic signals we often have to wait at each of the signal.
- Traffic Not only cause the extra delay but also increase fuel consumption, and transportation cost.
- Manual Controlling :- As the Name Suggests That's requires More ManPower to control Traffic and Traffic Police is alloted to each traffic signals and they have to control traffic.
- Automatic Controlling :- Automatic Traffic Light is Controlled by the timer and electrical Sensors. The Light are getting automatically Getting ON and OFF.
- Electronic Controlling :- In Electronic Contrilling Method We have To placing some detector or sensors on the traffic area, and this sensors give data about the traffic Density and controll the traffic signals.
- The Manual Controlling System is static and requires a large number of manpower.
- They May cause a delay in the quick movement of traffic.
- Electronic Sensors and detector are very expensive in cost, accuracy and coverage are often in conflict.
The Traffic flow has no specific pattern that is followed, and the static signal timers pose a huge problem to the already critical problem of congestion.
Therefore, we are implementing a system which aims to reduce chance of such scenarios by automatically computing the optimal green signal time based on the current traffic at the signal will ensure that the direction with more traffic is allotted a green signal for longer duration of time as compared to the direction with lesser traffic.
So our dynamic traffic management system can override the current static system which cause unwanted delays and congestion. also our system will also reduce the time complexity of vehicles pass.
The main objective of our system is to design an AI Based on Edge Computing that can Solve Current Traffic Situation Our System aims to use Image Recognization System and Live video feed from the CCTV Cameras at Traffic Junctions for calculating Real time traffic density and our AI Set the signal Time accordingly.
- Autonomous: There are no need of the Manpower
- Dynamic System, Manages Traffic light switching according to current traffic density.
- Less expensive than other solutions.
- There are no need to new hardware to be installed.
Step 1 :- Capturing Vehicles Image Using CCTV At Traffic Signals
Step 2 :- Indetify The Vehicles and Calculate Number of the Vehicles
Step 3 :- Send Final Number of the Vehicles to AI
Step 4 :- AI Scheduling the Green Signal Time according to Traffic Density
Step 5 :- Updating traffic Signal Time
- The Processing Time of the Image Recognization System to Calculate traffic Density.
- Lag each vehicle suffers during start up.
- Average speed each catagory of Vehicles.
- The no. of Lanes.
All user Installation
pip install neat-python
pip install pygame
for the Graph only
pip install matplotlib
Run the Python File
python simulation.py
For the Using NEAT Download the config.txt file from the Below Link
Link :- https://techwithtim.net/wp-content/uploads/2019/08/config-feedforward.txt
Save the Above file as config.txt
Here we see in our static model that static time is given to each signal i.e. 30sec which leads to wastage of time when enough vehicles are not present in that lane.
Static.mp4
In our dynamic model, using image detection we determine the traffic density in that lane and provide just enough time for the vehicles to pass which leads to time being saved in each of the lane and in each cycle.
Dynamic.mp4
Here we Compare the Total Number of the Vehicles that crosses the intersection over 1 Simulation(5 Min.) in the current system and Our implemented System With The random number of the Vehicles, Over A Total Time of 1 Hour With 12 Simulations of 5 Minutes each.
As we can see with all conditions alike, our dynamic system was able to pass 3193 Vehicles while the current static system could pass only 2356 in 1 hour which means 837 more vehicles.
Thus our proposed Traffic managment system with AI improves the performance by over 35%.
Our proposed system on and average allow 70 more vehicles to pass every one simulation(5 min) aas compared to the current system this implies a reduction in time complexity of green signal time(Signal is green but no vehiclea passes) as well as the waiting time of the vehicles.
The following video shows how the AI will coordinate the signals so that the vehicles will not have to stop at every signal if they want to travel on the same straight route.
AI.mp4
- Using the dynamic model we can effectively reduce the waiting time of the vehicles.
- Our proposed Traffic management system with AI improves the performance by over 35% comaparing to Current System.
- Using the AI model adds an additional functionality to reduce the waiting time of vehicles at their next crossing.
- Both of these can be implemented using edge computing at the traffic signal itself.
- It can be implemented with effectively with very little cost.