This project aims to classify different types of fruits using machine learning models. The objective is to build a model that can accurately identify the type of fruit based on images.
The dataset used for this project consists of images of different types of fruits. Each image is labeled with the type of fruit it represents. The dataset includes a variety of fruits such as apples, bananas, oranges, and more. There are a total of 10 categories in the target.
Sample Images of class: apple Sample images of class: avocado Sample images of class: banana Sample images of class: cherry Sample images of class: kiwi Sample images of class: mango Sample images of class: orange Sample images of class: pineapple Sample images of class: strawberries Sample images of class: watermelon
Link to dataset: https://www.kaggle.com/datasets/karimabdulnabi/fruit-classification10-class
The project implements Transfer Learning using pre-trained CNN of MobileNetV2 with ImageNet weights. No image preprocessing has been done. At the time of creation of data generators, the images are resized to an input shape of (224, 224, 3). The images are RGB (colored).
The architecture is as follows:
The model attained a training accuracy of 97.70% and a testing accuracy of 67.22% in 23 epochs. These results demonstrate the model's ability to effectively classify different types of fruits based on images.
The model predictions are as follows:
This fruit classification model has several potential applications:
- Automated Sorting Systems: Can be used in agricultural and food industries for automated sorting of fruits.
- Retail: Helps in automating the identification and pricing of fruits in grocery stores.
- Dietary Tracking: Assists in dietary tracking apps to automatically identify and log fruits.
For any questions or suggestions, please contact on LinkedIn: https://www.linkedin.com/in/siddiquizainab/