Fruit Recognition System Using MATLAB
Fruit Recognition System Using MATLAB
2023 International Conference on Recent Advances in Electrical, Electronics & Digital Healthcare Technologies (REEDCON) | 978-1-6654-9382-6/23/$31.00 ©2023 IEEE | DOI: 10.1109/REEDCON57544.2023.10151404
Abstract - The study uses a dataset made up of distinct kinds of Fruit categorization and identification software has a variety of
fruits to suggest an automated system for classifying fruits. The practical uses, including grocery shops where it may replace
fruits were photographed using a regular camera to create the manual barcodes. These technologies can also be used as mobile
dataset, which was then used to examine the fruits' colour (using the applications for people with visual impairments and as
RGB colour space), structure, and texture. To find the classifier that educational tools for those with learning difficulties. Moreover,
offers the highest level of accuracy, the fruits were classified using a studying fruit photos can help plant scientists comprehend the
variety of classifiers. The article used the Gray Level Co-occurrence genetic and molecular processes that give rise to the fruits[4].
Matrix (GLCM) method to determine the texture characteristics. Researchers can better understand the mechanisms that contribute
The study's final finding is that a support vector machine (SVM)
to fruit growth by analyzing the variation in fruit shape.
classifier produced the greatest accuracy. Using MATLAB, the full
Identifying unusual fruit and vegetable types at supermarkets is a
fruit categorization procedure was carried out. Overall, the
research proposes an automated method for classifying fruits based
routine activity, but manual labelling and pricing calculation can
on their colour, structure, and texture using image analysis tools. be laborious and prone to mistakes. Barcodes and electronic
The most precise classification outcomes are obtained when SVM is books are options, but each has drawbacks. Hence, the labelling
used as a classifier and GLCM is used to extract texture features. The and pricing process may be streamlined, increasing efficiency
fruit business may find substantial uses for this technology in a and accuracy, using an automated fruit and vegetable
variety of fruit categorization scenarios. identification system. Recently, extraordinary facets of colour,
size, shape, and texture are mixed collectively for their
Keywords—Computer vision, Pattern recognition, Support vector applications in the food industry. Normally, via increasing the
Machine, Text features, Gray level co-occurrence matrix. facets used, the overall performance of the methods proposed
can be increased. Moreover, each surface statistic (colour and
I. INTRODUCTION texture) and geometry information (size and shape) of meals
The creation of intelligent systems that can analyses and merchandise in pix play a considerable section in defect
interpret pictures in a fashion that is comparable to human vision detection and type discrimination [5]. Thereby, to seize greater
has been made possible in recent years by developments in applicable information about the high quality meals merchandise
camera and sensor technology. By applying statistical models, from images, more than one sort of facet corresponding to the
geometry, and other methods, these systems' primary goal is to grading gadget of the meals merchandise ought to be proposed.
recognize and understand pictures. Applications for these systems Colour and texture aspects are used to stumble on green and
include managing industrial robots, navigation using self- purple apples [6]. Here, the texture property performs two roles in
sustaining motors and route planners, autonomous crop disease the attention procedure. Texture-based part detection has been
diagnosis systems, event detection systems for human activities, mixed with redness measures, and location thresholding was
and visual monitoring. The computer's capacity for imagination observed by way of circle fitting, to decide the place of apples in
and prediction is essential in each of these systems. These the image plane. It used to be proven that redness works for pink
intelligent systems can make judgements and conduct actions apples as well as inexperienced apples. This accelerated texture
that would normally require human interaction by evaluating and contrast helped to discover apples one by one from the
interpreting pictures. With the capacity to automate operations and background. Three aspects of evaluation strategies colour-
make judgements based on visual data, many sectors might based, structure based, and size-based are blended collectively in
undergo a revolution, increasing the efficacy and efficiency of order to increase the accuracy of focus [7]. The fundamental
numerous processes. Image processing has attracted a lot of purpose of this work is to robotically apprehend fruit photos by
interest recently in the agricultural sector, notably for automating classifying them in accordance with its aspects of the use of
numerous procedures. Nowadays, automated techniques are machine-getting-to-know techniques. This paper is divided into
utilized to monitor agricultural development, spot diseased the following sections. Section I introduces some latest lookup
crops[1]&[2], and identify fruits and vegetables[3]. works associated with fruit attention and classification.
Authorized licensed use limited to: PES University Bengaluru. Downloaded on November 15,2024 at 14:14:08 UTC from IEEE Xplore. Restrictions apply.
Section II explains the proposed methodology. Section III build depth maps and left and right views, latency complexity
indicates experimental outcomes and the remaining part might be a concern in the context of fruit recognition. This may
compares the proposed algorithm with different present result in less effective system performance and slower
algorithms and then presents the conclusion. processing times. Researchers may investigate other strategies,
such as employing single-view pictures or enhancing the image
II. LITERATURE REVIEW processing algorithms to speed up calculation, to improve
latency.
Over the years, several writers have suggested deviations to
the rules for classifying fruits. Bhanu and Navneet[8] used a D. Accuracy Issue
synthetic neural network to classify elements of structure (area, In the realm of automated fruit recognition, improving fruit
perimeter, fundamental axis size, and minor axis length), colour identification accuracy is a major difficulty. Using more
(mean and variance of HIS, HSV, L*A*B, and YbCbCr sophisticated and reliable machine learning algorithms for
components), and texture (GLCM texture function of contrast, categorization is one way to deal with this problem.
dissimilarity, angular 2d moment, strength, and entropy). Convolutional neural networks (CNNs), for instance, have
Hashem Tamimi [9] proposed a fruit and vegetable recognition demonstrated promising results in image recognition
gadget that used histograms of hue and saturation factors and applications like fruit identification. To improve the accuracy of
facets and the Chi-square minimal distance technique as the fruit recognition, another strategy is to include other elements
classifier. [10] Chromaticity in the RGB space mixed with like texture and shape in addition to colour information. Also,
structure elements extracted with the use of Fourier descriptors, expanding the dataset used to train the algorithms can aid in
Hu moments, and simple geometric facets are used by means of enhancing accuracy because it gives the model more varied
Farid for the classification of the usage of synthetic feed-forward examples to draw from. Also, it is crucial to think about the
neural networks. A different approach suggested by Pragati lighting and surroundings in which the fruitphotographs are taken.
Ninawe[11] uses the closest neighbour classifier in combination The accuracy of fruit recognition may be increased by managing
with shape (area, perimeter, and roundness price), colour (mean these elements and making sure that the illumination is constant.
of RGBvalue), and texture (entropy). The method presented by
Saswati Naskar[12] for fruit recognition increases more than one IV. METHODOLOGY
attribute based on an overall assessment that considers texture,
colour, and form. The Log Gabor filter has been used to Figure 1's block layout, which is representative of the
understand the texture of a fruit. Colour implies hue has been proposed tactic for this exercise, which combines both training and
determined, and structure has been examined by counting categorization, as mentioned in the sentence you gave.
perimeter and nearby pixels. A machine learning model is trained by showing it how to spot
patterns and make predictions based on data. In the context of this
III. RESEARCH GAP issue, training entails supplying the machine learning model with
As per the all-preceding works there is no any researcher who labelled data made up of RGB-D images of fruit trees and related
solves the most essential and critical factors and that are: annotations that point out where the fruits are located in the images.
Using a trained machine learning model to predict the class of
A. Size Issue fresh, untainted data is the process of classification. In the context
Using factors other than size, such as colour, texture, and of this issue, classification entails analyzing fresh RGB-D images
form, can help solve the size problem in fruit recognition. For of fruit trees in order to forecast where the fruits will appear in the
instance, the texture of an apple and that of an orange may images.
differ, as well as the colour of a ripe apple and that of a ripe Figure 1's block layout demonstrates the relationship between
orange. It could be able to distinguish between fruits of similar training and categorization. A collection of RGB-D images with
sizes by adding these more characteristics to the classification annotations identifying the positions of fruits are provided as the
algorithm. In order to increase the precision of size recognition, system's input. A training set and a testing set were created from
machine learning algorithms can also be trained on a big dataset these images. The machine learning model is trained using the
of fruit photos with different sizes and shapes. A different strategy training set, which entails extracting characteristics from the
may entail more precisely capturing the size and form of the fruit images and utilizing those features to build a model that can
using depth sensors or 3D imagingmethods. forecast where fruits will appear in upcoming images. After
trained, the machine learning model is utilized for categorization.
B. Colour Issue The trained model, which predicts the positions of fruits in the
It is true that many fruits have hues that are similar, making it photographs, is given new RGB-D images. A collection of predicted
difficult to distinguish between them. Green pears and apples, for fruit positions is the system's output, and it may be compared to
instance, might both have the same colour of green. Moreover, the ground truth annotations to see how accurate the system is.
colour might differ even within the same fruit species due to Overall, the block configuration in Figure 1 demonstrates the
elements including ripeness, lighting, and image quality. To get advised method for developing and utilizing a machine learning
around this problem, scientists have developed sophisticated model to robotically automate fruit harvesting.
colour analysis methods including colour histogram, colour
moment, and colour coherence vector to detect minute colour A. Fruit Recognition System
variations between fruits. In order to increase the precision of A fruit recognition system is a piece of software or technology
fruit identification, colour analysis has also been integrated with that uses computers to recognise and categorise various kinds of
other characteristics including texture and shape. fruits. It makes use of a number of methods from the fields of
C. Latency complexity machine learning, computer vision, and image processing to
The term "latency" describes the lag or interval of time automatically find and identify fruits in pictures and videos. Image
between an action and its reaction. If it takes a long time to capture, preprocessing, feature extraction, and classification are
some of the processes that the system normally goes through. In the
Authorized licensed use limited to: PES University Bengaluru. Downloaded on November 15,2024 at 14:14:08 UTC from IEEE Xplore. Restrictions apply.
75
2023 International Conference on Recent Advances in Electrical, Electronics & Digital Healthcare Technologies (REEDCON)
Authorized licensed use limited to: PES University Bengaluru. Downloaded on November 15,2024 at 14:14:08 UTC from IEEE Xplore. Restrictions apply.
76
2023 International Conference on Recent Advances in Electrical, Electronics & Digital Healthcare Technologies (REEDCON)
is known as "background subtraction." For historical past Table 1. Fruit Name with Symbol
subtraction, the S channel of images that have been kept in HSV
is a good channel to employ. This makes sense, as the S channel
is far less sensitive to light than any ofthe RGB colour channels.
VII. CONCLUSION
This paper describes the usage of computer systems for
automated agricultural activities, including picture evaluation and a
number of achievable capabilities. Yet, it also acknowledges that
the diversity of agricultural products makes it extremely difficult
to apply modern industrial algorithms to the agricultural realm.
The recommended method entails analyzing, interpreting, and
comprehending fruits based on their visual appearance and
Figure 4. Different poses of one Fruit physical features. The functionality and adaptability of the
Authorized licensed use limited to: PES University Bengaluru. Downloaded on November 15,2024 at 14:14:08 UTC from IEEE Xplore. Restrictions apply.
77
2023 International Conference on Recent Advances in Electrical, Electronics & Digital Healthcare Technologies (REEDCON)
Authorized licensed use limited to: PES University Bengaluru. Downloaded on November 15,2024 at 14:14:08 UTC from IEEE Xplore. Restrictions apply.
78