Discrimination of Chinese Baijiu Base Liquor Grades Using Near-Infrared Spectroscopy Based on SHAP and Multi-scale Pyramid Feature Fusion

IF 3 3区 农林科学 Q2 FOOD SCIENCE & TECHNOLOGY
Xianguo Tuo, Longxin Li, Guiyu Zhang, Kerong Chen, Xianglin Zeng
{"title":"Discrimination of Chinese Baijiu Base Liquor Grades Using Near-Infrared Spectroscopy Based on SHAP and Multi-scale Pyramid Feature Fusion","authors":"Xianguo Tuo,&nbsp;Longxin Li,&nbsp;Guiyu Zhang,&nbsp;Kerong Chen,&nbsp;Xianglin Zeng","doi":"10.1007/s12161-026-03236-z","DOIUrl":null,"url":null,"abstract":"<div><p>To address the challenges of high-dimensional redundancy in near-infrared spectroscopy (NIRS) for grading Chinese Baijiu base liquor and to overcome the limitations of traditional feature selection methods—which often lose local spectral shape information due to an excessive focus on discrete wavelengths—this study proposes a dual-feature optimization framework. The methodology initiates by circumventing conventional distance metrics through a graph-based splitting strategy that leverages spectral clustering to characterize the manifold structure of samples within the feature space. Following this, a \"point-plane\" fusion mechanism is introduced: SHAP (Shapley Additive Explanations) values derived from an eXtreme Gradient Boosting (XGBoost) model are utilized to quantify the global contribution of each wavelength, thereby facilitating the selection of key discrete wavelengths (points). Simultaneously, multi-scale pyramid features are incorporated to extract local texture and shape information (representing the 'planes') from the spectra via hierarchical statistical pooling, resulting in a more refined representation of NIRS data. Ultimately, the XGBoost model is implemented for classifying base liquor grades. On the graph-based hold-out partition, the final SHAP–Pyramid–XGBoost model achieved an Accuracy of 0.9688 and a Macro-F1 score of 0.9696. Repeated nested stratified five-fold cross-validation with five repeats yielded a more conservative Accuracy of 0.9083 ± 0.0237 and a Macro-F1 score of 0.9063 ± 0.0241. Evaluation on three public spectroscopic benchmark datasets further indicated that the contribution of pyramid fusion was dependent on the dataset and wavelength-selection method. These results support promising internal discrimination performance on the present Baijiu dataset, while independent multi-site validation remains necessary.</p></div>","PeriodicalId":561,"journal":{"name":"Food Analytical Methods","volume":"19 10","pages":""},"PeriodicalIF":3.0000,"publicationDate":"2026-09-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Food Analytical Methods","FirstCategoryId":"97","ListUrlMain":"https://link.springer.com/article/10.1007/s12161-026-03236-z","RegionNum":3,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
引用次数: 0

Abstract

To address the challenges of high-dimensional redundancy in near-infrared spectroscopy (NIRS) for grading Chinese Baijiu base liquor and to overcome the limitations of traditional feature selection methods—which often lose local spectral shape information due to an excessive focus on discrete wavelengths—this study proposes a dual-feature optimization framework. The methodology initiates by circumventing conventional distance metrics through a graph-based splitting strategy that leverages spectral clustering to characterize the manifold structure of samples within the feature space. Following this, a "point-plane" fusion mechanism is introduced: SHAP (Shapley Additive Explanations) values derived from an eXtreme Gradient Boosting (XGBoost) model are utilized to quantify the global contribution of each wavelength, thereby facilitating the selection of key discrete wavelengths (points). Simultaneously, multi-scale pyramid features are incorporated to extract local texture and shape information (representing the 'planes') from the spectra via hierarchical statistical pooling, resulting in a more refined representation of NIRS data. Ultimately, the XGBoost model is implemented for classifying base liquor grades. On the graph-based hold-out partition, the final SHAP–Pyramid–XGBoost model achieved an Accuracy of 0.9688 and a Macro-F1 score of 0.9696. Repeated nested stratified five-fold cross-validation with five repeats yielded a more conservative Accuracy of 0.9083 ± 0.0237 and a Macro-F1 score of 0.9063 ± 0.0241. Evaluation on three public spectroscopic benchmark datasets further indicated that the contribution of pyramid fusion was dependent on the dataset and wavelength-selection method. These results support promising internal discrimination performance on the present Baijiu dataset, while independent multi-site validation remains necessary.

基于SHAP和多尺度金字塔特征融合的近红外光谱判别白酒基酒等级
为了解决近红外光谱(NIRS)对中国白酒基酒进行分级的高维冗余问题,克服传统特征选择方法由于过度关注离散波长而经常丢失局部光谱形状信息的局限性,本研究提出了一种双特征优化框架。该方法首先通过基于图的分裂策略绕过传统的距离度量,该策略利用光谱聚类来表征特征空间内样本的流形结构。随后,引入了一种“点-平面”融合机制:利用极端梯度增强(XGBoost)模型导出的Shapley Additive Explanations (Shapley Additive Explanations)值来量化每个波长的全局贡献,从而促进关键离散波长(点)的选择。同时,结合多尺度金字塔特征,通过分层统计池从光谱中提取局部纹理和形状信息(代表“平面”),从而获得更精细的近红外数据表示。最后,实现了XGBoost模型对基酒等级进行分类。在基于图的hold-out分区上,最终的SHAP-Pyramid-XGBoost模型的准确率为0.9688,Macro-F1得分为0.9696。5次重复的重复巢式分层5重交叉验证结果更为保守,准确率为0.9083±0.0237,Macro-F1评分为0.9063±0.0241。对三个公共光谱基准数据集的评估进一步表明,金字塔融合的贡献取决于数据集和波长选择方法。这些结果支持在现有白酒数据集上有希望的内部识别性能,而独立的多站点验证仍然是必要的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Food Analytical Methods
Food Analytical Methods 农林科学-食品科技
CiteScore
6.00
自引率
3.40%
发文量
244
审稿时长
3.1 months
期刊介绍: Food Analytical Methods publishes original articles, review articles, and notes on novel and/or state-of-the-art analytical methods or issues to be solved, as well as significant improvements or interesting applications to existing methods. These include analytical technology and methodology for food microbial contaminants, food chemistry and toxicology, food quality, food authenticity and food traceability. The journal covers fundamental and specific aspects of the development, optimization, and practical implementation in routine laboratories, and validation of food analytical methods for the monitoring of food safety and quality.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书