arXiv:2608.11759cs.CVcs.LG2026-08

用深度学习自动判别榛子内部缺陷,准确率达86.3%。

Automated binary classification of hazelnut X-ray images: A deep-learning benchmark for quality assessment

  • 基于799张单仁榛子X光图,构建二分类基准数据集
  • 融合CNN与Swin Transformer的集成模型达86.3%平衡准确率
  • 专家重审标签提升性能,凸显小样本农业图像标注重要性

非破坏性X射线成像可揭示外部难以检测的榛子内部缺陷,但自动化解析仍具挑战,因类别间辐射差异细微、类别严重失衡且标注数据有限。本文基于799张分割后的单仁榛子X光图像(224×224像素,灰度),按101个采集单元分组,评估了七种单模型配置和十种概率聚合集成方法。采用五组不同随机种子生成的数据划分,结合组间交叉旋转协议进行训练与验证。决策阈值在验证集上确定,性能在验证集与测试集上进行确定性评估。在专家重新评估标注条件下,基于二元交叉熵训练的卷积神经网络与冻结Swin Transformer的平均概率集成模型达到最高均值平衡准确率(86.3% ± 1.8%,五次种子实验),其他多个集成模型表现相当。各方法间存在显著的分组间波动,表明在该数据规模下多分组评估对可靠模型比较至关重要。专家对模糊样本的重新评估使所有17种方法性能提升2.8–8.1个百分点,但对跨分组方差影响有限。结果凸显深度学习在基于X射线的榛子质量自动化评估中的潜力,以及在小规模、不平衡的农业图像数据集中严谨评估与标签精修的重要性。

原文摘要 · Abstract (English)

Non-destructive X-ray imaging can reveal internal hazelnut defects that are difficult to detect by external inspection alone; however, automated interpretation remains challenging because of subtle radiographic differences among classes, marked class imbalance, and limited annotated data. Here, we present a benchmark for binary hazelnut quality classification (healthy versus defective) based on 799 segmented single-kernel X-ray images (224 x 224 pixels, grayscale), grouped into 101 acquisition units. Seven single-model configurations and ten probability-aggregation ensembles were evaluated using a group-wise split-rotation protocol across five data splits generated using different random seeds. Decision thresholds were selected on the validation set, and performance was assessed deterministically on validation and test sets. Under the expert-reassessed annotation condition, the average-probability ensemble of the binary cross-entropy-trained convolutional neural network and frozen Swin Transformer achieved the highest mean balanced accuracy (86.3% +/- 1.8%, five seeds), with several other ensembles providing comparable performance. Across methods, substantial split-to-split variability was observed, indicating that multi-split evaluation is essential for reliable model comparison at this dataset scale. Expert reassessment of ambiguous samples improved the performance of all 17 evaluated methods by 2.8-8.1 percentage points, while having only a limited effect on cross-split variance. The results highlight both the potential of deep learning for automated X-ray-based hazelnut quality assessment and the importance of rigorous evaluation and label curation in small, imbalanced agricultural imaging datasets.

图像分类农业视觉深度学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。