Establishment of an Application for Recognizing the Maturity of Cigar Leaf Using RGB Images
Shuhua Zeng, Hao Yang, Weili Yang, Tong Zhang, Xiaoli Liu, Hongqi Zhang, Lei Liu, Xingyou Yang, Yajie Liu, Shiping Guo and Huan Xiang
Abstract
To achieve objective and accurate recognition of the maturity of cigar leaves, industrial cameras were used to capture images of cigar leaves at three different maturity levels of cigar leaves: immature, mature, and overripe. MATLAB was used to establish the AlexNet and ResNet_18 classification models. The results showed that both ResNet_18 and AlexNet achieved higher accuracy during the training process with optimized structure 2 than with the classical structure and optimized structure 1. InitialLearnRate and MiniBatchSize achieved the highest accuracies of 0.001 and 32%, respectively. The precision, recall, and F1 score of ResNet_18 after the improvement were higher than those of AlexNet, with increases of 1.7%, 3.3%, and 0.026, respectively. The model generalization test showed ideal results, with an average accuracy of over 79% for both varieties and a discrimination accuracy of 92% for the unripe variety Chuanxue 1. The developed application can quickly and accurately identify the maturity of cigar leaves, thereby providing a method for determining maturity.



















