Shoprite Group is using machine learning in its South African stores. It helps reduce costs and food wastage.