Sundaram Et Al 2023 An Efficient Fruit Quality Monitoring and Classification Using Convolutional Neural Network and
Sundaram Et Al 2023 An Efficient Fruit Quality Monitoring and Classification Using Convolutional Neural Network and
and Simulation
DOI: 10.1504/IJESMS.2022.10045885
Article History:
Received: 13 October 2021
Accepted: 02 February 2022
Published online: 01 December 2023
T. Shankar
Department of Electronics and Communication Engineering,
Annamalai University,
Chidambaram, Tamil Nadu, India
Email: [email protected]
N. Sudhakar Reddy
M.J.R. College of Engineering and Technology,
Andhra Pradesh, India
Email: [email protected]
Abstract: Fruit quality monitoring in agro industries is carried out by people who may deviate
from their responsibility due to tiredness, illness, or personal reasons. So, an automatic quality
assessment system is proposed based on convolutional neural network (CNN) and Mamdani
fuzzy logic that estimate quality of a Persian Lemon. The proposed CNN was trained with the
transfer learning method and the results obtained were compared with previous works. The
proposed CNN achieved 94.79% accuracy in the validation process which is 13% higher than the
existing architecture. The proposed fuzzy logic classified each lemon in three ranges based on
rules customised for the estimation of fruit quality standards.
Reference to this paper should be made as follows: Sundaram, K.D.M., Shankar, T. and
Reddy, N.S. (2024) ‘An efficient fruit quality monitoring and classification using convolutional
neural network and fuzzy system’, Int. J. Engineering Systems Modelling and Simulation,
Vol. 15, No. 1, pp.20–26.
Biographical notes: K.D. Mohana Sundaram received his BTech from JNTU Hyderabad
University, Andhra Pradesh, India. He received his MTech from JNTU Anantapur University,
Andhra Pradesh, India. Currently, he is pursuing PhD at Annamalai University, Chidambaram,
Tamil Nadu, India. His area of interest is digital circuits, VLSI design and deep learning.
T. Shankar received his BE, ME and Doctoral degree from Annamalai University, Chidambaram,
Tamil Nadu, India. Currently, he is working as an Assistant Professor in the Department of
Electronics and Communication Engineering at Annamalai University, Chidambaram, Tamil
Nadu, India. He published 30 research articles in various international journals. His area of
interest is image processing.
N. Sudhakar Reddy received his BE from Anna University, Tamil Nadu, India. He received his
MTech from SRM University, Chennai, Tamil Nadu, India. He received his Doctoral degree
from VELTECH University, Chennai, Tamil Nadu, India. Currently, he is working as Principal at
M.J.R. College of Engineering and Technology, Piler, Andhra Pradesh, India. He published
25 research articles in various international journals. His area of interest is wireless
communication and signal processing.
specimens with a certain number of pixels and this must be The details of ThinNet architecture with one front and four
considered for all the images. These results were tabulated tinier modules were given in Table 2. In the final detection,
and a graph is drawn between the number of pixels and a 1 × 1 convolutional layer is used with linear activation.
diameter as shown in Figure 3. To find the weight of the After each Tinier module with the last module, the
fruit, An Arduino card, which gets an analogue voltage from maximum pooling is performed with stride of 2. For the first
the battery, is used. The weight obtained by this process is Tinier module strength of filters is two 3 × 3 convolution
sent to MATLAB for further processing. Once all the above layers of 64 channels. It may be noted that the number of
processes were completed the final stage, which is fuzzy channels is doubling after each pooling. By trial and error in
classification can be applied to assess the quality of the an experimental activity, the number of 1 × 1 filter has
fruit. ‘μ = 0.25’ (Leonid and Jayaparvathy, 2021) from the output
channels of the preceding module per each Tinier module,
Total Area of Defects(i ) *100
% of Defects = Total Surface Area of the Lemon (1) where µ is the parameter introduced in ThinNet to reduce
the number of convolution parameters.
pertinent to note that due to delayed down sampling larger response surfaces of the fuzzy system (Thiyaneswaran et al.,
feature maps can improve the performance as the data loss 2020).
from the raw input image is reduced.
Table 3 If-then rules for fuzzy system
2.1.3 Modified ThinNet architecture Surface defects Weight Diameter Output quality
We modified the existing ThinNet architecture by replacing Low High High Good
detector layer with a fully connected layer (Basha et al., Low High Medium Good
2019) with 2-Classifier and a Softmax layer (Ijomah et al., Low High Low Medium
2018) as exposed in Figure 6, to classify the fruit as good or
Low Medium High Medium
damaged.
Low Medium Medium Medium
Table 2 Architecture information of existing ThinNet Low Medium Low Low
Low Low High Medium
Type Output size Filter size/stride N1×1 N3×3
Low Low Medium Low
Input 416 × 416 × 3 3 × 3, 32, 2
image Low Low Low Low
3 × 3, 32, 1 × 2 Medium High High Good
Front 104 × 104 × 128 3 × 3, 64, 1 - -
module
Medium High Medium Medium
Tinier1 104 × 104 × 64 1 × 1 / 1 16 128 Medium High Low Low
×2
3 × 3 / 1 Medium Medium High Medium
Tinier2 52 × 52 × 128 1 × 1 / 1 32 256 Medium Medium Medium Medium
×2 Medium Medium Low Low
3 × 3 / 1
Medium Low High Medium
Tinier3 26 × 26 × 256 1 × 1 / 1 64 512
×2 Medium Low Medium Low
3 × 3 / 1
Medium Low Low Low
Tinier4 13 × 13 × 1,024 1 × 1 / 1 128 1,024 High High High Good
×2
3 × 3 / 1 High High Low Medium
Detector 13 × 13 × 125 1 × 1, 125, 1 - - High High Medium Medium
layer High Medium High Medium
Note: N1×1 and N3×3 represents number of 1 × 1 and 3 × 3 High Medium Medium Low
filters.
High Medium Low Low
Source: Leonid and Jayaparvathy (2021)
High Low High Medium
Figure 6 Modified ThinNet architecture for fruit classification High Low Medium Low
High Low Low Low
Figure 9 Membership function for input variables damage, weight, diameter and output variable fruit quality (see online version
for colours)
Figure 10 Fuzzy system response surface (see online version for colours)
An efficient fruit quality monitoring and classification using convolutional neural network and fuzzy system 25
References
Albers, A., Gladysz, B., Pinner, T., Butenko, V. and Stürmlinger,
T. (2016) ‘Procedure for defining the system of objectives in
the initial phase of an industry 4.0 project focusing on
intelligent quality control systems’, Procedia Cirp, Vol. 52,
pp.262–267, doi: 10.1016/j.procir.2016.07.067.
Figure 12 Input and output images of CNN (see online version Banco Nacional de Comercio Exterior (1996) ‘NMX-FF-077-
for colours) 1996, PRODUCTOS ALIMENTICIOS NO
INDUSTRIALIZADOS PARA CONSUMO HUMANO
FRUTA FRESCA. LIMÓN PERSA (Citrus Latifotia L.)
ESPECIFICACIONES, NORMAS MEXICANAS.
DIRECCIÓN GENERAL DE NORMAS’ [online]
https://www.colpos.mx/bancodenormas/nmexicanas/NMX-
FF-077-1996.PDF (accessed 30 July 2018).
Basha, S.H.S., Dubey, S.R., Pulabaigari, V. and Mukherjee, S.
(2019) ‘Impact of fully connected layers on performance of
convolutional neural networks for image classification’,
Neurocomputing, doi: https://doi.org/10.1016/j.neucom.2019
.10.008.
Chow, Z.S., Ooi, M.P.L., Kuang, Y.C. and Demidenko, S. (2012)
‘Automated visual inspection system for mass production of
hard disk drive media’, Procedia Engineering, Vol. 41,
pp.450–457, doi: 10.1016/j.proeng.2012.07.197.
26 K.D. Mohana Sundaram et al.
Ijomah, W., Nwankpa, C.E., Gachagan, A. and Marshall, S. (2018) Perumal, S., Tabassum, M., Narayana, G., Suresh, P., Chakraborty,
Activation Functions: Comparison of Trends in Practice and C., Mohanan, S., Basit, Z. and Quasim, M.T. (2021) ‘ANN
Research for Deep Learning, 8 November base novel approach to detect node failure in wireless sensor
arXiv:1811.03378v1 [cs.LG]. network’, CMC-Computers, Materials & Continua
Kumarganesh, S. and Suganthi, M. (2014) ‘Efficient lossless (TechScience), Vol. 69, No. 2, pp.1447–1462, ISSN:1546-
medical image compression technique for real world 2226.
applications using JOSE-encoding’, International Journal of Rajkumar, R., Dileepan, D., Chinmay, C. and Suresh, P. (2021)
Applied Engineering Research, Vol. 9, No. 24, ‘Modified Minkowski fractal multiband antenna with
pp.24625–24640. circular-shaped split-ring resonator for wireless applications’,
Kumarganesh, S. and Suganthi, M. (2018) ‘An enhanced medical Measurement, ID. 109766, ISSN 0263-2241, https://doi.org
diagnosis sustainable system for brain tumor detection and /10.1016/j.measurement.2021.109766.
segmentation using ANFIS classifier’, Current Medical Redmon, J. and Farhadi, A. (2017) ‘YOLO9000: better, faster,
Imaging Reviews, Vol. 14, No. 2, pp.271–279. stronger’, in Computer Vision and Pattern Recognition,
Leonid, T.T. and Jayaparvathy, R. (2021) ‘Statistical-model based pp.6517–6525, DOI: 10.1109/CVPR.2017.690.
voice activity identification for human-elephant conflict Suresh, P., Aanandha Saravanan, K., Iwendi, C., Ibeke, E. and
mitigation’, J. Ambient Intell. Human Comput., Vol. 12, Srivastava, G. (2021) ‘An artificial intelligence based quorum
pp.5269–5275, https://doi.org/10.1007/s12652-020-02005-y. system for the improvement of the lifespan of sensor
Markkandan, S., Sharma, A., Singh, S.P. et al. (2021) ‘SVM-based networks’, IEEE Sensors Journal, Vol. 21, No. 15,
compliance discrepancies detection using remote sensing for pp.17373–17385.
organic farms’, Arab Journal of Geosciences, Vol. 14, Szegedy, C., Ioffe, S., Vanhoucke, V. and Alemi, A.A. (2016)
No. 1334, pp.1–8, https://doi.org/10.1007/s12517-021-07700- ‘Inceptionv4, Inception-ResNet and the impact of residual
4. connections on learning’, in National Conference on Artificial
Narmatha, C., Thangamani, M. and Ibrahim, S.J.A. (2020) Intelligence, pp.4278–4284.
‘Research scenario of medical data mining using fuzzy and Thiyaneswaran, B., Anguraj, K., et al. (2020) ‘Early detection of
graph theory’, International Journal of Advanced Trends in melanoma images using gray level co-occurrence matrix
Computer Science and Engineering, February, Vol. 9, No. 1, features and machine learning techniques for effective clinical
pp.349–355. diagnosis’, International Journal of Imaging System and
O’Sheam, K. and Nash, R. (2015) ‘An introduction to Technology, Vol. 31, No. 20, pp.682–694.
convolutional neural networks’, Research Gate, November Zeiler, M.D. and Fergus, R. (2014) ‘Visualizing and understanding
[online] https://www.researchgate.net/publication/285164623 convolutional networks’, in European Conference on
(accessed 20 March 2020). Computer Visión, Springer, Cham., pp.818–833, doi:
10.1007/978-3-319-10590-1_53.