Multi-Class CNN Models for Banana Ripeness Classification
Abstract
This study develops and evaluates Convolutional Neural Network (CNN) models for classifying banana maturity stages using images, addressing a significant challenge in the banana supply chain. The banana industry represents a major agricultural sector worldwide, with Brazil exporting 56.2 thousand tons in 2023. Accurate maturity classification is essential for optimizing harvest timing, reducing post-harvest losses, and extending shelf life. We utilized a public Brazilian dataset of 1,000 Prata Catarina banana images categorized into eight ripening stages based on peel coloration standards established by the Brazilian Program for Horticulture Modernization. The images were preprocessed to a standardized 200x200 pixel resolution, and we evaluated the effectiveness of data augmentation techniques including horizontal flip, vertical flip, rotation, and zoom. Our CNN architecture consisted of five convolutional blocks with a dropout layer prior to flattening. We conducted six experiments comparing three classification scenarios (8, 5, and 2 ripeness classes) with and without data augmentation. The models achieved test accuracy ranging from 45.3% to 89.5%, with optimal precision and recall of 87.2% and 89.6% respectively in the two-class model without data augmentation. Performance improved as the number of classes decreased, highlighting the challenge of distinguishing between visually similar ripening stages. This research provides a fundamental reference for future banana ripeness classification studies and demonstrates the potential for practical applications using mobile device cameras, supporting increased productivity and sustainability in the banana industry.
Downloads
References
Bloice, M. D., Stocker, C., & Holzinger, A. (2017). Augmentor: an image augmentation library for machine learning. Available at arXiv preprint arXiv:1708.04680. Accessed February 2024.
CEAGESP (2006) "PBMH & PIF - Programa Brasileiro para a Modernização da Horticultura & Produção Integrada de Frutas". Banana Classification Standards. Available at https://ceagesp.gov.br/wp-content/uploads/2015/07/banana.pdf. Accessed February 2024.
Chen, LY., Wu, CC., Chou, TI., Chiu, SW., Tang, KT. (2018). Development of a dual MOS electronic nose/camera system for improving fruit ripeness classification. Sensors, 18(10):3256.
Chollet, F et al. (2015). Keras. Available at https://keras.io. Accessed February 2024.
Duarte, A. G., Barbieri, M. (2024). BANANA/CEPEA: Exports close 2023 in decline. Available at https://www.hfbrasil.org.br/br/banana-cepea-exportacoes- fecham-2023-em-queda.aspx. Accessed February 2024.
Kingma, D. P., & Ba, J. (2014). Adam: A method for stochastic optimization. Available at arXiv preprint arXiv:1412.6980. Accessed February 2024.
Maharana, K., Mondal, S., & Nemade, B. (2022). A review: Data pre-processing and data augmentation techniques. Global Transitions Proceedings, 3(1), 91-99.
Ministry of Agriculture and Livestock (2024). Agribusiness exports close 2023 with US$ 166,55 billion in sales. Available at https://www.gov.br/agricultura/pt-br/assuntos/noticias/exportacoes-do-agronegocio- close-2023-with-us-166-55-billion-in-sales. Accessed February 2024.
Martins Neto, J. L., Neves, J. P. H., Xavier, M. V. T. N., Freitas, E. D. G. de, Gomes, D.
G. Image Dataset of Prata Catarina Bananas Labeled in Eight Ripening States. In: WORKSHOP ON COMPUTING APPLIED TO THE MANAGEMENT OF THE ENVIRONMENT AND NATURAL RESOURCES (WCAMA), 14. , 2023, João
Pessoa/PB. Porto Alegre: Brazilian Computer Society, 2023 . p. 155-158. ISSN 2595-6124.
Mazen, F. M. A. and Nashat A. A. (2019). Ripeness classification of bananas using an artificial neural network. Arabian Journal for Science and Engineering 44(8):6901- 6910.
Sabilla, I. A., Wahyuni, C. S., Fatichah, C., Herumurti, D. (2019). Determining banana types and ripeness from image using machine learning methods. In: IEEE International Conference of Artificial Intelligence and Information Technology (ICAIIT). Proceedings.
Siddiq, M., Ahmed, J., Lobo, M. G. (2020). Handbook of banana production, postharvest science, processing technology, and nutrition. Hoboken, Wiley, 284 p.
Zhang, Y., Lian, J., Fan, M., Zheng, Y. (2018). Deep indicator for fine-grained classification of banana's ripening stages. EURASIP Journal on Image and Video Processing 2018(1):1-10.
Copyright (c) 2025 Journal of Systems Engineering and Information Technology (JOSEIT)

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- 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 this journal.
- 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 (Refer to The Effect of Open Access).