Evaluation of Deep Learning Model for Detection of Banana Consumption Feasibility Using Yolov8 Method


Guntur Eka Saputra(1*); Revanza Raditya Putra Yanni(2);

(1) Universitas Gunadarma
(2) Universitas Gunadarma
(*) Corresponding Author

  

Abstract


This study aims to improve the accuracy of banana edibility detection using the YOLOv8 deep learning model. A total of 346 banana images were captured using a smartphone camera and split into training (303), validation (29), and testing (14) subsets. The research framework consisted of four main stages: data collection, preprocessing, model training, and performance evaluation. Preprocessing was conducted using the Roboflow platform and included several techniques such as image annotation, resizing, automatic orientation correction, contrast adjustment, and data augmentation through rotation, mosaic, and noise addition to enrich data variation and model robustness. The YOLOv8 model was trained for 60 epochs, achieving optimal convergence in 0.173 hours. Random search was utilized for hyperparameter optimization to achieve the best model configuration. The evaluation demonstrated remarkable results with a precision of 99.7%, recall of 100%, and mean Average Precision (mAP) of 99.5%. Visualization metrics, including the Precision-Confidence, Recall-Confidence, and F1-Confidence curves, each reached 100%, and the normalized confusion matrix demonstrated flawless classification performance. Testing on unseen data further confirmed the model’s ability to accurately detect and classify bananas into Good Quality and Bad Quality classes with high confidence scores. These findings highlight the capability of YOLOv8 as a robust and reliable model for automated fruit quality assessment. The implementation of this approach offers a non-destructive, fast, and consistent method for evaluating banana edibility, reducing dependency on manual inspection and human error. In addition, this study contributes to the advancement of smart agriculture and post-harvest management by demonstrating the potential of deep learning and computer vision to support real-time quality control and decision-making in the agricultural industry.


Keywords


Deep Learning, Banana, Consumption Feasibility, Detection, YOLOv8

  
  

Full Text:

PDF
  

Article Metrics

Abstract view: 0 times
PDF view: 0 times
     

Digital Object Identifier

doi  https://doi.org/10.33096/ilkom.v17i3.2775.213-226
  

Cite

References


P. Baglat, A. Hayat, F. Mendonça, A. Gupta, S. S. Mostafa, and F. Morgado-Dias, “Non-Destructive Banana Ripeness Detection Using Shallow and Deep Learning: A Systematic Review,” Sensors, vol. 23, no. 2, pp. 1–20, 2023, doi: 10.3390/s23020738.

P. P. Sarma, N. Gurumayum, A. K. Verma, and R. Devi, “A pharmacological perspective of banana: Implications relating to therapeutic benefits and molecular docking,” Food Funct, vol. 12, no. 11, pp. 4749–4767, 2021, doi: 10.1039/d1fo00477h.

N. Saranya, K. Srinivasan, and S. K. P. Kumar, “Banana ripeness stage identification: a deep learning approach,” J Ambient Intell Humaniz Comput, vol. 13, no. 8, pp. 4033–4039, 2022, doi: 10.1007/s12652-021-03267-w.

S. Sharma and S. Kaur, “Studies on banana nutrition: Function and processing kinetics,” Plant Cell Biotechnol Mol Biol, vol. 21, no. 63–64, pp. 130–139, 2020.

A. A. Nugraha, D. Darsono, and S. Marwanti, “Analysis of indonesian banana export performance in major export destination countries,” SVU-International Journal of Agricultural Sciences, vol. 5, no. 2, pp. 127–136, 2023, doi: 10.21608/svuijas.2023.219439.1294.

E. Rumapea, W. Roessali, and E. Prasetyo, “Analysis Of Consumer Attitudes And Preferences To Banana Purchase Decisions In The Traditional Market Of Semarang City,” Agrisocionomics: Jurnal Sosial Ekonomi Pertanian, vol. 6, no. 1, pp. 94–104, 2021, doi: 10.14710/agrisocionomics.v6i1.8364.

J. L. Loupatty et al., “Effect of calcium carbide on the rate of ripening of Ambon Bananas (Musa paradisiaca Var. Sapientum ( L ). Kunt),” BIOEDUPAT: Pattimura Journal of Biology and Learning, vol. 3, no. 2, pp. 118–124, 2023.

M. Utami, J. Andika, and S. Attamimi, “Artificial Intelligence For Banana’s Ripeness Detection Using Conventional Neural Network Algorithm,” Jurnal Teknologi Elektro, vol. 12, no. 2, p. 73, 2021, doi: 10.22441/jte.2021.v12i2.005.

J. Guo, J. Duan, J. Li, and Z. Yang, “Mechanized technology research and equipment application of banana post-harvesting: A review,” Agronomy, vol. 10, no. 3, pp. 1–15, 2020, doi: 10.3390/agronomy10030374.

W. Widyawati and R. Febriani, “Real-time detection of fruit ripeness using the YOLOv4 algorithm,” Teknika: Jurnal Sains dan Teknologi, vol. 17, no. 2, p. 205, 2021, doi: 10.36055/tjst.v17i2.12254.

R. E. Saragih and A. W. R. Emanuel, “Banana Ripeness Classification Based on Deep Learning using Convolutional Neural Network,” 3rd 2021 East Indonesia Conference on Computer and Information Technology, EIConCIT 2021, pp. 85–89, 2021, doi: 10.1109/EIConCIT50028.2021.9431928.

C. Wang, H. Wang, Q. Han, Z. Zhang, D. Kong, and X. Zou, “Strawberry Detection and Ripeness Classification Using YOLOv8+ Model and Image Processing Method,” Agriculture (Switzerland), vol. 14, no. 5, 2024, doi: 10.3390/agriculture14050751.

X. Gao and Y. Zhang, “Detection of Fruit using YOLOv8-based Single Stage Detectors,” International Journal of Advanced Computer Science and Applications, vol. 14, no. 12, pp. 83–91, 2023, doi: 10.14569/IJACSA.2023.0141208.

Q. Wang, C. Yang, S. Duan, and S. Wei, “Research on Fire Prediction Algorithm Based on Thermal Infrared Image,” in ACM International Conference Proceeding Series, 2021, pp. 216–221. doi: 10.1145/3467707.3467739.

R. Arunkumar, C. V Dharani, N. S. Kavisri, and K. A. Dhanusha, “Enhanced Wildfire Detection in Forest Areas via OPENCV with Deep Convolutional Neural Networks for Smoke and Flame Segmentation,” in 2025 International Conference on Emerging Smart Computing and Informatics, ESCI 2025, 2025. doi: 10.1109/ESCI63694.2025.10988026.

D. Sheng, W. Jin, X. Wang, and L. Li, “Thermal image visualization using multi-discriminator CycleGAN with unpaired thermal–visible image training set,” Infrared Phys Technol, vol. 140, 2024, doi: 10.1016/j.infrared.2024.105352.

B. Xiao, M. Nguyen, and W. Q. Yan, “Apple Ripeness Identification Using Deep Learning,” in Communications in Computer and Information Science, 2021, pp. 53–67. doi: 10.1007/978-3-030-72073-5_5.

A. Rendón-Vargas, A. Luna-Álvarez, D. Mújica-Vargas, M. Castro-Bello, and I. Marianito-Cuahuitic, “Application of Convolutional Neural Networks for the Classification and Evaluation of Fruit Ripeness,” in Communications in Computer and Information Science, 2024, pp. 150–163. doi: 10.1007/978-3-031-77290-0_10.

R. Ye, G. Shao, H. Zhang, T. Li, and Q. Gao, “Strawberry Maturity Detection Algorithm Based on Improved YOLOv9,” in Proceedings - 2024 International Conference on Advances in Electrical Engineering and Computer Applications, AEECA 2024, 2024, pp. 759–766. doi: 10.1109/AEECA62331.2024.00133.

R. Hamza and M. Chtourou, “Comparative Study on Deep Learning Methods for Apple Ripeness Estimation on Tree,” in Lecture Notes in Networks and Systems, 2022, pp. 1325–1340. doi: 10.1007/978-3-030-96308-8_123.

S. R. N. Appe, G. Arulselvi, and G. N. Balaji, “Tomato Ripeness Detection and Classification using VGG based CNN Models,” International Journal of Intelligent Systems and Applications in Engineering, vol. 11, no. 1, pp. 296–302, 2023

J. Enríquez and M. Macas, “Artificial Intelligence-Based Banana Ripeness Detection,” in Communications in Computer and Information Science, 2023, pp. 197–211. doi: 10.1007/978-3-031-24985-3_15.

C. H. Mendigoria, H. Aquino, R. Concepcion, O. J. Alajas, E. Dadios, and E. Sybingco, “Vision-based Postharvest Analysis of Musa Acuminata Using Feature-based Machine Learning and Deep Transfer Networks,” in IEEE Region 10 Humanitarian Technology Conference, R10-HTC, 2021. doi: 10.1109/R10-HTC53172.2021.9641575.

L. Ningsih, A. M. Priyatno, and A. Yusmar, “A New Triple-Weighted K-Nearest Neighbor Algorithm for Tomato Maturity Classification,” Jurnal RESTI, vol. 9, no. 4, pp. 955–962, 2025, doi: 10.29207/resti.v9i4.6441.

M. Utami, J. Andika, and S. Attamimi, “Artificial Intelligence For Banana’s Ripeness Detection Using Conventional Neural Network Algorithm,” Jurnal Teknologi Elektro, vol. 12, no. 2, p. 73, 2021, doi: 10.22441/jte.2021.v12i2.005.

J. Guo, J. Duan, J. Li, and Z. Yang, “Mechanized technology research and equipment application of banana post-harvesting: A review,” Agronomy, vol. 10, no. 3, pp. 1–15, 2020, doi: 10.3390/agronomy10030374.

W. Hua, C. Li, and X. Wang, “Review of Convolutional Neural Network Models and Image Classification,” Academic Journal of Science and Technology, vol. 10, no. 3, pp. 178–184, 2024, doi: 10.54097/644jqv20.

F. M. A. Mazen and A. A. Nashat, “Ripeness Classification of Bananas Using an Artificial Neural Network,” Arab J Sci Eng, vol. 44, no. 8, pp. 6901–6910, 2019, doi: 10.1007/s13369-018-03695-5.

V. J. Sinanoglou et al., “Quality Assessment of Banana Ripening Stages by Combining Analytical Methods and Image Analysis,” 2023. doi: 10.3390/app13063533.

C. Wang, H. Wang, Q. Han, Z. Zhang, D. Kong, and X. Zou, “Strawberry Detection and Ripeness Classification Using YOLOv8+ Model and Image Processing Method,” Agriculture (Switzerland), vol. 14, no. 5, 2024, doi: 10.3390/agriculture14050751.

K. M. Kahloot and P. Ekler, “Algorithmic Splitting: A Method for Dataset Preparation,” IEEE Access, vol. 9, pp. 125229–125237, 2021, doi: 10.1109/ACCESS.2021.3110745.

F. M. A. Mazen and A. A. Nashat, “Ripeness Classification of Bananas Using an Artificial Neural Network,” Arab J Sci Eng, vol. 44, no. 8, pp. 6901–6910, 2019, doi: 10.1007/s13369-018-03695-5.

V. J. Sinanoglou et al., “Quality Assessment of Banana Ripening Stages by Combining Analytical Methods and Image Analysis,” 2023. doi: 10.3390/app13063533.

K. Pugdeethosapol, M. Bishop, D. Bowen, and Q. Qiu, “Automatic Image Labeling with Click Supervision on Aerial Images,” in Proceedings of the International Joint Conference on Neural Networks, 2020. doi: 10.1109/IJCNN48605.2020.9207363.

F. Z. Cetin and M. F. Amasyali, “Reversed Image Detection with Convolutional Neural Networks,” in Proceedings - 2020 Innovations in Intelligent Systems and Applications Conference, ASYU 2020, 2020. doi: 10.1109/ASYU50717.2020.9259899.

R. J. Suhatril, R. D. Syah, M. Hermita, and B. Gunawan, “Evaluation of Machine Learning Models for Predicting Cardiovascular Disease Based on Framingham Heart Study Data,” Ilkom Jurnal Ilmiah, vol. 16, no. 1, pp. 68–75, 2024, doi: 10.33096/ilkom.v16i1.1952.68-75.

S. Gocheva-Ilieva, “Statistical Data Modeling and Machine Learning with Applications,” Mathematics, vol. 9, no. 23, 2021, doi: 10.3390/math9232997.

D. E. Birba, “A Comparative study of data splitting algorithms for machine learning model selection,” KTH, School of Electrical Engineering and Computer Science (EECS), 2020.

M. Sohan, T. Sai Ram, and Ch. V. Rami Reddy, “A Review on YOLOv8 and Its Advancements,” in International Conference on Data Intelligence and Cognitive Informatics (ICDICI), I. J. Jacob, S. Piramuthu, and P. Falkowski-Gilski, Eds., Singapore: Springer Nature Singapore, 2024, pp. 529–545. doi: 10.1007/978-981-99-7962-2_39.

L. YU and S. LIU, “A Single-Stage Deep Learning-based Approach for Real-Time License Plate Recognition in Smart Parking System,” International Journal of Advanced Computer Science and Applications, vol. 14, no. 9, pp. 1142–1150, Jan. 2023, doi: 10.14569/IJACSA.2023.01409119.

D. Reis, J. Kupec, J. Hong, and A. Daoudi, “Real-Time Flying Object Detection with YOLOv8,” 2023.

Y. A. Ali, E. M. Awwad, M. Al-Razgan, and A. Maarouf, “Hyperparameter Search for Machine Learning Algorithms for Optimizing the Computational Complexity,” Processes, vol. 11, no. 2, 2023, doi: 10.3390/pr11020349.

K. L. Kohsasih and Z. Situmorang, “Comparative Analysis of C4.5 and Naïve Bayes Algorithms in Predicting Cerebrovascular Disease,” Jurnal Informatika, vol. 9, no. 1, pp. 13–17, 2022.

D. Krstinić, A. K. Skelin, I. Slapničar, and M. Braović, “Multi-Label Confusion Tensor,” IEEE Access, vol. 12, pp. 9860–9870, 2024, doi: 10.1109/ACCESS.2024.3353050.


Refbacks

  • There are currently no refbacks.


Copyright (c) 2025 Guntur Eka Saputra, Revanza Raditya Putra Yanni

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.