Skip to content

Deep learning based detection framework to categorize weather conditions for autonomous vehicles in adverse or normal situations.

Notifications You must be signed in to change notification settings

dev-corp/car_detection_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 

Repository files navigation

Adverse Weather Object Detection using Customized Models

Why this Project?

  • Adverse weather-related fatalities constituted about 16 % of total fatalities. This model if implemented with a hardware device and equipped within a vehicle will help mitigating these accidents.
  • When integrated within a car, a warning message can be generated if a vehicle is detected.
  • Self Drive Cars which are capable of cue assisstance during Taffic Jams, Collision Avoidance, etc. fail during conditions like heavy fog, rain, snow and sandstorms.
  • It can be used with CCTV cameras which are unable to work perfectly during adverse weather conditions.

Abstract

  • Principle: Utilized DAWN2020 dataset to check the efficiency of the already built object detection models to detect vehicles in adverse weather conditions.
  • Tech used: Image Augmentation (creating data from existing data) and Transfer Learning Techniques (storing knowledge gained while solving one problem and applying it to a different but related problem). The model for object detection with no adverse conditions was trained on ImageNet dataset. This is fine tuned using various ML algorithms to train it in adverse conditions as well (adaptive learning rate).
  • ML models: Various models like YOLO V4, SSD (Resnet 50 FPN), Faster RCNN (Resnet 50 FPN) and were used to get the results, Faster RCNN (Resnet 50 FPN) giving the best results.

Dataset

  • DAWN dataset (1027 images of both vehicles(major) and humans)
  • 6 types of vehicles(Bicycle, Bus, Car, MotorCycle, Train, Truck).
  • 300 images of fog, 200 of rain, 323 of sand and 204 images of snow
  • The dataset was originally numbered as 1,2,3 and so on. LabelMe helped to identify the numbers 1,2,3..and then we manually fix the number with a type of vehicle. We passed it along with a pipeline.config file which has metadata in it. Via python script, the pipeline.config file runs and the model gets trained.

Dawn Dataset Statistics

image

Sample images from Dawn dataset

image

Annotated images

image

Phases

  • Data Augmentation (via ImageDataGenerator Class): rotation, shearing, Zooming, cropping, flipping and changing the brightness level. Also, neglecting the Humans' image
  • Data Preprocessing: the actual image size was large thus the images are scaled into 640*640*3 (RGB) so that computation can be reduced
  • Dividing the dataset into train, validation and test
  • Choosing the model
  • Training and then Evaluating the model
  • Make Predictions

Steps followed during the Vehicle Detection

  • Feature Extraction
  • Feature Aggregation
  • Bounding Box Prediction

The path followed

  • Used CentOS Linux Distribution to train the model and nvidia GTX 1080 Ti GPU
  • Studied various papers related to Object Detection and according to that tried different models one by one
  • Performance is evaluated on the basis of mean Average Precision (mAP) value of the different models. The same is shown with help of the graph, table and the sample test image below
  • The GitHub link from which the models' zip file was extracted and some of the research papers studied link is in the refernces below

Results

Predicting the vehicles in Adverse Conditions using YOLOV4

1

Predicting the vehicles in Adverse Conditions using SSD (RESNET 50)

1

Predicting the vehicles in Adverse Conditions using Faster RCNN

image

Training and Testing Loss for various models

SSD ResNet

SSD ResNet loss

Faster RCNN

Faster RCNN loss

Mean Average Precision (mAP) individual model result

SSD ResNet 50

SSD ResNet 50

Faster RCNN

faster RCNN

YOLO V4

YOLO_Graphs

mAP Overall comparison

MAP value compare

Improvement scope

  • Different Dataset
  • Hyperparameter tuning such as taking different initial learning rate, variation in learning rate, backpropagation process, number of layers, etc.
  • Choosing different models

Challenges

  • Data collection
  • High computational cost
  • Difficulty in the initial phases due to pandemic

References

About

Deep learning based detection framework to categorize weather conditions for autonomous vehicles in adverse or normal situations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published