Week #5

Week 5 Report: Feedback and Surveys - 2nd Iteration #

At the beginning of the fifth week, we studied the results of the survey and people’s wishes for improving our application. Based on this, we created a work plan for the week and successfully completed it. We added several features and made design changes to enhance the CookAInno app.

Week 5 marked a crucial phase of iteration and refinement based on user feedback. This week, our primary focus was on gathering comprehensive feedback from our users to ensure the continuous improvement of the CookAInno app. By engaging with our users and stakeholders, we aimed to validate our development direction and refine our application to better meet user needs.

Feedback and Surveys #

In Week 5, we continued to improve the CookAInno app by meeting with our users again. We showed them the new features and updated interface. Just like last week, we conducted another survey, this time with new questions and the latest app design. This helped us see how satisfied our users are and whether we are heading in the right direction.

We shared the updated app with our testers and gathered their feedback through a revised questionnaire. This process helped us better understand user preferences and made our users feel involved in developing the product. We encouraged them to share their ideas for improving and adding new features to the app.

By involving our users this way, we aim to create a collaborative development process where continuous feedback leads to meaningful improvements. This ongoing engagement is key to building an app that meets the needs and expectations of our users, making CookAInno a user-friendly solution.

w5f1

Analysis of the Feedback #

Our analysis of the feedback revealed several key insights.

w5f2

  • Most respondents indicated that they often discard unused food items, highlighting the relevance of our project. CookAInno aims to address this issue by helping users utilize their fridge contents more effectively, thereby reducing food waste.

w5f3

  • Additionally, many respondents expressed interest in a feature for calculating meal calories from a photo, confirming its potential usefulness.

w5f4

  • Users also showed enthusiasm for features like weekly menu planning, which we plan to incorporate based on this feedback.

w5f5

  • The survey results also indicated that the respondents had previously disliked the design, prompting us to make changes. This week, the updated design received positive feedback, with users appreciating the new look and color palette.

w5f6

  • Furthermore, respondents indicated that they found the current color scheme appealing, so we decided to maintain it.

w5f7

  • The survey revealed that not only did respondents find the app useful, but they were also willing to recommend it to their friends. This positive reception underscores the potential impact of CookAInno.

From the feedback, we also gathered suggestions for new features, such as sharing recipes with friends, providing nutritional information, direct calorie calculations within the app, and offering filtering options to accommodate personal dietary preferences, like vegetarian meal plans. Also users wanted a feature of creating a shop list with recommended ingredients.

Prioritizing Feedback and Future Plans #

By conducting and analysing the useful feedback from the stakeholders we can prioritise some of the features, which can be added or improved in our product. Design has already been improved and positively resulted in user’s opinion. The project roadmap below will outline our future plan of work, considering the full current list of the potential changes.

Project Roadmap #

As of 07.07.2024, we have successfully implemented several key features of the CookAInno app, including recipe generation by ingredients, recipe recommendations based on user preferences, basic ingredients recognition by photo, calorie recommendations, and daily advice. Our roadmap for the remainder of 2024 includes the following milestones:

  • August-September 2024:

    • Enable ingredient-based filtering to show recipes that can be made with available ingredients in the save recipe database without AI generation.
    • AI Food Recognition: Continue refining image recognition accuracy.
  • October 2024:

    • Develop dietary filters for specific diets (vegan, vegetarian, halal, lactose-free).
    • Introduce daily menu suggestions based on user calorie needs and preferences.
  • November 2024:

    • Refine daily menu suggestions using user feedback and advanced recommendation algorithms.
    • Develop a feature to calculate meal calories based on ingredients and portions used.
  • December 2024:

    • Develop a shopping list feature that automatically generates lists based on selected recipes.
    • Conduct thorough user testing and gather feedback on UI/UX design for further improvements.
  • January 2025:

    • Nutritional Insights: Introduce a feature that provides detailed nutritional information for each recipe, including macronutrient breakdown (proteins, fats, carbohydrates) and essential vitamins and minerals. This will further support users in making informed dietary choices.

We remain committed to regularly assessing our progress, comparing it against our initial goals, and making necessary adjustments to enhance our application’s design, features, and functionalities. By fostering collaboration and maintaining a focus on user needs, we aim to deliver a product that not only meets but exceeds expectations, creating a comprehensive food ecosystem for our users.

Iteration and Refinement #

Mobile Achievements: #

  • Implemented ingredient recognition allowing users to take photos of ingredients for identification.
  • Demo Link
  • Profile: Implemented generation of daily advice with use of machine learning. Implemented editable profile parameters. Users can update their weight and height.v

w5f8

  • Registration: Implemented pages for user characteristics during registration for calorie calculation.

w5f9

Changes Based on Feedback: #

  • Based on user feedback, we added implementation of search functionality. Users can quickly find recipes on the main and favorite pages.

w5f10

  • Refined UI based on user suggestions, resulting in a more appealing color scheme.

w5f11

ML – Ingredient Recognition: #

  • The ingredient images dataset was updated and finalized, extending the initial list of ingredients that the model can recognize. Using a base dataset link and incorporating data from 3 additional datasets (links to 1, 2, and 3), I aimed to create a comprehensive dataset with the most commonly used cooking ingredients. The final dataset contains 9982 images across 42 classes, including the following ingredients:
    • Vegetables: tomato, potato, carrot, onion, bell pepper, corn, cucumber, green beans, red beans, white beans, spinach, eggplant, broccoli, peas, garlic, lettuce.
    • Fruits: apple, avocado, lemon, lime, banana, strawberries, orange, nectarine, kiwi, mango, blueberries, pomegranate.
    • Dairy products: milk, egg (separately), eggs (in a package), cheese, yogurt, butter.
    • Protein: chicken, meat, shrimp.
    • Other: bread, oil, pasta, flour, champignons.
    • Each class has an average of 200-400 images and over 200 annotations.
  • YOLOv8 model was retrained on the updated dataset and evaluated its performance. The metrics indicate good overall performance, but with room for improvement in specific classes such as cucumber, carrot, peas, and eggs, which have lower mAP50-95 scores (<0.5). There are metrics on validation set:
ClassImagesInstancesBox(P)RmAP50mAP50-95
all43212920.8250.7640.8330.669
apple10420.9360.7140.8720.655
avocado17430.6450.8600.8490.692
banana19230.9920.9570.9770.753
bell pepper14300.8680.8000.9180.764
blueberries10420.7951.0000.9550.696
bread10150.9330.7330.8260.619
broccoli14420.7800.6750.7850.546
butter10180.7640.6670.7530.702
carrot14550.7340.6550.6910.369
champignons12120.9781.0000.9950.767
cheese23250.8710.8100.8860.819
chicken17350.7110.7140.7700.587
corn28290.7990.7240.8290.780
cucumber13540.8270.3530.5670.399
egg8380.8930.9210.9430.775
eggplant10230.8800.6400.7020.571
eggs23520.8660.4230.4680.448
flour5420.7920.7140.7480.468
garlic4230.7170.7390.7930.667
green beans38380.9010.9590.9610.894
kiwi290.6411.0000.7910.613
lemon4110.8360.9090.9730.850
lettuce22270.9380.8520.9330.824
lime5200.7720.8450.8170.473
meat15220.8600.5610.8680.634
milk14180.8900.8330.9030.758
nectarine3550.7500.9280.9260.840
oil10160.8520.6250.7010.647
onion17770.8710.8180.9420.681
orange3120.9820.8330.9220.618
pasta16210.5770.5710.7170.616
peas9240.7560.5000.6850.406
pomegranate130.5291.0000.8630.771
potato9310.9540.6690.8920.600
red beans770.7880.8570.8690.869
shrimp20210.8390.7140.7720.578
spinach39390.9390.7930.9250.777
strawberries24240.9340.8750.9100.809
tomato261470.9190.8430.9040.664
white beans890.7670.5560.7840.767
yogurt10180.7690.6670.7710.664
  • Compared the performance of the lightweight multimodal model PaliGemma and YOLOv8 trained on the custom dataset.

    • For this purpose 2 images was chosen: Image containing milk, bananas, eggs, bread, and tomatoes.

      w5f13 Yolov8m trained on custom dataset answer: [‘milk’, ’tomato’, ‘banana’, ‘bread’, ’egg’]

      PaliGemma answer: milk, eggs, tomatoes, bananas

    • More complex and realistic example — a photo of a fridge. w5f14

      Yolov8m trained on custom dataset answer: [’lime’, ‘banana’, ‘green beans’, ‘onion’, ‘flour’, ‘carrot’, ‘milk’, ‘meat’, ’tomato’]

      PaliGemma answer: Vegetable

Comparing outcomes: YOLOv8 demonstrated superior accuracy and specificity compared to PaliGemma. It could accurately identify and list multiple items in both simple and complex images, whereas PaliGemma tended to generalize and failed to identify specific items accurately. Thus, the choice of a model is obvious. YOLOv8 is more appropriate model for ingredients detection task.

Challenges and Solutions: #

  • Our team faced a difficulty in presenting a picture based on the name of the generated dish recipe. We didn’t understand exactly how to implement this.
    • We’ve gone through several image generation APIs. Some do not have access, and some are allowed to work only at night. And we decided to implement image parsing by its name. This approach turned out to be the most successful, convenient and workable.
  • Our team decided to change the design due to people’s feedback. And at the meeting at the beginning of the week, we faced disagreements from different team members in choosing the design.
    • We discussed it for a long time and decided on a pastel blue color and several shades of gray.

Here is the new Figma design: https://www.figma.com/design/vpqc9bsK1bBngEr7yXHRUP/Untitled?node-id=0-1&t=5dARqG7DerDkbgEc-0

ML – Ingredient recognition:

  • Initially planned to use a specific dataset ( link), but found a better alternative ( link) through extensive search. However, this dataset could not be downloaded in one go, requiring incremental cloning of 1000 images at a time.
  • Faced limitations on Roboflow free plan, which restricts datasets to a maximum of 10,000 images. This necessitated careful selection to ensure each class had a minimum representative number of images (200 images).

Backend:

  • Android developers found a bug limiting the number of chars in recipe description (255 -> 10000). We are going to exceed these limitations. Characters are not so heavy data so we can store longer recipes.

Next Steps: #

Android:

  • Associate each generated receipt with the corresponding food picture. The food picture now is requested with the use of BeautifulSoup, but not yet integrated into the application.
  • Analyse memory and traffic metrics, improve performance.

Backend:

  • Implement the deployment of the fully implemented backend part on the remote server including Java and Python APIs.
  • Enlarge limits for the recipe storage in the database.

ML:

  • Focus on improving the model’s performance by experimenting with different sizes of the YOLO model (e.g., medium and large) and tuning training hyperparameters for optimal results.
  • Perform testing on manually collected real images of the fridge.

Conclusion #

Week 5 has been pivotal in refining CookAInno based on user feedback. By involving users in the development process, we have been able to make significant improvements and plan for future enhancements. Our ongoing commitment to user-centric development ensures that CookAInno will continue to evolve into a comprehensive and user-friendly food ecosystem.