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

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.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-04-21
DOI
https://doi.org/10.1038/s41598-026-49819-y
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Xiaohong Cao, Dai Jing, Chen Jiangping
Scientific Reports
Smart Agriculture and AI
article

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

Xiaohong Cao, Dai Jing, Chen Jiangping
article en

Abstract

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.

Scientific Reports
Shaanxi University of Science and Technology (CN)
Zero hunger
Openalex Percentile: Top 8%
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.