SlideShare a Scribd company logo
1 of 18
Department of Computer Science & Engineering
Sikkim Manipal Institute of Technology
A PRESENTATION ON
MACHINE LEARNING IN IMAGE PROCESSING FOR FACE DETECTION USING
HISTOGRAM OF ORIENTED GRADIENTS
BY
VISHAL SRIVASTAVA
CSE 7TH SEM. SEC ‘A’
REG. NO : 20130226
UNDER THE GUIDANCE OF:
PROF. RAJIB GHOSH
ASSISNTANT PROFESSOR
NATIONAL INSTITUTE OF TECHNOLOGY PATNA
DONE AS A PART OF SUMMER INTERNSHIP PROGRAM AT NIT PATNA
ABSTRACT
• With the advent of devices that penetrate every aspect of our daily lives, it’s
very important to ensure maximum security when it comes to authentication
of devices as well as for identity purposes. Machine Learning in Facial
Recognition Systems is a very important aspect for identifying individuals as
well as in identity and authentication purposes. It has vast applications in
surveillance systems, mobile authentication and individual identity revelation
and confirmation.
INTRODUCTION
• Face Recognition is a part of object and pattern recognition where objects are classified
using a particular feature and a model is prepared for the same. Depending on the feature
being used for the model, templates for that particular object are created which act as a
standard in isolating the object under considering from a given image.
• In this project, we shall deal with HOG features, i.e., Histogram of Oriented Gradients
features which is discussed latter in details.
• The project can be sub-categorized into the following parts:
• Selecting the feature to be extracted
• Collecting image samples & preprocessing them
• Extract the features required
• Train the model
• Match components with query image
• Display Closest match
OVERVIEW
LITERATURE SURVEY
• Bin Lia, Guang Huo recently illustrated the mechanism of face detection and recognition using
Locality Sensitive Histogram of Oriented Gradients (LSHOG). They proposed that the traditional
histograms of oriented gradients (HOG) divide an image into many cells, and computed a histogram
of gradient orientations over each cell.
• First, we use LSHOG to extract feature vectors of face images. Then, to show how different
dimension reduction algorithms affect recognition accuracy, we choose several typical dimension
reduction algorithms to reduce the dimensions of feature vectors of face images. They evaluated
LSHOG and our proposed face recognition method on four benchmark face databases.
Experimental results verify the feasibility and effectiveness of LSHOG and our face recognition
method.
DATASET
• The database consists of 40 different individuals where there are 10 samples of non-standard RGB
images per person. The individuals are marked from 1 to 40 and their samples are marked 1 to 10.
These images are then further subjected to preprocessing softwares and algorithms to convert
them into standard images.
TRAINING AND TEST DATA SET
• The most important part for preparing a learning model is training the classifier.
• The database is partitioned into 2 parts as:
• Training Set (80 %)
• Testing Set (20 %)
• This means that 80 % of the data (images) of every individual are used for preparing the training
data-set and rest 20 % is used for testing the Algorithm.
PRE-PROCESSING OF DATA
FEATURE EXTRACTION AND TRAINING
EXTRACTING HOG FEATURES
The Computer Vision API for MATLAB provides for
the necessary tools the extract the HOG Features
for a given Image sample. Following is the Code
with the detailed explanation for the same.
extractHOGFeatures
• Extract histogram of oriented gradients (HOG)
features
• o Syntax
• features = extractHOGFeatures(I)
• [features,validPoints] =
extractHOGFeatures(I,points)
• [___, visualization] =
extractHOGFeatures(I,___)
• [___] = extractHOGFeatures(___,Name,Value)
TRAINING & PARTITIONING
• The most important part for preparing a learning model is training the classifier.
• The database is partitioned into 2 parts as:
• Training Set (80 %)
• Testing Set (20 %)
• This means that 80 % of the data (images) of every individual are used for preparing the training
data-set and rest 20 % is used for testing the Algorithm.
• The following code illustrates the portioning of the database:
• % Splitting database in Training Sets & Test Sets
• [training,test]=partition(facedatabase,[0.8 0.2]);
CLASSIFICATION
• The choice of model is a very sensitive topic as it determines the accuracy of the algorithm which
we are implementing.
• In this case we are using ‘fitcecoc’ classifier which is the Fit multiclass models for support vector
machines or other classifiers: SYNTAX:
faceClassifier=fitcecoc(trainingFeatures,trainingLabel);
FEATURE VECTOR
The result of the above code is a 2-D
Matrix , i.e., The training feature vector
which looks like as shown below:
RECOGNITION
• Once the model is prepared and ready the testing phase is carried out. This is done using the Test
Data-Set that we had earlier partitioned during initial stages. Several Test samples are taken as
query images whose HOG features are extracted and then it is looped through to find the best
matched class for the given input.
• The sample results are illustrated:
CASE 1: CORRECT MATCH
CASE 2: INCORRECT MATCH
RESULTS AND ANALYSIS USING SVM
• SUPPORT VECTOR MACHINE
• Support vector machines (SVMs) are supervised learning models with associated learning
algorithms that analyze data used for classification and regression analysis. Given a set of
training examples, each marked for belonging to one of two categories, an SVM training
algorithm builds a model that assigns new examples into one category or the other, making it a
non-probabilistic binary linear classifier. An SVM model is a representation of the examples as
points in space, mapped so that the examples of the separate categories are divided by a clear
gap that is as wide as possible. New examples are then mapped into that same space and
predicted to belong to a category based on which side of the gap they fall on.
• USING libsvm (SVM Library)
• The predictive analysis is carried out using libsvm. The training & test feature vectors are
converted into suitable format before carrying out further processing using code. We have 400
image samples, with each image having a feature vector of size 4680, analysis was carried out
and results are shown later below.
• Proper scaling of training feature vector gives us more accurate results.
• The Analysis is done in 3 steps:
• Scaling
• Training
• Prediction
SCALING
• Syntax:
• svm-scale –l <lower bound> -u <upper bound> -s abc TrainSet.dat > ScaledSet
• Fig: 8.1 Scaling the Trained & Test Data Set
TRAINING
• Syntax: svm-train TrainedData.dat
• Fig:
PREDICTION AND ACCURACY:
• Syntax: svm-predict test_data.dat trained_data.model a.out
• Fig:
REFERENCES
• Face recognition using locality sensitive histograms of orientedgradientsBin Lia,∗, Guang
HuobaSchool of Information Engineering, Northeast Dianli University.
• I.T. Jolliffe, Principal Component Analysis, Springer-Verlag, New York, 1989.
• H. Yu, J. Yang, A direct LDA algorithm for high dimensional data with applicationto face
recognition, Pattern Recognit. 34 (2001) 2067–2070.
• Face Recognition Algorithms, Proyecto Fin de Carrera, June 16, Ion Marqu´es,
• http://www.intechopen.com/books/face-recognition/feature-extraction-and-representation-for-
face-recognition
• http:// Wikipedia.org/wiki/Support-vector-machine
• http://scholastictutors.webs.com
THANK YOU

More Related Content

What's hot

RapidMiner: Learning Schemes In Rapid Miner
RapidMiner:  Learning Schemes In Rapid MinerRapidMiner:  Learning Schemes In Rapid Miner
RapidMiner: Learning Schemes In Rapid MinerDataminingTools Inc
 
Slide 1
Slide 1Slide 1
Slide 1butest
 
Overview of machine learning
Overview of machine learningOverview of machine learning
Overview of machine learningAhmedHany131
 
Supervised Unsupervised and Reinforcement Learning
Supervised Unsupervised and Reinforcement Learning Supervised Unsupervised and Reinforcement Learning
Supervised Unsupervised and Reinforcement Learning Aakash Chotrani
 
An introduction to variable and feature selection
An introduction to variable and feature selectionAn introduction to variable and feature selection
An introduction to variable and feature selectionMarco Meoni
 
Optimization Technique for Feature Selection and Classification Using Support...
Optimization Technique for Feature Selection and Classification Using Support...Optimization Technique for Feature Selection and Classification Using Support...
Optimization Technique for Feature Selection and Classification Using Support...IJTET Journal
 
Machine learning ICT
Machine learning ICTMachine learning ICT
Machine learning ICTMaheenDilawar
 
A Study on Machine Learning and Its Working
A Study on Machine Learning and Its WorkingA Study on Machine Learning and Its Working
A Study on Machine Learning and Its WorkingIJMTST Journal
 
IRJET- Face Detection and Recognition using OpenCV
IRJET- Face Detection and Recognition using OpenCVIRJET- Face Detection and Recognition using OpenCV
IRJET- Face Detection and Recognition using OpenCVIRJET Journal
 
Machine learning ppt
Machine learning ppt Machine learning ppt
Machine learning ppt Poojamanic
 
Machine learning project_promotion
Machine learning project_promotionMachine learning project_promotion
Machine learning project_promotionkahhuey
 
Machine learning - session 4
Machine learning - session 4Machine learning - session 4
Machine learning - session 4Luis Borbon
 
IRJET - Smart Vet Locator for Hybrid Pets
IRJET -  	  Smart Vet Locator for Hybrid PetsIRJET -  	  Smart Vet Locator for Hybrid Pets
IRJET - Smart Vet Locator for Hybrid PetsIRJET Journal
 
A Review on Feature Selection Methods For Classification Tasks
A Review on Feature Selection Methods For Classification TasksA Review on Feature Selection Methods For Classification Tasks
A Review on Feature Selection Methods For Classification TasksEditor IJCATR
 
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019Steering Model Selection with Visual Diagnostics: Women in Analytics 2019
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019Rebecca Bilbro
 
Short Story Submission on Meta Learning
Short Story Submission on Meta LearningShort Story Submission on Meta Learning
Short Story Submission on Meta Learningatulshah16
 
IRJET- Survey on Face Recognition using Biometrics
IRJET-  	  Survey on Face Recognition using BiometricsIRJET-  	  Survey on Face Recognition using Biometrics
IRJET- Survey on Face Recognition using BiometricsIRJET Journal
 

What's hot (20)

RapidMiner: Learning Schemes In Rapid Miner
RapidMiner:  Learning Schemes In Rapid MinerRapidMiner:  Learning Schemes In Rapid Miner
RapidMiner: Learning Schemes In Rapid Miner
 
Slide 1
Slide 1Slide 1
Slide 1
 
Overview of machine learning
Overview of machine learningOverview of machine learning
Overview of machine learning
 
Supervised Unsupervised and Reinforcement Learning
Supervised Unsupervised and Reinforcement Learning Supervised Unsupervised and Reinforcement Learning
Supervised Unsupervised and Reinforcement Learning
 
An introduction to variable and feature selection
An introduction to variable and feature selectionAn introduction to variable and feature selection
An introduction to variable and feature selection
 
Optimization Technique for Feature Selection and Classification Using Support...
Optimization Technique for Feature Selection and Classification Using Support...Optimization Technique for Feature Selection and Classification Using Support...
Optimization Technique for Feature Selection and Classification Using Support...
 
Machine learning ICT
Machine learning ICTMachine learning ICT
Machine learning ICT
 
A Study on Machine Learning and Its Working
A Study on Machine Learning and Its WorkingA Study on Machine Learning and Its Working
A Study on Machine Learning and Its Working
 
Machine Learning by Rj
Machine Learning by RjMachine Learning by Rj
Machine Learning by Rj
 
IRJET- Face Detection and Recognition using OpenCV
IRJET- Face Detection and Recognition using OpenCVIRJET- Face Detection and Recognition using OpenCV
IRJET- Face Detection and Recognition using OpenCV
 
Machine learning ppt
Machine learning ppt Machine learning ppt
Machine learning ppt
 
Machine learning project_promotion
Machine learning project_promotionMachine learning project_promotion
Machine learning project_promotion
 
Machine learning - session 4
Machine learning - session 4Machine learning - session 4
Machine learning - session 4
 
IRJET - Smart Vet Locator for Hybrid Pets
IRJET -  	  Smart Vet Locator for Hybrid PetsIRJET -  	  Smart Vet Locator for Hybrid Pets
IRJET - Smart Vet Locator for Hybrid Pets
 
A Review on Feature Selection Methods For Classification Tasks
A Review on Feature Selection Methods For Classification TasksA Review on Feature Selection Methods For Classification Tasks
A Review on Feature Selection Methods For Classification Tasks
 
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019Steering Model Selection with Visual Diagnostics: Women in Analytics 2019
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019
 
Short Story Submission on Meta Learning
Short Story Submission on Meta LearningShort Story Submission on Meta Learning
Short Story Submission on Meta Learning
 
Machine learning
Machine learningMachine learning
Machine learning
 
Machine learning
Machine learningMachine learning
Machine learning
 
IRJET- Survey on Face Recognition using Biometrics
IRJET-  	  Survey on Face Recognition using BiometricsIRJET-  	  Survey on Face Recognition using Biometrics
IRJET- Survey on Face Recognition using Biometrics
 

Viewers also liked

Service Presentation
Service PresentationService Presentation
Service PresentationPhilton
 
Nutikonverents: Oliver Ojamaa slaid
Nutikonverents: Oliver Ojamaa slaidNutikonverents: Oliver Ojamaa slaid
Nutikonverents: Oliver Ojamaa slaidJCI Tallinn
 
CRTC Dec 2006 - Commercial Radio Policy 2006 Doc 137, 140, 144
CRTC Dec 2006 - Commercial Radio Policy  2006 Doc 137, 140, 144CRTC Dec 2006 - Commercial Radio Policy  2006 Doc 137, 140, 144
CRTC Dec 2006 - Commercial Radio Policy 2006 Doc 137, 140, 144Magda de la Torre
 
Rome P Pt
Rome P PtRome P Pt
Rome P Ptecover
 
Grafico semanal del ibex 35 para el 13 04 2012
Grafico semanal del ibex 35 para el 13 04 2012Grafico semanal del ibex 35 para el 13 04 2012
Grafico semanal del ibex 35 para el 13 04 2012Experiencia Trading
 
TNT Tony - Iraqi Dinar Guru Scam - Court Sentencing Transcript
TNT Tony - Iraqi Dinar Guru Scam - Court Sentencing TranscriptTNT Tony - Iraqi Dinar Guru Scam - Court Sentencing Transcript
TNT Tony - Iraqi Dinar Guru Scam - Court Sentencing TranscriptIraqi Dinar News
 
Vértigo (4) terminado laura y martha
Vértigo (4) terminado laura y marthaVértigo (4) terminado laura y martha
Vértigo (4) terminado laura y martha3334955717
 

Viewers also liked (15)

Service Presentation
Service PresentationService Presentation
Service Presentation
 
Nutikonverents: Oliver Ojamaa slaid
Nutikonverents: Oliver Ojamaa slaidNutikonverents: Oliver Ojamaa slaid
Nutikonverents: Oliver Ojamaa slaid
 
CRTC Dec 2006 - Commercial Radio Policy 2006 Doc 137, 140, 144
CRTC Dec 2006 - Commercial Radio Policy  2006 Doc 137, 140, 144CRTC Dec 2006 - Commercial Radio Policy  2006 Doc 137, 140, 144
CRTC Dec 2006 - Commercial Radio Policy 2006 Doc 137, 140, 144
 
Bañera 1
Bañera 1Bañera 1
Bañera 1
 
Swimming
SwimmingSwimming
Swimming
 
Akon
AkonAkon
Akon
 
ERINMALONEY
ERINMALONEYERINMALONEY
ERINMALONEY
 
Rome P Pt
Rome P PtRome P Pt
Rome P Pt
 
Grafico semanal del ibex 35 para el 13 04 2012
Grafico semanal del ibex 35 para el 13 04 2012Grafico semanal del ibex 35 para el 13 04 2012
Grafico semanal del ibex 35 para el 13 04 2012
 
Business Plan
Business PlanBusiness Plan
Business Plan
 
TNT Tony - Iraqi Dinar Guru Scam - Court Sentencing Transcript
TNT Tony - Iraqi Dinar Guru Scam - Court Sentencing TranscriptTNT Tony - Iraqi Dinar Guru Scam - Court Sentencing Transcript
TNT Tony - Iraqi Dinar Guru Scam - Court Sentencing Transcript
 
Financial stability
Financial stabilityFinancial stability
Financial stability
 
Deal Making Strategy
Deal Making StrategyDeal Making Strategy
Deal Making Strategy
 
Vértigo (4) terminado laura y martha
Vértigo (4) terminado laura y marthaVértigo (4) terminado laura y martha
Vértigo (4) terminado laura y martha
 
Gen Y: Like? Unlike?
Gen Y: Like? Unlike? Gen Y: Like? Unlike?
Gen Y: Like? Unlike?
 

Similar to Machine Learning Face Detection Using HOG Features

IRJET - Finger Vein Extraction and Authentication System for ATM
IRJET -  	  Finger Vein Extraction and Authentication System for ATMIRJET -  	  Finger Vein Extraction and Authentication System for ATM
IRJET - Finger Vein Extraction and Authentication System for ATMIRJET Journal
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptxnarmeen11
 
Predicting Employee Attrition
Predicting Employee AttritionPredicting Employee Attrition
Predicting Employee AttritionShruti Mohan
 
IRJET- Automated CV Classification using Clustering Technique
IRJET- Automated CV Classification using Clustering TechniqueIRJET- Automated CV Classification using Clustering Technique
IRJET- Automated CV Classification using Clustering TechniqueIRJET Journal
 
A DEEP LEARNING APPROACH FOR SEMANTIC SEGMENTATION IN BRAIN TUMOR IMAGES
A DEEP LEARNING APPROACH FOR SEMANTIC SEGMENTATION IN BRAIN TUMOR IMAGESA DEEP LEARNING APPROACH FOR SEMANTIC SEGMENTATION IN BRAIN TUMOR IMAGES
A DEEP LEARNING APPROACH FOR SEMANTIC SEGMENTATION IN BRAIN TUMOR IMAGESPNandaSai
 
IRJET- Deep Learning Model to Predict Hardware Performance
IRJET- Deep Learning Model to Predict Hardware PerformanceIRJET- Deep Learning Model to Predict Hardware Performance
IRJET- Deep Learning Model to Predict Hardware PerformanceIRJET Journal
 
IRJET- Analysis of PV Fed Vector Controlled Induction Motor Drive
IRJET- Analysis of PV Fed Vector Controlled Induction Motor DriveIRJET- Analysis of PV Fed Vector Controlled Induction Motor Drive
IRJET- Analysis of PV Fed Vector Controlled Induction Motor DriveIRJET Journal
 
A Real Time Advance Automated Attendance System using Face-Net Algorithm
A Real Time Advance Automated Attendance System using Face-Net AlgorithmA Real Time Advance Automated Attendance System using Face-Net Algorithm
A Real Time Advance Automated Attendance System using Face-Net AlgorithmIRJET Journal
 
Automated_attendance_system_project.pptx
Automated_attendance_system_project.pptxAutomated_attendance_system_project.pptx
Automated_attendance_system_project.pptxNaveensai51
 
Attendance System using Facial Recognition
Attendance System using Facial RecognitionAttendance System using Facial Recognition
Attendance System using Facial RecognitionIRJET Journal
 
IRJET- Semantic Analysis of Online Customer Queries
IRJET-  	  Semantic Analysis of Online Customer QueriesIRJET-  	  Semantic Analysis of Online Customer Queries
IRJET- Semantic Analysis of Online Customer QueriesIRJET Journal
 
IRJET- Class Attendance using Face Detection and Recognition with OPENCV
IRJET- Class Attendance using Face Detection and Recognition with OPENCVIRJET- Class Attendance using Face Detection and Recognition with OPENCV
IRJET- Class Attendance using Face Detection and Recognition with OPENCVIRJET Journal
 
Email Spam Detection Using Machine Learning
Email Spam Detection Using Machine LearningEmail Spam Detection Using Machine Learning
Email Spam Detection Using Machine LearningIRJET Journal
 
Customer Churn Analytics using Microsoft R Open
Customer Churn Analytics using Microsoft R OpenCustomer Churn Analytics using Microsoft R Open
Customer Churn Analytics using Microsoft R OpenPoo Kuan Hoong
 
IRJET- Document Layout analysis using Inverse Support Vector Machine (I-SV...
IRJET- 	  Document Layout analysis using Inverse Support Vector Machine (I-SV...IRJET- 	  Document Layout analysis using Inverse Support Vector Machine (I-SV...
IRJET- Document Layout analysis using Inverse Support Vector Machine (I-SV...IRJET Journal
 
Document Layout analysis using Inverse Support Vector Machine (I-SVM) for Hin...
Document Layout analysis using Inverse Support Vector Machine (I-SVM) for Hin...Document Layout analysis using Inverse Support Vector Machine (I-SVM) for Hin...
Document Layout analysis using Inverse Support Vector Machine (I-SVM) for Hin...IRJET Journal
 
Analysis on Fraud Detection Mechanisms Using Machine Learning Techniques
Analysis on Fraud Detection Mechanisms Using Machine Learning TechniquesAnalysis on Fraud Detection Mechanisms Using Machine Learning Techniques
Analysis on Fraud Detection Mechanisms Using Machine Learning TechniquesIRJET Journal
 
IRJET- Analysis of Face Recognition using Docface+ Selfie Matching
IRJET-  	  Analysis of Face Recognition using Docface+ Selfie MatchingIRJET-  	  Analysis of Face Recognition using Docface+ Selfie Matching
IRJET- Analysis of Face Recognition using Docface+ Selfie MatchingIRJET Journal
 
IRJET- Face Recognition of Criminals for Security using Principal Component A...
IRJET- Face Recognition of Criminals for Security using Principal Component A...IRJET- Face Recognition of Criminals for Security using Principal Component A...
IRJET- Face Recognition of Criminals for Security using Principal Component A...IRJET Journal
 

Similar to Machine Learning Face Detection Using HOG Features (20)

IRJET - Finger Vein Extraction and Authentication System for ATM
IRJET -  	  Finger Vein Extraction and Authentication System for ATMIRJET -  	  Finger Vein Extraction and Authentication System for ATM
IRJET - Finger Vein Extraction and Authentication System for ATM
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
Predicting Employee Attrition
Predicting Employee AttritionPredicting Employee Attrition
Predicting Employee Attrition
 
IRJET- Automated CV Classification using Clustering Technique
IRJET- Automated CV Classification using Clustering TechniqueIRJET- Automated CV Classification using Clustering Technique
IRJET- Automated CV Classification using Clustering Technique
 
Rapid Miner
Rapid MinerRapid Miner
Rapid Miner
 
A DEEP LEARNING APPROACH FOR SEMANTIC SEGMENTATION IN BRAIN TUMOR IMAGES
A DEEP LEARNING APPROACH FOR SEMANTIC SEGMENTATION IN BRAIN TUMOR IMAGESA DEEP LEARNING APPROACH FOR SEMANTIC SEGMENTATION IN BRAIN TUMOR IMAGES
A DEEP LEARNING APPROACH FOR SEMANTIC SEGMENTATION IN BRAIN TUMOR IMAGES
 
IRJET- Deep Learning Model to Predict Hardware Performance
IRJET- Deep Learning Model to Predict Hardware PerformanceIRJET- Deep Learning Model to Predict Hardware Performance
IRJET- Deep Learning Model to Predict Hardware Performance
 
IRJET- Analysis of PV Fed Vector Controlled Induction Motor Drive
IRJET- Analysis of PV Fed Vector Controlled Induction Motor DriveIRJET- Analysis of PV Fed Vector Controlled Induction Motor Drive
IRJET- Analysis of PV Fed Vector Controlled Induction Motor Drive
 
A Real Time Advance Automated Attendance System using Face-Net Algorithm
A Real Time Advance Automated Attendance System using Face-Net AlgorithmA Real Time Advance Automated Attendance System using Face-Net Algorithm
A Real Time Advance Automated Attendance System using Face-Net Algorithm
 
Automated_attendance_system_project.pptx
Automated_attendance_system_project.pptxAutomated_attendance_system_project.pptx
Automated_attendance_system_project.pptx
 
Attendance System using Facial Recognition
Attendance System using Facial RecognitionAttendance System using Facial Recognition
Attendance System using Facial Recognition
 
IRJET- Semantic Analysis of Online Customer Queries
IRJET-  	  Semantic Analysis of Online Customer QueriesIRJET-  	  Semantic Analysis of Online Customer Queries
IRJET- Semantic Analysis of Online Customer Queries
 
IRJET- Class Attendance using Face Detection and Recognition with OPENCV
IRJET- Class Attendance using Face Detection and Recognition with OPENCVIRJET- Class Attendance using Face Detection and Recognition with OPENCV
IRJET- Class Attendance using Face Detection and Recognition with OPENCV
 
Email Spam Detection Using Machine Learning
Email Spam Detection Using Machine LearningEmail Spam Detection Using Machine Learning
Email Spam Detection Using Machine Learning
 
Customer Churn Analytics using Microsoft R Open
Customer Churn Analytics using Microsoft R OpenCustomer Churn Analytics using Microsoft R Open
Customer Churn Analytics using Microsoft R Open
 
IRJET- Document Layout analysis using Inverse Support Vector Machine (I-SV...
IRJET- 	  Document Layout analysis using Inverse Support Vector Machine (I-SV...IRJET- 	  Document Layout analysis using Inverse Support Vector Machine (I-SV...
IRJET- Document Layout analysis using Inverse Support Vector Machine (I-SV...
 
Document Layout analysis using Inverse Support Vector Machine (I-SVM) for Hin...
Document Layout analysis using Inverse Support Vector Machine (I-SVM) for Hin...Document Layout analysis using Inverse Support Vector Machine (I-SVM) for Hin...
Document Layout analysis using Inverse Support Vector Machine (I-SVM) for Hin...
 
Analysis on Fraud Detection Mechanisms Using Machine Learning Techniques
Analysis on Fraud Detection Mechanisms Using Machine Learning TechniquesAnalysis on Fraud Detection Mechanisms Using Machine Learning Techniques
Analysis on Fraud Detection Mechanisms Using Machine Learning Techniques
 
IRJET- Analysis of Face Recognition using Docface+ Selfie Matching
IRJET-  	  Analysis of Face Recognition using Docface+ Selfie MatchingIRJET-  	  Analysis of Face Recognition using Docface+ Selfie Matching
IRJET- Analysis of Face Recognition using Docface+ Selfie Matching
 
IRJET- Face Recognition of Criminals for Security using Principal Component A...
IRJET- Face Recognition of Criminals for Security using Principal Component A...IRJET- Face Recognition of Criminals for Security using Principal Component A...
IRJET- Face Recognition of Criminals for Security using Principal Component A...
 

Machine Learning Face Detection Using HOG Features

  • 1. Department of Computer Science & Engineering Sikkim Manipal Institute of Technology A PRESENTATION ON MACHINE LEARNING IN IMAGE PROCESSING FOR FACE DETECTION USING HISTOGRAM OF ORIENTED GRADIENTS BY VISHAL SRIVASTAVA CSE 7TH SEM. SEC ‘A’ REG. NO : 20130226 UNDER THE GUIDANCE OF: PROF. RAJIB GHOSH ASSISNTANT PROFESSOR NATIONAL INSTITUTE OF TECHNOLOGY PATNA DONE AS A PART OF SUMMER INTERNSHIP PROGRAM AT NIT PATNA
  • 2. ABSTRACT • With the advent of devices that penetrate every aspect of our daily lives, it’s very important to ensure maximum security when it comes to authentication of devices as well as for identity purposes. Machine Learning in Facial Recognition Systems is a very important aspect for identifying individuals as well as in identity and authentication purposes. It has vast applications in surveillance systems, mobile authentication and individual identity revelation and confirmation.
  • 3. INTRODUCTION • Face Recognition is a part of object and pattern recognition where objects are classified using a particular feature and a model is prepared for the same. Depending on the feature being used for the model, templates for that particular object are created which act as a standard in isolating the object under considering from a given image. • In this project, we shall deal with HOG features, i.e., Histogram of Oriented Gradients features which is discussed latter in details. • The project can be sub-categorized into the following parts: • Selecting the feature to be extracted • Collecting image samples & preprocessing them • Extract the features required • Train the model • Match components with query image • Display Closest match
  • 5. LITERATURE SURVEY • Bin Lia, Guang Huo recently illustrated the mechanism of face detection and recognition using Locality Sensitive Histogram of Oriented Gradients (LSHOG). They proposed that the traditional histograms of oriented gradients (HOG) divide an image into many cells, and computed a histogram of gradient orientations over each cell. • First, we use LSHOG to extract feature vectors of face images. Then, to show how different dimension reduction algorithms affect recognition accuracy, we choose several typical dimension reduction algorithms to reduce the dimensions of feature vectors of face images. They evaluated LSHOG and our proposed face recognition method on four benchmark face databases. Experimental results verify the feasibility and effectiveness of LSHOG and our face recognition method.
  • 6. DATASET • The database consists of 40 different individuals where there are 10 samples of non-standard RGB images per person. The individuals are marked from 1 to 40 and their samples are marked 1 to 10. These images are then further subjected to preprocessing softwares and algorithms to convert them into standard images. TRAINING AND TEST DATA SET • The most important part for preparing a learning model is training the classifier. • The database is partitioned into 2 parts as: • Training Set (80 %) • Testing Set (20 %) • This means that 80 % of the data (images) of every individual are used for preparing the training data-set and rest 20 % is used for testing the Algorithm.
  • 8. FEATURE EXTRACTION AND TRAINING EXTRACTING HOG FEATURES The Computer Vision API for MATLAB provides for the necessary tools the extract the HOG Features for a given Image sample. Following is the Code with the detailed explanation for the same. extractHOGFeatures • Extract histogram of oriented gradients (HOG) features • o Syntax • features = extractHOGFeatures(I) • [features,validPoints] = extractHOGFeatures(I,points) • [___, visualization] = extractHOGFeatures(I,___) • [___] = extractHOGFeatures(___,Name,Value)
  • 9. TRAINING & PARTITIONING • The most important part for preparing a learning model is training the classifier. • The database is partitioned into 2 parts as: • Training Set (80 %) • Testing Set (20 %) • This means that 80 % of the data (images) of every individual are used for preparing the training data-set and rest 20 % is used for testing the Algorithm. • The following code illustrates the portioning of the database: • % Splitting database in Training Sets & Test Sets • [training,test]=partition(facedatabase,[0.8 0.2]);
  • 10. CLASSIFICATION • The choice of model is a very sensitive topic as it determines the accuracy of the algorithm which we are implementing. • In this case we are using ‘fitcecoc’ classifier which is the Fit multiclass models for support vector machines or other classifiers: SYNTAX: faceClassifier=fitcecoc(trainingFeatures,trainingLabel); FEATURE VECTOR The result of the above code is a 2-D Matrix , i.e., The training feature vector which looks like as shown below:
  • 11. RECOGNITION • Once the model is prepared and ready the testing phase is carried out. This is done using the Test Data-Set that we had earlier partitioned during initial stages. Several Test samples are taken as query images whose HOG features are extracted and then it is looped through to find the best matched class for the given input. • The sample results are illustrated: CASE 1: CORRECT MATCH
  • 13. RESULTS AND ANALYSIS USING SVM • SUPPORT VECTOR MACHINE • Support vector machines (SVMs) are supervised learning models with associated learning algorithms that analyze data used for classification and regression analysis. Given a set of training examples, each marked for belonging to one of two categories, an SVM training algorithm builds a model that assigns new examples into one category or the other, making it a non-probabilistic binary linear classifier. An SVM model is a representation of the examples as points in space, mapped so that the examples of the separate categories are divided by a clear gap that is as wide as possible. New examples are then mapped into that same space and predicted to belong to a category based on which side of the gap they fall on. • USING libsvm (SVM Library) • The predictive analysis is carried out using libsvm. The training & test feature vectors are converted into suitable format before carrying out further processing using code. We have 400 image samples, with each image having a feature vector of size 4680, analysis was carried out and results are shown later below. • Proper scaling of training feature vector gives us more accurate results. • The Analysis is done in 3 steps: • Scaling • Training • Prediction
  • 14. SCALING • Syntax: • svm-scale –l <lower bound> -u <upper bound> -s abc TrainSet.dat > ScaledSet • Fig: 8.1 Scaling the Trained & Test Data Set
  • 15. TRAINING • Syntax: svm-train TrainedData.dat • Fig:
  • 16. PREDICTION AND ACCURACY: • Syntax: svm-predict test_data.dat trained_data.model a.out • Fig:
  • 17. REFERENCES • Face recognition using locality sensitive histograms of orientedgradientsBin Lia,∗, Guang HuobaSchool of Information Engineering, Northeast Dianli University. • I.T. Jolliffe, Principal Component Analysis, Springer-Verlag, New York, 1989. • H. Yu, J. Yang, A direct LDA algorithm for high dimensional data with applicationto face recognition, Pattern Recognit. 34 (2001) 2067–2070. • Face Recognition Algorithms, Proyecto Fin de Carrera, June 16, Ion Marqu´es, • http://www.intechopen.com/books/face-recognition/feature-extraction-and-representation-for- face-recognition • http:// Wikipedia.org/wiki/Support-vector-machine • http://scholastictutors.webs.com