Abstract
Modern agriculture faces important challenges for feeding a fast-growing planet’s population in a sustainable way. One of the most important challenges faced by agriculture is the increasing destruction caused by pests to important crops. It is very important to control and manage pests in order to reduce the losses they cause. However, pest detection and monitoring are very resources consuming tasks. The recent development of computer vision-based technology has made it possible to automatize pest detection efficiently.
In Mediterranean olive groves, the olive fly (Bactrocera oleae Rossi) is considered the key-pest of the crop. This paper presents olive fly detection using the lightweight YOLO-based model for versions 7 and 8, respectively, YOLOv7-tiny and YOLOv8n. The proposed object detection models were trained, validated, and tested using two different image datasets collected in various locations of Portugal and Greece. The images are constituted by sticky yellow trap photos and by McPhail trap photos with olive fly exemplars. The performance of the models was evaluated using precision, recall, and mAP.95. The YOLOV7-tiny model best performance is 88.3% of precision, 85% of Recall, 90% of mAP.50, and 53% of mAP.95. The YOLOV8n model best performance is 85% of precision, 85% of Recall, 90% mAP.50, and 55% of mAP.50 YOLO8n model achieved worst results than YOLOv7-tiny for a dataset without negative images (images without olive fly exemplars). Aiming at installing an experimental prototype in the olive grove, the YOLOv8n model was implemented in a Ubuntu Server 23.04 Raspberry PI 3 microcomputer.
The authors are grateful to the Foundation for Science and Technology (FCT, Portugal) for financial support through national funds FCT/MCTES (PIDDAC) to CIMO (UIDB/00690/2020 and UIDP/00690/2020) and SusTEC (LA/P/0007/2020).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Ahmad, I., Yang, Y., Yue, Y., Ye, C., Hassan, M., Cheng, X., Yunzhi, W., Zhang, Y.: Deep learning based detector YOLOv5 for identifying insect pests. Appl. Sci. 12(19), 10167 (2022)
Min Dai, Md., Dorjoy, M.H., Miao, H., Zhang, S.: A new pest detection method based on improved YOLOv5m. Insects 14(1), 54 (2023)
Zhu, D., et al.: Knowledge graph and deep learning based pest detection and identification system for fruit quality. Internet Things 21, 100649 (2023)
Nithin Kumar, N., Flammini, F.: YOLO-based light-weight deep learning models for insect detection system with field adaption. Agriculture 13(3), 741 (2023)
Zhang, S., Chi, C., Yao, Y., Lei, Z., Li, S.Z.: Bridging the gap between anchor-based and anchor-free detection via adaptive training sample selection. In: 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, June 2020
Li, B., Chen, Y., Xu, H., Zhong, F.: Fast vehicle detection algorithm based on lightweight yolo7-tiny (2023)
Pereira, J.A.: Yellow sticky traps dataset olive fly (Bactrocera Oleae) (2023)
Kalamatianos, R., Karydis, I., Doukakis, D., Avlonitis, M.: DIRT: the dacus image recognition toolkit. J. Imaging 4(11), 129 (2018)
(Ard) Nieuwenhuizen, A.T., et al.: Raw data from yellow sticky traps with insects for training of deep learning convolutional neural network for object detection (2019)
Lou, H., et al.: DC-YOLOv8: small size object detection algorithm based on camera sensor, April 2023
Tatar, N., Saadatseresht, M., Arefi, H., Hadavand, A.: A new object-based framework to detect shodows in high-resolution satellite imagery over urban areas. The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, XL-1/W5:713–717, December 2015
Belde, S.: Noise removal in images using deep learning models, April 2021
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Alves, A., Pereira, J., Khanal, S., Morais, A.J., Filipe, V. (2024). Pest Detection in Olive Groves Using YOLOv7 and YOLOv8 Models. In: Pereira, A.I., Mendes, A., Fernandes, F.P., Pacheco, M.F., Coelho, J.P., Lima, J. (eds) Optimization, Learning Algorithms and Applications. OL2A 2023. Communications in Computer and Information Science, vol 1982 . Springer, Cham. https://doi.org/10.1007/978-3-031-53036-4_4
Download citation
DOI: https://doi.org/10.1007/978-3-031-53036-4_4
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-53035-7
Online ISBN: 978-3-031-53036-4
eBook Packages: Computer ScienceComputer Science (R0)