Researchers are designing smart packaging that uses AI to detect food spoilage in real time. The packaging can "see" what's happening inside, giving producers and shoppers useful information to cut food waste.