Learning to Detect Faces. A Large-Scale Application of Machine Learning

Similar documents
Viola Jones Face Detection. Shahid Nabi Hiader Raiz Muhammad Murtaz

Machine Learning for Signal Processing Detecting faces (& other objects) in images

Project Report for EE7700

RGBD Face Detection with Kinect Sensor. ZhongJie Bi

Class Sep Instructor: Bhiksha Raj

Classifier Case Study: Viola-Jones Face Detector

Detecting Faces in Images. Detecting Faces in Images. Finding faces in an image. Finding faces in an image. Finding faces in an image

Three Embedded Methods

Object Detection Design challenges

Ensemble Methods, Decision Trees

Face detection and recognition. Many slides adapted from K. Grauman and D. Lowe

Viola-Jones with CUDA

Introduction. How? Rapid Object Detection using a Boosted Cascade of Simple Features. Features. By Paul Viola & Michael Jones


Object Category Detection: Sliding Windows

Computer Vision Group Prof. Daniel Cremers. 6. Boosting

Skin and Face Detection

Active learning for visual object recognition

Automatic Initialization of the TLD Object Tracker: Milestone Update

CSE 151 Machine Learning. Instructor: Kamalika Chaudhuri

Detection of a Single Hand Shape in the Foreground of Still Images

A Hybrid Face Detection System using combination of Appearance-based and Feature-based methods

Object Category Detection: Sliding Windows

Face Detection on OpenCV using Raspberry Pi

Face Recognition Pipeline 1

Traffic Sign Localization and Classification Methods: An Overview

Detecting and Reading Text in Natural Scenes

Face detection and recognition. Detection Recognition Sally

Computer Vision Group Prof. Daniel Cremers. 8. Boosting and Bagging

Face Detection and Alignment. Prof. Xin Yang HUST

FACE DETECTION BY HAAR CASCADE CLASSIFIER WITH SIMPLE AND COMPLEX BACKGROUNDS IMAGES USING OPENCV IMPLEMENTATION

Face and Nose Detection in Digital Images using Local Binary Patterns

Window based detectors

ii(i,j) = k i,l j efficiently computed in a single image pass using recurrences

Fast and Robust Classification using Asymmetric AdaBoost and a Detector Cascade

CS228: Project Report Boosted Decision Stumps for Object Recognition

Predicting Visual Saliency of Building using Top down Approach

Study of Viola-Jones Real Time Face Detector

Previously. Window-based models for generic object detection 4/11/2011

CS6716 Pattern Recognition. Ensembles and Boosting (1)

CSC411 Fall 2014 Machine Learning & Data Mining. Ensemble Methods. Slides by Rich Zemel

Face Tracking in Video

Progress Report of Final Year Project

Viola Jones Simplified. By Eric Gregori

Parallel Tracking. Henry Spang Ethan Peters

SE 263 R. Venkatesh Babu. Object Tracking. R. Venkatesh Babu

Machine Learning Classifiers and Boosting

Design guidelines for embedded real time face detection application

AN HARDWARE ALGORITHM FOR REAL TIME IMAGE IDENTIFICATION 1

Face tracking. (In the context of Saya, the android secretary) Anton Podolsky and Valery Frolov

Generic Object-Face detection

CS 559: Machine Learning Fundamentals and Applications 10 th Set of Notes

High Level Computer Vision. Sliding Window Detection: Viola-Jones-Detector & Histogram of Oriented Gradients (HOG)

A ROBUST NON-LINEAR FACE DETECTOR

Designing Applications that See Lecture 7: Object Recognition

Performance Estimation of Parallel Face Detection Algorithm on Multi-Core Platforms

Face detection. Bill Freeman, MIT April 5, 2005

Face Detection CUDA Accelerating

Computer Vision

Face detection, validation and tracking. Océane Esposito, Grazina Laurinaviciute, Alexandre Majetniak

Face/Flesh Detection and Face Recognition

Lecture #13. Point (pixel) transformations. Neighborhood processing. Color segmentation

Out-of-Plane Rotated Object Detection using Patch Feature based Classifier

Computerized Attendance System Using Face Recognition

Criminal Identification System Using Face Detection and Recognition

Recap Image Classification with Bags of Local Features

Recognition of a Predefined Landmark Using Optical Flow Sensor/Camera

Face Recognition using Rectangular Feature

Multiple Instance Boosting for Object Detection

Detecting Pedestrians Using Patterns of Motion and Appearance (Viola & Jones) - Aditya Pabbaraju

Subject-Oriented Image Classification based on Face Detection and Recognition

Face Detection Using Look-Up Table Based Gentle AdaBoost

Object recognition. Methods for classification and image representation

Smart Home Intruder Detection System

Rapid Object Detection Using a Boosted Cascade of Simple Features

Lecture 4 Face Detection and Classification. Lin ZHANG, PhD School of Software Engineering Tongji University Spring 2018

Towards Enhancing the Face Detectors Based on Measuring the Effectiveness of Haar Features and Threshold Methods

Object recognition (part 1)

Data Mining Lecture 8: Decision Trees

Ensemble Learning. Another approach is to leverage the algorithms we have via ensemble methods

Recognition problems. Face Recognition and Detection. Readings. What is recognition?

Image Analysis. Window-based face detection: The Viola-Jones algorithm. iphoto decides that this is a face. It can be trained to recognize pets!

Last week. Multi-Frame Structure from Motion: Multi-View Stereo. Unknown camera viewpoints

6. Dicretization methods 6.1 The purpose of discretization

Computer Science Faculty, Bandar Lampung University, Bandar Lampung, Indonesia

Mouse Pointer Tracking with Eyes

Object detection as supervised classification

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

International Journal of Advanced Research in Computer Science and Software Engineering

For Monday. Read chapter 18, sections Homework:

Learning an Alphabet of Shape and Appearance for Multi-Class Object Detection

Object detection. Asbjørn Berge. INF 5300 Advanced Topic: Video Content Analysis. Technology for a better society

Human-Robot Interaction


Short Paper Boosting Sex Identification Performance

3 October, 2013 MVA ENS Cachan. Lecture 2: Logistic regression & intro to MIL Iasonas Kokkinos

Introduction. Computer Vision & Digital Image Processing. Preview. Basic Concepts from Set Theory

Module 7 VIDEO CODING AND MOTION ESTIMATION

Person Detection in Images using HoG + Gentleboost. Rahul Rajan June 1st July 15th CMU Q Robotics Lab

Adaptive Skin Color Classifier for Face Outline Models

Transcription:

Learning to Detect Faces A Large-Scale Application of Machine Learning (This material is not in the text: for further information see the paper by P. Viola and M. Jones, International Journal of Computer Vision, 2004

Viola-Jones Face Detection Algorithm Overview : Viola Jones technique overview Features Integral Images Feature Extraction Weak Classifiers Boosting and classifier evaluation Cascade of boosted classifiers Example Results

Viola Jones Technique Overview Three major contributions/phases of the algorithm : Feature extraction Learning using boosting and decision stumps Multi-scale detection algorithm Feature extraction and feature evaluation. Rectangular features are used, with a new image representation their calculation is very fast. Classifier learning using a method called boosting A combination of simple classifiers is very effective

Features Four basic types. They are easy to calculate. The white areas are subtracted from the black ones. A special representation of the sample called the integral image makes feature extraction faster.

Integral images Summed area tables A representation that means any rectangle s values can be calculated in four accesses of the integral image.

Fast Computation of Pixel Sums

Feature Extraction Features are extracted from sub windows of a sample image. The base size for a sub window is 24 by 24 pixels. Each of the four feature types are scaled and shifted across all possible combinations In a 24 pixel by 24 pixel sub window there are ~160,000 possible features to be calculated.

Learning with many features We have 160,000 features how can we learn a classifier with only a few hundred training examples without overfitting? Idea: Learn a single very simple classifier (a weak classifier ) Classify the data Look at where it makes errors Reweight the data so that the inputs where we made errors get higher weight in the learning process Now learn a 2 nd simple classifier on the weighted data Combine the 1 st and 2 nd classifier and weight the data according to where they make errors Learn a 3 rd classifier on the weighted data and so on until we learn T simple classifiers Final classifier is the combination of all T classifiers This procedure is called Boosting works very well in practice.

Decision Stumps Decision stumps = decision tree with only a single root node Certainly a very weak learner! Say the attributes are real-valued Decision stump algorithm looks at all possible thresholds for each attribute Selects the one with the max information gain Resulting classifier is a simple threshold on a single feature Outputs a +1 if the attribute is above a certain threshold Outputs a -1 if the attribute is below the threshold Note: can restrict the search for to the n-1 midpoint locations between a sorted list of attribute values for each feature. So complexity is n log n per attribute. Note this is exactly equivalent to learning a perceptron with a single intercept term (so we could also learn these stumps via gradient descent and mean squared error)

Boosting Example

First classifier

First 2 classifiers

First 3 classifiers

Final Classifier learned by Boosting

Final Classifier learned by Boosting

Boosting with Decision Stumps Viola-Jones algorithm With K attributes (e.g., K = 160,000) we have 160,000 different decision stumps to choose from At each stage of boosting given reweighted data from previous stage Train all K (160,000) single-feature perceptrons Select the single best classifier at this stage Combine it with the other previously selected classifiers Reweight the data Learn all K classifiers again, select the best, combine, reweight Repeat until you have T classifiers selected Very computationally intensive Learning K decision stumps T times E.g., K = 160,000 and T = 1000

How is classifier combining done? At each stage we select the best classifier on the current iteration and combine it with the set of classifiers learned so far How are the classifiers combined? Take the weight*feature for each classifier, sum these up, and compare to a threshold (very simple) Boosting algorithm automatically provides the appropriate weight for each classifier and the threshold This version of boosting is known as the AdaBoost algorithm Some nice mathematical theory shows that it is in fact a very powerful machine learning technique

Reduction in Error as Boosting adds Classifiers

Useful Features Learned by Boosting

A Cascade of Classifiers

Detection in Real Images Basic classifier operates on 24 x 24 subwindows Scaling: Scale the detector (rather than the images) Features can easily be evaluated at any scale Scale by factors of 1.25 Location: Move detector around the image (e.g., 1 pixel increments) Final Detections A real face may result in multiple nearby detections Postprocess detected subwindows to combine overlapping detections into a single detection

Training Examples of 24x24 images with faces

Small set of 111 Training Images

Sample results using the Viola-Jones Detector Notice detection at multiple scales

More Detection Examples

Practical implementation Details discussed in Viola-Jones paper Training time = weeks (with 5k faces and 9.5k non-faces) Final detector has 38 layers in the cascade, 6060 features 700 Mhz processor: Can process a 384 x 288 image in 0.067 seconds (in 2003 when paper was written)