Problem
A retailer takes direct supplier deliveries in many stores. Recounting every delivery costs warehouse time, but accepting blindly risks losses when a supplier ships the wrong quantity. Lemana Tech wanted a model that tells the warehouse employee, per delivery, whether to accept on trust or recount. Training staff on a new tool across a very large store network is expensive, so the model had to fit the existing workflow.
Example from the article: pallets arrive, the employee enters the delivery into the warehouse system, and in under a minute sees a trust flag (1 = accept on trust, 0 = recount).
Solution in brief
A CatBoost classifier scores each delivery from supplier, store and item history held in the warehouse system. The score travels over Kafka and returns as a flag in the employee's usual screen. About 5% of deliveries marked as trusted are recounted at random, and employees may override the flag and record why. Both produce labels for retraining.
Questions this case answers
- How to add a model recommendation to an existing operational system so that users keep their tool and still make the final call
- How to keep collecting unbiased labels for a model whose predictions let people skip the checks that generate those labels
- How to predict which supplier deliveries can be accepted on trust without a full recount?
- How to put an ML recommendation into a warehouse system without retraining store staff or changing their tool?
Tools and methods
- CatBoost — gradient-boosted trees on mostly categorical features, default tuning
- Apache Kafka — online message exchange between the warehouse system and the model
- PostgreSQL — stores delivery messages and the data mart of manual recounts
- Kubernetes — hosts the Predict module that calls the model
- Greenplum — long-term history for retraining
- Amazon S3 on Yandex Cloud — storage of trained models
- Human in the loop — employee can override the flag; random recounts add labels
Google or a one-time email code. No password.
