Image Recognition and Classification of Farmland Pests Based on Improved Yolox-Tiny Algorithm
Abstract
:1. Introduction
- (a)
- Improved detection method: An improved Yolox-tiny-based target detection method is proposed, which enhances the detection accuracy for farmland pests by limiting downsampling and incorporating the Convolution Block Attention Module (CBAM).
- (b)
- Experimental validation: Extensive experiments are conducted using images of pests common to seven types of farmland, demonstrating that the improved model increases the average precision by 7.18% compared to the original Yolox-tiny model.
- (c)
- Optimization techniques: The paper introduces novel optimization techniques, including adaptive image equalization, image denoising, and mosaic image augmentation, to improve the clarity and detail of pest images, further enhancing the model’s accuracy.
- (d)
- Comprehensive dataset: A specialized pest image dataset is curated and preprocessed, providing a robust foundation for training and validating the improved detection model.
- (e)
- Practical applications: The research highlights the practical implications of the improved detection model for real-time pest monitoring and management in agricultural fields, contributing to the mitigation of pest-related losses in agriculture.
- (a)
- Section 2 outlines the model structure of the Yolox-tiny object detection algorithm;
- (b)
- Section 3 details enhancements to the Yolox-tiny model to address challenges in detecting small objects;
- (c)
- Section 4 describes the preprocessing of image data within the dataset to enhance detection accuracy and details the process of feeding this preprocessed data into the model for training. Additionally, it covers comparative experiments conducted using the same dataset to verify the accuracy of the enhanced model;
- (d)
- Section 5 presents the conclusions derived from the experimental comparisons.
2. Related Work
2.1. Yolox-Tiny Object Detection Algorithm
2.2. Yolox-Tiny Algorithm Model Structure
- (a)
- Backbone feature extraction network: CSPDarknet;
- (b)
- Enhanced feature extraction network: FPN;
- (c)
- Classifier and regressor: Yolo Head.
3. Methods
3.1. Analysis of Detection Accuracy of the Original Yolox-Tiny Algorithm Model
- (a)
- Significant size variation exists among different types of pests in agricultural images. For example, the Rice Leafroller is notably small, whereas the Turnip Moth is substantially large;
- (b)
- Some images feature overly complex backgrounds with numerous dried leaves and weeds, which often match the coloration of the target pests;
- (c)
- The Yolox-tiny model structure incorporates three downsampling operations, potentially leading to information loss about small-sized target pests and decreasing recognition accuracy;
- (d)
- The absence of an attention mechanism in the Yolox-tiny model makes it susceptible to interference from non-target objects in images, resulting in incorrect identifications.
3.2. Optimization of the Yolox-Tiny Model
4. Experiment and Analysis
4.1. Pest Image Preprocessing
4.1.1. Adaptive Image Equalization
4.1.2. Image Denoising
4.1.3. Mosaic Image Augmentation
- (a)
- Random rotations, translations, scaling, cropping, padding, and flipping within specified limits to display varied visual perspectives of the same target;
- (b)
- Adding random noise disturbances like salt-and-pepper and Gaussian white noise to the image;
- (c)
- Color transformations involving principal component analysis on the RGB color space to derive three principal component vectors, p1, p2, and p3, along with their eigenvalues, followed by incremental adjustments to each channel;
- (d)
- Modifying image attributes including brightness, clarity, contrast, and sharpness.
4.1.4. Image Augmentation
4.2. Dataset
4.3. Experimental Procedure
- (a)
- The original Yolox-tiny algorithm as the first model variant;
- (b)
- The enhanced Yolox-tiny as the second model variant.
4.4. Experimental Results
5. Conclusions
- (a)
- Statistical significance analysis: Conduct a more in-depth statistical significance analysis of the experimental results to validate the effectiveness and reliability of the model improvements.
- (b)
- Addition of another case study: Plan to expand the dataset to include more diverse and representative images from different regions and cropping systems to enhance the generalization capability of the model.
- (c)
- Computational burden analysis: Focus on the computational efficiency and resource consumption of the model, particularly the computational burden in practical applications.
- (d)
- Consider the implementation of other fusion capabilities: Explore and implement additional fusion capabilities to further improve the detection performance and application effects of the model.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Forecast on the Trend of Early Rice Pests and Diseases in China in 2022. Available online: http://www.agri.cn/sc/zxjc/zwbch/202311/t20231129_8129136.htm (accessed on 6 July 2022).
- Forecast on the Trend of Major Pests and Diseases in Rice in China in 2022. Available online: http://www.agri.cn/sc/zxjc/zwbch/202311/t20231129_8129130.htm (accessed on 6 July 2022).
- Forecast on the Trend of Major Pests and Diseases in Corn in China in 2022. Available online: http://www.agri.cn/sc/zxjc/zwbch/202311/t20231129_8129131.htm (accessed on 6 July 2022).
- Li, R.; He, Y.; Li, Y.; Qin, W.; Abbas, A.; Ji, R.; Li, S.; Wu, Y.; Sun, X.; Yang, J. Identification of cotton pest and disease based on CFNet- VoV-GCSP -LSKNet-YOLOv8s: A new era of precision agriculture. Front. Plant Sci. 2024, 15, 1348402. [Google Scholar] [CrossRef] [PubMed]
- Liu, L.; Qiao, S.; Chang, J.; Ding, W.; Xu, C.; Gu, J.; Sun, T.; Qiao, H. A multi-scale feature fusion neural network for multi-class disease classification on the maize leaf images. Heliyon 2024, 10, e28264. [Google Scholar] [CrossRef] [PubMed]
- Dong, S.; Du, J.; Jiao, L.; Wang, F.; Liu, K.; Teng, Y.; Wang, R. Automatic Crop Pest Detection Oriented Multiscale Feature Fusion Approach. Insects 2022, 13, 554. [Google Scholar] [CrossRef] [PubMed]
- Song, C.; Chen, W.; Chen, H.; Chen, Y. Development of a Pest Automatic Diagnosis System for Intelligent Agriculture Using Image Recognition. In Proceedings of the 2023 International Technical Conference on Circuits/Systems, Computers, and Communications (ITC-CSCC), Jeju, Republic of Korea, 25–28 June 2023. [Google Scholar]
- Fuentes, A.; Yoon, S.; Kim, S.C.; Park, D.S. A robust deep-learning-based detector for real-time tomato plant diseases and pests recognition. Sensors 2017, 17, 2022. [Google Scholar] [CrossRef] [PubMed]
- Deng, F.; Mao, W.; Zeng, Z.; Zeng, H.; Wei, B. Multiple Diseases and Pests Detection Based on Federated Learning and Improved Faster R-CNN. IEEE Trans. Instrum. Meas. 2022, 71, 3523811. [Google Scholar] [CrossRef]
- Arun, R.A.; Umamaheswari, S. Effective and efficient multi-crop pest detection based on deep learning object detection models. J. Intell. Fuzszy Syst. 2022, 43, 5185–5203. [Google Scholar] [CrossRef]
- Zhang, M.; Su, Y.; Hu, X. Small target detection based on faster R-CNN. In Proceedings of the Third International Conference on Computer Vision and Data Mining (ICCVDM 2022), Hulun Buir, China, 19–21 August 2022. [Google Scholar]
- Chithambarathanu, M.; Jeyakumar, M.K. Survey on crop pest detection using deep learning and machine learning approaches. Multimed. Tools Appl. 2023, 82, 42277–42310. [Google Scholar] [CrossRef] [PubMed]
- Jiao, L.; Li, G.; Chen, P.; Wang, R.; Du, J.; Liu, H.; Dong, S. Global Context-Aware-Based Deformable Residual Network Module for Precise Pest Recognition and Detection. Front. Plant Sci. 2022, 13, 895944. [Google Scholar] [CrossRef] [PubMed]
- Di, J.; Li, Q. A method of detecting apple leaf diseases based on improved convolutional neural network. PLoS ONE 2022, 17, e0262629. [Google Scholar] [CrossRef] [PubMed]
- Wang, Z.; Qiao, L.; Wang, M. Agricultural pest detection algorithm based on improved faster RCNN. In Proceedings of the International Conference on Computer Vision and Pattern Analysis (ICCPA 2021), Guangzhou, China, 19–21 November 2021. [Google Scholar]
- Cong, X.; Li, S.; Chen, F.; Liu, C.; Meng, Y. A Review of YOLO Object Detection Algorithms based on Deep Learning. Front. Comput. Intell. Syst. 2022, 4, 17–20. [Google Scholar] [CrossRef]
- Lavanya, G.; Pande, S. Enhancing Real-time Object Detection with YOLO Algorithm. EAI Endorsed Trans. Internet Things 2023, 10. [Google Scholar] [CrossRef]
- Su, P.; Li, H.; Wang, X.; Wang, Q.; Hao, B.; Feng, M.; Sun, X.; Yang, Z.; Jing, B.; Wang, C.; et al. Improvement of the YOLOv5 Model in the Optimization of the Brown Spot Disease Recognition Algorithm of Kidney Bean. Plants 2023, 12, 3765. [Google Scholar] [CrossRef] [PubMed]
- Dhruthi, L.; Megharaj, P.K.; Pranav, P.; Kiran, N.; Asha Rani, K.P.; Gowrishankar, S. State-of-the-Art Object Detection: An Overview of YOLO Variants and their Performance. In Proceedings of the 2023 4th International Conference on Smart Electronics and Communication (ICOSEC), Trichy, India, 10–12 September 2023; pp. 1018–1024. [Google Scholar]
- Kulkarni, S.; Mittal, N.; Gupta, R.R.; Ponnlagu, R.N. Investigation of YOLO models in the detection and classification of multiple negative road anomalies. In Proceedings of the 2023 14th International Conference on Computing Communication and Networking Technologies (ICCCNT), Delhi, India, 6–8 July 2023. [Google Scholar]
- Nazir, A.; Wani, M.A. You only look once—Object detection models: A review. In Proceedings of the 2023 10th International Conference on Computing for Sustainable Global Development (INDIACom), New Delhi, India, 15–17 March 2023. [Google Scholar]
- Sozzi, M.; Cantalamessa, S.; Cogato, A.; Kayad, A.; Marinello, F. Automatic Bunch Detection in White Grape Varieties Using YOLOv3, YOLOv4, and YOLOv5 Deep Learning Algorithms. Agronomy 2022, 12, 319. [Google Scholar] [CrossRef]
- Peng, M.; Zhang, W.; Li, F.; Xue, Q.; Yuan, J.; An, P. Weed detection with Improved Yolov 7. EAI Endorsed Trans. Internet Things 2023, 9, e1. [Google Scholar] [CrossRef]
- Ren, R.; Sun, H.; Zhang, S.; Wang, N.; Lu, X.; Jing, J.; Xin, M.; Cui, T. Intelligent Detection of Lightweight “Yuluxiang” Pear in Non-Structural Environment Based on YOLO-GEW. Agronomy 2023, 13, 2418. [Google Scholar] [CrossRef]
- Zhou, X.; Yi, J.; Xie, G.; Jia, Y.; Xu, G.; Sun, M. Human Detection Algorithm Based on Improved YOLO v4. Inf. Technol. Control 2022, 51, 485–498. [Google Scholar] [CrossRef]
- Huang, S.; Li, B. LE-YOLO: A lightweight and efficient cucumber pruning target detection and recognition method based on improved YOLOv5s. In Proceedings of the Fourth International Conference on Signal Processing and Computer Science (SPCS), Guilin, China, 25–27 August 2023. [Google Scholar]
- Pereira, L.M.; Salazar, A.; Vergara, L. A Comparative Analysis of Early and Late Fusion for the Multimodal Two-Class Problem. IEEE Access 2023, 11, 84283–84300. [Google Scholar] [CrossRef]
- Salazar, A.; Safont, G.; Vergara, L.; Vidal, E. Graph Regularization Methods in Soft Detector Fusion. IEEE Access 2023, 11, 144747–144759. [Google Scholar] [CrossRef]
Author | Algorithm | Features | Results |
---|---|---|---|
Fuentes et al. [8] | R-FCN + ResNet-50 | Compared combinations of seven feature extractors with a meta-framework | Detected nine typical types of tomato pests, mAP = 0.8598 |
Deng et al. [9] | Improved Faster R-CNN + ResNet-101 | Employed federated learning, enhanced detection speed for small targets | Multi-pest detection, mAP = 90.27% |
Arun and Umamaheswari [10] | Faster R-CNN + ResNet101 | Explored various deep-learning models for classifying crop pests | mAP = 74.77% |
Zhang et al. [11] | Improved Faster R-CNN + ResNet50 | Substituted VGG16 with ResNet50, incorporated soft non-maximum suppression | Improved detection accuracy for small objects, mAP = 83.26% |
Jiao et al. [13] | Deformable Residual Network Module | Global context-aware, enhanced feature extraction | Improved pest recognition accuracy |
Di and Li [14] | Improved Convolutional Neural Network | Detected apple leaf diseases | Significantly increased detection accuracy |
Pest Name | Pest Number | Quantity |
---|---|---|
Rice Stem Borer | 7 | 90 |
White-backed Planthopper | 9 | 120 |
Brown Planthopper | 10 | 150 |
Yellow-legged Predatory Bug | 148 | 59 |
Eight-spotted Forester Moth | 156 | 247 |
Cricket | 256 | 87 |
Oleander Hawk-moth | 280 | 40 |
Pest Name | Original Set | Augmented Set | Training Set | Testing Set | Validation Set |
---|---|---|---|---|---|
Rice Stem Borer | 53 | 159 | 111 | 32 | 16 |
White-backed Planthopper | 57 | 171 | 120 | 34 | 17 |
Brown Planthopper | 51 | 153 | 107 | 31 | 15 |
Yellow-legged Predatory Bug | 55 | 165 | 116 | 33 | 17 |
Eight-spotted Forester Moth | 58 | 174 | 122 | 35 | 17 |
Cricket | 50 | 150 | 105 | 30 | 15 |
Oleander Hawk-moth | 40 | 120 | 84 | 24 | 12 |
Pest ID | Yolox-Tiny | YoloV4-Tiny | Improved Yolox-Tiny |
---|---|---|---|
AP | AP | AP | |
7 | 86% | 71% | 80% |
9 | 66% | 59% | 69% |
10 | 46% | 34% | 58% |
148 | 74% | 66% | 74% |
156 | 59% | 48% | 74% |
256 | 48% | 37% | 52% |
280 | 46% | 61% | 88% |
mAP | 63.55% | 54% | 70.73% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wang, Y.; Dong, H.; Bai, S.; Yu, Y.; Duan, Q. Image Recognition and Classification of Farmland Pests Based on Improved Yolox-Tiny Algorithm. Appl. Sci. 2024, 14, 5568. https://doi.org/10.3390/app14135568
Wang Y, Dong H, Bai S, Yu Y, Duan Q. Image Recognition and Classification of Farmland Pests Based on Improved Yolox-Tiny Algorithm. Applied Sciences. 2024; 14(13):5568. https://doi.org/10.3390/app14135568
Chicago/Turabian StyleWang, Yuxue, Hao Dong, Songyu Bai, Yang Yu, and Qingwei Duan. 2024. "Image Recognition and Classification of Farmland Pests Based on Improved Yolox-Tiny Algorithm" Applied Sciences 14, no. 13: 5568. https://doi.org/10.3390/app14135568
APA StyleWang, Y., Dong, H., Bai, S., Yu, Y., & Duan, Q. (2024). Image Recognition and Classification of Farmland Pests Based on Improved Yolox-Tiny Algorithm. Applied Sciences, 14(13), 5568. https://doi.org/10.3390/app14135568