{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,31]],"date-time":"2026-03-31T08:15:10Z","timestamp":1774944910022,"version":"3.50.1"},"reference-count":29,"publisher":"MDPI AG","issue":"5","license":[{"start":{"date-parts":[[2022,2,24]],"date-time":"2022-02-24T00:00:00Z","timestamp":1645660800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Department of agriculture and rural development of Jiangsu Province","award":["NJ2021-38"],"award-info":[{"award-number":["NJ2021-38"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>It is necessary to detect multi-type farmland obstacles in real time and accurately for unmanned agricultural vehicles. An improved YOLOv5s algorithm based on the K-Means clustering algorithm and CIoU Loss function was proposed to improve detection precision and speed up real-time detection. The K-Means clustering algorithm was used in order to generate anchor box scales to accelerate the convergence speed of model training. The CIoU Loss function, combining the three geometric measures of overlap area, center distance and aspect ratio, was adopted to reduce the occurrence of missed and false detection and improve detection precision. The experimental results showed that the inference time of a single image was reduced by 75% with the improved YOLOv5s algorithm; compared with that of the Faster R-CNN algorithm, real-time performance was effectively improved. Furthermore, the mAP value of the improved algorithm was increased by 5.80% compared with that of the original YOLOv5s, which indicates that using the CIoU Loss function had an obvious effect on reducing the missed detection and false detection of the original YOLOv5s. Moreover, the detection of small target obstacles of the improved algorithm was better than that of the Faster R-CNN.<\/jats:p>","DOI":"10.3390\/s22051790","type":"journal-article","created":{"date-parts":[[2022,2,24]],"date-time":"2022-02-24T21:11:07Z","timestamp":1645737067000},"page":"1790","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":44,"title":["Detection of Farmland Obstacles Based on an Improved YOLOv5s Algorithm by Using CIoU and Anchor Box Scale Clustering"],"prefix":"10.3390","volume":"22","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-7643-6183","authenticated-orcid":false,"given":"Jinlin","family":"Xue","sequence":"first","affiliation":[{"name":"College of Engineering, Nanjing Agricultural University, Nanjing 210031, China"}]},{"given":"Feng","family":"Cheng","sequence":"additional","affiliation":[{"name":"College of Engineering, Nanjing Agricultural University, Nanjing 210031, China"}]},{"given":"Yuqing","family":"Li","sequence":"additional","affiliation":[{"name":"College of Engineering, Nanjing Agricultural University, Nanjing 210031, China"}]},{"given":"Yue","family":"Song","sequence":"additional","affiliation":[{"name":"College of Engineering, Nanjing Agricultural University, Nanjing 210031, China"}]},{"given":"Tingting","family":"Mao","sequence":"additional","affiliation":[{"name":"College of Engineering, Nanjing Agricultural University, Nanjing 210031, China"}]}],"member":"1968","published-online":{"date-parts":[[2022,2,24]]},"reference":[{"key":"ref_1","first-page":"873","article-title":"Real-Time Multi-Obstacle Detection and Tracking Using a Vision Sensor for Autonomous Vehicle","volume":"204","author":"Francis","year":"2021","journal-title":"Commun. Intell. Syst."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"8142","DOI":"10.1109\/JSEN.2021.3050054","article-title":"Entropy-Based Ultra-Wide Band Radar Signals Segmentation for Multi Obstacle Detection","volume":"21","author":"Mimouna","year":"2021","journal-title":"IEEE Sens. J."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"106409","DOI":"10.1016\/j.compag.2021.106409","article-title":"Obstacle Detection and Recognition in Farmland Based on Fusion Point Cloud Data","volume":"189","author":"Ji","year":"2021","journal-title":"Comput. Electron. Agric."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"106404","DOI":"10.1016\/j.compag.2021.106404","article-title":"Object Detection in Agricultural Contexts: A Multiple Resolution Benchmark and Comparison to Human","volume":"189","author":"Wosner","year":"2021","journal-title":"Comput. Electron. Agric."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Zhang, Q., Liu, Y., Gong, C., Chen, Y., and Yu, H. (2020). Applications of Deep Learning for Dense Scenes Analysis in Agriculture: A Review. Sensors, 20.","DOI":"10.3390\/s20051520"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"106104","DOI":"10.1016\/j.compag.2021.106104","article-title":"Dynamic Obstacle Detection Based on Panoramic Vision in the Moving State of Agricultural Machineries","volume":"184","author":"Xu","year":"2021","journal-title":"Comput. Electron. Agric."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"105932","DOI":"10.1016\/j.compag.2020.105932","article-title":"Detection of Typical Obstacles in Orchards Based on Deep Convolutional Neural Network","volume":"181","author":"Li","year":"2021","journal-title":"Comput. Electron. Agric."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"6495","DOI":"10.1007\/s11042-016-3275-8","article-title":"Robot Manipulator Self-Identification for Surrounding Obstacle Detection","volume":"76","author":"Wang","year":"2017","journal-title":"Multimed. Tools Appl."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"105523","DOI":"10.1016\/j.compag.2020.105523","article-title":"UAV Environmental Perception and Autonomous Obstacle Avoidance: A Deep Learning and Depth Camera Combined Solution","volume":"175","author":"Wang","year":"2020","journal-title":"Comput. Electron. Agric."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Liu, B., Lv, Y., Gu, Y., and Lv, W. (2020). Implementation of a Lightweight Semantic Segmentation Algorithm in Road Obstacle Detection. Sensors, 20.","DOI":"10.3390\/s20247089"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"17","DOI":"10.1016\/j.ijleo.2019.02.038","article-title":"An Improved Tiny-Yolov3 Pedestrian Detection Algorithm","volume":"183","author":"Zhang","year":"2019","journal-title":"Optik"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Wang, L., Lan, Y., Zhang, Y., Zhang, H., Tahir, M.N., Ou, S., Liu, X., and Chen, P. (2019). Applications and Prospects of Agricultural Unmanned Aerial Vehicle Obstacle Avoidance Technology in China. Sensors, 19.","DOI":"10.3390\/s19030642"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Qi, G., Zhang, Y., Wang, K., Mazur, N., Liu, Y., and Malaviya, D. (2022). Small Object Detection Method Based on Adaptive Spatial Parallel Convolution and Fast Multi-Scale Fusion. Remote Sens., 14.","DOI":"10.3390\/rs14020420"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"80","DOI":"10.1049\/trit.2018.1045","article-title":"Convolutional Neural Network Based Detection and Judgement of Environmental Obstacle in Vehicle Operation","volume":"4","author":"Qi","year":"2019","journal-title":"CAAI Trans. Intell. Technol."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Yan, B., Fan, P., Lei, X., Liu, Z., and Yang, F. (2021). A Real-Time Apple Targets Detection Method for Picking Robot Based on Improved YOLOv5. Remote Sens., 13.","DOI":"10.3390\/rs13091619"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Xu, Z., Huang, X., Huang, Y., Sun, H., and Wan, F. (2022). A Real-Time Zanthoxylum Target Detection Method for an Intelligent Picking Robot under a Complex Background, Based on an Improved YOLOv5s Architecture. Sensors, 22.","DOI":"10.3390\/s22020682"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Azam, M.A., Sampieri, C., Ioppi, A., Africano, S., Vallin, A., Mocellin, D., Fragale, M., Guastini, L., Moccia, S., and Piazza, C. (2021). Deep Learning Applied to White Light and Narrow Band Imaging Videolaryngoscopy: Toward Real-Time Laryngeal Cancer Detection. Laryngoscope, early view.","DOI":"10.1002\/lary.29960"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Hsieh, I.-H., Cheng, H.-C., Ke, H.-H., Chen, H.-C., and Wang, W.-J. (2021). A CNN-Based Wearable Assistive System for Visually Impaired People Walking Outdoors. Appl. Sci., 11.","DOI":"10.3390\/app112110026"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Lin, F., Hou, T., Jin, Q., and You, A. (2021). Improved YOLO Based Detection Algorithm for Floating Debris in Waterway. Entropy, 23.","DOI":"10.3390\/e23091111"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Yu, Y., Zhao, J., Gong, Q., Huang, C., Zheng, G., and Ma, J. (2021). Real-Time Underwater Maritime Object Detection in Side-Scan Sonar Images Based on Transformer-YOLOv5. Remote Sens., 13.","DOI":"10.3390\/rs13183555"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"21777","DOI":"10.1038\/s41598-021-01084-x","article-title":"Real-Time Detection of Particleboard Surface Defects Based on Improved YOLOV5 Target Detection","volume":"11","author":"Zhao","year":"2021","journal-title":"Sci. Rep."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Ahmed, T.U., Hossain, S., Hossain, M.S., Ul Islam, R., and Andersson, K. (June, January 30). Facial Expression Recognition Using Convolutional Neural Network with Data Augmentation. Proceedings of the 2019 Joint 8th International Conference on Informatics, Electronics & Vision (iciev) and 2019 3rd International Conference on Imaging, Vision & Pattern Recognition (icIVPR) with International Conference on Activity and Behavior Computing (ABC), Spokane, WA, USA.","DOI":"10.1109\/ICIEV.2019.8858529"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"106512","DOI":"10.1016\/j.compag.2021.106512","article-title":"Real-Time Detection and Tracking of Fish Abnormal Behavior Based on Improved YOLOV5 and SiamRPN++","volume":"192","author":"Wang","year":"2022","journal-title":"Comput. Electron. Agric."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Wang, C.-Y., Mark Liao, H.-Y., Wu, Y.-H., Chen, P.-Y., Hsieh, J.-W., and Yeh, I.-H. (2020, January 14\u201319). CSPNet: A New Backbone That Can Enhance Learning Capability of CNN. Proceedings of the 2020 IEEE\/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Seattle, WA, USA.","DOI":"10.1109\/CVPRW50498.2020.00203"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Zhao, P., Gao, H., Zhang, Y., Li, H., and Yang, R. (August, January 28). An Aircraft Detection Method Based on Improved Mask R-Cnn in Remotely Sensed Imagery. Proceedings of the 2019 Ieee International Geoscience and Remote Sensing Symposium (IGARSS 2019), Yokohama, Japan.","DOI":"10.1109\/IGARSS.2019.8900528"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Redmon, J., and Farhadi, A. (2017, January 21\u201326). YOLO9000: Better, Faster, Stronger. Proceedings of the 30th Ieee Conference on Computer Vision and Pattern Recognition (CVPR 2017), Honolulu, HI, USA.","DOI":"10.1109\/CVPR.2017.690"},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"271","DOI":"10.1109\/LGRS.2018.2870935","article-title":"Region-of-Interest Detection Based on Statistical Distinctiveness for Panchromatic Remote Sensing Images","volume":"16","author":"Liu","year":"2019","journal-title":"IEEE Geosci. Remote Sens. Lett."},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Rezatofighi, H., Tsoi, N., Gwak, J., Sadeghian, A., Reid, I., and Savarese, S. (2019, January 15\u201320). Generalized Intersection Over Union: A Metric and a Loss for Bounding Box Regression. Proceedings of the 2019 IEEE\/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.","DOI":"10.1109\/CVPR.2019.00075"},{"key":"ref_29","first-page":"12993","article-title":"Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression","volume":"Volume 34","author":"Zheng","year":"2020","journal-title":"Proceedings of the Thirty-Fourth Aaai Conference on Artificial Intelligence, the Thirty-Second Innovative Applications of Artificial Intelligence Conference and the Tenth Aaai Symposium on Educational Advances in Artificial Intelligence"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/22\/5\/1790\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T22:26:45Z","timestamp":1760135205000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/22\/5\/1790"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,2,24]]},"references-count":29,"journal-issue":{"issue":"5","published-online":{"date-parts":[[2022,3]]}},"alternative-id":["s22051790"],"URL":"https:\/\/doi.org\/10.3390\/s22051790","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,2,24]]}}}