1 / 34

Ranking Metrics and Evaluation Measures

Ranking Metrics and Evaluation Measures. Jie Yu, Qi Tian, Nicu Sebe Presented by Jie Yu. Outline. Introduction Distance Metric Analysis Boosting Distance Metrics Experiments and Analysis Conclusions and Discussions. Introduction. Similarity Evaluation:

Download Presentation

Ranking Metrics and Evaluation Measures

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ranking Metrics and Evaluation Measures Jie Yu, Qi Tian, Nicu Sebe Presented by Jie Yu

  2. Outline • Introduction • Distance Metric Analysis • Boosting Distance Metrics • Experiments and Analysis • Conclusions and Discussions

  3. Introduction • Similarity Evaluation: • An organizing process in which individuals classify objects, form concepts, and make generalizations • In automated programs, similarity evaluation can be achieved by ranking the distances between objects. • The similarity between two vectors is often determined by computing the distance between them using certain distance metric. • Euclidean Distance (Sum of Squared Distance, L2) • Manhattan Distance (Sum of Absolute Distance - L1) Which metric to use and why? Is there any better metric?

  4. Distance Metric and Maximum Likelihood • Maximum likelihood theory allows us to relate a data distribution to a distance metric • The problem of finding the right measure for the distance comes down to the maximization of the similarity probability. • Given a specific distribution, the distribution mean can be decided according to Maximum Likelihood theory • is equivalent to • M-Estimator: Any estimate defined by a minimization problem of the form is called an M-estimate. • implying the additive distance model • In similarity estimation, the  could be the query data y.

  5. Distance Metric and Maximum Likelihood • Given a specific distribution, the distance metric d can be decided. • According to Maximal Likelihood the M-estimator can be solved by => • Exponential distribution: • L1 => Median • Gaussian distribution: • L2 => Arithmetic Mean

  6. Distance Metric and Maximum Likelihood • New distance metrics are found by doing reverse engineering on harmonic and geometric mean estimation. • The distance function can be derived from a mean estimation given the restriction that

  7. Distance Metric and Maximum Likelihood Further study on generalized harmonic and geometric mean gives us more distance metrics

  8. Distance Metric and Maximum Likelihood

  9. Comparison of Distance Functions

  10. Robust Distance Metric • For a specific distribution a distance metric may fit it best. • In content-based image retrieval feature elements are extracted for different statistical properties associated with entire digital images, or perhaps with specific region of interest, e.g.: • Color : color moment and color histogram Feature • Texture : wavelet feature • Shape: water-filling feature • Images are represented by a concatenated feature vector of different feature elements. • Distance between two image feature vectors are often evaluated by isotropic distances such as L1 or L2. • Assumption: The feature elements from heterogeneous sources have the same distribution, e.g. Gaussian. • The above assumption is often inappropriate.

  11. Robust Distance MetricRelated Work • Mahananobis distance • d= (xi-yi)TW(xi-yi) • Solving for W involves estimation of d2 parameters • Assumes Gaussian distribution • Sensitive to sample set size • Relevant Component Analysis (RCA) • Applying the estimated distance along with equivalence constraints • Assumes Gaussian distribution

  12. Boosting Distance Metric • An anisotropic and heterogeneous distance metric may be more suitable for estimating the similarity between features. • we propose a boosted distance metric for similarity estimation where similarity function for certain class of samples can be estimated by a generalization of different distance metrics on selected feature elements. • In particular, we use AdaBoost with decision stumps and our distance metric analysis to estimate the similarity.

  13. Boosting Distance Metric • Training set D consists of pair-wise distance vector d between two samples given a specific distance metric m. • The corresponding label for the distance vector is defined as follows: • A weak classifier is defined by a distance metric m on a feature element f with estimated parameter(s) θ

  14. Boosting Distance Metric Algorithm

  15. Boosting Distance Metric Algorithm

  16. Theoretical Analysis • Advantages: • The similarity estimation only uses a small set of elements that is most useful for similarity estimation. • For each element the distance metric that best fits its distribution is learnt. • it adds effectiveness and robustness to the classifier when we have a small training set compared to the number of dimensions. • Since the training iteration T is usually much smaller than the original data dimension, the boosted distance metric works as a non-linear dimension reduction technique, which keeps the most important elements to similarity judgment. It could be very helpful to overcome the small sample set problem. • The proposed method is general and can be plugged into many similarity estimation techniques, such as widely used K-NN.

  17. Experiments and Analysis • Are the new metrics better than L1 and L2? • Stereo matching • Motion tracking • Is boosted distance metric better than single distance metric? • Benchmark datasets • Image retrieval

  18. Experiments and Analysis:Stereo Matching • Stereo matching: to find correspondences between entities in images with overlapping scene content. • The images are taken from cameras at different viewpoints. • The intensities of corresponding pixels are different. • A stereo matcher based on the distance between different image regions is implemented. • The optimal metric in this case will give the most accurate stereo matching performance. • Two standard stereo data sets, Castle and Tower, from Carnegie Mellon University are used for training and testing. 28 reference points in each frame

  19. Experiments and Analysis:Stereo Matching • Distance-based Stereo Matcher • Objective: To match a template (5X5) defined around one point from an image with the templates around points in the other images in order to find similarity • We search the templates centered at a 7X7 zone around the reference points. • Using the distance metrics we discussed, we obtain sum of distances between pixel values of two templates. • If the reference point is in the predicted template in the next frame, we consider that we have a hit, otherwise, we have a miss.

  20. Experiments and Analysis:Stereo Matching • Chi-Square Test • To verify if the ground truth distance matches the modeled distribution most accurately • Chi-Square tests are run on the distances between ground truth and predicted templates. • The smaller the value the more similar are the distributions. • The parameters p, q and r for generalized harmonic and geometric distance are tested from -5 to 5 with step size 0.1 Generalized geometric (0.0239) L2 (0.0378)

  21. Experiments and Analysis:Stereo Matching • L1 and L2are outperformed by several metrics. • The generalized geometric distance gives the best accuracy. • According to Chi-Square test it also fits the distribution better.

  22. Experiments and Analysis:Motion Tracking • In this experiment distance metric analysis is tested on motion tracking application. • To tracing moving facial expressions. • A video sequence containing 19 images on a moving head in a static background • For each image in this video sequence, there are 14 points given as ground truth. • The motion tracking algorithm between the test frame and another frame performs template matching to find the best match in a template around a central pixel. • In searching for the corresponding pixel, we examine a region of width and the height of 7 pixels centered at the position of the pixel in the previous frame.

  23. Experiments and Analysis:Motion Tracking • L1and L2 are not the best choice. • Generalized geometric distance gives the best performance. This figure shows the prediction errors vs. the step between frames compared.

  24. Boosted Distance Metric on Benchmark Database • we compare the performance of our boosted distance metric with several well-known traditional metrics. • L1,L2,RCA,Mah, Mah-C • The last 3 needs parameter estimation. • RCA-CD, Mah-D, Mah-CD • Diagonal matrix is used to avoid small sample size problem • Simple AdaBoost with Decision Stump and C4.5

  25. Boosted Distance Metric on Benchmark Database • Database: 15 data sets from UCI repository • The first 4 datasets have large dimensionality. • 20% of data used as training while 80% as testing. • Average on results of 100 runs.

  26. Boosted Distance Metric on Benchmark Database For traditional metrics only the one gives the best performance is shown in the table.

  27. Boosted Distance Metric on Benchmark Database Our proposed error metric performs the best on 13 out of 15 data sets.

  28. Boosted Distance Metric in Image Retrieval • The boosted distance metric performs an element selection that is highly discriminant for similarity estimation • it doesn’t suffer from the small sample set problem as LDA and other dimension reduction techniques. • To evaluate the performance, we tested the boosted distance metric on image classification against some state-of-the-art dimension reduction techniques: • PCA, LDA, NDA and plain Euclidean distance in the original feature space using simple NN classifier

  29. Boosted Distance Metric in Image Retrieval • Two data sets are used: • A subset of MNIST data set containing similar hand-written 1’s and 7’s • A gender recognition database containing facial images from the AR database and the XM2TVS database • The dimension of the feature for both databases is 784 while the size of training set is fixed to 200 which is small compared to the dimensionality of feature.

  30. Boosted Distance Metric in Image Retrieval For the boosted distance metric, iteration T is equivalent to the dimensionality we reduced to.

  31. Discussions • Our main contribution is to provide a general guideline for designing robust distance estimation that could adapt data distributions automatically. • Novel distance metrics deriving from harmonic, geometric mean and their generalized forms are presented and discussed. • The creative component of our work is to start from an estimator and perform reverse engineering to obtain a metric. • Some of the proposed metrics cannot be translated into a known probabilistic model

  32. Discussions • In similarity estimation the feature elements are often from heterogeneous sources. The assumption that the feature has a unified isotropic distribution is invalid. • Unlike traditional anisotropic distance metric, our proposed method does not make any assumption on the feature distribution. Instead it learns distance metrics on each element to capture the underlying feature structure. • We examined the new metrics on several applications in computer vision, and the estimation of similarity can be significantly improved by the proposed distance metric analysis.

  33. Reference • M. Zakai, “General distance criteria,” IEEE Trans. on Information Theory, pp. 94-95, January 1964. • M. Swain and D. Ballard, “Color indexing,” Intl. Journal Computer Vision, vol. 7, no.1, pp. 11-32, 1991. • R. M. Haralick, et al, “Texture features for image classification,” IEEE Trans. on Sys. Man and Cyb., 1990. • B. M. Mehtre, et al., “Shape measures for content based image retrieval: a comparison”, Information Proc. Management, 33(3):319-337, 1997. • R. Haralick and L. Shapiro, Computer and Robot Vision II, Addison-Wesley, 1993. • R. E. Schapire, Y. Singer, “Improved boosting using confidence-rated predictions,” Machine Learning 37 (3) (1999) 297–336. • C. Domeniconi, J. Peng, D. Gunopulos, “Locally adaptive metric nearestneighbor classification,” IEEE Trans. PAMI 24 (9) (2002) 1281–1285. • J. Peng, et al., “LDA/SVM driven nearest neighbor classification,” IEEE Proc. CVPR, 2001, pp. 940–942. • E. P. Xing, A. Y. Ng, M. I. Jordan, S. Russell, “Distance metric learning, with application to clustering with side-information.”, Proc. NIPS, 2003, pp. 505–512

  34. Reference • A. Bar-Hillel, T. Hertz, N. Shental, D. Weinshall, “Learning distance functions using equivalence relations,” Proc. ICML, 2003, pp. 11–18. • T. Hertz, A. Bar-Hillel, D. Weinshall, “Learning distance functions for image retrieval,” IEEE Proc. CVPR, 2004, pp. 570–577. • P. J. Huber, Robust Statistics, John Wiley & Sons, 1981. • L. Tang, et al., “Performance evaluation of a facial feature tracking algorithm,” Proc. NSF/ARPA Workshop: Performance vs. Methodology in Computer Vision, 1994. • Y. LeCun, et al., MNIST database, http://yann.lecun.com/exdb/mnist/. • A. Martinez, R. Benavente, “The AR face database,” Tech. Rep. 24, Computer Vision Center (1998). • J. Matas, et al , “Comparison of face verification results on the xm2vts database,” Proc. ICPR, 1999, pp. 858–863.

More Related