Code Monkey home page Code Monkey logo

food-image-classification's Introduction

Food-Image-Classification

Image classification is an active area of research and development in deep learning where many milestones are continuously being attained. Applications of such technology varies from areas of defense and security to facial recognition to labeling items in e-commerce etc.

In this study we are presented with tensor flow dataset named food101, containing 750 images of food data for 101 classes of food each, to come up with a deep learning model/algorithm to correctly classify the food from the image. This is useful to determine the intake of food to evaluate the effectiveness of any dietary interventions. This dataset and previous research for image classification approaches is specifically targeted towards determining the effective of nutritional and dietary interventions of obese individuals whose diet has to be monitored closely.

Our proposed models are based on Convolutional Neural Network (CNN). We built the model using transfer learning with EfficientNetB0 as the base model. We further fine-tuned the model based on the images in our food-101 dataset. The fine-tuned model has been able to predict the image classes with ~80% accuracy and has been able to utilize mixed-precision training (MPT) available in transfer flow. This boosted the model’s computational performance by 3X with GPU amounting to about 300 secs per epoch with Tesla T4 GPU. Learning rate of 1e-4 was optimal during fine-tuning with all layers unfrozen of the EfficientNetB0 model with higher/default learning rates leading to vanishing/gradient blowout issues.

The accuracy of the model could be improved by other fine-tuning option like unfreezing few layers at a time, using transfer learning with more advanced EfficientNet models like EfficientNetB4 and tuning the learning rates.

Keywords: Food image classification, deep learning, Convolutional Neural Network, dietary assessment

Link to Notebook: https://github.com/R-Madhuram/Food-Image-Classification/blob/main/Food_Vision_101.ipynb

food-image-classification's People

Contributors

r-madhuram avatar

Watchers

 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.