30
Fine-Grained Classification

Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Fine-Grained Classification

Page 2: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

What is fine-grained Classification?

• Classification with categories that are very similar. – Can think of these as subcategories.

• Examples: – Face recognition

– Species ID: determine plant species from leaf, breed of dog, species of bird.

– ID menu item at McDonalds

– Determine type of shoe.

• Categories are different, but share a common part structure.

Page 3: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Rosch – basic level categories

• Rosch hypothesized that there’s a basic level category that is recognized first. – Furniture, chair, rocking chair. – Animal, dog, beagle – Tree, oak, white oak

• Purpose of categories is enable inferences (tigers are dangerous). – Informative category has many co-occurring attributes – But if category is too fine-grained, we can’t generalize

and they’re hard to identify, since they share attributes with other categories.

Page 4: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Evidence for Rosch

• Children learn to name these earlier.

• Highest level category that is visually distinctive.

• In naming attribute, few for superordinate categories, many for basic level, few additional for subordinate level.

• …

Page 5: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Fine-Grained Classification

• Classification can be defined as identification at the basic level.

• Fine-grained classification is at a subordinate level.

– Instances from the same basic level category

– Share parts == visually similar.

Page 6: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Face Recognition

• Tasks – Recognition: Training set, gallery, probes – Verification

• Holistic methods in 90s. – Eigenfaces – Fisherfaces – Same vs. different

• Joint Bayesian • Using classifier

• Descriptors – Direction of gradient – Local binary patterns – SIFT-based features

Page 7: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Alignment

• Early methods implicitly assumed images well aligned

– All frontal

• Unconstrained data sets required explicit methods for alignment.

Page 8: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Alignment

• Find fiducial points

• Transform image to canonical position

– Similarity transformation

– 2D warp

– 3D rotation

Page 9: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Consensus of Exemplars for Part Detection

• Bayesian formulation combines prior and image data

• Bottom-up local part model as image data term – Sliding Window SVM

• Non-Parametric prior model of part configurations – Prior consists of thousands of labeled examples – In principle, integrate over all possible configurations,

finding MAP estimate combining prior and data. – In practice, use RANSAC and sum over most likely

configurations and poses.

(Belhumeur, Jacobs, Kriegman, Kumar, 2012)

Page 10: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Qualitative Results

Page 11: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Identity-Preserving Warps

Page 12: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

DeepFace

Page 13: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Food 101

Page 14: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Cars

Page 15: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Dog Breed Classification Using Part Localization Jiongxin Liu1, Angjoo Kanazawa2,

David Jacobs2, and Peter Belhumeur1

1 Columbia University 2 University of Maryland

Page 16: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Low inter-breed variation Norfolk Terrier or Cairn Terrier?

Page 17: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

High intra-breed variation Both labrador retriever

Page 18: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Innumerable Poses

Page 19: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Diverse Appearances

Page 20: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Varying geometry of parts

AKITA--0_kita_2BPopular_2BDog_2BBreeds_test.jpg

Page 21: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Overview of the system 1. Face Detection

2. Part Detection 3. Feature Extraction and ear localization

4. One vs All classification

Page 22: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Pipeline 1: Dog Face Detection

Page 23: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Pipeline 2: Localize Parts

Page 24: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Pipeline 3: Infer ears using detected parts

With r exemplars from each breed

With r(=10) exemplars from each breed

Page 25: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Pipeline 3: Infer ears using detected parts

With r(=10) exemplars from each breed

Page 26: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Pipeline 4: Classification

Extract SIFT at part locations for each breed+color histogram one vs all linear SVM classifier

Page 27: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Qualitative Results: Successful

Page 28: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Qualitative Results: Failures

Page 29: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Results: ROC curves

Page 30: Fine-Grained Classificationdjacobs/CMSC733/FineGrainedClassification.pdfFine-Grained Classification •Classification can be defined as identification at the basic level. •Fine-grained

Attributes