CornViT:一种多阶段卷积视觉变换器框架用于分层玉米粒分析
CornViT: A Multi-Stage Convolutional Vision Transformer Framework for Hierarchical Corn Kernel Analysis
AI总结:
CornViT通过多阶段卷积视觉变换器框架实现玉米粒的自动化分级与分析,准确率高达93.76%至94.11%。
摘要:
准确的玉米粒分级对于种子认证、定向播种和育种至关重要,但目前仍主要依靠人工检查。本工作引入了CornViT,一种三阶段卷积视觉变换器(CvT)框架,模拟人类种子分析员的分层推理过程进行单粒评估。三个连续的CvT-13分类器对384x384的RGB图像进行操作:第一阶段区分纯粒与杂质粒;第二阶段将纯粒分为扁平和圆形形态;第三阶段确定纯、扁形粒的胚芽方向(上 vs. 下)。从公共玉米种子图像集开始,我们手动重新标记和过滤图像,构建了三个阶段专用的数据集:7265粒用于纯度,3859粒纯粒用于形态,1960粒纯扁形粒用于胚芽方向,所有数据集均作为基准发布。仅头部微调ImageNet-22k预训练的CvT-13主干,在纯度、形状和胚芽方向检测上的测试准确率分别为93.76%、94.11%和91.12%。在相同训练条件下,ResNet-50仅达到76.56至81.02个百分点,而DenseNet-121达到86.56至89.38个百分点准确率。这些结果突显了卷积增强自注意力机制在粒分析中的优势。为了便于采用,我们部署了CornViT到基于Flask的Web应用中,执行阶段式推理并通过浏览器界面暴露可解释的输出。共同,CornViT框架、定制数据集和Web应用为种子质量流程中的自动化玉米粒质量评估提供了可部署的解决方案。源代码和数据公开可用。
英文摘要:
Accurate grading of corn kernels is critical for seed certification, directional seeding, and breeding, yet it is still predominantly performed by manual inspection. This work introduces CornViT, a three-stage Convolutional Vision Transformer (CvT) framework that emulates the hierarchical reasoning of human seed analysts for single-kernel evaluation. Three sequential CvT-13 classifiers operate on 384x384 RGB images: Stage 1 distinguishes pure from impure kernels; Stage 2 categorizes pure kernels into flat and round morphologies; and Stage 3 determines the embryo orientation (up vs. down) for pure, flat kernels. Starting from a public corn seed image collection, we manually relabeled and filtered images to construct three stage-specific datasets: 7265 kernels for purity, 3859 pure kernels for morphology, and 1960 pure-flat kernels for embryo orientation, all released as benchmarks. Head-only fine-tuning of ImageNet-22k pretrained CvT-13 backbones yields test accuracies of 93.76% for purity, 94.11% for shape, and 91.12% for embryo-orientation detection. Under identical training conditions, ResNet-50 reaches only 76.56 to 81.02 percent, whereas DenseNet-121 attains 86.56 to 89.38 percent accuracy. These results highlight the advantages of convolution-augmented self-attention for kernel analysis. To facilitate adoption, we deploy CornViT in a Flask-based web application that performs stage-wise inference and exposes interpretable outputs through a browser interface. Together, the CornViT framework, curated datasets, and web application provide a deployable solution for automated corn kernel quality assessment in seed quality workflows. Source code and data are publicly available.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。