Coconut Fruit Maturity Classification Using Fuzzy Logic
Coconut Fruit Maturity Classification Using Fuzzy Logic
Coconut Fruit Maturity Classification Using Fuzzy Logic
Irister M. Javela, Argel A. Bandalaa, Rodolfo C. Salvador Jr. a, Rhen Anjerome R. Bedruzb,
Elmer P. Dadiosb, and Ryan Rhay P. Vicerrab
Electronics and Communications Engineering Departmenta
Manufacturing Engineering and Management Departmentb
De La Salle University Manila, Philippines
[email protected], [email protected], [email protected], [email protected],
[email protected], [email protected]
Abstract—The coconut is one of the most useful trees in the A simulation only of the coconut fruit maturity
world. Its fruit, with the scientific name cocos nucifera, is one of classification using fuzzy logic will be covered. The harvesting
the major agricultural products of the Philippines. The coconut of the coconut fruit is not covered in the study as there are
fruit depending on its maturity is used as a food or as a beverage. other studies focused on this process by which the
There are three stages of maturity namely: malauhog,
implementation is through robots [6].
malakanin, and malakatad. The classification into each stage
may be based on the color and hardness of its shell so as the The intended use for a coconut fruit is based on its maturity
amount and tenderness of its meat. To categorize maturity stage, stage. The quality of the coconut fruit has impact on the quality
this paper uses fuzzy logic with color and sound as fuzzy inputs. of the food it is used for or processed for. This may happen if
Image color analysis for determining the percentage brown in the
shell. Sound spectral analysis for relating the shell hardness and
the coconut fruit given does not match the maturity needed.
meat condition. Fuzzy inference system for evaluating the The expertise to properly classify requires years of experience.
relationship of sound and color with the maturity of a coconut Even for expert farmers, their classification may vary [3]. The
fruit. This study is able to simulate coconut fruit maturity system may present a way to standardize the classification of
classification system using a fuzzy logic approach. coconut fruit maturity.
The variability in the husk color and meat condition may be
Keywords – coconut fruit; cocos nucifera; maturity stage; fuzzy accounted for as fuzzy logic works on the principles of making
logic, image analysis, sound spectral analysis sound decisions from conflicting data. The non-linearity
amongst the factors affecting maturity of a coconut fruit even
I. INTRODUCTION the parameters not used directly as inputs to the system may be
accounted for by the proposed system.
There are 68 out of 81 provinces considered as coconut
areas in the Philippines amounting to 26% of total agricultural
II. RELATED LITERATURE
land in the country. There are 329.9 million bearing trees with
an average of 45 nuts per tree per year [1]. The coconut tree is A. Uses of Coconut Fruit based on Maturity
called as the tree of life as any of its part may be useful – roots,
trunk, palm, and the fruit. The coconut fruit based on its The three stages of a coconut fruit are intended for
maturity into different stages or age levels determine whether different use. These are the tagalog terms for each maturity
the nut is used as a food or as beverage. classification: Malauhog (mucus-like stage), Malakanin
(cooked-rice stage), and Malakatad (leather-like stage). The
The malauhog stage is observed as a mucus-like stage when fruit in the first stage may have its meat easily removed from
the meat is very soft and jelly-like with the husk being the shell. The fruit in the second stage is used in salad
greenish. The malakanin stage is a cooked rice-like stage where preparation and in making buko pie. The fruit in the third
the meat changes from jelly-like to a firm opaque-white solid stage is used in making sweets or desserts [2].
mass with the husk being yellowish. The malakatad stage has a
leather-like coconut meat as it is very much firmer with the
color being brownish [2]. There is no standard way of B. Coconut Fruit Color
determining the three stages of coconut fruit maturity [3]. The coconut has been divided in terms of color such as
green, yellow and brown depending on its cultivation [7]. As
This study proposes a fuzzy logic approach for classifying the fruit matures, the peel of the fruit turns color from green to
coconut fruit maturity using color and sound. The coconut fruit brown [4]. The color of the coconut husk is a good indication
turn into its full maturity from green to brown husk color and of ripeness. An immature coconut is mostly filled with
from soft to hard meat condition. The reference for color is coconut water and has a shell color that appears bright green.
brown as its occurrence increases as the fruit matures. The At this stage, the coconuts are not ready for harvest until six or
reference for sound is average power in the normalized seven months later. Upon peak maturity this is when the meat
magnitude spectrum as meat thickens as the fruit matures [4]. has hardened, and the outer husk is solid brown throughout the
There is a high correlation between flesh thickness and fruit coconut fruit [8]. Fig. 1 shows the color of coconut fruit as it
maturity [5]. ages.
A review on the studies of the acoustical property of The block diagram of the image analysis is shown in Fig 4.
coconut fruit shows a correlation on the sound produced and The implementation may be done via OpenCV python or via
stage of maturity. Gatchalian (1994) established that malauhog MatLab using a camera. A fixed setup must be followed
produces a solid sound while malakanin and malakatad during the image acquisition so as not to introduce variability
produce hollow sounds. Terdwongworakul et al. (2009) in the acquired images. The percentage of brown color in a
predicted the maturity from flesh thickness via resonant coconut fruit is the target output of this part.
frequency at R2 of 0.927. Thomas et al. (2017) used a novel
method based on audioception to grade coconut as good or
bad [9].
III. METHODOLOGY
The proposed classification system uses image analysis and
sound spectral analysis prior having these parameters
connected into a fuzzy inference system. The pbrown is the
expected parameter from the image analysis. The psound is
the expected parameter from the sound spectral analysis.
These two are the input parameters to be used in the fuzzy Fig. 4 Block Diagram of Image Analysis
inference system given the high correlation of color and sound
in the maturity of a coconut fruit as established from the The respective function in openCV for the block diagram
literature review. The fuzzy logic classifier will then process of image analysis is shown in Fig 5. The image is read. The
the information as per its knowledge base and come up with a color channel is obtained as RGB. A 3-D matrix consisting of
decision which corresponds to a maturity stage. The output of row number, column number and color channel must be
the system is any of the coconut maturity stage: malauhog, reshaped to a 2-D matrix. K-means clustering is applied to
malakanin, and malakatad. find and analyze groups formed organically. The number of
histograms is limited to the number of clusters. The relative
percentage of each cluster is displayed in a color bar.
(a) (b)