Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.

Slides:



Advertisements
Similar presentations
Principles of Density Estimation
Advertisements

Lecture 3 Nonparametric density estimation and classification
Pattern Classification, Chapter 2 (Part 2) 0 Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R.
Pattern Classification, Chapter 2 (Part 2) 0 Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R.
Pattern recognition Professor Aly A. Farag
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Chapter 4 (Part 1): Non-Parametric Classification
0 Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Chapter 2: Pattern Recognition
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Pattern Classification, Chapter 3 Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
1-NN Rule: Given an unknown sample X decide if for That is, assign X to category if the closest neighbor of X is from category i.
Prénom Nom Document Analysis: Non Parametric Methods for Pattern Recognition Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Chapter 6: Multilayer Neural Networks
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Chapter 4 (part 2): Non-Parametric Classification
Pattern Recognition. Introduction. Definitions.. Recognition process. Recognition process relates input signal to the stored concepts about the object.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
METU Informatics Institute Min 720 Pattern Classification with Bio-Medical Applications PART 2: Statistical Pattern Classification: Optimal Classification.
Methods in Medical Image Analysis Statistics of Pattern Recognition: Classification and Clustering Some content provided by Milos Hauskrecht, University.
COMMON EVALUATION FINAL PROJECT Vira Oleksyuk ECE 8110: Introduction to machine Learning and Pattern Recognition.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
An Introduction to Support Vector Machine (SVM) Presenter : Ahey Date : 2007/07/20 The slides are based on lecture notes of Prof. 林智仁 and Daniel Yeung.
Nearest Neighbor (NN) Rule & k-Nearest Neighbor (k-NN) Rule Non-parametric : Can be used with arbitrary distributions, No need to assume that the form.
Non-Parameter Estimation 主講人:虞台文. Contents Introduction Parzen Windows k n -Nearest-Neighbor Estimation Classification Techiques – The Nearest-Neighbor.
Image Modeling & Segmentation Aly Farag and Asem Ali Lecture #2.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
METU Informatics Institute Min720 Pattern Classification with Bio-Medical Applications Part 6: Nearest and k-nearest Neighbor Classification.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Chapter 13 (Prototype Methods and Nearest-Neighbors )
Vector Quantization CAP5015 Fall 2005.
Pattern Classification All materials in these slides* were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Nonparametric Density Estimation – k-nearest neighbor (kNN) 02/20/17
Non-Parameter Estimation
MIRA, SVM, k-NN Lirong Xia. MIRA, SVM, k-NN Lirong Xia.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
School of Computer Science & Engineering
3(+1) classifiers from the Bayesian world
Non-parametric Density Estimation Chapter 4 (Duda et al.)
Outline Parameter estimation – continued Non-parametric methods.
K Nearest Neighbor Classification
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Nearest-Neighbor Classifiers
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Neuro-Computing Lecture 4 Radial Basis Function Network
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
LECTURE 16: NONPARAMETRIC TECHNIQUES
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Nonparametric density estimation and classification
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
MIRA, SVM, k-NN Lirong Xia. MIRA, SVM, k-NN Lirong Xia.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
ECE – Pattern Recognition Lecture 10 – Nonparametric Density Estimation – k-nearest-neighbor (kNN) Hairong Qi, Gonzalez Family Professor Electrical.
Presentation transcript:

Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley & Sons, 2000

Chapter 4 (part 2): Non-Parametric Classification (Sections 4.3-4.5) Parzen Window (cont.) Kn –Nearest Neighbor Estimation The Nearest-Neighbor Rule

Parzen Windows (cont.) Parzen Windows – Probabilistic Neural Networks Compute a Parzen estimate based on n patterns Patterns with d features sampled from c classes The input unit is connected to n patterns . . . . . W11 x1 x2 xd . p1 p2 . Input unit Input patterns . . Wd2 Wdn pn Modifiable weights (trained) Pattern Classification, Chapter 4 (Part 2)

(Emission of nonlinear functions) . . pn . p1 . p2 Input patterns . 1 . 2 . Category units pk . . . c pn Activations (Emission of nonlinear functions) Pattern Classification, Chapter 4 (Part 2)

Training the network Algorithm Normalize each pattern x of the training set to 1 Place the first training pattern on the input units Set the weights linking the input units and the first pattern units such that: w1 = x1 Make a single connection from the first pattern unit to the category unit corresponding to the known class of that pattern Repeat the process for all remaining training patterns by setting the weights such that wk = xk (k = 1, 2, …, n) We finally obtain the following network Pattern Classification, Chapter 4 (Part 2)

Pattern Classification, Chapter 4 (Part 2)

Training procedure Pattern Classification, Chapter 4 (Part 2)

Testing the network Algorithm Normalize the test pattern x and place it at the input units Each pattern unit computes the inner product in order to yield the net activation and emit a nonlinear function 3. Each output unit sums the contributions from all pattern units connected to it 4. Classify by selecting the maximum value of Pn(x | j) (j = 1, …, c) Pattern Classification, Chapter 4 (Part 2)

Test procedure Pattern Classification, Chapter 4 (Part 2)

Kn - Nearest neighbor estimation Goal: a solution for the problem of the unknown “best” window function Let the cell volume be a function of the training data Center a cell about x and let it grows until it captures kn samples (kn = f(n)) kn are called the kn nearest-neighbors of x Two possibilities can occur: Density is high near x; therefore the cell will be small which provides a good resolution Density is low; therefore the cell will grow large and stop until higher density regions are reached We can obtain a family of estimates by setting kn=k1/n and choosing different values for k1 Pattern Classification, Chapter 4 (Part 2)

Pattern Classification, Chapter 4 (Part 2)

Illustration For kn = n = 1 ; the estimate becomes: Pn(x) = kn / n.Vn = 1 / V1 =1 / 2|x-x1| Pattern Classification, Chapter 4 (Part 2)

Pattern Classification, Chapter 4 (Part 2)

pn(x, i) =p(x|ῳ)P(ῳ)= ki /n.V Estimation of a-posteriori probabilities Goal: estimate P(i | x) from a set of n labeled samples Let’s place a cell of volume V around x and capture k samples ki samples amongst k turned out to be labeled i then: pn(x, i) =p(x|ῳ)P(ῳ)= ki /n.V An estimate for pn(i| x) is: Pattern Classification, Chapter 4 (Part 2)

ki/k is the fraction of the samples within the cell that are labeled i For minimum error rate, the most frequently represented category within the cell is selected If k is large and the cell sufficiently small, the performance will approach the best possible Pattern Classification, Chapter 4 (Part 2)

The nearest –neighbor rule Let Dn = {x1, x2, …, xn} be a set of n labeled prototypes Let x’  Dn be the closest prototype to a test point x then the nearest-neighbor rule for classifying x is to assign it the label associated with x’ The nearest-neighbor rule leads to an error rate greater than the minimum possible: the Bayes rate If the number of prototype is large (unlimited), the error rate of the nearest-neighbor classifier is never worse than twice the Bayes rate (it can be demonstrated!) If n  , it is always possible to find x’ sufficiently close so that: P(i | x’)  P(i | x) Pattern Classification, Chapter 4 (Part 2)

If P(m | x)  1, then the nearest neighbor selection is almost always the same as the Bayes selection Error for nearest neighbor classifier in compare with Bayes error (P*). Pattern Classification, Chapter 4 (Part 2)

Pattern Classification, Chapter 4 (Part 2)

The k – nearest-neighbor rule Goal: Classify x by assigning it the label most frequently represented among the k nearest samples and use a voting scheme Pattern Classification, Chapter 4 (Part 2)

Pattern Classification, Chapter 4 (Part 2)

Error for k-NN classifier Pattern Classification, Chapter 4 (Part 2)

Example: Prototypes Labels (0.15, 0.35) (0.10, 0.28) (0.09, 0.30) k = 3 (odd value) and x = (0.10, 0.25)t Closest vectors to x with their labels are: {(0.10, 0.28, 2); (0.12, 0.20, 2); (0.15, 0.35,1)} One voting scheme assigns the label 2 to x since 2 is the most frequently represented Prototypes Labels (0.15, 0.35) (0.10, 0.28) (0.09, 0.30) (0.12, 0.20) 1 2 5 Pattern Classification, Chapter 4 (Part 2)

Metrics and Nearest-Neighbor Classification The nearest-neighbor classifier relies on a metric or “distance” function between patterns. So far we have assumed the Euclidean metric in d dimensions. We now turn to the use alternate measures of distance to address key problems in classification. First let us review the properties of a metric. A metric D(·, ·) is merely a function that gives a generalized scalar distance between two argument patterns. A metric must have four properties: for all vectors a, b and c Pattern Classification, Chapter 4 (Part 2)

The Euclidean formula for distance in d dimensions. if each coordinate is multiplied by an arbitrary constant, the resulting space also obeys a metric. Pattern Classification, Chapter 4 (Part 2)

One general class of metrics for d-dimensional patterns is the Minkowski metric. referred to as the Lk norm thus, the Euclidean distance is the L2 norm. The L1 norm is sometimes called the Manhattan or city block distance. Pattern Classification, Chapter 4 (Part 2)

Tangent distance Inherent drawbacks is the uncritical use of a particular metric in nearest-neighbor classifiers. These drawbacks can be overcome by the careful use of more general measures of distance (invariance) On crucial such problem is that of invariance. Consider a 100-dimensional pattern x representing a 10×10 pixel grayscale image of a handwritten 5. Pattern Classification, Chapter 4 (Part 2)

Pattern Classification, Chapter 4 (Part 2)

Pattern Classification, Chapter 4 (Part 2)