DCP-YOLOv7x: improved pest detection method for low-quality cotton image

IntroductionPests are important factors affecting the growth of cotton, and it is a challenge to accurately detect cotton pests under complex natural conditions, such as low-light environments. This paper proposes a low-light environments cotton pest detection method, DCP-YOLOv7x, based on YOLOv7x,...

Full description

Saved in:
Bibliographic Details
Main Authors: Yukun Ma, Yajun Wei, Minsheng Ma, Zhilong Ning, Minghui Qiao, Uchechukwu Awada
Format: Article
Language:English
Published: Frontiers Media S.A. 2024-12-01
Series:Frontiers in Plant Science
Subjects:
Online Access:https://www.frontiersin.org/articles/10.3389/fpls.2024.1501043/full
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1850101369520783360
author Yukun Ma
Yajun Wei
Minsheng Ma
Zhilong Ning
Minghui Qiao
Uchechukwu Awada
author_facet Yukun Ma
Yajun Wei
Minsheng Ma
Zhilong Ning
Minghui Qiao
Uchechukwu Awada
author_sort Yukun Ma
collection DOAJ
description IntroductionPests are important factors affecting the growth of cotton, and it is a challenge to accurately detect cotton pests under complex natural conditions, such as low-light environments. This paper proposes a low-light environments cotton pest detection method, DCP-YOLOv7x, based on YOLOv7x, to address the issues of degraded image quality, difficult feature extraction, and low detection precision of cotton pests in low-light environments.MethodsThe DCP-YOLOv7x method first enhances low-quality cotton pest images using FFDNet (Fast and Flexible Denoising Convolutional Neural Network) and the EnlightenGAN low-light image enhancement network. This aims to generate high-quality pest images, reduce redundant noise, and improve target features and texture details in low-light environments. Next, the DAttention (Deformable Attention) mechanism is introduced into the SPPCSPC module of the YOLOv7x network to dynamically adjust the computation area of attention and enhance the feature extraction capability. Meanwhile, the loss function is modified, and NWD (Normalized Wasserstein Distance) is introduced to significantly improve the detection precision and convergence speed of small targets. In addition, the model detection head part is replaced with a DyHead (Dynamic Head) structure, which dynamically fuses the features at different scales by introducing dynamic convolution and multi-head attention mechanism to enhance the model's ability to cope with the problem of target morphology and location variability.ResultsThe model was fine-tuned and tested on the Exdark and Dk-CottonInsect datasets. Experimental results show that the detection Precision (P) of DCP-YOLOv7x for cotton pests is 95.9%, and the Mean Average Precision (mAP@0.5) is 95.4% under a low-light environments, showing improvements of 14.4% and 15.6%, respectively, compared to YOLOv7x. Experiments on the Exdark datasets also achieved better detection results, verifying the effectiveness of the DCP-YOLOv7x model in different low-light environments.DiscussionFast and accurate detection of cotton pests using DCP-YOLOv7x provides strong theoretical support for improving cotton quality and yield. Additionally, this method can be further integrated into agricultural edge computing devices to enhance its practical application value.
format Article
id doaj-art-a9b3fb2ceaab4d20b154a1911adb2be5
institution DOAJ
issn 1664-462X
language English
publishDate 2024-12-01
publisher Frontiers Media S.A.
record_format Article
series Frontiers in Plant Science
spelling doaj-art-a9b3fb2ceaab4d20b154a1911adb2be52025-08-20T02:40:03ZengFrontiers Media S.A.Frontiers in Plant Science1664-462X2024-12-011510.3389/fpls.2024.15010431501043DCP-YOLOv7x: improved pest detection method for low-quality cotton imageYukun Ma0Yajun Wei1Minsheng Ma2Zhilong Ning3Minghui Qiao4Uchechukwu Awada5School of Software, Henan Institute of Science and Technology, Xinxiang, Henan, ChinaSchool of Information Engineering, Henan Institute of Science and Technology, Xinxiang, Henan, ChinaHuanghe Jiaotong University, Jiaozuo, Henan, ChinaSchool of Mechanical and Electrical Engineering, Henan Institute of Science and Technology, Xinxiang, Henan, ChinaSchool of Information Engineering, Henan Institute of Science and Technology, Xinxiang, Henan, ChinaSchool of Software, Henan Institute of Science and Technology, Xinxiang, Henan, ChinaIntroductionPests are important factors affecting the growth of cotton, and it is a challenge to accurately detect cotton pests under complex natural conditions, such as low-light environments. This paper proposes a low-light environments cotton pest detection method, DCP-YOLOv7x, based on YOLOv7x, to address the issues of degraded image quality, difficult feature extraction, and low detection precision of cotton pests in low-light environments.MethodsThe DCP-YOLOv7x method first enhances low-quality cotton pest images using FFDNet (Fast and Flexible Denoising Convolutional Neural Network) and the EnlightenGAN low-light image enhancement network. This aims to generate high-quality pest images, reduce redundant noise, and improve target features and texture details in low-light environments. Next, the DAttention (Deformable Attention) mechanism is introduced into the SPPCSPC module of the YOLOv7x network to dynamically adjust the computation area of attention and enhance the feature extraction capability. Meanwhile, the loss function is modified, and NWD (Normalized Wasserstein Distance) is introduced to significantly improve the detection precision and convergence speed of small targets. In addition, the model detection head part is replaced with a DyHead (Dynamic Head) structure, which dynamically fuses the features at different scales by introducing dynamic convolution and multi-head attention mechanism to enhance the model's ability to cope with the problem of target morphology and location variability.ResultsThe model was fine-tuned and tested on the Exdark and Dk-CottonInsect datasets. Experimental results show that the detection Precision (P) of DCP-YOLOv7x for cotton pests is 95.9%, and the Mean Average Precision (mAP@0.5) is 95.4% under a low-light environments, showing improvements of 14.4% and 15.6%, respectively, compared to YOLOv7x. Experiments on the Exdark datasets also achieved better detection results, verifying the effectiveness of the DCP-YOLOv7x model in different low-light environments.DiscussionFast and accurate detection of cotton pests using DCP-YOLOv7x provides strong theoretical support for improving cotton quality and yield. Additionally, this method can be further integrated into agricultural edge computing devices to enhance its practical application value.https://www.frontiersin.org/articles/10.3389/fpls.2024.1501043/fulllow-light environmentscotton pestYOLOv7xobject detectionimage enhancement
spellingShingle Yukun Ma
Yajun Wei
Minsheng Ma
Zhilong Ning
Minghui Qiao
Uchechukwu Awada
DCP-YOLOv7x: improved pest detection method for low-quality cotton image
Frontiers in Plant Science
low-light environments
cotton pest
YOLOv7x
object detection
image enhancement
title DCP-YOLOv7x: improved pest detection method for low-quality cotton image
title_full DCP-YOLOv7x: improved pest detection method for low-quality cotton image
title_fullStr DCP-YOLOv7x: improved pest detection method for low-quality cotton image
title_full_unstemmed DCP-YOLOv7x: improved pest detection method for low-quality cotton image
title_short DCP-YOLOv7x: improved pest detection method for low-quality cotton image
title_sort dcp yolov7x improved pest detection method for low quality cotton image
topic low-light environments
cotton pest
YOLOv7x
object detection
image enhancement
url https://www.frontiersin.org/articles/10.3389/fpls.2024.1501043/full
work_keys_str_mv AT yukunma dcpyolov7ximprovedpestdetectionmethodforlowqualitycottonimage
AT yajunwei dcpyolov7ximprovedpestdetectionmethodforlowqualitycottonimage
AT minshengma dcpyolov7ximprovedpestdetectionmethodforlowqualitycottonimage
AT zhilongning dcpyolov7ximprovedpestdetectionmethodforlowqualitycottonimage
AT minghuiqiao dcpyolov7ximprovedpestdetectionmethodforlowqualitycottonimage
AT uchechukwuawada dcpyolov7ximprovedpestdetectionmethodforlowqualitycottonimage