Fruit Image Classification Using CNN With EfficientNet Architecture for Visual Education
DOI:
https://doi.org/10.64878/jistics.v1i2.9Keywords:
Fruit Classification, EfficientNet, CNN, Deep Learning, Image ClassificationAbstract
Advancements in artificial intelligence and computer vision have significantly influenced education, particularly by enhancing visual-based learning for young learners. One promising application is fruit image classification, which helps students recognize and differentiate fruits through visual cues. Traditional methods often struggle with varied backgrounds and lighting conditions, making deep learning models more suitable. This study aims to develop an efficient fruit classification system using the EfficientNetB0 architecture within a convolutional neural network (CNN) framework. This study evaluates the model's effectiveness as a visual learning tool in educational contexts while ensuring computational efficiency. The dataset, sourced from Kaggle, consists of eight fruit categories: apples, bananas, kiwis, lemons, passion fruits, peaches, pineapples, and raspberries. It was split into training and validation sets with an 80:20 ratio using stratified random sampling to ensure balanced class representation during evaluation. Preprocessing steps included resizing images to 224×224 pixels, normalization with EfficientNet preprocessing, and data augmentation techniques to improve generalization. A custom classification head was added, and the EfficientNetB0 base was frozen. Training employed the Adam optimizer, categorical cross-entropy loss, early stopping, and class weighting across 30 epochs. The model achieved a validation accuracy of 99%, with near-perfect precision, recall, and F1-score across all classes. The confusion matrix showed minimal misclassification, indicating strong generalization even among visually similar fruits. In conclusion, the EfficientNetB0-based model demonstrates high accuracy, balance, and computational efficiency. It is ideal for integrating interactive visual learning tools to enhance concept recognition in educational settings, particularly among early learners.
Downloads
References
C. Adams, P. Pente, G. Lemermeyer, and G. Rockwell, “Ethical Principles For Artificial Intelligence In K-12 Education,” Computers and Education: Artificial Intelligence, vol. 4, p. 100131, 2023, doi: 10.1016/j.caeai.2023.100131.
R. Sajja, Y. Sermet, M. Cikmaz, D. Cwiertny, and I. Demir, “Artificial Intelligence-Enabled Intelligent Assistant for Personalized and Adaptive Learning in Higher Education,” arXiv:2309.10892, Sep. 2023.
Y. Fang, R. D. Roscoe, and D. S. McNamara, “Artificial Intelligence-Based Assessment In Education,” in Handbook of Artificial Intelligence in Education, Edward Elgar Publishing, 2023, pp. 485–504. doi: 10.4337/9781800375413.00033.
K. O’Shea and R. Nash, “An Introduction to Convolutional Neural Networks,” arXiv:1511.08458, vol. 2, pp. 1–10, Dec. 2015.
M. Tan and Q. V. Le, “EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks,” arXiv:1905.11946, vol. 5, Sep. 2020.
Y.-D. Zhang, Z. Zhang, X. Zhang, and S.-H. Wang, “Midcan: A Multiple Input Deep Convolutional Attention Network for Covid-19 Diagnosis Based on Chest CT and Chest X-ray,” Pattern Recognit Lett, vol. 150, pp. 8–16, Oct. 2021, doi: 10.1016/j.patrec.2021.06.021.
J. Zhou and Y. Wu, “Micro-Expression Spotting With a Novel Wavelet Convolution Magnification Network in Long Videos,” Pattern Recognit Lett, vol. 178, pp. 130–137, Feb. 2024, doi: 10.1016/j.patrec.2024.01.004.
M. Alim Mutasodirin and F. Miftakhul Falakh, “Efficient Weather Classification Using DenseNet and EfficientNet,” Jurnal Informatika: Jurnal Pengembangan IT, vol. 9, no. 2, pp. 173–179, Aug. 2024.
P. Sumari et al., “A Precision Agricultural Application: Manggis Fruit Classification Using Hybrid Deep Learning,” Revue d’Intelligence Artificielle, vol. 35, no. 5, pp. 375–381, Oct. 2021, doi: 10.18280/ria.350503.
R. Pacheco, P. González, L. Chuquimarca, B. Vintimilla, and S. Velastin, “Fruit Defect Detection Using CNN Models with Real and Virtual Data,” in Proc. 18th Int. Joint Conf. on Computer Vision, Imaging and Computer Graphics Theory and Applications, SCITEPRESS - Science and Technology Publications, 2023, pp. 272–279. doi: 10.5220/0011679800003417.
Raghavendra et al., “Deep Learning Based Dual Channel Banana Grading System Using Convolution Neural Network,” J Food Qual, pp. 1–9, May 2022, doi: 10.1155/2022/6050284.
M. Arora, P. Mangipudi, and M. K. Dutta, “A Low-Cost Imaging Framework For Freshness Evaluation From Multifocal Fish Tissues,” J Food Eng, vol. 314, p. 110777, Feb. 2022, doi: 10.1016/j.jfoodeng.2021.110777.
S. P. Mohanty, D. P. Hughes, and M. Salathé, “Using Deep Learning for Image-Based Plant Disease Detection,” Front Plant Sci, vol. 7, Sep. 2016, doi: 10.3389/fpls.2016.01419.
A. Zahid, M. S. Mahmud, L. He, P. Heinemann, D. Choi, and J. Schupp, “Technological Advancements Towards Developing A Robotic Pruner For Apple Trees: A Review,” Comput Electron Agric, vol. 189, p. 106383, Oct. 2021, doi: 10.1016/j.compag.2021.106383.
U. Y. Tambe, A. Shobanadevi, A. Shanthini, and H.-C. Hsu, “Potato Leaf Disease Classification Using Deep Learning: A Convolutional Neural Network Approach,” in Recent Trends in Data Science and its Applications, Denmark: River Publishers, 2023, pp. 218–223. doi: 10.13052/rp-9788770040723.043.
M. Alruwaili and M. Mohamed, “An Integrated Deep Learning Model with EfficientNet and ResNet for Accurate Multi-Class Skin Disease Classification,” Diagnostics, vol. 15, no. 5, p. 551, Feb. 2025, doi: 10.3390/diagnostics15050551.
M. Mega Santoni, T. Basaruddin, and K. Junus, “Convolutional Neural Network Model Based Students’ Engagement Detection In Imbalanced DAiSEE Dataset,” International Journal of Advanced Computer Science and Applications (IJACSA), vol. 14, no. 3, pp. 617–626, 2023.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Muhammad Hallaj Nashrulloh, Adie Subarkah

This work is licensed under a Creative Commons Attribution 4.0 International License.
License:
This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author(s) and source are credited.







