A Machine Learning Approach For Predicti
A Machine Learning Approach For Predicti
Machine vision system for fruit classification is one among In this paper, a fruit recognition system using CNN is
the current topic that is under research in the agriculture proposed. The proposed method uses deep learning
industry. As a part of this current research area, this fruits
© 2021, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2979
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 08 Issue: 05 | May 2021 www.irjet.net p-ISSN: 2395-0072
3. ALGORITHM
Classification is done through python 3.6. In many real time mobile applications implemented with
recognition tasks to identify certain objects or surroundings,
light weight architectures are preferable to match the
© 2021, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2980
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 08 Issue: 05 | May 2021 www.irjet.net p-ISSN: 2395-0072
resource restrictions on the platforms. MobileNet is an the networks for users who wants to apply them in different
architecture developed to function on mobile and embedded contexts.
vision applications. MobileNet is used in Inception models
and is built on depth wise separated convolutions to reduce 4.8. Keras
the computation and model size. The depth wise separated
convolutions splits the standard convolution method of Keras is an open-sourceneural-network library written in
combining and filtering in one sequence, into different Python, which is used for the preprocessing, modeling,
layers. One layer for combining and one layer for filtering. evaluating, and optimization. It is capable of running on top
This method reduces the computation size drastically. The of TensorFlow. It is used for high-level API as it handled by
architectures input layer takes an image of size 224 × 224 × backend. It is designed for making a model with loss and
3. Following the input layer is a stack of convolutional layers, optimizer function, and training process with fit function.
one average-pooling layer and a fully connected layer. The For backend, it designed for convolution and low-level
kernel sizes of the convolutional layers vary between 3 × 3 computation under tensors or TensorFlow. Importing the
and 1 × 1.The depth wise separated convolutions structure is python libraries are used for preprocessing, modelling,
clearly shown in the network. Almost 75% of the total optimization, testing and display emotion which having a
parameters in the network are located in convolutional maximum percentage.
layers using a kernel of 1 × 1. This is what reduces the
5. DATASET
computation size.
For training and testing, all the pictures were chosen
4.5. Inception v3
from the Tomato Fruit dataset 500 from Kaggle. The dataset
Inception-v3 is the 2015 repetition of Googl’s Inception contains 500 different Tomato fruits pictures .these is
structural design and a broadly used image identification classified into Ripen Tomato and Rotten Tomato. The pre-
network model that has been presented to obtain more than processing steps including cropping and resizing the object
78.1% accurateness on the ImageNet dataset. Inception is a into 32 × 32 pixel.
remarkable structural design and it is the outcome of
For this test, the training image for each fruit and test
numerous cycles of test and error. It is a module of
images were created from detection set of using this fruit
GoogleLeNet designed to function under strict constraints on
classification approach.
memory and on a computational budget. In the ImageNet
Challenge 2014, GoogleLeNet with the Inception v3 module, Dataset Properties
had the least error rate comparing to other architectures.
With an average error rate of 6.66%, the network defeated 1. Training set size: 500 images
all the other competitors. The Inception v3 module is 42
layers deep and uses BN in both the convolution layers and 2. Validation set size: 140 images
in the fully connected layers. At the start of Inception v3, is a
sequence of three convolutional layers which takes an input 3. Number of classes: 2
image of 299 × 299 × 3. The most unique part of the
Inception network constitutes of the Inception modules. 4. Image size: 100*100 Pixels
ImageNet7 is a large scale image database. In 2009 In this paper, has been applied Mobile Net on Fruit Dataset
ImageNet had over 3.2 million of images of over 5000 to discover the better classification performance of the
categories and has only expanded since. ImageNet is a network. From Fruits dataset, here taken 1260 images from
popular database for collections of data sets to train neural 7 different categories: 85 % of the images from these are
networks and has since 2010 held the annual Large Scale used for training, and 15 % are used for testing the model.
Visual Recognition Challenge8 which has participants from
more than 50 institutions. The variety of images makes the The network is trained for 10 epochs with a batch size of 14.
database a great source to train a neural network. ImageNet The accuracy of the proposed model was 98.74 %. The
is a common data set to have as a foundation when applying comparison of the proposed model with the conventional
training techniques on a CNN because of variety of categories models shows that the results of this model are exceptionally
the database provides. good and promising to use in real-world applications. This
sort of higher accuracy and precision will work to boost the
4.7. TensorFlow machine’s general efficiency in fruit recognition more
appropriately. As a prototype, a program was developed in
Tensorflow is an open source software for numerical Python with PyQt library in a Visual Studio environment. The
computation. It was originally created to conduct machine appearance of the program is shown in Figure 4.
learning and deep neural networks research. Tensorflow
provides neural network architectures and scripts to retrain
© 2021, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2981
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 08 Issue: 05 | May 2021 www.irjet.net p-ISSN: 2395-0072
8. CONCLUSION
REFERENCES
[1] Xiaoyang Liu, Dean Zhao,Weikuan jia, Wei Ji, Yueping Sun,
“A Detection Method for Apple Fruits Based on Color and
Fig 3: Rotten tomato of 96% Shape Features” , IEEE Access, 22 May 2019 .
[2] Seng, Woo Chaw, and Seyed Hadi Mirisaee. "A new
method for fruits recognition system." Electrical Engineering
and Informatics 2009. ICEEI'09. International Conference on.
Vol. 1. IEEE, 2009.
[6] Dang Thi Phuong Chung1 and Dinh Van Tai “A fruits
recognition system based on a modern deep learning
technique”.
© 2021, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2983