Inspiration

I loved training simple ANNs at uni, and I always wanted to go further with Natural Language Processing. I also thought it would be fun to get an AI to invent a recipe.

What it does

It's an AI that I trained to generate cookie recipes of dubious quality.

How I built it

I stripped ~1400 cookie recipes from allrecipes.com using ParseHub, collated them together in one text file, and then I followed all of the instructions in this very useful Google Colab project to train the AI and to generate the final text file: https://colab.research.google.com/drive/1VLG8e7YSEwypxU-noRNhsv5dW4NfTGce

Challenges I ran into

Time management - I probably spent too long in the research phase, and then stripping the data with ParseHub took a lot longer than I expected, about 17 hours or so. This meant that I didn't have time to actually bake the cookies before the deadline (I mean I do still have time but I don't want to bake at 1am and given camera angles, editing, exporting, uploading, etc, I won't have time in the morning). Also I got pretty scared that it had all been for nothing when the AI produced the following "recipe": "Pecomino Pecomino Pecomino Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Pecomini Eggs"

I had a lot of issues with Shotcut during the editing process - the audio is really messed up on the voiceover and I can't figure out why. I've tried changing the export settings but that didn't seem to make a difference.

Accomplishments that I'm proud of

I dabbled in Natural Language Processing for the first time! I also managed to get everything working before the deadline, and I've got a relatively cohesive video put together explaining everything.

What I learned

I learnt how to train an AI to do Natural Language Processing. I learnt how to strip data from a website using ParseHub. I learnt how to combine CSVs into one document using the command line. I learnt that an AI might seem to be going in the wrong direction when it hasn't been trained for long enough, but that it can correct itself over time.

What's next for How to Bake Cookies (with Artificial Intelligence)

I'm gonna actually bake the cookies. I want to try training it on other foods too - I feel like soup could be an under-explored AI culinary goldmine. I'd also like to explore doing some AI stuff in a less hand-held way - I found some interesting articles that could be worth exploring but that I didn't feel like I had time to go fully in-depth in this project.

Built With

  • collaboratory
  • parsehub
  • shotcut
Share this project:

Updates