Top Banner
Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis
41

Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Mar 29, 2015

Download

Documents

Jaylin Cubit
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Bayesian Decision Theory

Case Studies

CS479/679 Pattern RecognitionDr. George Bebis

Page 2: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Case Study I

• A. Madabhushi and J. Aggarwal, A bayesian approach to human activity recognition, 2nd International Workshop on Visual Surveillance, pp. 25-30, June 1999.

Page 3: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Human activity recognition

• Recognize human actions using visual information.– Useful for monitoring of human activity in

department stores, airports, high-security buildings etc.

• Building systems that can recognize any type of action is a difficult and challenging problem.

Page 4: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Goal• Build a system that is capable of recognizing the

following 10 (ten) actions, from a frontal or lateral view:

• sitting down• standing up• bending down• getting up• hugging• squatting• rising from a squatting position• bending sideways• falling backward• walking

Page 5: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Rationale and Approach

• Rationale– People sit, stand, walk, bend down, and get up in a more or

less similar fashion.– Human actions can be recognized by tracking various body

parts. • Head motion trajectory– The head of a person moves in a characteristic fashion during

these actions.• Recognition is formulated as Bayesian classification using

the movement of the head over consecutive frames.

Page 6: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Strengths and Weaknesses

• Strengths– The system can recognize actions where the gait of

the subject in the test sequence differs considerably from the training sequences.

– Also, it can recognize actions for people of varying physical structure (i.e., tall, short, fat, thin etc.).

• Weaknesses– Only actions in the frontal or lateral view can be

recognized successfully by this system.– Certain assumptions might not be valid.

Page 7: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Main Steps

input output

Page 8: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Action Representation

• Estimate the centroid of the head in each frame:

• Find the absolute differences in successive frames:

| | ||

Page 9: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Head Detection and Tracking

• The centroid of the head is tracked from frame to frame.

• Accurate head detection and tracking are crucial.– Detection was performed manually here.

Page 10: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Bayesian Formulation

• Given an input sequence, the posterior probabilities are computed for each action using the Bayes rule:

Assumption:

Page 11: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Probability Density Estimation

• Feature vectors X and Y are assumed to be independent (valid?), following a multi-variate Gaussian distribution:

Page 12: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Probability Density Estimation (cont’d)

• The sample covariance matrices are used to estimate ΣX and ΣY :

• Two distributions are estimated for each action corresponding to the frontal and lateral views (i.e., 20 densities total).

ΣX

ΣY

Page 13: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Recognition

• Given an input sequence, the posterior probabilities are computed for each of the stored actions (i.e., 20 values).

• The input action is classified based on the most likely action:

Page 14: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Discriminating Similar Actions

• In some actions, the head moves in a similar fashion, making it difficult to distinguish these actions from one another; for example:(1) The head moves downward without much sideward deviation in the following actions:

* squatting* sitting down* bending down

Page 15: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Discriminating Similar Actions (cont’d)

(2) The head moves upward without much sideward deviation in the following actions:

* standing up* rising* getting up

• A number of heuristics are used to distinguish among these actions.– e.g., when bending down, the head goes much lower than

when sitting down.

Page 16: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Training

• A fixed CCD camera working at 2 frames per second was used to obtain the training sequences.

• People of diverse physical appearance were used to model the actions.

• Subjects were asked to perform the actions at a comfortable pace.

Page 17: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Training (cont’d)

• To train the system, 38 sequences were taken of each person performing all the actions of interest in both the frontal and lateral views.

• It was found that each action can be completed within 10 frames.

• Only the first 10 frames from each sequence were used for training/testing (i.e., 5 seconds)

Page 18: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Testing

• For testing, 39 sequences were used.• Of the 39 sequences, 31 were classified

correctly.• Of the 8 sequences classified incorrectly, 6

were assigned to the correct action but to the wrong view.

Page 19: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Results (cont’d)

Page 20: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Practical Issues

• How would you find the first and last frames of an action in general (segmentation)?

• Is the system robust to recognizing an action from incomplete sequences (i.e., assuming that several frames are missing)?

• Current system is unable to recognize several actions at the same time.

Page 21: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Extension

• J. Usabiaga, G. Bebis, A. Erol, Mircea Nicolescu, and Monica Nicolescu, "Recognizing Simple Human Actions Using 3D Head Trajectories", Computational Intelligence , vol. 23, no. 4, pp. 484-496, 2007.

Page 22: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Case Study II

• J. Yang and A. Waibel, A Real-time Face Tracker, Proceedings of WACV'96, 1996.

Page 23: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Goal and Steps

• Goal– Build a system that can detect and track a person’s

face while the person moves freely in a room.• Main Steps

(1) Detect arbitrary human faces in various environments using a generic skin-color model.(2) Track the face of interest by controlling the camera position and zoom.(3) Adapt skin-color model parameters based on individual appearance and lighting conditions.

Page 24: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

System Components

• A probabilistic model to characterize skin-color distributions of human faces.

• A motion model to estimate human motion and to predict search window in the next frame.

• A camera model to predict camera motion (i.e., camera’s response was much slower than frame rate).

Page 25: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Search Window

Page 26: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Why Using Skin Color for Face Detection?

• Traditional systems performed face detection using template matching or facial features.

• Using skin-color leads to a faster and more robust approach compared to template matching or facial feature extraction.

Page 27: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Challenges Using Skin Color

• Human skin colors differ from person to person.

• The color representation of a face obtained by a camera is influenced by many factors (e.g., ambient light, motion etc.)

• Different cameras produce significantly different color values, even for the same person under the same lighting conditions.

Page 28: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Chromatic Color Space

• RGB is not the best color representation for characterizing skin-color (i.e., it represents not only color but also brightness).

• Represent skin-color in the chromatic space which is defined from the RGB space as follows:

(the normalized blue component is redundant since r + g + b = 1)

Page 29: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Skin-Color Clustering

• Skin colors do not fall randomly in chromatic color space but form clusters at specific points.

Page 30: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Skin-Color Clustering (cont’d)

• Distributions of skin-colors of different people are clustered in chromatic color space– i.e., they differ much less in color than in

brightness

(skin-color distribution of 40 people - different races)

Page 31: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Skin-Color Model• Experiments (i.e., assuming different lighting

conditions and different persons) have shown that the skin-color distribution has a regular shape.

• Idea: represent skin-color distribution using a Gaussian with mean μ and covariance Σ:

Page 32: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Parameter Estimation

• Select skin-color regions from a set of face images.

• Estimate the mean and covariance of skin-color distribution using the sample mean and covariance:

Page 33: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Face detection using the skin-color model

• Each pixel x in the input image is converted into the chromatic color space and compared with the distribution of the skin-color model.

Page 34: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Example

Page 35: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Dealing with skin-color-like objects

• It is impossible in general to detect only faces simply from the result of color matching– e.g., background may contain skin colors

Page 36: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Dealing with skin-color-like objects (cont’d)

• Additional information should be used for rejecting false positives(e.g., geometric features, motion etc.)

Page 37: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Skin-color model adaptation

• If a person is moving, the apparent skin colors change as the person’s position relative to the camera or light changes.

• Idea: adapt model parameters to handle these changes.

Page 38: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Skin-color model adaptation (cont’d)

• N determines how long the past parameters will influence the current parameters.

• The weighting factors ai, bi, ci determine how much the past parameters will influence current parameters.

==

Page 39: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

System initialization

• Automatic mode– A general skin-color model is used to identify skin-

color regions.– Motion and shape information is used to reject

non-face regions.– The largest face region is selected (face closest to

the camera).– Skin-color model is adapted to the face being

tracked.

Page 40: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

System initialization (cont’d)

• Interactive mode– The user selects a point on the face of interest

using the mouse.– The tracker searches around the point to find the

face using a general skin-color model.– Skin-color model is adapted to the face being

tracked.

Page 41: Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.

Tracking Speed