Exploring Fine-Grained Retail Product Discrimination with Zero-Shot Object Classification Using Vision-Language Models

Anil Osman Tur, Alessandro Conti, Cigdem Beyan, Davide Boscaini, Roberto Larcher, Stefano Messelodi, Fabio Poiesi, Elisa Ricci

Introduction

Automated retail environments, such as "just walk out" stores, face significant challenges due to high product turnover and the vast variety of items. Traditional deep learning classifiers often struggle in these settings because they require extensive labeled datasets and frequent retraining whenever a new SKU or packaging variation is introduced. This research addresses the need for robust zero-shot and few-shot classification systems capable of fine-grained discrimination—distinguishing between highly similar products, such as different flavors of the same chocolate brand or various brands of the same product type.

The MIMEX Dataset

To facilitate research in this area, the authors introduced the MIMEX dataset. MIMEX consists of 10,357 training and 4,920 test images across 28 distinct retail categories, including snacks, beverages, and personal care items. Unlike generic object datasets, MIMEX captures products being held by human hands, reflecting realistic consumer interactions. This introduces natural challenges such as hand occlusions, motion blur, and varying orientations, making it a rigorous benchmark for fine-grained retail recognition.

Methodology

The proposed approach leverages Vision-Language Models (VLMs) to achieve high accuracy without extensive retraining. The core methodology involves several key components:

  1. Enhanced Textual Embeddings: Using BLIP-2, the researchers generate descriptive captions for products. These detailed prompts provide richer semantic information to the CLIP text encoder than simple class labels, helping the model capture subtle visual nuances.
  2. Visual Prototyping: The system utilizes visual embeddings to create "prototypes" (mean feature vectors) for each product class. Classification is then performed using a Nearest Prototype Classifier (NPC) or k-Nearest Neighbors (k-NN), which proves more effective than pure text-to-image matching for fine-grained tasks.
  3. Ensemble Feature Extraction: The model combines the semantic strengths of CLIP with the robust visual features of DINOv2.
  4. Dimensionality Reduction via PCA: Applying Principal Component Analysis (PCA) to the combined embeddings serves a dual purpose: it reduces computational overhead and acts as a "denoising" mechanism, focusing the model on the most discriminative visual features.
Figure 1: Architecture of the proposed system, illustrating the ensemble of CLIP and DINOv2 image embedders followed by PCA for visual prototyping.

Experimental Results

The researchers evaluated several configurations on both the "Base" (raw) and "Cleaned" versions of the MIMEX dataset. The results demonstrate that the ensemble approach significantly outperforms individual baselines.

Table 1: Performance comparison of different embedding methods and PCA configurations on the MIMEX dataset.

Key findings include:

  • Ensemble Superiority: The combination of CLIP + DINOv2 + PCA (512 dimensions) achieved an average accuracy of 87.76% on the base dataset, surpassing standalone DINOv2 (79.93%) and CLIP (87.53%).
  • Visual vs. Textual: Image-conditioned classification (visual prototypes) dramatically improved results over standard zero-shot text prompts, which only reached ~44% accuracy on the base dataset.
  • Few-shot Efficiency: The system maintained a high accuracy of 89.90% with as few as 50 samples per class, highlighting its suitability for rapid deployment in dynamic retail settings.

Conclusion and Future Work

The MIMEX dataset and the proposed ensemble VLM approach provide a powerful framework for fine-grained retail product recognition. By combining semantic and visual features with dimensionality reduction, the system achieves high accuracy and adaptability, yielding a 15% performance boost over standard baselines. Future research will focus on improving robustness against environmental noise, such as extreme lighting and heavy occlusion, and optimizing the system for real-time latency requirements in live retail environments.

Summary updated

BibTeX
@inproceedings{tur2024exploring,
  author = {Anil Osman Tur and Alessandro Conti and Cigdem Beyan and Davide Boscaini and Roberto Larcher and Stefano Messelodi and Fabio Poiesi and Elisa Ricci},
  title = {{Exploring Fine-Grained Retail Product Discrimination with Zero-Shot Object Classification Using Vision-Language Models}},
  booktitle = {RTSI},
  year = {2024},
  doi = {10.1109/rtsi61910.2024.10761839},
}
Figure