Keras MultiClass Image Classification Save

Multiclass image classification using Convolutional Neural Network

Project README

Multi class Weather Classification

Time and again unfortunate accidents due to inclement weather conditions across the globe have surfaced. Ship collision, train derailment, plane crash and car accidents are some of the tragic incidents that have been a part of the headlines in recent times. This grave problem of safety and security in adverse conditions has drawn the attention of the society and numerous studies have been done in past to expose the vulnerability of functioning of transportation services due to weather conditions. In past, weather-controlled driving speeds and behaviour have been proposed. With the advancement in technology and emergence of a new field, intelligent transportation, automated determination of weather condition has become more relevant. Present systems either rely on series of expensive sensors or human assistance to identify the weather conditions. Researchers, in recent era have looked at various economical solutions. They have channelled their research in a direction where computer vision techniques have been used to classify the weather condition using a single image. The task of assessing the weather condition from a single image is a straightforward and easy task for humans. Nevertheless, this task has a higher difficulty level for an autonomous system and designing a decent classifier of weather that receives single images as an input would represent an important achievement.

The aim of this capstone project is to build a convolutional neural network that classifies different weather conditions while working reasonably well under constraints of computation. The work described in this report translates to two contributions to the field of weather classification. The first one is exploring the use of data augmentation technique, considering different Convolutional Neural Network (CNN) architectures for the feature extraction process when classifying outdoor scenes in a multi-class setting using general-purpose images. The second contribution is the creation of a new, open source dataset, consisting of images collected online that depict scenes of five weather conditions.

Transfer Learning with ResNet and VGG neural network architecture on multi-class weather classification problem with dataset collected online containing Creative Commons license retrieved from Flickr, Unsplash and Pexels. The final model (ResNet101) on test-data yields a log-loss of 0.080738 with valid accuracy of 96.67%.

The final report with model visualizations and validation plots is here.

Dependencies :

  • Python 3.5
  • keras conda install keras
  • tensorflow conda install tensorflow

Note that keras and tensorflow have their own dependencies. I recommend using Anaconda for handlinng the packages.

Dataset :

The Weather dataset can be downloaded from Kaggle (that I've uploaded there).

Usage :

  • Use wp_EDA_preprocessing Notebook to split training and validation data into respective folders.

Open Source Agenda is not affiliated with "Keras MultiClass Image Classification" Project. README Source: vijayg15/Keras-MultiClass-Image-Classification

Open Source Agenda Badge

Open Source Agenda Rating