Skip to content

Commit d0396f4

Browse files
committed
Meet Quality Assessment
1 parent e5a5067 commit d0396f4

16 files changed

+5208
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I have fetched the Meat Quality Assessment Classification Dataset from,https://www.kaggle.com/datasets/crowww/meat-quality-assessment-based-on-deep-learning, for building and developing this Project. You guys can check out the dataset from the given link.
46.9 KB
Loading
17.4 KB
Loading
33.9 KB
Loading
18 KB
Loading
22.8 KB
Loading
17.9 KB
Loading
102 KB
Loading
30.5 KB
Loading
37 KB
Loading
18.7 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cells": [],
3+
"metadata": {},
4+
"nbformat": 4,
5+
"nbformat_minor": 5
6+
}

Meat Quality Assessment/Model/.ipynb_checkpoints/meat-quality-assessment-checkpoint.ipynb

+2,564
Large diffs are not rendered by default.

Meat Quality Assessment/Model/meat-quality-assessment.ipynb

+2,564
Large diffs are not rendered by default.

Meat Quality Assessment/README.md

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Meat Quality Assessment Model
2+
![image1.png](Images/image1.JPG)
3+
# Introduction
4+
5+
Meat Quality Assessment Model is a Machine Learning based frame work model which will predict whether a given image of meat is spoiled or fresh. Let's have a talk about the dataset.
6+
7+
# Dataset
8+
9+
The dataset for this project is taken from the Kaggle website. Here is the link for the dataset,https://www.kaggle.com/datasets/crowww/meat-quality-assessment-based-on-deep-learning
10+
This dataset contains 2 classes, fresh and spoiled red meat samples collected from a supermarket in Izmir, Turkey for a university-industry collaboration project at Izmir University of Economics, and this work was published in ASYU 2019.Images were collected via an IP camera and the resolution of the images are 1280 x 720. There are 1896 images in total, 948 per class.
11+
12+
If you use this dataset in your work, please consider to cite:
13+
14+
O.Ulucan , D.Karakaya and M.Turkan.(2019) Meat quality assessment based on deep learning. In Conf. Innovations Intell. Syst. Appli. (ASYU)
15+
16+
# Goal
17+
18+
The goal of this project is to build a machine learning model with highest accuracy, which will predict whether the meat is spoiled or fresh with the help of image.
19+
20+
# Approach
21+
22+
In this notebook we will implement various approaches and compare their accuracy with the help of dataset each approach will be divided into different section. For each approach EDA and all techniques of training and testing will be done seperately.
23+
24+
# Approach Using CNN
25+
A Convolutional Neural Network is a type of neural network that is used in Computer Vision and Natural Language Processing tasks quite often due to the fact that it can learn to extract relevant features from the input data.
26+
A typical CNN layer can be understood with the help of following diagram:
27+
28+
![image2.png](Images/image2.JPG)
29+
30+
![image3.png](Images/image3.JPG)
31+
32+
## Here we can see that dataset is equally splitted so it is not unbalanced.
33+
34+
![image4.png](Images/image4.JPG)
35+
## Accuracy has been shown with varying number of epochs
36+
37+
![image5.png](Images/image5.JPG)
38+
## Some of the predictions and actual result.
39+
![image6.png](Images/image6.JPG)
40+
### We obtained an accuracy of **98.6** percent by using CNN. Let us now see another approaches and test whether the accuracy will improve or not by classifying it with another approach
41+
42+
43+
# Approach Using Pytorch
44+
![image7.png](Images/image7.JPG)
45+
### So, as we can see with this approch we have received a 100% accuracy. Now just for comparison let us see another approach using transfer learning to see whether it has same accuracy or less than this
46+
47+
# Approach Using Tensorflow and Transfer Learning
48+
49+
Transfer learning is a method of reusing an already trained model for another task. The original training step is called pre-training. The general idea is that, pre-training “teaches” the model more general features, while the latter final training stage “teaches” it features specific to our own (limited) data. In this approach we have used **MobileNetV2** as pre-training model and based on this we will transfer the learnings from this model into our model and predict the result.
50+
51+
## Loss and accuracy of training and validation dataset
52+
![image8.png](Images/image8.JPG)
53+
54+
## Confusion matrix obtained is:
55+
![image9.png](Images/image9.JPG)
56+
57+
![image10.png](Images/image10.JPG)
58+
59+
### So here we have obtained the accuracy **99 percent** and in this further scope can be improved by testing different type of pre-trained models like in our approach we have used MobileNetV2 . Other Resnet can also be used for transfer learning purpose.
60+
61+
# Conclusion
62+
### We have implemented three different approaches CNN, Pytorch, And Tensorflow with transfer learning and in each case we obtained the accuracy 98.6%,100%, and 99.47% respectively which clearly indicates that Pytorch for this dataset is best among all approaches which has been discussed in this file.
63+
Connect with me on Linkedin:https://www.linkedin.com/in/vikalp-tripathi-187190202/ Check out my Github profile: https://github.com/Vikalp981
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
python
2+
pandas
3+
numpy
4+
matplotlib
5+
tensorflow
6+
pytorch
7+
keras
8+
sklearn
9+
cv2
10+
timm

0 commit comments

Comments
 (0)