Comparison of MobileNetV2, EfficientNet-B0, and ResNet50 for Fruit Freshness Classification Based on Accuracy and F1-Score

DOI: https://doi.org/10.33650/coreai.v7i1.16300
Authors

(1)  Nadiyah Nadiyah   (Universitas Nurul Jadid)  
        Indonesia
(2) * Fathur Rizal   (Universitas Nurul Jadid)  
        Indonesia
(3)  Andi Wijaya   (Universitas Nurul Jadid)  
        Indonesia
(4)  Zainal Arifin   (Universitas Nurul Jadid)  
        Indonesia
(*) Corresponding Author

Abstract


Freshness is a key determinant of fruit quality and safety, while manual assessment is subjective and slow. This study aims to compare three convolutional neural network architectures, namely MobileNetV2, EfficientNet-B0, and ResNet50, for the freshness classification of apples, bananas, and oranges in fresh and rotten conditions. The Food Freshness Dataset from Kaggle with 29,502 images was used and divided with a ratio of 70:20:10 into six classes. All three models were built using a transfer learning scheme with feature extraction on ImageNet pre-trained weights, an input size of 224×224, and an identical training configuration for 10 epochs. The main difference between the models lies in the specific preprocessing functions of each architecture to ensure a fair comparison. Evaluation was carried out on test data using accuracy and F1-score macro and weighted. The results show that ResNet50 achieved the highest performance with an accuracy of 0.9780 and a macro F1-score of 0.9787, followed by EfficientNet-B0 (0.9759; 0.9774) and MobileNetV2 (0.9726; 0.9732). Class-by-class analysis revealed that the Rotten Orange class was the most difficult for all models. EfficientNet-B0 and MobileNetV2 performed comparable to ResNet50 but with a much smaller number of parameters, making them more efficient for resource-constrained applications. This study emphasizes the importance of reporting F1-scores alongside accuracy on class-imbalanced data.


Keywords

Architecture comparison; Convolutional neural networks; Fruit freshness classification; Transfer learning;



Full Text: VIEW PDF



References


Akbar, R. R. M., Rizal, F., & Shudiq, W. J. (2023). Implementasi algoritma Convolutional Neural Network (CNN) untuk deteksi kesegaran telur berbasis Android. Jusikom: Jurnal Sistem Komputer Musirawas, 8(1), 1–10. https://doi.org/10.32767/jusikom.v8i1.1949

Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., & Fei-Fei, L. (2009). ImageNet: A large-scale hierarchical image database. 2009 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 248–255. https://doi.org/10.1109/CVPR.2009.5206848

Fadhlurrahman, M. F., Wirayuda, T. A. B., & Purnama, B. (2024). Prediction of fruit freshness level using convolutional neural network. Proceedings of the 12th International Conference on Information and Communication Technology (ICoICT), 137–143. https://doi.org/10.1109/ICoICT61617.2024.10698538

FAO. (2022). FAO and MoA start the Food Loss Study in Indonesia. Food and Agriculture Organization. https://www.fao.org/indonesia/news/detail/FAO-and-MoA-Start-the-Food-Loss-Study-in-Indonesia/en

Ghosh, D., & Singh, J. P. (2025). A hybrid CNN-LSTM model for accurate fruit freshness classification using deep learning. Discover Artificial Intelligence. https://doi.org/10.1007/s44163-025-00750-7

He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 770–778. https://doi.org/10.1109/CVPR.2016.90

Hossain, M. S., Al-Hammadi, M., & Muhammad, G. (2019). Automatic fruit classification using deep learning for industrial applications. IEEE Transactions on Industrial Informatics, 15(2), 1027–1034. https://doi.org/10.1109/TII.2018.2875149

Iqbal, M., dkk. (2025). Canned apple fruit freshness detection using hybrid convolutional neural network and transfer learning. Journal of Food Quality, 2025. https://doi.org/10.1155/jfq/8522400

Jasri, M., Rahmadan, I., & Shudiq, W. J. (2024). Increasing student interest in learning through the implementation of the K-Nearest Neighbor algorithm in classifying learning preferences at SMAN 1 Kraksaan. Journal of Computer Networks, Architecture and High Performance Computing, 6(4).https://doi.org/10.47709/cnahpc.v6i4.4526

Kingma, D. P., & Ba, J. (2015). Adam: A method for stochastic optimization. 3rd International Conference on Learning Representations (ICLR). https://arxiv.org/abs/1412.6980

Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). ImageNet classification with deep convolutional neural networks. Advances in Neural Information Processing Systems, 25, 1097–1105.

Palakodati, S. S. S., Chirra, V. R. R., Dasari, Y., & Bulla, S. (2020). Fresh and rotten fruits classification using CNN and transfer learning. Revue d’Intelligence Artificielle, 34(5), 617–622. https://doi.org/10.18280/ria.340512

Pan, S. J., & Yang, Q. (2010). A survey on transfer learning. IEEE Transactions on Knowledge and Data Engineering, 22(10), 1345–1359. https://doi.org/10.1109/TKDE.2009.191

Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., & Chen, L.-C. (2018). MobileNetV2: Inverted residuals and linear bottlenecks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 4510–4520. https://doi.org/10.1109/CVPR.2018.00474

Shahi, T. B., Sitaula, C., Neupane, A., & Guo, W. (2022). Fruit classification using attention-based MobileNetV2 for industrial applications. PLoS ONE, 17(2), e0264586. https://doi.org/10.1371/journal.pone.0264586

Simonyan, K., & Zisserman, A. (2015). Very deep convolutional networks for large-scale image recognition. 3rd International Conference on Learning Representations (ICLR), 1–14. https://arxiv.org/abs/1409.1556

Singh, A., Gupta, R., & Kumar, A. (2023). Fresh and rotten fruit detection using deep CNN and MobileNetV2. Dalam A. Mishra, D. Gupta, & G. Chetty (Ed.), Advances in IoT and Security with Computational Intelligence (ICAISA 2023), Lecture Notes in Networks and Systems (Vol. 755, hlm. 219–231). Springer. https://doi.org/10.1007/978-981-99-5085-0_22

Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427–437. https://doi.org/10.1016/j.ipm.2009.03.002

Tan, M., & Le, Q. V. (2019). EfficientNet: Rethinking model scaling for convolutional neural networks. Proceedings of the 36th International Conference on Machine Learning (ICML), 97, 6105–6114. https://arxiv.org/abs/1905.11946

ULNN Project. (2025). Food Freshness Dataset. Kaggle. https://www.kaggle.com/datasets/ulnnproject/food-freshness-dataset.


Dimensions, PlumX, and Google Scholar Metrics

10.33650/coreai.v7i1.16300


Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Nadiyah Nadiyah, Fathur Rizal, Andi Wijaya, Zainal Arifin

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


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

COREAI: Jurnal Kecerdasan Buatan, Komputasi dan Teknologi Informasi

Published by Technic Faculty of Nurul Jadid University, Probolinggo, East Java, Indonesia.