Food Calories Estimation Using Image Processing

python

Vinayak Sable

In this project I used 7 food items like apple, banana, carrot, cucumber, onion, orange and tomato which details given in table below

Food type

Fruits Density Calorie Label Shape
Apple 0.609 52 1 Sphere
Banana 0.94 89 2 Cylinder
Carrot 0.641 41 3 Cylinder
Cucumber 0.641 16 4 Cylinder
Onion 0.513 40 5 Sphere
Orange 0.482 47 6 Sphere
Tomato 0.481 18 7 Sphere

Sample food images in dataset:

python

Recognition method

Food Recognition deals with recognition of food item when given an image. For this problem I used Convolutional Neural Network (CNN). The Architecture of CNN given below figure python

all this work done in cnn.py file change the directory to food-calories-estimation-using-Image-processing-master folder and give sufficient information to cnn.py python file and run

Model representation

python

Accuracy

python

Loss

python

Requirements

Testing

Google colab link for testing click here for testing our model run

python demo.py

Training

Download data from above FOODD link and create forlder in repo FOODD and run

python train.py

Estimation Method:

Result

Fruits Calorie Estimated Calories
Apple 53.96 40.42
Banana 170.88 188.81
Carrot 31.16 26.28
Cucumber 29.44 37.65
Onion 44.88 37.13
Orange 69.09 71.92
Tomato 17.46 13.82

Limitation and Scope

Reference:

  1. P.Pouladzadeh, S.Shirmohammadi, and R.Almaghrabi, “Measuring Calorie and Nutrition from Food Image”, IEEE Transactions on Instrumentation & Measurement, Vol.63, No.8, p.p. 1947 – 1956, August 2014.

  2. Parisa Pouladzadeh, Abdulsalam Yassine, and Shervin Shirmohammadi, “Foodd: An image-based food detection dataset for calorie measurement,” in InternationalConferenceonMultimediaAssistedDietaryManagement, 2015

  3. Meghana M Reddy, “Calorie-estimation-from-food-images-opencv”, Git repo , May 2016

@vinayak What do you think about these ?