Agriculture (Aug 2022)
Maturity Classification of “Hupingzao” Jujubes with an Imbalanced Dataset Based on Improved MobileNet V2
Abstract
Fruits with various maturity levels coexist among the harvested jujubes, and have different tastes and uses. Manual grading has a low efficiency and a strong subjectivity. The number of “Hupingzao” jujubes between different maturity levels is unbalanced, which affects the performance of the classifier. To solve the above issue, the class balance loss (CB) was used to improve the MobileNet V2 network, and a transfer learning strategy was used to train the model. The model was optimized based on the selection of an optimizer and learning rate. The model achieved the best classification results using the AdamW optimizer and a learning rate of 0.0001. The application of transfer learning and class balance loss improved the model’s performance. The precision was 96.800~100.000%, the recall was 95.833~100.000%, and the F1 score was 0.963~1.000. To compare the CB-MobileNet V2 performance, the CB-AlexNet, CB-GoogLeNet, CB-ShuffleNet, CB-Inception V3, CB-ResNet 50, and CB-VGG 16 with transfer learning were used to build classification models. Achieving a validation accuracy of 99.058%, and a validation loss value of 0.055, the CB-MobileNet V2 model showed a better overall performance compared with other models. The maturity detection system of “Hupingzao” jujubes was developed to test the model. The testing accuracy of the CB-MobileNet V2 model was 99.294%. The research indicates that the CB-MobileNet V2 model improves the performance of maturity classification, and provides a theoretical basis for intelligent classification of the quality of “Hupingzao” jujubes.
Keywords