Detection of pine wilt disease infected pine trees using YOLOv5 optimized by attention mechanisms and loss functions

• Developed YOLO-based network by six attention mechanisms to enhance PWD detection. • SE, CBAM and NAM significantly make model focus on critical features. • Using SIoU and WIoU loss functions to capture color character and improve detection. • Adding random backgrounds enhances generalization capability and precision of model. Pine Wilt Disease (PWD) is one of the most dangerous and destructive disease in the global forest ecosystems. Based on a dataset of pine wilt disease infected trees that we collected and produced, we developed new technology derived from YOLOv5s to promote the detection performance of the PWD infected trees in this work, in which attention mechanisms, random backgrounds and modifications of the loss functions are integrated. In our strategy, six different attention mechanisms, i.e., SE, CA, CBAM, ECA, SimAM and NAM, are added to improve the detection of YOLOv5s algorithm. These mechanisms are added by embedding in the previous layer of the spatial pyramid pooling-fast structure and replacing all C3 layers in the backbone, respectively. All attention mechanisms added in various ways improves the detection results of PWD infected pine trees. Among them, SE, CBAM and NAM attention mechanisms show the most significant improvements. Because all these three attention mechanisms can specifically enhance the ability of the model to focus on the critical feature for densely distributed or complex pine forests with red broad-leaved trees with diseased and withered pine trees. Five other loss functions are adopted to replace CIoU loss function in the original YOLOv5 networks to examine their interactions in the detection of PWD infected trees. Among the five replaced loss functions, SIoU and WIoU losses are sensitive to color changes in the target, allowing them to effectively capture the distinctions of diseased trees, thereby increasing detection precision. Also, we acquired a model trained by incorporating a 10 % ratio of random backgrounds into our original dataset. This training approach can improve the precision of recognition in different environments, thereby enhancing its generalization capability. Therefore, our new developed method can contribute important works to prevent and control of these diseases in real applications.

Authors

Institutions

Publication Details

Journal
Ecological Indicators
Published
2024-10-28
DOI
https://doi.org/10.1016/j.ecolind.2024.112764
Citations
13
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
7.79
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Detection of pine wilt disease infected pine trees using YOLOv5 optimized by attention mechanisms and loss functions

Xiaotong Dong, Bin Song, Qing Miao, Fangchao Liu et al.
13 citations
Ecological Indicators
Smart Agriculture and AI
7.79
article

Detection of pine wilt disease infected pine trees using YOLOv5 optimized by attention mechanisms and loss functions

Xiaotong Dong, Bin Song, Qing Miao, Fangchao Liu, Huiwen Liu, Ran Kang, Li Zhang, Ying‐Bo Lu, Junsheng Yao, Chang Xu
article en
13 citations

Abstract

• Developed YOLO-based network by six attention mechanisms to enhance PWD detection. • SE, CBAM and NAM significantly make model focus on critical features. • Using SIoU and WIoU loss functions to capture color character and improve detection. • Adding random backgrounds enhances generalization capability and precision of model. Pine Wilt Disease (PWD) is one of the most dangerous and destructive disease in the global forest ecosystems. Based on a dataset of pine wilt disease infected trees that we collected and produced, we developed new technology derived from YOLOv5s to promote the detection performance of the PWD infected trees in this work, in which attention mechanisms, random backgrounds and modifications of the loss functions are integrated. In our strategy, six different attention mechanisms, i.e., SE, CA, CBAM, ECA, SimAM and NAM, are added to improve the detection of YOLOv5s algorithm. These mechanisms are added by embedding in the previous layer of the spatial pyramid pooling-fast structure and replacing all C3 layers in the backbone, respectively. All attention mechanisms added in various ways improves the detection results of PWD infected pine trees. Among them, SE, CBAM and NAM attention mechanisms show the most significant improvements. Because all these three attention mechanisms can specifically enhance the ability of the model to focus on the critical feature for densely distributed or complex pine forests with red broad-leaved trees with diseased and withered pine trees. Five other loss functions are adopted to replace CIoU loss function in the original YOLOv5 networks to examine their interactions in the detection of PWD infected trees. Among the five replaced loss functions, SIoU and WIoU losses are sensitive to color changes in the target, allowing them to effectively capture the distinctions of diseased trees, thereby increasing detection precision. Also, we acquired a model trained by incorporating a 10 % ratio of random backgrounds into our original dataset. This training approach can improve the precision of recognition in different environments, thereby enhancing its generalization capability. Therefore, our new developed method can contribute important works to prevent and control of these diseases in real applications.

Ecological IndicatorsVol. 168
Shandong University (CN)
Zero hunger
Openalex Percentile: Top 3%
Smart Agriculture and AI
7.79
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.