Implementation of Convolutional Neural Network (CNN) Method in Determining the Level of Ripeness of Mango Fruit Based on Image
DOI:
10.29303/jppipa.v11i5.11436Published:
2025-05-25Issue:
Vol. 11 No. 5 (2025): MayKeywords:
Digital Image, Colour Image, Convolutional Neural Network, Model Evaluation, Mango RipenessResearch Articles
Downloads
How to Cite
Downloads
Metrics
Abstract
This study aims to classify the ripeness level of mango fruit using a Convolutional Neural Network (CNN) model based on digital images. This classification is important to help the automatic sorting process in the agricultural industry that relies on accuracy in determining fruit quality. Based on the literature review, CNN has been widely used in image-based object recognition because of its ability to extract visual features automatically. Previous studies have shown that CNN is effective in image classification, but the results are highly dependent on the quality of the data and the model parameters used. This research method involves collecting mango fruit images at three levels of ripeness (raw, half-ripe, ripe), which are then processed and analyzed using the Orange application with CNN architecture. Model evaluation was carried out using accuracy metrics, AUC, confusion matrix, and visualization through box plots and scatter plots to see the distribution and differences in data between classes. The results showed that the CNN model obtained an accuracy of 53.3% and an AUC value of 0.717, which indicates the model's initial ability to distinguish ripeness categories but with a fairly high level of misclassification. There is still overlapping data between classes, especially between the raw and half-ripe classes, which indicates the need for additional features and parameter refinement. In conclusion, CNN has the potential to be used in classifying the ripeness level of mango fruit, but its performance can be improved through feature development and deeper model tuning.
References
Alsirhani, A., Siddiqi, M. H., Mostafa, A. M., Ezz, M., & Mahmoud, A. A. (2023). A novel classification model of date fruit dataset using deep transfer learning. Electronics, 12(3), 665. https://doi.org/10.3390/electronics12030665
Ayyaz, S., Bonney, L. B., & Adhikari, R. (2023). Consumers’ insight and behaviour towards mango quality and safety attributes: implications for integrated value chain development. British Food Journal, 125(12), 4518–4538. https://doi.org/10.1108/bfj-01-2023-0022
Bianconi, F., Fernández, A., Smeraldi, F., & Pascoletti, G. (2021). Colour and texture descriptors for visual recognition: A historical overview. Journal of Imaging, 7(11), 245. https://doi.org/10.3390/jimaging7110245
Bini, K., Krishnan, A. G., Jacob, J., Supriya, R., & Thomas, K. S. (2024). Mango: The King of the Tropics. In Economically Important Trees: Origin, Evolution, Genetic Diversity and Ecology (pp. 299–324). Springer. https://doi.org/10.1007/978-981-97-5940-8_8
Chen, R.-C., Dewi, C., Huang, S.-W., & Caraka, R. E. (2020). Selecting critical features for data classification based on machine learning methods. Journal of Big Data, 7(1), 52. https://doi.org/10.1186/s40537-020-00327-4
Dhiman, P., Kaur, A., Balasaraswathi, V. R., Gulzar, Y., Alwan, A. A., & Hamid, Y. (2023). Image acquisition, preprocessing and classification of citrus fruit diseases: A systematic literature review. Sustainability, 15(12), 9643. https://doi.org/10.3390/su15129643
Gelaye, Y. (2024). A review of storage temperature and relative humidity effects on shelf life and quality of mango (Mangifera indica L.) fruit and implications for nutrition insecurity in Ethiopia. Open Agriculture, 9(1), 20220296. https://doi.org/10.1515/opag-2022-0296
Hindarto, D. (2023). Enhancing Road Safety with Convolutional Neural Network Traffic Sign Classification. Sinkron: Jurnal Dan Penelitian Teknik Informatika, 7(4), 2810–2818. https://doi.org/10.33395/sinkron.v8i4.13124
Ibtissam, B. (2024). Automatic date fruit sorting system based on machine learning and visual features [Doctoral Dissertation: University of Biskra Biskra, Algeria]. Retrieved from http://archives.univ-biskra.dz/handle/123456789/29324
Islam, M. S., Islam, M., & others. (2025). Improving mango ripeness grading accuracy: A comprehensive analysis of deep learning, traditional machine learning, and transfer learning techniques. Machine Learning with Applications, 19, 100619. https://doi.org/10.1016/j.mlwa.2025.100619
Karki, S., Basak, J. K., Paudel, B., Deb, N. C., Kim, N.-E., Kook, J., Kang, M. Y., & Kim, H. T. (2024). Classification of strawberry ripeness stages using machine learning algorithms and colour spaces. Horticulture, Environment, and Biotechnology, 65(2), 337–354. https://doi.org/10.1007/s13580-023-00559-2
Kayaalp, K. (2024). A deep ensemble learning method for cherry classification. European Food Research and Technology, 250(5), 1513–1528. https://doi.org/10.1007/s00217-024-04490-3
Kiloes, A. M., Azizan, F. A., Checco, J., Joyce, D., & Abdul Aziz, A. (2022). What do consumers want in fresh mangoes? A systematic literature review. International Journal of Food Science and Technology, 57(3), 1473–1492. https://doi.org/10.1111/ijfs.15503
Kiloes, A., Puspitasari, & Sulistyaningrum, A. (2023). The potential economic impact of tropical fruit seedlings distribution program in Indonesia: The case of mango in Pasuruan Regency. The 2nd International Symposium On Durian And Other Tropical Fruits: Recent Trends in Sustainable Agricultural Innovation Technology for Delivering Durian and Others Tropical Fruits to Global Market, 2616(1), 60003. https://doi.org/10.1063/5.0136407
Lim, S.-H., Kang, S.-H., Ko, B.-H., Roh, J., Lim, C., & Cho, S.-Y. (2022). An integrated analysis framework of convolutional neural network for embedded edge devices. Electronics, 11(7), 1041. https://doi.org/10.3390/electronics11071041
Ma, J., Li, M., Fan, W., & Liu, J. (2024). State-of-the-Art Techniques for Fruit Maturity Detection. Agronomy, 14(12). https://doi.org/10.3390/agronomy14122783
Marpaung, F., Koemadji, Z. A., Hidayat, M., Widianto, A., Aulia, F., & others. (2023). Selection of Food Identification System Features Using Convolutional Neural Network (CNN) Method. Scientific Journal of Informatics, 10(2), 205–2016. Retrieved from https://digilib.unimed.ac.id/id/eprint/52994/
Mehta, S., & Kaur, S. (2024). Revolutionizing Fruit Ripeness Assessment: The CNN-LSTM Hybrid Approach for Oranges. 2024 4th Asian Conference on Innovation in Technology (ASIANCON), 1–5. https://doi.org/10.1109/ASIANCON62057.2024.10837797
Naranjo-Torres, J., Mora, M., Hernández-Garc’ia, R., Barrientos, R. J., Fredes, C., & Valenzuela, A. (2020). A review of convolutional neural network applied to fruit image processing. Applied Sciences, 10(10), 3443. https://doi.org/10.3390/app10103443
Nayak, D., Yadav, A., Kumar, S., Lalhruaitluangi, N., & Mandal, D. (2023). Mango. In Tropical and Subtropical Fruit Crops (pp. 559–616). Apple Academic Press. https://doi.org/10.1201/9781003305033-8
Okere, E. (2023). Hyperspectral/Multispectral imaging technology: Application for pomegranate fruit internal quality evaluation and bruise detection [Stellenbosch: Stellenbosch University]. Retrieved from https://scholar.sun.ac.za/handle/10019.1/127150
Osipyan, H., Edwards, B. I., & Cheok, A. D. (2022). Deep neural network applications. CRC Press. https://doi.org/10.1201/9780429265686
Shabir, A., Ahmed, K. T., Mahmood, A., Garay, H., Prado González, L. E., & Ashraf, I. (2025). Deep image features sensing with multilevel fusion for complex convolution neural networks & cross domain benchmarks. PloS One, 20(3), e0317863. https://doi.org/10.1371/journal.pone.0317863
Tengsetasak, P., Tongkoom, K., Yomkerd, J., Susawaengsup, C., Khongdee, N., Chatsungnoen, T., Dangtungee, R., & Bhuyar, P. (2024). Sustainable Strategies for Fresh Mangosteen: Adapting to Climate Challenges. Earth Systems and Environment, 1–19. https://doi.org/10.1007/s41748-024-00512-y
Thaseentaj, S., & Ilango, S. S. (2023). Deep Convolutional Neural Networks for South Indian Mango Leaf Disease Detection and Classification. Computers, Materials & Continua, 77(3). https://doi.org/10.32604/cmc.2023.042496
Worasawate, D., Sakunasinha, P., & Chiangga, S. (2022). Automatic classification of the ripeness stage of mango fruit using a machine learning approach. AgriEngineering, 4(1), 32–47. https://doi.org/10.3390/agriengineering4010003
Zhang, L., Liu, J., Wei, Y., An, D., & Ning, X. (2025). Self-supervised learning-based multi-source spectral fusion for fruit quality evaluation: A case study in mango fruit ripeness prediction. Information Fusion, 117, 102814. https://doi.org/10.1016/j.inffus.2024.102814
Author Biographies
Mei Wita Sari, Universitas Labuhanbatu
Sahat Parulian Sitorus, Universitas Labuhanbatu
Rohani, Universitas Labuhanbatu
Rahmadani Pane, Universitas Labuhanbatu
License
Copyright (c) 2025 Mei Wita Sari, Sahat Parulian Sitorus, Rohani, Rahmadani Pane

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with Jurnal Penelitian Pendidikan IPA, agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution 4.0 International License (CC-BY License). This license allows authors to use all articles, data sets, graphics, and appendices in data mining applications, search engines, web sites, blogs, and other platforms by providing an appropriate reference. The journal allows the author(s) to hold the copyright without restrictions and will retain publishing rights without restrictions.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in Jurnal Penelitian Pendidikan IPA.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).