journal article·2025-06-22Open access

YOLOv8m for Automated Pepper Variety Identification: Improving Accuracy with Data Augmentation

Madalena de Oliveira Barbosa, Fernanda Pereira Leite Aguiar, Suely dos Santos Sousa, Luana dos Santos Cordeiro, Irenilza de Alencar Nääs, Marcelo Tsuguio Okano

Applied Sciences· Volume 15· Issue 13

Abstract

This research addresses the critical need for an efficient and precise identification of Capsicum spp. fruit varieties within the post-harvest contexts to enhance quality control and ensure consumer satisfaction. Employing the YOLOv8m convolutional neural network, the study identified eight distinct pepper varieties: Pimento, Bode, Cambuci, Chilli, Fidalga, Habanero, Jalapeno, and Scotch Bonnet. A dataset comprising 1476 annotated images was utilized and significantly expanded through data augmentation techniques, including rotation, flipping, and contrast adjustments. Comparative analysis reveals that training with the augmented dataset yielded significant improvements across key performance indicators, particularly in box precision, recall, and mean average precision (mAP50 and mAP95), underscoring the effectiveness of data augmentation. These findings underscore the considerable potential of CNNs to advance the AgriFood sector through increased automation and efficiency. While acknowledging the constraints of a controlled image dataset, subsequent research should prioritize expanding the dataset and conducting real-world testing to confirm the model’s robustness across various environmental factors. This study contributes to the field by illustrating the application of deep learning methodologies to enhance agricultural productivity and inform decision-making.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Chemical Sensor Technologies · Postharvest Quality and Shelf Life Management · Insect Pheromone Research and Control

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Graduate Program in Production Engineering, Universidade Paulista, Rus Dr Bacelar 1212, São Paulo 04026-002, SP, Brazil

References (43)

Show source-provided references
1. A comprehensive review on emerging importance and economical potential of medicinal and aromatic plants (MAPs) in current scenario
2. Medicinal properties of chili pepper in human diet
3. Chilli intake is inversely associated with hypertension among adults10.1016/j.clnesp.2017.12.007 ↗
4. Food and Agriculture Organization of the United Nations (FAO) (2023, December 18). Production (t). FAO Statistics Database. Available online: https://www.fao.org/statistics/en.
5. da Costa Ribeiro, C.S., Amaro, G.B., Reifschneider, F.J.B., and Carvalho, S.I.C. (2024, January 18). Cultivars. Embrapa Hortaliças. Available online: https://www.embrapa.br/agencia-de-informacao-tecnologica/cultivos/pimenta/pre-producao/caracteristicas/cultivares.
6. Lillywhite, J., and Robinson, C. (2023). Understanding chile pepper consumers’ preferences: A discrete choice experiment. Agriculture, 13.10.3390/agriculture13091792 ↗
7. Johnson, N.A.N., Adade, S.Y.S.S., Ekumah, J.N., Kwadzokpui, B.A., Xu, J., Xu, Y., and Chen, Q. (2025). A comprehensive review of analytical techniques for spice quality and safety assessment in the modern food industry. Crit. Rev. Food Sci. Nutr., 1–26.10.1080/10408398.2025.2462721 ↗
8. Crack identification on the fresh chilli (Capsicum) fruit destemmed system10.1155/2021/8838247 ↗
9. Zhong, Y., Cheng, Y., Ruan, M., Ye, Q., Wang, R., Yao, Z., Zhou, G., Liu, J., Yu, J., and Wan, H. (2021). High-throughput SSR marker development and the analysis of genetic diversity in Capsicum frutescens. Horticulturae, 7.10.3390/horticulturae7070187 ↗
10. A survey of convolutional neural networks: Analysis, applications, and prospects10.1109/TNNLS.2021.3084827 ↗
11. A comprehensive review of YOLO architectures in computer vision: From YOLOv1 to YOLOv8 and YOLO-NAS10.3390/make5040083 ↗
12. Yue, X., Li, H., Song, Q., Zeng, F., Zheng, J., Ding, Z., Kang, G., Cai, Y., Lin, Y., and Xu, X. (2024). YOLOv7-GCA: A Lightweight and High-Performance Model for Pepper Disease Detection. Agronomy, 14.10.3390/agronomy14030618 ↗
13. Dai, M., Sun, W., Wang, L., Dorjoy, M.M.H., Zhang, S., Miao, H., Han, L., Zhang, X., and Wang, M. (2023). Pepper leaf disease recognition based on enhanced lightweight convolutional neural networks. Front. Plant Sci., 14.10.3389/fpls.2023.1230886 ↗
14. Aguiar, F.P.L., Nääs, I.A., and Okano, M.T. (2024). Bridging the Gap Between Computational Efficiency and Segmentation Fidelity in Object-Based Image Analysis. Animals, 14.10.3390/ani14243626 ↗
15. Fast and accurate green pepper detection in complex backgrounds via an improved YOLOv4-tiny model10.1016/j.compag.2021.106503 ↗
16. Smart solutions for capsicum Harvesting: Unleashing the power of YOLO for Detection, Segmentation, growth stage Classification, Counting, and real-time mobile identification10.1016/j.compag.2024.108832 ↗
17. Computer vision technology in agricultural automation—A review
18. Deep Learning: A Comprehensive Overview on Techniques, Taxonomy, Applications and Research Directions10.1007/s42979-021-00815-1 ↗
19. Eunice, J., Popescu, D.E., Chowdary, M.K., and Hemanth, J. (2022). Deep learning-based leaf disease detection in crops using images for agricultural applications. Agronomy, 12.10.3390/agronomy12102395 ↗
20. Li, X., Wang, L., Miao, H., and Zhang, S. (2023). Aphid Recognition and Counting Based on an Improved YOLOv5 Algorithm in a Climate Chamber Environment. Insects, 14.10.3390/insects14110839 ↗
21. López-Barrios, J.D., Escobedo Cabello, J.A., Gómez-Espinosa, A., and Montoya-Cavero, L.-E. (2023). Green sweet pepper fruit and peduncle detection using Mask R-CNN in greenhouses. Appl. Sci., 13.10.3390/app13106296 ↗
22. Ioannou, K., and Myronidis, D. (2021). Automatic Detection of Photovoltaic Farms Using Satellite Imagery and Convolutional Neural Networks. Sustainability, 13.10.3390/su13095323 ↗
23. Comparative result analysis of cauliflower disease classification based on deep learning approach VGG16, inception v3, ResNet, and a custom CNN model10.1016/j.hybadv.2025.100440 ↗
24. Vision transformers for rice leaf disease detection and severity estimation: A precision agriculture approach10.1007/s44447-025-00007-w ↗
25. YOLOv1 to v8: Unveiling Each Variant–A Comprehensive Review of YOLO10.1109/ACCESS.2024.3378568 ↗
26. Agricultural Object Detection with You Only Look Once (YOLO) Algorithm: A Bibliometric and Systematic Literature Review10.1016/j.compag.2024.109090 ↗
27. Ren, R., Zhang, S., Sun, H., and Gao, T. (2021). Research on pepper external quality detection based on transfer learning integrated with convolutional neural network. Sensors, 21.10.3390/s21165305 ↗
28. Classification of pepper seeds using machine vision based on neural network
29. Pepper disease detection model based on convolutional neural network and transfer learning10.1088/1755-1315/792/1/012001 ↗
30. Design and evaluation of an intelligent sorting system for bell pepper using deep convolutional neural networks10.1111/1750-3841.15995 ↗
31. Thakur, P., Chug, A., and Singh, A.P. (2021, January 26–27). Plant Disease Detection of Bell Pepper Using Transfer Learning over Different Models. Proceedings of the 8th International Conference on Signal Processing and Integrated Networks (SPIN 2021), Noida, India.10.1109/SPIN52536.2021.9565945 ↗
32. Model Development for Identifying Aromatic Herbs Using Object Detection Algorithm10.3390/agriengineering6030112 ↗
33. (2024, January 12). Roboflow. Available online: https://roboflow.com/.
34. Facial Recognition With Artificial Intelligence Using The Roboflow Platform10.15210/prociencias.v6i2.25948 ↗
35. Convolutional neural network for smoke and fire semantic segmentation10.1049/ipr2.12046 ↗
36. Yilmaz, B., and Kutbay, U. (2024). YOLOv8 based drone detection: Performance analysis and optimization. Computers, 13.10.20944/preprints202407.2127.v1 ↗
37. Ultralytics (2024, November 12). Ultralytics YOLOv8m Docs. Available online: https://docs.ultralytics.com/.
38. (2024, November 12). Google Colab Pro. Available online: https://colab.google.com.
39. (2024, November 12). Python, Version 3.10.12. Python Software Foundation. Available online: https://www.python.org/.
40. PyTorch: An Imperative Style, High-Performance Deep Learning Library
41. Open Source Computer Vision Library (2024, November 15). OpenCV. Available online: https://opencv.org/.
42. Abdulkareem, I.M., AL-Shammri, F.K., Khalid, N.A.A., and Omran, N.A. (2024). Proposed approach for object detection and recognition by deep learning models using data augmentation. Int. J. Online Biomed. Eng., 20.10.3991/ijoe.v20i05.47171 ↗
43. Application of computer vision technology in agricultural field