高级检索+

基于深度学习模型的红茶发酵品质精准判定

Accurate discrimination of black tea fermentation quality using deep learning model

  • 摘要: 为破解当前红茶发酵品质把控因依赖人工经验而存在的随意性突出、客观性不足等瓶颈,以及大模型在实际生产环境中部署面临着诸多限制这一产业痛点,该文基于机器视觉技术提出一种改进的深度学习模型精准判别红茶发酵品质。首先试验对比所选7种卷积神经网络模型,兼顾判别性能与模型复杂度,选定学生模型与教师模型。其次,对学生模型与教师模型更换优化器与损失函数。最后,采用SoftTarget方法在不同知识蒸馏损失系数下进行知识蒸馏试验。改进模型在不增加模型复杂度与不改变模型速度的情况下,对红茶发酵品质判别的准确度、精确率、召回率、F1分别为96.93%、95.15%、95.79%、95.46%,相较于基础学生模型,分别提升2.01、2.67、3.72、3.19个百分点。该研究实现了红茶发酵品质的精准把控,为红茶的数智化加工提供有力的技术支持。

     

    Abstract: Black tea is the second largest type of tea in China, and its processing involves four stages: withering, rolling, fermentation, and drying. Fermentation plays a crucial role in the processing of black tea, closely related to its color and taste. Mild fermentation or excessive fermentation can affect the quality of black tea, thereby affecting its market value. In addition, black tea with moderate fermentation is more stable and less prone to spoilage during storage. Mild fermentation or excessive fermentation can lead to a decrease in the preservation of tea, making them susceptible to external factors and losing the unique quality of black tea. Therefore, the importance of precise control over the fermentation quality of black tea is self-evident. At present, the control of black tea fermentation quality mainly relies on the experience of tea makers in "observing color, smelling aroma, and touching texture", which is highly arbitrary and subjective, resulting in inconsistent black tea quality and inability to achieve standardization in production. In addition, considering the many limitations faced by the deployment of the model in actual production environments, this paper adopts machine vision technology to propose an improved deep learning model that accurately judges the fermentation quality of black tea based on image features. Firstly, we conducted experimental comparisons on the seven selected convolutional neural network models under the same conditions, and all of them have the ability to distinguish the quality of black tea fermentation. Among them, the Ghostnet model showed the best discriminative performance, so it was chosen as the teacher model. Taking into account both the discriminative performance and complexity of the model, Mobilenetv3_small will be used as the student model after comparison. Secondly, taking AdamW, SGD, and RMSProp as the research objects, a comparative experiment was conducted to compare the discriminative performance. Based on this, the selected student model and teacher model were replaced with RMSProp optimizer, which improved the discriminative performance of the model without increasing its complexity or changing its speed. Afterwards, the loss functions of the student model Mobilenetv3_small and the teacher model Ghostnet were simultaneously changed to CE Loss. Without changing the complexity of the models, their discriminative performance was further improved. On this basis, we set the range of Kd_ratio between 0.1 and 2.0, and used the SoftTarget method to conduct knowledge distillation experiments on the student model using the teacher model. The results showed that when Kd_ratio was 0.4, 1.7, and 1.9, the model's discrimination performance was significantly improved while maintaining complexity and speed. In contrast, when Kd_ratio was 1.9, the discriminative performance of the model was improved the most. The improved model achieved Accuracy, Precision, Recall, and F1 of 96.93%, 95.15%, 95.79%, and 95.46%, respectively, for black tea fermentation quality discrimination without increasing model complexity or changing model speed. Compared with the original model, these scores increased by 0.94, 1.91, 1.11 and 1.52 percentage points respectively. This study achieved precise control of the fermentation quality of black tea, meeting the requirements for judging the fermentation quality of black tea and providing strong technical support for the digital and intelligent processing of black tea.

     

/

返回文章
返回