devsonni / Chart-Classification-Using-CNN----Keras

This repository consists of models of CNN for classifying different types of charts. Moreover, it also includes script of fine-tuned VGG16 for this task. On top of that CradCAM implementation of fine-tuned VGG16.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convolution Nueral Network For Classification Of Charts

Task 1 & 2 : Image Sorting & Result of Trained Models

Image sorting

All charts transfered to Train/(spesific folder) as their labels and randomly 20% images transfered into validation folder. Also, images separated in test/(particular) folder, checkout mentioned structure.
This will make labling process much easier with the help of ImageDataGenerator function.

Model Results

Both Models trained for 10 epochs.
Model 1: 2, 2D Conl layers with 16- 3X3 & 32-3X3 filters, each has a MaxPooling layer of 2X2, got 97% accuracy for validation set, and 96% for test set. Saved Model, Script

Model 2: 2, 2D Conl layers with 32-3X3 & 64-3X3 filters, each has a MaxPooling layer of 2X2, got 98% accuracy for validation set, and 98% for test set. Saved Model, Script

CNNs works same as humas brains they did mistake in recognizing doted line and line, I think that was most difficult for them.

Task 3: Fine Tuning of Pretrained Models

Updated VGG16 pretrained award winning model. Where, I changed last 1000 layer prediction to 5 prediction and froze all the weights insted of last layer's weights and trained model for just 5 epochs, and got 100% accuracy for both validation and test sets.

Task 4: GradCAM

Dot Line

Line

Vertical Bar

Horizontal Bar

Pie

About

This repository consists of models of CNN for classifying different types of charts. Moreover, it also includes script of fine-tuned VGG16 for this task. On top of that CradCAM implementation of fine-tuned VGG16.


Languages

Language:Python 87.2%Language:C++ 10.4%Language:C 0.9%Language:HTML 0.6%Language:Cython 0.5%Language:NASL 0.2%Language:JavaScript 0.1%Language:TeX 0.0%Language:Fortran 0.0%Language:PowerShell 0.0%Language:Jupyter Notebook 0.0%Language:CSS 0.0%Language:Roff 0.0%Language:MATLAB 0.0%Language:Forth 0.0%Language:Batchfile 0.0%Language:Makefile 0.0%Language:Lua 0.0%