CGT-YOLOv5n: A Precision Model for Detecting Mouse Holes Amid Complex Grassland Terrains
Abstract
:1. Introduction
- 1.
- A Context Augmentation Module (CAM) was introduced to enhance feature extraction and fusion by integrating contextual information and adaptive fusion methods (AFMs). This approach utilizes dilated convolution with different dilation rates to capture contextual information from various sensory fields. Subsequently, the adaptive fusion component filters conflicting information and reduces semantic differences, thereby enhancing the model’s ability to understand mouse holes in images.
- 2.
- The Task-Specific Context Decoupling (TSCODE) header was utilized to separate the classification and localization tasks in the model-detection process. Feature maps with weak spatial but vital semantic information are employed for classification, while high-resolution feature maps containing detailed edge information are utilized for localization. This approach facilitates a better regression of object boundaries, resulting in more accurate localization and classification by the model.
- 3.
- The Omni-dimensional Dynamic Convolution (ODConv) technology was adopted. Unlike traditional dynamic convolution, Omnidirectional Dynamic Convolution enables the model to adapt to different input images through three modifications. Following these modifications, the model can allocate four-dimensional weights to the convolutional layers and generate convolutional layers suitable for the input images.
2. Models and Methods
2.1. CGT-YOLOv5n Model
2.2. Improving YOLOv5n with a Context Augmentation Module and Adaptive Fusion Mechanism
2.3. TSCODE-Based Decoupling Header Improvement for the Improvement of YOLOv5n
2.4. Improving YOLOv5n Based on ODConv
3. Experimental Results and Discussion
3.1. Data Acquisition and Production
3.2. Experimental Environment
3.3. Evaluation Criteria
3.4. Comparison Results for the Original Model and the Improved Model
3.5. Comparison and Discussion of Experimental Results from Various Models
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Yun, J.F.; Liu, D.F. Characteristics, status and construction of grassland resources in Inner Mongolia desert area. Chinese Forestry Society. In Proceedings of the 2005 CCSA Annual Academic Conference 26 Session Proceedings (1), Xinjiang, China, 20–23 August 2005; Editorial Department of Forestry Science and Technology Management: Urumqi, China, 2005; pp. 29–31. [Google Scholar]
- Chen, W.; Liu, W.; Zhao, Y.; Lu, J.; Lv, S.; Muyassar, S. Monitoring and Control Methods of Spatial Distribution of Pests and Rodents in Yili Grassland. J. Grassl. Forage Sci. 2023, 68–73. [Google Scholar] [CrossRef]
- He, D.; Huang, X.; Tian, Q.; Zhang, Z. Changes in vegetation growth dynamics and relations with climate in inner Mongolia under more strict multiple pre-processing. (2000–2018). Sustainability 2020, 12, 2534. [Google Scholar] [CrossRef]
- Liu, W.; Zhong, W.Q.; Wang, D.H. Seasonal pattern and dynamic mechanism of population survival of long-clawed gerbils in agro-pastoral ecotone in inner monglia. Acta Therioloica Sin. 2020, 40, 571–584. [Google Scholar]
- Sun, H.L. Encyclopedia of China’s Resource Sciences; China Encyclopedia Publishing House: Beijing, China, 2000. [Google Scholar] [CrossRef]
- Wen, A.M.; Zheng, J.H.; Chen, M.; Mu, C.; Ma, T. Monitoring Mouse-Hole Density by Rhombomys opimus in Desert Forests with UAV Remote Sensing Technology. Sci. Silvae Sin. 2018, 54, 186–192. [Google Scholar]
- Wen, A.M.; Zheng, J.H.; Chen, M.; Mu, C.; Ma, T. Group coverage of burrowentrances and distribution characteristics of desert forest-dwelling Rhombomys opimus based on unmanned aerial vehicle (UAV) low-altitude remote sensing: A case study at the southern margin of the Gurbantunggut Desert in Xinjiang. Acta Ecol. Sin. 2018, 38, 953–963. [Google Scholar]
- Zhou, X.L.; An, R.; Chen, Y.H.; Al, Z.T.; Huang, L.J. Identification of rat holes in the typical area of “Three-River Headwaters” region By UAV remote sensing. J. Subtrop. Resour. Environ. 2018, 13, 85–92. [Google Scholar]
- Sun, D.; Ni, Y.; Chen, J.; Abuduwali Zheng, J. Application of UAV low-altitude image on rathole monitoring of Eolagurus luteus. China Plant Prot. 2019, 39, 35–43. [Google Scholar]
- Liu, H.C. Comparative Analysis of Image Classification Algorithms Based on Traditional Machine Learning and Deep Learning. Comput. Inf. Technol. 2019, 27, 12–15. [Google Scholar]
- Cui, B.; Zheng, J.; Liu, Z.; Ma, T.; Shen, J.; Zhao, X. Weed classification of remote sensing by UAV in ecological irrigation areas based on deep learning. J. Drain. Irrig. Mach. Eng. (JDIME) 2018, 36, 1137–1141. [Google Scholar]
- Sun, Y.; Zhou, Y.; Yuan, M.; Liu, W.; Luo, Y.; Zong, S. UAV real-time monitoring for forest pest based on deep learning. Trans. Chin. Soc. Agric. Eng. (Trans. CSAE) 2018, 34, 74–81. [Google Scholar]
- Zhou, S.; Han, L.L.; Yang, S.; Wang, Y.; Genxia, Y.; Niu, P. A Study of Rodent Monitoring in Ruoergai Grassland Based on Convolutional Neural Network. J. Grassl. Forage Sci. 2021, 2, 15–25. [Google Scholar]
- Cui, B.; Zheng, J.; Liu, Z.; Ma, T.; Shen, J.; Zhao, X. YOLOv3 rat hole recognition technology for UAV remote sensing images. For. Sci. 2020, 56, 199–208. [Google Scholar]
- Yan, Y.; Hao, S.; Gao, Y.; Xin, D.; Niu, Z. Design of a Kiwifruit Orchard Pest and Disease Detection System Based on Aerial and Ground Multisource Information. Trans. Chin. Soc. Agric. Mach. 2023, 54, 294–300. [Google Scholar]
- Leng, R.X. Application of Transmission Line Foreign Object Recognition Algorithm Based on YOLOv8; Northeast Agricultural University: Harbin, China, 2023. [Google Scholar]
- Wang, Z.; Yuan, G.; Zhou, H.; Ma, Y.; Ma, Y. Foreign-Object Detection in High-Voltage Transmission Line Based on Improved YOLOv8m. Appl. Sci. 2023, 13, 12775. [Google Scholar] [CrossRef]
- Du, Y.F.; Huang, L.; Zhao, Z.; Li, G. Landslide Identification and Detection in High-Resolution Remote Sensing Images Based on DETR. Bull. Surv. Mapp. 2023, 16–20. [Google Scholar] [CrossRef]
- Glenn Jocher. Available online: https://github.com/ultralytics/yolov5 (accessed on 6 March 2023).
- Xiao, J.; Guo, H.; Zhou, J.; Zhao, T.; Yu, Q.; Chen, Y.; Wang, Z. Tiny object detection with context enhancement and feature purification. Expert Syst. Appl. 2023, 211, 118665. [Google Scholar] [CrossRef]
- Lin, L.K. Full-Field High-Resolution Cell Morphology Analysis System and Its Application Research. Master’s Thesis, Nanjing University, Nanjing, China, 2021. [Google Scholar]
- Li, G.B. Research on Pedestrian Detection Technology Based on Deep Learning. Master’s Thesis, Guizhou University, Guiyang, China, 2021. [Google Scholar]
- Wang, H.M. Research on Railroad Traffic Safety Image Recognition Technology Based on Deep Learning. Ph.D. Thesis, Lanzhou Jiaotong University, Lanzhou, China, 2022. [Google Scholar]
- Wu, N.; Mu, C.G.; He, Y.; Liu, T.H. Multi-scale infrared and visible image fusion based on nested connections. J. Beijing Univ. Aeronaut. Astronaut. 2023, 1–11. [Google Scholar] [CrossRef]
- Zhuang, J.; Qin, Z.; Yu, H.; Chen, X. Task-Specific Context Decoupling for Object Detection. arXiv 2023, arXiv:2303.01047. [Google Scholar]
- Chen, Y.; Dai, X.; Liu, M.; Chen, D.; Yuan, L.; Liu, Z. Dynamic convolution: Attention over convolution kernels. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 11030–11039. [Google Scholar]
- Li, C.; Zhou, A.; Yao, A. Omni-dimensional dynamic convolution. arXiv 2022, arXiv:2209.07947. [Google Scholar]
- Zhang, Y.S.; Cao, L.; Wang, S.F. Diagnosis analysis and management of bird damage fault on transmission line of 330 kV Yushu networking project. Qinghai Electr. Power 2017, 36, 58–62. [Google Scholar]
- Git Code, T.L. 2015. Available online: https://github.com/tzutalin/labelImg (accessed on 15 October 2022).
- Brown, C.D.; Davis, H.T. Receiver operating characteristics curves and related decision measures: A tutorial. Chemom. Intell. Lab. Syst. 2006, 80, 24–38. [Google Scholar] [CrossRef]
- Shaikh, S.A. Measures derived from a 2 × 2 table for an accuracy of a diagnostic test. J. Biom. Biostat. 2011, 2, 1–4. [Google Scholar] [CrossRef]
- Shi, H.C.; Jin, Z.Y.; Tang, W.J.; Wang, J.; Jiang, K.; Xia, W. Research on high-precision wafer defect detection method based on deep learning. J. Electron. Meas. Instrum. 2022, 36, 79–90. [Google Scholar]
- Li, H. Research on Object Detection Algorithm Based on Lightweight Network; University of Chinese Academy of Sciences (Institute of Optoelectronic Technology, Chinese Academy of Sciences): Beijing, China, 2022. [Google Scholar]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster r-cnn: Towards real-time object detection with region proposal networks. Adv. Neural Inf. Process. Syst. 2015, 28, 91–99. [Google Scholar] [CrossRef] [PubMed]
- Redmon, J.; Farhadi, A. Yolov3: An incremental improvement. arXiv 2018, arXiv:1804.02767. [Google Scholar]
- Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.-Y.; Berg, A.C. Ssd: Single shot multibox detector. In Proceedings of the Computer Vision–ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, 11–14 October 2016; Proceedings, Part I 14. Springer International Publishing: Berlin/Heidelberg, Germany, 2016. [Google Scholar]
- Reis, D.; Kupec, J.; Hong, J.; Daoudi, A. Real-Time Flying Object Detection with YOLOv8. arXiv 2023, arXiv:2305.09972. [Google Scholar]
- Lv, W.; Zhao, Y.; Xu, S.; Wei, J.; Wang, G.; Cui, C.; Du, Y.; Dang, Q.; Liu, Y. Detrs beat yolos on real-time object detection. arXiv 2023, arXiv:2304.08069. [Google Scholar]
- Héberger, K. Sum of ranking differences compares methods or models fairly. TrAC Trends Anal. Chem. 2010, 29, 101–109. [Google Scholar] [CrossRef]
- Kollár-Hunek, K.; Héberger, K. Method and model comparison by sum of ranking differences in cases of repeated observations (ties). Chemom. Intell. Lab. Syst. 2013, 127, 139–146. [Google Scholar] [CrossRef]
- Sziklai, B.R.; Héberger, K. Apportionment and districting by Sum of Ranking Differences. PLoS ONE 2020, 15, e0229209. [Google Scholar] [CrossRef]
Software and Hardware Platform | Model Parameters |
---|---|
Operating System | Windows 10 |
CPU | Intel core i5 |
GPU | NVIDIA GeForce GTX 3080 |
Operating Memory | 10 GB |
CUDA | 11.7 |
Frame | PyTorch 1.13.1 |
Programming Environment | Python 3.7 |
Models | mAP (%) IoU = 0.5 | mAP (%) IoU = 0.5:0.95 | Model Size (M) | Latency (ms) | FPS (f/s) |
---|---|---|---|---|---|
YOLOv5n | 89.5 | 42.0 | 3.7 | 2.4 | 217.4 |
CAM-YOLOv5n | 91.8 | 43.2 | 4.6 | 2.8 | 217.4 |
CAM-TSCODE-YOLOv5n | 92.2 | 43.9 | 14.9 | 3.8 | 178.6 |
CAM-TSCODE-ODConv-YOLOv5n | 92.8 | 46.3 | 15.4 | 4.3 | 161.3 |
Models | mAP (%) IoU = 0.5 | mAP (%) IoU = 0.5:0.95 | Model Size (M) | Latency (ms) | FPS (f/s) |
---|---|---|---|---|---|
Faster R-CNN | 84.1 | 36.0 | 315.0 | 64.9 | 15.4 |
SSD | 83.3 | 33.7 | 100.2 | 8 | 125 |
YOLOv3 | 89.2 | 45.2 | 117.8 | 11.3 | 80.6 |
YOLOv5n | 89.5 | 42 | 3.7 | 2.4 | 217.4 |
YOLOv8n | 90.1 | 42.5 | 6 | 2.4 | 277.7 |
RT-DETR | 83.0 | 33.8 | 63.1 | 8.0 | 119.0 |
CGT-YOLOv5n | 92.8 | 46.3 | 15.4 | 4.3 | 161.3 |
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. |
© 2023 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
Li, C.; Luo, X.; Pan, X. CGT-YOLOv5n: A Precision Model for Detecting Mouse Holes Amid Complex Grassland Terrains. Appl. Sci. 2024, 14, 291. https://doi.org/10.3390/app14010291
Li C, Luo X, Pan X. CGT-YOLOv5n: A Precision Model for Detecting Mouse Holes Amid Complex Grassland Terrains. Applied Sciences. 2024; 14(1):291. https://doi.org/10.3390/app14010291
Chicago/Turabian StyleLi, Chao, Xiaoling Luo, and Xin Pan. 2024. "CGT-YOLOv5n: A Precision Model for Detecting Mouse Holes Amid Complex Grassland Terrains" Applied Sciences 14, no. 1: 291. https://doi.org/10.3390/app14010291
APA StyleLi, C., Luo, X., & Pan, X. (2024). CGT-YOLOv5n: A Precision Model for Detecting Mouse Holes Amid Complex Grassland Terrains. Applied Sciences, 14(1), 291. https://doi.org/10.3390/app14010291