Mining Discriminative Triplets of Patches for Fine-Grained Classification

Yaming Wang, Jonghyun Choi, Vlad I. Morariu, Larry S. Davis

Introduction

Fine-grained classification is the task of distinguishing between highly similar sub-categories, such as specific bird species or car models. Unlike general image classification, where global appearance often suffices, fine-grained tasks require identifying subtle, localized differences—like the specific curve of a headlight or the texture of a wing.

Traditional approaches often rely on extensive manual annotations of object parts and keypoints to guide the algorithm. This paper introduces a weakly supervised framework that discovers these discriminative regions automatically using "triplets" of image patches, requiring only object bounding boxes for training.

Methodology: The Discriminative Triplet Framework

The core innovation of this work is the use of Discriminative Triplets. While single patches lack geometric context and pairs only provide distance, a triplet of patches defines a 2D shape (a triangle). This provides sufficient geometric information to filter out false detections and ensure that the same semantic parts are being compared across different images.

The proposed pipeline for mining discriminative triplets, from initialization to final classification.

The Mining Pipeline

The framework follows a multi-stage process to identify and utilize these triplets:

  1. Triplet Initialization: To manage the massive search space of all possible patch combinations, the system first retrieves a "neighborhood" of images with similar poses. It then calculates a discriminative score based on between-class and in-class variation to identify promising candidate regions.
  2. Geometric Constraints: The system enforces two primary constraints to ensure spatial consistency:
  3. Order Constraint: Ensures the patches appear in a consistent clockwise or counter-clockwise arrangement.
  4. Shape Constraint: Compares the internal angles of the triangle formed by the patches to ensure the spatial relationship is preserved despite changes in perspective.
  5. Mining by Entropy: Candidate triplets are evaluated across the training set using an entropy-based measure. Triplets with low entropy—meaning they appear consistently in only a few specific classes—are selected as highly discriminative features.
  6. Bag of Triplets (BoT): The final image representation is a vector composed of the maximum responses from these mined triplets, which is then classified using a standard linear SVM.
Geometric constraints: The order constraint (orientation) and shape constraint ensure spatial consistency across images by comparing orientations and internal angles.

Experimental Results

The researchers evaluated their approach on several challenging datasets, including BMVC-14 (Cars), Cars-196 (Stanford Cars), and FGVC-Aircraft.

Localization and Classification Accuracy

A key finding was the impact of geometric constraints on patch localization. On the FG3DCar dataset, adding these constraints improved localization accuracy from 24.9% (using appearance alone) to 35.3%.

In terms of classification performance:

  • On BMVC-14, the Bag of Triplets (BoT) approach achieved 96.6% accuracy.
  • On Cars-196, the method reached 92.5% accuracy using CNN features, rivaling specialized "Bilinear CNN" models.
  • Notably, even when using simpler HOG features, the BoT method outperformed a fine-tuned AlexNet by over 2%, demonstrating the power of the geometric triplet representation.

Conclusion

This research demonstrates that weak supervision is sufficient for high-performance fine-grained classification. By leveraging the "power of three," the method effectively discovers discriminative parts that would otherwise require expensive manual labeling. While the approach currently depends on object bounding boxes and faces computational challenges during the mining phase, it represents a significant step toward more efficient and automated fine-grained visual recognition.

Summary updated

BibTeX
@inproceedings{wang2016mining,
  author = {Yaming Wang and Jonghyun Choi and Vlad I. Morariu and Larry S. Davis},
  title = {{Mining Discriminative Triplets of Patches for Fine-Grained Classification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  doi = {10.1109/cvpr.2016.131},
}
Figure