GithubHelp home page GithubHelp logo

msalehi01 / food-image-classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adesoji1/food-image-classification

0.0 0.0 0.0 16.6 MB

Food Image Classification using TensorFlow: A deep learning model to classify various food items using TensorFlow and CNNs.

License: MIT License

Jupyter Notebook 100.00%

food-image-classification's Introduction

Food-Image-Classification

Task instruction below

here


GitHub Description:

๐Ÿ” Food Image Classification using TensorFlow: A deep learning model to classify various food items using TensorFlow and CNNs.


README.md

Food Image Classification using TensorFlow

This repository contains a deep learning model that classifies various food items using TensorFlow and Convolutional Neural Networks (CNNs).

Project Overview

The goal of this project is to build a model that can accurately classify images of food into predefined categories. With the rise of health and fitness apps, such a model can be integrated into applications to automatically detect and log consumed food items based on user-uploaded images.

Dataset

The dataset used for this project consists of images of various food items categorized into different classes. Each image is labeled with its corresponding food category. Available here

Features

  • Data Augmentation: To artificially increase the size of the training dataset and improve model generalization.
  • Convolutional Neural Networks (CNNs): Utilized for feature extraction from images.
  • Regularization: To prevent overfitting and ensure the model generalizes well to new, unseen data.
  • Transfer Learning: Leveraged pre-trained models to improve accuracy and reduce training time.

Requirements

  • TensorFlow 2.x
  • Python 3.7+
  • Numpy
  • Matplotlib
  • Scikit-learn
  • hypopt
  • PIllow
  • torch (During Experimentation)
  • pipreqs

Usage

  1. Clone the repository:
git clone https://github.com/your_username/food-image-classification.git
  1. Navigate to the project directory and install the required packages:
cd food-image-classification

Use  pipreqs to obtain requirements
  1. Run the main script in the orderr represented in the AI Algorithm .ipynb here on google colab to train the model: `
  2. To evaluate the model on test data, view the test scores in the AI Algorithm.ipyb file:

Results

The model achieved a test accuracy of 92% on the test dataset. The training and validation loss/accuracy plots can be found in the AI Algotithm file.

Future Work

  • Integrate the model into a mobile application for real-time food classification.
  • Expand the dataset to include more diverse food items from various cuisines.
  • Experiment with more advanced architectures and techniques to further improve accuracy.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • Special thanks to the creators of the food dataset.
  • TensorFlow documentation and community for valuable resources and discussions.

food-image-classification's People

Contributors

adesoji1 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.