AI to reduce shopping queues