Mango Ripeness Classification Using Deep Learning-Based Convolutional Neural Network Models

Authors

  • Intan Adha Maharani Universitas Islam Negeri Sultan Syarif Kasim Riau, Indonesia
  • Rahma Aliya Universitas Islam Negeri Sultan Syarif Kasim Riau, Indonesia
  • Nidithia Putri Rahrahima Al-Azhar University, Egypt
  • Elfani Mardhatillah Al-Azhar University, Egypt

DOI:

https://doi.org/10.57152/predatecs.v4i1.2111

Keywords:

Convolutional Neural Network, Data Augmentation, Deep Learning, Mango Ripeness, ResNet50V2

Abstract

Manual assessment of mango ripeness is often subjective, time-consuming, and labor-intensive, making it inefficient for large-scale applications. This study investigates a deep learning–based approach for mango ripeness classification using Convolutional Neural Networks (CNN) and a publicly available image dataset obtained from Kaggle. Three CNN architectures, ResNet50V2, InceptionV3, and MobileNetV2, were evaluated using transfer learning and optimized with Adam and RMSprop to classify mangoes as unripe, ripe, or rotten. Data augmentation techniques were applied to improve model generalization and reduce overfitting. Model performance was evaluated using accuracy, precision, recall, and F1-score metrics. Experimental results show that all models achieved competitive performance, with ResNet50V2 obtaining the highest test accuracy of 81.8%, while InceptionV3 demonstrated more stable validation results. These findings indicate that CNN-based transfer learning is effective for mango ripeness classification and can serve as a baseline reference for further development of automated fruit classification systems.

References

A. A. Elsharif, I. M. Dheir, and S. S. Mettleq, Alaa Soliman Abu Abu-Naser, “Potato Classification Using Deep Learning Classification using Deep Learning,” Int. J. Acad. Pedagog. Res. IJAPR, vol. 3, no. 12, pp. 1–8, 2019.

M. Han and C. Yi, “Deep Convolutional Neural Networks for Palm Fruit Maturity Classification,” pp. 1–9, 2025.

L. A. Varga, J. Makowski, and A. Zell, “Measuring the Ripeness of Fruit with Hyperspectral Imaging and Deep Learning,” Proc. Int. Jt. Conf. Neural Netw., vol. 2021-July, 2021, doi: 10.1109/IJCNN52387.2021.9533728.

D. Worasawate, P. Sakunasinha, and S. Chiangga, “Automatic Classification of the Ripeness Stage of Mango Fruit Using a Machine Learning Approach,” AgriEngineering, vol. 4, no. 1, pp. 32–47, 2022, doi: 10.3390/agriengineering4010003.

M. S. Morshed, S. Ahmed, T. Ahmed, M. U. Islam, and A. B. M. Ashikur Rahman, “Fruit Quality Assessment with Densely Connected Convolutional Neural Network,” 12th Int. Conf. Electr. Comput. Eng. ICECE 2022, pp. 461–464, 2022, doi: 10.1109/ICECE57408.2022.10088873.

P. K. Verma, P. Pathak, B. Kumar, Himani, and Preety, “Automatic Optical Imaging System for Mango Fruit using Hyperspectral Camera and Deep Learning Algorithm,” Int. J. Recent Innov. Trends Comput. Commun., vol. 11, no. February, pp. 112–117, 2023, doi: 10.17762/ijritcc.v11i5s.6635.

A. Zakaria et al., “Improved maturity and ripeness classifications of Magnifera Indica cv. harumanis mangoes through sensor fusion of an electronic nose and acoustic sensor,” Sens. Switz., vol. 12, no. 5, pp. 6023–6048, 2012, doi: 10.3390/s120506023.

C. Velásquez, F. Prieto, L. Palou, S. Cubero, J. Blasco, and N. Aleixos, “New model for the automatic detection of anthracnose in mango fruits based on Vis/NIR hyperspectral imaging and discriminant analysis,” J. Food Meas. Charact., vol. 18, no. 1, pp. 560–570, 2024, doi: 10.1007/s11694-023-02173-3.

S. Kienzle, P. Sruamsiri, R. Carle, S. Sirisakulwat, W. Spreer, and S. Neidhart, “Harvest maturity specification for mango fruit (Mangifera indica L. ’Chok Anan’) in regard to long supply chains,” Postharvest Biol. Technol., vol. 61, no. 1, pp. 41–55, 2011, doi: 10.1016/j.postharvbio.2011.01.015.

F. S. Mim, S. M. Galib, M. F. Hasan, and S. A. Jerin, “Automatic detection of mango ripening stages – An application of information technology to botany,” Sci. Hortic., vol. 237, no. March, pp. 156–163, 2018, doi: 10.1016/j.scienta.2018.03.057.

W. J. Sari et al., “Performance Comparison of Random Forest, Support Vector Machine and Neural Network in Health Classification of Stroke Patients,” Public Res. J. Eng. Data Technol. Comput. Sci., vol. 2, no. 1, pp. 34–43, 2024, doi: 10.57152/predatecs.v2i1.1119.

A. R. Rizalde and H. A. Mubarak, “A Deep Learning Approach Bassed on Classification to Detect Facial Skin Defect,” vol. 2, no. January, pp. 93–106, 2025.

V. Wulandari, W. J. Sari, Z. H. Al-sawaff, and S. Manickam, “Comparative Analysis of Weather Image Classification Using CNN Algorithm with InceptionV3 , DenseNet169 and NASNetMobile Architecture Models,” vol. 2, no. January, pp. 81–92, 2025.

M. Ahmed, N. Afreen, M. Ahmed, M. Sameer, and J. Ahamed, “An inception V3 approach for malware classification using machine learning and transfer learning,” Int. J. Intell. Netw., vol. 4, no. September 2022, pp. 11–18, 2023, doi: 10.1016/j.ijin.2022.11.005.

S. R. Suartika E. P, I Wayan, Wijaya Arya Yudhi, “Klasifikasi Citra Menggunakan Convolutional Neural Network (CNN) Pada Caltech 101,” J. Tek. ITS, vol. 5, no. 1, p. 76, 2016.

A. Nawrocka, M. Nawrocki, and A. Kot, “Research study of image classification algorithms based on Convolutional Neural Networks,” Proc. 2023 24th Int. Carpathian Control Conf. ICCC 2023, pp. 299–302, 2023, doi: 10.1109/ICCC57093.2023.10178933.

N. Sharma, V. Jain, and A. Mishra, “An Analysis of Convolutional Neural Networks for Image Classification,” Procedia Comput. Sci., vol. 132, no. Iccids, pp. 377–384, 2018, doi: 10.1016/j.procs.2018.05.198.

R. R. Santosa, A. Sasikirana, Z. L. Ramadhan, Y. P. B. Satria, and A. Nugroho, “Perbandingan Kinerja MobileNetV2 dan ResNet50V2 Dalam Klasifikasi Tingkat Kematangan Tomat,” vol. 3, no. 1, 2025.

“Analisis Perbandingan Kinerja Model EfficientNetV2-S, InceptionV3, dan ResNet50 dalam Klasifikasi Gambar Buah-Buahan,” J. Ilm. Komputasi, vol. 24, no. 3, Sep. 2025, doi: 10.32409/jikstik.24.3.3842.

A. C. Hartono and A. R. Muslikh, “Penerapan Transfer Learning MobileNetV2 Pada Klasifikasi Citra Jenis Buah-Buahan,” vol. 3, no. 2, 2025, doi: 10.26905/jisad.v3i2.16187.

K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit., vol. 2016-December, pp. 770–778, 2016, doi: 10.1109/CVPR.2016.90.

D. Hastari, S. Winanda, A. R. Pratama, N. Nurhaliza, and E. S. Ginting, “Application of Convolutional Neural Network ResNet-50 V2 on Image Classification of Rice Plant Disease,” Public Res. J. Eng. Data Technol. Comput. Sci., vol. 1, no. 2, pp. 71–77, 2024, doi: 10.57152/predatecs.v1i2.865.

M. Agil Izzulhaq and Alamsyah, “Penerapan Algoritma Convolutional Neural Network Arsitektur ResNet50V2 Untuk Mengidentifikasi Penyakit Pneumonia,” Indones. J. Math. Nat. Sci., vol. 47, no. 1, pp. 12–22, 2024.

D. P. Kingma and J. L. Ba, “Adam: A method for stochastic optimization,” 3rd Int. Conf. Learn. Represent. ICLR 2015 - Conf. Track Proc., pp. 1–15, 2015.

J. Sekar and G. T. Kumar, “Hyperparameter Tuning in Deep Learning-Based Image Classification to Improve Accuracy using Adam Optimization,” Int. J. Perform. Eng., vol. 19, no. 9, pp. 579–586, 2023, doi: 10.23940/ijpe.23.09.p3.579586.

L. Muflikhah et al., “Single nucleotide polymorphism based on hypertension potential risk prediction using LSTM with Adam optimizer,” Indones. J. Electr. Eng. Comput. Sci., vol. 33, no. 2, pp. 1126–1139, 2024, doi: 10.11591/ijeecs.v33.i2.pp1126-1139.

F. Zou, L. Shen, Z. Jie, W. Zhang, and W. Liu, “A Sufficient Condition for Convergences of Adam and RMSProp,” no. 1.

S. De, A. Mukherjee, and E. Ullah, “Convergence guarantees for RMSProp and ADAM in non-convex optimization and an empirical comparison to Nesterov acceleration,” pp. 1–33.

D. Zhou, “On the Convergence of Adaptive Gradient Methods for Nonconvex Optimization,” no. 2014, pp. 1–25, 2024.

M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L. C. Chen, “MobileNetV2: Inverted Residuals and Linear Bottlenecks,” Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit., pp. 4510–4520, 2018, doi: 10.1109/CVPR.2018.00474.

L. Bai, Y. Zhao, and X. Huang, “A CNN Accelerator on FPGA Using Depthwise Separable Convolution,” IEEE Trans. Circuits Syst. II Express Briefs, vol. 65, no. 10, pp. 1415–1419, 2018, doi: 10.1109/TCSII.2018.2865896.

Downloads

Published

2026-08-01

How to Cite

Maharani, I. A., Aliya, R., Rahrahima, N. P., & Mardhatillah, E. (2026). Mango Ripeness Classification Using Deep Learning-Based Convolutional Neural Network Models. Public Research Journal of Engineering, Data Technology and Computer Science, 4(1), 14-24. https://doi.org/10.57152/predatecs.v4i1.2111