Research on a Target Detection Algorithm for Common Pests Based on an Improved YOLOv7-Tiny Model
Open Access
Abstract
In agriculture and forestry, pest detection is critical for increasing crop yields and reducing economic losses. However, traditional deep learning models face challenges in resource-constrained environments, such as insufficient accuracy, slow inference speed, and large model sizes, which hinder their practical application. To address these issues, this study proposes an improved YOLOv7-tiny model designed to deliver efficient, accurate, and lightweight pest detection solutions. The main improvements are as follows: 1. Lightweight Network Design: The backbone network is optimized by integrating GhostNet and Dynamic Region-Aware Convolution (DRConv) to enhance computational efficiency. 2. Feature Sharing Enhancement: The introduction of a Cross-layer Feature Sharing Network (CotNet Transformer) strengthens feature fusion and extraction capabilities. 3. Activation Function Optimization: The traditional ReLU activation function is replaced with the Gaussian Error Linear Unit (GELU) to improve nonlinear expression and classification performance. Experimental results demonstrate that the improved model surpasses YOLOv7-tiny in accuracy, inference speed, and model size, achieving a MAP@0.5 of 92.8%, reducing inference time to 4.0 milliseconds, and minimizing model size to just 4.8 MB. Additionally, compared to algorithms like Faster R-CNN, SSD, and RetinaNet, the improved model delivers superior detection performance. In conclusion, the improved YOLOv7-tiny provides an efficient and practical solution for intelligent pest detection in agriculture and forestry.Keywords
Funding Information
- Science and Technology Department of Jilin Province (20210202128NC, 21ZGN27, 2019C021, JJKH20230391KJ)
- Science and Technology Bureau of Changchun City (20210202128NC, 21ZGN27, 2019C021, JJKH20230391KJ)
- Jilin Province Development and Reform Commission (20210202128NC, 21ZGN27, 2019C021, JJKH20230391KJ)
- Department of Education of Jilin Province (20210202128NC, 21ZGN27, 2019C021, JJKH20230391KJ)
This publication has 26 references indexed in Scilit:
- Real-time and effective detection of agricultural pest using an improved YOLOv5 networkJournal of Real-Time Image Processing, 2023
- CoT-XNet: contextual transformer with Xception network for diabetic retinopathy gradingPhysics in Medicine & Biology, 2022
- A survey of modern deep learning based object detection modelsDigital Signal Processing, 2022
- A Review of Yolo Algorithm DevelopmentsProcedia Computer Science, 2022
- Improved Mosaic: Algorithms for more Complex ImagesJournal of Physics: Conference Series, 2020
- Fusing multi-scale context-aware information representation for automatic in-field pest detection and recognitionComputers and Electronics in Agriculture, 2020
- Recent advances in convolutional neural networksPattern Recognition, 2018
- Feature Selection via Global Redundancy MinimizationIEEE Transactions on Knowledge and Data Engineering, 2015
- On the Generalization Ability of On-Line Learning AlgorithmsIEEE Transactions on Information Theory, 2004
- Optimization in forestryMathematical Programming, 2003