Unsupervised Part Mining for Fine-grained Image Classification

Runsheng Zhang, jian zhang, Yaping Huang, Qi ZouarXiv 2019

TL;DR

This paper introduces Unsupervised Part Mining (UPM), a novel approach for fine-grained image classification that localizes discriminative object parts without requiring any human annotations or even image-level labels during the localization phase. By repurposing classic frequent pattern mining algorithms on off-the-shelf CNN feature maps, UPM automatically discovers consistent visual parts (like a bird's head or a car's headlight) and integrates them into a multi-stream classification network, achieving state-of-the-art unsupervised performance.

What Problem Does This Paper Address?

Fine-grained image classification focuses on distinguishing between highly similar subcategories, such as different species of birds, models of cars, or types of aircraft. Unlike general object recognition, the global appearance of these subcategories is often nearly identical; the critical differences lie in subtle, localized features (e.g., the shape of a beak or the texture of a feather).

To capture these details, models must accurately localize specific object parts. However, most existing methods rely heavily on expensive, labor-intensive human annotations like bounding boxes or part location coordinates. While weakly-supervised methods attempt to use only image-level labels, they often require complex, unstable end-to-end training procedures or slow region-proposal algorithms. The authors tackle this bottleneck by asking: Can we discover and localize these discriminative parts in a completely unsupervised manner, without any annotations at all?

Methods

The proposed UPM framework consists of two main components: an Unsupervised Part Localization Module and a Part-based Classification Module.

Figure 1. The overview of our part mining-based classification framework. Given an image, the discriminative parts are localized by our unsupervised part mining (UPM) approach in the purple box. Part-based classification network is a multi-stream network to aggregate different level features for final classification in the red box. Note that our UPM approach does not require any annotations even image-level labels in part localization module. (Best viewed in color)

1. Unsupervised Part Localization

Instead of training a new network from scratch, the authors feed images into an off-the-shelf CNN (VGG-16 pre-trained on ImageNet) without any fine-tuning. They extract feature maps from the deep convolutional layers (pool5 and relu5), observing that semantic parts consistently activate the same spatial locations across different images.

To mine these activations systematically, they convert the problem into a data mining task:

  • Transaction Creation: Each feature map is treated as a "transaction," and each spatially activated position within that map is treated as an "item."
  • Pattern Mining: They apply the classic Apriori algorithm to discover frequent itemsets—essentially finding co-occurring, highly activated regions across the feature maps that correspond to meaningful visual patterns.
  • Part Mining: The discovered patterns are merged into a single "support map." The authors then apply $k$-means clustering to this map to identify $K$ distinct cluster centers, which represent the locations of the object's key parts. Square regions are then cropped around these centers using a dynamic geometric constraint.
Figure 2. The pipeline of unsupervised part localization. First we feed an image in (a) into a pre-trained VGG-16 [29] model in (b), and extract feature maps in (c) of pool5 and relu5 layers. We select the useful descriptors in (d) and convert them into items (e.g., i1 in (e)). Each feature map is converted into a transaction in (e). {i1, i2, ..., i14} is the index set of all highlighted positions, i.e., the item set of the transactions. Then we count the frequency of each item and remain the items whose frequency is greater than β. Thus, we mine the co-occurrence highlighted regions corresponding to the frequent patterns in (f). The mined patterns are merged to generate the support map in (g) and we perform clustering algorithm on it to obtain the part locations in (h). The outputs is the localized discriminative parts in (i). (Best viewed in color)

2. Part-Based Classification

Because the mined parts are initially out of order across different images, the authors use spectral clustering on the deep features to align them semantically (e.g., grouping all "head" crops together). Finally, they build a multi-stream classification network combining three distinct perspectives:

  • Image stream: The original image.
  • Object stream: A cropped view focusing solely on the object (derived from the support map).
  • Part stream: Individual streams for each of the $K$ localized parts.

Features from these streams are extracted, normalized, and concatenated to train a final linear SVM classifier.

Datasets

The authors evaluated their approach on three widely recognized fine-grained classification benchmarks:

  • CUB-200-2011: 200 bird species, heavily focused on subtle biological variations.
  • Stanford Cars: 196 classes of cars, where distinctions depend on make, model, and year.
  • FGVC-Aircraft: 100 classes of aircraft, distinguishing variants of planes with highly similar geometries.

Key Insights and Ideas

  • Repurposing Market Basket Analysis for Vision: The standout "aha moment" of this paper is showing that association rule mining (like the Apriori algorithm, originally designed to find shopping patterns like "people who buy diapers also buy beer") can be mapped directly onto CNN feature maps to find spatial co-occurrences of visual features.
  • Zero-Shot Localization from Pre-trained Models: High-level convolutional layers in standard ImageNet-trained models already possess a remarkable, latent ability to localize semantic parts without ever being explicitly trained on the target fine-grained dataset.
  • Complementarity of Scale: The multi-stream architecture proves that global context (Image stream), background elimination (Object stream), and local details (Part stream) offer highly complementary features that collectively boost final classification accuracy.

Key Results

UPM achieves highly competitive performance, frequently outperforming methods that use much stronger supervision:

  • CUB-200-2011: UPM combined with a ResNet-50 backbone achieved 85.4% accuracy. This significantly outperforms the fully unsupervised baseline NAC (81.0%) and beats several weakly-supervised methods that rely on image-level labels during part localization.
  • Stanford Cars: UPM (ResNet-50) achieved 92.3% accuracy, outperforming several methods utilizing bounding box annotations.
  • FGVC-Aircraft: The framework achieved 90.0% accuracy, establishing a clear margin over baseline models and surpassing methods that rely on manual object annotations.

Limitations and Future Work

The authors do not explicitly include a dedicated limitations section, but a few constraints are apparent from their methodology:

  • Dependence on Pre-trained Representations: The success of the pattern mining relies entirely on the quality of the feature maps from the initial pre-trained model. If the base model fails to activate on unique fine-grained features, UPM's localization capability would degrade.
  • Heuristic Part Cropping: The parts are cropped into simple squares using a fixed scale factor ($\lambda = 1/4$). This rigid geometric constraint might not perfectly capture parts with highly irregular or elongated shapes (such as an airplane's wings or a bird's tail).

Future work could explore adaptive bounding box shapes for the mined parts or extending the unsupervised mining technique to more modern transformer-based architectures.

Summary updated

BibTeX
@misc{zhang2019unsupervised,
  author = {Runsheng Zhang and jian zhang and Yaping Huang and Qi Zou},
  title = {{Unsupervised Part Mining for Fine-grained Image Classification}},
  year = {2019},
  eprint = {1902.09941},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.09941},
}
Figure