<p>Grain number estimation plays a crucial role in agriculture, serving as a key indicator for crop yield and quality assessment. With advances in computer vision, automatic grain detection has become a significant research area, where deep learning methods have shown remarkable promise. This study proposes a vision transformer model called Swin Transformer, which leverages hierarchical attention mechanisms across shifted windows to effectively capture both local and global features of grains in complex imagery. The model achieves the highest accuracy of 98%, outperforming baseline traditional CNN (ResNet-50) and DINO models in grain counting tasks. To support and validate model performance, explainable AI (XAI) techniques such as Grad-CAM and LIME are employed, highlighting the interpretability and focus of the model on relevant grain regions. Furthermore, a comprehensive empirical analysis is conducted using multiple statistical tests to evaluate the model’s robustness and generalizability across various grain morphological parameters, establishing the Swin Transformer as a powerful and interpretable solution for intelligent grain counting in agricultural data analytics.</p>

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Advanced deep learning vision transformer models for intelligent grain counting in agricultural data analytics

  • Chen Jiangping,
  • Dai Jing,
  • Cao Xiaohong

摘要

Grain number estimation plays a crucial role in agriculture, serving as a key indicator for crop yield and quality assessment. With advances in computer vision, automatic grain detection has become a significant research area, where deep learning methods have shown remarkable promise. This study proposes a vision transformer model called Swin Transformer, which leverages hierarchical attention mechanisms across shifted windows to effectively capture both local and global features of grains in complex imagery. The model achieves the highest accuracy of 98%, outperforming baseline traditional CNN (ResNet-50) and DINO models in grain counting tasks. To support and validate model performance, explainable AI (XAI) techniques such as Grad-CAM and LIME are employed, highlighting the interpretability and focus of the model on relevant grain regions. Furthermore, a comprehensive empirical analysis is conducted using multiple statistical tests to evaluate the model’s robustness and generalizability across various grain morphological parameters, establishing the Swin Transformer as a powerful and interpretable solution for intelligent grain counting in agricultural data analytics.