Giter Site home page Giter Site logo

dimadem / upf-checker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sabakilai/encode-hack

0.0 0.0 0.0 7.38 MB

This repository contains code for a project developed during the Encode hackathon, focusing on improving awareness of eating habits.

Home Page: https://encode-hack.vercel.app

JavaScript 0.31% TypeScript 27.91% CSS 0.77% Python 3.56% Jupyter Notebook 5.48% Dockerfile 0.14% Rich Text Format 61.83%

upf-checker's Introduction

UPF Checker

See the demo here!

๐Ÿ‘‹ This is UPF Checker - the AI companion on a mission to help you identify and reduce your consumption of Ultra-Processed Foods.

  • The UPF Checker is a progressive web application that helps the user to identify the ultra-processed food and reduce its consumption by transforming the user selfie inducing the emotional response.

  • Under the hood, the UPF Checker uses three models: an open-source Optical Character Recognition model that extracts ingredients as text, ChatGPT that identifies the food category based on the extracted text using the zero-shot learning, and Stability AI image-to-image model that transforms user selfie using the conditional parameters based on the identified category.

Why it matters

Ultra-processed foods (UPF) are products created through manufacturing processes that predigest raw food ingredients. These foods are quick to digest, often leading to overconsumption of calories and weight gain. From ready-to-eat meals to packaged snacks and sodas, UPFs are often low in nutrients but high in sugar, salt, unhealthy fats, and additives. Recent studies have linked UPFs to a host of health issues, including obesity, cardiovascular diseases, and even some cancers.

UPFs account for a significant portion of the total dietary energy consumed in many countries. In high-income nations like the UK, Canada, and the USA, they make up more than half of the total dietary intake. Even in middle-income countries such as Brazil, Mexico, and Chile, ultra-processed foods contribute between one-fifth and one-third of the total dietary energy.

However, until now, there has been no simple method to identify these products easily.

The UPF Checker addresses this issue by providing a straightforward way for users to recognize ultra-processed foods. It aims to help policymakers prevent potential health crises by raising awareness about the harmful effects of ultra-processed foods. The UPF Checker achieves this through an engaging and entertaining approach, making the identification process more accessible and appealing to users.

Project structure

  • Research folder contains scripts with model training experiments we conducted and used to select our best final models that can be found in the backend folder.
  • Our backend is built using the Flask Python web framework. It has a sigle endpoint for our client to post requests.
  • Our frontend is a progressive web application built using the Next JS. It utilises the IndexedDB to store our user photo locally on the user device. Tailwind is used for the design.

Meet the team

๐Ÿ‘ฉโ€๐Ÿซ Emeli Dral - Machine Learning expert and DevOps

Screenshot 2024-03-10 at 10 09 18

๐Ÿ‘จโ€๐Ÿ’ป Dima Dem - Frontend Developer and Designer

Screenshot 2024-03-10 at 10 09 30

๐Ÿ‘จโ€๐Ÿ’ป Bakhtiiar Bakhautdinov - Backend Developer

Screenshot 2024-03-10 at 10 09 40

๐Ÿ‘ฉโ€๐Ÿ’ป Kate Usacova - Fullstack Developer and Solution Architect

Screenshot 2024-03-10 at 10 09 49

Try it out!

QR

upf-checker's People

Contributors

dimadem avatar emeli-dral avatar kateusacova avatar sabakilai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.