I've wondered if a camera you "show" your groceries to as you unpack them would be enough to track incoming items accurately.
Or a couple of cameras around the kitchen, with an ML setup that recognizes both incoming food items, and their use in cooking. Then it could give you notifications/calendar items on things expiring :)