• No results found

Study of Efficient Algorithms for Face Detection: Cascaded and Parallel GSLDA

N/A
N/A
Protected

Academic year: 2020

Share "Study of Efficient Algorithms for Face Detection: Cascaded and Parallel GSLDA"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459,ISO 9001:2008 Certified Journal, Volume 4, Issue 3, March 2014)

210

Study of Efficient Algorithms for Face Detection: Cascaded and

Parallel GSLDA

Jay Prakash Maurya

1

, Abhilasha R Wakde

2

1Assistant Professor Department of Computer Science and Engineering, IES Institute Of Technology And Management, Bhopal

MP ( India)

2Department of computer science and Engineering, IES Institute Of Technology And Management, Bhopal MP ( India)

Abstract Face detection is a computer technology that determines the locations and sizes of human faces in arbitrary (digital) images. It detects facial features and ignores anything else, such as buildings, trees and bodies. Face detection can be regarded as a more general case of face localization. In face localization, the task is to find the locations and sizes of a known number of faces (usually one).The work proposed in this paper is based on advance technique for face detection from image using (GSLDA) i.e. Greedy Sparse Linier Discriminate Analysis. With the help of this technique images can be processed extremely rapid and high detection rates can be achieved as compare to AdaBoost[1]. We have managed to organize classifiers in parallel and in cascaded manner, with critical order of grid that detects faces rapidly. The paper has research work for face detection has following steps: first is the method of feature selection the method of introducing “Integral image” by which new image is represented which

allows the features used byour detector to be computed very

quickly for each classifier. The second step is learning algorithm, which is based on GSLDA which selects weak classifiers based upon the maximum class separation criterion [2, 3].

Keywords— Integral image, greedy sparse linear discriminate analysis (GSLDA), feature selection, cascade classifier.

I. INTRODUCTION

Number of vision based applications has face detection as an important task. This task is made a first step in applications such as intelligent video surveillance, content based image retrieval, face and activity recognition. Now-a-days face detection is a challenging scenario because there are large variations in visual appearances, object poses, illumination, camera motion, etc. All these issues have made the problem very challenging from a machine vision perspective. Object detection is a extremely imbalanced task for classification. Face detection can be explained in three steps as preprocessing, feature extraction and designing of classifier as given in Figure 1. Feature extraction methods are Eigen face, PCA, ICA,LDA[11]. Principal component analysis (Karhunen-Loeve or Hotelling transform). PCA belongs to linear transforms based on the statistical techniques.

The method describes a strong tool for analysis of data and pattern recognition, as a technique for data dimension reduction or their decor relation and data compression as well, but it consists of a problem of small sample size. ICA is known as a statistical method that linearly transforms a multidimensional vector data into components that are statistically as independent from each other as possible[10]. A standard natural image consists of many more negative background patterns than object patterns. That means, if one wants to achieve a high detection rate, together with a low false detection rate, one need to design a specific and sensitive classifier that takes the imbalanced data distribution into consideration [4].

[image:1.612.365.526.484.569.2]

Linear Discriminate Analysis (LDA) is a dimension reduction method which finds transformation that maximizes the class separation. Cascading of classifier is faster but it requires time for training for classifier [4]. The simple, rich image representative features used are Haar basis functions which have been used by Papa Georgiou et al[5].

Figure I: Principle of face detection system

(2)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459,ISO 9001:2008 Certified Journal, Volume 4, Issue 3, March 2014)

211

For the rapid computation of the features at many levels we introduce the concept of integral image representation. The integral image can be computed from an image only with a few operations per pixel. Once computed, any one of these Haar-like features can be computed at any scale or location in constant time. The another contribution of the research work is a process for developing a classifier with selection of a small number of features using LDA. The weak classifier is constrained so that each weak classifier returned can depend on only a single feature. The third contribution is of the method that combines successively simple to complex classifiers in a parallel and cascaded structure which increases the speed of the detector by paying attention on promising regions of the image. In the domain of face detection it is possible to achieve less than 1per cent false negatives and 40 per cent false positives with a classifier developed from five Haar-like features.

This paper is organized as follows: Section II, introduce feature types and evaluation. Section III explains the proposed cascading algorithm for training weak classifier. Section IV explains the parallel algorithm and Section V gives experiments and discussions.

II. FEATURE TYPES AND EVALUATION

[image:2.612.358.536.119.262.2]

The feature employed by the detection framework universally involves the sums of image pixels within rectangular areas. As such, they bear some resemblance to Harr basic function, which have been used previously in the realm of image-based object detection. However, since the features used by Viola and Jones all rely on more than one rectangular area, they are generally more complex. The figure at right illustrates the four different types of features used in the framework. The value of any given feature is always simply the sum of the pixels within clear rectangles subtracted from the sum of the pixels within shaded rectangles. As is to be expected, rectangular features of this sort are rather primitive when compared to alternatives such as steerable filters. Although they are sensitive to vertical and horizontal features, their feedback is considerably coarser. However, with the use of an image representation called the integral image, rectangular features can be evaluated in constant time, which gives them a considerable speed advantage over their more sophisticated relatives. Because each rectangular area in a feature is always adjacent to at least one other rectangle, it follows that any two-rectangle feature can be computed in six array references, any three-rectangle feature in eight, and any four-rectangle feature in just nine.

Figure II: Nineteen types of Harr Like Features

A. Learning algorithm

[image:2.612.362.524.359.484.2]

There are two algorithms that are used to study and simplify the basic face detection systems and they can be classified as: Cascading and parallel LDA. The Figure III shows flow diagram of face detection using of Haar like feature calculation.

Figure III: Flow diagram of Face Detection

B. Cascaded Architecture

(3)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459,ISO 9001:2008 Certified Journal, Volume 4, Issue 3, March 2014)

[image:3.612.87.250.147.227.2]

212

Figure IV: Cascade Architecture

To reduce to roughly half the number of times the entire cascade is evaluated is the work of this singly set classifier. The cascade architecture has interesting implications for the performance of the individual classifiers. Since each classifier’s activation is depended fully on the behavior of its predecessor, the false positive rate for entire cascade can be summarized as:

Same way, the detection rate can be given as:

Therefore, in order to match the false positive rates which are typically achieved by other detectors, each classifier has to away with having surprisingly poor performance. For example, to achieve a false positive rate of each classifier for a32-stage cascade needs only to achieve a false positive rate of about 65%. However, at the same time each classifier has to be exceptionally capable if it has to achieve detection rates adequately. For example, in order to achieve a detection rate of about 90%, it is necessary for each classifier in the aforementioned cascade to achieve a detection rate of approximately 99.7%.

The cascaded scenario permits most of the non-face patches to be rejected instantly before reaching to the final node, hence results in fast performance. When a test image patch passes tests in all nodes then and only then it is reported as a face. In this way, most non-face patches are rejected at the early nodes.

Cascade detectors lead to very fast detection speed and high detection rates. Cascade classifiers have also been used in the context of support vector machines (SVMs) for faster face detection [4]. In [11], soft-cascade is developed to reduce the training and design complexity. The idea was further developed in [12].

We have followed Viola and Jones’ original cascade classifiers in this work.

Figure V: Cascade classifier with multiple nodes. Here a circle represents a node classifier. An input patch is classified as a target

only when it passes tests at each node classifier [1].

III. LINIER DISCRIMINATE ANALYSIS ON ASYMMETRIC DATA

In the cascade classifiers, we would give preference to a classifier that yields high detection rates but without the introduction of any false positives. Binary variables (decision stump outputs) takes the Bernoulli distribution and from that it can be easily shown that the log likelihood ratio is a linear function. In the Bayes sense, linear classifiers are optimum for the normal distributions with the equal covariance matrices. However, due to simplicity and robustness of it, linear classifier has shown to perform well not only for normal distributions with unequal covariance matrices but also for non-normal distributions.

A. The Cascading Algorithm

Algorithm 1: The simple training process for developing a cascade of GSLDA object detector.

Input:

 A positive training set and a negative training set;

 A set of Haar-like rectangle features h1; h2; _ _ _ ;

 Dmin: minimum acceptable detection rate per cascade level;

 Fmax: maximum acceptable false positive rate per cascade level;

[image:3.612.360.537.233.282.2]
(4)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459,ISO 9001:2008 Certified Journal, Volume 4, Issue 3, March 2014)

213

1.Initialize: i = 0; Di = 1; Fi = 1;

2 whileFtarget < Fi do

3 i = i + 1; fi = 1;

4 foreachfeature do

 5 Train a weak classifier (e.g. ,a decision stump parameterized by a threshold _) with the smallest errormon the training set;

 6 whilefi > Fmaxdo

 7 1. Add the best weak classifier (e.g., decision stump) that yields the maximum class separation;

 8 2. Lower classifier threshold such that Dmin holds;

 9 3. Update fi using this classifier threshold;

 10 Di+1 = Di _Dmin; Fi+1 = Fi _fi; and remove

correctly

classified negative samples from the training set;

 11 if Ftarget < Fithen

 12 Evaluate the current cascaded classifier on the negative images and add misclassified samples into the negative training set;

Output

 A cascade of classifiers for each cascade level i = 1_ ;

 Final training accuracy: Fi and Di;

as

F(x)={ ∑ ( )

(1)

Where h(.) defines a function which returns binary outcome from the equation, x is the input image features and Ø is an optimal threshold such that the minimum number of examples are misclassified. In this research work, linear classifier is the summation of decision stump classifiers. By central limit theorem, the linear classifier is close to normal distribution for large n. The asymmetric goal for the training cascade classifiers can be given as a trade-off parameter between false acceptance rate "1 and false rejection rate "2 as

r="1+_"2; (2)

Where _ is a trade-off parameter. The main objective of LDA is to maximize the projected space between-class covariance matrix (distance between the mean of two classes) and minimize the within-class covariance matrix (total covariance matrix). The selected weak classifier can definitely achieve this goal. The large projected mean difference and small projected class variance indicates that the data can be separated at more ease and, hence, the asymmetric goal can also be achieve more easily.

IV. THE PARALLEL GSLDAALGORITHM

Algorithm 1: The simple training process for building a

parallel of GSLDA Face detector.

Input:

A positive training set and a negative training set; A set of Haar-like rectangle features h1,h2,h3; 1 For each feature does

2Train a weak learner (e.g. decision stump parameterized By a threshold that result in the minimum classification Error) on the training set;

3 while the target goal is not met

4Add the best weak learner (e.g., decision stump) that yields

the maximum class separation to the set of selected weak Learners using LDA;

Output: A set of weak learners [1, T] that best separates the Training set.

[image:4.612.363.525.431.512.2]

Simple types of classifiers are used to reject the majority of sub window, before more number complex classifiers are called upon to achieve low false positive rates. The overall problem of the detection process is that of a degenerate decision tree, what we calla―parallelcascade‖.

Figure VI: Schematic depiction of a parallel detection cascade.

(5)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459,ISO 9001:2008 Certified Journal, Volume 4, Issue 3, March 2014)

214

A negative outcome at any point leads to the immediate rejection of the sub-window. Stages in the cascade are developed by making the classifiers trained using LDA and then adjusting the threshold value to Minimize false negatives rates.

In the further evaluation, detections are made together in a very simple manner. The set of detections are first partitioned into the disjoint subsets. Two detections are put into the same subset if bounding regions of them overlap. Each partition yields a single final detection. The average of the corners of all detections in the set is the corners of the final bounding region. Detections are considered to be true or false positives based on the area of overlap with ground truth bounding boxes. Considered to be a accurate detection, there must be at least a 50 per cent overlap between the predicted bounding box and ground truth bounding box. If multiple detections occur in the same face in an image then they are considered false positive detections.

V. OBSERVATIONS AND DISCUSSIONS

[image:5.612.314.558.117.669.2]

This section of paper consists of the data sets and the increased performance of using sets as well as ROC of face detection given in Figure5. We have made a test on our face detectors on the low resolution faces dataset, MIT+ CMU frontal face test set. The overall set contains 130 images with 507 frontal faces. In this experiment, we have made the scaling factor to 1.2 and window shifting step to 1 pixel. Also its negative error rate is less as compare with GSLDA (shown in figure 5) [1]. Table I describes the time required to detect face from the given image. From observation we can observe that image containing less number of faces required less time to process as compare to the image containing more number of faces..

Table I.

Performance of proposed face detection system with 640×480 resolution images

# of Faces Single classifier Parallel classifier

1 276.24ms (3.62fps) 71.174ms (14.05fps)

2 282.49ms (3.54fps) 72.57ms (13.78fps)

6 316.45ms (3.62)

99.30ms (10.07fps)

[image:5.612.371.512.139.292.2]

7 315.46ms (3.16fps) 106.26ms (9.41fps)

Figure VII: LDA and GSLDA curve for face detector on MIT+CMU test set

Figure VIII: Comparison between PGSLDA and GSLDA for train and test error sets.

[image:5.612.324.554.494.652.2]
(6)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459,ISO 9001:2008 Certified Journal, Volume 4, Issue 3, March 2014)

215

VI. CONCLUSION

An alternative approach for the detection of faces is provided in this research paper.The improved scenario is GSLDA. Both the approaches of parallel and cascaded algorithms are systematically studied. With the development of the parallel classifier and then experimenting gives result shows that double cascade classifier required less time as compare required is to single cascade classifier (GSLDA). The accuracy of face detection is very high. Future work will be focus on the search for more efficient weak classifier and apply this technique for character detection.

REFERENCES

[1] C.Shen and Jana Zhang―Efficiently Learning a Detection Cascade With Sparse Eigenvectors‖, IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 20, NO. 1, JANUARY 2011.

[2] B. Moghaddam, Y. Weiss, and S. Avidan, ―Fast pixel/part selection with sparse eigenvectors,‖ in Proc. IEEE Int. Conf. Comput. Vis., Riode Janeiro, Brazil, 2007, pp. 1–8.

[3] P. Viola and M. J. Jones, ―Fast and robust classification using asymmetric AdaBoost and a detector cascade,‖ in Proc. Adv. Neural Inf.Process. Syst., Vancouver, Canada, 2002, pp. 1311–1318.

[4] P. Viola and M. J. Jones, ―Robust real-time face detection,‖ Int. J. Comput. Vis., vol. 57, no. 2, pp. 137–154, 2004.

[5] C. Papa Georgiou, M. Oren, and T. Poggio. A general framework for object detection. In Inter Conference on Computer Vision, 1998. [6] F. Fleuret and D. Geman. Coarse-to-fine face detection. Int.J.

Computer Vision, 2001.

[7] Y. Amit, D. Geman, and K. Wilder. Joint induction of shape features and tree classifiers, 1997.

[8] Paul Viola Michael Jones‖ Rapid ObjectDetection using a Boosted Cascade of Simple Features‖, Conference on Computer Vision and Pattern Recognition,2001

[9] H. Greenspan, S. Belongie and C. Anderson. Over complete steer able pyramid filters and rotation invariance. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 1994.

[10] http://www.face-rec.org

[11] R.O. Duda, P.E. Hart, and D.G. Stork. Pattern classification (2nd Edition).Wiley-Inter science, 2000.

[12] OpenCounterVisionlibrary,oct2008

Figure

Figure I: Principle of  face detection system
Figure III: Flow diagram of Face Detection
Figure IV: Cascade Architecture
Figure VI: Schematic depiction of a parallel detection cascade.
+2

References

Related documents

At Vyrnwy, in mid-Wales, a study of the hydrogeochemistry of two small spruce forested catchments, one a control and one felled midway through the study, shows a classic picture

Since reviewing our experience with blunt renal trauma management from 2002 to 2006, we have abandoned routine early re-imaging for blunt renal injuries of grades I-III and grade

In contrary, high value of acidity (immature fruit) would give a very acid flavor. When fruit is sold in November even if the relationship between soluble solids and

Biopsy specimens from patients who underwent TAB before start of glucocorticoids, or on the same day as treatment initiation were significantly more likely to have

Inclusion criteria were (1) Age 17–70 years, (2) depressed mood plus at least two of the following symptoms (DSM-IV symptoms of dysthymic disorder): poor appetite or

Since quinine is a low clearance drug with a relatively high oral bioavailability, and is primarily metabolised by human liver CYP3A4, the lack of effect of grapefruit juice on

xample gera dvi Markov Logic Networks for Text Mining A Qualitative and Empirical Comparison with Integer Linear Programming Luis Gerardo Mojica and Vincent Ng Human Language