Related Experiment Video
Updated: Mar 14, 2026

Cereal Crop Ear Counting in Field Conditions Using Zenithal RGB Images
Published on: February 2, 2019
SoyCountNet: a deep learning framework for counting and locating soybean seeds in field environment
Fei Liu1,2, Qiong Wu1, Haoyu Wang1
1College of Science and Information Science, Qingdao Agricultural University, Qingdao, China.
Introduction:
Accurate counting and spatial localization of soybean seeds-particularly Seeds Per Plant (SPP)-are critical for yield estimation and cultivar evaluation. In field environments, however, complex backgrounds, pod occlusion, and uneven grain filling make high-precision counting challenging, and traditional methods often struggle to balance accuracy and robustness.
Methods:
To address these challenges, this study proposes SoyCountNet, a deep learning framework for automatic soybean seed counting and localization at the single-plant level under field conditions. The model is built on a self-constructed field-based phenotyping platform and optimized using the lightweight Point-to-Point Network (P2PNet). For feature extraction, a VGG19_BN backbone and a Super Token Sampling Vision Transformer (SViT) module are employed to enhance local feature representation and global contextual understanding. During feature fusion, the Efficient Channel Attention (ECA) mechanism strengthens seed-related features while suppressing interference from leaves, stems, and soil. Furthermore, an improved loss function that combines point-distance constraints with overlap penalties enhances both counting precision and spatial consistency.
Results:
Experimental results demonstrate that SoyCountNet outperforms existing approaches on the field soybean dataset. It achieves a mean absolute error (MAE) of 4.61, a root mean square error (RMSE) of 6.03, and a coefficient of determination (R²) of 0.94. The model demonstrates consistent performance across the tested soybean cultivars, providing reliable SPP estimates within the evaluated dataset.
Discussion:
These findings indicate that SoyCountNet offers a reliable and scalable solution for precise soybean seed counting and localization in complex field environments. Its lightweight architecture allows deployment on intelligent agricultural platforms, supporting high-throughput phenotyping, yield prediction, and precision breeding, while providing a foundation for the future development of intelligent and sustainable agricultural technologies.

