Skip to content

AI systemsRetail

Restock Planner

Count the shelf from a photo, forecast two weeks of sales and write the order to each supplier.

  • Object detection
  • Demand forecasting
  • Reorder rules
  • Text generation

The system

Four kinds of AI, one flow. Select a stage to jump to it.

Training the forecasts…

01 · Count the shelf

Deep learningLoads when you scroll here
Three photos: the drinks shelf, the soda stand and the cup tray. COCO-SSD (9.3 MB, from this site) looks at each zone of the shelf plan in squares cut from the photo.
Photo
Three shelves of large soft-drink bottles: dark, orange, green, yellow and clear bottles in rows

Stand-in photo: Soft drinks on supermarket shelves, by SMC at English Wikipedia, from Wikimedia Commons (public domain). The shop, its products and the zones are made up.

40%
A box counts when the detector is at least this sure. Lower finds more of the half-hidden bottles, and more mistakes.
Cups count as paper cups.

Counts on hand

Nothing counted yet. Count the shelf, or type what you count yourself.

What the detector counted, my count by eye, and the stock on hand the order uses
ProductFoundOn hand
Water, 1 litrenot counted yet–
Cola, 1.25 litresnot counted yet–
Lime soda, 2 litresnot counted yet–
Orange drink, 2 litresnot counted yet–
Lemon soda, 200 mlnot counted yet–
Paper cups, 150 mlnot counted yet–

Found is what the detector counted at the confidence you chose, and how sure it was on average: under 60% the count is flagged. It counts what it can see, so bottles hidden behind the front row are missed. On hand is what the order uses: type over it to correct a count.

02 · Forecast demand

Machine learningFitting…

03 · Reorder policy

Service level
z = 1.64: enough safety stock to get through about 95 in 100 deliveries without running out.
Vaigai Beverages

Delivers Tuesdays and Fridays; at least 3 packs an order.

2 days
Annam Aqua

Delivers Monday to Saturday; at least 2 packs an order.

1 day
Thirumalai Soda Works

Delivers Monday to Saturday; at least 1 pack an order.

1 day
Kalai Paper Products

Delivers Mondays and Thursdays; at least 1 pack an order.

3 days

03 · Purchase order

04 · Write the order emails

Generative AIWaiting for an order

Waiting for the forecast.

Things to try

  1. Count the sample shelf, then press Use my counts by eye and watch the order shrink to what the shop needs.
  2. Give Vaigai Beverages a lead time of 5 days: the order misses Friday's van, comes on Tuesday and grows to cover the wait.
  3. Write an order email with the language model and see the check mark anything that differs from the order.

Where I'd use it

  • Morning shelf checks
  • Reorder planning
  • Supplier orders
  • Café stock

Want this on your own data? Tell me about your project.