Store-staff rounds only see a shelf when someone walks past it on a periodic check. A gap that opens just after a check stays invisible until the next one. If a stock-out is equally likely to start at any moment between two rounds, the expected wait before anyone sees it is half the round interval, and restocking hasn’t even started at that point. Cameras can look much more often. Those extra looks only shorten time-to-restock when each detection becomes a task that is right often enough for staff to keep acting on it.
How shelf-execution AI catches stock-outs sooner than store-staff rounds depends on that second condition, and the rest of this article is about it. Detector scores have to be calibrated into probabilities and confirmed over time. Someone has to decide whether to dispatch now, and the task has to reach the store-ops app ranked, with a way to learn from how it was closed. For the wider picture, see our shelf-execution AI overview. The wider practice is described under AI engineering for retail.
What periodic store rounds miss, and how long gaps stay empty
Intel and Vispera describe the manual approach like this: staff go round the shelves at intervals to spot gaps, arrange products to the planogram and check price tags and promotions, several times a day, at every shelf, in every store. Gruen and Corsten (2008) add that audit timing depends on budget and staff availability. Audits often miss peak hours and weekends, and they tend to happen first thing in the morning, when shelves are most likely to have just been restocked. Montoya and Gonzalez (2019) note that visual shelf inspections typically run once a day, cover only the top products and are expensive in staff time.
POS data shows how long stock-outs can last. Gruen and Corsten’s POS-based measurement of 1,084 stock-out events on a US retailer’s 200 fastest-moving items over 14 days, counting hours the store was closed, found that 40% lasted one day or less, a further 20% two days and almost a quarter three days or more. These are fast movers, and those are the items whose stock-outs cost the most lost sales.
Intel and Vispera argue that this is not a staffing shortfall. In their view, adding people adds inefficiency for a marginal gain, because spotting a few missing products among hundreds, quickly and accurately, is not something humans do well. Pretius, a software vendor, makes a related point: associates notice visible gaps but miss partial facings, misplaced SKUs and products trapped behind overstock. The model’s job is to tell staff what is missing and where, and the restock is still done by people, which is why shelf-execution AI does not replace store staff.
When does a stock-out start, and how do you measure detection latency against a round?
Gruen and Corsten define a stock-out as starting when the last saleable unit of a SKU leaves the shelf. It ends when a saleable unit is back on the shelf. Detection latency should be measured from that first moment, not from when a camera, a phone or a person first notices the gap. We would estimate the start from the last image that still showed stock. Point-of-sale data gives a second estimate: Gruen and Corsten note that POS-based measurement identifies the time of day each event starts and stops.
Splitting the total into three intervals shows where the time goes: detection (start to confirmed alert), dispatch (alert to accepted task) and restock (accepted task to a filled shelf). Summed over a period, the same clock gives the out-of-stock duration rate, which is total time out of stock divided by the selling time available. Programme-level reporting on that rate, and on the shelf availability figure derived from it, belongs to measuring on-shelf availability lift.
Procedure: comparing detection-to-restock latency with a round baseline
- Choose the monitored fixtures. For each stock-out, record the estimated start: the last observation that showed a saleable unit.
- Run a baseline period with rounds only, and record when staff first logged each gap and when the shelf was refilled.
- With the pipeline running, record first detection, alert emission after confirmation, task acceptance in the store-ops app, and close-out.
- Report median detection, dispatch and restock latency separately, together with the share of stock-outs found by the model versus by rounds.
- Track false alerts per fixture per day alongside, because a latency gain bought with alerts that staff ignore will not last.
Shelf out-of-stock versus store out-of-stock decides what an alert can fix
Gruen and Corsten separate two kinds of event:
- Shelf out-of-stock: the item is somewhere in the store but not where the shopper expects it. It may be in the back room, in the wrong place or hidden behind other products.
- Store out-of-stock: the item is not physically in the store, because of a forecasting, ordering or delivery problem.
A shelf alert can fix the first kind with a walk to the back room. The second kind needs an order, and an alert that sends an associate to an empty stockroom wastes labour and trust.
How big the shelf share is depends on whose numbers you read. Gruen and Corsten’s 2002 worldwide study put shelf out-of-stocks at about 25% of events. Intel and Vispera report a pilot with a retailer in Turkey that was moving to planogram implementation. On an average day there, more than two thirds of missing products were actually in the depot. The first figure is an average from a worldwide study. The second comes from one Vispera pilot during a planogram transition. We treat the first as a base rate and the second as a sign of how far one estate can sit from it. In a separate study, Raman and colleagues (2001), cited in Fisher and colleagues’ empirical study of store execution, found that over 16% of inventory at one retailer was missing from the shelf and over 65% of inventory records were inaccurate at another.
Across four studies, Gruen and Corsten found that the system’s inventory count matched the real on-hand count only 32% to 45% of the time. Phantom inventory (the system shows more stock than is physically there) is a major cause of store out-of-stocks, because the reorder system never sees how low stock really is. For that reason, we would cross-check a shelf alert against back-room and POS signals before it becomes a task. Items known to be unavailable across the whole store can also be suppressed. Vispera’s system lets staff flag them as “don’t care”, so people only get notifications they can act on.
How often each fixture needs to be observed
Pretius points out that “real time” on a shelf means fast enough to change replenishment within the same shift, not millisecond latency. The vendor says most shelf-visibility systems operate in the 5 to 60 second range. In scheduled mode, Vispera’s ShelfSight measures shelves at a preset frequency and sends alerts to staff mobile devices and in-store screens.
We would set the observation cadence per fixture, based on how fast it empties. Fast movers lose the most sales to stock-outs, and stock-outs rise at weekends. One rate for the whole estate either wastes compute on quiet shelves or under-samples busy ones. Where fixed cameras and staff phones are mixed, we would let cadence vary by fixture. Where the compute runs also limits what cadence is affordable. In Target’s CPU tests, converting YOLOv5n from PyTorch to OpenVINO cut latency from 54 ms to 14.6 ms. Sizing that estate before the pilot starts is the subject of why shelf-execution pilots stall on hardware procurement.
Irregular, mixed-source capture is the reason the next stages of the pipeline exist.
Turning a YOLOv8 confidence score into a stock-out probability
A YOLOv8 confidence score is not the probability that a shelf is really empty. It becomes one only after you fit a calibration function that maps scores to how often confirmed alerts turned out to be real. Calibration here means that when a model says 90%, the event should happen 90% of the time.
TechnoLynx builds this layer in Computer Vision R&D engagements. TechnoLynx turns the calibrated probability into an expected lost-sales score: probability of stock-out × revenue at risk × time to restock.
For a chain of supermarkets or dark stores, we would use past alerts as labelled data, each paired with whether the gap was confirmed on checking. Gruen and Corsten describe the same check for POS-based detection: how often a flagged stock-out actually shows up as a hole when staff go to fix it.
Leathart and colleagues (2017) call Platt scaling and isotonic regression the most commonly used methods for probability calibration:
- Platt scaling fits a two-parameter logistic curve. It stays stable on small label sets but forces a sigmoid shape.
- Isotonic regression fits any monotonic step function. It can follow complex shapes but needs more data and overfits small sets.
Leathart and colleagues also note that both methods assume one calibration fits the whole input space, and that this can lead to poor calibration. In a store estate the problem is easy to picture: a curve fitted on bright, well-faced aisles may not hold in a dim chiller. Their alternative is a finer-grained calibration model. We would fit separately per store or category, where labels allow.
To validate the calibration, plot a reliability diagram (predicted probability against observed frequency) on held-out alerts and track the Brier score. The authors of Measuring Calibration in Deep Learning (2019) found that conditioning on the class gives more effective calibration evaluation. They also recommend adaptive binning, where each bin holds the same number of predictions, because it keeps metric rankings stable.
Decision table: choosing and validating the calibration
| Situation | Calibration choice | How to validate |
|---|---|---|
| Few confirmed outcomes, smooth score-to-outcome relation | Platt (logistic) scaling | Reliability diagram on held-out alerts, Brier score |
| Many confirmed outcomes, curve shape unclear or irregular | Isotonic regression | Reliability diagram with adaptive bins, check for unstable steps |
| Relation differs by store, category or lighting | Separate fits per segment, or a finer-grained calibration model | Reliability diagrams for each segment |
| Layout, SKU range or camera position changes | Refit on post-change outcomes | Compare reliability before and after the change |
The calibration is only as good as the confirmed-stockout labels, and those can be noisy or arrive late. It also drifts as layouts, SKUs and cameras change, so recalibration has to be scheduled, ideally triggered by measured drift rather than complaints. This is a different job from INT8 calibration when quantising a model for TensorRT. That step checks the model’s accuracy survives quantisation, and it says nothing about whether its scores are honest probabilities.
Debouncing detections when camera sweeps run at uneven intervals
A single frame should never create a restock task. Each shelf location needs its detections confirmed over time before an alert fires. The authors of a multi-task video-surveillance framework (arXiv, 2026) explain why: single frames are noise-prone, and alerting on every frame produces false-alarm rates that make an otherwise accurate detector unusable in operation.
TechnoLynx works on this stage with the retailer. TechnoLynx agrees what an alert means for each shelf location, and what detection delay and false positives each store can accept given its capture irregularity. TechnoLynx then builds ingestion, per-location state and task emission as decoupled stages with tunable windows, and tests them on historical multi-store capture logs before production.
In the surveillance framework, every detector feeds a temporal validation layer: multi-frame confirmation, confidence-weighted voting and cascaded filtering. The authors name this layer as the main source of their false-alarm reduction. Their text reader, for example, only settles a reading once at least three readings have been collected for a track.
Which rule to use depends on how regular capture is:
- Regular, frequent fixed cameras: a fixed “N consecutive low-stock frames” rule works.
- Phones or uneven sweeps: “N consecutive” means something different in every store, because it depends on how often that store happened to capture. A time-window rule keyed to each shelf location keeps the same meaning everywhere, for example “low stock in at least K captures within the last T hours”.
An asynchronous producer-consumer design fits the second case. Captures go onto a message bus such as Kafka or a managed pub/sub service, and a consumer updates each shelf location’s state independently, so one store’s capture rhythm never distorts another’s.
The costs are real. A longer window means fewer false alerts but later detection of real stock-outs, so tune it against how long a gap can acceptably sit empty. Per-location state has to persist across capture gaps. A store that goes silent for hours should raise a stale-data flag rather than quietly count as “still fine”. The bus and state store also add operational weight, which is only justified when capture really is irregular. The same trade-off between confirmation delay and false alarms governs industrial computer vision on assembly lines.
Dispatch now, or wait for the next scheduled restock?
High velocity or high margin alone does not justify immediate dispatch. The question is how much the gap will cost before the next scheduled restock fills it anyway, compared with the cost of sending someone now. Gruen and Corsten note that a stock-out only causes a lost sale if it lasts until the next shopper who wants the item arrives. A fast mover can lose several sales in one event, while a slow mover may lose none in a short one.
Intel and Vispera give a reasonable estimate of lost sales: p × N × K. Here p is the unit price, N is the average units sold per timeframe and K is the number of timeframes the product stays out of stock. A dispatch policy can build on that:
- Expected cost of waiting = calibrated stock-out probability × p × N × the number of timeframes until the next scheduled restock.
- Decision: dispatch when that cost exceeds the cost of an unscheduled task (associate minutes times the labour rate); otherwise let the scheduled restock handle it.
This policy is our judgement, not a measured result. It depends on reliable restock-schedule data and on velocity and margin estimates that stay current per SKU. We would build it into automated task generation rather than leave it to each manager’s judgement. Managers should still be able to override it for promotions and supply disruptions, and the thresholds should be revisited per category as restock cadence and margins change. A worked inventory control example follows one gap through to a filled shelf.
What the store-ops app needs from each restock task
We would treat the receiving store-ops app’s task schema, priority handling and any close-out events as fixed, and make the alerting pipeline conform to them. Nothing general can be said about that format in advance, so document the schema and feedback channel from the app itself before building anything.
TechnoLynx builds this connector as part of Computer Vision R&D work. TechnoLynx documents the app’s task schema and feedback channel, maps internal priority scores to the fields it accepts, and builds the export and feedback paths. TechnoLynx then tests that tasks on routes with several jobs appear in the intended order, and monitors for schema changes in production.
Pretius describes the general pattern as turning detections into events integrated with ERP or task-management systems. As a design suggestion, not any app’s documented schema, we would have each task carry at least:
- shelf location and SKU
- detection time and estimated stock-out start
- calibrated probability and priority score
- an image reference the associate can check
- an expiry time after which the task counts as stale
How tasks get ranked on an associate’s route depends on what the app supports. If it has a native priority or rank field, fill it directly from the ranking score. If it only accepts plain task lists, sort the export so the order itself carries the priority.
Close-out events are what the app should send back: restocked, gap not found, or no stock in the back room. They are the confirmed outcomes the calibration fit needs, and they show which alerts are shelf out-of-stocks and which are store out-of-stocks. If the app returns no feedback, retraining cannot close the loop and has to rely on proxies such as repeat alerts and periodic manual review. We would version the mapping so partner schema changes can be tracked. Correct formatting will not fix bad prioritisation if the upstream detections are wrong. The store-side steps once a task lands are covered in the operational workflow when the model flags a planogram break.
Ranking low-stock alerts by expected lost sales
Alerts can be ranked by expected business impact instead of being treated as equally urgent. The ranking is only as good as the retailer’s own sales, margin and labour data behind it. Gruen and Corsten recommend ranking both products and stores by the sales they lose to stock-outs. They also describe an RFID-based triage of incoming delivery cases in which known out-of-stocks are stocked first.
TechnoLynx’s part starts with agreeing what “impact” means for the retailer (lost sales, margin or both) and which labour limits apply in each store. TechnoLynx then picks a scoring model the data can support, and builds scoring and ranking on top of the alerting pipeline with labour-budget inputs. Finally TechnoLynx checks the ranking and cutoff against historical outcomes and pilot dispatch data.
The evidence for impact ranking is promising but modelled. Clarity RFID tested it in a store simulator driven by production sales patterns. Across matched 30-day scenarios, impact-ranked replenishment consistently beat an out-of-stock-first baseline. The company itself calls this modelled evidence that cannot fully reproduce a live store’s variability. We read it as support for the logic, not proof of lift in your stores.
We would set the dispatch cutoff from the labour budget rather than a universal threshold:
- Estimate the labour minutes each store can give to unscheduled restocks per day.
- Divide by the average minutes per task to get the number of alerts per day the labour budget covers.
- The cutoff is the score of the last alert that still fits within that number.
That number will vary by store, category mix and traffic. A quota tuned in one store or season does not carry over to another, and filtering hard to fit the budget with a miscalibrated model will drop the high-impact gaps the ranking exists to protect.
What is an acceptable false-positive rate for low-stock alerts?
There is no universal acceptable false-positive rate. The limit is whatever rate still keeps store staff acting on alerts, and that is a practical, human-factors limit agreed with store operations, not a statistical default. Published studies measure the trade-off between catching stock-outs and raising false alarms. The tolerance itself has to come from the people who receive the tasks.
The trade-off, as measured
- HMM on POS data. Montoya and Gonzalez (2019) applied a hidden Markov model to 15 months of daily sales for 14 products in 10 stores, and checked it against 14 days of visual shelf inspection. It caught 63.48% of stock-outs with a false-alarm rate of 15.52%.
- Zero-sale rule. In the same study, a simple “no sales means out of stock” rule caught 54.78% of stock-outs but raised 37% false alarms, which the authors judged unreliable.
- Retailer’s own model. The retailer’s existing model had a 28.57% false-alarm rate.
- Image-based detection. Target’s empty-shelf model reached a mean average F1-score of 68.5% on its test set. Pretius claims mature gap-detection systems regularly exceed 90% precision and recall, and that lower accuracy can still pay off when the system is well integrated into replenishment.
These figures come from different methods and datasets, so they are not a league table. Our position is that off-the-shelf retail CV fails in ways that only show up at production scale. TechnoLynx tunes the false-alert threshold for what staff can sustain across thousands of fixtures, not for peak accuracy. Cutting false positives without losing sensitivity to real gaps is a statistical re-tuning problem in its own right. Doing it safely needs a defined protocol for when measured drift justifies a change.
Setting the false-alert target before go-live
Measure false alerts per fixture per day, because that is what staff actually feel, alongside the precision of the generated tasks. Detection metrics such as F1 say nothing on their own about replenishment. The KPI you report to the retailer should therefore pair alert precision with detection-to-restock latency and on-shelf availability on the monitored fixtures. Lower the alert threshold only if that combined measure improves, not just because alert volume falls. Other operational changes during the pilot can confound the comparison, so keep a control group of fixtures or stores where you can.
A pilot plan for shelf alerts
Size the pilot by the number of confirmed and disproved alerts it collects, not by the calendar. Gruen and Corsten warn that audits lasting a week are often too short to measure true average rates because daily and weekly variation is large. That argues for covering several full weekly cycles, weekends included. Montoya and Gonzalez had to collect daily inspections specifically to evaluate their model, because the company did not record shelf availability regularly.
For ground truth, we would rely on sampled manual shelf checks by someone other than the associate closing the task, since close-outs alone can be biased. Manual review is imperfect too, and small samples give unstable estimates. Staff tolerance also varies by store, so set the target locally. Until enough confirmed cases exist, keep the pilot running rather than trusting the measured rates.
Stock-outs the model will still miss or find late
Some gaps never look like gaps to a camera. Target’s annotation rules label an empty location only if it is at least half the width of the neighbouring product. Narrower gaps were never labelled as empty, so that model was not trained to flag them. Gruen and Corsten count an item that is misplaced or hidden behind another as a hole. They also list holes filled with a different product, which then go unrecognised as out-of-stocks.
Drift is another source of misses. Pretius lists its warning signs: confidence scores falling, more false-gap events, spikes in SKU-level misclassification, performance gaps between stores, and obstructed or misaligned cameras. Lighting and packaging-redesign failures are covered in where shelf-execution AI still fails.
Sales data gives a second signal. POS methods flag a stock-out when an item’s expected purchase rhythm stops for longer than a calculated threshold. We would combine the camera signal with POS and back-room signals, then send fewer, targeted rounds to the fixtures the model sees badly.
Extending the pipeline to price tags and promotions
The same rounds that look for gaps also check price tags and promotions. Intel and Vispera describe real-time alerts for differences between promotional and standard pricing, instead of waiting for a customer to point them out. We would carry the pipeline over: calibration per check type, confirmation over time, priority, export and close-out feedback. One input changes. A wrong price tag does not deplete like a stock-out, so the dispatch decision depends on how much of the promotion window is left rather than on time to the next restock.
The scope stays on shelf state: products, tags and displays, never the shoppers in front of them. That line is drawn in where shelf execution ends and footfall analytics begins. The checks themselves are surveyed in what digital shelf monitoring detects.
Who can build low-stock alerting that store staff will act on?
TechnoLynx builds the path from shelf detection to dispatched restock task as Computer Vision R&D work, starting with agreeing alert semantics and tolerances store by store. That covers four pieces of work:
- calibrating detector scores against confirmed outcomes
- confirming detections over irregular capture
- ranking tasks by expected lost sales
- connecting tasks to your store-ops app with close-out feedback
Where a team already owns its detection model, capture estate and store-ops integration, we would expect it to build the alert logic itself. A specialist earns their place when the model, the cadence and the integration have to be engineered together. When choosing a partner, ask how they would measure detection-to-restock latency against your round baseline, and how they would agree the false-alert target with store operations.
This engagement does not suit a retailer who wants a packaged shelf-monitoring subscription with a ready-made dashboard. Packaged shelf-recognition products are the fairer route there. Some retailers instead work with out-of-stock identification vendors who analyse POS data continuously and notify managers in real time. A retailer with a strong in-house data team may only need help with one stage, such as calibration or the connector.