Picnic counts warehouse stock on conveyors with Gemini
Online supermarket Picnic photographs stock totes on the conveyors of its Utrecht fulfillment center and has a fine-tuned Gemini model count the items, instead of asking shoppers to count them between picks.
PicnicNetherlands (Automated fulfillment center in Utrecht)GroceryIn production
- Scale
- 16 camera setups in the Utrecht fulfillment center, almost a million tote images a day
- Scenario
- Warehouse inventory cycle counting
- Business function
- Supply chain and logistics
- Kind of solution
- Visual inspection and monitoring
- Who built it
- Built in-house (Google)
- Where it runs
- Public cloud
- Human oversight
- Acts under watch
- Organization
- Enterprise
- AI types
- Generative AI, Computer vision
tl;drA fine-tuned Gemini model counts most stock totes, so shoppers count only validation totes.See the results
Picnic, the Dutch online supermarket, counts the stock in its automated Utrecht fulfillment center with cameras and a fine-tuned Gemini model1, 3. Cameras photograph each stock tote on the conveyor, and the model counts the items in the image1.
The counts replaced most of the manual counts that shoppers made between picks1, 5. Shoppers now count only a small daily subset of validation totes, which the team uses to track the model’s accuracy1.
In tests, the fine-tuned Gemini 2.5 Flash outperformed the larger Gemini 2.5 Pro at a lower cost1. In April 2026, CTO Frederik Nieuwenhuys presented the system at the Nationaal Congres Autonomous Systems4.
Before the deployment
Picnic kept its stock records accurate by having shoppers count the stock totes by hand2, 5. Stock can’t be derived from orders and sales alone, because shipments arrive incomplete and items break or expire1.
- Shoppers were asked every few picks to count the products left in a tote5.
- Each count interrupted the picking flow, which cost time and money2.
- Millions of items move through the Utrecht center every day, so manual counting was labor-intensive6.
- Thousands of totes travel over more than 50 kilometers of conveyor belts each day2.
- The control software couldn’t see inside the totes, so problems surfaced at a picking station, with a driver, or with a customer2.
The team turned to vision language models because their cost had dropped roughly tenfold each year while their benchmark scores rose2.
What was built
The system photographs each stock tote on the conveyor, checks that the image can be counted, and has a fine-tuned Gemini model count the items1. Picnic’s in-house Warehouse Control Software (WCS) receives the count and uses it for operational decisions1, 5.
- Camera setups: Photograph each tote on the conveyor, with lighting and a barcode scanner that links the image to the tote1, 5.
- Countability rules: Exclude images that can’t be counted reliably, such as certain types of packaging, so the model counts only countable totes1.
- Fine-tuned Gemini model: Compares the tote image with a reference photo of the product and returns the number of items1.
- WCS: Records stock and directs the totes, and it receives every count1, 2.
- Shoppers: Count the validation totes by hand through the old flow, which gives the ground truth for monitoring1.
“These rules blew the MLLM-based performance out of the water and is again a good reminder that when working with AI systems, using a few simple rules as guardrails can often solve most of the problems.”
Alternatives considered
- Weighing scales: The installed scales deviated too much to count individual products5.
- Classic computer vision: Models such as YOLO generalize poorly out of the box and need many images annotated with bounding boxes1, 6. CountGD only counts, so damage checks would need more models beside it2.
- Inference at the edge: Devices in the camera cabinet would cut latency but add hardware to maintain in the warehouse2. A count can wait a few seconds while the tote travels, so the cameras send images to a model in the cloud2.
- 3D cameras: They cost two to three times more, use more bandwidth, and need careful calibration, so the team chose 2D cameras2.
- Gemini 2.5 Pro: It solved the counting task, but it cost three to four times as much as Gemini 2.5 Flash in Picnic’s case1.
Rollout
By April 2026, the same cameras also checked for broken products and assessed product orientation4. The orientation check lets the warehouse send each stock tote to a robotic arm or to a person for picking4.
Technology and architecture
| Layer | What they used | Role | Source |
|---|---|---|---|
| Vision model | Gemini 2.5 Flash, fine-tuned with Gemini’s built-in LoRA-based tuning | Counts the items in each tote image | 1, 3 |
| Cameras and imaging | Camera setups | 16 setups with a camera, a flashlight, a laser, and a barcode scanner capture an image each second | 1, 5 |
| Rules and decision logic | Countability rules | Drop images that can’t be counted reliably | 1 |
| Prompt and context management | Vision ML service | A FastAPI web service that receives each image, prepares the prompt, and calls the model | 1, 5 |
| Model gateway | LiteLLM | Forwards each request to the model provider | 1, 7 |
| Compute and servers | Kubernetes | Runs the service on a standard node | 1 |
| Data platform and storage | S3 | Holds the product reference images | 1 |
| Data platform and storage | Snowflake | Stores the predictions and the validation counts | 5 |
| Business or operational system | Warehouse Control Software (WCS) | Directs the totes, records stock, and receives each count | 1, 2 |
LiteLLM is a gateway that gives applications one endpoint for many model providers7. In this deployment, it sits between the service and Gemini, because model capabilities and costs change fast1.
Data inputs
- Tote images: Almost a million images a day, one each second from every camera1.
- Tote barcodes: Scanned with each image, to link the tote to the product that the stock records expect1, 5.
- Product reference images: A standardized supply chain photo of each product, which the service adds to the prompt1, 5.
- Golden dataset: 15k+ tote images labeled with the counts that the WCS already records, split into equal train, validation, and test parts1.
- Validation tote counts: Shoppers’ daily hand counts, published as events to Snowflake1, 5.
How one stock tote flows through the system
- The tote passes a camera setup. The camera captures an image, and the scanner reads the tote’s barcode1.
- The camera sends both to the Vision ML service. The service answers at once to free the camera and processes the request in the background5.
- The service applies the countability rules. If the image can’t be counted reliably, the service makes no prediction1.
- The service prepares the prompt and retrieves the product’s reference image from S31.
- LiteLLM forwards the prompt and both images to the fine-tuned Gemini 2.5 Flash model, which returns the item count1, 5.
- The service pushes the count to the WCS and the prediction to the data warehouse1.
Results
The production setup moved most stock counting from shoppers to the cameras by October 20251, 5. In April 2026, Picnic’s CTO described the conveyors as counting stock automatically4.
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Totes that shoppers count by hand | All totes | A small subset of validation totes | Utrecht fulfillment center, production setup described in October 2025 | Picnic, measured1, 5 |
| Counting performance of the fine-tuned Gemini 2.5 Flash | Base Gemini 2.5 Pro | Outperformed the base Pro model | Picnic’s stock counting dataset, 2025 | Picnic, test result1, 5 |
- Totes that shoppers count by hand: The old counting flow once ran on every tote and now runs only on the validation totes1. The vast majority of counts are automated5.
- Counting performance: Picnic scored the models on a normalized scale, with Gemini 2.0 Flash at 100 and base Gemini 2.5 Pro at roughly 1405. The fine-tuned Flash scored above base Pro at Flash-tier pricing1, 5.
Picnic describes the outcome as a digital inventory in sync with physical stock and significantly fewer stockouts3.
Lessons learned
Context that only Picnic had did more for accuracy than prompt wording. Adding the product’s reference image made the model more robust to orientation and packaging, and every metric improved1, 5. Automated prompt optimization with DSPy added no value for counting5.
Fine-tuning closed the gap between a cheap model and an expensive one. Base Gemini 2.5 Flash fell short of fully replacing the manual counts, and fine-tuning on Picnic’s own images lifted it past base Pro1.
Some totes can’t be counted from a photo at all. Cartons, packaging, and stacked products block the view, even for a person, so the system counts only the images that pass the countability check1, 5.
The language model was a poor judge of its own limits. As a countability classifier, it reached fair recall but weak precision, because it was overconfident1. Rules drawn from a clustering of the failure cases did better, and Picnic has also explored confidence scores from the model as a finer check1, 5.
The labels needed checking as much as the model. The largest errors during development came from mislabelled human counts, which led the team to correct its golden dataset1.
The figures are Picnic’s own, from its engineering blog and its talks1, 2, 3. IO+ and ZenML reported on the system from Picnic’s presentations4, 5.
Case study scorecard
- A small subset of validation totes Totes that shoppers still count by hand1, 5
- Outperformed the base Pro model Counting performance of the fine-tuned Gemini 2.5 Flash1, 5
Sources by publication date
- Organization 4
- Vendors and partners 1
- Press, academic, and regulators 4
- 2 undated
Build this solution yourself
Analysis
What you need
- Stock counts that your systems already record: You need labeled images to fine-tune and test the model, and Picnic took its labels from the counts its WCS already stored1.
- A reference photo of every product: The model compares each tote with that photo, and Picnic’s standardized supply chain images were what lifted its accuracy1, 5.
- Controlled imaging on the conveyor: Picnic’s first images were blurry, dark, or out of frame, and it took iterations with hardware partners to fix them1.
- A hand count that you keep for a sample: The daily validation totes give the ground truth that shows whether the model’s accuracy holds in production1.
Reference architecture
Visual inspection and monitoring
A visual inspection and monitoring solution uses a vision model to read images from cameras and find or measure defects, objects, events, or conditions that people or systems then act on. The vision model reads each image, and rules send each detection to a line controller, a business system, or a person. People confirm or correct the findings and tune the process from the measurements, and their verdicts and newly labeled images keep the model current.
- Cameras and imaging (documented in this case study)
- Field network
- Device or line-side computer
- Privacy masking
- Vision model (documented in this case study)
- Inspection platform
- Thresholds and routing rules (documented in this case study)
- Risk or priority model
- Line or equipment controller
- Business or operational system (documented in this case study)
- Alert console
- Review screen
- Notifications
- Image and results store (documented in this case study)
- Verdict capture
- Model training environment
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
In the library
- Renault scales AI visual inspection to 500 checks per plant Renault Group
- AI return audits catch item swaps at Happy Returns Happy Returns
- Walmart tracks pallets with Wiliot IoT sensors and AI Walmart
- Van de Velde sizes bras from two smartphone photos with AI Van de Velde
- Synthetic boards train Siemens' inspection AI at Erlangen Siemens
- AI progress monitoring cuts rework on Intel's fab builds Intel
Cite this case study
Enterprise AI Case Studies. "Picnic counts warehouse stock on conveyors with Gemini." Updated Nov 21, 2026. https://case-studies.ai/case-studies/supply-chain-and-logistics/SC-034-tote-stock-counting-gemini-picnic/
@misc{csai-sc-034,
author = {{Enterprise AI Case Studies}},
title = {{Picnic counts warehouse stock on conveyors with Gemini}},
year = {2026},
note = {Updated 2026-11-21},
url = {https://case-studies.ai/case-studies/supply-chain-and-logistics/SC-034-tote-stock-counting-gemini-picnic/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Adding Eyes to Picnic's Automated Warehouses Part 2
Supporting excerpts (39)
In practice, however, shipments may arrive incomplete, items can break during handling, or expire before being sold.
To keep track of stock using cameras & AI, we need to capture almost a million images each day.
In our initial attempt, many images turned out unusable by often being blurry, too dark, out of frame or a combination of those.
Through a couple of iterations with our hardware partners, we came up with a versatile solution which reliably captures high quality images like the one shown below.
We’ve created our Warehouse Control Software (WCS) in-house, and we already capture these metrics — as it’s part of our every day process.
Surprisingly, while iterating on our prompts and system logic, we quickly found the highest errors were coming from mislabelled data!
We collected 15k+ images from totes.
Primary metric: Accuracy
Secondary metrics: MAPE, RMSE, MSD
With thousands of images, we opted to split the train, validation and test set into three equal parts.
Note that in both cases, the test set remains untouched.
One limitation is the poor out-of-the-box generalization.
To address this, we would need to collect many images and annotate them with bounding boxes, since the strongest models rely on such data for effective training.
We settled on the MMMU benchmark (Massive Multi-discipline Multimodal Understanding).
Yet some pictures are impossible to reliably count, even for a human.
To solve this, we added a countability check step with the purpose of ensuring that we make only predictions for ‘countable’ pictures.
With some prompt optimization we came to a fair recall score but continued to attain a weak precision score, a clear signal that the model is ‘overconfident’ in predicting the countability of images.
exclude counting certain types of packaging
These rules blew the MLLM-based performance out of the water and is again a good reminder that when working with AI systems, using a few simple rules as guardrails can often solve most of the problems.
An approach we’re now exploring is making the MLLM output confidence scores
In particular, including the product image gave the model a clear visual reference for what it should look for.
This made the model significantly more robust to variations in product orientation and packaging, helping it make more reliable predictions across different scenarios.
While we were able to solve the problem using Gemini 2.5 Pro, the main drawback was cost: at the time of writing, Pro is in our case three to four times more expensive than Gemini 2.5 Flash.
Although Flash performed reasonably well, it still fell short of fully replacing the manual work.
We opted to use Gemini’s built-in PEFT based on LoRA
The results were encouraging as well: Gemini 2.5 Flash Fine-Tuned (FT) outperformed the base Pro model, giving us strong performance at a much more competitive cost.
We didn’t build a new counting system from scratch; instead, we pragmatically repurposed the existing one.
While the old system used to count stock for all totes, we now apply it only to a small subset we call “validation totes.”
Every day, these totes are counted manually through the old flow, providing ground truth data to continuously monitor and track our model’s performance and accuracy over time.
In this production setup, we’ve installed 16 cameras, each capturing an image every second.
Simultaneously, the tote’s barcode is scanned and, together with the corresponding image, sent to our service.
a FastAPI web service running on a standard Kubernetes node can process everything efficiently.
The Vision ML service then prepares all necessary input for the prompt and retrieves the relevant product image from S3.
Inference is then performed using our fine-tuned model through our LiteLLM-powered AI gateway.
Since model capabilities and costs evolve rapidly as discussed before, LiteLLM allows us to easily switch between providers and maintain model flexibility from the start.
The prediction is then pushed to our warehouse control software and finally also to our data warehouse to enable evaluation later.
Fine-tuned ‘mini’ models can outperform the ‘pro’ models.
Plan for LLM interchangeability from the start.
Analyze the LLM mistakes and see if simple rules can fix most of the problems.
- Source 2:
Adding Eyes to Picnic's Automated Warehouses
Supporting excerpts (16)
In Picnic’s fully-automated fulfilment centre in Utrecht thousands of totes move over more than 50 kilometres of conveyor belts every single day.
Our in-house control software decides where every tote should go and when.
What that software cannot do today is look inside the moving boxes.
We only discover the state of the goods when the tote reaches a picking station, a delivery driver or, worst case, a customer.
They are periodically counted by shoppers to keep the inventory data accurate.
Counting interrupts the picking flow and therefore costs time and money.
a conveyor belt moving at 1.5 meters per second
Unfortunately the upgrade costs two to three times more, eats bandwidth and demands painstaking calibration.
uniform lighting and reliable barcode readability pushed us toward the 2D route first
It however also forces us to deploy and maintain more hardware in the warehouse, and development time can be long.
We are okay with waiting a few seconds before the result comes in, because the tote takes some time to travel to its destination.
The problem with CountGD however is that this model is not capable of doing anything else.
the cost of running a VLM has dropped roughly 10× each year
There are of course benchmarks that have improved tremendously
It decouples us from on-premise GPUs and lets us scale model size without bringing in new hardware.
5 Flash took 3 to 4 seconds to respond.
- Source 3:
From Supplier to Doorstep: The Machine Learning Behind Your Delivery
Supporting excerpts (5)
For customers in the center of the Netherlands, this process begins in our automated Fulfilment Centre in Utrecht.
Instead of relying on manual audits that interrupt the picking flow, our Vision AI performs counts as totes move at high speeds.
This ensures our digital inventory remains 100% in sync with physical reality, enabling a leaner supply chain and significantly fewer stockouts.
we tapped into a state-of-the-art Vision Language Model (VLM) from Google’s Gemini family.
To push performance even further (and reduce costs), we fine-tuned a lighter variant of the model on our warehouse images.
- Source 4:
The modern milkman: How Picnic uses data to reinvent shopping
Supporting excerpts (5)
At the Nationaal Congres Autonomous Systems (NCAS’26), Frederik Nieuwenhuys, CTO of Picnic,
Today, the company generates over €2 billion in revenue
Picnic is expected to pick over a billion items this year.
Picnic uses high-speed conveyors equipped with cameras and Large Language Models (LLMs) to automatically count stock, check for broken products, and assess product orientation.
this vision system helps the warehouse instantly decide whether a stock tote should be sent to a robotic arm or a human operator for a successful pick.
- Source 5:
Automated Inventory Counting with Multimodal LLMs in Grocery Fulfillment
Supporting excerpts (19)
Previously, shoppers were manually asked every few picks to count products remaining in totes—a quick task individually but time-consuming at Picnic’s scale.
Initial consideration of weighing scales proved impractical—the installed scales had too much measurement deviation to reliably count individual products.
a pragmatic camera setup combining a small camera, flashlight, laser, and barcode scanner (for linking totes to expected products)
Since shoppers were already manually counting products, these human counts could serve as labels for thousands of images.
systematic capture of “supply chain images”—standardized reference photos of each product as it appears in their supply chain.
Traditional approaches like YOLO, DETR, and vision transformers typically excel when abundant labeled data is available
Products completely blocked by cardboard, items stacked on top of each other, or scenarios where inner products separated from their outer packaging created ambiguous situations.
Returning to first principles, the team embedded all incorrectly predicted images and performed clustering analysis to identify patterns in failure cases.
Upon adding these reference images, accuracy “shot up” and all other metrics improved significantly.
The speaker specifically noted that techniques like DSPy for automated prompt optimization, which might work well for customer service agents where adding role descriptions, tone of voice, and company-specific examples matters, didn’t provide value for their counting task.
Normalizing performance to make 2.0 Flash = 100, they found 2.5 Flash still didn’t meet business requirements for accuracy, but 2.5 Pro (roughly 140 on their normalized scale) definitely solved the problem—except at a cost point that undermined the business case.
By leveraging their high-quality labeled dataset to fine-tune the Gemini 2.5 Flash model, they achieved performance that outperformed the base 2.5 Pro model while maintaining Flash-tier pricing.
The production deployment consists of 16 camera setups distributed throughout the automated fulfillment center (AFC).
the service immediately returns a response to unlock the camera, then processes the request asynchronously using background tasks
routes requests through LiteLLM, an LLM proxy layer, which forwards to Google Gemini.
Predictions are published to Snowflake for monitoring and analysis.
while the vast majority of counts are now automated, a small percentage still request manual validation from shoppers.
These validation counts are published as events to Snowflake
The control software that manages warehouse operations receives predictions and uses them for operational decisions
- Source 6:
Counting Groceries with Computer Vision: How Picnic Tracks Inventory Automatically
Supporting excerpts (4)
But with millions of items moving through our highly automated fulfillment center in Utrecht every day, manually counting stock is incredibly labor-intensive.
Why YOLO didn't work for us
Sven Arends is a Senior Machine Learning Engineer at Picnic
Sept. 25, 2025 · Apollo
- Source 7:
Supporting excerpts (2)
The LiteLLM AI Gateway is a self-hosted server. It gives your applications one OpenAI-compatible endpoint for 100+ LLM providers, MCP tools, and A2A agents.
Your applications send requests to the gateway. The gateway sends each request to the provider of the model.
- Source 8:
Asics boosts inventory management using warehouse drones
Supporting excerpts (2)
Asics has deployed autonomous warehouse drones at its omnichannel distribution center in Byhalia, Mississippi
The drones scan the singles and case reserve sections to read universal product codes, or UPCs, and count boxes.
- Source 9:
Starbucks deploys inventory-taking AI tool
Supporting excerpts (2)
The tech, developed in conjunction with NomadGo, is currently live across “thousands of coffeehouses,”
A publicity video shared with the announcement shows workers scanning fridges and stockrooms with the cameras on store tablets, which automatically tabulate the amount and type of ingredients on hand.
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.