Yu Ping, Zong Baoshu, Geng Xiaozhong, Yan Hui, Liu Baijin, Chen Cheng, Liu Hupeng, Xu Xiaoqing
School of Computer Technology and Engineering, Changchun Institute of Technology, Changchun, 130012, China.
School of Computer Science and Technology, Jilin University, Changchun, 130015, China.
Sci Rep. 2025 Aug 14;15(1):29818. doi: 10.1038/s41598-025-13410-8.
Pest detection is vital for maintaining crop health in modern agriculture. However, traditional object detection models are often computationally intensive and complex, rendering them unsuitable for real-time applications in edge computing. To overcome this limitation, we proposed DGS-YOLOv7-Tiny, a lightweight pest detection model based on YOLOv7-Tiny that was specifically optimized for edge computing environments. The model incorporated a Global Attention Module to enhance global context aggregation, thereby improving small object detection and increasing precision. A novel fusion convolution, DGSConv, replaced the standard convolutions and effectively reduced the number of parameters while retaining detailed feature information. Furthermore, Leaky ReLU was replaced with SiLU, and CIOU was substituted with SIOU to improve the gradient flow, stability, and convergence speed in complex environments. The experimental results demonstrate that DGS-YOLOv7-Tiny performs excellently on the tomato leaf pest and disease dataset, with 4.43 million parameters, 10.2 GFLOPs computational complexity, and an inference speed of 168 FPS, achieving 95.53% precision, 92.88% recall, and 96.42% mAP@0.5. The model delivered faster inference and reduced computational requirements while maintaining competitive performance, offering an efficient and effective solution for pest detection in smart agriculture with substantial theoretical and practical value.
病虫害检测对于现代农业中维持作物健康至关重要。然而,传统的目标检测模型通常计算量巨大且复杂,使其不适用于边缘计算中的实时应用。为克服这一限制,我们提出了DGS-YOLOv7-Tiny,这是一种基于YOLOv7-Tiny的轻量级病虫害检测模型,专为边缘计算环境进行了优化。该模型集成了全局注意力模块以增强全局上下文聚合,从而改善小目标检测并提高精度。一种新颖的融合卷积DGSConv取代了标准卷积,在保留详细特征信息的同时有效减少了参数数量。此外,用SiLU替换了Leaky ReLU,并用SIOU替换了CIOU,以改善复杂环境中的梯度流、稳定性和收敛速度。实验结果表明,DGS-YOLOv7-Tiny在番茄叶病虫害数据集上表现出色,有443万个参数,计算复杂度为10.2 GFLOPs,推理速度为168 FPS,精度达到95.53%,召回率达到92.88%,mAP@0.5达到96.42%。该模型在保持竞争力性能的同时实现了更快的推理并降低了计算需求,为智慧农业中的病虫害检测提供了一种高效且有效的解决方案,具有重大的理论和实践价值。