In a physical store, digital shelf analytics (camera-based shelf execution) answers one question: is the shelf right? It checks planogram compliance and out-of-stock items. It does not count shoppers, time how long they stand in an aisle or describe their behaviour, and it should not be stretched to. Footfall and dwell-time analytics belong in a separate programme with its own purpose, legal basis, retention rules and approval. Systematic large-scale monitoring of a publicly accessible area requires a data protection impact assessment.
TechnoLynx’s AI engineering for retail work builds shelf-execution computer vision pipelines scoped to the fixture. The first step is writing down which frame regions the pipeline may process and retain. Where the business also wants footfall, TechnoLynx treats it as a separate workstream commissioned alongside, not a feature bolted on. TechnoLynx claims the engineering of that boundary. The legal judgement on it belongs to the retailer’s data protection officer and counsel.
One clarification on terms. In e-commerce, “digital shelf analytics” usually means monitoring product listings, prices, content and search placement on online retailers’ sites. This article is about the in-store meaning: cameras looking at physical shelves.
What Does the Shelf-Execution vs Footfall Carveout Mean in Practice?
The carveout’s practical effect is to settle what the pipeline is for. A shelf-execution pipeline takes images of fixtures, finds the products on them and compares what it sees with what should be there.
A large published deployment looks exactly like this. A published study describes a planogram compliance system deployed across more than 7,000 7-Eleven stores in Taiwan. Its pipeline detects shelves, recognises products and compares shelf layouts with digital planograms through an alignment algorithm. Its input is a shelf image or a series of shelf images, and its output is a compliance report returned to the store employee. The same system can detect out-of-stock items, and it lets headquarters check every day that shelves are consistent across locations. Nothing in that description involves the people walking past.
A published embedded system design follows the same pattern at the edge. Battery-powered camera modules capture shelf images, single-board computers run YOLO-based detection, and a modified Needleman-Wunsch algorithm scores planogram compliance. The output is a planogram match ratio from 0 (no compliance) to 1 (full compliance). That is the unit of truth a shelf programme produces. Footfall and dwell time measure something different.
Digital Shelf Analytics in the Store: Which Questions Does the Pipeline Answer, and Which Is It Not Built to Answer?
The table below is the boundary in practical form. The left column is what a shelf-execution pipeline should be judged on. The right column is what it is deliberately not built to answer.
| Question | Shelf-execution pipeline | Belongs to a separate people-analytics programme |
|---|---|---|
| Is this SKU on the shelf where the planogram says it should be? | Yes: detection, classification and alignment against the reference planogram | No |
| Is a facing empty or a product out of stock? | Yes: out-of-stock detection is part of published compliance systems | No |
| How compliant is this shelf overall? | Yes: a match ratio or compliance report per shelf | No |
| How many people entered the store or the aisle? | No | Yes: people counting from video sequences is its own method |
| How long did people stay in front of this bay? | No | Yes: dwell detection builds on active zones and time spent in them |
| Who are the shoppers (age, gender, repeat visits)? | No | Only with its own legal basis; biometric re-identification falls under GDPR Article 9 |
The shelf pipeline also has limits inside its own column. The study’s authors say their dataset is mainly standard shelf images with products facing forward. It has not been trained or evaluated for severe occlusion, backward-facing products or overlapping merchandise. Public datasets such as SKU-110K give you a detector for tightly packed products as generic bounding boxes. They do not give you fine-grained SKU identity, planogram context or a specific retailer’s lighting and occlusion, so a public baseline is a starting point and not a deployment. In the embedded study, YOLOv5 models trained on SKU-110K reached mAP50 of 0.59 (YOLOv5x) and 0.56 (YOLOv5s). What happens on messy shelves with constant shopper traffic, and why the pipeline supports staff rather than replacing them, is covered separately.
If the Same Aisle Camera Feed Could Support People-Counting, Why Keep the Programmes Separate?
There are two reasons: the methods differ, and the purposes differ. The fact that one camera could see both shelves and shoppers settles neither.
On method, both published shelf systems work on individual shelf images. The 7-Eleven system processes each shelf image individually before matching it to a planogram shelf. The embedded system only runs compliance control when the shelf has changed significantly. The published people-counting method depends on time. LRCN-RetailNet, a 2020 arXiv architecture for counting people in stores, exploits the spatio-temporal coherence of surveillance video. It predicts the count for a frame from a sequence of that frame and the ones before it. It can even be adapted to count customers while ignoring salespeople. Google’s Vertex AI Vision documentation treats occupancy as its own model, with active-zone counting, line-crossing counting and dwell detection, and dwell detection builds on active zones that track how long objects stay.
On purpose, the UK ICO’s guidance on purpose limitation says you must be clear from the outset why you are collecting personal information and must document that purpose. If you later reuse it for a different purpose, the new use has to be compatible with the original. A new purpose is likely to be incompatible if it is very different from the original, unexpected, or has an unjustified impact on the people involved. For that kind of new purpose, the ICO says, you are likely to need specific consent. “Check the shelf” and “measure shoppers” are very different purposes for one camera.
How Do You Keep People Out of a Shelf-Execution Pipeline in Practice: Framing, Region Masking, Retention Rules?
People are kept out through three layers: where the camera points, what it masks before anything leaves the device, and what the pipeline keeps afterwards. Each layer makes the next one easier to defend.
Framing the Fixture, Not the Aisle
The first control is optical. For filming beyond the premises’ boundaries, the EDPB’s Guidelines 3/2019 tell controllers to consider physical and technical means such as blocking out or pixelating areas that are not relevant. They also say unnecessary functions (unlimited camera movement, zoom, analysis, audio recording) should not be provided, and must be deactivated if present. For a shelf camera, that means a fixed mount, a field of view tight to the shelf face, and no audio. The fewer aisle pixels the camera sees, the less there is to mask. Which existing cameras can be reframed, and which need replacing, is a separate question about shelf monitoring hardware you can reuse.
Masking at the Camera
Where people will still pass through the frame, the camera itself can mask them. Axis documents two methods in its Live Privacy Shield application. Motion-based masking covers everything that moves against the background and suits indoor scenes with good, stable lighting. AI-based masking, on cameras with a deep learning processing unit, masks humans or faces in all lighting conditions. A shelf pipeline that only ever receives masked frames never has to argue about what it did with unmasked ones.
Capture Triggers and Retention
What the pipeline keeps matters as much as what it sees. The embedded design compares a low-resolution greyscale frame with a stored reference. Only when enough pixels have changed does it acquire and transmit a full-resolution shelf image. A shopper walking past will trip a naive change trigger, so a shelf-scoped design should wait for the scene to settle, or reject frames with people in them, before capturing. On retention, the EDPB says personal data from video surveillance should in most cases be erased, ideally automatically, after a few days. Beyond 72 hours, more justification is needed. What the published systems hand back is a compliance report or a match ratio.
The EDPB also notes that the GDPR does not apply to data with no reference to an identifiable person. Masking and short retention move a pipeline towards that position. Whether a given deployment actually gets there is a judgement for the controller, not for the engineering team.
What Review Does Adding Footfall or Dwell Time Pull into a Shelf Project?
Adding people analytics turns an operations project into a privacy project. Where the processing by its nature entails regular and systematic monitoring of people, Article 37(1)(b) of the GDPR requires a designated data protection officer.
The EDPB guidelines set out the obligations. Purposes must be specified in detail before use, documented in writing and specified for every camera, and data subjects must be told about them. Data minimisation requires the controller to check whether video is suitable and necessary at all, and to choose it only when less intrusive means would not do. Article 35(3)(c) of the GDPR requires a data protection impact assessment for systematic monitoring of a publicly accessible area on a large scale. Article 25 requires data protection by design before collection starts. The EDPB itself distinguishes simple counting algorithms, which are less intrusive, from complex biometric technologies. Once a system re-identifies a person entering another area of a shop, for example to target advertising, it falls under Article 9 from the start.
The Canadian privacy commissioners’ finding on Cadillac Fairview (CFCL) shows what a stated footfall purpose can involve. The mall operator said its cameras in wayfinding directories were for monitoring foot traffic patterns and predicting visitor demographics. The investigation found that the technology captured face images held in memory for milliseconds, converted them to numerical representations and estimated age and gender. It retained 5,061,324 of those numerical representations. The commissioners found that the operator collected personal information without knowledge, consent or notice, while signage at one property gave “safety and security” as the only purpose of video recording. The same finding accepted that, for shoppers not logged into the mall’s Wi-Fi, hashed device identifiers with coarse zone locations were not personal information in that context. That is a reminder that the answer depends on the design, not on the label “anonymous”.
None of this review is needed to check whether a facing is empty. Attach it to the shelf project, and the shelf work waits for the slowest approval in the room. Hardware procurement is covered separately in why shelf-execution pilots stall on hardware procurement.
How Does Scope Creep into Behaviour Analytics Distort On-Shelf Availability Metrics?
A product counts as available on the shelf when a shopper finds it where they expect it, at the moment they want to buy it. One industry white paper puts out-of-stock levels across Europe at an average of 8.3%. It also finds that 20% of out-of-stocks stay unresolved for more than three days. The same paper argues that acting on availability means knowing OSA for every SKU, in every store, every day. It also notes that inventory data alone does not show what the shopper sees at the shelf. A stock ledger does not show whether the shelf in aisle seven is empty. That gap is why shelf execution exists, and it is the gap scope creep erodes.
The distortion happens in a few predictable ways. If camera positions are chosen for floor coverage, shelf images get worse. If compute and labelling effort go to tracking people, SKU recognition stops improving. Footfall and dwell dashboards do not tell the steering group whether availability improved. More people in an aisle says nothing about whether a promotional line was on the shelf while they were there. A dwell-time heatmap that rises after a reset can just as easily reflect shoppers searching for a missing product. The programme should be measured on OSA rate and planogram compliance rate, reported per SKU and per store. How quickly the pipeline catches stock-outs compared with staff rounds is the comparison that matters, not how busy the aisle was.
If the Business Wants Footfall Analytics, How Should It Be Commissioned Alongside Shelf Execution?
If the business genuinely wants footfall or dwell-time insight, commission it as its own programme that runs in parallel. Give it its own legal basis, success criteria and approval path. The handoff points are list-shaped:
- Purpose: a separate written purpose for each camera, since the EDPB expects purposes to be specified per camera in use.
- Impact assessment: its own DPIA where the monitoring is systematic and large-scale in a publicly accessible area.
- Lawful basis: assessed on its own terms, not inherited from the shelf programme. The ICO notes that the original basis may not suit a new use.
- Retention: its own schedule, justified against its own purpose.
- Transparency: signage and notices that state the people-analytics purpose, not just “safety and security”.
- Data separation: no shared store of raw frames between the two programmes, so the shelf pipeline’s minimisation stays intact.
Sharing infrastructure (network, edge compute, a video management system) is a reasonable cost saving. Sharing a purpose is not. What a people-oriented camera programme can and cannot measure is a different conversation, covered in our piece on computer vision store analytics. How to build it is outside the shelf-execution scope we describe here.
The same discipline holds outside retail. Production inspection faces the same scoping choice, as our account of scaling AOI inspection models across the factory describes. The real choice in a store is rarely between a narrow programme and a broad one. It is between a narrow programme that ships with an operations sign-off and a broad one still waiting in privacy review when the next planogram reset arrives.