pattern recognition
play

Pattern Recognition CSE 802 Michigan State University Spring 2017 - PowerPoint PPT Presentation

Pattern Recognition CSE 802 Michigan State University Spring 2017 Lecture 1, January 9, 2017 Pattern Recognition The real power of human thinking is based on recognizing patterns. The better computers get at pattern recognition, the


  1. Pattern Recognition CSE 802 Michigan State University Spring 2017 Lecture 1, January 9, 2017

  2. Pattern Recognition “ The real power of human thinking is based on recognizing patterns. The better computers get at pattern recognition, the more humanlike they will become.” Ray Kurzweil, NY Times, Nov 24, 2003 “The problem of searching for patterns in data is a fundamental one and has a long and successful history.” Bishop Jain CSE 802, Spring 2017

  3. Jain CSE 802, Spring 2017

  4. Pattern Recognition The act of taking as input sensed data (measurements) and taking an action based on the “category” or “class” of the pattern. Jain CSE 802, Spring 2017

  5. What is a Pattern? “A pattern is the opposite of a chaos; it is an entity vaguely defined, that could be given a name.” (Watanabe) Jain CSE 802, Spring 2017

  6. Recognition Identification of a pattern as a member of a category (class) we already know, or we are familiar with n Classification (known categories) n Clustering (learning categories) Category “A” Category “B” Clustering Classification Jain CSE 802, Spring 2017

  7. Pattern Class n A collection of similar (not necessarily identical) objects n A class is defined by class samples (exemplars, prototypes) n Intra-class variability n Inter-class similarity n How to define similarity? Jain CSE 802, Spring 2017

  8. Intra-Class Variability Handwritten numerals Jain CSE 802, Spring 2017

  9. Inter-class Similarity Characters that look similar Identical twins Jain CSE 802, Spring 2017

  10. Cat vs. Dog: 2-class Classification Jain CSE 802, Spring 2017

  11. (Supervised) Classification Labeled training samples for classifier design Jain CSE 802, Spring 2017

  12. Clustering: Unsupervised Classification Training samples are unlabeled Jain CSE 802, Spring 2017

  13. 1. Use shape and appearance to classify a pet breed automatically from an image. 2. Shape is captured by a deformable part model detecting the pet face; appearance is captured by a bag-of-words model to describe the pet fur. 3. Automatically segmenting the animal in the image. 4. Two classification approaches: a hierarchical one, in which a pet is first assigned to the cat or dog family and then to a breed, and a flat one, in which the breed is obtained directly. https://www.robots.ox.ac.uk/~vgg/publications/2012/parkhi12a/parkhi12a.pdf Jain CSE 802, Spring 2017

  14. Problem Definition & Data Oxford-IIIT Pet dataset: 7,349 images of cats & dogs of 37 different breeds: 25 dogs & 12 cats. ~200 images/ breed, split randomly into 50 for training, 50 for validation, and 100 for testing. Three tasks are defined: Pet family classification (Cat vs Dog, a 2- class problem) • Breed classification given the family (a 12-class problem • for cats and a 25-class problem for dogs) Breed and family classification (a 37-class problem) • Jain CSE 802, Spring 2017

  15. Example Images of Cats & Dogs Jain CSE 802, Spring 2017

  16. Segmentation: Foreground v. Background Jain CSE 802, Spring 2017

  17. Feature Extraction Jain CSE 802, Spring 2017

  18. Classification Performance Jain CSE 802, Spring 2017

  19. Pattern Recognition Applications Problem Input Output Speech recognition Speech waveforms Spoken words, speaker identity Non-destructive testing Ultrasound, eddy current, Presence/absence of flaw, acoustic emission waveforms type of flaw Medical waveform analysis EKG, EEG waveforms Types of cardiac conditions, classes of brain conditions Remote sensing Multispectral images Terrain forms, vegetation cover Aerial reconnaissance Visual, infrared, radar images Tanks, airfields Character recognition scanned image Alphanumeric characters (page readers, zip code, license plate) Jain CSE 802, Spring 2017

  20. Pattern Recognition Applications Problem Input Output Identification and Slides of blood samples, micro- Type of cells counting of cells sections of tissues Industrial inspection (PC Scanned image (visible, Acceptable/unacceptable boards, IC masks, infrared) textiles) Factory automation 3-D images (structured light, Identify objects, pose, laser, stereo) assembly Web search Key words specified by a user Text relevant to the user Fingerprint identification Input image from fingerprint Owner of the fingerprint, sensors fingerprint classes Signature recognition Signature Financial transactions (off-line, on-line) Jain CSE 802, Spring 2017

  21. License Plate Reading System n Detect and read the license plates n Modules: (i) acquisition, (ii) enhancement, (iii) segmentation, (iv) character recognition n Accuracy, robustness & real-time Jain CSE 802, Spring 2017

  22. Processing Steps Plate localization: Isolate the plate in image n Preprocessing: Plate orientation and sizing; n Normalization: Adjust image brightness & contrast n Segmentation: Find individual characters n Character recognition: OCR n Post-processing: Rules for character placement n Jain CSE 802, Spring 2017

  23. Challenges n Poor image resolution: plate too far; low-res. image n Motion blur n Low contrast: overexposure, reflection/shadows n Viewpoint variation and occlusion n Different fonts, background

  24. Pattern Recognition System n Challenges n Pattern representation n Pattern classification n System design n System training or learning n System testing or evaluation Jain CSE 802, Spring 2017

  25. Representation What facial features to use to account for the large intra-class variability? John P. Frisby, Seeing . Illusion , Brian and Mind , Oxford University Press, 1980 Jain CSE 802, Spring 2017

  26. Jain CSE 802, Spring 2017

  27. Jain CSE 802, Spring 2017

  28. Representation: Desirable Properties n Invariance n Account for intra-class variations n Ability to discriminate classes of interest; low inter-class similarity n Robustness to noise, occlusion,.. n Provide simple decision making strategies n Low measurement cost; real-time Jain CSE 802, Spring 2017

  29. Invariant Representation Invariant to • Translation • Rotation • Scale • Skew • Deformation • Color Not all invariant properties are needed for a given application Jain CSE 802, Spring 2017

  30. Jain CSE 802, Spring 2017

  31. System Performance n Error rate; confusion matrix, RoC n Speed (throughput) n Cost n Robustness n Reject option n Return on Investment (RoI) Jain CSE 802, Spring 2017

  32. Reject Option What if the system encounters a previously unseen class? 水 Jain CSE 802, Spring 2017

  33. Fruit Sorter TV Camera Control unit Fruit Conveyor belt Movable Partition Crates Statistical Pattern Recognition, Anil K. Jain Jain CSE 802, Spring 2017

  34. Veggie Vision: A Produce Recognition System A test of 145 items, every item on the shelf, was performed, using all produce items available in a supermarket. Ten images per item was collected for a total of 1,450 images. Leave-one-out method for evaluation was used. For color & texture features combined, 84% of the time, correct produce class was selected, 96% of the time, the correct class was present in the top four choices. http://researcher.watson.ibm.com/researcher/files/us-smiyaza/jhc-waiat.pdf http://researcher.watson.ibm.com/researcher/files/us-smiyaza/jhc-wacv.pdf Jain CSE 802, Spring 2017

  35. Pattern Recognition System Jain CSE 802, Spring 2017

  36. Fish Classification: Salmon v. Sea Bass Preprocessing • (enhancement, segmentation) Separate touching • or occluding fishes Extract fish contour • Jain CSE 802, Spring 2017

  37. Cut out each of the fish cards on this page, then follow your teacher’s instructions for sorting the fish into categories. After you have compared your classification system with your classmates, follow the steps in the fish key below to identify the names of the fish. http://www-tc.pbs.org/wgbh/nova/education/activities/pdf/2215_reef.pdf Jain CSE 802, Spring 2017

  38. Fish Key (Rule-based System, Decision Tree) Step 1 Step 4 Step 7 If fish shape is long and If the fish has long whip-like If fish has stripes… then skinny… tail, it is a spotted eagle ray go to step 8 then go to Step 2 If the fish has short, blunt If fish does not have If fish shape is not long and tail, it is a peacock flounder stripes, it is a glassy skinny… sweeper then go to step 3 Step 2 Step 5 Step 8 If the fish has pointed fins, If fish has spots… then go to If fish has a v-shaped tail, it is a trumpet fish step 6 it is a squirrel fish If the fish has smooth fins, If fish does not have spots… If fish has a blunt tail, it is it is a spotted moray eel then go to step 7 a glass-eye snapper Step 3 Step 6 If fish has both eyes on top If fish has chin “whiskers,” it is a of the head… then go to spotted goat fish step 4 If fish does not have chin If fish has one eye on each “whiskers,” it is a band-tail side of the head… then go puffer to step 5 Jain CSE 802, Spring 2017

  39. Jain CSE 802, Spring 2017

  40. Representation: Fish Length as a Feature Training samples Jain CSE 802, Spring 2017

  41. Fish Lightness as a Feature Overlap of these histograms is small compared to length feature Jain CSE 802, Spring 2017

  42. Two-dimensional Feature Space Linear (simple) decision boundary; linear classifier Joint distribution of two features leads to better separation Jain CSE 802, Spring 2017

Recommend


More recommend