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

Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Colleen Farrelly
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectBoston Institute of Analytics
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfchwongval
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryJeremy Anderson
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 

Dernier (20)

Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis Project
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdf
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data Story
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
 

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.