Inspiration

The inspiration behind HealthyOrNot stems from the growing global concern around nutrition and health. With so many processed foods available, it’s hard for people to make informed choices about what they consume. We wanted to build a tool that makes understanding nutrition easier by leveraging the power of AI to provide a detailed analysis from just an image of food or drinks. Our goal is to help people make healthier decisions without needing to manually check labels or decipher complicated nutritional information.

What it does

HealthyOrNot is an AI-powered nutritional analysis tool. By simply uploading an image of food or a drink, users can receive an in-depth breakdown of its nutritional content. HealthyOrNot provides A nutritional breakdown highlighting key nutrients like fats, sugars, and proteins. A health rating out of 10, along with personalized recommendations on nutrient optimization. Healthier alternatives based on the nutritional content. Consumption recommendations, tailored to individual health goals and needs.

How we built it

We built HealthyOrNot using Streamlit for the web interface and Gemini Pro Vision, Google's generative AI model, for the food analysis. The system allows users to upload images, which are processed and analyzed using the model to provide comprehensive nutritional insights. The backend handles image resizing with Pillow (PIL) before passing it to the AI model, ensuring a smooth and efficient analysis process. The results are displayed in an interface using Streamlit

Challenges we ran into

ne of the major challenges was ensuring that the AI model could accurately analyze a variety of food items from just an image. We also faced difficulties in extracting precise nutritional information from certain images due to variations in quality, lighting, or the complexity of the food itself. Another challenge was optimizing the API to handle real-time responses and refining the prompts to generate the most accurate and actionable insights.

Accomplishments that we're proud of

We are proud to have created a solution that makes it easy for anyone to understand the nutritional value of their food. Integrating AI to analyze images and return such detailed insights is a significant accomplishment. The ability to offer recommendations and healthier alternatives also stands out as a feature that can make a real impact on users’ health.

What we learned

Through this project, we learned a lot about the intersection of AI, food science, and user experience. We gained insights into how AI can be used in real-time for complex tasks like image analysis. We also learned the importance of refining prompts and ensuring that the AI’s responses are both accurate and easily understandable by users.

What's next for HealthyOrNot

We plan to expand HealthyOrNot by incorporating more features, such as personalized health advice based on dietary preferences (e.g., vegan, keto) and offering more detailed environmental insights. We also aim to improve the accuracy of the model, allowing it to recognize even more food types and provide even more detailed analysis. Integration with fitness tracking apps and a mobile version are also in the pipeline for future development.

Built With

Share this project:

Updates