High-Precision Detection for Sandalwood Trees via Improved YOLOv5s and StyleGAN
Yu Zhang,
Jiajun Niu,
Zezhong Huang,
Chunlei Pan,
Yueju Xue and
Fengxiao Tan ()
Additional contact information
Yu Zhang: College of Electronic Engineering (College of Artificial Intelligence), South China Agricultural University, Guangzhou 510642, China
Jiajun Niu: College of Electronic Engineering (College of Artificial Intelligence), South China Agricultural University, Guangzhou 510642, China
Zezhong Huang: College of Electronic Engineering (College of Artificial Intelligence), South China Agricultural University, Guangzhou 510642, China
Chunlei Pan: College of Electronic Engineering (College of Artificial Intelligence), South China Agricultural University, Guangzhou 510642, China
Yueju Xue: College of Electronic Engineering (College of Artificial Intelligence), South China Agricultural University, Guangzhou 510642, China
Fengxiao Tan: College of Natural Resources and Environment, South China Agricultural University, Guangzhou 510642, China
Agriculture, 2024, vol. 14, issue 3, 1-13
Abstract:
An algorithm model based on computer vision is one of the critical technologies that are imperative for agriculture and forestry planting. In this paper, a vision algorithm model based on StyleGAN and improved YOLOv5s is proposed to detect sandalwood trees from unmanned aerial vehicle remote sensing data, and this model has excellent adaptability to complex environments. To enhance feature expression ability, a CA (coordinate attention) module with dimensional information is introduced, which can both capture target channel information and keep correlation information between long-range pixels. To improve the training speed and test accuracy, SIOU (structural similarity intersection over union) is proposed to replace the traditional loss function, whose direction matching degree between the prediction box and the real box is fully considered. To achieve the generalization ability of the model, StyleGAN is introduced to augment the remote sensing data of sandalwood trees and to improve the sample balance of different flight heights. The experimental results show that the average accuracy of sandalwood tree detection increased from 93% to 95.2% through YOLOv5s model improvement; then, on that basis, the accuracy increased by another 0.4% via data generation from the StyleGAN algorithm model, finally reaching 95.6%. Compared with the mainstream lightweight models YOLOv5-mobilenet, YOLOv5-ghost, YOLOXs, and YOLOv4-tiny, the accuracy of this method is 2.3%, 2.9%, 3.6%, and 6.6% higher, respectively. The size of the training sandalwood tree model is 14.5 Mb, and the detection time is 17.6 ms. Thus, the algorithm demonstrates the advantages of having high detection accuracy, a compact model size, and a rapid processing speed, making it suitable for integration into edge computing devices for on-site real-time monitoring.
Keywords: StyleGAN; improved YOLOv5s; CA module; SIOU; sandalwood detection (search for similar items in EconPapers)
JEL-codes: Q1 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 (search for similar items in EconPapers)
Date: 2024
References: View complete reference list from CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/2077-0472/14/3/452/pdf (application/pdf)
https://www.mdpi.com/2077-0472/14/3/452/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:gam:jagris:v:14:y:2024:i:3:p:452-:d:1354754
Access Statistics for this article
Agriculture is currently edited by Ms. Leda Xuan
More articles in Agriculture from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().