CSSE463: Image Recognition Day 31
Today: Bayesian classifiers Questions?
CSSE463: Image Recognition Day 31 Today: Bayesian classifiers - - PowerPoint PPT Presentation
CSSE463: Image Recognition Day 31 Today: Bayesian classifiers Questions? Bayesian classifiers Use training data p(x) Assume that you know P(x| w 1 ) probabilities of each feature. If 2 classes: P(x| w 2 ) Classes w 1 and
Today: Bayesian classifiers Questions?
Use training data
Assume that you know
probabilities of each feature.
If 2 classes:
Classes w1 and w2 Say, circles vs. non-circles A single feature, x Both classes equally likely Both types of errors equally
bad
Where should we set the
threshold between classes? Here?
Where in graph are 2 types of
errors?
x p(x) P(x|w1) Non-circles P(x|w2) Circles Detected as circles Q1-4
Q5-8
Bayes rule:
Verify with example
For classifiers:
x = feature(s) wi = class P(w|x) = posterior probability P(w) = prior P(x) = unconditional probability Find best class by maximum a
posteriori (MAP) priniciple. Find class i that maximizes P(wi|x).
Denominator doesn’t affect
calculations
Example:
indoor/outdoor classification
i i i
Learned from examples (histogram) Learned from training set (or leave out if unknown) Fixed
p(FF|I) p(FF|O) 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 On Off
p(FF|I) p(FF|O)
1 2 3 4 5 7 9 17 p(SD|I) 0.05 0.1 0.15 0.2 0.25 0.3 0.35 p(SD|I) p(SD|O) 0.01 0.017 0.022 0.03 0.05 0.07 0.1 0.12 p(ET|I) p(ET|O) 0.2 0.4 0.6 p(ET|I) p(ET|O)
1 2.5 4 5.5 7 8.5 10 11.5 p(BV|I) 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 p(BV|I) p(BV|O)
i i i
Q9
Examples
Indoor-outdoor classification Automatic image orientation detection
SVM KL Divergence Color Features SVM Texture Features EXIF header
Each edge in the graph has an associated matrix of conditional probabilities
Recall for a class C is fraction of C classified correctly
See IEEE TPAMI paper
Hardcopy or posted
Also uses single-feature Bayesian classifier
Keys:
4-class problem (North, South, East, West) Priors really helped here!
You should be able to understand the two