SlideShare a Scribd company logo
1 of 37
Download to read offline
RECOGNISING FACES
MACHINE LEARNING & COMPUTER VISION: 101
SAKSHAM GAUTAM
08.06.2016 Saksham Gautam
LET’S START WITH A QUICK SHOW OF HANDS
HOW MANY OF YOU…
▸ have heard about machine learning?
▸ have used machine learning in your projects?
▸ have implemented any ML algorithm from scratch?
▸ have done Andrew Ng’s (or other) courses on ML?
▸ understand that deep learning uses neural network?
▸ still remember what the kernel trick is?
08.06.2016 Saksham Gautam
SHOW OF HANDS ON YOUR FAMILIARITY WITH COMPUTER VISION
HOW ABOUT…
▸ know how an image can be represented as a matrix?
▸ have used openCV or MATLAB?
▸ understand how convolution can be used to detect edges?
▸ know the role of scale space in computer vision?
▸ remember how eigenvectors can be used for face
recognition?
08.06.2016 Saksham Gautam
WHAT DO WE WANT TO ACHIEVE?
FACE DETECTION & RECOGNITION
http://docs.opencv.org/master/d7/d8b/tutorial_py_face_detection.html#gsc.tab=0
FACE
MONA LISA
NOT A FACE!
08.06.2016 Saksham Gautam
TO RECOGNISE AND LABEL OBJECTS IN AN IMAGE
OBJECT RECOGNITION
08.06.2016 Saksham Gautam
BASIC STEPS FOR FACE RECOGNITION
BUT HOW EXACTLY?
1. Capture image
2. Filter out noise
3. Find face in the image
4. Create a similarity metric and a model (Training)
5. Match any given face to one from the database
6. Return the closest match with the probability
08.06.2016 Saksham Gautam
FACE RECOGNITION CAN BE BROKEN DOWN INTO SIMPLE STEPS
BUILDING BLOCKS
RAW IMAGE
PROCESSED
IMAGE
FEATURES
MACHINE LEARNING
ALGORITHM
Training
Validation
MODEL
RAW IMAGE
DECISION
How can I capture image?
Remove any noise?
What’s the information

in the image?
Can we match patterns?
08.06.2016 Saksham Gautam
HUMAN SEES BEAUTY BUT COMPUTER SEES NUMBERS
WHAT IS THIS?
=
08.06.2016 Saksham Gautam
PIXEL VALUES CAN BE THOUGHT OF AS ‘ELEVATION’ IN IMAGE PLANE
MONALISA IN 3D?
08.06.2016 Saksham Gautam
FILTER - I, MEAN FILTER CAN REMOVE RANDOM NOISE
MEAN FILTER
08.06.2016 Saksham Gautam
FILTERS - II, MEDIAN FILTER CAN REMOVE SALT & PEPPER NOISE
MEDIAN FILTER
08.06.2016 Saksham Gautam
FILTERS-III, ADVANCED FILTERS CAN REMOVE DIFFERENT TYPES OF NOISE
ADVANCED FILTERS
▸ Bilateral filters
▸ Adaptive bilateral filters
▸ …
08.06.2016 Saksham Gautam
38 53 38 70 84
5 56 69 82 98
34 87 85 5 40
25 99 43 69 76
11 61 86 94 59
-1 0 1
-1 0 1
-1 0 1
CONVOLUTION CAN BE APPLIED VERY QUICKLY ON AN IMAGE
CONVOLUTION
*
38 0 -38
5 0 -69
34 0 -85
-115
-115 56 16
-69 112 12
-93 3 6
08.06.2016 Saksham Gautam
CONVOLUTION CAN BE USED FOR COMPUTING IMAGE GRADIENT
IMAGE GRADIENT
0 0 0
100 100 100
0 50 100
100 50 0
-1 0 1
*
0
0
100
-100
=
08.06.2016 Saksham Gautam
EDGES AND CORNERS ARE FEATURES IN AN IMAGE
SOBEL FILTER FOR DETECTING EDGES
HARRIS CORNER DETECTOR
-1 0 1
-2 0 2
-1 0 1
Gx =
-1 -2 -1
0 0 0
1 2 1
Gy =
$python sobel-filter.py
$python harris-corner.py
08.06.2016 Saksham Gautam
MORE ROBUST FEATURES CAN BE USED FOR OBJECT RECOGNITION
SIFT, SURF, HOG
▸ More advanced features can be used for scale invariance
▸ Some are robust even under varying lighting conditions
▸ These serve as the starting point for the ML part
08.06.2016 Saksham Gautam
CASCADES OF FILTERS ON AN IMAGE CAN BE USED FOR DETECTING FACES
DETECTING FACES
http://siret.ms.mff.cuni.cz/facereco/method/
$python viola-jones.py
08.06.2016 Saksham Gautam
FEATURES FRO THE FACE CAN BE FED TO AN ML ALGORITHM
BUILDING BLOCKS
RAW IMAGE
PROCESSED
IMAGE
FEATURES
MACHINE LEARNING
ALGORITHM
Training
Validation
MODEL
RAW IMAGE
DECISION
PERFORMANCE (P) OF A METHOD
FOR A TASK (T) INCREASES WITH
EXPERIENCE (E)
Tom Mitchell
BTW, WHO LEARNS? THE MACHINE, REALLY?
08.06.2016 Saksham Gautam
PROBABILITY AND STATISTICS CAN HELP ANSWER MANY QUESTIONS
T-SHIRT SIZE FOR THE SUMMIT MAYBE I SHOULD
HAVE PICKED ‘M’
INSTEAD OF ’S'
08.06.2016 Saksham Gautam
EXACT SOLUTION IS NOT ALWAYS POSSIBLE
T-SHIRT SIZE ~ MY BODY’S MEASUREMENTS
08.06.2016 Saksham Gautam
MAXIMUM LIKELIHOOD ESTIMATE HELPS ON THE FACE OF UNCERTAINTY
CLASSIFICATION PROBLEM?
Length #2
Length #1
S
M
Length #1
Length #2
S
08.06.2016 Saksham Gautam
MEMBERSHIP TO A CLUSTER CAN BE USED FOR CLASSIFICATION
CLUSTERING
Length #2
Length #1
S
M
08.06.2016 Saksham Gautam
MARGINS CAN BE USED FOR SEPARATING CLASSES
LARGE MARGIN CLASSIFIER
Length #2
Length #1
08.06.2016 Saksham Gautam
LOG(DISTANCE FROM THE HYPERPLANE) = PROBABILITY
LOGISTIC REGRESSION
Length #2
Length #1
08.06.2016 Saksham Gautam
LARGE MARGIN CLASSIFIER CAN BE USED FOR DETECTING FACES
FEEDING VALUES FROM VIOLA JONES FILTER
X1
X2
FACE
NOT A FACE
08.06.2016 Saksham Gautam
FEATURES SHOULD MAXIMISE VARIANCE (SCATTER)
EIGENVECTORS
V1
V2
X1
X2
08.06.2016 Saksham Gautam
MATRIX DECOMPOSITION ON FACES CAN BE USED TO FIND EIGENFACES
FACIAL FEATURES AS EIGENVECTORS
V1
V2
Projection
08.06.2016 Saksham Gautam
ACCURACY ITSELF IS NOT ENOUGH
CROSS VALIDATION AND F SCORE
DUMMY CANCER
DETECTOR
Data
No
ACCURACY = 98%
08.06.2016 Saksham Gautam
IMAGE CAN BE DIRECTLY FED INTO NEURAL NETWORK
NEURAL NETWORK
08.06.2016 Saksham Gautam
GO WITH THE HYPE, BUT WITH CARE
DEEP LEARNING ~ MASSIVE NEURAL NETWORK
▸ Learning algorithm is the same, i.e. back propagation
▸ Has the same problem with overfitting
▸ Can be used for feature extraction and selection
▸ Mathematical foundations for neural network still not
“perfect”
▸ Pointer: https://www.tensorflow.org from Google
08.06.2016 Saksham Gautam
MACHINE LEARNING PIPELINE
SUMMARY
RAW IMAGE
PROCESSED
IMAGE
FEATURES
MACHINE LEARNING
ALGORITHM
Training
Validation
MODEL
RAW IMAGE
DECISION
REFERENCES
• OpenCV Documentation. http://docs.opencv.org/3.1.0/#gsc.tab=0
• Andrew Ng. Machine Learning Courser on Coursera. http://www.coursera.org/learn/machine-learning
• Christopher Bishop. Machines that Learn. https://www.youtube.com/watch?v=icaA7gVxqSs
• Video Lecture on Face Detection and Tracking. https://www.youtube.com/watch?v=WfdYYNamHZ8
• Adam Harvey explains Viola-Jones Face Detection. http://www.makematics.com/research/viola-jones/
• Christopher, M. Bishop. "Pattern recognition and machine learning." Company New York 16.4 (2006):
049901.
• Bradski, Gary, and Adrian Kaehler. Learning OpenCV: Computer vision with the OpenCV library. "
O'Reilly Media, Inc .", 2008
• Solem, Jan Erik. Programming Computer Vision with Python: Tools and algorithms for analyzing
images. " O'Reilly Me dia, Inc.", 2012.
• Hartley, Richard, and Andrew Zisserman. Multiple view geometry in computer vision. Cambridge
university press, 2003.
BACKUP SLIDES
08.06.2016 Saksham Gautam
IMAGE GRADIENT IS THE BASIS OF FEATURE EXTRACTION
GRADIENT IMAGE
-1 0 1gx =
-1
0
1
gy =* A * A
08.06.2016 Saksham Gautam
EVERY SIGNAL CAN BE DECOMPOSED TO SINES AND COSINES
FOURIER TRANSFORM
▸ Frequency can be thought of as information in the image
▸ Fourier Transform can be used to decompose a signal into
these components
▸ Signal can be multiplied with filter in frequency domain
▸ Multiplication in frequency domain is convolution in time
domain

More Related Content

What's hot

Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processingasodariyabhavesh
 
Computer vision introduction
Computer vision  introduction Computer vision  introduction
Computer vision introduction Wael Badawy
 
COM2304: Introduction to Computer Vision & Image Processing
COM2304: Introduction to Computer Vision & Image Processing COM2304: Introduction to Computer Vision & Image Processing
COM2304: Introduction to Computer Vision & Image Processing Hemantha Kulathilake
 
(2017/06)Practical points of deep learning for medical imaging
(2017/06)Practical points of deep learning for medical imaging(2017/06)Practical points of deep learning for medical imaging
(2017/06)Practical points of deep learning for medical imagingKyuhwan Jung
 
An introduction to Machine Learning
An introduction to Machine LearningAn introduction to Machine Learning
An introduction to Machine Learningbutest
 
AI Computer vision
AI Computer visionAI Computer vision
AI Computer visionKashafnaz2
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram ProcessingAmnaakhaan
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Moe Moe Myint
 
Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?Marina Santini
 
An Introduction to Computer Vision
An Introduction to Computer VisionAn Introduction to Computer Vision
An Introduction to Computer Visionguestd1b1b5
 
Mathematical operations in image processing
Mathematical operations in image processingMathematical operations in image processing
Mathematical operations in image processingAsad Ali
 

What's hot (20)

Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 
Computer vision introduction
Computer vision  introduction Computer vision  introduction
Computer vision introduction
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
COM2304: Introduction to Computer Vision & Image Processing
COM2304: Introduction to Computer Vision & Image Processing COM2304: Introduction to Computer Vision & Image Processing
COM2304: Introduction to Computer Vision & Image Processing
 
(2017/06)Practical points of deep learning for medical imaging
(2017/06)Practical points of deep learning for medical imaging(2017/06)Practical points of deep learning for medical imaging
(2017/06)Practical points of deep learning for medical imaging
 
Segmentation
SegmentationSegmentation
Segmentation
 
An introduction to Machine Learning
An introduction to Machine LearningAn introduction to Machine Learning
An introduction to Machine Learning
 
AI Computer vision
AI Computer visionAI Computer vision
AI Computer vision
 
Computer vision
Computer visionComputer vision
Computer vision
 
Computer vision
Computer visionComputer vision
Computer vision
 
Computer vision
Computer visionComputer vision
Computer vision
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
 
Pattern recognition
Pattern recognitionPattern recognition
Pattern recognition
 
Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?
 
Application of image processing
Application of image processingApplication of image processing
Application of image processing
 
An Introduction to Computer Vision
An Introduction to Computer VisionAn Introduction to Computer Vision
An Introduction to Computer Vision
 
Mathematical operations in image processing
Mathematical operations in image processingMathematical operations in image processing
Mathematical operations in image processing
 
Computer Vision
Computer VisionComputer Vision
Computer Vision
 
Computer vision
Computer visionComputer vision
Computer vision
 

Viewers also liked

Bi model face recognition framework
Bi model face recognition frameworkBi model face recognition framework
Bi model face recognition frameworkSumit Agarwal
 
Robust face name graph matching for movie character identification - Final PPT
 Robust face name graph matching for movie character identification - Final PPT Robust face name graph matching for movie character identification - Final PPT
Robust face name graph matching for movie character identification - Final PPTPriyadarshini Dasarathan
 
Facial recognition locker for android
Facial recognition locker for androidFacial recognition locker for android
Facial recognition locker for androidkonark jain
 
Face Recognition using OpenCV
Face Recognition using OpenCVFace Recognition using OpenCV
Face Recognition using OpenCVVasile Chelban
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition SystemZara Tariq
 
Face detection using template matching
Face detection using template matchingFace detection using template matching
Face detection using template matchingBrijesh Borad
 
Face recognition technology
Face recognition technologyFace recognition technology
Face recognition technologyranjit banshpal
 
Eigenface For Face Recognition
Eigenface For Face RecognitionEigenface For Face Recognition
Eigenface For Face RecognitionMinh Tran
 
Facial recognition powerpoint
Facial recognition powerpointFacial recognition powerpoint
Facial recognition powerpoint12206695
 
Face recognition technology - BEST PPT
Face recognition technology - BEST PPTFace recognition technology - BEST PPT
Face recognition technology - BEST PPTSiddharth Modi
 

Viewers also liked (13)

Bi model face recognition framework
Bi model face recognition frameworkBi model face recognition framework
Bi model face recognition framework
 
Robust face name graph matching for movie character identification - Final PPT
 Robust face name graph matching for movie character identification - Final PPT Robust face name graph matching for movie character identification - Final PPT
Robust face name graph matching for movie character identification - Final PPT
 
Facial recognition locker for android
Facial recognition locker for androidFacial recognition locker for android
Facial recognition locker for android
 
Face recognition
Face recognitionFace recognition
Face recognition
 
Face Recognition using OpenCV
Face Recognition using OpenCVFace Recognition using OpenCV
Face Recognition using OpenCV
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition System
 
Face detection using template matching
Face detection using template matchingFace detection using template matching
Face detection using template matching
 
Face recognition technology
Face recognition technologyFace recognition technology
Face recognition technology
 
Eigenface For Face Recognition
Eigenface For Face RecognitionEigenface For Face Recognition
Eigenface For Face Recognition
 
Facial recognition powerpoint
Facial recognition powerpointFacial recognition powerpoint
Facial recognition powerpoint
 
Pattern recognition
Pattern recognitionPattern recognition
Pattern recognition
 
Face recognition technology - BEST PPT
Face recognition technology - BEST PPTFace recognition technology - BEST PPT
Face recognition technology - BEST PPT
 
Microsoft power point Face recognition
Microsoft power point   Face recognitionMicrosoft power point   Face recognition
Microsoft power point Face recognition
 

Similar to Machine learning & computer vision

Machine Learning for Absolute Beginners ( PDFDrive ).pdf
Machine Learning for Absolute Beginners ( PDFDrive ).pdfMachine Learning for Absolute Beginners ( PDFDrive ).pdf
Machine Learning for Absolute Beginners ( PDFDrive ).pdfAnkitBiswas31
 
new FINAL REPORT -A STUDY OF SIX SIGMA METHODOLOGY
new FINAL REPORT -A STUDY OF SIX SIGMA METHODOLOGYnew FINAL REPORT -A STUDY OF SIX SIGMA METHODOLOGY
new FINAL REPORT -A STUDY OF SIX SIGMA METHODOLOGYAlan Kurien Punnoose
 
Matthew Griffin Design Tools
Matthew Griffin Design ToolsMatthew Griffin Design Tools
Matthew Griffin Design ToolsMediabistro
 
Future of AI - 2023 07 25.pptx
Future of AI - 2023 07 25.pptxFuture of AI - 2023 07 25.pptx
Future of AI - 2023 07 25.pptxGreg Makowski
 
AI Basics for Professionals to Help Begin Their AI Journey
AI Basics for Professionals to Help Begin Their AI JourneyAI Basics for Professionals to Help Begin Their AI Journey
AI Basics for Professionals to Help Begin Their AI JourneyDeepak Sharma
 
Building Business Applications for Office 365 SharePoint Online using Azure M...
Building Business Applications for Office 365 SharePoint Online using Azure M...Building Business Applications for Office 365 SharePoint Online using Azure M...
Building Business Applications for Office 365 SharePoint Online using Azure M...Prashant G Bhoyar (Microsoft MVP)
 
Best practices in building machine learning models in Azure ML
Best practices in building machine learning models in Azure MLBest practices in building machine learning models in Azure ML
Best practices in building machine learning models in Azure MLZeydy Ortiz, Ph. D.
 
Train, explain, acclaim. Build a good model in three steps
Train, explain, acclaim.  Build a good model in three stepsTrain, explain, acclaim.  Build a good model in three steps
Train, explain, acclaim. Build a good model in three stepsPrzemek Biecek
 
Machine Intelligence - Wie Systeme lernen und unseren Alltag verändern
Machine Intelligence - Wie Systeme lernen und unseren Alltag verändernMachine Intelligence - Wie Systeme lernen und unseren Alltag verändern
Machine Intelligence - Wie Systeme lernen und unseren Alltag verändernMark Cieliebak
 
Automation, intelligence and knowledge modelling
Automation, intelligence and knowledge modellingAutomation, intelligence and knowledge modelling
Automation, intelligence and knowledge modellingVeselin Pizurica
 
Future of data science as a profession
Future of data science as a professionFuture of data science as a profession
Future of data science as a professionJose Quesada
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceWebinar20211
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial IntelligenceBharat Bhushan
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial IntelligenceBharat Bhushan
 
ChatGPT for State The Art- Prof. Wisnu Jatmiko (UIN Raden Fatah 2023).pdf
ChatGPT for State The Art- Prof. Wisnu Jatmiko (UIN Raden Fatah 2023).pdfChatGPT for State The Art- Prof. Wisnu Jatmiko (UIN Raden Fatah 2023).pdf
ChatGPT for State The Art- Prof. Wisnu Jatmiko (UIN Raden Fatah 2023).pdfAchmadNizarHidayanto
 
The Secret of Successful Automated Workflows
The Secret of Successful Automated WorkflowsThe Secret of Successful Automated Workflows
The Secret of Successful Automated Workflowsgeekwithfamily
 

Similar to Machine learning & computer vision (20)

Machine Learning for Absolute Beginners ( PDFDrive ).pdf
Machine Learning for Absolute Beginners ( PDFDrive ).pdfMachine Learning for Absolute Beginners ( PDFDrive ).pdf
Machine Learning for Absolute Beginners ( PDFDrive ).pdf
 
new FINAL REPORT -A STUDY OF SIX SIGMA METHODOLOGY
new FINAL REPORT -A STUDY OF SIX SIGMA METHODOLOGYnew FINAL REPORT -A STUDY OF SIX SIGMA METHODOLOGY
new FINAL REPORT -A STUDY OF SIX SIGMA METHODOLOGY
 
Strategy Design Pattern
Strategy Design PatternStrategy Design Pattern
Strategy Design Pattern
 
Matthew Griffin Design Tools
Matthew Griffin Design ToolsMatthew Griffin Design Tools
Matthew Griffin Design Tools
 
Mahout
MahoutMahout
Mahout
 
Future of AI - 2023 07 25.pptx
Future of AI - 2023 07 25.pptxFuture of AI - 2023 07 25.pptx
Future of AI - 2023 07 25.pptx
 
AI Basics for Professionals to Help Begin Their AI Journey
AI Basics for Professionals to Help Begin Their AI JourneyAI Basics for Professionals to Help Begin Their AI Journey
AI Basics for Professionals to Help Begin Their AI Journey
 
Building Business Applications for Office 365 SharePoint Online using Azure M...
Building Business Applications for Office 365 SharePoint Online using Azure M...Building Business Applications for Office 365 SharePoint Online using Azure M...
Building Business Applications for Office 365 SharePoint Online using Azure M...
 
Best practices in building machine learning models in Azure ML
Best practices in building machine learning models in Azure MLBest practices in building machine learning models in Azure ML
Best practices in building machine learning models in Azure ML
 
Train, explain, acclaim. Build a good model in three steps
Train, explain, acclaim.  Build a good model in three stepsTrain, explain, acclaim.  Build a good model in three steps
Train, explain, acclaim. Build a good model in three steps
 
Simulation UNIT-I
Simulation    UNIT-ISimulation    UNIT-I
Simulation UNIT-I
 
Machine Intelligence - Wie Systeme lernen und unseren Alltag verändern
Machine Intelligence - Wie Systeme lernen und unseren Alltag verändernMachine Intelligence - Wie Systeme lernen und unseren Alltag verändern
Machine Intelligence - Wie Systeme lernen und unseren Alltag verändern
 
Automation, intelligence and knowledge modelling
Automation, intelligence and knowledge modellingAutomation, intelligence and knowledge modelling
Automation, intelligence and knowledge modelling
 
Future of data science as a profession
Future of data science as a professionFuture of data science as a profession
Future of data science as a profession
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial Intelligence
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial Intelligence
 
ChatGPT for State The Art- Prof. Wisnu Jatmiko (UIN Raden Fatah 2023).pdf
ChatGPT for State The Art- Prof. Wisnu Jatmiko (UIN Raden Fatah 2023).pdfChatGPT for State The Art- Prof. Wisnu Jatmiko (UIN Raden Fatah 2023).pdf
ChatGPT for State The Art- Prof. Wisnu Jatmiko (UIN Raden Fatah 2023).pdf
 
Machine Learning: Decision Trees
Machine Learning: Decision TreesMachine Learning: Decision Trees
Machine Learning: Decision Trees
 
The Secret of Successful Automated Workflows
The Secret of Successful Automated WorkflowsThe Secret of Successful Automated Workflows
The Secret of Successful Automated Workflows
 

Recently uploaded

Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationBoston Institute of Analytics
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
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
 
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
 
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
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Digi Khata Problem along complete plan.pptx
Digi Khata Problem along complete plan.pptxDigi Khata Problem along complete plan.pptx
Digi Khata Problem along complete plan.pptxTanveerAhmed817946
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 

Recently uploaded (20)

Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project Presentation
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
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
 
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
 
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🔝
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Digi Khata Problem along complete plan.pptx
Digi Khata Problem along complete plan.pptxDigi Khata Problem along complete plan.pptx
Digi Khata Problem along complete plan.pptx
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 

Machine learning & computer vision

  • 1. RECOGNISING FACES MACHINE LEARNING & COMPUTER VISION: 101 SAKSHAM GAUTAM
  • 2. 08.06.2016 Saksham Gautam LET’S START WITH A QUICK SHOW OF HANDS HOW MANY OF YOU… ▸ have heard about machine learning? ▸ have used machine learning in your projects? ▸ have implemented any ML algorithm from scratch? ▸ have done Andrew Ng’s (or other) courses on ML? ▸ understand that deep learning uses neural network? ▸ still remember what the kernel trick is?
  • 3. 08.06.2016 Saksham Gautam SHOW OF HANDS ON YOUR FAMILIARITY WITH COMPUTER VISION HOW ABOUT… ▸ know how an image can be represented as a matrix? ▸ have used openCV or MATLAB? ▸ understand how convolution can be used to detect edges? ▸ know the role of scale space in computer vision? ▸ remember how eigenvectors can be used for face recognition?
  • 4. 08.06.2016 Saksham Gautam WHAT DO WE WANT TO ACHIEVE? FACE DETECTION & RECOGNITION http://docs.opencv.org/master/d7/d8b/tutorial_py_face_detection.html#gsc.tab=0 FACE MONA LISA NOT A FACE!
  • 5. 08.06.2016 Saksham Gautam TO RECOGNISE AND LABEL OBJECTS IN AN IMAGE OBJECT RECOGNITION
  • 6. 08.06.2016 Saksham Gautam BASIC STEPS FOR FACE RECOGNITION BUT HOW EXACTLY? 1. Capture image 2. Filter out noise 3. Find face in the image 4. Create a similarity metric and a model (Training) 5. Match any given face to one from the database 6. Return the closest match with the probability
  • 7. 08.06.2016 Saksham Gautam FACE RECOGNITION CAN BE BROKEN DOWN INTO SIMPLE STEPS BUILDING BLOCKS RAW IMAGE PROCESSED IMAGE FEATURES MACHINE LEARNING ALGORITHM Training Validation MODEL RAW IMAGE DECISION How can I capture image? Remove any noise? What’s the information
 in the image? Can we match patterns?
  • 8. 08.06.2016 Saksham Gautam HUMAN SEES BEAUTY BUT COMPUTER SEES NUMBERS WHAT IS THIS? =
  • 9. 08.06.2016 Saksham Gautam PIXEL VALUES CAN BE THOUGHT OF AS ‘ELEVATION’ IN IMAGE PLANE MONALISA IN 3D?
  • 10. 08.06.2016 Saksham Gautam FILTER - I, MEAN FILTER CAN REMOVE RANDOM NOISE MEAN FILTER
  • 11. 08.06.2016 Saksham Gautam FILTERS - II, MEDIAN FILTER CAN REMOVE SALT & PEPPER NOISE MEDIAN FILTER
  • 12. 08.06.2016 Saksham Gautam FILTERS-III, ADVANCED FILTERS CAN REMOVE DIFFERENT TYPES OF NOISE ADVANCED FILTERS ▸ Bilateral filters ▸ Adaptive bilateral filters ▸ …
  • 13. 08.06.2016 Saksham Gautam 38 53 38 70 84 5 56 69 82 98 34 87 85 5 40 25 99 43 69 76 11 61 86 94 59 -1 0 1 -1 0 1 -1 0 1 CONVOLUTION CAN BE APPLIED VERY QUICKLY ON AN IMAGE CONVOLUTION * 38 0 -38 5 0 -69 34 0 -85 -115 -115 56 16 -69 112 12 -93 3 6
  • 14. 08.06.2016 Saksham Gautam CONVOLUTION CAN BE USED FOR COMPUTING IMAGE GRADIENT IMAGE GRADIENT 0 0 0 100 100 100 0 50 100 100 50 0 -1 0 1 * 0 0 100 -100 =
  • 15. 08.06.2016 Saksham Gautam EDGES AND CORNERS ARE FEATURES IN AN IMAGE SOBEL FILTER FOR DETECTING EDGES HARRIS CORNER DETECTOR -1 0 1 -2 0 2 -1 0 1 Gx = -1 -2 -1 0 0 0 1 2 1 Gy = $python sobel-filter.py $python harris-corner.py
  • 16. 08.06.2016 Saksham Gautam MORE ROBUST FEATURES CAN BE USED FOR OBJECT RECOGNITION SIFT, SURF, HOG ▸ More advanced features can be used for scale invariance ▸ Some are robust even under varying lighting conditions ▸ These serve as the starting point for the ML part
  • 17. 08.06.2016 Saksham Gautam CASCADES OF FILTERS ON AN IMAGE CAN BE USED FOR DETECTING FACES DETECTING FACES http://siret.ms.mff.cuni.cz/facereco/method/ $python viola-jones.py
  • 18. 08.06.2016 Saksham Gautam FEATURES FRO THE FACE CAN BE FED TO AN ML ALGORITHM BUILDING BLOCKS RAW IMAGE PROCESSED IMAGE FEATURES MACHINE LEARNING ALGORITHM Training Validation MODEL RAW IMAGE DECISION
  • 19. PERFORMANCE (P) OF A METHOD FOR A TASK (T) INCREASES WITH EXPERIENCE (E) Tom Mitchell BTW, WHO LEARNS? THE MACHINE, REALLY?
  • 20. 08.06.2016 Saksham Gautam PROBABILITY AND STATISTICS CAN HELP ANSWER MANY QUESTIONS T-SHIRT SIZE FOR THE SUMMIT MAYBE I SHOULD HAVE PICKED ‘M’ INSTEAD OF ’S'
  • 21. 08.06.2016 Saksham Gautam EXACT SOLUTION IS NOT ALWAYS POSSIBLE T-SHIRT SIZE ~ MY BODY’S MEASUREMENTS
  • 22. 08.06.2016 Saksham Gautam MAXIMUM LIKELIHOOD ESTIMATE HELPS ON THE FACE OF UNCERTAINTY CLASSIFICATION PROBLEM? Length #2 Length #1 S M Length #1 Length #2 S
  • 23. 08.06.2016 Saksham Gautam MEMBERSHIP TO A CLUSTER CAN BE USED FOR CLASSIFICATION CLUSTERING Length #2 Length #1 S M
  • 24. 08.06.2016 Saksham Gautam MARGINS CAN BE USED FOR SEPARATING CLASSES LARGE MARGIN CLASSIFIER Length #2 Length #1
  • 25. 08.06.2016 Saksham Gautam LOG(DISTANCE FROM THE HYPERPLANE) = PROBABILITY LOGISTIC REGRESSION Length #2 Length #1
  • 26. 08.06.2016 Saksham Gautam LARGE MARGIN CLASSIFIER CAN BE USED FOR DETECTING FACES FEEDING VALUES FROM VIOLA JONES FILTER X1 X2 FACE NOT A FACE
  • 27. 08.06.2016 Saksham Gautam FEATURES SHOULD MAXIMISE VARIANCE (SCATTER) EIGENVECTORS V1 V2 X1 X2
  • 28. 08.06.2016 Saksham Gautam MATRIX DECOMPOSITION ON FACES CAN BE USED TO FIND EIGENFACES FACIAL FEATURES AS EIGENVECTORS V1 V2 Projection
  • 29. 08.06.2016 Saksham Gautam ACCURACY ITSELF IS NOT ENOUGH CROSS VALIDATION AND F SCORE DUMMY CANCER DETECTOR Data No ACCURACY = 98%
  • 30. 08.06.2016 Saksham Gautam IMAGE CAN BE DIRECTLY FED INTO NEURAL NETWORK NEURAL NETWORK
  • 31. 08.06.2016 Saksham Gautam GO WITH THE HYPE, BUT WITH CARE DEEP LEARNING ~ MASSIVE NEURAL NETWORK ▸ Learning algorithm is the same, i.e. back propagation ▸ Has the same problem with overfitting ▸ Can be used for feature extraction and selection ▸ Mathematical foundations for neural network still not “perfect” ▸ Pointer: https://www.tensorflow.org from Google
  • 32. 08.06.2016 Saksham Gautam MACHINE LEARNING PIPELINE SUMMARY RAW IMAGE PROCESSED IMAGE FEATURES MACHINE LEARNING ALGORITHM Training Validation MODEL RAW IMAGE DECISION
  • 33. REFERENCES • OpenCV Documentation. http://docs.opencv.org/3.1.0/#gsc.tab=0 • Andrew Ng. Machine Learning Courser on Coursera. http://www.coursera.org/learn/machine-learning • Christopher Bishop. Machines that Learn. https://www.youtube.com/watch?v=icaA7gVxqSs • Video Lecture on Face Detection and Tracking. https://www.youtube.com/watch?v=WfdYYNamHZ8 • Adam Harvey explains Viola-Jones Face Detection. http://www.makematics.com/research/viola-jones/ • Christopher, M. Bishop. "Pattern recognition and machine learning." Company New York 16.4 (2006): 049901. • Bradski, Gary, and Adrian Kaehler. Learning OpenCV: Computer vision with the OpenCV library. " O'Reilly Media, Inc .", 2008 • Solem, Jan Erik. Programming Computer Vision with Python: Tools and algorithms for analyzing images. " O'Reilly Me dia, Inc.", 2012. • Hartley, Richard, and Andrew Zisserman. Multiple view geometry in computer vision. Cambridge university press, 2003.
  • 34.
  • 36. 08.06.2016 Saksham Gautam IMAGE GRADIENT IS THE BASIS OF FEATURE EXTRACTION GRADIENT IMAGE -1 0 1gx = -1 0 1 gy =* A * A
  • 37. 08.06.2016 Saksham Gautam EVERY SIGNAL CAN BE DECOMPOSED TO SINES AND COSINES FOURIER TRANSFORM ▸ Frequency can be thought of as information in the image ▸ Fourier Transform can be used to decompose a signal into these components ▸ Signal can be multiplied with filter in frequency domain ▸ Multiplication in frequency domain is convolution in time domain