Giter Site home page Giter Site logo

Add food handler in Bot about calories HOT 4 OPEN

bobheadxi avatar bobheadxi commented on May 26, 2024
Add food handler in Bot

from calories.

Comments (4)

bwdmonkey avatar bwdmonkey commented on May 26, 2024 1

@bobheadxi Are we actually gonna use some sort of ml with training data or just base it off one serving size?

Note: we still haven't decided on a dataset for food data.

from calories.

bobheadxi avatar bobheadxi commented on May 26, 2024

I was thinking about trying to ML keyword recognition by doing things like:

Bob: Hi I ate a cookie today
Calories: You ate a 'cookie' today? (Yes) (No)
Bob: Yes
Calories: Does 100 calories sound right? (Less) (Yes) (More)

Handy mechanisms like Quick Reply thanks to @ayaMakh's PR the other day ( #30 😉 ) will let us ask for feedback effectively like this. Obviously still have a lot to look into because none of us know anything, but an exciting opportunity.

As for food/exercise/data in general... we need to discuss that at some point. 🤔 I'm still in favour of using some online APIs, but if we can crudely machine learn everything that would be sick.

This will definitely be after we get some quality QA going though ( #31 which Aya is working on starting and we'll all help when she gets the ball rolling and #32, which I'll get going ), since we don't want to have to worry about random bugs when we begin hashing out our features. 🙅‍♂️

After that I will look into setting up some kind of POS (parts-of-speech) recognition ( #24 ) that will help us with all this - been using nltk for Python which is clean, hopefully an API for it or something else exists for Go. This should make it easier for us to work on natural language messages.

❗️ QA first, however ❗️Soz guys but once we reach a certain point we're just never going to get QA going, and it is essential that we do if we want to see this through to eventual Facebook approval + release for everyone to use 🎁

💬 Paging @ayaMakh @zhulia960821 because this is important discussion 💬

from calories.

bwdmonkey avatar bwdmonkey commented on May 26, 2024

For Food Nutrient API: https://ndb.nal.usda.gov/ndb/doc/apilist/API-FOOD-REPORT.md

For exercise calories API: https://wger.de/en/software/api

I think these should be good enough for the API portion.

from calories.

bobheadxi avatar bobheadxi commented on May 26, 2024

I think we should use APIs to get initial "suggestions", but maintain our own database of likely values based on user input.

For example, the food handler could check our database, and if nothing is there, request for data from the APIs. Both the APIs you linked look great, just gotta figure out how best to use them now. I will update the issue descriptions with them.

from calories.

Related Issues (20)

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.