ekapujiw2002 / JKT-Smart-Traffic-System

pothole detection, traffic density classification, vehicle type categorization

Home Page:https://omdena-jakarta-traffic-system.streamlit.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Omdena Jakarta - Smart Traffic System

Project Links:

  1. Streamlit Webapp
  2. Pitch Deck Video
  3. Omdena Chapter Link

Background

Traffic Management refers to the combination of measures that serve to preserve traffic capacity and improve the security, safety and reliability of the overall road transport system. These measures make use of ITS systems, services and projects in day-to-day operations that impact on road network performance. Proper traffic management can ensure that

  • Traffic flows smoothly and efficiently.
  • Roads are well maintained and safe for all users, including pedestrians and cyclists.
  • Congestion, local pollution and accidents are minimized.
  • Vehicles are within speed limits and heading in correct direction along lane.

Solution

In this project we aim to provide smart solutions to address problems associated with Traffic Management

  • Vehicle Category Classification and Detection.
  • Traffic Density Classification.
  • Pothole Object Detection.
No Description Dataset Kaggle Weights
1 Vehicle Category Classification and Detection Link Link Link
2 Traffic Density Classification Link Link Link
3 Pothole Object Detection Link Link Link

πŸ›  Skills

Pytorch, Torchvision, Ultralytics, OpenCV, Numpy, Streamlit, Git

Directory Tree

β”œβ”€β”€ notebooks
β”‚   │── real-time-pothole-detection-using-ssd.ipynb
|   |── traffic-density-classification-using-efficientnet.ipynb
β”‚   └── vehicle-category-object-detection-pytorch.ipynb
β”œβ”€β”€ webapp
β”‚   β”œβ”€β”€ images
β”‚   β”‚   β”œβ”€β”€ category_img
β”‚   β”‚   β”œβ”€β”€ pothole_img
β”‚   β”‚   β”œβ”€β”€ density_img
β”‚   β”‚   └── home_page
β”‚   β”œβ”€β”€ pages
β”‚   β”‚   β”œβ”€β”€ Pothole_Detection.py
β”‚   β”‚   β”œβ”€β”€ Traffic_Density_Classification.py
β”‚   β”‚   └── Vehicle_Category_Detection.py
β”‚   β”œβ”€β”€ videos
β”‚   β”‚   β”œβ”€β”€ raw_clip.mp4
β”‚   β”‚   β”œβ”€β”€ annotated_clip.mp4
β”‚   β”œβ”€β”€ weights
β”‚   β”‚   β”œβ”€β”€ pothole_model.pth
β”‚   β”‚   β”œβ”€β”€ traffic_density.pth
β”‚   β”‚   └── vehicle_categorization.pth
β”‚   │── Introduction.py
β”‚   │── utils.py
β”‚   │── requirements.txt
β”‚   │── packages.txt
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE
└── .gitignore

Vehicle Category Classification and Detection

  • Reducing vehicle speed can prevent road crash incidents as an average 1 km increase in vehicle speed can lead to 3 percent increase in road accidents.
  • Detecting and Categorizing different types of vehicle in traffic flow can help in determining vehicles speed using optical flow and enforcing speed limits.
  • Single Shot Detector architecture with mobileNet_v3 backone is utilized for categorizing different Vehicles type.
  • The model achieved a mean average precision of 0.645 on test dataset @ iou=0.50.

Traffic Density Classification

  • The primary goal of traffic management is to make the movement of goods and persons as efficient, orderly, and safe as possible.
  • Traffic Density Classification will be instrumental in redirecting traffic from major roads during peak hours and making the overall movement be safer and more efficient.
  • EfficientNet_b0 architecture is utilized for traffic density classification into Empty, Low, Medium, High, Traffic Jam categories.
  • The model achieved a mean average accuracy of 0.93 on test dataset.

Pothole Object Detection

  • The safety and efficiency of travel systems depend on how well roads are kept up.
  • Pothole Object Detection will be helpful in early identification of pothole and lowering long-term repair costs.
  • It will be critical for ensuring the safety of drivers and the overall efficiency of transportation infrastructure.
  • Single Shot Detector with MobileNetv3 backbone is utilized for detecting potholes on the roads.
  • The model achieved a mean average precision of 0.512 at 0.50 intersection over union.

Future Development

  • Road Lane Instance Segmentation
  • Plate number recognition
  • Vehicle tracking for speed determination

Run Webapp Locally

Clone the project

  git clone https://github.com/OmdenaAI/jakarta-indonesia-predicting-road-defects

Change to project directory

  cd webapp

Create Virtaul Environment and install dependencies

  py -m venv venv
  venv/Scripts/activate
  pip install -r requirements.txt

Run Locally

  streamlit run Introduction.py

Contributions

Chapter Lead: Louis Jefferson Zhang

Technical Lead: Sudhanshu Rastogi

Collaborators:

  • Mohamed Chahed
  • Mansoor Baig
  • Nishtha Bhattacharjee

Project Archives

Navigate to archive branch to look into some project development notebooks.

About

pothole detection, traffic density classification, vehicle type categorization

https://omdena-jakarta-traffic-system.streamlit.app/

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 99.9%Language:Python 0.1%