欢迎您访问《智慧农业(中英文)》官方网站! English

Smart Agriculture ›› 2024, Vol. 6 ›› Issue (5): 98-107.doi: 10.12133/j.smartag.SA202407012

• 技术方法 • 上一篇    下一篇

基于轻量化Ghost-YOLOv8和智能手机的田间水稻有效分蘖检测方法

崔家乐, 曾祥峰, 任政威, 孙健, 汤晨, 杨万能, 宋鹏()   

  1. 华中农业大学 作物遗传改良全国重点实验室,湖北 武汉 430070,中国
  • 收稿日期:2024-07-10 出版日期:2024-09-30
  • 基金项目:
    国家重点研发计划项目(2021YFD1200504); 国家自然科学基金项目(32471992)
  • 作者简介:
    崔家乐,研究方向为作物表型检测。E-mail:
  • 通信作者:
    宋 鹏,博士,副教授,研究方向为作物表型检测和农业机器人技术。 E-mail:

Detection Method of Effective Tillering of Rice in Field Based on Lightweight Ghost-YOLOv8 and Smart Phone

CUI Jiale, ZENG Xiangfeng, REN Zhengwei, SUN Jian, TANG Chen, YANG Wanneng, SONG Peng()   

  1. National Key Laboratory of Crop Genetic Improvement, Huazhong Agricultural University, Wuhan 430070, China
  • Received:2024-07-10 Online:2024-09-30
  • Foundation items:National Key Research and Development Program(2021YFD1200504); National Natural Science Foundation of China(32471992)
  • About author:
    CUI Jiale, E-mail:
  • Corresponding author:
    SONG Peng, E-mail:

摘要:

【目的/意义】 单株有效分蘖数是影响水稻产量的重要农艺性状之一,为解决水稻分蘖密集、相互遮挡且存在无效分蘖导致有效分蘖检测成本高、精度较低的问题。 【方法】 通过对水稻有效分蘖与无效分蘖高度的调查分析,提出一种基于水稻分蘖高度的有效分蘖计数方法,即在水稻固定高度收割后,测量茎秆数量以得到水稻有效分蘖数;通过GhostNet对YOLOv8模型进行轻量化,以减小模型规模,便于手机端部署;并基于此模型,开发手机端水稻有效分蘖检测程序。 【结果和讨论】 田间实验结果表明,在水稻植株总株高的52%~55%范围内进行收割,计数茎秆数量得到有效分蘖数,其查全率与准确率均超过99%;轻量化的Ghost-YOLOv8模型参数量减少43%;基于该模型的水稻有效分蘖App,对本研究标准下采集的100张茎秆横截面图像进行预测,准确率为99.61%,召回率为98.76%,与人工计数单株有效分蘖结果相比,决定系数为0.985 9。 【结论】 满足田间水稻有效分蘖计数需求,有助于育种专家收集大量数据,为水稻产量田间预测提供基础。

关键词: 水稻有效分蘖, Android, YOLOv8, GhostNet, App, 表型

Abstract:

[Objective] The number of effective tillers per plant is one of the important agronomic traits affecting rice yield. In order to solve the problems of high cost and low accuracy of effective tiller detection caused by dense tillers, mutual occlusion and ineffective tillers in rice, a method for dividing effective tillers and ineffective tillers in rice was proposed. Combined with the deep learning model, a high-throughput and low-cost mobile phone App for effective tiller detection in rice was developed to solve the practical problems of effective tiller investigation in rice under field conditions. [Methods] The investigations of rice tillering showed that the number of effective tillers of rice was often higher than that of ineffective tillers. Based on the difference in growth height between effective and ineffective tillers of rice, a new method for distinguishing effective tillers from ineffective tillers was proposed. A fixed height position of rice plants was selected to divide effective tillers from ineffective tillers, and rice was harvested at this position. After harvesting, cross-sectional images of rice tillering stems were taken using a mobile phone, and the stems were detected and counted by the YOLOv8 model. Only the cross-section of the stem was identified during detection, while the cross-section of the panicle was not identified. The number of effective tillers of rice was determined by the number of detected stems. In order to meet the needs of field work, a mobile phone App for effective tiller detection of rice was developed for real-time detection. GhostNet was used to lighten the YOLOv8 model. Ghost Bottle-Neck was integrated into C2f to replace the original BottleNeck to form C2f-Ghost module, and then the ordinary convolution in the network was replaced by Ghost convolution to reduce the complexity of the model. Based on the lightweight Ghost-YOLOv8 model, a mobile App for effective tiller detection of rice was designed and constructed using the Android Studio development platform and intranet penetration counting. [Results and Discussions] The results of field experiments showed that there were differences in the growth height of effective tillers and ineffective tillers of rice. The range of 52 % to 55 % of the total plant height of rice plants was selected for harvesting, and the number of stems was counted as the number of effective tillers per plant. The range was used as the division standard of effective tillers and ineffective tillers of rice. The accuracy and recall rate of effective tillers counting exceeded 99%, indicating that the standard was accurate and comprehensive in guiding effective tillers counting. Using the GhostNet lightweight YOLOv8 model, the parameter quantity of the lightweight Ghost-YOLOv8 model was reduced by 43%, the FPS was increased by 3.9, the accuracy rate was 0.988, the recall rate was 0.980, and the mAP was 0.994. The model still maintains excellent performance while light weighting. Based on the lightweight Ghost-YOLOv8 model, a mobile phone App for detecting effective tillers of rice was developed. The App was tested on 100 cross-sectional images of rice stems collected under the classification criteria established in this study. Compared with the results of manual counting of effective tillers per plant, the accuracy of the App's prediction results was 99.61%, the recall rate was 98.76%, and the coefficient of determination was 0.985 9, indicating the reliability of the App and the established standards in detecting effective tillers of rice. [Conclusions] Through the lightweight Ghost-YOLOv8 model, the number of stems in the cross-sectional images of stems collected under the standard was detected to obtain the effective tiller number of rice. An Android-side rice effective tillering detection App was developed, which can meet the field investigation of rice effective tillering, help breeders to collect data efficiently, and provide a basis for field prediction of rice yield. Further research could supplement the cross-sectional image dataset of multiple rice stems to enable simultaneous measurement of effective tillers across multiple rice plants and improve work efficiency. Further optimization and enhancement of the App's functionality is necessary to provide more tiller-related traits, such as tiller angle.

Key words: effective tillers of rice, Android, YOLOv8, GhostNet, App, phenotype

中图分类号: