Sunflower seeds classification based on self-attention Focusing algorithm

被引:4
|
作者
Jin, Xiaowei [1 ]
Zhao, Yuhong [1 ]
Bian, Haodong [2 ]
Li, Jianjun [1 ]
Xu, Chuanshuai [1 ]
机构
[1] Inner Mongolia Univ Sci & Technol, Sch Informat Engn, Baotou 014010, Peoples R China
[2] Northeastern Univ, Sch Comp Sci & Engn, Shenyang 110819, Peoples R China
基金
中国国家自然科学基金;
关键词
Classification; Image recognition; Self-attention Focusing algorithm; Model lightness; Vision Transformer;
D O I
10.1007/s11694-022-01612-x
中图分类号
TS2 [食品工业];
学科分类号
0832 ;
摘要
In order to effectively achieve the quality classification of sunflower seeds based on appearance identification in production scenarios, a multi-objective sunflower seed classification method based on a self-attention mechanism was proposed in this paper, which achieves the classification of sunflower seed object images with an accuracy of 94.71% by using a Multi-Head Self-attention mechanism to focus on the classification objects on the basis of effectively extracting context-dependent information from sunflower seed images. However, visualization experiments found that the model's attention could not effectively focus on the class activated regions of the image, resulting in a model that was heavily influenced by background noise and suffered from such defects as high computational cost and large model size. To address the above problems, a self-attention Focusing algorithm was proposed in this paper by evaluating and reconstructing the connections in the attention weight matrix, pruning the less influential connections, and realizing the update of the attention score, which gradually focuses attention on the class activated regions in continuous iterations, effectively shielding the background noise. Experiments have shown that applying the Focusing algorithm improves the accuracy rate to 96.6% based on a 34.3% reduction in the number of model parameters. Model accuracy was successfully improved while achieving model lightweighting, and the model was made more resistant to background noise due to the focused attention region. The self-attention Focusing algorithm's effectiveness in improving accuracy, focusing attention, and compressing model size is demonstrated. In practical production scenarios, it can be used as a popular application of key techniques for sunflower seed classification.
引用
收藏
页码:143 / 154
页数:12
相关论文
共 50 条
  • [1] Sunflower seeds classification based on self-attention Focusing algorithm
    Xiaowei Jin
    Yuhong Zhao
    Haodong Bian
    Jianjun Li
    Chuanshuai Xu
    Journal of Food Measurement and Characterization, 2023, 17 : 143 - 154
  • [2] Arrhythmia classification algorithm based on multi-head self-attention mechanism
    Wang, Yue
    Yang, Guanci
    Li, Shaobo
    Li, Yang
    He, Ling
    Liu, Dan
    BIOMEDICAL SIGNAL PROCESSING AND CONTROL, 2023, 79
  • [3] A Self-attention Based LSTM Network for Text Classification
    Jing, Ran
    2019 3RD INTERNATIONAL CONFERENCE ON CONTROL ENGINEERING AND ARTIFICIAL INTELLIGENCE (CCEAI 2019), 2019, 1207
  • [4] Web service classification based on self-attention mechanism
    Jia, Zhichun
    Zhang, Zhiying
    Dong, Rui
    Yang, Zhongxuan
    Xing, Xing
    2023 35TH CHINESE CONTROL AND DECISION CONFERENCE, CCDC, 2023, : 2164 - 2169
  • [5] Deformable Self-Attention for Text Classification
    Ma, Qianli
    Yan, Jiangyue
    Lin, Zhenxi
    Yu, Liuhong
    Chen, Zipeng
    IEEE-ACM TRANSACTIONS ON AUDIO SPEECH AND LANGUAGE PROCESSING, 2021, 29 : 1570 - 1581
  • [6] Applying Self-attention for Stance Classification
    Bugueno, Margarita
    Mendoza, Marcelo
    PROGRESS IN PATTERN RECOGNITION, IMAGE ANALYSIS, COMPUTER VISION, AND APPLICATIONS (CIARP 2019), 2019, 11896 : 51 - 61
  • [7] Point cloud classification network based on self-attention mechanism
    Li, Yujie
    Cai, Jintong
    COMPUTERS & ELECTRICAL ENGINEERING, 2022, 104
  • [8] Image Classification based on Self-attention Convolutional Neural Network
    Cai, Xiaohong
    Li, Ming
    Cao, Hui
    Ma, Jingang
    Wang, Xiaoyan
    Zhuang, Xuqiang
    SIXTH INTERNATIONAL WORKSHOP ON PATTERN RECOGNITION, 2021, 11913
  • [9] An Aerial Target Recognition Algorithm Based on Self-Attention and LSTM
    Liang, Futai
    Chen, Xin
    He, Song
    Song, Zihao
    Lu, Hao
    CMC-COMPUTERS MATERIALS & CONTINUA, 2024, 81 (01): : 1101 - 1121
  • [10] Nystromformer: A Nystrom-based Algorithm for Approximating Self-Attention
    Xiong, Yunyang
    Zeng, Zhanpeng
    Chakraborty, Rudrasis
    Tan, Mingxing
    Fung, Glenn
    Li, Yin
    Singh, Vikas
    THIRTY-FIFTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, THIRTY-THIRD CONFERENCE ON INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE AND THE ELEVENTH SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2021, 35 : 14138 - 14148