inventory to ingredients is one thing, but detecting trends to be able to scale up for a dish so as to not sell out would be another. Reverse would also helpful. Especially with commodities and perishables.