Inspiration

My grandfather’s passing from health issues linked to poor dietary choices and my mother’s constant struggle to decipher complex food labels inspired me to create SafeBite. Watching her frustration while trying to make healthy choices made me realize the need for a tool to simplify this process. SafeBite was born out of a desire to help her and countless others make informed decisions effortlessly.

What it does

SafeBite simplifies healthy eating by analyzing product ingredients with AI and highlighting potential risks like harmful additives or carcinogens. It provides clear, accessible information to help users make smarter dietary choices quickly. With SafeBite, shopping for safe and healthy food becomes effortless and empowering. Keeping yourself healthy shouldn't be a challenge.

How we built it:

SafeBite was developed as an iOS app using Swift, SwiftUI, and APIs such as OpenFoodFacts and OpenAI. We incorporated SwiftData to store user history and SwiftCharts for visualizing data in the Statistics Page. The app features AI functionality for personalized ingredient analysis and dietary insights.

Challenges we ran into:

We faced challenges learning Swift from scratch, especially transitioning from statically typed languages like Java to Swift’s dynamic syntax. Parsing complex data from the OpenFoodFacts API and formatting it for usability was a tedious process. Implementing accurate and context-sensitive AI responses required switching from Perplexity AI to OpenAI and extensive debugging.

Accomplishments that we're proud of:

We successfully created an app that empowers users to make healthier choices through clear, actionable insights about food ingredients. Overcoming technical challenges such as learning new languages, integrating APIs, and implementing advanced AI enhanced the app’s functionality and our skills. The app’s AI-driven Cancer Score, personalized suggestions, and eco-conscious features set it apart as a comprehensive dietary tool. Additionally, this app is in the process of being published on the App Store.

What we learned:

We learned to navigate new technologies like Swift, SwiftData, and SwiftCharts while troubleshooting and debugging effectively. Understanding API integration, data parsing, and AI functionality taught us the importance of perseverance and adaptability. This project also deepened our understanding of user-centric design and its impact on everyday decisions.

What’s next for SafeBite:

We aim to add personalized features such as an account-based system to track health metrics and suggest healthier alternatives to unhealthy foods that the user scans. Expanding the app’s functionality to analyze cosmetics and other daily-use products will promote an all-around healthy lifestyle. Future plans include enhancing AI accuracy with larger and more diverse data sets in order to globalize the app to serve diverse populations, especially in developing countries.

Built With

  • openai-api
  • openfoodfacts
  • swift
  • swift-charts
  • swift-data
  • xcode
Share this project:

Updates