Throughout the week we met and discussed which possible forms of extended intelligence could be used. As we choice to work within our intervention group we wanted to focus it on either energy of food waste. For this class we choice to see how we could create and use an AI to take pictures of food and then create cards that give the user a step by step how to repurpose their waste. The first step we did once we formed our idea was to plot all the aspects of our model in the figure below. This was a bit of a challenge as we needed to consider all the elements we would ideally use to create the model and how they were connected. This led to some interesting conversations and also in the end forced us to make some choices for the simple code demo.
Example of food waste identifying dataset which ideally would be used to train a new model if building from scratch.
This part was quite interesting for me. It led me to realized how many existing neural networks and models already exist that you can use as a designer. But it also showed me the limitations of them. When I was coding the AI it really hit me that with the APIs that require a prompt the prompt must be relatively specific so that the output is what you desire. This led me to thinking of the benefits of creating your own model training it through datasets that already out there, but even then with food waste the existing datasets tended to either identify waste to generally or there were not enough to train a model. I feel that if in the future I were to continue with this project it would require me to train a new model using a created datasets. However the downside of this for this project is the time required and the outputted result. For that reason we choice to go with existing APIs.
Before even starting the coding process I decided to together with my group go through the various steps that needed to be completed to reach the desired output for the user. We did this in such a way that there were four main steps that the AI needed to do. These were as followed:
Step 1: Get input image from user and output food waste spotted.
Step 2: Take the various ingredients and search for most relevant repurpose method.
Step 3: Create a generated image based on the repurposing method.
Step 4: Bring the outputs of step 2 and step 3 together and show the user a printed card with image and reuse together.
Once these had been determined we searched for relevant APIs and tweaked them for them to work within our contexts. I then set out to write the code and bring the final AI to life.
HTML Maker