SlideShare a Scribd company logo
1 of 34
Download to read offline
PCA Based Face
Recognition System
MD. ATIQUR RAHMAN
Face Recognition using PCA Algorithm
 PCA-
 Principal Component Analysis
 Goal-
 Reduce the dimensionality of the data by retaining as much as variation
possible in our original data set.
 The best low-dimensional space can be determined by best principal-
components.
Eigenface Approach
 Pioneered by Kirby and Sirivich in 1988
 There are two steps of Eigenface Approach
 Initialization Operations in Face Recognition
 Recognizing New Face Images
Steps
 Initialization Operations in Face Recognition
 Prepare the Training Set to Face Vector
 Normalize the Face Vectors
 Calculate the Eigen Vectors
 Reduce Dimensionality
 Back to original dimensionality
 Represent Each Face Image a Linear Combination of all K Eigenvectors
 Recognizing An Unknown Face
Prepare the Training
Set to Face Vector
………..
112 × 92
10304 × 1𝜞𝒊
Face vector space
Images converted to vector
Each Image size
column vector
𝑀= 16 images in the training set  Convert each of face images in
Training set to face vectors
Normalize the Face
Vectors
Average face vector/Mean image (𝜳)
𝑀= 16 images in the training set
……….. 𝜳
Converted
Face vector space
Mean Image 𝜳
𝜞𝒊
 Calculate Average face vector
Save it into face vector space
Subtract the Mean from each Face Vector
………..
Ф𝒊
𝜳
Converted
Face vector space
𝑀= 16 images in the training set
− =
𝜞 𝟏 𝚿 Ф 𝟏
Normalized Face vector
Result of Normalization
Figure: Normalized Data set
Calculate the Eigen
Vectors
Calculate the Covariance Matrix (𝑪)
C = 𝑛=1
16
Ф 𝑛 Ф 𝑛
𝑇
= 𝐴𝐴 𝑇
= {(𝑁2× 𝑀). (𝑀 × 𝑁2)}
= 𝑁2× 𝑁2
= (10304 × 10304)
Where 𝐴 = {Ф1, Ф2, Ф3, … … … ., Ф16}
[𝐀 = 𝐍 𝟐
× 𝐌]……….. 𝜳
Ф𝒊
Face vector space
Converted
𝑀= 16 images in the training set
Converted
C = 10304 × 10304
10304 eigenvectors
………
Each 10304×1 dimensional
……….. 𝜳
Ф𝒊
Face vector space
𝒖𝒊
Converted
𝑀= 16 images in the training set
 In 𝑪, 𝑵 𝟐 is creating 𝟏𝟎𝟑𝟎𝟒 eigenvectors
 Each of eigenvector size is 𝟏𝟎𝟑𝟎𝟒 × 𝟏 dimensional
Calculate Eigenvector (𝒖𝒊)
C = 10304 × 10304
10304 eigenvectors
Each 10304×1 dimensional
……….. 𝜳
Ф𝒊
Face vector space
Converted
………
𝒖𝒊
𝑀= 16 images in the training set
 Find the Significant 𝑲 𝒕𝒉 eigenfaces
 Where, 𝑲 < 𝑴
C = 10304 × 10304
10304 eigenvectors
Each 10304×1 dimensional
……….. 𝜳
Ф𝒊
Face vector space
Converted
………
𝒖𝒊
𝑀= 16 images in the training set
 Make system slow
 Required huge calculation
Reduce
Dimensionality
Consider lower dimensional subspace
……….. 𝜳
Ф𝒊
Lower dimensional Sub-space
Face vector space
Converted
𝑀= 16 images in the training set
𝑳 = 𝑨 𝑻 𝑨
= 𝑴 × 𝑵2 𝑵2 × 𝑴
= 𝑴 × 𝑴
= 16 × 16
… … . .
16 eigenvectors
Each 16 ×1 dimensional
Calculate eigenvectors 𝒗𝒊
𝒗𝒊
……….. 𝜳
Ф𝒊
Lower dimensional Sub-space
Face vector space
Converted
𝑀= 16 images in the training set
 Calculate Co-variance matrix(𝑳)
of lower dimensional
𝑳 = 𝑨 𝑻 𝑨
= 𝑴 × 𝑵2
𝑵2
× 𝑴
= 𝑴 × 𝑴
= 16 × 16
… … . .
16 eigenvectors
Each 16 ×1 dimensional
𝒖𝒊 V/S 𝒗𝒊
𝒗𝒊
……….. 𝜳
Ф𝒊
Lower dimensional Sub-space
Face vector space
Converted
10304 eigenvectors
………
Each 10304×1 dimensional
𝒖𝒊
C = 10304 × 10304
v/s
𝑀 images in the training set
𝑳 = 𝑨 𝑻 𝑨
= 𝑴 × 𝑵2 𝑵2 × 𝑴
= 𝑴 × 𝑴
= 16 × 16
Select K best eigenvectors
……….. 𝜳
Ф𝒊
Lower dimensional Sub-space
Face vector space
Converted
… … . .
16 eigenvectors
Each 16 ×1 dimensional
𝒗𝒊
Selected K eigenfaces MUST be in
The ORIGINAL dimensionality of the
Face vector space
Back to Original
Dimensionality
𝑳 = 𝑨 𝑻 𝑨
= 𝑴 × 𝑵2 𝑵2 × 𝑴
= 𝑴 × 𝑴
= 16 × 16
……….. 𝜳
Ф𝒊
Lower dimensional Sub-space
Face vector space
Converted
… … . .
16 eigenvectors
Each 16 ×1 dimensional
𝒗𝒊
A=
𝒖𝒊 = 𝑨𝒗𝒊
10304 eigenvectors
………
Each 10304×1 dimensional
𝒖𝒊
𝑀= 16 images in the training set
𝑳 = 𝑨 𝑻 𝑨
= 𝑴 × 𝑵2 𝑵2 × 𝑴
= 𝑴 × 𝑴
= 16 × 16
……….. 𝜳
Ф𝒊
Lower dimensional Sub-space
Face vector space
Converted
… … . .
16 eigenvectors
Each 16 ×1 dimensional
𝒗𝒊
A=
𝒖𝒊 = 𝑨𝒗𝒊
10304 eigenvectors
………
Each 10304×1 dimensional
𝒖𝒊
𝑀 images in the training set
C = 𝐴𝐴 𝑇
10304 eigenvectors
………
Each 10304×1 dimensional
𝒖𝒊
The K selected eigenface
……….. 𝜳
Ф𝒊
Face vector space
Converted
𝑀= 16 images in the training set
Result of Eigenfaces Calculation
Figure: The selected K eigenfaces of our set of original images
Represent Each Face Image
a Linear Combination of all
K Eigenvectors
𝛚 𝟏 𝛚 𝟐 𝛚 𝟑 𝛚 𝟒 𝛚 𝟓 𝛚 𝐊⋯ ⋯ ⋯
+ 𝜳 (Mean Image)
Each face from Training set can be represented a weighted sum of the K Eigenfaces + the Mean face
𝛚 𝟏 𝛚 𝟐 𝛚 𝟑 𝛚 𝟒 𝛚 𝟓 𝛚 𝐊⋯
+ 𝜳 (Mean Image)
The K selected eigenface
Each face from Training set can be represented a
weighted sum of the K Eigenfaces + the Mean face
………..
Ф𝒊
𝜳
Converted
Face vector space
𝑀= 16 images in the training set
Weight Vector (𝜴𝒊)
𝛚 𝟏 𝛚 𝟐 𝛚 𝟑 𝛚 𝟒 𝛚 𝟓 𝛚 𝐊⋯
+ 𝜳 (Mean Image)
= 𝜴𝒊 =
𝝎1
𝒊
𝝎2
𝒊
𝝎3
𝒊
.
.
.
𝝎 𝑲
𝒊
Each face from Training set can be represented a
weighted sum of the K Eigenfaces + the Mean face
A weight vector 𝛀𝐢 which is the
eigenfaces representation of
the 𝒊𝒕𝒉
face. We calculated
each faces weight vector.
Recognizing An Unknown Face
Convert the
Input to Face
Vector
Normalize the
Face Vector
Project Normalize
Face Vector onto
the Eigenspace
Get the Weight
Vector
𝜴 𝒏𝒆𝒘 =
𝝎 𝟏
𝝎 𝟐
𝝎 𝟑
.
.
.
𝝎 𝑲
Euclidian Distance
(E) = (𝛀 𝒏𝒆𝒘 − 𝛀𝒊)
If
𝑬 < 𝜽 𝒕
No
Unknown
Yes
Input of a
unknown
Image
Recognized as
Thank You

More Related Content

What's hot

Image segmentation with deep learning
Image segmentation with deep learningImage segmentation with deep learning
Image segmentation with deep learningAntonio Rueda-Toicen
 
Introduction to object detection
Introduction to object detectionIntroduction to object detection
Introduction to object detectionBrodmann17
 
Artificial intelligence Pattern recognition system
Artificial intelligence Pattern recognition systemArtificial intelligence Pattern recognition system
Artificial intelligence Pattern recognition systemREHMAT ULLAH
 
Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)Herman Kurnadi
 
What goes on during haar cascade face detection
What goes on during haar cascade face detectionWhat goes on during haar cascade face detection
What goes on during haar cascade face detectionOnibiyo Joshua Toluse
 
6.frequency domain image_processing
6.frequency domain image_processing6.frequency domain image_processing
6.frequency domain image_processingNashid Alam
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image RestorationMostafa G. M. Mostafa
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processingAshish Kumar
 
Content Based Image Retrieval
Content Based Image Retrieval Content Based Image Retrieval
Content Based Image Retrieval Swati Chauhan
 
Image Processing and Computer Vision
Image Processing and Computer VisionImage Processing and Computer Vision
Image Processing and Computer VisionSilicon Mentor
 
Histogram equalization
Histogram equalizationHistogram equalization
Histogram equalization11mr11mahesh
 
Image Registration (Digital Image Processing)
Image Registration (Digital Image Processing)Image Registration (Digital Image Processing)
Image Registration (Digital Image Processing)VARUN KUMAR
 
Fields of digital image processing slides
Fields of digital image processing slidesFields of digital image processing slides
Fields of digital image processing slidesSrinath Dhayalamoorthy
 

What's hot (20)

Eigenfaces
EigenfacesEigenfaces
Eigenfaces
 
Image segmentation with deep learning
Image segmentation with deep learningImage segmentation with deep learning
Image segmentation with deep learning
 
Introduction to object detection
Introduction to object detectionIntroduction to object detection
Introduction to object detection
 
Artificial intelligence Pattern recognition system
Artificial intelligence Pattern recognition systemArtificial intelligence Pattern recognition system
Artificial intelligence Pattern recognition system
 
Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)
 
Face recognition
Face recognitionFace recognition
Face recognition
 
What goes on during haar cascade face detection
What goes on during haar cascade face detectionWhat goes on during haar cascade face detection
What goes on during haar cascade face detection
 
6.frequency domain image_processing
6.frequency domain image_processing6.frequency domain image_processing
6.frequency domain image_processing
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image Restoration
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processing
 
Content Based Image Retrieval
Content Based Image Retrieval Content Based Image Retrieval
Content Based Image Retrieval
 
Chain code in dip
Chain code in dipChain code in dip
Chain code in dip
 
Orb feature by nitin
Orb feature by nitinOrb feature by nitin
Orb feature by nitin
 
Image Processing and Computer Vision
Image Processing and Computer VisionImage Processing and Computer Vision
Image Processing and Computer Vision
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Histogram equalization
Histogram equalizationHistogram equalization
Histogram equalization
 
Image Registration (Digital Image Processing)
Image Registration (Digital Image Processing)Image Registration (Digital Image Processing)
Image Registration (Digital Image Processing)
 
Understandig PCA and LDA
Understandig PCA and LDAUnderstandig PCA and LDA
Understandig PCA and LDA
 
Fields of digital image processing slides
Fields of digital image processing slidesFields of digital image processing slides
Fields of digital image processing slides
 

Viewers also liked

Face recogntion Using PCA Algorithm
Face recogntion Using PCA Algorithm Face recogntion Using PCA Algorithm
Face recogntion Using PCA Algorithm Ashwini Awatare
 
Face recognition technology - BEST PPT
Face recognition technology - BEST PPTFace recognition technology - BEST PPT
Face recognition technology - BEST PPTSiddharth Modi
 
Face recognition ppt
Face recognition pptFace recognition ppt
Face recognition pptSantosh Kumar
 
face recognition system using LBP
face recognition system using LBPface recognition system using LBP
face recognition system using LBPMarwan H. Noman
 
FACE RECOGNITION TECHNOLOGY
FACE RECOGNITION TECHNOLOGYFACE RECOGNITION TECHNOLOGY
FACE RECOGNITION TECHNOLOGYJASHU JASWANTH
 
3 principal components analysis
3  principal components analysis3  principal components analysis
3 principal components analysisDmitry Grapov
 
Steps for Principal Component Analysis (pca) using ERDAS software
Steps for Principal Component Analysis (pca) using ERDAS softwareSteps for Principal Component Analysis (pca) using ERDAS software
Steps for Principal Component Analysis (pca) using ERDAS softwareSwetha A
 
Face Recognition
Face RecognitionFace Recognition
Face Recognitionlaknatha
 
Minor on Face Recognition System using Raspberry Pi
Minor on Face Recognition System using Raspberry PiMinor on Face Recognition System using Raspberry Pi
Minor on Face Recognition System using Raspberry PiNitish Bokolia
 
Introduction to principal component analysis (pca)
Introduction to principal component analysis (pca)Introduction to principal component analysis (pca)
Introduction to principal component analysis (pca)Mohammed Musah
 
Face Recognition Technology
Face Recognition TechnologyFace Recognition Technology
Face Recognition TechnologyAgrani Rastogi
 
Face recognition using neural network
Face recognition using neural networkFace recognition using neural network
Face recognition using neural networkIndira Nayak
 
Face recognition using artificial neural network
Face recognition using artificial neural networkFace recognition using artificial neural network
Face recognition using artificial neural networkSumeet Kakani
 
Facial recognition system
Facial recognition systemFacial recognition system
Facial recognition systemDivya Sushma
 

Viewers also liked (20)

Face recogntion Using PCA Algorithm
Face recogntion Using PCA Algorithm Face recogntion Using PCA Algorithm
Face recogntion Using PCA Algorithm
 
Face recognition technology - BEST PPT
Face recognition technology - BEST PPTFace recognition technology - BEST PPT
Face recognition technology - BEST PPT
 
Face recognition ppt
Face recognition pptFace recognition ppt
Face recognition ppt
 
Face recognition vaishali
Face recognition vaishaliFace recognition vaishali
Face recognition vaishali
 
Principal Component Analysis
Principal Component AnalysisPrincipal Component Analysis
Principal Component Analysis
 
Pca ppt
Pca pptPca ppt
Pca ppt
 
face recognition system using LBP
face recognition system using LBPface recognition system using LBP
face recognition system using LBP
 
FACE RECOGNITION TECHNOLOGY
FACE RECOGNITION TECHNOLOGYFACE RECOGNITION TECHNOLOGY
FACE RECOGNITION TECHNOLOGY
 
Image Processing
Image ProcessingImage Processing
Image Processing
 
Principal component analysis
Principal component analysisPrincipal component analysis
Principal component analysis
 
3 principal components analysis
3  principal components analysis3  principal components analysis
3 principal components analysis
 
Steps for Principal Component Analysis (pca) using ERDAS software
Steps for Principal Component Analysis (pca) using ERDAS softwareSteps for Principal Component Analysis (pca) using ERDAS software
Steps for Principal Component Analysis (pca) using ERDAS software
 
Face Recognition
Face RecognitionFace Recognition
Face Recognition
 
PCA
PCAPCA
PCA
 
Minor on Face Recognition System using Raspberry Pi
Minor on Face Recognition System using Raspberry PiMinor on Face Recognition System using Raspberry Pi
Minor on Face Recognition System using Raspberry Pi
 
Introduction to principal component analysis (pca)
Introduction to principal component analysis (pca)Introduction to principal component analysis (pca)
Introduction to principal component analysis (pca)
 
Face Recognition Technology
Face Recognition TechnologyFace Recognition Technology
Face Recognition Technology
 
Face recognition using neural network
Face recognition using neural networkFace recognition using neural network
Face recognition using neural network
 
Face recognition using artificial neural network
Face recognition using artificial neural networkFace recognition using artificial neural network
Face recognition using artificial neural network
 
Facial recognition system
Facial recognition systemFacial recognition system
Facial recognition system
 

Similar to PCA Face Recognition Using Eigenfaces

Variational Autoencoders For Image Generation
Variational Autoencoders For Image GenerationVariational Autoencoders For Image Generation
Variational Autoencoders For Image GenerationJason Anderson
 
Making BIG DATA smaller
Making BIG DATA smallerMaking BIG DATA smaller
Making BIG DATA smallerTony Tran
 
Muzammil Abdulrahman PPT On Gabor Wavelet Transform (GWT) Based Facial Expres...
Muzammil Abdulrahman PPT On Gabor Wavelet Transform (GWT) Based Facial Expres...Muzammil Abdulrahman PPT On Gabor Wavelet Transform (GWT) Based Facial Expres...
Muzammil Abdulrahman PPT On Gabor Wavelet Transform (GWT) Based Facial Expres...Petroleum Training Institute
 

Similar to PCA Face Recognition Using Eigenfaces (8)

EPFL_presentation
EPFL_presentationEPFL_presentation
EPFL_presentation
 
Variational Autoencoders For Image Generation
Variational Autoencoders For Image GenerationVariational Autoencoders For Image Generation
Variational Autoencoders For Image Generation
 
CBIR Final project1
CBIR Final project1CBIR Final project1
CBIR Final project1
 
Making BIG DATA smaller
Making BIG DATA smallerMaking BIG DATA smaller
Making BIG DATA smaller
 
BTP Presentation
BTP PresentationBTP Presentation
BTP Presentation
 
MSE.pptx
MSE.pptxMSE.pptx
MSE.pptx
 
Muzammil Abdulrahman PPT On Gabor Wavelet Transform (GWT) Based Facial Expres...
Muzammil Abdulrahman PPT On Gabor Wavelet Transform (GWT) Based Facial Expres...Muzammil Abdulrahman PPT On Gabor Wavelet Transform (GWT) Based Facial Expres...
Muzammil Abdulrahman PPT On Gabor Wavelet Transform (GWT) Based Facial Expres...
 
module 1.pdf
module 1.pdfmodule 1.pdf
module 1.pdf
 

More from Md. Atiqur Rahman

Face Recognition Proposal Presentation
Face Recognition Proposal PresentationFace Recognition Proposal Presentation
Face Recognition Proposal PresentationMd. Atiqur Rahman
 
Optical Fiber Communication & Bangladesh
Optical Fiber Communication & BangladeshOptical Fiber Communication & Bangladesh
Optical Fiber Communication & BangladeshMd. Atiqur Rahman
 
Switchgear Equipment in a Substation
Switchgear Equipment in a SubstationSwitchgear Equipment in a Substation
Switchgear Equipment in a SubstationMd. Atiqur Rahman
 
Function of commercial banks in bangladesh
Function of commercial banks in bangladeshFunction of commercial banks in bangladesh
Function of commercial banks in bangladeshMd. Atiqur Rahman
 
Power genaration in bangladesh
Power genaration in bangladeshPower genaration in bangladesh
Power genaration in bangladeshMd. Atiqur Rahman
 

More from Md. Atiqur Rahman (8)

Face Recognition Proposal Presentation
Face Recognition Proposal PresentationFace Recognition Proposal Presentation
Face Recognition Proposal Presentation
 
Aminoglycosides
AminoglycosidesAminoglycosides
Aminoglycosides
 
Optical Fiber Communication & Bangladesh
Optical Fiber Communication & BangladeshOptical Fiber Communication & Bangladesh
Optical Fiber Communication & Bangladesh
 
Collective bargaining
Collective bargainingCollective bargaining
Collective bargaining
 
Switchgear Equipment in a Substation
Switchgear Equipment in a SubstationSwitchgear Equipment in a Substation
Switchgear Equipment in a Substation
 
Function of commercial banks in bangladesh
Function of commercial banks in bangladeshFunction of commercial banks in bangladesh
Function of commercial banks in bangladesh
 
Power genaration in bangladesh
Power genaration in bangladeshPower genaration in bangladesh
Power genaration in bangladesh
 
Cyber crime
Cyber crimeCyber crime
Cyber crime
 

Recently uploaded

UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxAndreas Kunz
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfRTS corp
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shardsChristopher Curtin
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldRoberto Pérez Alcolea
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...Bert Jan Schrijver
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonApplitools
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...OnePlan Solutions
 
Data modeling 101 - Basics - Software Domain
Data modeling 101 - Basics - Software DomainData modeling 101 - Basics - Software Domain
Data modeling 101 - Basics - Software DomainAbdul Ahad
 
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...OnePlan Solutions
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Rob Geurden
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecturerahul_net
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogueitservices996
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsJean Silva
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesKrzysztofKkol1
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slidesvaideheekore1
 
Copilot para Microsoft 365 y Power Platform Copilot
Copilot para Microsoft 365 y Power Platform CopilotCopilot para Microsoft 365 y Power Platform Copilot
Copilot para Microsoft 365 y Power Platform CopilotEdgard Alejos
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITmanoharjgpsolutions
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdfAndrey Devyatkin
 
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingShane Coughlan
 

Recently uploaded (20)

UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository world
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
 
Data modeling 101 - Basics - Software Domain
Data modeling 101 - Basics - Software DomainData modeling 101 - Basics - Software Domain
Data modeling 101 - Basics - Software Domain
 
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecture
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogue
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero results
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slides
 
Copilot para Microsoft 365 y Power Platform Copilot
Copilot para Microsoft 365 y Power Platform CopilotCopilot para Microsoft 365 y Power Platform Copilot
Copilot para Microsoft 365 y Power Platform Copilot
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh IT
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
 
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
 

PCA Face Recognition Using Eigenfaces

  • 1. PCA Based Face Recognition System MD. ATIQUR RAHMAN
  • 2. Face Recognition using PCA Algorithm  PCA-  Principal Component Analysis  Goal-  Reduce the dimensionality of the data by retaining as much as variation possible in our original data set.  The best low-dimensional space can be determined by best principal- components.
  • 3. Eigenface Approach  Pioneered by Kirby and Sirivich in 1988  There are two steps of Eigenface Approach  Initialization Operations in Face Recognition  Recognizing New Face Images
  • 4. Steps  Initialization Operations in Face Recognition  Prepare the Training Set to Face Vector  Normalize the Face Vectors  Calculate the Eigen Vectors  Reduce Dimensionality  Back to original dimensionality  Represent Each Face Image a Linear Combination of all K Eigenvectors  Recognizing An Unknown Face
  • 5. Prepare the Training Set to Face Vector
  • 6. ……….. 112 × 92 10304 × 1𝜞𝒊 Face vector space Images converted to vector Each Image size column vector 𝑀= 16 images in the training set  Convert each of face images in Training set to face vectors
  • 8. Average face vector/Mean image (𝜳) 𝑀= 16 images in the training set ……….. 𝜳 Converted Face vector space Mean Image 𝜳 𝜞𝒊  Calculate Average face vector Save it into face vector space
  • 9. Subtract the Mean from each Face Vector ……….. Ф𝒊 𝜳 Converted Face vector space 𝑀= 16 images in the training set − = 𝜞 𝟏 𝚿 Ф 𝟏 Normalized Face vector
  • 10. Result of Normalization Figure: Normalized Data set
  • 12. Calculate the Covariance Matrix (𝑪) C = 𝑛=1 16 Ф 𝑛 Ф 𝑛 𝑇 = 𝐴𝐴 𝑇 = {(𝑁2× 𝑀). (𝑀 × 𝑁2)} = 𝑁2× 𝑁2 = (10304 × 10304) Where 𝐴 = {Ф1, Ф2, Ф3, … … … ., Ф16} [𝐀 = 𝐍 𝟐 × 𝐌]……….. 𝜳 Ф𝒊 Face vector space Converted 𝑀= 16 images in the training set Converted
  • 13. C = 10304 × 10304 10304 eigenvectors ……… Each 10304×1 dimensional ……….. 𝜳 Ф𝒊 Face vector space 𝒖𝒊 Converted 𝑀= 16 images in the training set  In 𝑪, 𝑵 𝟐 is creating 𝟏𝟎𝟑𝟎𝟒 eigenvectors  Each of eigenvector size is 𝟏𝟎𝟑𝟎𝟒 × 𝟏 dimensional Calculate Eigenvector (𝒖𝒊)
  • 14. C = 10304 × 10304 10304 eigenvectors Each 10304×1 dimensional ……….. 𝜳 Ф𝒊 Face vector space Converted ……… 𝒖𝒊 𝑀= 16 images in the training set  Find the Significant 𝑲 𝒕𝒉 eigenfaces  Where, 𝑲 < 𝑴
  • 15. C = 10304 × 10304 10304 eigenvectors Each 10304×1 dimensional ……….. 𝜳 Ф𝒊 Face vector space Converted ……… 𝒖𝒊 𝑀= 16 images in the training set  Make system slow  Required huge calculation
  • 16.
  • 17.
  • 19. Consider lower dimensional subspace ……….. 𝜳 Ф𝒊 Lower dimensional Sub-space Face vector space Converted 𝑀= 16 images in the training set
  • 20. 𝑳 = 𝑨 𝑻 𝑨 = 𝑴 × 𝑵2 𝑵2 × 𝑴 = 𝑴 × 𝑴 = 16 × 16 … … . . 16 eigenvectors Each 16 ×1 dimensional Calculate eigenvectors 𝒗𝒊 𝒗𝒊 ……….. 𝜳 Ф𝒊 Lower dimensional Sub-space Face vector space Converted 𝑀= 16 images in the training set  Calculate Co-variance matrix(𝑳) of lower dimensional
  • 21. 𝑳 = 𝑨 𝑻 𝑨 = 𝑴 × 𝑵2 𝑵2 × 𝑴 = 𝑴 × 𝑴 = 16 × 16 … … . . 16 eigenvectors Each 16 ×1 dimensional 𝒖𝒊 V/S 𝒗𝒊 𝒗𝒊 ……….. 𝜳 Ф𝒊 Lower dimensional Sub-space Face vector space Converted 10304 eigenvectors ……… Each 10304×1 dimensional 𝒖𝒊 C = 10304 × 10304 v/s 𝑀 images in the training set
  • 22. 𝑳 = 𝑨 𝑻 𝑨 = 𝑴 × 𝑵2 𝑵2 × 𝑴 = 𝑴 × 𝑴 = 16 × 16 Select K best eigenvectors ……….. 𝜳 Ф𝒊 Lower dimensional Sub-space Face vector space Converted … … . . 16 eigenvectors Each 16 ×1 dimensional 𝒗𝒊 Selected K eigenfaces MUST be in The ORIGINAL dimensionality of the Face vector space
  • 24. 𝑳 = 𝑨 𝑻 𝑨 = 𝑴 × 𝑵2 𝑵2 × 𝑴 = 𝑴 × 𝑴 = 16 × 16 ……….. 𝜳 Ф𝒊 Lower dimensional Sub-space Face vector space Converted … … . . 16 eigenvectors Each 16 ×1 dimensional 𝒗𝒊 A= 𝒖𝒊 = 𝑨𝒗𝒊 10304 eigenvectors ……… Each 10304×1 dimensional 𝒖𝒊 𝑀= 16 images in the training set
  • 25. 𝑳 = 𝑨 𝑻 𝑨 = 𝑴 × 𝑵2 𝑵2 × 𝑴 = 𝑴 × 𝑴 = 16 × 16 ……….. 𝜳 Ф𝒊 Lower dimensional Sub-space Face vector space Converted … … . . 16 eigenvectors Each 16 ×1 dimensional 𝒗𝒊 A= 𝒖𝒊 = 𝑨𝒗𝒊 10304 eigenvectors ……… Each 10304×1 dimensional 𝒖𝒊 𝑀 images in the training set
  • 26. C = 𝐴𝐴 𝑇 10304 eigenvectors ……… Each 10304×1 dimensional 𝒖𝒊 The K selected eigenface ……….. 𝜳 Ф𝒊 Face vector space Converted 𝑀= 16 images in the training set
  • 27. Result of Eigenfaces Calculation Figure: The selected K eigenfaces of our set of original images
  • 28. Represent Each Face Image a Linear Combination of all K Eigenvectors
  • 29. 𝛚 𝟏 𝛚 𝟐 𝛚 𝟑 𝛚 𝟒 𝛚 𝟓 𝛚 𝐊⋯ ⋯ ⋯ + 𝜳 (Mean Image) Each face from Training set can be represented a weighted sum of the K Eigenfaces + the Mean face
  • 30. 𝛚 𝟏 𝛚 𝟐 𝛚 𝟑 𝛚 𝟒 𝛚 𝟓 𝛚 𝐊⋯ + 𝜳 (Mean Image) The K selected eigenface Each face from Training set can be represented a weighted sum of the K Eigenfaces + the Mean face ……….. Ф𝒊 𝜳 Converted Face vector space 𝑀= 16 images in the training set
  • 31. Weight Vector (𝜴𝒊) 𝛚 𝟏 𝛚 𝟐 𝛚 𝟑 𝛚 𝟒 𝛚 𝟓 𝛚 𝐊⋯ + 𝜳 (Mean Image) = 𝜴𝒊 = 𝝎1 𝒊 𝝎2 𝒊 𝝎3 𝒊 . . . 𝝎 𝑲 𝒊 Each face from Training set can be represented a weighted sum of the K Eigenfaces + the Mean face A weight vector 𝛀𝐢 which is the eigenfaces representation of the 𝒊𝒕𝒉 face. We calculated each faces weight vector.
  • 33. Convert the Input to Face Vector Normalize the Face Vector Project Normalize Face Vector onto the Eigenspace Get the Weight Vector 𝜴 𝒏𝒆𝒘 = 𝝎 𝟏 𝝎 𝟐 𝝎 𝟑 . . . 𝝎 𝑲 Euclidian Distance (E) = (𝛀 𝒏𝒆𝒘 − 𝛀𝒊) If 𝑬 < 𝜽 𝒕 No Unknown Yes Input of a unknown Image Recognized as