SlideShare a Scribd company logo
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

Similar to Machine Learning in 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 ).pdf
AnkitBiswas31
 
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
Alan Kurien Punnoose
 
Strategy Design Pattern
Strategy Design PatternStrategy Design Pattern
Strategy Design Pattern
Jyaasa Technologies
 
Matthew Griffin Design Tools
Matthew Griffin Design ToolsMatthew Griffin Design Tools
Matthew Griffin Design Tools
Mediabistro
 
Mahout
MahoutMahout
Mahout
Edureka!
 
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
Greg 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 Journey
Deepak 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 ML
Zeydy 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 steps
Przemek Biecek
 
Simulation UNIT-I
Simulation    UNIT-ISimulation    UNIT-I
Simulation UNIT-I
deganagarajulc
 
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
Mark Cieliebak
 
Automation, intelligence and knowledge modelling
Automation, intelligence and knowledge modellingAutomation, intelligence and knowledge modelling
Automation, intelligence and knowledge modelling
Veselin 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 profession
Jose Quesada
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Webinar20211
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial Intelligence
Bharat Bhushan
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial Intelligence
Bharat 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).pdf
AchmadNizarHidayanto
 
The Secret of Successful Automated Workflows
The Secret of Successful Automated WorkflowsThe Secret of Successful Automated Workflows
The Secret of Successful Automated Workflows
geekwithfamily
 
Product Management & Statistics - ProductTank Helsinki 04/2020
Product Management & Statistics - ProductTank Helsinki 04/2020Product Management & Statistics - ProductTank Helsinki 04/2020
Product Management & Statistics - ProductTank Helsinki 04/2020
Marjukka Niinioja
 

Similar to Machine Learning in 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
 
The Secret of Successful Automated Workflows
The Secret of Successful Automated WorkflowsThe Secret of Successful Automated Workflows
The Secret of Successful Automated Workflows
 
Product Management & Statistics - ProductTank Helsinki 04/2020
Product Management & Statistics - ProductTank Helsinki 04/2020Product Management & Statistics - ProductTank Helsinki 04/2020
Product Management & Statistics - ProductTank Helsinki 04/2020
 

Recently uploaded

原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
a9qfiubqu
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
Lars Albertsson
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
Timothy Spann
 
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens""Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
sameer shah
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
jitskeb
 
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
hyfjgavov
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
AndrzejJarynowski
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
apvysm8
 
Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024
ElizabethGarrettChri
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
AlessioFois2
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
SaffaIbrahim1
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
aqzctr7x
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
Sachin Paul
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
nuttdpt
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
xclpvhuk
 

Recently uploaded (20)

原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
 
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens""Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
 
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
 
Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
 

Machine Learning in 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