Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (5): 1684-1691.DOI: 10.11772/j.issn.1001-9081.2025050593

• Frontier and comprehensive applications • Previous Articles    

High-precision recognition method for imperfect grain images based on TransNeXt

Miaomiao YUAN1, Yihong CHU2, Guanjun YIN2, Chunhua DENG1,2()   

  1. 1.School of Computer Science and Technology,Wuhan University of Science and Technology,Wuhan Hubei 430065,China
    2.Thermowell (Hubei) Intelligent Technology Company Limited,Wuhan Hubei 430223,China
  • Received:2025-05-29 Revised:2025-07-25 Accepted:2025-08-26 Online:2025-08-28 Published:2026-05-10
  • Contact: Chunhua DENG
  • About author:YUAN Miaomiao, born in 1999, M. S. candidate. Her research interests include computer vision, machine learning.
    CHU Yihong, born in 1980, M. S., engineer. His research interests include grain and oil inspection.
    YIN Guanjun, born in 1986, M. S., engineer. His research interests include intelligent control, machine vision.
  • Supported by:
    Key Research and Development Program of Hubei Province(2023BAB071)

基于TransNeXt的粮食不完善粒图像高精度识别方法

袁淼淼1, 褚毅宏2, 尹冠军2, 邓春华1,2()   

  1. 1.武汉科技大学 计算机科学与技术学院,武汉 430065
    2.赛默威(湖北)智能科技有限公司,武汉 430223
  • 通讯作者: 邓春华
  • 作者简介:袁淼淼(1999—),女,湖北荆州人,硕士研究生,主要研究方向:计算机视觉、机器学习
    褚毅宏(1980—),男,湖北潜江人,工程师,硕士,主要研究方向:粮油检测
    尹冠军(1986—),男,湖北汉川人,工程师,硕士,主要研究方向:智能控制、机器视觉
  • 基金资助:
    湖北省重点研发计划项目(2023BAB071)

Abstract:

Existing deep learning methods still face the following challenges in the research on high-precision imperfect grain recognition: the key discriminative features of imperfect grains are often distributed across image regions of varying scales and random positions, making it difficult to perceive these regions stably and comprehensively; meanwhile, the fine-grained discriminative features of multiple imperfect grains have diverse representations, and a unified modeling path struggles to optimize recognition performance of all categories simultaneously. To address these issues, a globally guided two-stage local feature learning framework was proposed based on TransNeXt. Deep representations of key discriminative regions were extracted under holistic perception and further refined through fine-grained modeling. Independently optimized network branches were designed for different categories, with all branches sharing the backbone to enable efficient adaptation and lightweight scalability. To support the above methods, an imperfect grain dataset covering multiple grain varieties with standardized category and discriminative region location annotations was constructed. Experimental results show that the proposed method achieves accuracy of 99.62% on the test set, verifying the framework's effectiveness and scalability in complex fine-grained image recognition tasks.

Key words: imperfect grain recognition, TransNeXt, fine-grained image recognition, local feature learning, multi-branch network

摘要:

现有深度学习方法在高精度粮食不完善粒识别研究中仍面临以下问题:不完善粒的关键判别特征局部分布于尺度不一、位置随机的图像区域,模型难以稳定、全面地感知这些区域;多类不完善粒的细粒度判别特征表达形式多样,统一建模路径难以同时优化所有类别的识别性能。因此,基于TransNeXt架构提出了一种全局引导的两阶段局部特征学习框架,在整图感知的基础上提取关键判别区域的深层表征,并在该区域上完成细粒度特征建模。进一步针对不同类别构建独立优化的网络分支,多个分支共享主干网络,实现对多类目标的高效适配与轻量扩展。为支撑上述方法,构建了一个覆盖多粮食品种并具备标准化类别与判别区域位置标注的不完善粒数据集。实验结果表明,所提方法在测试集上达到了99.62%的准确率,验证了它在复杂细粒度图像识别任务中的有效性与可扩展性。

关键词: 不完善粒识别, TransNeXt, 细粒度图像识别, 局部特征学习, 多分支网络

CLC Number: