dr sebastien marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · befo re sta...

98
Dr S ´ ebastien Marcel [email protected] IDIAP Research Institute Martigny, Switzerland http://www.idiap.ch Face Detection and Recognition, Dr S. Marcel, 2007 – p.1/98

Upload: others

Post on 23-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

A Tutorial on Fa e Dete tion and Re ognitionDr Sebastien Marcel

[email protected]

IDIAP Research Institute

Martigny, Switzerland

http://www.idiap.ch

Face Detection and Recognition, Dr S. Marcel, 2007 – p.1/98

Page 2: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Before StartingMI2 not IM2

Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Page 3: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Before StartingMI2 not IM2→ How to do this ?

Face Detection and Recognition, Dr S. Marcel, 2007 – p.3/98

Page 4: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Introdu tion• Automati fa e re ognition is still a hallenging problem with manyappli ations,

• Two modes for fa e re ognition:� identi� ation: establish the identity of a given person out of a poolof N people (1-to-N mat hing),� veri� ation (or authenti ation): on�rm or deny the identity laimedby a person (1-to-1 mat hing),• Distin t appli ations:� identi� ation: video surveillan e (publi pla es, restri ted areas),information retrieval (poli e databases, multimedia datamanagement) or human omputer intera tion (video games, personalsettings identi� ation),� veri� ation: a ess ontrol, su h as omputer or mobile devi e log-in,building gate ontrol, digital multimedia data a ess.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.4/98

Page 5: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

⊲ Appli ations

• Fa e Dete tion

• Fa e Re ognition

• Con lusion

• CreditsFace Detection and Recognition, Dr S. Marcel, 2007 – p.5/98

Page 6: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Appli ation Examples• Biometri s

• Content-based Image/Video Indexing and Retrieval (CBIR)

Face Detection and Recognition, Dr S. Marcel, 2007 – p.6/98

Page 7: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Appli ation Examples⊲ Biometri s:� se ure transa tions and se ure a ess to online servi es

∗ mi ro payment servi es,

∗ phone ard reloading,

∗ remote pur hase,

∗ telephone banking, ...� embedded appli ations:∗ PIN ode repla ement,∗ lo k/unlo k devi e,∗ personal data prote tion (agenda, address book), ...

• Content-based Image/Video Indexing and Retrieval (CBIR)

Face Detection and Recognition, Dr S. Marcel, 2007 – p.7/98

Page 8: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Biometri s: Targeted Appli ations• PC or laptop:

• Mobile/PDA: built-in mi rophone, video amera and also �ngerprints anner (Fujitsu DoCoMo F902i, Pantech PG-6200, Radio Co. WX310J, Omron, ...)

Face Detection and Recognition, Dr S. Marcel, 2007 – p.8/98

Page 9: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Biometri s: Example• Automati fa e veri� ation system:• Why veri� ation ?:� veri� ation is more simple to design,� veri� ation s ales well to identi� ation,� a lot of databases as well as stri t experiment proto ols exist,� identi� ation and veri� ation often share the same feature extra tionand lassi� ation algorithms,� fa e dete tion/lo alization is also in luded.

• Demo: BioLogin.Face Detection and Recognition, Dr S. Marcel, 2007 – p.9/98

Page 10: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Appli ation Examples× Biometri s

⊲ Content-based Image/Video Indexing and Retrieval (CBIR):� automati annotation of personal photos and home videos,� multimedia data management and organisation,� automati indexing by image/video ontent, by (Exif) metadata(time, lo ation via GPS tags, ...)� tools to fa ilitate sear h in large (photo) olle tions (QBE, QBT, ...).

Face Detection and Recognition, Dr S. Marcel, 2007 – p.10/98

Page 11: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

CBIR: Targeted Appli ations• Photo Sharing and Automati Annotation of Photo Albums:� PolarRose (http://www.polarrose. om): fa e dete tion andre ognition,� Riya (www.riya. om): fa e dete tion, fa e re ognition and textre ognition.

• Visual shopping: Like (www.like. om)• Photo Corre tion: SilverWire (www.silverwire. om)• Others:� myHeritage (www.myheritage. om): fa e dete tion in family photos,� Nevenvision: fa e dete tion and re ognition (a quired by Google in2006),� Google (www.google. om) with Pi asa (pi asa.google. om).

Face Detection and Recognition, Dr S. Marcel, 2007 – p.11/98

Page 13: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Appli ations

⊲ Fa e Dete tion

• Fa e Re ognition

• Con lusion

• CreditsFace Detection and Recognition, Dr S. Marcel, 2007 – p.13/98

Page 14: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

⊲ Fa e Dete tion� Goal and Challenges� Feature-based vs Appearan e-based Approa hes� Frontal Fa e Dete tion� Multi-View Fa e Dete tion� Experiment Results� Dis ussion

• Fa e Re ognition• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.14/98

Page 15: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Goal and Challenges• Goal:� determine if there are any fa e in an image (or video),� provide lo ation, size and eventually orientation for all fa es.• Challenges� high variability of the fa e in shape, olor and texture,� lighting onditions, pose, ba kground, o lusions.

→ Fa e dete tion is the �rst step to any fa e pro essing systems

Face Detection and Recognition, Dr S. Marcel, 2007 – p.15/98

Page 16: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Feature-based vs Appearan e-based Approa hes• Feature-based approa hes (without Ma hine Learning �a priori�)• Appearan e-based approa hes (with Ma hine Learning inside !!)

Face Detection and Recognition, Dr S. Marcel, 2007 – p.16/98

Page 17: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Feature-based vs Appearan e-based Approa hes• Feature-based approa hes:� make expli it use of fa e knowledge:

∗ lo al features of the fa e (nose, mouth, eyes),∗ stru tural relationship between these fa ial features.� are generally used for fa e lo alization (one fa e),� require good quality images,� are robust to illumination onditions, o lusions and viewpoint,� but may also be omputationnaly expensive.

• Appearan e-based approa hesFace Detection and Recognition, Dr S. Marcel, 2007 – p.17/98

Page 18: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Feature-based vs Appearan e-based Approa hes• Feature-based approa hes:� make expli it use of fa e knowledge:

∗ lo al features of the fa e (nose, mouth, eyes),∗ stru tural relationship between these fa ial features.� . . .the dete tion of lo al features is often done using appearan e-basedapproa hes !

• Appearan e-based approa hes:� onsider fa e dete tion as a two- lass pattern re ognition problem,� rely on statisti al learning methods to build a fa e/non-fa e lassi�erfrom training samples,� are used for fa e dete tion in images with low resolution,� have re eived onsiderable attention,� have proven to be more su essful and robust than feature-basedapproa hes.Face Detection and Recognition, Dr S. Marcel, 2007 – p.18/98

Page 19: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Feature-based vs Appearan e-based Approa hes• Feature-based approa hes:� make expli it use of fa e knowledge:

∗ lo al features of the fa e (nose, mouth, eyes),∗ stru tural relationship between these fa ial features.� . . .the dete tion of lo al features is often done using appearan e-basedapproa hes !

• Appearan e-based approa hes:� onsider fa e dete tion as a two- lass pattern re ognition problem,� rely on statisti al learning methods to build a fa e/non-fa e lassi�erfrom training samples,� are used for fa e dete tion in images with low resolution,� have re eived onsiderable attention,� have proven to be more su essful and robust than feature-basedapproa hes.Face Detection and Recognition, Dr S. Marcel, 2007 – p.19/98

Page 20: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Main on epts of Appearan e-based Approa hes1. s anning window : this is the root idea of appearan e-based methods: asliding window s ans the input image at di�erent lo ations and s ales.2. fa e/non-fa e lassi�er : Ea h sub-window is then given to a lassi�erwhose goal is to lassify the sub-window as either a fa e or a non-fa e.3. merging overlapped dete tions: Multiple dete tions at di�erent lo ationsand s ales may o ur around a fa e in the image.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.20/98

Page 21: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Main on epts of Appearan e-based Approa hes

• Appearan e-based methods mainly di�er in the hoi e of the lassi�er:Support Ve tor Ma hines, Neural Networks, Bayesian lassi�ers orHidden Markov Models.• We will report here the most signi� ant appearan e-based approa hesboth for frontal fa e dete tion and multi-view fa e dete tion.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.21/98

Page 22: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

⊲ Fa e Dete tion

× Goal and Challenges

× Feature-based vs Appearan e-based Approa hes⊲ Frontal Fa e Dete tion

⊲ State-of-the-art

∗ Boosting-based Methods� Multi-View Fa e Dete tion� Experiment Results� Dis ussion• Fa e Re ognition• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.22/98

Page 23: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

State-of-the-art• Literature review:� Sung and Poggio [1998℄: Prin ipal Component Analysis (PCA),Gaussian Mixture Models and Neural Networks,� Rowley et al. [1998℄: ensemble of Neural Networks whi h works onpixel intensities,

Face Detection and Recognition, Dr S. Marcel, 2007 – p.23/98

Page 24: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

State-of-the-art• Literature review:� Sung and Poggio [1998℄: Prin ipal Component Analysis (PCA),Gaussian Mixture Models and Neural Networks,� Rowley et al. [1998℄: ensemble of Neural Networks whi h works onpixel intensities,� Féraud et al. [1997-2001℄: proposed the Constrained GenerativeModel (CGM),

CGM 1

Front view 1

Front view 2

CGM 2

CGM 3

Side view 1

CGM 4

Side view 2

Gate

MLP

Face

non

Face

����������

����������

Filter

MLP

grayscale image

non

Face

Decision

( > 90 %) ......

... ...INPUTS OUTPUTS

Face Detection and Recognition, Dr S. Marcel, 2007 – p.24/98

Page 25: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

State-of-the-art• Literature review:� Sung and Poggio [1998℄: Prin ipal Component Analysis (PCA),Gaussian Mixture Models and Neural Networks,� Rowley et al. [1998℄: ensemble of Neural Networks whi h works onpixel intensities,� Féraud et al. [1997-2001℄: proposed the Constrained GenerativeModel (CGM),� Ben-Ya oub et. al [1999℄: MLP and FFT� Roth et. al [2002℄: Sparse Network of Winnows (SNoW)

• Dis ussion:� Advantages: provide a urate dete tion with few false alarms.� Drawba ks: need several se onds at best to pro ess an image(sub-windows need to be photometri ally normalized before lassi� ation).This limitation is restri tive for real-life appli ations thatneed real-time fa e dete tion (> 15 frames per se ond)

Face Detection and Recognition, Dr S. Marcel, 2007 – p.25/98

Page 26: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

State-of-the-art• Literature review:� Pavlovi and Garg [2001℄: boosting pixel-based lassi�ers,� Viola and Jones [2001℄: the �rst real-time frontal fa e dete tionsystem based on boosting learning (AdaBoost)

∗ simple image features (Haar-Like) an be omputed at anyposition and s ale in onstant time using the integral imagerepresentation,∗ weak- lassi�ers are assembled into strong lassi�ers usingboosting,∗ a as ade of strong lassi�ers with in reasing omplexity is built.

2τ>Mτ>

1τ<2τ<

Mτ<

1τ>M

H (x)

reject subwindow (Non Face)

Face

all candidatesubwindows

H (x)1

H (x)2

Face Detection and Recognition, Dr S. Marcel, 2007 – p.26/98

Page 27: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

State-of-the-art• Literature review:� Pavlovi and Garg [2001℄: boosting pixel-based lassi�ers,� Viola and Jones [2001℄: the �rst real-time frontal fa e dete tionsystem based on a boosting learning (AdaBoost)

∗ simple image features (Haar-Like) an be omputed at anyposition and s ale in onstant time using the integral imagerepresentation,

∗ weak- lassi�ers are assembled into strong lassi�ers usingboosting,

∗ a as ade of strong lassi�ers with in reasing omplexity is built.

• Breakthrough: sin e the work of Viola and Jones most of the resear h infa e dete tion has fo used on boosting-based methods and alternatives� Alternative boosting algorithm,� Alternative ar hite ture design,� Alternative feature set.Face Detection and Recognition, Dr S. Marcel, 2007 – p.27/98

Page 28: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

⊲ Fa e Dete tion

× Goal and Challenges

× Feature-based vs Appearan e-based Approa hes⊲ Frontal Fa e Dete tion

× State-of-the-art

⊲ Boosting-based Methods� Multi-View Fa e Dete tion� Experiment Results� Dis ussion• Fa e Re ognition• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.28/98

Page 29: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Literature review on Boosting-based methods• Alternative boosting algorithms:� Lienhart et al. [2002℄: ompared three boosting algorithms (Dis rete,Real and Gentle AdaBoost),� Viola and Jones [2002℄: Asymmetri AdaBoost,� Ma and Ding [2003℄: CS-AdaBoost,� Li and Zhang [2004℄: FloatBoost,� and my others: Kullba k-Leibler Boosting, LogitBoost,Jensen-Shannon Boosting, Ve tor Boosting or MRC-Boosting.

• Alternative as ade ar hite ture:� Lienhart et al. [2002℄: used de ision trees as weak lassi�ers insteadof simple de ision stumps,� Wu et al. [2004℄: des ribed a nested as ade stru ture,� Brubaker et al. [2005℄: introdu ed a new riterion for as adetraining (stage thresholds and number of weak lassi�ers).

Face Detection and Recognition, Dr S. Marcel, 2007 – p.29/98

Page 30: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Literature review on Boosting-based methods• Alternative feature sets:� Lienhart et al. [2002℄: proposed a �rst extended set of Haar-Likefeatures and provided an Open Sour e fa e dete tor (OpenCV),

� Li and Zhang [2004℄: proposed a se ond extended set of Haar-likefeatures,

dx

dy

dx’

x

y

dx

dy

y

x

dx’

dx

dy

y

x� Fröba and Ernst [2004℄: used a Modi�ed version of the CensusTransform (MCT) to build weak lassi�ers,� Hadid et al, Jin et al. and Zhang et al. [2004℄: used Lo al BinaryPattern (LBP) features.LBP is be oming a very popular te hnique due to its simpli ity and itsinteresting monotoni grays ale invariant property.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.30/98

Page 31: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Haar-Like Features• Haar-like features are derived from Haar wavelets:• A Haar-like feature is omputed by summing the pixels in the whiteregion and subtra ting those in the dark region.• Haar-like features an be omputed very qui kly at any s ale andposition in onstant time with the integral image.

BA

D FE

C

S S1 2

integral image

• For example, to ompute the illustrated feature only 6 table a esses and7 simple operations are needed. The feature value is: S1 − S2, with

S1 = E − B − D + A and S2 = F − C − E + B.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.31/98

Page 32: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Lo al Binary Patterns• Original LBP operator: 3x3 kernel whi h summarizes the lo al spatialstru ture of an image.

83 75 126

99 95 141

91 91 100

0 0

0 10

1

1

1 binary: 00111001decimal: 57

comparisonwith the center

binary intensity

• LBPP,R: P equally spa ed pixels on a ir le of radius R.

• LBPu2P,R: only uniform patterns (at most two bitwise 0 to 1 or 1 to 0transitions)

• Other variants: Improved LBP, Extended LBP.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.32/98

Page 33: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Lo al Binary Patterns• Properties:� Very low omputational ost� Powerful texture des riptor� Invariant to monotoni gray-s ale transformation

� LBP an be omputed also very qui kly at any s ale and position in onstant time with the integral image.• Potential Appli ations:� Texture lassi� ation� Fa e dete tion/re ognition, image retrieval, motion dete tion,medi al image analysis, surfa e inspe tion, ..

Face Detection and Recognition, Dr S. Marcel, 2007 – p.33/98

Page 34: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Integral Image• The integral image representation or summed area table was �rstintrodu ed by [Crow:1984℄ for texture mapping,• At a given lo ation (x; y) in an image, the value of the integral image

ii(x; y) is the sum of the pixels above and to the left of (x; y):ii(x; y) =

x′≤x,y′≤y

i(x′; y′),

where i(x′; y′) is the pixel value of the original image at lo ation (x′; y′)

• If s(x; y) is the umulative row sum, with s(x;−1) = 0 and

s(−1; y) = 0, the integral image an be omputed in one pass over theoriginal image using the following pair of re urren es:

s(x; y) = s(x; y − 1) + i(x; y), (1)

ii(x; y) = ii(x − 1; y) + s(x; y). (2)

Face Detection and Recognition, Dr S. Marcel, 2007 – p.34/98

Page 35: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Boosting Learning• The underlying idea of boosting a is to linearly ombine simple lassi�ers hj(X) to build a strong ensemble H(X) =

∑n

j=1 wjhj(X),• The sele tion of the weak lassi�ers hj(X) as well as the estimation ofthe weights wj are learned by the boosting pro edure,• Ea h lassi�er hj(X) aims to minimize the lassi� ation training error ona parti ular distribution of the training samples,• At ea h iteration (i.e. for ea h weak lassi�er), the boosting pro edureupdates the weight of ea h sample su h that the mis lassi�ed ones getmore weighting the next iteration,• Boosting hen e fo uses on the examples that are hard to lassify.

• Variants of Boosting mainly di�er in the iterative reweigting pro ess ofthe training samples.• AdaBoost [Freund:1996℄ is probably the most well known.

aA complete introduction to the theoretical basis of boosting and its applications

can be found in [Ratsch:2003] Face Detection and Recognition, Dr S. Marcel, 2007 – p.35/98

Page 36: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Weak Classi�ers of Haar-Like Features• The feature set F is obtained by varying the size and position of ea htype of Haar-like features.

• A weak lassi�er hj(X) thus onsists of a Haar-like feature f , athreshold θ and a parity p indi ating the dire tion of the inequality:

hj(X) =

{

1 if p · f(X) < p · θ,

0 otherwise.(3)

• Su h lassi�er an be seen as a single-node de ision tree, also alledde ision stump.Face Detection and Recognition, Dr S. Marcel, 2007 – p.36/98

Page 37: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Cas ade Ar hite ture: Motivation• Considering a set of images:� the dete tion rate of a fa e dete tor is de�ned as the number of orre tly dete ted fa es over the total number of fa es in the test set.� A false alarm is a ounted ea h time the system badly lassi�es aba kground region as a fa e.• A higher dete tion rate (with less false alarms) an be a hieved byin reasing the number n of weak lassi�ers hj(X) of the ensemble

H(X),

• On the other hand, in reasing n will also in rease the omplexity of theensemble and then the omputation time.• To deal with the trade-o� performan e vs. omputation time, Viola andJones propose a as ade stru ture of ensembles:� This framework is motivated by the nature of the problem whi h is arare event dete tion problem.� In an image, only a very small number of sub-windows ontain a fa e(generally < 0.1%).

Face Detection and Recognition, Dr S. Marcel, 2007 – p.37/98

Page 38: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Cas ade Ar hite ture: Des ription• A as ade ar hite ture works as a degenerated de ision tree. At ea hstage, the lassi�er either reje ts the sample and the pro ess stops, ora epts it and the sample is forwarded to the next stage.

2τ>Mτ>

1τ<2τ<

Mτ<

1τ>M

H (x)

reject subwindow (Non Face)

Face

all candidatesubwindows

H (x)1

H (x)2

• Ea h ensemble Hi(X) is designed to dete t almost all fa es (>99%)while reje ting as mu h ba kground regions as possible. This is done byadjusting the thresholds τi on a validation set.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.38/98

Page 39: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Cas ade Ar hite ture: Des ription2τ>

Mτ>

1τ<2τ<

Mτ<

1τ>M

H (x)

reject subwindow (Non Face)

Face

all candidatesubwindows

H (x)1

H (x)2

• The �rst ensemble H1(X), omposed of only two features, reje tsapproximately 50% of the ba kground sub-windows.• As the task be omes more di� ult, the next ensembles ontain moreweak lassi�ers. With su h a simple-to- omplex approa h, most of theba kground regions are qui kly dis arded early in the as ade and onlyfa e sub-windows should pass over all the as ade.

• Viola and Jones ompare a as ade of ten 20-feature lassi�ers with amonolithi 200-feature lassier. They report that the a ura y of both lassi�ers is not signi� antly di�erent, but that the as ade versionperforms almost 10 times faster.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.39/98

Page 40: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

⊲ Fa e Dete tion

× Goal and Challenges

× Feature-based vs Appearan e-based Approa hes× Frontal Fa e Dete tion⊲ Multi-View Fa e Dete tion

⊲ State-of-the-art∗ Boosting-based Methods∗ Pyramid-Cas ade Ar hite ture� Experiment Results� Dis ussion

• Fa e Re ognition• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.40/98

Page 41: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Multi-View Fa e Dete tion• Multi-view = multiple views (or pose) of the fa e• In-plane rotation (roll) [In-plane views℄:• Frontal to pro�le out-of-plane rotation (pan) [Out-plane views℄:

• Up-down nodding rotation (tilt),• Combinations are also possible.The di�erent viewpoints largely in rease the variety of fa e appearan e andmake the dete tion of multi-view fa es mu h more di� ult than the dete tionof frontal fa es.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.41/98

Page 42: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Multi-View Fa e Dete tion• Several ar hite tures have been proposed: parallel, pose estimator +single model, pyramid.

F

NF

F

NF

F

NF

F

NF

F

NF

F

NF

F

NF

F

NF

F

NF

F F FF

NF

NF

F F F

F

NF NF

NF NF NF NF

F

NF

F

NF

(2) pose estimator (decision tree)

(3) pyramid

(1) parallel

Face Detection and Recognition, Dr S. Marcel, 2007 – p.42/98

Page 43: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Multi-View Fa e Dete tion• parallel: this stru ture involves applying all fa e models. A votingstrategy is then used to merge the output of ea h model whi h hasdete ted a fa e. The main drawba k of this approa h is that the omputational ost linearly grows with the number of views.• pose estimator + single model: this ar hite ture an be seen as ade ision tree stru ture. The root node �rst tries to predi t the view, andthen the orresponding fa e model is applied. This approa h is mu hfaster but may also be less a urate be ause it fully relies on the viewestimator.

• pyramid: a oarse-to-�ne view-partition strategy is adopted. The toplevel is trained with all views. In the next levels, the full range of views ispartitioned into in reasingly smaller subranges and a lassi�er is trainedfor ea h subrange. If a sample is lassi�ed as a fa e, it goes to the nextlevel. Otherwise, it passes through the next lassi�er of the urrent level.If the last lassi�er of a layer still does not a ept the sample as a fa e,the sample is reje ted and the pro ess stops. One drawba k of thisstru ture is that if a non-fa e sample passes a level, it has to be sent toall the lassi�ers of the next level, whi h is time onsuming.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.43/98

Page 44: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

State-of-the-art• Literature review:� Rowley et al. [1998℄: extended their frontal fa e dete tor based onneural networks to a 360◦ in-plane rotation invariant system (poseestimator ar hite ture),� Viola and Jones [2003℄: used a pose estimator and trained a as adeof Haar-like features for ea h views,� Gar ia and Delakis [2004℄: proposed a onvolutional neural networkar hite ture to dete t ±20◦ in-plane and ±60◦ out-of-plane rotatedfa es.� Y. Li et al. [2004℄: used Sobel images, PCA and Support Ve torMa hines both for pose estimation and fa e models (this method is omputationnaly expensive and require motion and skin olorpruning).

Face Detection and Recognition, Dr S. Marcel, 2007 – p.44/98

Page 45: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

⊲ Fa e Dete tion

× Goal and Challenges

× Feature-based vs Appearan e-based Approa hes× Frontal Fa e Dete tion⊲ Multi-View Fa e Dete tion× State-of-the-art⊲ Boosting-based Methods∗ Pyramid-Cas ade Ar hite ture� Experiment Results� Dis ussion

• Fa e Re ognition• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.45/98

Page 46: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Boosting-based Methods• Literature review:� S. Li and Zhang [2004℄: introdu ed the pyramid ar hite ture. Theirsystem is reported as the �rst real-time multi-view fa e dete tionsystem.� Wu et al. [2004℄: proposed an improved version of the dete tor ofViola and Jones.� Huang et al. [2005℄: proposed a novel tree-stru tured dete tor.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.46/98

Page 47: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Boosting-based Methods• S. Li and Zhang [2004℄: introdu ed the pyramid ar hite ture. Theirsystem is reported as the �rst real-time multi-view fa e dete tion system.� based on an extended set of Haar-like features and on FloatBoost,� the top level deals with the full [−90◦; +90◦] out-of-plane range,� this range is partitioned into three subranges in the se ond level, andea h subrange is again partitioned three times in the third level.� ea h dete tor is robust to ±15◦ in-plane rotation,� to in rease the in-plane range to ±45◦, the pyramid dete tor isapplied on the original image as well as on two ±30◦ in-plane rotatedimages.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.47/98

Page 48: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Boosting-based Methods• Wu et al. [2004℄: proposed an improved version of the dete tor of Violaand Jones.� RealAdaBoost is used to train the as ades omposed of lookuptables of Haar-like features,� used nested as ades,� the in-plane range is partitioned in 12 views and the out-of-planerange in 5 views,� a pose estimation strategy is used, they omputed the �rst six layersof ea h as ade and sele ted the best s ore,

Face Detection and Recognition, Dr S. Marcel, 2007 – p.48/98

Page 49: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Boosting-based Methods• Huang et al. [2005℄: proposed a novel tree-stru tured dete tor.� explained that the pyramid ar hite ture treats all fa es as a single lass (a sample has to be sent to all the lassi�ers of the next level),whi h slows down the dete tion pro ess,� pointed out that in the de ision tree ar hite ture, a node works as apose estimator and has to sele t one bran h, whi h may result in aloss in a ura y,� in the proposed tree approa h,

∗ Ea h bran hing node is trained with a multi lass version ofAdaBoost whi h outputs a ve tor of binary values instead of asingle value.∗ Thus, there is no ex lusive path like for a de ision tree. A samplemay be sent to more than one hild node.

∗ If all values of the de ision ve tor are equal to zero, the pro essstops and the sample is reje ted.

∗ Huang et al. showed signi� ant improvements in both a ura yand speed and is urrently one of the most e�e tive multi-viewfa e dete tors.Face Detection and Recognition, Dr S. Marcel, 2007 – p.49/98

Page 50: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

⊲ Fa e Dete tion

× Goal and Challenges

× Feature-based vs Appearan e-based Approa hes× Frontal Fa e Dete tion× Multi-View Fa e Dete tion

× State-of-the-art× Boosting-based Methods⊲ Pyramid-Cas ade Ar hite ture� Experiment Results� Dis ussion

• Fa e Re ognition• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.50/98

Page 51: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Pyramid-Cas ade Ar hite ture• A multi-view fa e dete tor based on a pyramid- as ade ar hite ture is omposed of a top-level as ade, an in-plane pyramid and an out-planepyramid:

Face Detection and Recognition, Dr S. Marcel, 2007 – p.51/98

Page 52: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Pyramid-Cas ade Ar hite ture• In-plane pyramid- as ade:• Out-plane pyramid:

Face Detection and Recognition, Dr S. Marcel, 2007 – p.52/98

Page 53: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Pyramid-Cas ade Ar hite ture• Advantages:� modular (easy to add novel views),� fast.

• Drawba ks:� overall training an be long,� ar hite ture design is painful (# of view partitions, # of stages, # of lassi�ers).There is a need for ma hine learning algorithms to build automati allythe stru ture and to train the modules.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.53/98

Page 54: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

⊲ Fa e Dete tion

× Goal and Challenges

× Feature-based vs Appearan e-based Approa hes× Frontal Fa e Dete tion× Multi-View Fa e Dete tion⊲ Experiment Results� Dis ussion

• Fa e Re ognition• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.54/98

Page 55: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Performan e Evaluation• Evaluation using an obje tive measure (Frontal only):� dete tion rate (DR),� number of false alarms (nFA),� a fa e riterion should be used:

� as well as a relative error measure• Field test evaluation (live/real-time in realisti onditions): see IDIAPFrontal and Multi-View Fa e Dete tion demos available athttp://www.idiap. h/∼mar el/demos.php

Face Detection and Recognition, Dr S. Marcel, 2007 – p.55/98

Page 56: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Performan e Evaluation• Evaluation using an obje tive measure:� dete tion rate (DR),� number of false alarms (nFA),� a fa e riterion should be used:� Jesorsky's relative error measure: deye = max(d(Cl,Cl),d(Cr,Cr))

d(Cl,Cr)

~Co

Co C r

C l

C l~

C r~

∆ α

dx

D’

D

dy

∗ Cl and Cr represent the true eye positions,

∗ Cl and Cr represent the dete ted eye positions,

∗ C0 (resp. C0) is the middle of the segment [ClCr] (resp. [ClCr℄). orre t fa e dete tion if: deye ≤ 0.25

Face Detection and Recognition, Dr S. Marcel, 2007 – p.56/98

Page 57: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Experiment Results: Frontal• 2 fa e dete tors:� FDHaar: 47 stages, 8468 features (Lienhart / OpenCV)� FDLBP : 3 stages, 65 features (IDIAP / Tor hvision)• XM2VTS, Purdue, BioID and BANCA (English) databases

Face Detection and Recognition, Dr S. Marcel, 2007 – p.57/98

Page 58: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Experiment Results: Frontal• Dete tion rate [%℄ vs. lo alization error (deye)

BANCA: OpenCV (DR=86.8% nFA=608) IDIAP (DR=98.6% nFA=266)

Face Detection and Recognition, Dr S. Marcel, 2007 – p.58/98

Page 59: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Experiment Results: Multi-View• Inplane:

• Out-of-plane:Face Detection and Recognition, Dr S. Marcel, 2007 – p.59/98

Page 60: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Experiment Results: Multi-View• Toleran e to ombinations of inplane and outplane rotations:

Face Detection and Recognition, Dr S. Marcel, 2007 – p.60/98

Page 61: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Experiment Results: Multi-View• High-res images (1300 × 2000) and di� ult illumination onditions:

Face Detection and Recognition, Dr S. Marcel, 2007 – p.61/98

Page 62: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Experiment Results: Multi-View• Robust to illumination:

Face Detection and Recognition, Dr S. Marcel, 2007 – p.62/98

Page 63: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Experiment Results: Multi-View• Robust to o lusion:

Face Detection and Recognition, Dr S. Marcel, 2007 – p.63/98

Page 64: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Dis ussion• Frontal Fa e Dete tion:� importan e of obje tive performan e evaluation using a fa e riterion,� advantages of LBP over Haar features

∗ more robust to illumination,∗ as ade of 3-4 stages (training time, as ade design).� the as ade design problem is not ompletely solved.

→ te hnology mature enough for real-life appli ations• Multi-View Fa e Dete tion:� the te hnology will be mature for spe i� appli ations soon,� still room for resear h:

∗ new hallenges: mobile devi es (CPU/mem onstraints) or HDvideo- onferen ing (HiRes images),∗ features (LBP for instan e),∗ multi-view pyramid- as ade (or tree) design and training,

∗ no obje tive performan e evaluation methods exist yet.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.64/98

Page 65: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Appli ations

× Fa e Dete tion

⊲ Fa e Re ognition

• Con lusion

• CreditsFace Detection and Recognition, Dr S. Marcel, 2007 – p.65/98

Page 66: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

× Fa e Dete tion

⊲ Fa e Re ognition

⊲ Introdu tion� Challenges� Feature Extra tion: Holisti vs Lo al� Classi� ation� Database and Proto ols� Experiment Results� Dis ussion• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.66/98

Page 67: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Introdu tion• In spite of the expanding resear h in the �eld of fa e re ognition, a lot ofproblems are still unsolved,

• Today, several systems that a hieve high re ognition rates have beendeveloped, however:� su h systems work in ontrolled environments,� for most of them, fa e images must be frontal or pro�le,� ba kground must be uniform,� lighting must be onstant.• Furthermore, lot of published systems are evaluated using manuallylo ated fa es,

• and the ones whi h have been evaluated using a fully automati systemshowed a big degradation in performan e.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.67/98

Page 68: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Challenges• In most real life appli ations, the environment is not known a-priori andthe system should be fully automati . A Fa e Re ognition system has todeal with:� Lighting Variation,� Head Pose hanges,� Non-Perfe t Dete tion,� O lusion,� Aging.

• The main problem is the large variability between fa e images:� extra-personal variabilities: variations in appearan e betweendi�erent identities,� intra-personal variabilities: variations in appearan e of the sameidentity, due to di�erent expression, lighting, ba kground, head pose,hair ut, et .Face Detection and Recognition, Dr S. Marcel, 2007 – p.68/98

Page 69: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

× Fa e Dete tion

⊲ Fa e Re ognition

× Introdu tion

× Challenges

⊲ Feature Extra tion: Holisti vs Lo al� Classi� ation� Database and Proto ols� Experiment Results� Dis ussion• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.69/98

Page 70: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Feature Extra tion: Holisti vs Lo al• The goal of feature extra tion is to �nd a spe i� representation of thedata that an highlight relevant information.• An image is represented by:� a high dimensional ve tor ontaining pixel values (holisti representation),

FEATUREVECTOR

� a set of ve tors where ea h ve tor ontains gray levels of a sub-image(lo al representation).FEATUREVECTORS

Face Detection and Recognition, Dr S. Marcel, 2007 – p.70/98

Page 71: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Feature Extra tion: Holisti vs Lo al• Ve tors are proje ted into a new spa e (the feature spa e) where theleast relevant features an be removed to redu e the dimensionalitya ording to a riterion (su h as lowest amount of varian e):� Holisti representations (representations found using the statisti s ofimage data)� Lo al representations (resear hers have argued that lo al �lters aremore robust than global representation)

Face Detection and Recognition, Dr S. Marcel, 2007 – p.71/98

Page 72: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Feature Extra tion: Holisti vs Lo al• Ve tors are proje ted into a new spa e (the feature spa e):� Holisti representations:

∗ Turk and Pentland [1991℄: Prin ipal Component Analysis (PCA)∗ Zhao and al. [1999℄, Li and al. [2000℄: Linear Dis riminantAnalysis (LDA, also known as Fisher Dis riminant Analysis)For fa e re ognition, LDA should outperform PCA be ause itinherently deals with lass dis rimination. However, Martinez andKak [2001℄ have shown that PCA might outperform LDA when thenumber of samples per lass is small.� Lo al representations

Face Detection and Recognition, Dr S. Marcel, 2007 – p.72/98

Page 73: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Feature Extra tion: Holisti vs Lo al• Ve tors are proje ted into a new spa e (the feature spa e):� Holisti representations:

∗ Turk and Pentland [1991℄: PCA∗ Zhao and al. [1999℄, Li and al. [2000℄: LDA� Lo al representations:

∗ Lo al PCA, Padgett and Cottrell [1997℄∗ 2D Gabor Wavelet, Daugman [1985℄, Lades [1993℄: Gabor �ltersare known as good feature dete tors and su h �lters remove mostof the variability in images that is due to variations in lighting.

∗ 2D Dis rete Cosine Transform: Fa e images are analyzed on ablo k by blo k basis. Ea h blo k is de omposed in terms of 2DDis rete Cosine Transform (DCT) basis fun tions. A featureve tor for ea h blo k is then onstru ted with the DCT oe� ients.∗ Modi� ation of the 2D DCT: Sanderson [2002℄ proposed theDCTmod2, where the �rst three DCT oe� ients are repla ed bytheir respe tive horizontal and verti al deltas in order to redu ethe e�e ts of illumination dire tion hanges.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.73/98

Page 74: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

× Fa e Dete tion

⊲ Fa e Re ognition

× Introdu tion

× Challenges

× Feature Extra tion: Holisti vs Lo al⊲ Classi� ation� Database and Proto ols� Experiment Results� Dis ussion

• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.74/98

Page 75: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Classi� ation• Classi� ation onsists of attributing a label to the input data and di�ersa ording to the spe i� task ( losed or open set identi� ation,veri� ation)

• All system provides a s ore ΛI(X) orresponding to an opinion on theprobe fa e pattern X to be the identity I.� veri� ation: the label is true ( lient) or false (impostor)� losed set identi� ation: the label is the identity� open set identi� ation: the label is the identity or unknown

Face Detection and Recognition, Dr S. Marcel, 2007 – p.75/98

Page 76: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Classi� ation• veri� ation: given a threshold τ , the laim is a epted when ΛI(X) ≥ τand reje ted when ΛI(X) < τ

• losed set identi� ation: we an re ognize identity I∗ orresponding tothe probe fa e pattern X as followsI∗ = arg max

IΛI(X) (4)

• open set identi� ation: the re ognized identity I∗ orresponding to theprobe fa e is found as followsI∗ =

{ unknown if ΛI(X) < τ ∀ I

arg maxIΛI(X) otherwise (5)

Face Detection and Recognition, Dr S. Marcel, 2007 – p.76/98

Page 77: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Computing the s ore ΛI(X)

• Similarity measure: Eu lidean, Mahalanobis [beveridge:2001℄, Normalized orrelation [Kittler:2000℄, . . .

• Feature based approa hes: Elasti Graph Mat hing [Lades:1993℄ andbun h graph [Wiskott:1997℄ using Gabor �lters and a labeled graph.

• Statisti al model based approa hes: more robust than lassi alapproa hes however they require a training pro ess� a model is trained from a set of referen e images for ea h identity,� and the s ore is then omputed given a probe image and theparameters of the model orresponding to an identity.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.77/98

Page 78: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Statisti al Model based Approa hes• Dis riminant models su h as Multi-Layer Per eptrons or SupportVe tor Ma hines:� training dataset of l pairs (Xi, yi) where Xi is a ve tor ontainingthe pattern, while yi is the lass of the orresponding pattern,� we train one model per identity, yi being oded as +1 for patterns orresponding to this identity and as −1 for patterns orrespondingto an other identity,� Drawba k: di� ulty to train them with a small training dataset.

• Generative models estimate the likelihood of the fa e image being aspe i� identity using models representing identities.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.78/98

Page 79: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Generative Models• Simple to omplex models [Ei keler:2000℄, [Ne�an:1999℄,[Sanderson:2003℄ to ompute ΛC(X) = P (X |λC)� Gaussian Mixture Models (GMM),� 1D Hidden Markov Models (1D-HMM),� Pseudo-2D Hidden Markov Models (P2D-HMM).• Training:� using the Maximum Likelihood (ML) riterion via the Expe tationMaximization (EM),A lot of data is required to properly estimate model parameters.� using a well trained generi (non-person spe i� ) model as thestarting point for ML training,ML training still produ es poor models.� using Maximum a Posteriori (MAP) training [Gauvain:1994℄ (also alled MAP adaptation).This approa h derives a lient spe i� model from a generi modeland ir umvents the la k of data problem.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.79/98

Page 80: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Generative Models• Let us denote the parameter set for lient C as λC and the parameter setdes ribing a generi fa e (non- lient spe i� ) as λC .• Given a laim for lient C's identity and a set of T feature ve tors

X = {~xt}T

t=1 supporting the laim (extra ted from the given fa e).

• We �nd an opinion on the laim usingΛ(X) = log P (X |λC) − log P (X |λC)where:� P (X |λC) is the likelihood of the laim oming from the true laimant� P (X |λC) is the likelihood of the laim oming from an impostor.

• The generi fa e model (also alled world model or Universal Background

Model) is trained with data from many people.

• The de ision is then rea hed as follows: given a threshold τ , the laim isa epted when Λ(X) ≥ τ and reje ted when Λ(X) < τ .

Face Detection and Recognition, Dr S. Marcel, 2007 – p.80/98

Page 81: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Gaussian Mixture Model• The likelihood of a set of feature ve tors is given by

P (X |λ) =

T∏

t=1

P (~xt|λ) (6)

where

P (~x|λ) =

NG∑

k=1

mkN (~x|~µk, Σk) (7)

λ = {mk, ~µk, Σk}NG

k=1 (8)

• N (~x|~µ, Σ) is a D-dimensional gaussian density fun tion with mean ~µand diagonal ovarian e matrix Σ.• NG is the number of gaussians and mk is the weight for gaussian k (with onstraints ∑NG

k=1 mk = 1 and ∀ k : mk ≥ 0).

Face Detection and Recognition, Dr S. Marcel, 2007 – p.81/98

Page 82: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Gaussian Mixture Model• Generally, ea h feature ve tor X des ribes a di�erent part of the fa e (alo al approa h).

• We note that the spatial relations between fa e parts are lost (theposition of ea h part does not matter in the likelihood estimation).� Advantage: this lead to a robustness to imperfe t lo alization of thefa e,� Drawba k: dis riminatory information arried by spatial relations islost. Fortunately, there is a simple way to restore a degree of spatialrelations.Face Detection and Recognition, Dr S. Marcel, 2007 – p.82/98

Page 83: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

1D-Hidden Markov Model• The fa e is represented as a sequen e of overlapping rectangular blo ksfrom top to bottom of the fa e:

1

2

N

Observation vector

• The model is hara terized by the following:� N , the number of states in the model,� The state transition matrix A = {aij},� The state probability distribution B = {bj(~xt)}.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.83/98

Page 84: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

1D-Hidden Markov Model• N , the number of states in the model; ea h state orresponds to a regionof the fa e; S = {S1, S2, . . . , SN} is the set of states. The state of themodel at row t is given by qt ∈ S, 1 ≤ t ≤ T , where T is the length ofthe observation sequen e (number of re tangular blo ks).• The state transition matrix A = {aij}. The topology of the 1D-HMMallows only self transitions or transitions to the next state:

aij =

{

P (qt = Sj |qt−1 = Si) for j = i, j = i + 1

0 otherwise (9)

• The state probability distribution B = {bj(~xt)}, where

bj(~xt) = P (~xt|qt = Sj) (10)The features are expe ted to follow a ontinuous distribution and aremodeled with mixtures of gaussians.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.84/98

Page 85: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

1D Hidden Markov Model• Compared to the GMM approa h the spatial onstraints are mu h morestri t, mainly due to the rigid preservation of horizontal spatial relations(e.g. distan e between the eyes).

• The verti al onstraints are more relaxed, though they still enfor e thetop-to-bottom segmentation (e.g. the eyes have to be above the mouth).

• The relaxation of onstraints allows for a degree of verti al translationand some verti al stret hing ( aused, for example, by an imperfe t fa elo alization).Face Detection and Recognition, Dr S. Marcel, 2007 – p.85/98

Page 86: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Pseudo-2D Hidden Markov Model• Emission probabilities of the HMM (now referred to as the �main HMM�)are estimated through a se ondary HMM (referred to as an �embeddedHMM�):

q1

q2

q3

r1 r2

r1 r2 r3

r1 r2 r3

r3

• The states of the embedded HMMs are in turn modeled by a mixture ofgaussians.Face Detection and Recognition, Dr S. Marcel, 2007 – p.86/98

Page 87: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Pseudo-2D Hidden Markov Model• The degree of spatial onstraints present in the P2D-HMM approa h anbe thought of as being somewhere in between the GMM and the1D-HMM approa hes. While the GMM approa h has no spatial onstraints and the 1D-HMM has rigid horizontal onstraints, theP2D-HMM approa h has relaxed onstraints in both dire tions.• However, the onstraints still enfor e the left-to-right segmentation ofthe embedded HMMs (e.g. the left eye has to be before the right eye),and top-to-bottom segmentation (e.g. like in the 1D-HMM approa h, theeyes have to be above the mouth). The relaxed onstraints allow for adegree of both verti al and horizontal translations, as well as someverti al and horizontal stret hing of the fa e.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.87/98

Page 88: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Biometri s

× Fa e Dete tion

⊲ Fa e Re ognition

× Introdu tion

× Challenges

× Feature Extra tion: Holisti vs Lo al× Classi� ation

⊲ Database and Proto ols� Experiment Results� Dis ussion• Con lusion• Credits

Face Detection and Recognition, Dr S. Marcel, 2007 – p.88/98

Page 89: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Database• BANCA (English) database with realisti onditions: controlled, degradedand adverse

• 12 re ording sessions over several months, in di�erent onditions andwith di�erent ameras,• high variability in illumination, pose, resolution, ba kground and qualityof the amera. Face Detection and Recognition, Dr S. Marcel, 2007 – p.89/98

Page 90: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Proto ols• 7 distin t on�gurations that spe ify whi h images an be used fortraining and testing: Train SessionsTest Sessions 1 5 9 1,5,9C: 2-4I: 1-4 M C: 6-8I: 5-8 Ud MdC: 10-12I: 9-12 Ua MaC: 2-4,6-8,10-12I: 1-12 P GMat hed Controlled (M ), Mat hed Degraded (Md), Mat hed Adverse (Ma),Unmat hed Degraded (Ud), Unmat hed Adverse (Ua), Pooled test (P) and Grandtest (G).

Face Detection and Recognition, Dr S. Marcel, 2007 – p.90/98

Page 91: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Performan e Measure• A veri� ation system makes two types of errors:� False A eptan e (FA) when the system a epts an impostor,� False Reje tion (FR) when the system refuses a true laimant.• The performan e is measured in terms of False A eptan e Rate (FAR)and False Reje tion Rate (FRR):FAR =

number of FAsnumber of impostor a esses (11)FRR =number of FRsnumber of true laimant a esses (12)

• FAR and FRR are related (de reasing one in reases the other),

• To aid the interpretation of performan e, FAR and FRR are often ombined using the Half Total Error Rate (HTER):HTER =

FAR + FRR

2(13)

Face Detection and Recognition, Dr S. Marcel, 2007 – p.91/98

Page 92: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Experiment Results (manual)System Proto olM Ud Ua PPCA 9.5 20.9 20.8 18.4LDA/NC 4.9 16.0 20.2 14.8SVM 5.4 25.4 30.1 20.3GMM ML 12.9 28.9 26.0 22.9GMM init 12.8 29.7 28.3 23.8GMM MAP 8.9 17.3 20.9 17.01D-HMM ML 9.1 17.8 17.1 15.91D-HMM init 9.1 15.6 17.4 14.71D-HMM MAP 6.9 16.3 17.0 14.7P2D-HMM ML 9.0 19.0 18.0 17.5P2D-HMM init 8.6 16.5 19.2 17.0P2D-HMM MAP ∗ 4.6 ∗ 15.3 ∗ 13.1 ∗ 13.5

Face Detection and Recognition, Dr S. Marcel, 2007 – p.92/98

Page 93: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Experiment Results (auto)System Proto olM Ud Ua PPCA 22.4 29.7 33.7 29.0LDA/NC 22.6 25.4 27.1 25.2SVM 19.7 30.4 33.2 27.8GMM ML 16.7 33.3 33.3 27.7GMM init 19.8 35.0 35.1 29.7GMM MAP 9.5 21.0 24.8 19.51D-HMM ML 21.0 28.8 29.5 27.01D-HMM init 21.3 30.1 31.4 28.11D-HMM MAP 13.8 25.9 23.4 21.7P2D-HMM ML 12.1 25.2 26.9 22.3P2D-HMM init 13.5 24.6 26.5 22.5P2D-HMM MAP ∗ 6.5 ∗ 15.9 ∗ 14.7 ∗ 14.7

Face Detection and Recognition, Dr S. Marcel, 2007 – p.93/98

Page 94: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Dis ussion• Maximum a Posteriori (MAP) training ir umvents the la k of dataproblem,

• Systems that utilize rigid spatial onstraints between fa e parts (su h asPCA and 1D-HMM based systems) are easily a�e ted by fa elo alization errors,

• Systems whi h have relaxed onstraints (su h as GMM and P2D-HMMbased), are quite robust.Face Detection and Recognition, Dr S. Marcel, 2007 – p.94/98

Page 95: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Appli ations

× Fa e Dete tion

× Fa e Re ognition

⊲ Con lusion

• CreditsFace Detection and Recognition, Dr S. Marcel, 2007 – p.95/98

Page 96: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Con lusion• Fa e dete tion:� boosting-based methods provide an interesting trade-o� betweena ura y and speed,� LBP features are good andidates for fa e dete tion,• Fa e re ognition:� generative models outperform state-of-the-art systems inun onstrained onditions,� more general generative models (Bayesian Networks) is probably thenext step.

Face Detection and Recognition, Dr S. Marcel, 2007 – p.96/98

Page 97: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Outline× Introdu tion

× Appli ations

× Fa e Dete tion

× Fa e Re ognition

× Con lusion

⊲ CreditsFace Detection and Recognition, Dr S. Marcel, 2007 – p.97/98

Page 98: Dr Sebastien Marcel´marcel/lectures/lectures/marcel-tutorial... · 2009-03-17 · Befo re Sta rting MI2 not IM2 Face Detection and Recognition, Dr S. Marcel, 2007 – p.2/98

Credits• PhD students: G. Heus h, A. Just, Y. Rodriguez, F. Cardinaux• Tor h and Tor hVision http://tor h3vision.idiap. h• pyVerif http://pyverif.idiap. h• More info available at http://www.idiap. h/∼mar el

• Demos available at http://www.idiap. h/∼mar el/demos.php

Face Detection and Recognition, Dr S. Marcel, 2007 – p.98/98