U-PC: Unsupervised Planogram Compliance

Archan Ray, Nishant Kumar, Avishek Shaw, Dipti Prasad MukherjeeECCV 2018

Abstract

We present an end-to-end solution for recognizing merchandise displayed in the shelves of a supermarket. Given images of individual products, which are taken under ideal illumination for product marketing, the challenge is to find these products automatically in the images of the shelves. Note that the images of shelves are taken using hand-held camera under store level illumination. We provide a two-layer hypotheses generation and verification model. In the first layer, the model predicts a set of candidate merchandise at a specific location of the shelf while in the second layer, the hypothesis is verified by a novel graph theoretic approach. The performance of the proposed approach on two publicly available datasets is better than the competing approaches by at least 10%.

The Challenge of Planogram Compliance

In the retail industry, a planogram is a visual blueprint detailing the exact placement of every product on a supermarket shelf. Maintaining "planogram compliance" is critical for maximizing sales and managing inventory. However, verifying this manually is a labor-intensive and error-prone task for human inspectors.

Automating this process with computer vision presents significant hurdles. Handheld shelf photos often suffer from poor store-level lighting, low resolution, and distracting specular reflections from plastic packaging. Furthermore, many products—such as different varieties of the same cereal brand—look remarkably similar, making accurate identification difficult without specific training for every shelf layout.

Multi-Grain Cheerios: An example of an 'ideal' marketing image used as a reference for shelf matching.

A Two-Layered Framework for Recognition

The U-PC framework addresses these challenges through a robust two-layer "Hypothesis Generation and Verification" model that requires no prior shelf-specific training.

Layer 1: Hypothesis Generation and Neo SURF

The system begins by comparing "ideal" product marketing images against the shelf photo using a sliding window approach. It calculates the Pearson correlation in the Lab color space across multiple scales to identify the top candidate products for every shelf location.

To refine these candidates, the authors introduced Neo SURF (NSURF). Standard SURF is designed to be rotation-invariant, but since grocery products are almost always oriented upright on shelves, the authors removed the rotation calculations. This domain-specific optimization makes NSURF significantly faster and more robust for retail environments.

Great Value Crisp Rice: Another reference image. Distinguishing between similar cereal boxes is a key challenge addressed by U-PC.

Layer 2: Graph-Theoretic Verification

The core innovation of U-PC is its global verification layer. Instead of treating each product detection in isolation, the system constructs a Directed Acyclic Graph (DAG) where:

  • Nodes represent a candidate product at a specific location.
  • Edges represent physical constraints; an edge only connects two products if their physical widths allow them to sit side-by-side without overlapping.

By finding the "Maximum Weighted Path" through this graph using the Bellman-Ford algorithm, the system ensures the final output is a spatially consistent sequence that fits the entire shelf dimensions, effectively filtering out local false positives.

Results and Impact

The U-PC model was evaluated against three datasets, including a massive in-house collection of over 2,000 shelf images and public benchmarks like WebMarket and Grocery.

Key findings include:

  • Superior Accuracy: U-PC achieved 92.4% accuracy on the in-house dataset, outperforming competing models (such as SIFT-histogram and LLC-based approaches) by at least 10%.
  • Robustness: The system proved resilient to extreme glare and minor packaging variations that typically confuse standard vision algorithms.
  • Global Optimization: By using product width as a physical constraint, the model successfully resolved ambiguities between similar-looking items that local matchers often fail to distinguish.

While the system currently faces challenges with depth-wise occlusions and high computational demands for full-aisle processing, U-PC represents a significant step toward fully automated, unsupervised retail auditing.

Summary updated

BibTeX
@inproceedings{ray2018u,
  author = {Archan Ray and Nishant Kumar and Avishek Shaw and Dipti Prasad Mukherjee},
  title = {{U-PC: Unsupervised Planogram Compliance}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  url = {https://openreview.net/forum?id=rk-6ItbO-r},
}
Figure