FOOD SCIENCE ›› 2026, Vol. 47 ›› Issue (17): 302-313.doi: 10.7506/spkx1002-6630-20260302-014

• Safety Detection • Previous Articles     Next Articles

CP-ResNet50: An Appearance Detection Model for Multiple Types and Grades of Tea Based on Feature Aggregation and Attention Mechanism

LI Hao, SONG Yan, DAI Qianying, NING Jingming   

  1. (1. School of Electronics and Electrical Engineering, Anhui Agricultural University, Hefei 230036, China; 2. State Key Laboratory of Tea Plant Germplasm Innovation and Resource Utilization, Hefei 230036, China)
  • Online:2026-09-15 Published:2026-09-03

Abstract: Considering that traditional sensory evaluation is highly subjective and inefficient, this study designed a model for the detection of tea appearance quality using a residual network optimized by feature aggregation and attention mechanism. A total of 1 800 tea sample images covering 22 grades of three types of tea (Keemun black tea, Huangshan Maofeng, and West Anhui yellow tea) were collected and divided into training and test sets at a ratio of 8:2. Based on the residual network with 50 layers (ResNet50), transfer learning was applied to retain general visual feature extraction capabilities, the top fully connected layer was replaced to adapt to the classification task, and a convolutional block attention module (CBAM) and a path aggregation network (PANet) were embedded. A multi-task architecture was designed and optimized using a joint loss function to achieve recognition of tea types and grades. The classification accuracy of the proposed model reached 100% for tea types and exceeded 93% for tea grades, demonstrating good classification performance. This model is expected to provide technical support for tea appearance recognition and contribute to the development of intelligent tea quality control technology.

Key words: deep learning; residual network with 50 layers; tea; multiple types; recognition; convolutional block attention module; path aggregation network

CLC Number: