face detection and tracking from video imageryqji/facedet/tswg_slides.pdfproject goals • the goal...

36
Face Detection and Tracking from Video Imagery Qiang Ji, Peng Wang, Andrew Janowczyk, and Ted Carlson Department of Electrical, Computer and System Eng. Rensselaer Polytechnic Institute (RPI) [email protected]

Upload: dohuong

Post on 08-Jul-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Face Detection and Tracking from Video Imagery

Qiang Ji, Peng Wang, Andrew Janowczyk, and Ted Carlson

Department of Electrical, Computer and System Eng. Rensselaer Polytechnic Institute (RPI)

[email protected]

Page 2: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Project Goals

• The goal of this project is to develop improved algorithms for face detection and tracking from video imagery for use in the facial recognition system.

• The primary application of our system is for security monitoring and surveillance in public places, where the number of people vary dynamically, face poses and scales vary, and faces are small (20x20 pixels) and are of low resolution.

Page 3: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

System Components

Motion detection and trackingbased on motion estimation and

Particle Filtering

Appearamce-basedface detection from

detected human

Face Tracking

People Detectionand Tracking

Face Detection

Integrated Face Tracking

Page 4: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

System Component I:People Detection and Tracking

Two probabilistic methods are applied:

People detection based on motion estimation and Bayesian propagation over frames

People tracking based on particle filtering

Page 5: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

People Detection

We apply a people detection method based on robust optical flow estimation, background modeling, prior motion modeling using MRF, and Bayesian motion propagation over frames

Page 6: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Robust Optical Flow Estimation

Feature: optical flow vector from robust optical flow estimation

LMS followed by LS to solve local image derivatives;

Globally minimize estimation error;

),(),( yvxvyxv =

Robust motion estimation

Page 7: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Background Motion ModelTwo states for motion detection:

: Background: Moving Objects (People)

Model background motion with a dominant background motion with plus some additive Gaussian noise.

0H1H

)),,((~)|),(( 200 σyxvNHyxvP

),(0 yxv

Learning model parameters from motion vectors

Page 8: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Derive Prior Distribution through Markov Random FieldModel prior distribution through Markov Random Field (MRF)

The prior probability of a point only depends on the configuration of its neighbors.

TyxU

eZ

yxP),(1),(

−= ∑

=Cc

c yxDyxU ),(),(

Page 9: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

People Detection

Derive human motion likelihood model from background motion model and prior distributions

People detection based on Bayesian classifier)(

)()|()()|( 1

001

HPHPHvPvPHvP −

=

>>

)|()|(,:)|()|(,:

011

100

vHPvHPifpeopleHvHPvHPifbackgroundH

Page 10: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Bayesian Propagation to Improve People Detection

Motion detection at only one frame has some false and missing detections, we refine motion detection results over frames by propagating posterior probabilities.

Bayesian rule over frames

is feature history until time t

Posteriori probability at frame t is estimated from:

Posterior probability at previous frames t-1

the transition probability

the likelihood model

),...,( 1:1 tt vvV =

∑−

−−−∝1

)|()|()|()|( 1:111:1tH

tttttttt VHPHHPHvPVHP

)|( tt vHP

)|( 11 −− tt vHP)|( 1−tt HHP)|( tt HvP

Page 11: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

State Transition ModelAssuming constant object intensity with Gaussian noise, we model transition probability by local intensity changes at position (x,y) .

−++

= +2

21

2)),(),((

expσ

yxIvyvxIp tyxt

−=

−−

−−pppp

HHPHHPHHPHHP

tttt

tttt1

1

)|()|()|()|(

11

111

0

01

101

0

Page 12: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

People Detection Result

People detection results are refined frame by frame. The false detections caused by illumination change and random noise are eliminated by propagation over frames.

Page 13: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Motion Tracking withParticle Filtering (PF)

The goal is to efficiently track the detected people from frame to frame through a recursive propagation of probability distribution. PF allows to track multiple and unknown number of targets

• State vector: St=(x, y, vx, vy) • Observation vector: zt=(x, y)• Observations up to t: Z1:t=(z1,z2, ..,zt)

Page 14: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Motion Tracking with Particle Filtering (cont’d)

We approximate p(We approximate p(sstt|Z|Z1:t1:t) using a cloud of ) using a cloud of particles:particles:

With the associated weights:

Particles are initially obtained near the detected human bodies. The weights are determined basedon their distances to the detected bodies.

Ni

its 1

)( }{ =

{wt( i)}i=1

N

Page 15: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Human Motion Model

Assumption:comfortable speed with constant acceleration

Five tracker models are studied

Page 16: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Motion Tracking Models• State transition model p(st+1|st)

• p(zt| st), the observation likelihood distribution returns the likelihood of the state st, given the observation zt.

• p(st) prior pdf gives the initial distribution of the system states from previous time frame.

+

=

− vy

vx

y

x

ty

x

ty

x

wwww

vvyx

tt

vvyx

110000100

010001

Page 17: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Probability Propagation

Prediction

Observation Likelihood p(zt |st) based on the backgroundmodeling

Posterior probability

)1:1|1()1|()|( 1:1 Z ts tptss tpZstp t −−−∑=−

∑ −

= −

−= N ZspszpZpszpZsp

t

i tttt

tttttt

1

1 1:1

1:1:1

)|()|(

)|()|()|( s

Page 18: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

PDF propagation

Page 19: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Roaming Novelty DetectorScan the image dynamically to efficiently detect previously missed people

Series of roaming novelty windows

Page 20: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Demo: Indoor Sequence

Page 21: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

System Component II:Face (head) Detection

Multi-view face detection with an ensemble of boosted SVMs

Produce a database of faces from real world scenes

Face detection by boosting and bagging SVMs

Page 22: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Current Face Database

1. Mostly captured with artificial illumination and poses

2. Mostly frontal faces and contain only faces (not head)

3. Face is captured in relatively short distance with rich face expression, unsuitable for face detection for surveillance applications.

Page 23: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Multi-View Face DatabaseWe produce a face database with multiple views under real

complex scenarios.Above 2000 labeled faces captured under real scene in public places.With multiple poses and scales, including frontal faces and profile faces.Available at

http://www.ecse.rpi.edu/~cvrl/face_project/database/data_base.htm

Page 24: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Face Detection with an Ensemble of Boosted SVMs

preprocessing

Boosted SVMs

Non face

post processing

face

face data(frontal and profile

faces) nonface data

Bagging Ensambles

pattern to be tested

Majority Votiong

Page 25: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Train Hierarchical SVMs by Boosting

Boosting: repeatedly train the SVM classifiers with the hard-to-classify samples to form boosted SVMs.

Cascading the boosted SVMs for efficient course-to-fine classification.

S V M 1 S V M 2 S V M 3

Page 26: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Bagging SVMs to Eliminate False Detections

Bagging: average multiple classifiers to obtain robust results.

Bagging SVMs can eliminate the false detections that are difficult to handle by a single SVM.

∑=

=N

ii xfN

xf1

)(1)(

Nixfi ,...,1),( =

Page 27: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Some Detection Results

Average detection rate of 93%

Page 28: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

System Component III:Face tracking with particle filtering

Particles are initialized around the detected facesParticle state include: face position, size, and velocitySet detected face as template for subsequent measurementFirst-order kinematics motion model to capture face dynamics

humanmotion

face detection

initialization of face tracking

Page 29: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Face Model Updating

In sequences, face appearance change due to:

Face pose change during moving;Scale change;Illumination condition change.

Not necessary to perform face detection at each frame. Only activate face detector to correct tracking results when face appearance changes significantly, or face tracking get lost.

Page 30: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

When to Activate Face Detector? Face detection and tracking error is reduced when particle filtering converges.

Entropy criteria is proposed to measure the convergence of the particle filter.

is the posterior probability of ith particle.

If Entropy > threshold, then activate face detector to relocate face.

∑−=i

ii PPEntropy log

iP

Page 31: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Face Pose DeterminationTracked faces are labeled as frontal (red) or profile face (green), based on the output of the face detector. Frontal faces are collected for subsequent face recognition.

Red rectangle indicates useful poses for recognition

Page 32: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Demo: Tracking Results

Page 33: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

System Application

Surveillance statistics can be obtained from our face detection and tracking methods.

Statistics: the number of people passing by, the duration they stay in the area, their moving speed and direction.

Face multifold: extract multiple faces of different views of people passing by in video for face recognition

Page 34: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Extract Multiple Faces from Video for Recognition

More faces extracted from video

1.

2.

3.

4.

Page 35: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Conclusion1. Develop improved algorithms for

• Detection and tracking multiple peoplein a dynamic environment

• Detection and tracking faces of different poses and scales in real world and complex scenarios

2. Construct a database of over 2000 faces of different poses and scales, suitable for face detection and tracking in surveillance applications

Page 36: Face detection and tracking from video imageryqji/FaceDet/TSWG_slides.pdfProject Goals • The goal of this project is to develop improved algorithms for face detection and tracking

Future Work

Further integrate different components

Improve speed, accuracy, and robustness

Explore the possibility of face detection and tracking using multiple cameras via active sensory fusion