Multi-Class CNN Models for Banana Ripeness Classification

  • Rafaela S. Francisco Institute of Computing - Federal University of Mato Grosso (UFMT) Cuiabá - MT - Brazil
  • Gabriel de S. G. Pedroso Institute of Computing - Federal University of Mato Grosso (UFMT) Cuiabá - MT - Brazil
  • Thiago M. Ventura Institute of Computing - Federal University of Mato Grosso (UFMT) Cuiabá - MT - Brazil
Keywords: banana ripeness classification, ; convolutional neural networks, image processing, agricultural automation, data augmentation

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

Download data is not yet available.

References

Adebayo S., Hashim N., Abdan, K., Hanafi, M., Zude-Sasse, M. (2017). Prediction of banana quality attributes and ripeness classification using artificial neural network. Acta Horticulturae, 1152(1152):335-344.
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.
Published
2025-04-30
How to Cite
Rafaela S. Francisco, Gabriel de S. G. Pedroso, & Thiago M. Ventura. (2025). Multi-Class CNN Models for Banana Ripeness Classification. Journal of Systems Engineering and Information Technology (JOSEIT), 4(1). https://doi.org/10.29207/joseit.v4i1.6540
Section
Articles