Journey Foods' Neural Network and Recipe Generation

June 17, 2024

Journey Foods’ AI-driven software is an industry leader when it comes to helping CPG companies find the best ingredients and materials to both make and package their product. However, a secondary expertise we also excel in is generating recipes based on neural networks - a relatively new technology that helps businesses and consumers come up with innovative food ideas.

Generating recipes using neural networks involves training a model on a dataset of existing recipes and then sampling from the trained model to generate new recipes. Because our Journey Foods database is so extensive, there is a wealth of data to sample from in this regard, making data collection a cinch. These datasets range from all kinds of recipes: appetizers, main courses, desserts, and many more.

 

After the data is collected, the preprocess begins; the text is tokenized by converting words into numerical representations. This also involves standardizing the text, removing punctuation, and handling any special characters. Once this is done, a suitable neural network architecture is selected for generating text sequences, such as an RNN.

With the data ready and neural network model chosen, the model is then trained. This entails the model learning to predict the next token (word) in a sequence given the previous tokens. This process also involves adjusting the model's parameters (weights) to minimize the difference between the predicted tokens and the actual tokens in the dataset.

Once the model is trained, we use it to generate new recipes by sampling from the learned probability distribution of tokens. Starting from a seed text (e.g., a list of ingredients or a cooking instruction), the model predicts the next token, which is then fed back into the model as input to predict the subsequent token. This process continues until a predefined length is reached or an end token is generated. After generating a recipe, it is usually necessary to post-process the text to make it more readable or to ensure that it follows certain constraints (e.g., ensuring ingredient quantities are realistic, adjusting cooking times, etc.). Evaluating the generated recipes based on criteria such as coherence, novelty, and practicality is also important. The model is then fine-tuned by experimenting with different hyperparameters to improve the quality of the generated recipes.

Our model, which was perfected to meet our high level of standards, has now been deployed through our software that is available through our website. This novel technology is ripe and ready for users to start generating their own recipes. As Journey Foods continues to implement more advanced machine learning and AI into this process - such as food image recognition - our software is only predicted to improve further and deliver you the most delicious recipes available!

Journey Foods Selected as Thrive 100 Finalist for Global Innovators

Journey Foods Selected as Thrive 100 Finalist for Global Innovators

We are proud to announce that Journey Foods has been selected as one of THRIVE's Top 100 Global Innovators in the 2024 THRIVE Global Impact Challenge. This recognition places us among an elite group of companies driving innovation in the agrifood technology sector, specifically in the Nutrition & Health category.
Journey Foods
November 24, 2024
5 min read
The 10 Most Powerful Data Trends That Will Transform Food, E-commerce, Consumer, and Manufacturing in 2025

The 10 Most Powerful Data Trends That Will Transform Food, E-commerce, Consumer, and Manufacturing in 2025

In 2025, data will be the currency of transformation, especially for industries like food, e-commerce, consumer goods, and manufacturing. These sectors are poised to harness the latest data trends to revolutionize decision-making, improve operational efficiency, and create hyper-personalized experiences.
Riana Lynn
November 24, 2024
5 min read
How is Food Coloring Made? A Closer Look at Ingredients and Safety

How is Food Coloring Made? A Closer Look at Ingredients and Safety

The recent explosion at a Louisville factory, caused by a failed cooking vessel, has brought attention to the processes involved in producing food ingredients. Givaudan, a leading name in food and beverage solutions, has already addressed the incident, but the event raises an important question for both consumers and industry professionals: How are food colorings made, and how can we ensure they are safe?
Journey Foods
November 24, 2024
5 min read