SlideShare une entreprise Scribd logo
1  sur  6
Télécharger pour lire hors ligne
An Analysis of Classification Techniques for Image
Orientation Classification
Problem Statement:
This is a straightforward image classification study to create and compare classifiers (KNN, Neural
Networks and Adaboost) that decide the correct orientation of a given image i.e. 0°, 90°, 180° 𝑜𝑜𝑜𝑜 270°
(as shown in figure 1).
𝟎𝟎° 𝟗𝟗𝟗𝟗° 𝟐𝟐𝟐𝟐𝟐𝟐° 𝟏𝟏𝟏𝟏𝟎𝟎°
Dataset:
The dataset is of images borrowed from Flickr photo sharing, taken and uploaded by real users from
across the world. Raw images are treated as a numerical feature by taking each n x m x 3 color image
and appending all of the rows together to produce a single vector of size 1x3mn, on which standard
machine learning techniques can be applied. Each image is rescaled to a very tiny "micro-thumbnail"
of 8x8 pixels, resulting in an 8x8x3 = 192 dimensional feature vector. The text files have one row per
image. The training dataset consists of about 10,000 images, while the test set contains about 1,000.
Classifiers:
1) Neural Network
A three layer (one hidden layer) feed forward neural network featuring Stochastic Gradient
Descent is implemented.
Data pre-processing: The data is normalized by dividing each data point by 255 followed by
subtraction with the mean and finally dividing by the standard deviation. It was clearly
observed that without this preprocessing step, the model was not able to perform (was
giving random accuracy) under any circumstances.
Parameters experimented with:
Step sizes: 0.1, 0.01, 0.0001
Activation functions: Sigmoid, tanh
No. of Hidden layer neurons: 10, 200, 600
Epochs: 1, 20, 50
Observations:
It was observed that the number of epochs did not enhance the accuracy by a noticeable
margin. Hence, the following results are shown for one epoch.
Activation
Function
Step
size
Number of
Hidden Layer
Neurons
Running
Time (sec)
Accuracy (%)
Sigmoid
0.1
10 14.72200012 67.126193
200 51.89700007 65.00530223
600 186.4519999 30.54082715
0.01
10 14.66200018 64.05090138
200 53.99899983 71.26193001
600 225.901 68.83775186
0.0001
10 14.50999999 44.22057264
200 54.28299999 58.53658537
600 185.635 61.82396607
Accuracies obtained with Sigmoid activation function
Activation
Function
Step
size
Number of
Hidden Layer
Neurons
Running
Time (sec)
Accuracy
(%)
tanh
0.1
10 13.59500003 56.81018028
200 42.16799998 38.38812301
600 154.8970001 50.26511135
0.01
10 13.94499993 63.30858961
200 42.95900011 64.58112407
600 167.5339999 62.88441145
0.0001
10 13.44700003 32.34358431
200 43.27499986 43.90243902
600 158.342 35.41887593
Accuracies obtained with tanh activation function
● Sigmoid activation function works better than tanh
● The error increases for very low or very high number of hidden layer neurons
● 0.01 was found to be the most effective in terms of accuracy
● The running time increases with the increase in the number of hidden layer neurons
● The accuracy for each run varies by approximately ± 5%.
The code was also run with random splits of the train set of varying percentages. Some
interesting observations were made as follows:
Percent of train
data set
Number of train
rows processes
Running Time
(sec)
Accuracy
(%)
0.5 184 9.460000038 43.69034995
2 739 9.905999899 60.65747614
10 3697 13.41300011 65.42948038
20 7395 18.37800002 68.82290562
30 11092 22.63999987 69.67126193
50 18488 30.99000001 69.88335101
80 29580 44.70600009 69.95917285
100 36976 63.12800002 72.11028632
It can be seen that with just 20% of randomly selected training data, almost 69% accuracy is
achieved which is very near to the accuracy obtained training on the entire train set.
Moreover, there is a huge difference between the time taken to train with 20% data and 100% data.
Conclusion:
As it can be observed from the above tables that for a three layer feed forward neural network
implementing Stochastic Gradient Descent, the following configuration is recommended:
Activation function: Sigmoid
Step size: 0.01
No. of Hidden layer neurons: 200
Accuracy obtained: 71.26193001%
Sample images classified correctly:
Sample images classified incorrectly:
2) KNN
Data pre-processing:
Normalization did not improve accuracy and took lot of time to run, so no preprocessing done.
Observations:
Below table has runtime and accuracy for different values of K.
K Accuracy Runtime (mins)
1 67.23 20.54
50 71.26 25.41
100 70.30 40.51
150 70.30 41.10
200 7.26 40.40
Below table has runtime, accuracy for varying amount of probability of choosing each record
in test.
Probability K Accuracy Runtime (mins)
0.25 200 68.92 10.34
0.5 200 70.83 20.55
1 200 70.26 40.40
Sample Images classified correctly:
Sample Images classified incorrectly:
Observations: k > 25 works giving less error. We would recommend working with K = 200;
keeping in mind that time to run KNN with K as 200 takes time similar to k as 1.
3) Adaboost
For each decision stump, best pair of features are chosen from 100 pairs to reduce computation
time. One vs all classifiers are implemented for multi class prediction among classes of 0, 90,
180, 270. In each decision stump, best attribute is determined based on the accuracy, number
of images are correctly classified.
Number of stumps Accuracy (%) Running Time (sec)
1 61 43.55
2 65.1
3 65.3 142.5
5 70 267.96
7 72.8 383.77
9 73.49 477.92
11 74.12 647.81
17 74.12 969.85
It is observed that, in each run with different number of stumps, most of the 270 orientation
images are failed to be predicted correctly.
In most circumstances, the 270 orientation is predicted as 180.
Percent
of train
data set
Number of train
rows processes
Running Time
(sec)
Accuracy (%)
50 18488 325 73.9
80 29580 630 73.7
100 36976 647.81 74.12
Sample Images classified correctly:
Sample Images classified incorrectly:
Best classifier:
Among all of the above classifiers, Adaboost with decision stumps performed better on the given
training and test data sets. Accuracy of 74.12 % is achieved for the 11 stumps.

Contenu connexe

Tendances

Removal of Gaussian noise on the image edges using the Prewitt operator and t...
Removal of Gaussian noise on the image edges using the Prewitt operator and t...Removal of Gaussian noise on the image edges using the Prewitt operator and t...
Removal of Gaussian noise on the image edges using the Prewitt operator and t...IOSR Journals
 
Human action recognition with kinect using a joint motion descriptor
Human action recognition with kinect using a joint motion descriptorHuman action recognition with kinect using a joint motion descriptor
Human action recognition with kinect using a joint motion descriptorSoma Boubou
 
Object Size Detector - Computer Vision
Object Size Detector - Computer VisionObject Size Detector - Computer Vision
Object Size Detector - Computer VisionShyama Bhuvanendran
 
OVERVIEW AND APPLICATION OF ENABLING TECHNOLOGIES ORIENTED ON ENERGY ROUTING ...
OVERVIEW AND APPLICATION OF ENABLING TECHNOLOGIES ORIENTED ON ENERGY ROUTING ...OVERVIEW AND APPLICATION OF ENABLING TECHNOLOGIES ORIENTED ON ENERGY ROUTING ...
OVERVIEW AND APPLICATION OF ENABLING TECHNOLOGIES ORIENTED ON ENERGY ROUTING ...ijaia
 
Massive Sensors Array for Precision Sensing
Massive Sensors Array for Precision SensingMassive Sensors Array for Precision Sensing
Massive Sensors Array for Precision Sensingoblu.io
 
Nuclear Material Verification Based on MCNP and ISOCSTM Techniques for Safegu...
Nuclear Material Verification Based on MCNP and ISOCSTM Techniques for Safegu...Nuclear Material Verification Based on MCNP and ISOCSTM Techniques for Safegu...
Nuclear Material Verification Based on MCNP and ISOCSTM Techniques for Safegu...IOSRJAP
 
Multi-core GPU – Fast parallel SAR image generation
Multi-core GPU – Fast parallel SAR image generationMulti-core GPU – Fast parallel SAR image generation
Multi-core GPU – Fast parallel SAR image generationMahesh Khadatare
 
TAMU MEEN 475 Term Project Presentation
TAMU MEEN 475 Term Project PresentationTAMU MEEN 475 Term Project Presentation
TAMU MEEN 475 Term Project PresentationKaitlinDwight
 
THE 3D MODELLING USING FRAME CAMERAS AND PANORAMIC CAMERA
THE 3D MODELLING USING FRAME CAMERAS AND PANORAMIC CAMERATHE 3D MODELLING USING FRAME CAMERAS AND PANORAMIC CAMERA
THE 3D MODELLING USING FRAME CAMERAS AND PANORAMIC CAMERANational Cheng Kung University
 
A (very brief) Introduction to Image Processing and 3D Printing with ImageJ
A (very brief) Introduction to Image Processing and 3D Printing with ImageJA (very brief) Introduction to Image Processing and 3D Printing with ImageJ
A (very brief) Introduction to Image Processing and 3D Printing with ImageJPaul Mignone, Ph.D
 
Inertial Sensor Array Calibration Made Easy !
Inertial Sensor Array Calibration Made Easy !Inertial Sensor Array Calibration Made Easy !
Inertial Sensor Array Calibration Made Easy !oblu.io
 
Infrared Thermometers-Mecoinst
Infrared Thermometers-MecoinstInfrared Thermometers-Mecoinst
Infrared Thermometers-Mecoinstmecoinst
 
Optical_Requirements_for_Orbital_Surveillance
Optical_Requirements_for_Orbital_SurveillanceOptical_Requirements_for_Orbital_Surveillance
Optical_Requirements_for_Orbital_SurveillanceMatt Vaughn
 
EUREKA Poster Andy Rosales Elias
EUREKA Poster Andy Rosales EliasEUREKA Poster Andy Rosales Elias
EUREKA Poster Andy Rosales EliasAndy Rosales-Elias
 
Human Action Recognition Using 3D Joint Information and HOOFD Features
Human Action Recognition Using 3D Joint Information and HOOFD FeaturesHuman Action Recognition Using 3D Joint Information and HOOFD Features
Human Action Recognition Using 3D Joint Information and HOOFD FeaturesBarış Üstündağ
 
Garbage Box: 3D Reconstruction and 4D Deformation Measurement
Garbage Box: 3D Reconstruction and 4D Deformation MeasurementGarbage Box: 3D Reconstruction and 4D Deformation Measurement
Garbage Box: 3D Reconstruction and 4D Deformation MeasurementNational Cheng Kung University
 
A Genetic Algorithm-Based Moving Object Detection For Real-Time Traffic Surv...
 A Genetic Algorithm-Based Moving Object Detection For Real-Time Traffic Surv... A Genetic Algorithm-Based Moving Object Detection For Real-Time Traffic Surv...
A Genetic Algorithm-Based Moving Object Detection For Real-Time Traffic Surv...Chennai Networks
 
ADAPTIVE FILTER FOR DENOISING 3D DATA CAPTURED BY DEPTH SENSORS
ADAPTIVE FILTER FOR DENOISING 3D DATA CAPTURED BY DEPTH SENSORSADAPTIVE FILTER FOR DENOISING 3D DATA CAPTURED BY DEPTH SENSORS
ADAPTIVE FILTER FOR DENOISING 3D DATA CAPTURED BY DEPTH SENSORSSoma Boubou
 

Tendances (19)

Removal of Gaussian noise on the image edges using the Prewitt operator and t...
Removal of Gaussian noise on the image edges using the Prewitt operator and t...Removal of Gaussian noise on the image edges using the Prewitt operator and t...
Removal of Gaussian noise on the image edges using the Prewitt operator and t...
 
Human action recognition with kinect using a joint motion descriptor
Human action recognition with kinect using a joint motion descriptorHuman action recognition with kinect using a joint motion descriptor
Human action recognition with kinect using a joint motion descriptor
 
Object Size Detector - Computer Vision
Object Size Detector - Computer VisionObject Size Detector - Computer Vision
Object Size Detector - Computer Vision
 
OVERVIEW AND APPLICATION OF ENABLING TECHNOLOGIES ORIENTED ON ENERGY ROUTING ...
OVERVIEW AND APPLICATION OF ENABLING TECHNOLOGIES ORIENTED ON ENERGY ROUTING ...OVERVIEW AND APPLICATION OF ENABLING TECHNOLOGIES ORIENTED ON ENERGY ROUTING ...
OVERVIEW AND APPLICATION OF ENABLING TECHNOLOGIES ORIENTED ON ENERGY ROUTING ...
 
Massive Sensors Array for Precision Sensing
Massive Sensors Array for Precision SensingMassive Sensors Array for Precision Sensing
Massive Sensors Array for Precision Sensing
 
Nuclear Material Verification Based on MCNP and ISOCSTM Techniques for Safegu...
Nuclear Material Verification Based on MCNP and ISOCSTM Techniques for Safegu...Nuclear Material Verification Based on MCNP and ISOCSTM Techniques for Safegu...
Nuclear Material Verification Based on MCNP and ISOCSTM Techniques for Safegu...
 
Multi-core GPU – Fast parallel SAR image generation
Multi-core GPU – Fast parallel SAR image generationMulti-core GPU – Fast parallel SAR image generation
Multi-core GPU – Fast parallel SAR image generation
 
TAMU MEEN 475 Term Project Presentation
TAMU MEEN 475 Term Project PresentationTAMU MEEN 475 Term Project Presentation
TAMU MEEN 475 Term Project Presentation
 
cs247 slides
cs247 slidescs247 slides
cs247 slides
 
THE 3D MODELLING USING FRAME CAMERAS AND PANORAMIC CAMERA
THE 3D MODELLING USING FRAME CAMERAS AND PANORAMIC CAMERATHE 3D MODELLING USING FRAME CAMERAS AND PANORAMIC CAMERA
THE 3D MODELLING USING FRAME CAMERAS AND PANORAMIC CAMERA
 
A (very brief) Introduction to Image Processing and 3D Printing with ImageJ
A (very brief) Introduction to Image Processing and 3D Printing with ImageJA (very brief) Introduction to Image Processing and 3D Printing with ImageJ
A (very brief) Introduction to Image Processing and 3D Printing with ImageJ
 
Inertial Sensor Array Calibration Made Easy !
Inertial Sensor Array Calibration Made Easy !Inertial Sensor Array Calibration Made Easy !
Inertial Sensor Array Calibration Made Easy !
 
Infrared Thermometers-Mecoinst
Infrared Thermometers-MecoinstInfrared Thermometers-Mecoinst
Infrared Thermometers-Mecoinst
 
Optical_Requirements_for_Orbital_Surveillance
Optical_Requirements_for_Orbital_SurveillanceOptical_Requirements_for_Orbital_Surveillance
Optical_Requirements_for_Orbital_Surveillance
 
EUREKA Poster Andy Rosales Elias
EUREKA Poster Andy Rosales EliasEUREKA Poster Andy Rosales Elias
EUREKA Poster Andy Rosales Elias
 
Human Action Recognition Using 3D Joint Information and HOOFD Features
Human Action Recognition Using 3D Joint Information and HOOFD FeaturesHuman Action Recognition Using 3D Joint Information and HOOFD Features
Human Action Recognition Using 3D Joint Information and HOOFD Features
 
Garbage Box: 3D Reconstruction and 4D Deformation Measurement
Garbage Box: 3D Reconstruction and 4D Deformation MeasurementGarbage Box: 3D Reconstruction and 4D Deformation Measurement
Garbage Box: 3D Reconstruction and 4D Deformation Measurement
 
A Genetic Algorithm-Based Moving Object Detection For Real-Time Traffic Surv...
 A Genetic Algorithm-Based Moving Object Detection For Real-Time Traffic Surv... A Genetic Algorithm-Based Moving Object Detection For Real-Time Traffic Surv...
A Genetic Algorithm-Based Moving Object Detection For Real-Time Traffic Surv...
 
ADAPTIVE FILTER FOR DENOISING 3D DATA CAPTURED BY DEPTH SENSORS
ADAPTIVE FILTER FOR DENOISING 3D DATA CAPTURED BY DEPTH SENSORSADAPTIVE FILTER FOR DENOISING 3D DATA CAPTURED BY DEPTH SENSORS
ADAPTIVE FILTER FOR DENOISING 3D DATA CAPTURED BY DEPTH SENSORS
 

Similaire à Image Orientation Classification Using Neural Networks, KNN and Adaboost

Enhancing the performance of kmeans algorithm
Enhancing the performance of kmeans algorithmEnhancing the performance of kmeans algorithm
Enhancing the performance of kmeans algorithmHadi Fadlallah
 
An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)Julien SIMON
 
An Introduction to Deep Learning with Apache MXNet (November 2017)
An Introduction to Deep Learning with Apache MXNet (November 2017)An Introduction to Deep Learning with Apache MXNet (November 2017)
An Introduction to Deep Learning with Apache MXNet (November 2017)Julien SIMON
 
JCM-6000_brochure
JCM-6000_brochureJCM-6000_brochure
JCM-6000_brochurePhil Wilson
 
Image processing
Image processingImage processing
Image processingkamal330
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
Image Classification
Image ClassificationImage Classification
Image ClassificationAnwar Jameel
 
Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...IJMER
 
Math in the News: Issue 87
Math in the News: Issue 87Math in the News: Issue 87
Math in the News: Issue 87Media4math
 
2018AOI論壇_深度學習於表面瑕疪檢測_元智大學蔡篤銘
2018AOI論壇_深度學習於表面瑕疪檢測_元智大學蔡篤銘2018AOI論壇_深度學習於表面瑕疪檢測_元智大學蔡篤銘
2018AOI論壇_深度學習於表面瑕疪檢測_元智大學蔡篤銘CHENHuiMei
 
[論文紹介] DPSNet: End-to-end Deep Plane Sweep Stereo
[論文紹介] DPSNet: End-to-end Deep Plane Sweep Stereo[論文紹介] DPSNet: End-to-end Deep Plane Sweep Stereo
[論文紹介] DPSNet: End-to-end Deep Plane Sweep StereoSeiya Ito
 
Realtime pothole detection system using improved CNN Models
Realtime pothole detection system using improved CNN ModelsRealtime pothole detection system using improved CNN Models
Realtime pothole detection system using improved CNN Modelsnithinsai2992
 
IRJET - Hand Gesture Recognition to Perform System Operations
IRJET -  	  Hand Gesture Recognition to Perform System OperationsIRJET -  	  Hand Gesture Recognition to Perform System Operations
IRJET - Hand Gesture Recognition to Perform System OperationsIRJET Journal
 
Scan Segmentation Approach to Magnify Detection Sensitivity for Tiny Hardware...
Scan Segmentation Approach to Magnify Detection Sensitivity for Tiny Hardware...Scan Segmentation Approach to Magnify Detection Sensitivity for Tiny Hardware...
Scan Segmentation Approach to Magnify Detection Sensitivity for Tiny Hardware...奈良先端大 情報科学研究科
 
Performance of uncorrupted pixel count decision based
Performance of uncorrupted pixel count decision basedPerformance of uncorrupted pixel count decision based
Performance of uncorrupted pixel count decision basedeSAT Publishing House
 
Deep Learning for Developers (October 2017)
Deep Learning for Developers (October 2017)Deep Learning for Developers (October 2017)
Deep Learning for Developers (October 2017)Julien SIMON
 

Similaire à Image Orientation Classification Using Neural Networks, KNN and Adaboost (20)

Enhancing the performance of kmeans algorithm
Enhancing the performance of kmeans algorithmEnhancing the performance of kmeans algorithm
Enhancing the performance of kmeans algorithm
 
poster
posterposter
poster
 
An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)
 
Steganography Part 2
Steganography Part 2Steganography Part 2
Steganography Part 2
 
An Introduction to Deep Learning with Apache MXNet (November 2017)
An Introduction to Deep Learning with Apache MXNet (November 2017)An Introduction to Deep Learning with Apache MXNet (November 2017)
An Introduction to Deep Learning with Apache MXNet (November 2017)
 
JCM-6000_brochure
JCM-6000_brochureJCM-6000_brochure
JCM-6000_brochure
 
Image processing
Image processingImage processing
Image processing
 
Digital.cc
Digital.ccDigital.cc
Digital.cc
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Image Classification
Image ClassificationImage Classification
Image Classification
 
Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...
 
Math in the News: Issue 87
Math in the News: Issue 87Math in the News: Issue 87
Math in the News: Issue 87
 
2018AOI論壇_深度學習於表面瑕疪檢測_元智大學蔡篤銘
2018AOI論壇_深度學習於表面瑕疪檢測_元智大學蔡篤銘2018AOI論壇_深度學習於表面瑕疪檢測_元智大學蔡篤銘
2018AOI論壇_深度學習於表面瑕疪檢測_元智大學蔡篤銘
 
Neural networks
Neural networksNeural networks
Neural networks
 
[論文紹介] DPSNet: End-to-end Deep Plane Sweep Stereo
[論文紹介] DPSNet: End-to-end Deep Plane Sweep Stereo[論文紹介] DPSNet: End-to-end Deep Plane Sweep Stereo
[論文紹介] DPSNet: End-to-end Deep Plane Sweep Stereo
 
Realtime pothole detection system using improved CNN Models
Realtime pothole detection system using improved CNN ModelsRealtime pothole detection system using improved CNN Models
Realtime pothole detection system using improved CNN Models
 
IRJET - Hand Gesture Recognition to Perform System Operations
IRJET -  	  Hand Gesture Recognition to Perform System OperationsIRJET -  	  Hand Gesture Recognition to Perform System Operations
IRJET - Hand Gesture Recognition to Perform System Operations
 
Scan Segmentation Approach to Magnify Detection Sensitivity for Tiny Hardware...
Scan Segmentation Approach to Magnify Detection Sensitivity for Tiny Hardware...Scan Segmentation Approach to Magnify Detection Sensitivity for Tiny Hardware...
Scan Segmentation Approach to Magnify Detection Sensitivity for Tiny Hardware...
 
Performance of uncorrupted pixel count decision based
Performance of uncorrupted pixel count decision basedPerformance of uncorrupted pixel count decision based
Performance of uncorrupted pixel count decision based
 
Deep Learning for Developers (October 2017)
Deep Learning for Developers (October 2017)Deep Learning for Developers (October 2017)
Deep Learning for Developers (October 2017)
 

Dernier

BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...shivangimorya083
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 

Dernier (20)

BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 

Image Orientation Classification Using Neural Networks, KNN and Adaboost

  • 1. An Analysis of Classification Techniques for Image Orientation Classification Problem Statement: This is a straightforward image classification study to create and compare classifiers (KNN, Neural Networks and Adaboost) that decide the correct orientation of a given image i.e. 0°, 90°, 180° 𝑜𝑜𝑜𝑜 270° (as shown in figure 1). 𝟎𝟎° 𝟗𝟗𝟗𝟗° 𝟐𝟐𝟐𝟐𝟐𝟐° 𝟏𝟏𝟏𝟏𝟎𝟎° Dataset: The dataset is of images borrowed from Flickr photo sharing, taken and uploaded by real users from across the world. Raw images are treated as a numerical feature by taking each n x m x 3 color image and appending all of the rows together to produce a single vector of size 1x3mn, on which standard machine learning techniques can be applied. Each image is rescaled to a very tiny "micro-thumbnail" of 8x8 pixels, resulting in an 8x8x3 = 192 dimensional feature vector. The text files have one row per image. The training dataset consists of about 10,000 images, while the test set contains about 1,000. Classifiers: 1) Neural Network A three layer (one hidden layer) feed forward neural network featuring Stochastic Gradient Descent is implemented. Data pre-processing: The data is normalized by dividing each data point by 255 followed by subtraction with the mean and finally dividing by the standard deviation. It was clearly observed that without this preprocessing step, the model was not able to perform (was giving random accuracy) under any circumstances. Parameters experimented with: Step sizes: 0.1, 0.01, 0.0001 Activation functions: Sigmoid, tanh No. of Hidden layer neurons: 10, 200, 600 Epochs: 1, 20, 50 Observations: It was observed that the number of epochs did not enhance the accuracy by a noticeable margin. Hence, the following results are shown for one epoch.
  • 2. Activation Function Step size Number of Hidden Layer Neurons Running Time (sec) Accuracy (%) Sigmoid 0.1 10 14.72200012 67.126193 200 51.89700007 65.00530223 600 186.4519999 30.54082715 0.01 10 14.66200018 64.05090138 200 53.99899983 71.26193001 600 225.901 68.83775186 0.0001 10 14.50999999 44.22057264 200 54.28299999 58.53658537 600 185.635 61.82396607 Accuracies obtained with Sigmoid activation function Activation Function Step size Number of Hidden Layer Neurons Running Time (sec) Accuracy (%) tanh 0.1 10 13.59500003 56.81018028 200 42.16799998 38.38812301 600 154.8970001 50.26511135 0.01 10 13.94499993 63.30858961 200 42.95900011 64.58112407 600 167.5339999 62.88441145 0.0001 10 13.44700003 32.34358431 200 43.27499986 43.90243902 600 158.342 35.41887593 Accuracies obtained with tanh activation function ● Sigmoid activation function works better than tanh ● The error increases for very low or very high number of hidden layer neurons ● 0.01 was found to be the most effective in terms of accuracy ● The running time increases with the increase in the number of hidden layer neurons ● The accuracy for each run varies by approximately ± 5%.
  • 3. The code was also run with random splits of the train set of varying percentages. Some interesting observations were made as follows: Percent of train data set Number of train rows processes Running Time (sec) Accuracy (%) 0.5 184 9.460000038 43.69034995 2 739 9.905999899 60.65747614 10 3697 13.41300011 65.42948038 20 7395 18.37800002 68.82290562 30 11092 22.63999987 69.67126193 50 18488 30.99000001 69.88335101 80 29580 44.70600009 69.95917285 100 36976 63.12800002 72.11028632 It can be seen that with just 20% of randomly selected training data, almost 69% accuracy is achieved which is very near to the accuracy obtained training on the entire train set. Moreover, there is a huge difference between the time taken to train with 20% data and 100% data. Conclusion: As it can be observed from the above tables that for a three layer feed forward neural network implementing Stochastic Gradient Descent, the following configuration is recommended: Activation function: Sigmoid Step size: 0.01 No. of Hidden layer neurons: 200 Accuracy obtained: 71.26193001% Sample images classified correctly:
  • 4. Sample images classified incorrectly: 2) KNN Data pre-processing: Normalization did not improve accuracy and took lot of time to run, so no preprocessing done. Observations: Below table has runtime and accuracy for different values of K. K Accuracy Runtime (mins) 1 67.23 20.54 50 71.26 25.41 100 70.30 40.51 150 70.30 41.10 200 7.26 40.40 Below table has runtime, accuracy for varying amount of probability of choosing each record in test. Probability K Accuracy Runtime (mins) 0.25 200 68.92 10.34 0.5 200 70.83 20.55 1 200 70.26 40.40 Sample Images classified correctly:
  • 5. Sample Images classified incorrectly: Observations: k > 25 works giving less error. We would recommend working with K = 200; keeping in mind that time to run KNN with K as 200 takes time similar to k as 1. 3) Adaboost For each decision stump, best pair of features are chosen from 100 pairs to reduce computation time. One vs all classifiers are implemented for multi class prediction among classes of 0, 90, 180, 270. In each decision stump, best attribute is determined based on the accuracy, number of images are correctly classified. Number of stumps Accuracy (%) Running Time (sec) 1 61 43.55 2 65.1 3 65.3 142.5 5 70 267.96 7 72.8 383.77 9 73.49 477.92 11 74.12 647.81 17 74.12 969.85 It is observed that, in each run with different number of stumps, most of the 270 orientation images are failed to be predicted correctly. In most circumstances, the 270 orientation is predicted as 180.
  • 6. Percent of train data set Number of train rows processes Running Time (sec) Accuracy (%) 50 18488 325 73.9 80 29580 630 73.7 100 36976 647.81 74.12 Sample Images classified correctly: Sample Images classified incorrectly: Best classifier: Among all of the above classifiers, Adaboost with decision stumps performed better on the given training and test data sets. Accuracy of 74.12 % is achieved for the 11 stumps.