Food

Spoiled food smells and tastes unpleasant – AI tools can help scientists prevent this spoilage

Have you ever bitten into a nut or a piece of chocolate, expecting a smooth, rich taste, only to encounter an unexpected and unpleasant chalky or sour flavor? That taste is rancidity in action, and it affects pretty much every product in your pantry. Now artificial intelligence can help scientists tackle this issue more precisely and efficiently.

We’re a group of chemists who study ways to extend the life of food products, including those that go rancid. We recently published a study describing the advantages of AI tools to help keep oil and fat samples fresh for longer. Because oils and fats are common components in many food types, including chips, chocolate and nuts, the outcomes of the study could be broadly applied and even affect other areas, including cosmetics and pharmaceuticals.

Rancidity and antioxidants

Food goes rancid when it’s exposed to the air for a while – a process called oxidation. In fact, many common ingredients, but especially lipids, which are fats and oils, react with oxygen. The presence of heat or UV light can accelerate the process.

Oxidation leads to the formation of smaller molecules such as ketonesaldehydes and fatty acids that give rancid foods a characteristic rank, strong and metallic scent. Repeatedly consuming rancid foods can threaten your health.

Antioxidants include a broad range of natural molecules, like vitamin C, and synthetic molecules capable of protecting your food from oxidation.

While there are a few ways antioxidants work, overall they can neutralize many of the processes that cause rancidity and preserve the flavors and nutritional value of your food for longer. Most often, customers don’t even know they are consuming added antioxidants, as food manufacturers typically add them in small amounts during preparation.

But you can’t just sprinkle some vitamin C on your food and expect to see a preservative effect. Researchers have to carefully choose a specific set of antioxidants and precisely calculate the amount of each.

Combining antioxidants does not always strengthen their effect. In fact, there are cases in which using the wrong antioxidants, or mixing them with the wrong ratios, can decrease their protective effect – that’s called antagonism. Finding out which combinations work for which types of food requires many experiments, which are time-consuming, require specialized personnel and increase the food’s overall cost.

Exploring all possible combinations would require an enormous amount of time and resources, so researchers are stuck with a few mixtures that provide only some level of protection against rancidity. Here’s where AI comes into play.

A use for AI

You’ve probably seen AI tools like ChatGPT in the news or played around with them yourself. These types of systems can take in big sets of data and identify patterns, then generate an output that could be useful to the user.

As chemists, we wanted to teach an AI tool how to look for new combinations of antioxidants. For this, we selected a type of AI capable of working with textual representations, which are written codes describing the chemical structure of each antioxidant. First, we fed our AI a list of about a million chemical reactions and taught the program some simple chemistry concepts, like how to identify important features of molecules.

Once the machine could recognize general chemical patterns, like how certain molecules react with each other, we fine-tuned it by teaching it some more advanced chemistry. For this step, our team used a database of almost 1,100 mixtures previously described in the research literature.

At this point, the AI could predict the effect of combining any set of two or three antioxidants in under a second. Its prediction aligned with the effect described in the literature 90% of the time.

But these predictions didn’t quite align with the experiments our team performed in the lab. In fact, we found that our AI was able to correctly predict only a few of the oxidation experiments we performed with real lard, which shows the complexities of transferring results from a computer to the lab.

Refining and enhancing

Luckily, AI models aren’t static tools with predefined yes and no pathways. They’re dynamic learners, so our research team can continue feeding the model new data until it sharpens its predictive capabilities and can accurately predict the effect of each antioxidant combination. The more data the model gets, the more accurate it becomes, much like how humans grow through learning.

We found that adding about 200 examples from the lab enabled the AI to learn enough chemistry to predict the outcomes of the experiments performed by our team, with only a slight difference between the predicted and the real value.

A model like ours may be able to assist scientists developing better ways to preserve food by coming up with the best antioxidant combinations for the specific foods they’re working with, kind of like having a very clever assistant.

The project is now exploring more effective ways to train the AI model and looking for ways to further improve its predictive capabilities.

Have you ever bit into a nut or chocolate expecting a smooth, rich taste, only to be met with an unexpected, unpleasant, chalky or sour taste? items. Now, artificial intelligence can help scientists tackle this problem even more precisely and efficiently. We are a group of chemists researching ways to extend the lifespan of food, including spoiled food. We recently published research that illustrates the benefits of AI tools that help keep oil and fat samples fresh for longer periods of time. Because fats and oils are common ingredients in many foods, including potato chips, chocolate, and nuts, the results of this study may have wide application and could have implications for other fields such as cosmetics and pharmaceuticals. there is.
Acidity and antioxidants Food spoils when exposed to air for long periods of time. This is called oxidation. In fact, many common ingredients, especially fats and oils, react with oxygen. The presence of heat and ultraviolet light can accelerate the process. Oxidation produces small molecules such as ketones, aldehydes, and fatty acids, which produce the strong metallic odor characteristic of spoiled foods. Repeated consumption of spoiled food can put your health at risk. Antioxidants include a wide range of natural and synthetic molecules, such as vitamin C, that protect foods from oxidation.
Antioxidants work in a variety of ways, but overall they neutralize many of the processes that cause spoilage, preserving food’s flavor and nutritional value for longer. Food manufacturers typically add small amounts of antioxidants during cooking, so customers often don’t even realize they’re ingesting additional antioxidants. However, you cannot expect a preservative effect just by sprinkling vitamin C on food. Researchers must carefully select specific groups of antioxidants and accurately calculate their amounts. Combinations of antioxidants do not necessarily increase their effectiveness. In fact, using the wrong antioxidants or mixing them in the wrong proportions can reduce their protective effects.
This is called antagonism. Determining which combinations work well for which types of foods requires a lot of experimentation, is time consuming, requires skilled labor, and increases the overall cost of the food. Studying all possible combinations would require an enormous amount of time and resources, so researchers stick to a few blends that offer only some protection against spoilage. This is where AI comes into play. Applications of AI You’ve probably seen AI tools like ChatGPT in the news or tried them yourself. These types of systems can ingest large amounts of data, detect patterns, and produce output that may be useful to users.
As chemists, we wanted to teach AI tools how to search for new combinations of antioxidants. To do this, we chose a type of AI that can manipulate textual representations, which are codes that describe the chemical structure of each antioxidant. First, we fed our AI a list of about a million chemical reactions and taught the program some simple chemistry concepts, like how to identify important features of molecules. Once the machine could recognize general chemical patterns, like how certain molecules react with each other, we fine-tuned it by teaching it some more advanced chemistry. For this step, our team used a database of almost 1,100 mixtures previously described in the research literature. At this point, the AI could predict the effect of combining any set of two or three antioxidants in under a second.
Its prediction aligned with the effect described in the literature 90% of the time. However, these predictions did not perfectly match the experiments our team conducted in the lab. In fact, the AI ​​was able to accurately predict only a fraction of the oxidation experiments performed using real lard, demonstrating the complexity of transferring results from the computer to the lab. refinement and improvement Fortunately, AI models are not static tools with predefined “yes” and “no” paths. Because they are dynamic learners, our research team will continue to feed new data to the models until their predictive power improves and they are able to accurately predict the effects of each antioxidant combination. can do. Just as humans grow through learning, the more data a model receives, the more accurate it becomes.
By adding about 200 examples from the lab, the AI ​​was able to learn enough chemistry to predict the results of the experiments the team conducted, with little difference between the predicted and actual values. Ta. Models like ours can help scientists develop better methods of food preservation by designing the optimal combination of antioxidants for the specific foods being studied, including hiring very smart assistants. It may be helpful. The project is currently exploring more effective ways to train AI models and further improve their predictive capabilities.