How does OSA turn empty shelves into full baskets?

Anastasia Trapeznikova13 Mar 2025

Problem

A grocery chain with more than 27,000 stores and about 6,000 items per store has about 160 million store-item pairs to check every day. Some items are in stock on paper but customers cannot buy them: missing from the shelf, wrong price tag or barcode, or hard to find. The chain loses revenue: by the author's estimate, up to 1% of store revenue. Cameras and shelf photos are too costly, no labels exist, and staff can handle a limited number of tasks per day. Example from the article: mayonnaise is in the store's stock, yet customers cannot buy it, so its sales stop.

Solution in brief

Use sales already in the data warehouse. For each item and store, compare the current no-sales period with the item's usual gap between sales, pooling similar stores for slow items. Rank the flagged pairs, cap them per store, send them to staff as scan-and-fix tasks and use the answers as feedback.

Questions this case answers
  • How to detect hidden item unavailability across hundreds of millions of item-location pairs when no direct sensor data and no ground-truth labels exist
  • How to decide whether a gap in sales of one item at one location is anomalous when sales are sparse and affected by promotions and substitutes
  • How to find products that are in stock in the system but not available on the shelf, using only sales data?
  • How to tell a real availability problem from a normal pause in sales for slow-selling items?

Tools and methods

  • Sales discreteness — how often an item sells in a store, the baseline for a "too long" pause
  • Analog store groups — pooled sales of similar stores to judge slow items
  • Rule-based filters and ML detectors — daily algorithms that propose problem pairs
  • Ranking and per-store limits — turn overlapping signals into a short task list
  • Staff feedback on a handheld terminal — confirms or rejects each signal
Continue reading — it's free

Google or a one-time email code. No password.