In this paper, we propose a method for classifying tea quality levels based on near-infrared spectroscopy. Firstly, the absorbance spectra of Huangshan Maofeng tea samples were obtained in a wavenumber range of 10,000~4000 cm−1 using near-infrared spectroscopy. The spectral data were then converted to transmittance and smoothed using the Savitzky–Golay (SG) algorithm. The denoised transmittance spectra were dimensionally reduced using principal component analysis (PCA). The characteristic variables obtained using PCA were used as the input variables and the tea level was used as the output to establish a support vector machine (SVM) classification model. The penalty factor c and the kernel function parameter g in the SVM model were optimized using particle swarm optimization (PSO) and comprehensive-learning particle swarm optimization (CLPSO) algorithms. The final experimental results show that the CLPSO-SVM method had the best classification performance, and the classification accuracy reached 99.17%.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.