Show HN: I built an AI that recognizes food
infino.me
infino.me
I find myself sometimes not logging food on that app because I couldn't be bothered to search for it.
On the other hand if the product has a barcode I always scan it in because that is convenient.
Also, don't bulk packages of vegetables tend to have barcodes on them inherently?
The more general point is that food in the US has to be at a certain level of quality to be sold, literal barcodes aside.
I won't trust an AI until it has a massive database and a million users. Until then, it's just not going to work well enough. You also need to convince users why they should use your app, instead of MyFitnessPal (which already has a massive database, including barcodes.)
It's how companies such as Expensify were able to handle their receipt OCR gracefully for such a wide variety of invoices and receipts.
I'd err on the side of saying this is a more palpable sales approach to selling it as AI. Letting your customers know that while AI is running the show, things are being monitored closely and fixed by real people when misclassifications arise.
Take for example soda, if I gave you a picture of soda in a glass could you tell it was diet or regular? You might scoff at such an edge case but it quickly becomes more common when looking into food perpetration techniques. This is why caloric estimation is a really difficult and causes restaurants to not list their calories as the calories of a meal do not equal the sum of it's parts.
All these solutions are common as people want a signal to tell them to stop eating, but these are insufficient as people will simply ignore it due to hunger cravings (as happens on diets). Any nutritionist service in addition to detailing calories would need to incentive the patient to recognize the need to lose weight or setup a helpline.
That seems to violate the laws of thermodynamics.
Biology is not thermodynamics. Humans are not perfect combustion engines.
Thermodynamics should add up once you account for heating, cooling, evaporation, enzymes, waste, etc
In my area, restaurants list the calories for each menu item, exactly to the extent required by law (chain restaurants are required to public calorie counts), plus some promotional "under 500 calories" or what-have-you for diet-targeting places.
But people would probably still pay as long as it's a good faith attempt, since they can't necessarily do better themselves, so it would be just as accurate and save time.
And with geolocation, you could start to figure out where people are and then you'd know exactly the calories if they're at a chain restaurant.
For me I would be ok with knowing weather the meal was in the 500 or 800 range.
UI needs work. Would love feedback on how to make food logging more intuitive.
Things like Main screen, App Icon and colour palette.
Wish you luck with the app, really cool idea!
I'm trying to use fatsecret/myfitnesspal for counting calories. Something like this could make it much easier!
To me, a better workflow would be: take pictures of everything you eat and classify later (at night, maybe on the PC). Of course, this software would simplify the classification, the user would only fix any errors and adjust sizes.
This workflow would be well suited to your app, which operates on a server? (my understanding).
Congrats, I understand the relevance of AI for simple apps now ;)
It would also work nicely for background geolocation services, since if the photograph was taken near a restaurant the service could extrapolate those things.
Anyways, I might make this project opensource and build a nice community around it. Depends on whether or not that model would best support my research goals.
How well does it work on plates with multiple foods "kinda mixed"?
Implicitly, since the app presents a list of possible identified foods, and the user can easily check multiple boxes, thats straightforward, but then having the app pull each of those items AND ask the user to estimate portions for each .... gets a little messy.
So I put that complexity off for v2. That use case in particular would also be best off for a web-interface, I think.
Cant compete with that awesomesauce!
We're working on a similar component for our commercial behavioral-economics-driven app suite, targeted toward patients with chronic diseases.
Do you use location as a way to filter the set of possible foods, as in Google's im2calories project/paper last year?
They do some pretty awesome depth calculation stuff too: https://www.google.com/?ion=1&espv=2#q=im2calories+type:pdf
Edit: oops, should have read further. I see that you pulled appropriate terms from WordNet and used ImageNet to gather training images from Flickr. Cool!
That way when I look at a Krispy Kreme donut I get immediate feedback!
Let's call it: "American Dystopia"
With today's technology we can do it again.
Maybe a combination of spectrometer, weight, and photos would be a future solution. I certainly don't have an idea of how it would be implemented, but I think using data from all 3 of those sources could be a good step.
In the lab, we can use doubly-labelled water to precisely measure calorie intake and burn, but its so damned expensive. If only it were commercially viable.
ah, good ole toilet humor
1. Knowing what the hell a (example) rhubarb is or looks like.
2. Knowing if it looks fresh or about to go bad.
Being able to aim a camera slowly across an isle with it getting highlighted would solve first problem. Spinning vegetable around in front of the camera would could solve second. So, try that and make it a paid app.
Had never seen a beet before un-cut. Ashamed of my ignorance ;)
That said, you should try training it on different kinds of produce that look very similar. One example I recall is Zucchini vs Cucumber as the stem at one side is the giveaway. Another is Nappa Cabbage vs Romaine Lettuce. Only two examples I could think of off top of head that would confuse people.
Thanks for allowing one to try it out without logging in via another service; it'd be great to be able to actually have an account.
Sorry about this!
Looking forward to trying the app once I can install it though, looks neat
:(
I wonder if you could use this visual distance algorithm to somehow judge portion sizes/plate sizes?
Aside from that though, I figured Id do portion estimation down the road should this preliminary version take off.
Aim high ...
PS, another plus for the Metric System. The Imperial System form includes Feet+Inches, while the metric one only needs Centimeters for the height.
0: http://annals.org/article.aspx?articleid=2499472 (this paper used to be available, because I read the whole thing, but I guess it's paywalled now)
Very cool!
If you're a powerlifter or a sprinter, don't change your habits just because your BMI is high. On the flip side, if you sit behind a desk all day, don't blame a high BMI on the metric being inaccurate.
Muscle density and bone density, amongst other factors, will vary by ethnicity enough that researchers are discussing the value of one singular set of windows for the BMI[0], and although I don't have evidence I would also say that it really doesn't take much exercise for a person to skew their BMI by a noticeable amount - I would venture the top 30% of all exercisers would see their BMI affected by their habits.
So while there is value in the BMI for being easy to collect its data and make recommendations based on its value, in this day and age you'd really expect a more granular and precise measurement for use in research and disseminating health information.
It shouldn't be such a big leap for smartwatches / fitbits to measure body fat %, for example.
[0]http://www.ncbi.nlm.nih.gov/pubmed/19221673?dopt=Citation
Note that for women the low end of normal is probably sub-optimal.
Don't be absurd. There's no reason one couldn't choose to input inches only, or decimal feet, or metres, decimetres and centimetres, or decimal kilometres.
I had do the entire process twice because there is no (obvious) way to change the serving size to 2.
Would decrease cheating perhaps?
That is checked manually today.
Will probably opensource this, since I want to grow up a nice research community around quantified self fanatics.
Also, been needing to train on non-food items to weed out abuse.