基酒组分具有复杂多样性,为提高其等级分类预测模型的精度和泛化能力,在基酒气相色谱-质谱数据基础上设计评价模型,提出一种结合遗传算法(genetic algorithm,GA)和引导聚集算法(Bootstrap aggregating,Bagging)优化支持向量机(support vector machine,SVM)分类器的方法,以解决单一SVM分类器在分类精度和泛化能力的不足。研究使用Spearman相关性筛选了36 种关键物质,选择核主成分分析法提取了12 个核主成分,并使累计贡献率达到96.06%,将其作为模型输入。选择性能最优的径向基核函数支持向量机,使用对数据多样性适应较强的并行计算Bagging集成算法,构建Bagging-SVM分类器进行基酒等级分类,最后,通过GA优化Bagging-SVM分类器的参数(C、γ、N),构建GA-Bagging-SVM模型。结果显示,GA-Bagging-SVM模型的准确率、精确度、召回率、F1-Score分别为96.77%、96.90%、96.77%、96.78%,优于Bagging-SVM和SVM模型,相比单一SVM模型提升了6.45%、5.61%、6.45%、6.42%,比Bagging-SVM模型提升了3.22%、2.29%、3.22%和3.15%。该方法可作为白酒基酒品质评估模型的优化方法。
PANG Tingting
,
ZHANG Guiyu
,
LIU Kecai
,
LI Xiaoping
,
TUO Xianguo
,
PENG Yingjie
,
ZENG Xianglin
. 基于遗传和引导聚集算法优化支持向量机的白酒基酒品质评估方法[J]. 食品科学, 2025
, 46(6)
: 275
-284
.
DOI: 10.7506/spkx1002-6630-20240801-002
The chemical composition of base baijiu is complex and diverse. A classification model for base baijiu of different sensory grades was established based on the gas chromatography-mass spectrometric (GC-MS) data for their volatile composition. In order to improve the accuracy and generalization capacity of the classification model, a method combining genetic algorithm (GA) and bootstrap aggregating (Bagging) was proposed to optimize the support vector machine (SVM) classifier. Using Spearman’s correlation analysis, 36 key substances were selected, and 12 kernel principal components were extracted as input to the model by kernel principal component analysis, which together accounted for 96.06% of the total variance. The radial basis kernel function support vector machine with the best performance was selected, and the parallel computing Bagging ensemble algorithm with strong adaptability to data diversity was used to construct a Bagging-SVM classifier for base baijiu classification. Finally, GA was used to optimize the parameters (C, γ, and N) of the Bagging-SVM classifier to construct a GA-Bagging-SVM model. The results showed that the accuracy, precision, recall rate, and F1-Score of the GA-Bagging-SVM model were 96.77%, 96.90%, 96.77%, and 96.78%, respectively, which were 6.45%, 5.61%, 6.45%, and 6.42% higher than those of the SVM model, and 3.22%, 2.29%, 3.22%, and 3.15% higher than those of the Bagging-SVM model, respectively. This method can be used as an optimization method for the quality evaluation model for base baijiu.