Fair Use Agreement This agreement covers the use








![Nearest Neighbor Classifiers Anytime Algorithm + Lazy Learning [Reasons] ¢ To the best of Nearest Neighbor Classifiers Anytime Algorithm + Lazy Learning [Reasons] ¢ To the best of](https://slidetodoc.com/presentation_image_h/d5f2cb88df30804ea9c422dd1d9d7fd1/image-9.jpg)






![Simple. Rank Ordering based on Naïve. Rank Algorithm [Xi and Keogh 06] Sorting by Simple. Rank Ordering based on Naïve. Rank Algorithm [Xi and Keogh 06] Sorting by](https://slidetodoc.com/presentation_image_h/d5f2cb88df30804ea9c422dd1d9d7fd1/image-16.jpg)










- Slides: 26
Fair Use Agreement This agreement covers the use of this presentation, please read carefully. • You may freely use these slides for teaching, if • You send me an email telling me the class number/ university in advance. • My name and email address appears on the first slide (if you are using all or most of the slides), or on each slide (if you are just taking a few slides). • You may freely use these slides for a conference presentation, if • You send me an email telling me the conference name in advance. • My name appears on each slide you use. • You may not use these slides for tutorials, or in a published work (tech report/ conference paper/ thesis/ journal etc). If you wish to do this, email me first, it is highly likely I will grant you permission. Please get in contact with Prof. Eamonn Keogh, eamonn@cs. ucr. edu 1 Ueno, Eamonn Keogh, Xiaopeng Xi}, University of California, Riverside (C) {Ken
Draft ver. 12/12/2006 Anytime Classification Using the Nearest Neighbor Algorithm with Applications to Stream Mining Ken Ueno Toshiba Corporation, Japan ( Visiting Post. Doc Researcher at UC Riverside ) Xiaopeng Xi Eamonn Keogh University of California, Riverside, U. S. A. Dah-Jye Lee Brigham Young University, U. S. A. 2
Outline of the Talk 1. Motivation & Background Usefulness of the anytime nearest neighbor classifier for real world applications including fish shape recognition. 2. Anytime Nearest Neighbor Classifier (ANNC) 3. Simple. Rank, the critical ordering method for ANNC How can we convert conventional nearest neighbor classifier into the anytime version? What’s the critical intuition? 4. Empirical Evaluations 5. Conclusion 3
Case Study: Fish Recognition - Application for Video Monitoring System Preliminary experiments with Rotation-Robust DTW [Keogh 05] 2. 0 sec -2 - 1. 5 -1 -0. 5 0 0. 5 1 1. 5 27. 0 sec 2 Time intervals tend to vary among fish appearances 4 Anytime Classifiers Plausible for Streaming Shape Recognition
Real World Problems for Data Mining ¢ ¢ ¢ When will it be finished? Challenges for Data Mining in Real World Applications. l Accuracy / Speed Trade Off l Limited memory space l Real time processing Best-so-far Answer Available anytime? Medical Diagnosis 5 Multimedia Intelligence Motion Search Fish Migration Biological Shape Recognition
Anytime Algorithms ¢ ¢ Trading execution time for quality of results. Always has a best-so-far answer available. Quality of the answer improves with execution time. Allowing users to suspend the process during execution, and keep going if needed. 2. Peek the results 6 3. Continue If you want 1. Suspend
Anytime Characteristics ¢ Interruptability ¢ Monotonicity After some small amount of setup time, the algorithm can be stopped at anytime and provide an answer The quality of the result is a non-decreasing function of computation time ¢ Diminishing returns The improvement in solution quality is largest at the early stages of computation, and diminishes over time ¢ Measurable Quality The quality of an approximate result can be determined ¢ Preemptability The algorithm can be suspended and resumed with minimal overhead [Zilberstein and Russell 95] 7
Bumble Bee’s Anytime Strategy “Bumblebees can choose wisely or rapidly, but not both at once. ” Lars Chittka, Adrian G. Dyer, Fiola Bock, Anna Dornhaus, Nature Vol. 424, 24 Jul 2003, p. 388 To survive I can perform the best judgment for finding real nectars like “anytime learning” ! 8 Big Question: How can we make classifiers wiser / more rapid like bees?
Nearest Neighbor Classifiers Anytime Algorithm + Lazy Learning [Reasons] ¢ To the best of our knowledge there is no “Anytime Nearest Neighbor Classifier” so far. ¢ Inherently familiar with similarity measures. ¢ Easily handle time series data by using DTW. ¢ Robust & accurate 9
Nearest Neighbor Classifiers ¢ ¢ ¢ Instance-based, lazy classification algorithm based on training exemplars. Giving the class label of the closest training exemplars with unknown instance based on a certain distance measure. As for k-Nearest Neighbor (k-NN) we give the answer by voting. a query instance the k instances estimated class of a set of class labels # of nearest neighbors 10 How can we convert it into anytime algorithm?
Designing the anytime Nearest Neighbor 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Function [best_match_class]= Anytime_Classifier (Database, Index, O) best_match_val = inf; best_match_class = undefined; For p = 1 to number_of_classes(Database) D = distance(Database. object(Indexp) , O); If D < best_match_val = D; best_match_class = Database. class_label(Indexp); End Disp(‘The algorithm can now be interrupted’); p = number_of_classes(Database) + 1; While (user_has_not_interrupted AND p < max(index) ) D = distance(Database. object(Indexp) , O); If D < best_match_val = D; best_match_class = Database. class_label(Indexp); End p = p +1; user_has_not_interrupted = test_for_user_interrupt; End 11 Plug-in design for any ordering method Initial Step (Constant Time) Interruptible step
Tentative Solution for good ordering ¢ ¢ ¢ Ordering Training Data is critical. Critical points for classification results best first or worst last? put non-critical points last. Numerosity Reduction can partially be the good ordering solutions. The problem is very similar to ordering problem for anytime algorithms. Leave-one-out (k=1) within training data Numerosity Reduction: S must be decidable before classification Anytime Preprocessing: S does not need to be decidable before classification Keypoint: 12 Static Dynamic in terms of interrupting time S
JF: two-classification problem Class A ¢ 2 -D Gaussian ball ¢ Hard to classify correctly because of the round shape. We need non-linear and fast-enough classifier. ¢ Class B 13
We cannot use DP for JF problem Dynamic Programming (DP) ans(n-1) ans(n) DP is locally optimal. Ideal Tessellations heavily depend on entire feature space. Captures 14 the entire classification boundaries in the early stage.
Numerosity reduction ¢ Scoring strategy: similar to Numerosity Reduction l l Random Ranking (baseline) DROP Algorithms [Wilson and Martinez 00] Weighting based on enemies / associates for Nearest Neighbor DROP 1, DROP 2, DROP 3 l Naïve. Rank Algorithms Sorting based on leave-one-out with 1 -Nearest Neighbor 15
Simple. Rank Ordering based on Naïve. Rank Algorithm [Xi and Keogh 06] Sorting by leave-one-out with 1 -Nearest Neighbor Naive. Rank Anytime Framework + Simple. Rank 1. order training instances by the unimportance measure 2. sort it in reverse order. Observation 1 Penalizing the close instance with the different class label. Observation 2 Adjust the 16 penalty weights with regard to the num. of Classes
How Simple. Rank works. Ranking process on JF Dataset by Simple Rank Voronoi Tessellation on JF Dataset Movie ( T = 1 … 50 ) T=10 Simple. Rank Random Rank (baseline) Click here to start movie 17 wrong class estimation area
Empirical Evaluations fair evaluations based on diverse kinds of datasets Name # classes # features # instances Evaluation Data Type JF 2 2 20, 000 2, 000/18, 000 Real (synthetic) Australian Credit 2 14 690 10 -fold CV Mixed Letter 26 16 20, 000 5, 000/15, 000 Real Pen Digits 10 16 10, 992 7, 494/3, 498 Real Forest Cover Type 7 54 581, 012 11, 340/569, 672 Mixed Ionosphere 2 34 351 10 -fold CV Real Voting Records 2 16 435 10 -fold CV Boolean Two Patterns 4 128 5, 000 1, 000/4, 000 time series Leaf 6 150 442 10 -fold CV time series Face 16 131 2, 231 1, 113/1, 118 time series All of the datasets are public and available for everyone! UCI ICS Machine Learning Data Archive UCI KDD Data Archive 18 UCR Time Series Data Mining Archive
K=1: Voting Records 10 -fold Cross Validation, Euclidean 100 accuracy(%) Simple. Rank 90 Best. Drop Random Test Simple. Rank Test Best. Drop Test Random. Rank 0 50 100 150 200 250 300 350 Number of instances seen before interruption, S 19
Accuracy (%) K=1: Forest Cover Type 20 # of instances seen before interruption
K=1, 3, 5 Australian Credit Accuracy (%) 10 -CV, Euclidean Australian Credit dataset # of instances seen before interruption 21 Preliminary Results in our experiments
K=1 Two Patterns - Time Series Data - 22
Future Research Directions Make ordering+sorting much faster O(n log n) for sorting + α ¢ Handling Concept Drift ¢ Showing Confidence ¢ 23
Conclusion and Summary ¢ ¢ ¢ Our Contributions: - New framework for Anytime Nearest Neighbor. - Simple. Rank: Quite simple but critically good ordering. So far our method has achieved the highest accuracy in diverse datasets. Demonstrates the usefulness for shape recognition in Stream Video Mining. Good Job! This is the best-so-far ordering method familiar with anytime Nearest Neighbor! 24
Acknowledgments Dr. Agenor Mafra-Neto, ISCA Technologies, Inc Dr. Geoffrey Webb, Monash University Dr. Ying Yang, Monash University Dr. Dennis Shiozawa, BYU Dr, Xiaoqian Xua, BYU Dr. Pengcheng Zhana, BYU Dr. Robert Schoenberger, Agris-Schoen Vision Systems, Inc Jill Brady, UCR NSF grant IIS-0237918 Many Thanks!! 25
Fin Thank you for your attention. Any Question? 26