Classification of Banana Ripeness Using Transfer Learning VGG16 and Logistic Regression

Authors

  • Salma Julfa Iswanto Universitas Bina Sarana Informatika
  • Robi Aziz Zuama Universitas Bina Sarana Informatika
  • Arina Selawati Universitas Bina Sarana Informatika

DOI:

https://doi.org/10.59934/jaiea.v6i1.2712

Keywords:

Banana Ripeness Classification, Computer Vision, Logistic Regression, Transfer Learning, VGG16

Abstract

Banana ripeness classification plays an important role in improving the efficiency of postharvest handling, sorting, and distribution processes. Conventional visual inspection is subjective and often produces inconsistent results due to human judgment. This study proposes an automatic banana ripeness classification model by combining Transfer Learning VGG16 as a feature extractor with Logistic Regression as the classification algorithm. The dataset consists of 1,490 images of Cavendish bananas categorized into four ripeness levels: unripe, semi-ripe, ripe, and overripe. Image feature extraction was performed using the pre-trained VGG16 model, while Logistic Regression was employed to classify the extracted feature vectors. The proposed model was implemented using Orange Data Mining and evaluated under three validation scenarios, namely 10-fold cross-validation, 80:20 random sampling, and 70:30 random sampling. Model performance was assessed using Accuracy, Precision, Recall, F1-Score, Area Under the Curve (AUC), Matthews Correlation Coefficient (MCC), Confusion Matrix, and ROC Curve. Experimental results indicate that the 10-fold cross-validation scenario achieved the highest performance, obtaining 97.8% accuracy, 97.8% precision, 97.8% recall, 97.8% F1-score, 0.999 AUC, and 0.970 MCC. These findings demonstrate that the proposed approach provides accurate and computationally efficient banana ripeness classification, making it suitable for supporting automated fruit sorting applications.

Downloads

Download data is not yet available.

References

Food and Agriculture Organization of the United Nations (FAO), FAOSTAT Crops and Livestock Products. Rome, Italy: FAO, 2024.

Badan Pusat Statistik, Statistik Hortikultura 2024. Jakarta, Indonesia: BPS, 2024.

Y. LeCun, Y. Bengio, and G. Hinton, "Deep learning," Nature, vol. 521, no. 7553, pp. 436–444, May 2015.

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

K. Simonyan and A. Zisserman, "Very deep convolutional networks for large-scale image recognition," in Proc. International Conference on Learning Representations (ICLR), 2015.

S. J. Pan and Q. Yang, "A survey on transfer learning," IEEE Transactions on Knowledge and Data Engineering, vol. 22, no. 10, pp. 1345–1359, Oct. 2010.

I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning. Cambridge, MA, USA: MIT Press, 2016.

D. W. Hosmer, S. Lemeshow, and R. X. Sturdivant, Applied Logistic Regression, 3rd ed. Hoboken, NJ, USA: John Wiley & Sons, 2013.

T. Hastie, R. Tibshirani, and J. Friedman, The Elements of Statistical Learning, 2nd ed. New York, NY, USA: Springer, 2009.

D. M. W. Powers, "Evaluation: From precision, recall and F-measure to ROC, informedness, markedness and correlation," Journal of Machine Learning Technologies, vol. 2, no. 1, pp. 37–63, 2011.

R. C. Gonzalez and R. E. Woods, Digital Image Processing, 4th ed. New York, NY, USA: Pearson, 2018.

F. Pedregosa et al., "Scikit-learn: Machine learning in Python," Journal of Machine Learning Research, vol. 12, pp. 2825–2830, 2011.

M. Abadi et al., "TensorFlow: Large-scale machine learning on heterogeneous systems," 2016.

M. Everingham, L. Van Gool, C. K. I. Williams, J. Winn, and A. Zisserman, "The Pascal Visual Object Classes (VOC) Challenge," International Journal of Computer Vision, vol. 88, no. 2, pp. 303–338, 2010.

J. Deng et al., "ImageNet: A large-scale hierarchical image database," in Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009, pp. 248–255.

Downloads

Published

2026-10-15

How to Cite

Julfa Iswanto , S., Robi Aziz Zuama, & Arina Selawati. (2026). Classification of Banana Ripeness Using Transfer Learning VGG16 and Logistic Regression. Journal of Artificial Intelligence and Engineering Applications (JAIEA), 6(1), 420–426. https://doi.org/10.59934/jaiea.v6i1.2712