Lightweight CNN combined with knowledge distillation for the accurate determination of black tea fermentation degree.

Journal: Food research international (Ottawa, Ont.)
PMID:

Abstract

Black tea is the second most common type of tea in China. Fermentation is one of the most critical processes in its production, and it affects the quality of the finished product, whether it is insufficient or excessive. At present, the determination of black tea fermentation degree completely relies on artificial experience. It leads to inconsistent quality of black tea. To solve this problem, we use machine vision technology to distinguish the degree of fermentation of black tea based on images, this paper proposes a lightweight convolutional neural network (CNN) combined with knowledge distillation to discriminate the degree of fermentation of black tea. After comparing 12 kinds of CNN models, taking into account the size of the model and the performance of discrimination, as well as the selection principle of teacher models, Shufflenet_v2_x1.0 is selected as the student model, and Efficientnet_v2 is selected as the teacher model. Then, CrossEntropy Loss is replaced by Focal Loss. Finally, for Distillation Loss ratios of 0.6, 0.7, 0.8, 0.9, Soft Target Knowledge Distillation (ST), Masked Generative Distillation (MGD), Similarity-Preserving Knowledge Distillation (SPKD), and Attention Transfer (AT) four knowledge distillation methods are tested for their performance in distilling knowledge from the Shufflenet_v2_x1.0 model. The results show that the model discrimination performance after distillation is the best when the Distillation Loss ratio is 0.8 and the MGD method is used. This setup effectively improves the discrimination performance without increasing the number of parameters and computation volume. The model's P, R and F1 values reach 0.9208, 0.9190 and 0.9192, respectively. It achieves precise discrimination of the fermentation degree of black tea. This meets the requirements of objective black tea fermentation judgment and provides technical support for the intelligent processing of black tea.

Authors

  • Zezhong Ding
    Tea Research Institute of Shandong Academy of Agricultural Sciences, Jinan 250100, China; College of Mechanical and Electronic Engineering, Shihezi University, Shihezi 832000, China.
  • Chongshan Yang
    Tea Research Institute of Shandong Academy of Agricultural Sciences, Jinan 250100, China.
  • Bin Hu
    Department of Thoracic Surgery Beijing Chao-Yang Hospital Affiliated Capital Medical University Beijing China.
  • Mengqi Guo
    School of Computing, National University of Singapore, Computing 1, No.13 Computing Drive, 117417, Singapore.
  • Jinggang Li
    College of Mechanical and Electronic Engineering, Shihezi University, Shihezi 832000, China.
  • Mengjie Wang
    East China University of Science and Technology, Shanghai, China.
  • Zhengrui Tian
    Tea Research Institute of Shandong Academy of Agricultural Sciences, Jinan 250100, China; College of Mechanical and Electronic Engineering, Shihezi University, Shihezi 832000, China.
  • Zhiwei Chen
    School of Life Sciences, Shandong University of Technology, Zibo 255049, PR China.
  • Chunwang Dong
    Tea Research Institute, The Chinese Academy of Agricultural Sciences, Hangzhou, 310008, China. dongchunwang@163.com.