Zhao Mingyan, Li Yixin, Xu Peng, Song Tianyue, Li Huanran. Image classification method for Oudemansiella raphanipes using compound knowledge distillation algorithm[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2021, 37(17): 303-309. DOI: 10.11975/j.issn.1002-6819.2021.17.035
    Citation: Zhao Mingyan, Li Yixin, Xu Peng, Song Tianyue, Li Huanran. Image classification method for Oudemansiella raphanipes using compound knowledge distillation algorithm[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2021, 37(17): 303-309. DOI: 10.11975/j.issn.1002-6819.2021.17.035

    Image classification method for Oudemansiella raphanipes using compound knowledge distillation algorithm

    • In order to solve the problems of time consuming and less accuracy of the Oudemansiella raphanipes, this paper proposes an Oudemansiella raphanipes classification detection method based on a compound knowledge distillation algorithm, which improves the recognition accuracy and calculation efficiency. The knowledge distillation method uses the teacher model (large parameter model) to train the student model (small parameter model). Compared with learning a single correct label, student model can learn the category weights of the predicted target by the knowledge distillation. These category weights are extracted from the teacher model which the student model cannot be obtained through training. At the same time, in order to make full use of feature information, this paper proposes a detection method based on compound knowledge distillation which uses knowledge distillation in different positions of the model. This study uses 4 800 Oudemansiella raphanipes test set images to pre-train the teacher model (Resnet50), then intercept the output of the first 25 layers of the teacher model and perform parameter training on the first 9 layers of the convolutional model of the student model (Resnet18). The student model can continuously adjust the weight information by learning the output of the teacher model during the training process to obtain the best results. Finally, the first 9-layer convolution model of the pre-trained student model and the last half are spliced together to perform knowledge distillation of the overall model. The recognition accuracy of Resnet18 after compound knowledge distillation is 96.89%, and the time to recognize a single image is 0.032 s. It is found that compared with Resnet50, the compound knowledge distillation algorithm proposed in this paper takes 68.93% less time to recognize a single image. Compared with the Resnet18 model without knowledge distillation and single knowledge distillation, the accuracy is improved by 0.97 percent and 0.52 percent points, respectively. The reason for the improvement in accuracy is that when traditional neural network backpropagation parameters are updated, there is a certain distortion phenomenon after each layer of convolutional layer. As the network structure deepens, the first few layers of the model often fail to get effective update signals. And the Resnet network in this paper makes the structure more sensitive to change parameters. At the same time, the knowledge distillation technology can provide the student model with soft label information that cannot be learned on the hard label. The compound knowledge distillation technology proposed in this article allows the first half of the student model to learn high-level feature information in advance, and then parameterize the overall model. It can make it more fully absorb the knowledge in the teacher model, and improve the phenomenon of gradient dispersion of feedback parameters in the transmission process. The results show that the compound knowledge distillation algorithm proposed in this paper can make the accuracy of small model approach large-scale network model without increasing the running time. The research results can provide technical support for the quality grading production line of Oudemansiella raphanipes, and improve the speed and sorting accuracy of agricultural products based on neural network.
    • loading

    Catalog

      /

      DownLoad:  Full-Size Img  PowerPoint
      Return
      Return