AI and Retail: Why Off-the-Shelf CV Breaks at Retail Scale

AI and retail meet at the shelf, but off-the-shelf CV breaks at scale: long-tail SKUs, look-alikes, edge limits and unknowns. How to measure what works.

AI and Retail: Why Off-the-Shelf CV Breaks at Retail Scale
Written by TechnoLynx Published on 12 Jun 2026

Inside a physical store, AI and retail meet most usefully at the shelf. Computer vision compares what is on the shelf with the planogram, finds gaps and misplaced products, and sends the result to staff who can fix it. The trouble starts at scale. Off-the-shelf CV models that pass a proof of concept tend to fail across thousands of SKUs and many stores. The individual tasks are not intractable. Severe class imbalance, look-alike products, edge hardware that cannot run heavy models fast enough, and a steady flow of unknown items silently misclassified together break assumptions a small pilot never tested. What goes missing is the outcome the buyer paid for, which is less manual shelf auditing.

How can I use AI in my retail store? Start with the shelf

One retail study describes the associate’s job as replenishing gaps against the planogram, checking for misplaced items, and rearranging and tidying products. The authors group this work as “anomaly correction”. Software vendor Pretius writes that most retailers check shelves through periodic manual audits that run at fixed times, cover a small share of the assortment, and miss subtle problems such as partial facings or products trapped behind overstock.

Computer vision adds a layer that inventory systems lack. ERP and warehouse platforms track stock movements, not what is on the shelf, so they can believe a SKU is on hand when the shelf is empty. Pretius calls this phantom inventory: system stock above zero, shelf stock at zero. A planogram compliance pipeline detects products, classifies them, groups them by shelf row and compares each row with the reference. Each item is then labelled correct, misplaced, on the wrong shelf or out of stock, and each of those steps needs its own model.

Digital shelf monitoring with computer vision covers what shelf cameras can detect and what they miss. For a buyer, the harder question is why the same system stops paying off once it leaves the pilot stores.

Why a pilot that hits its accuracy target still leaves the manual audit in place

An accuracy figure describes the model on the images it was tested with. Labour only falls when staff trust the store-level output enough to stop checking it, and those are different things. A 2025 study in Scientific Reports, on a compliance system deployed across more than 7,000 7-Eleven stores in Taiwan, describes one way this happens. Tight aisles and varying shelf depths often make it impossible to capture a whole shelf in one image. Nonfrontal viewpoints, uneven lighting and clutter then produce partial data, so compliance reports become incomplete or misleading. In the authors’ words, this ends up “necessitating additional manual checks”, which defeats the purpose of the system.

The same authors warn that a system that works in one store layout may struggle in another with different shelf heights, product density or image resolution. Retail Insight, an availability analytics vendor, adds that camera systems can miss shelf plugs (no gap, but the wrong item in the slot) and do not say which gap to fix first. A small pilot never exposes the assumptions that scale breaks. A rollout exposes them together, as compound failure modes.

Four failure modes behind retail-scale CV breakdowns

Failure mode What breaks Measured evidence Engineering response
Long-tail SKU imbalance Rare products get suppressed by the classifier Faster R-CNN mAP falls from 36.4% on COCO to 20.9% on long-tailed LVIS, with tail classes near zero (Balanced Group Softmax study, 2020) Grouped or re-weighted classification, balanced sampling
Look-alike products Items differing only in flavour, size or small text get confused Out-of-the-box DINOv3 reaches 53.83% top-1 on the Cat2Real authors’ own catalogue-to-shelf product retrieval set, against 80.73% after domain adaptation Fine-grained embeddings trained with hard negatives
Edge throughput Throughput saturates as request load rises TensorRT speeds response 1.5× to 2× in one passage, up to 1.5× in the paper’s conclusion (7-Eleven authors’ own deployment, 2025) Optimised inference engines and an architecture sized to the board
Unknown objects Unseen inputs get confident wrong labels Deterministic networks give high-confidence predictions on inputs not seen in training (2023 OOD detection study) Confidence thresholds, energy scores, open-world detection

None of these published figures predicts how your own catalogue will behave.

What breaks off-the-shelf CV when the catalogue spans thousands of SKUs?

Scale in the catalogue causes two separate problems. One is how training data is distributed across products. The other is how similar the products look to each other.

Rare SKUs get suppressed, and more of the same data does not fix it

The mechanism has been analysed in general object detection. The Balanced Group Softmax study (2020) found that the weight norms of a detector’s classifier are imbalanced and track the number of training instances per class. Tail-class scores therefore come out much smaller than head-class scores, and softmax magnifies the gap until the classifier wrongly suppresses proposals for low-shot categories. For extreme few-shot classes the weight norms come close to zero. The authors also report that fine-tuning on tail-class samples alone left the rarest group at 0 AP. Splitting classes into groups of similar frequency, so that only comparable classes compete in each softmax, lifted bounding-box AP on tail classes from 0.1% to 13.0% on their long-tailed COCO-LT set.

Retail product datasets show the same imbalance. In the 7-Eleven dataset, 471 product classes average 210 images each, with a median of 165, a minimum of 58 and a maximum of 1,917. That puts the best-covered class at roughly 33 times the images of the worst (1,917 ÷ 58). The authors used frequency-weighted sampling and focal loss to balance training batches. Loss tricks are not free, though. In the Balanced Group Softmax experiments, applying focal loss at proposal level raised foreground accuracy while background accuracy fell from 95.8% to 0.16%, which produced a flood of false positives. The imbalance comes from the data distribution itself. Collecting more images in the same skewed proportions keeps the skew, so the fix has to be in the architecture and the training method, not only in the dataset.

Look-alike products need fine-grained features, not a bigger closed-set classifier

The Products-10K dataset paper (2020) notes that many SKU-level products are fine-grained and look alike at a glance. It also found that 44.5% of its customer images were noise unrelated to their labelled SKU. SKU-110K, released by Trax Retail researchers at CVPR 2019, holds 11,743 shelf images averaging about 147 tightly packed products each, often identical-looking and side by side. The “110K” refers to unique SKUs pictured, not detection classes, because the dataset labels everything as a single “object” class. Its core challenge is localisation at extreme density, not SKU recognition.

The Cat2Real product-recognition study argues that hypermarkets carry millions of active SKUs with daily additions and frequent packaging redesigns, which makes closed-set classifiers obsolete. It also notes that distinct items often differ only in flavour, size or minor text, and that in-store crops suffer from blur, occlusion, rotation and glare. On its retail benchmark, domain-adapted embeddings reached 80.73% top-1, against 68.71% for a commercial embedding model and 53.83% for out-of-the-box DINOv3. Removing the sampling of similar products during training cut top-1 to 74.81%. The authors read this as evidence that the encoder needs explicit exposure to near-identical items to learn the boundaries between them.

Matching detections against a product embedding space avoids training a massive classifier, which Pretius says dramatically reduces maintenance burden. The design work behind that approach is covered in visual search and CBIR for smart retail. The mismatch cases it leaves behind are covered in where CV product matching fails and how to mitigate it.

How does edge hardware throughput limit the retail CV stack?

Edge devices are built around strict energy budgets and few processor cores. A 2025 paper on embedded GPUs for CV notes that quality of service can drop as the volume of data grows, and argues that embedded GPUs speed up CV workloads compared with CPU-only edge devices. Planogram compliance has been run entirely on single-board computers. A January 2024 study by Yücel, Topaloğlu and Ünsalan ran object detection and Needleman-Wunsch sequence alignment together on a Raspberry Pi 4, an NVIDIA Jetson Orin Nano and a Jetson AGX Orin. The excerpt available to us gives no throughput figures for those boards, and none of the sources here gives a hard frames-per-second number for retail shelf models on specific edge hardware.

The 7-Eleven deployment tests show what happens under load. As request volume rose, requests per second grew more and more slowly, close to a logarithmic curve, as the system approached saturation. NVIDIA TensorRT, which uses layer fusion, precision calibration and memory optimisation, improved response speed by an average of 1.5× to 2× in one passage of the paper. The conclusion of the same paper says “up to 1.5×”. We would plan around the lower figure until we had measured our own models.

Constrained edge hardware cannot run heavy models at the throughput a retail deployment requires. Optimisation engines buy headroom, but they cannot rescue a stack that was sized for a datacentre GPU.

How should a retail CV system flag products it has never seen?

The system should say “I don’t know” before it says something wrong. A 2023 study on out-of-distribution detection points out that object detectors are usually evaluated on test data drawn from the training distribution, while out-of-distribution inputs are unavoidable in practice. Deterministic networks give high-confidence predictions on inputs they never saw in training. In one Cat2Real failure case, a commercial baseline shown a heavily blurred product degraded to irrelevant categories such as linens. In a store, an output like that looks exactly like a valid detection.

There are three levels of response, in rising order of complexity:

  • Confidence thresholds. The 7-Eleven classifier marks a product “unknown” when its top confidence falls below a set threshold. The system also returns “Unknown” when shelf conditions differ strongly from its training data.
  • Better uncertainty scores. The 2023 OOD study notes evidence that energy scores outperform softmax-based and generative scores for OOD detection, though OOD methods for object detection remain underexplored.
  • Open-world detection. Joseph et al. (CVPR 2021) define the task as identifying unseen objects as “unknown” without explicit supervision, then learning those categories incrementally without forgetting earlier ones.

Thresholds have a weakness. A 2021 paper on drift detection notes that a classifier’s confidence may not reflect its real performance. Architecture can also work against the flag: in the Balanced Group Softmax design, every group scores at least one category highly for any proposal, which produces false positives. Zero-shot results should be read carefully too. The 7-Eleven authors report 98.39% zero-shot top-1 on unseen categories, and Cat2Real kept 80.23% top-1 with evaluation products removed from training, but both figures come from their own datasets. We would still route every unknown to a human review queue and treat it as labelling input. The 7-Eleven team’s own auto-labelling still needed manual inspection to correct mistakes.

Measuring AI and retail outcomes: on-shelf availability and audit labour, not mAP

Model metrics answer whether the model works. Store metrics answer whether the deployment works. A buyer needs both, and neither substitutes for the other. The 7-Eleven team reported precision, recall, F1 and mAP@50. They also held out a fourth store their training data never touched, so the evaluation reflects a new environment. That second step is the minimum test for a multi-store rollout.

Measure What it tells you Where it misleads
mAP, precision, recall on a test split Model quality on familiar data Does not show whether the model adapts to another store’s layout
Held-out store evaluation Whether the model generalises to an unseen environment One store is still one layout
Manual weekly gap scans A cheap-to-understand availability baseline Expensive, samples few items and times, and stores mark their own homework (Retail Insight)
CV gap detection rate Gaps detected in captured shelf images Misses shelf plugs and does not rank gaps by value
Phantom inventory events Mismatch between ERP stock and the empty shelf Surfaces through repeated zero-facing events joined to ERP data
Audit hours removed The labour outcome the system was bought for Not reported in the studies cited here

Pretius cites one study that found an 11% sales lift for items with negative inventory-record accuracy once the records were corrected. That is a single cited study, not a forecast for your stores. Ownership matters too. Retail Insight notes that on-shelf availability spans store operations, merchandising, supply chain and online, and that aligning those departments is hard. Our judgement is that the labour figure is the most important number, and none of the studies cited here measures it. Track audit hours per store before and after rollout, alongside availability, or the deployment will be judged on mAP by default. Our piece on what ROI computer vision delivers in retail goes further into the financial case.

What should the store do when the model flags a stock-out, and when should it distrust the flag?

A flag is only useful if staff act on it quickly. The 7-Eleven pipeline assigns each product a status, which the authors say should reach store staff quickly. It infers out-of-stocks when the gap between neighbouring detected products exceeds a threshold. It checks that stacked items belong to the same class before merging them. A workable loop looks like this:

  1. Raise the flag with its status (out of stock, misplaced, wrong shelf) and the shelf row it belongs to.
  2. Send it to the associate who owns that aisle, with the fix action spelled out, not just a picture.
  3. Have the associate confirm or reject the flag, and feed rejections into active learning on hard samples.
  4. Send unknowns and low-confidence items to a central review queue instead of the aisle.
  5. Alert on drift from the classifier’s own labels and confidence, store by store.

Several known conditions undermine the flags. Periodic layout updates and anomalies introduced by staff undermine planogram-dependent systems. Packaging redesigns and new or limited-edition products shift the data under the model. Glare, occlusion and variable lighting add noise. The 7-Eleven authors state that their model was not trained or evaluated for severe occlusion, backward-facing or overlapping products. A drift-detection paper describes the general version of this: data characteristics change between training and production, and accuracy can fall below an expected threshold. The authors propose alerting based solely on the classifier’s own labels and confidence. They also note that a shift in class mix alone (selling more of one product) is not drift. A seasonal promotion should not trigger a retraining alarm.

Treating retail scale as a reliability problem

The four failure modes share a pattern. Each one escapes unit tests and small pilots, then shows up at scale as rare-class misses, look-alike confusion, saturation under load or confident wrong labels. Catching them takes task-specific evaluation, regression suites and drift detection, which is a reliability discipline separate from model accuracy. This is why TechnoLynx approaches AI engineering for retail as an engineering stack (hierarchical recognition, unknown-object surfacing, architectures that fit the edge) and not as a model swap. For how these failure modes interact once they combine, see the compound failure class in retail computer vision.

One question stays open for any buyer: the studies cited here report model accuracy and throughput, not audit hours removed. That number has to come from your own stores, measured before and after rollout.

Back See Blogs
arrow icon