Qing Geng , Xin Xu , Xinming Ma , Li Li , Fan Xu , Bingbo Gao , Yuntao Ma , Jianxi Huang , Jianyu Yang , Xiaochuang Yao
{"title":"WSG-P2PNet: A deep learning framework for counting and locating wheat spike grains in the open field environment","authors":"Qing Geng , Xin Xu , Xinming Ma , Li Li , Fan Xu , Bingbo Gao , Yuntao Ma , Jianxi Huang , Jianyu Yang , Xiaochuang Yao","doi":"10.1016/j.compag.2025.110314","DOIUrl":null,"url":null,"abstract":"<div><div>The number of spike grains is an important parameter for wheat yield estimation. However, it is challenging to automatically and intelligently count wheat spike grains in the open field environment. In this study, a deep learning framework, called Wheat Spike Grain Point-to-Point Network (WSG-P2PNet), is proposed to count and locate the wheat spike grains in the open field environment. This framework incorporates Efficient Channel Attention (ECA) and Coordinate Attention (CA) after feature extraction and feature concatenation, respectively. These mechanisms effectively highlight the channel features and positional information of the wheat spike grains while suppressing background interference from factors such as stems, leaves and wheat ears. Additionally, standard convolutions in the regression and classification branches are replaced with Spatial and Channel reconstruction Convolutions (SCConv), further enhancing representational capabilities and improving model performance. The results demonstrate that WSG-P2PNet, using VGG19_bn as the backbone network, outperforms five other state-of-the-art methods in terms of accuracy and stability, with an MAE of 1.72 (95% CI 1.67, 1.77), an Acc of 94.93% (95% CI 94.92, 94.93), an RMSE of 2.35 (95% CI 2.26, 2.44), and an <em>R</em><sup>2</sup> of 0.8311 (95% CI 0.8218, 0.8404). Ablation experiments illustrate the impact of SCConv, ECA, and CA on the performance of WSG-P2PNet. Notably, WSG-P2PNet still maintains high accuracy in different varieties and growth periods, demonstrating its robustness and generalizability in real-world scenarios. Preliminary experiments also evaluated the correlation between predicted spike grain numbers and wheat yield, with an average Pearson Correlation Coefficient <em>r</em> of 0.7944, indicating a strong positive statistical relationship. The proposed deep learning framework enables rapid and accurate counting and localization of wheat spike grains in the open field environment, which is of great significant for integrated wheat yield estimation.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"235 ","pages":"Article 110314"},"PeriodicalIF":7.7000,"publicationDate":"2025-03-27","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/S016816992500420X","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
The number of spike grains is an important parameter for wheat yield estimation. However, it is challenging to automatically and intelligently count wheat spike grains in the open field environment. In this study, a deep learning framework, called Wheat Spike Grain Point-to-Point Network (WSG-P2PNet), is proposed to count and locate the wheat spike grains in the open field environment. This framework incorporates Efficient Channel Attention (ECA) and Coordinate Attention (CA) after feature extraction and feature concatenation, respectively. These mechanisms effectively highlight the channel features and positional information of the wheat spike grains while suppressing background interference from factors such as stems, leaves and wheat ears. Additionally, standard convolutions in the regression and classification branches are replaced with Spatial and Channel reconstruction Convolutions (SCConv), further enhancing representational capabilities and improving model performance. The results demonstrate that WSG-P2PNet, using VGG19_bn as the backbone network, outperforms five other state-of-the-art methods in terms of accuracy and stability, with an MAE of 1.72 (95% CI 1.67, 1.77), an Acc of 94.93% (95% CI 94.92, 94.93), an RMSE of 2.35 (95% CI 2.26, 2.44), and an R2 of 0.8311 (95% CI 0.8218, 0.8404). Ablation experiments illustrate the impact of SCConv, ECA, and CA on the performance of WSG-P2PNet. Notably, WSG-P2PNet still maintains high accuracy in different varieties and growth periods, demonstrating its robustness and generalizability in real-world scenarios. Preliminary experiments also evaluated the correlation between predicted spike grain numbers and wheat yield, with an average Pearson Correlation Coefficient r of 0.7944, indicating a strong positive statistical relationship. The proposed deep learning framework enables rapid and accurate counting and localization of wheat spike grains in the open field environment, which is of great significant for integrated wheat yield estimation.
期刊介绍:
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.