SlideShare a Scribd company logo
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
PCA Based Face Recognition System
PCA Based Face Recognition System
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

PPTX
Gear Quality Parameters
PPTX
Corso di preparazione ai concorsi - Lezione 07 di 13
PPTX
face recognition based on PCA
PPTX
Diabetes Mellitus
PPTX
Hypertension
PPTX
Republic Act No. 11313 Safe Spaces Act (Bawal Bastos Law).pptx
PPTX
Power Point Presentation on Artificial Intelligence
Gear Quality Parameters
Corso di preparazione ai concorsi - Lezione 07 di 13
face recognition based on PCA
Diabetes Mellitus
Hypertension
Republic Act No. 11313 Safe Spaces Act (Bawal Bastos Law).pptx
Power Point Presentation on Artificial Intelligence

What's hot (20)

PPTX
Face Recognition using PCA-Principal Component Analysis using MATLAB
PPTX
Face recognition using PCA
PPT
Eigenface For Face Recognition
PPTX
Face recogntion Using PCA Algorithm
PPTX
Histogram Processing
PPTX
Face Recognition
PPTX
Face recognition using artificial neural network
PPTX
PPT
Face recognition
PPTX
Face recognition
PDF
Eigenfaces
ODP
An Introduction to Computer Vision
PPTX
Application of-image-segmentation-in-brain-tumor-detection
PPTX
Support vector machine
PPTX
BRESENHAM’S LINE DRAWING ALGORITHM
PPTX
Active contour segmentation
PPTX
Computer vision
PPTX
Face detection and recognition report with pi in single poster
PPTX
Facial recognition
Face Recognition using PCA-Principal Component Analysis using MATLAB
Face recognition using PCA
Eigenface For Face Recognition
Face recogntion Using PCA Algorithm
Histogram Processing
Face Recognition
Face recognition using artificial neural network
Face recognition
Face recognition
Eigenfaces
An Introduction to Computer Vision
Application of-image-segmentation-in-brain-tumor-detection
Support vector machine
BRESENHAM’S LINE DRAWING ALGORITHM
Active contour segmentation
Computer vision
Face detection and recognition report with pi in single poster
Facial recognition
Ad

Viewers also liked (20)

PPSX
Face recognition technology - BEST PPT
PPT
Face recognition ppt
PPTX
Face recognition vaishali
PDF
Principal Component Analysis
PPTX
PPT
face recognition system using LBP
PPT
Image Processing
PPTX
Principal component analysis
PPTX
3 principal components analysis
PPTX
Steps for Principal Component Analysis (pca) using ERDAS software
PPTX
Face Recognition
PPSX
PPTX
Minor on Face Recognition System using Raspberry Pi
PPTX
Introduction to principal component analysis (pca)
PPT
Face Recognition Technology
PPTX
Face recognition using neural network
PPTX
Facial recognition system
PPTX
07. PCA
PPTX
Study and Analysis of Novel Face Recognition Techniques using PCA, LDA and Ge...
PPTX
Face recognition technology - BEST PPT
Face recognition ppt
Face recognition vaishali
Principal Component Analysis
face recognition system using LBP
Image Processing
Principal component analysis
3 principal components analysis
Steps for Principal Component Analysis (pca) using ERDAS software
Face Recognition
Minor on Face Recognition System using Raspberry Pi
Introduction to principal component analysis (pca)
Face Recognition Technology
Face recognition using neural network
Facial recognition system
07. PCA
Study and Analysis of Novel Face Recognition Techniques using PCA, LDA and Ge...
Ad

Similar to PCA Based Face Recognition System (8)

PDF
EPFL_presentation
PDF
Variational Autoencoders For Image Generation
PPT
CBIR Final project1
PDF
Making BIG DATA smaller
PDF
BTP Presentation
PPTX
MSE.pptx
PPT
Muzammil Abdulrahman PPT On Gabor Wavelet Transform (GWT) Based Facial Expres...
PDF
module 1.pdf
EPFL_presentation
Variational Autoencoders For Image Generation
CBIR Final project1
Making BIG DATA smaller
BTP Presentation
MSE.pptx
Muzammil Abdulrahman PPT On Gabor Wavelet Transform (GWT) Based Facial Expres...
module 1.pdf

More from Md. Atiqur Rahman (8)

PPTX
Face Recognition Proposal Presentation
PPTX
Aminoglycosides
DOCX
Optical Fiber Communication & Bangladesh
DOCX
Collective bargaining
DOCX
Switchgear Equipment in a Substation
PPTX
Function of commercial banks in bangladesh
PPTX
Power genaration in bangladesh
PPTX
Cyber crime
Face Recognition Proposal Presentation
Aminoglycosides
Optical Fiber Communication & Bangladesh
Collective bargaining
Switchgear Equipment in a Substation
Function of commercial banks in bangladesh
Power genaration in bangladesh
Cyber crime

Recently uploaded (20)

PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
Cost to Outsource Software Development in 2025
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
history of c programming in notes for students .pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
medical staffing services at VALiNTRY
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Computer Software and OS of computer science of grade 11.pptx
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PPTX
assetexplorer- product-overview - presentation
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Design an Analysis of Algorithms II-SECS-1021-03
Why Generative AI is the Future of Content, Code & Creativity?
Cost to Outsource Software Development in 2025
Internet Downloader Manager (IDM) Crack 6.42 Build 41
L1 - Introduction to python Backend.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Design an Analysis of Algorithms I-SECS-1021-03
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Navsoft: AI-Powered Business Solutions & Custom Software Development
history of c programming in notes for students .pptx
How to Choose the Right IT Partner for Your Business in Malaysia
Operating system designcfffgfgggggggvggggggggg
medical staffing services at VALiNTRY
Odoo Companies in India – Driving Business Transformation.pdf
Computer Software and OS of computer science of grade 11.pptx
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
assetexplorer- product-overview - presentation
Odoo POS Development Services by CandidRoot Solutions
PTS Company Brochure 2025 (1).pdf.......
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Design an Analysis of Algorithms II-SECS-1021-03

PCA Based Face Recognition System

  • 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
  • 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