Two-Stage Transfer Learning with EfficientNetB0 for Four-Class Banana Ripeness Classification
DOI:
https://doi.org/10.29408/edumatic.v10i2.34588Keywords:
efficientnetb0, ripeness classification, banana, transfer learningAbstract
Manual visual inspection to assess banana ripeness is subjective and unable to meet the scale of industrial needs, while previous studies have used heavy CNN architectures and have not systematically explored the depth of fine-tuning. This study proposes a two-phase transfer learning framework using EfficientNetB0 on a pre-augmented dataset of 13.478 images across four ripeness classes: unripe, ripe, overripe, and rotten. Class imbalance is addressed through class weighting during training. In Phase 1 (Feature Extraction), all base layers are frozen, and the classification head is trained until it achieves a best validation accuracy of 98.58%. In Phase 2 (Fine-Tuning), the optimal unfrozen layer depth was determined through systematic ablation across five configurations (5, 10, 15, 20, and 25 layers), with the 25-layer configuration yielding the highest validation accuracy of 98.75%. Evaluation on 562 test images yielded an accuracy of 99.46% and a test loss of 0.0538, with an F1-score of 1.00 for the overripe and ripe classes, and 0.99 for the rotten and unripe classes. The ROC curve confirmed high discriminative capability with an AUC of 1.000 for the overripe and ripe classes, and 0.999 and 0.998 for the unripe and rotten classes. These results demonstrate that the combination of a two-phase strategy, depth ablation, and fine-tuning with class weights yields a robust classification system with potential for application in automated banana sorting using edge devices.
References
Alshaari, H., & Alqahtani, S. (2025). Deep-EFNet : An Optimized EfficientNetB0 Architecture With Dual Regularization for Scalable Multi-Class Brain Tumor Classification in MRI. IEEE Access, 13, 85682–85697. https://doi.org/10.1109/ACCESS.2025.3567919
Arastu, M. T. R., Muskan, T., Deepak, G., Sinha, K., & Kumari, K. (2024). Transformative Breast Cancer Diagnosis using CNNs with Optimized ReduceLROnPlateau and Early Stopping Enhancements. International Journal of Computational Intelligence Systems, 1. https://doi.org/10.1007/s44196-023-00397-1
Baker, N. A., & Zengeler, N. (2022). A Transfer Learning Evaluation of Deep Neural Networks for Image Classification. Machine Learning and Knowledge Extraction, 4, 22–41. https://doi.org/10.3390/make4010002
Das, S., Mullick, S. S., & Zelinka, I. (2022). On Supervised Class-Imbalanced Learning: An Updated Perspective and Some Key Challenges. IEEE Transactions on Artificial Intelligence, 3(06), 973–993. https://doi.org/10.1109/TAI.2022.3160658
Hanifah, A. I., & Hermawan, A. (2023). Klasifikasi Kematangan Pisang Menggunakan Metode Convolutional Neural Network. Komputika : Jurnal Sistem Komputer, 12(2), 49–56. https://doi.org/10.34010/komputika.v12i2.9999
Lee, J., & Lee, G. (2023). Unsupervised domain adaptation based on the predictive uncertainty of models. Neurocomputing, 520, 183–193. https://doi.org/10.1016/j.neucom.2022.11.070
Lin, C., Yang, P., Wang, Q., Qiu, Z., Lv, W., & Wang, Z. (2023). Efficient and accurate compound scaling for convolutional neural networks. Neural Networks, 167, 787–797. https://doi.org/10.1016/j.neunet.2023.08.053
Manik, F. Y., Efendi, S., Tarigan, J. T., & Lydia, M. S. (2025). Benchmarking Deep Learning Models for Visual Classification and Segmentation of Horticultural Commodities. International Journal of Advanced Computer Science and Applications, 16(10), 440–448. https://doi.org/10.14569/IJACSA.2025.0161046
Mathew, M. B., Surya Manjunathan, G., Gokul, B., Mohana Ganesh, K., Sajidha, S. A., & Nisha, V. M. (2023). Banana Ripeness Identification and Classification Using Hybrid Models with RESNET-50, VGG-16 and Machine Learning Techniques BT - Machine Intelligence Techniques for Data Analysis and Signal Processing. Machine Intelligence Techniques for Data Analysis and Signal Processing, 259–273. https://doi.org/10.1007/978-981-99-0085-5_22
Maylianti, N. P., Wijayakusuma, I. G. N. L., & Arta Wiguna, I. P. C. (2025). Comparison of EfficientNet-B0 and ResNet-50 for Detecting Diseases in Cocoa Fruit. Journal of Applied Informatics and Computing, 9(1), 115–120. https://doi.org/10.30871/jaic.v9i1.8868
Nastitie, C., & Handayani, I. (2025). Perbandingan metode mobilenetv2 dan efficientnetb0 untuk klasifikasi jenis pisang comparison of mobilenetv2 and efficientnetb0 methods for banana type classification. Journal of Information Technology and Computer Science, 8(2023), 1990–1999. https://doi.org/10.31539/0240cx09
Parrillo, M., Laura, L., & Manna, A. (2026). Transfer Learning Strategies for Comic Character Recognition in Low-Data Regimes: A Comparative Study. Future Internet, 18(4), 192. https://doi.org/10.3390/fi18040192
Philip, A. R. (2025). Fine-Tuning Depth Analysis: Identifying the Sweet Spot for Maximum Accuracy in CNNs. International Journal of Scientific Research in Computer Science and Engineering, 13(3), 48–63. https://doi.org/10.26438/ijsrcse.v13i3.703
Rizzo, M., Marcuzzo, M., Zangari, A., Gasparetto, A., & Albarelli, A. (2023). Fruit ripeness classification: A survey. Artificial Intelligence in Agriculture, 7, 44–57. https://doi.org/10.1016/j.aiia.2023.02.004
Sehra, U., Dutta, R. R., & Pandit, M. K. (2024). Evaluating Neural Network Parameter Obliteration in Catastrophic Forgetting. 2024 IEEE Region 10 Symposium (TENSYMP), 1–6. https://doi.org/10.1109/TENSYMP61132.2024.10752250
Shezi, S., Magwaza, L. S., & Ncama, K. (2023). Importance of maturity indexing in postharvest management of selected subtropical and temperate fruits. In Postharvest management of fresh produce (pp. 59-79). Academic Press. https://doi.org/10.1016/B978-0-323-91132-0.00007-1
Sugianti, C., Imaizumi, T., Thammawong, M., & Nakano, K. (2022). Recent Postharvest Technologies in the Banana Supply Chain. Reviews in Agricultural Science, 10, 123–137. https://doi.org/10.7831/ras.10.0_123
Voronoi. (2025). Banana Production by Country 2023. 2025; Voronoi App. https://www.voronoiapp.com/agriculture/Banana-Production-by-Country-2023-5557
Xu, C., Zheng, Y., Zhang, Y., Sun, C., Li, G., & Zhu, Z. (2022). Adaptive Class-Balanced Loss Based on Re-Weighting. 6th Asian Conference on Artificial Intelligence Technology (ACAIT), 1–8. https://doi.org/10.1109/ACAIT56212.2022.10137858
Yang, Y. (2023). Fruit Image Classification Using Convolution Neural Networks. Highlights in Science, Engineering and Technology, 34, 110–119. https://doi.org/10.54097/hset.v34i.5430
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Anhar Anhar, Farid Wajidi, Chairi Nur Insani

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All articles in this journal are the sole responsibility of the authors. Edumatic: Jurnal Pendidikan Informatika can be accessed free of charge, in accordance with the Creative Commons license used.

This work is licensed under a Lisensi a Creative Commons Attribution-ShareAlike 4.0 International License.


