{"title":"通过 RP-YOLO 检测无人收割机的稻穗密度","authors":"","doi":"10.1016/j.compag.2024.109371","DOIUrl":null,"url":null,"abstract":"<div><p>Rice panicle density is one of the essential bases for the automatic speed regulation of unmanned harvesters, making density detection crucial for intelligent upgrades. Currently, existing methods for detecting rice panicle density do not meet actual harvesting scenarios and struggle to meet real-time requirements. To address this, we developed a real-time rice panicle density detection method for unmanned harvesters. This method includes a panicle detection model based on YOLOv5n (RP-YOLO) and a rice panicle density calculation based on coordinate transformations. RP-YOLO was optimized through various techniques, such as enhancing the target detection head, reconfiguring the backbone network and downsampling module, introducing an attention mechanism, and refining the loss function. Based on coordinate conversion, we converted the world coordinates of the detection frame vertex to image coordinates and calculated the panicle density. We established the RP-1668 dataset for japonica rice and trained and tested the model. Compared to the original YOLOv5n model, our modifications reduced floating-point operations per second (FLOPs) by 33.33 %, decreased model size by 31.90 %, increased detection speed by 12.63 %, and improved accuracy (AP0.5) by 3.82 % (AP0.5:0.95, 6.96 %). RP-YOLO achieved superior accuracy and detection speed compared to both conventional lightweight and non-lightweight models. In field applications, the error in density detection was less than 10 % compared to manual counting, and the results clearly reflected changes in rice panicle density. For a 1.4 m × 1.0 m rice field imaging area (with a resolution of 2560 × 1280), the method detects at 15 fps on an on-board industrial computer, providing reliable data support for adjusting the operating speed of driverless harvesters.</p></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":null,"pages":null},"PeriodicalIF":7.7000,"publicationDate":"2024-08-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Detection of rice panicle density for unmanned harvesters via RP-YOLO\",\"authors\":\"\",\"doi\":\"10.1016/j.compag.2024.109371\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>Rice panicle density is one of the essential bases for the automatic speed regulation of unmanned harvesters, making density detection crucial for intelligent upgrades. Currently, existing methods for detecting rice panicle density do not meet actual harvesting scenarios and struggle to meet real-time requirements. To address this, we developed a real-time rice panicle density detection method for unmanned harvesters. This method includes a panicle detection model based on YOLOv5n (RP-YOLO) and a rice panicle density calculation based on coordinate transformations. RP-YOLO was optimized through various techniques, such as enhancing the target detection head, reconfiguring the backbone network and downsampling module, introducing an attention mechanism, and refining the loss function. Based on coordinate conversion, we converted the world coordinates of the detection frame vertex to image coordinates and calculated the panicle density. We established the RP-1668 dataset for japonica rice and trained and tested the model. Compared to the original YOLOv5n model, our modifications reduced floating-point operations per second (FLOPs) by 33.33 %, decreased model size by 31.90 %, increased detection speed by 12.63 %, and improved accuracy (AP0.5) by 3.82 % (AP0.5:0.95, 6.96 %). RP-YOLO achieved superior accuracy and detection speed compared to both conventional lightweight and non-lightweight models. In field applications, the error in density detection was less than 10 % compared to manual counting, and the results clearly reflected changes in rice panicle density. For a 1.4 m × 1.0 m rice field imaging area (with a resolution of 2560 × 1280), the method detects at 15 fps on an on-board industrial computer, providing reliable data support for adjusting the operating speed of driverless harvesters.</p></div>\",\"PeriodicalId\":50627,\"journal\":{\"name\":\"Computers and Electronics in Agriculture\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":7.7000,\"publicationDate\":\"2024-08-29\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computers and Electronics in Agriculture\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0168169924007622\",\"RegionNum\":1,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURE, MULTIDISCIPLINARY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169924007622","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
Detection of rice panicle density for unmanned harvesters via RP-YOLO
Rice panicle density is one of the essential bases for the automatic speed regulation of unmanned harvesters, making density detection crucial for intelligent upgrades. Currently, existing methods for detecting rice panicle density do not meet actual harvesting scenarios and struggle to meet real-time requirements. To address this, we developed a real-time rice panicle density detection method for unmanned harvesters. This method includes a panicle detection model based on YOLOv5n (RP-YOLO) and a rice panicle density calculation based on coordinate transformations. RP-YOLO was optimized through various techniques, such as enhancing the target detection head, reconfiguring the backbone network and downsampling module, introducing an attention mechanism, and refining the loss function. Based on coordinate conversion, we converted the world coordinates of the detection frame vertex to image coordinates and calculated the panicle density. We established the RP-1668 dataset for japonica rice and trained and tested the model. Compared to the original YOLOv5n model, our modifications reduced floating-point operations per second (FLOPs) by 33.33 %, decreased model size by 31.90 %, increased detection speed by 12.63 %, and improved accuracy (AP0.5) by 3.82 % (AP0.5:0.95, 6.96 %). RP-YOLO achieved superior accuracy and detection speed compared to both conventional lightweight and non-lightweight models. In field applications, the error in density detection was less than 10 % compared to manual counting, and the results clearly reflected changes in rice panicle density. For a 1.4 m × 1.0 m rice field imaging area (with a resolution of 2560 × 1280), the method detects at 15 fps on an on-board industrial computer, providing reliable data support for adjusting the operating speed of driverless harvesters.
期刊介绍:
Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.