All Projects β†’ Ujwal2910 β†’ Smart-Traffic-Signals-in-India-using-Deep-Reinforcement-Learning-and-Advanced-Computer-Vision

Ujwal2910 / Smart-Traffic-Signals-in-India-using-Deep-Reinforcement-Learning-and-Advanced-Computer-Vision

Licence: MIT license
We have used Deep Reinforcement Learning and Advanced Computer Vision techniques to for the creation of Smart Traffic Signals for Indian Roads. We have created the scripts for using SUMO as our environment for deploying all our RL models.

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to Smart-Traffic-Signals-in-India-using-Deep-Reinforcement-Learning-and-Advanced-Computer-Vision

docker-sumo
Containerised SUMO. Use sumo, sumo-gui and TraCI with Docker. 🐳 πŸš—
Stars: ✭ 49 (-62.6%)
Mutual labels:  sumo, traffic-simulation
tctb
Traffic Control Test Bed
Stars: ✭ 22 (-83.21%)
Mutual labels:  sumo, traffic-simulation
AutoPentest-DRL
AutoPentest-DRL: Automated Penetration Testing Using Deep Reinforcement Learning
Stars: ✭ 196 (+49.62%)
Mutual labels:  deep-reinforcement-learning
vscode-cc65-debugger
VSCode extension for CC65 debugging with VICE or Mesen
Stars: ✭ 26 (-80.15%)
Mutual labels:  emulation
racing dreamer
Latent Imagination Facilitates Zero-Shot Transfer in Autonomous Racing
Stars: ✭ 31 (-76.34%)
Mutual labels:  deep-reinforcement-learning
ness
A work-in-progress SNES emulator written in Rust
Stars: ✭ 31 (-76.34%)
Mutual labels:  emulation
desmume
DeSmuME is a Nintendo DS emulator
Stars: ✭ 1,609 (+1128.24%)
Mutual labels:  emulation
pokeai
Develop ultimate AI PokΓ©mon trainer
Stars: ✭ 18 (-86.26%)
Mutual labels:  deep-reinforcement-learning
video-colorization
Applying the machine learning tool "DeOldify" on videos, frame by frame.
Stars: ✭ 15 (-88.55%)
Mutual labels:  video-processing
virtualc64web
vc64web - web based Commodore 64 Emulation with CSDb access for thousands of demos at your fingertip
Stars: ✭ 23 (-82.44%)
Mutual labels:  emulation
towhee
Towhee is a framework that is dedicated to making neural data processing pipelines simple and fast.
Stars: ✭ 821 (+526.72%)
Mutual labels:  video-processing
sumologic-docker-logging-driver
A Docker logging driver plugin to send logs to Sumo Logic.
Stars: ✭ 49 (-62.6%)
Mutual labels:  sumologic
UString
[ACM MM 2020] Uncertainty-based Traffic Accident Anticipation
Stars: ✭ 38 (-70.99%)
Mutual labels:  traffic-analysis
semantic-guidance
Code for our CVPR-2021 paper on Combining Semantic Guidance and Deep Reinforcement Learning For Generating Human Level Paintings.
Stars: ✭ 19 (-85.5%)
Mutual labels:  deep-reinforcement-learning
rtrl
PyTorch implementation of our paper Real-Time Reinforcement Learning (NeurIPS 2019)
Stars: ✭ 57 (-56.49%)
Mutual labels:  deep-reinforcement-learning
Underflow
With underflow, create trafic light clusters that interact together to regulate circulation
Stars: ✭ 12 (-90.84%)
Mutual labels:  deep-reinforcement-learning
EDSAC
FPGA Verilog implementation of 1949 EDSAC Computer with animated tape reader, panel, teleprinter and CRT scope
Stars: ✭ 28 (-78.63%)
Mutual labels:  emulation
Ludere
A LibRetro-powered ROM packager for portable emulation on Android.
Stars: ✭ 30 (-77.1%)
Mutual labels:  emulation
pepic
Image and video proxy for my pet-projects
Stars: ✭ 35 (-73.28%)
Mutual labels:  video-processing
AlphaNPI
Adapting the AlphaZero algorithm to remove the need of execution traces to train NPI.
Stars: ✭ 71 (-45.8%)
Mutual labels:  deep-reinforcement-learning

Welcome to the Smart-Traffic-Signals-in-India-using-Deep-Reinforcement-Learning-and-Advanced-Computer-Vision wiki!

Smart-Traffic-Signals-in-India-using-Deep-Reinforcement-Learning-and-Advanced-Computer-Vision

With a growth in the economic sector since the early 1990s, India has been undergoing a paradigm shift in the domain of transportation as well. With the explosion in the number of road-vehicles, the surge in traffic density (especially in metropolitan cities like Bangalore and Delhi) has become a major cause of concern. It has, therefore, become really important to develop Intelligent traffic signals and systems in order to optimize the escalating traffic flow. For a developing country like India where the majority of motorists are still negligent of traffic laws and are often seen breaking them, for e.g, driving in opposite lanes, violating an indicator near turns and turning in a wrong direction, and many more such instances which eventually lead to traffic jams.

In such Indian scenarios, the power of reinforcement learning applied on traffic behavior can be leveraged to greatly reduce these traffic jams. We have designed a script for applying Deep Reinforcement Learning using SUMO simulator in the repository. We have used DQN+Target Network+Experience Replay in our project and processed frames from simulator using computer vision

SUMO Environment-

We have used SUMO as our running environment and have experimented with number of sceneraios and agents. Following image shall better help understand the scenarios used- Scenarios

Scenarios tested on single intersection.

In (a), equal traffic is supplied to all the carriageways. In (b), equal traffic is supplied to two of the carriageways, the other two carriageways are kept empty. In (c), the traffic in the two non-empty carriageways is made unequal. In (d), an obstacle (labeled in red) is introduced in one of the carriageways.


We also worked with Two junctions for multi agent RL setup- Dual intersection


Computer Vision Module-

We have used background subtraction for calculation of queue length of vehciles in a lane or section and four of these make a junction which acts as our state space. For a realistic scenario the figure below shall represent an accurate representation of the process-

Background subtraction in real life

The same we have done by taking in the frames from the simulator by recording the screen and then extracting each lane frame from the four lanes and then processing it to get the queue lenghts.

Simulator background queue calculation

Here after getting a simulator frame, we convert it bird eye view so it looks like an image taken from a traffic camera and then perform background subtraction to get the queue length.


RL model-

The Queue length obtained from the CV module goes into the RL model. We have used Queue length as our state space and the decision to switch green signal to the next lane or not is decided by the RL model.


State space - Queue lengths+ Phases

Action Space - Switch || Not Switch


Results-

Following graphs show our results when put against Round Robin 40 seconds. We also experimented with various reward functions also. graphs


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].