Linear and Generalized Linear Models for Analyzing Face Recognition - - PowerPoint PPT Presentation

linear and generalized linear models for analyzing face
SMART_READER_LITE
LIVE PREVIEW

Linear and Generalized Linear Models for Analyzing Face Recognition - - PowerPoint PPT Presentation

Linear and Generalized Linear Models for Analyzing Face Recognition Performance J. Ross Beveridge Colorado State University Page 1 Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Credit Where Credit is Due Bruce Draper


slide-1
SLIDE 1

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 1

Linear and Generalized Linear Models for Analyzing Face Recognition Performance

  • J. Ross Beveridge

Colorado State University

slide-2
SLIDE 2

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 2

Credit Where Credit is Due …

  • Bruce Draper ……... CSU Computer Science
  • Geof Givens ………. CSU Statistics
  • Jonathon Phillips …. NIST
  • Graduate Students

– Wendy Yambor, Kai She, David Bolme, Kyungim Baek, Marcio Teixeira, David Bolme, Ben Randall, Trent Williams, Jilmil Saraf, Ward Fisher

slide-3
SLIDE 3

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 3

Glasses Bangs Facial Hair Mouth Smiling? Eyes Age Gender Race

What Factors (Covariates) ?

slide-4
SLIDE 4

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 4

Subject Image Data

slide-5
SLIDE 5

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 5

Yes, Yes, FER(R)ET Again …

http://www.rollmop.org/ferrets/

slide-6
SLIDE 6

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 6

  • 1,072 Human Subjects from the FERET Data
  • 2,144 FERET Images
  • Exactly 2 images per subject, taken on same day

Subject Image Data

slide-7
SLIDE 7

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 7

Collecting the Covariates

slide-8
SLIDE 8

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 8

Age Young Old Gender Male Female Race White Black Asian Other Skin Clear Other Bangs No Yes Expression Neutral Other Eyes Open Other Facial Hair No Yes Makeup No Yes Mouth Closed Other Glasses No Yes FERET Subject/Image Covariates Fixed Per Subject Fixed Per Image

Our Subject Covariates

slide-9
SLIDE 9

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 9

http://www.cs.colostate.edu/evalfacerec/index.html

PCA IIDC EBGM Three Algorithms

Standard Algorithms to Test

slide-10
SLIDE 10

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 10

Refinement of NIST preprocessing used in FERET.

  • Integer to float conversion

– 256 gray levels to single-floats

  • Geometric Normalization

– Human chosen eye centers.

  • Masking

– Elliptical mask around face.

  • Histogram Equalization

– Equalize unmasked pixels

  • Pixel normalization

– Shift and scale pixel values so mean pixel value is zero and standard deviation over all pixels is one.

NIST FERET Image Preprocessing

slide-11
SLIDE 11

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 11

  • Best, but infeasible, solution

– Disjoint images, same set of human subjects. – But, subject replicate images limited in FERET.

  • Next best choice

– Train on exactly those images used in the study.

Training

slide-12
SLIDE 12

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 12

Performance Variable?

  • Recognition Rate?

– Defined over a set of people, not per person.

  • Similarity score?

– Defined per person. – Linear models, ... – But, what does this tell us about actual performance?

  • Probability of being recognized at Rank 1?

– Defined per person. – Non-linear modeling problem.

  • Probability of being correctly verified at given FAR?

– Defined per person. – Non-linear modeling problem.

slide-13
SLIDE 13

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 13

Covariates

Algorithm Age Race Gender Skin Glasses Facial Hair Makeup Bangs Expression Mouth Eyes

Sampled Normalized Similarity Scores

Predict:

similarity scores from covariate combinations

Linear Model (ANOVA)

Statistical Modeling Overview

slide-14
SLIDE 14

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 14

Covariates

Algorithm Age Race Gender Skin Glasses Facial Hair Makeup Bangs Expression Mouth Eyes

Sampled Normailzed Similarity Scores Sampled Recognition Ranks

Generalized Linear Model Predict:

similarity scores from covariate combinations

Predict:

probability of correct recognition from covariate combinations

Linear Model (ANOVA)

Statistical Modeling Overview

slide-15
SLIDE 15

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 15

Yi = Similiarity (Distance) metric for image pair i. Xi = Algorithm & Human covariate factors for image pair i. β = Parameters quantifying factor effects. Yi = β0 + β1Xi1 + β2Xi2 + … + εi with εi ~ iid Normal(0, σ2) Linear Model - Similarity (Distance)

slide-16
SLIDE 16

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 16

Yi = Was the ith image pair matched at rank 1 ? (i.e. Yi = 1 if Ri = 1 and otherwise Yi = 0) Xi = Algorithm & Human covariate factors for image pair i. β = Parameters quantifying factor effects. g(µYi|Xi) = β0 + β1Xi1 + β2Xi2 + … + εi Yi | Xi ~ f(µYi|Xi) independently Now: g(z) = log (z/(1-z)), f(µYi|Xi) = Bernoulli(µYi|Xi) Generalized Linear Model Pr(correct rank one recognition)

slide-17
SLIDE 17

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 17

Look at age holding all other covariates fixed.

No No Glasses Old Base Covariate Closed No No Open Neutral No Clear White Male Old Closed Mouth No Makeup No Facial Hair Open Eyes Neutral Expression No Bangs Clear Skin White Race Male Gender Young Age

Similarity Scores - LM

  • 13.0% Increase in similarity
  • p-value < 0.0001
  • Older is easier.

Pr(rank-one) - GLM

  • Pr(crk=1) = 0.916 Base
  • Pr(crk=1) = 0.951 Old
  • p-value = 0.009
  • Older is easier.

What Do Models Tell Us? PCA Algorithm Example.

slide-18
SLIDE 18

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 18

Look at gender holding all other covariates fixed.

Similarity Scores - LM

  • 1.7% decrease in similarity
  • p-value < 0.33
  • Gender is not significant.

Pr(rank-one) - GLM

  • Pr(crk=1) = 0.915 Base
  • Pr(crk=1) = 0.884 Female
  • p-value = 0.0925
  • Gender is not significant

No No Glasses Old Base Covariate Closed No No Open Neutral No Clear White Female Young Closed Mouth No Makeup No Facial Hair Open Eyes Neutral Expression No Bangs Clear Skin White Race Male Gender Young Age

What Do Models Tell Us? PCA Algorithm Example.

slide-19
SLIDE 19

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 19

  • Don’t try to read this …
  • Standards for evaluating and reporting results important.

Model Validation & p-values

slide-20
SLIDE 20

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 20

GLM with Three Algorithms

slide-21
SLIDE 21

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 21

Change to Baseline Predicted Pr(crk=1)

Subject Old

HARDER EASIER

Age: Young vs. Old

slide-22
SLIDE 22

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 22

Eyes: Open vs. Closed Change to Baseline Predicted Pr(crk=1) Eyes Closed

HARDER EASIER

slide-23
SLIDE 23

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 23

Verification Performance

Covariates

Age Gender Bangs Facial Hair Eyes

Sampled verification

  • utcomes at

different false alarm rates

Generalized Linear Mixed effect Model (GLMM) Predict:

probability of correct verification from covariate and false alarm rate combinations

slide-24
SLIDE 24

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 24

Verification Outcomes at Fixed False Alarm Rate α

Two Images per Subject Example 50 x 50 Similarity Matrix

slide-25
SLIDE 25

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 25

Verification Outcomes at Fixed False Alarm Rate α

Two Images per Subject Example 50 x 50 Similarity Matrix

1) Set FAR α, e.g. α = 1/250

slide-26
SLIDE 26

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 26

Verification Outcomes at Fixed False Alarm Rate α

1) Set FAR α, e.g. α = 1/250 2) Indicate people correctly verified at threshold corresponding to

α

Two Images per Subject Example 50 x 50 Similarity Matrix

slide-27
SLIDE 27

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 27

Verification Indicator Variable and FAR settings

  • Our study - 1,072 x 1,072 similarity matrix.

– 1,072 match scores, – 1,148,112 non-match scores.

Setting FAR () Rate per 10,000 1 1/10,000 1 2 1/5,000 2 3 1,2,500 4 4 1/1,000 10 5 1/500 20 6 1/250 40 7 1/100 100

Indicator Variable Y for each subject for each FAR setting: 1 verified 0 otherwise 7 settings total.

slide-28
SLIDE 28

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 28

Linearity of Log Odds against Log FAR - FERET+PCA

ln p 1 p

  • , p verification probability

ln VR 1VR

slide-29
SLIDE 29

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 29

Linearity of Log Odds against Log FAR - FRVT

slide-30
SLIDE 30

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 30

Generalized Linear Mixed Model (GLMM)

  • Let A and B be 2 factors that might influence algorithm
  • performance. For example, age and gender.

– Example factor settings A=a and B=b.

  • Let j index the FAR setting, αj
  • Ypabj is

– 1 if Person p is verified correctly, – 0 otherwise.

  • Ypabj depends on:

– person p, – factors A and B, and – false alarm rate αj.

Analysis is: Mixed Effects Logistic Regression with Repeated Measures on People.

slide-31
SLIDE 31

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 31

GLMM Model Continued …

Ypabj isBernoulli R.V. withsuccess probability ppabj log ppabj 1 ppabj

  • = µ + Aa + Bb + j log j

( )+ Aa aj log j ( )+ p

µ = grand mean Aa = effect of setting a of factor A Bb = effect of setting b of factor B j log j

( )

= log lineareffect of j ajAa log j

( )

= interaction effect p =

  • subjectid. randomeffect(nextpage)
slide-32
SLIDE 32

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 32

Subject Variation - The Mixed in Generalized Linear Mixed effect Model

1, .. , 1,072

[ ]

T ~ Multivariate Normal where

E p

( ) = 0, Var p =

2,

Cor y pab, y

p a b

  • (

) =

if p =

  • p

if p

  • p
  • The outcomes, i. e. verification success/failure, are

uncorrelated when testing different people but correlated when testing the same person under different configurations. This means:

slide-33
SLIDE 33

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 33

Random Effects are Important GLMM vs. GLM

  • Some people are harder to recognize then others.

Removing the “noise” of random effects helps reveal other significant effects of interest.

  • But, we don’t care who specifically is hard or easy.
slide-34
SLIDE 34

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 34

Marginal Verification Rates - Age

Verification Frequency False Accepts per 10,000

slide-35
SLIDE 35

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 35

Results of the Model - Age

Fitted Verification Probability False Accepts per 10,000

slide-36
SLIDE 36

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 36

Marginal Verification Rates - Bangs

Verification Frequency False Accepts per 10,000

slide-37
SLIDE 37

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 37

Results of the Model - Bangs

Fitted Verification Probability False Accepts per 10,000

slide-38
SLIDE 38

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 38

Results of the Model - Gender

Fitted Verification Probability False Accepts per 10,000

slide-39
SLIDE 39

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 39

Step Back: Why use Linear Models and Generalized Linear Models

F1 F2 F3 Fk … Start with a set of factors - covariates These may be … Properties of the subject: age, etc. Properties of the scene: lighting, etc. Properties of the image: Focus Resolution Contrast …

slide-40
SLIDE 40

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 40

Step Back: Why use Linear Models and Generalized Linear Models

F1 F2 F3 Fk … Generalized Linear Model P success | F

1,F 2,F 3,K,F k

( )

A Descriptive Function, Probability

  • f success

given covariate values May be a Quality Measure

slide-41
SLIDE 41

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 41

Thank You

slide-42
SLIDE 42

Ross Beveridge, Biometric Quality Workshop, March 9, 2006 Page 42

LM with Three Algorithms