Pantry food can go bad if exposed to oxygen, but an AI model might help develop more effective preservatives and keep food fresher for longer.