Skip to content

AkilsuryaS/Food-vision-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Food Vision Project

Overview

The Food Vision project leverages the Food101 dataset, a comprehensive collection of 101,000 images spanning 101 distinct food categories, to build an image classification model. The objective is to accurately classify images of various food items using advanced deep learning techniques.

Transfer Learning Approach

To enhance the model's performance, we utilize Transfer Learning, a powerful technique where a pre-trained model, trained on a large dataset, is fine-tuned on a specific task. This approach significantly reduces training time and improves accuracy, especially when dealing with limited data.

Implementation Steps

  1. Data Preparation:

    • Load the Food101 dataset.
    • Preprocess images, including resizing, normalization, and augmentation, to increase the dataset's variability and robustness.
  2. Model Selection:

    • Choose a pre-trained Convolutional Neural Network (CNN) model, such as ResNet50 or EfficientNet, known for its high performance on image classification tasks.
  3. Transfer Learning:

    • Replace the final layer of the pre-trained model with a new fully connected layer that matches the number of classes in the Food101 dataset.
    • Freeze the weights of the initial layers to retain the learned features.
    • Fine-tune the model on the Food101 dataset, allowing the final layers to adapt to the specific classification task.
  4. Training:

    • Use a suitable optimizer (e.g., Adam) and a learning rate scheduler to optimize the model's performance.
    • Implement techniques such as early stopping and model checkpointing to prevent overfitting and save the best-performing model.
  5. Evaluation:

    • Evaluate the model's performance using metrics like accuracy, precision, recall, and F1-score.
    • Visualize the model's predictions on test images to understand its strengths and weaknesses.

Results

The Transfer Learning approach achieves high accuracy on the Food101 dataset, demonstrating the effectiveness of leveraging pre-trained models for image classification tasks. The final model can accurately classify images of 101 different food categories, making it a valuable tool for food-related applications.

Conclusion

This project showcases the power of Transfer Learning in building a robust food image classifier. By utilizing pre-trained models and fine-tuning them on specific datasets, we can achieve remarkable results with limited computational resources and time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors