Rapid identification of Qingke liquor based on Bayesian algorithm-optimized transformer combined with bidirectional gated recurrent unit

  • XU Shiyong ,
  • ZHANG Shizhi ,
  • SHI Ting ,
  • ZHANG Mingjin
Expand
  • 1(College of Chemistry and Chemical Engineering, Qinghai Normal University, Xining 810016, China)
    2(School of Chemistry and Materials Science, Qinghai Minzu University, Xining 810007, China)

Received date: 2025-09-03

  Revised date: 2025-10-28

  Online published: 2026-06-24

Abstract

In response to the phenomenon of adulteration in the market of liquor, the search for rapid, non-destructive and scientific methods for identifying the quality of liquor has become one of the research hotspots in the relevant fields.This study aims to quickly identify the “Chinese Huzhu Qingke Liquor” (CHQL), a product protected by geographical indication in our country.Three types of liquor samples, namely CHQL, other brand Qingke Liquor (OBQL), and non-Qingke based Baijiu (NQBB), were collected.The spectral characteristics of these three types of liquor were studied using UV-near-infrared fusion spectroscopy.An attempt was made to establish a rapid identification method for CHQL.Firstly, the UV spectra and near-infrared spectra of the samples were collected, and the spectra were fused at the data level.Then, four preprocessing methods (standard normal transformation, Savitzky-Golay smoothing, first-order derivative, and second-order derivative) and three classification models (BiGRU, Bayes-BiGRU, Bayes-Transformer-BiGRU) were respectively examined for the identification effect of CHQL.The results show that the data obtained after second-order derivative preprocessing combined with Bayes-Transformer-BiGRU has the best classification recognition effect, with classification accuracy of 94.12%, response time of 492.89 seconds, and PAM of 0.87.This indicates that Bayes-Transformer-BiGRU combined with UV-NIR fusion spectroscopy can quickly, non-destructively and accurately distinguish CHQL.

Cite this article

XU Shiyong , ZHANG Shizhi , SHI Ting , ZHANG Mingjin . Rapid identification of Qingke liquor based on Bayesian algorithm-optimized transformer combined with bidirectional gated recurrent unit[J]. Food and Fermentation Industries, 2026 , 52(11) : 339 -345 . DOI: 10.13995/j.cnki.11-1802/ts.044417

References

[1] CHEN L H, CUI C F, WANG S X, et al.Insight into the dynamic changes and relationship between organic acids, amino acids and microbial communities during the fermentation of highland barley wine[J].Journal of Food Composition and Analysis, 2025, 140:107260.
[2] 于翔, 姜珊, 贾儒林, 等.基于UV结合机器学习对白城地区制假白酒案中原料酒的溯源研究[J].山东化工, 2025, 54(9):203-206.
YU X, JIANG S, JIA R L, et al.Study on the traceability of raw liquor in the case of counterfeit liquor in Baicheng area based on UV combined with machine learning[J].Shandong Chemical Industry, 2025, 54(9):203-206.
[3] HE M, CHEN X L, ZHANG J, et al.Identification of liquors from the same brand based on ultraviolet, near-infrared and fluorescence spectroscopy combined with chemometrics[J].Food Chemistry, 2023, 400:134064.
[4] WANG X, ESQUERRE C, DOWNEY G, et al.Development of chemometric models using Vis-NIR and Raman spectral data fusion for assessment of infant formula storage temperature and time[J].Innovative Food Science & Emerging Technologies, 2021, 67:102551.
[5] 王微娜, 张炉, 尹华全, 等.基于融合光谱的菜籽油氧化稳定性快速评价[J].中国农业大学学报, 2025, 30(4):81-95.
WANG W N, ZHANG L, YIN H Q, et al.Rapid evaluation of the oxidative stability of rapeseed oil based on fusion spectroscopy[J].Journal of China Agricultural University, 2025, 30(4):81-95.
[6] 赵玉霞, 张明锦, 王茹, 等.反向传播神经网络结合紫外-近红外融合光谱对“互助”青稞酒的判别研究[J].光谱学与光谱分析, 2025, 45(5):1290-1299.
ZHAO Y X, ZHANG M J, WANG R, et al.Discriminative study on Huzhu Qingke liquor by back propagation neural network combined with ultraviolet-near infrared fusion spectroscopy[J].Spectroscopy and Spectral Analysis, 2025, 45(5):1290-1299.
[7] YUAN M J, DING L Z, BAI R B, et al.Feature-level hyperspectral data fusion with CNN modeling for non-destructive authentication of “Weilian” from different origins[J].Microchemical Journal, 2025, 215:114201.
[8] VAN ZYL D J, DUNAISKI M, TEGALLY H, et al.Alignment-free viral sequence classification at scale[J].BMC Genomics, 2025, 26(1):389.
[9] KHODAEI A, ESKANDARI S, SHARIFI H, et al.PRCFX-DT:A new graph-based approach for feature selection and classification of genomic sequences[J].BMC Bioinformatics, 2025, 26(1):159.
[10] 王玉堂, 何为, 高迩倪, 等.基于上下文分析的长期序列依赖性模型优化方法及系统:中国, CN118468936A[P].2024-08-09.
HE Y T, HE W, GAO E N, et al.A method and system for optimizing long-term sequence dependency models based on context analysis:China, CN118468936A[P].2024-08-09.
[11] CHEN J Y, MA X H, LI S K, et al.A hybrid parallel computing architecture based on CNN and transformer for music genre classification[J].Electronics, 2024, 13(16):3313.
[12] YANG Y J, SUN L M, ZHANG N T.An MTBWO algorithm based on BiGRU model[J].Electronics, 2024, 13(7):1195.
[13] 付锦程, 杨仕友.基于贝叶斯优化和特征融合混合模型的短期风电功率预测[J].计算机应用, 2026,46(2):652-658.
FU J C, YANG S Y.Short-term wind power prediction using hybrid model based on Bayesian optimization and feature fusion[J].Journal of computer applications, 2026,46(2):652-658.
[14] ONG P, JIAN J B, YIN J H, et al.Characteristic wavelength optimization for partial least squares regression using improved flower pollination algorithm[J].Spectrochimica Acta Part A:Molecular and Biomolecular Spectroscopy, 2023, 302:123095.
[15] KHATUN M S, AL MASUM A, ISLAM M H, et al.Short wave-near infrared spectroscopy for predicting soluble solid content in intact mango with variable selection algorithms and chemometric model[J].Journal of Food Composition and Analysis, 2024, 136:106745.
[16] ZHAO J W, CHEN Q S, HUANG X Y, et al.Qualitative identification of tea categories by near infrared spectroscopy and support vector machine[J].Journal of Pharmaceutical and Biomedical Analysis, 2006, 41(4):1198-1204.
[17] VASWANI A, SHAZEER N M, PARMAR N, et al.Attention is all you need[C].Proceedings of the 31 st Conference on Neural Information Processing Systems.USA, 2017.
[18] LI X, ZHANG F J, HAN L G.Signal reconstruction of arbitrarily lack of frequency bands from seismic wavefields based on deep learning[J].Applied Sciences, 2024, 14(11):4922.
[19] XIANG X Z, CHEN Y M, ABDEIN R, et al.Deep scene flow learning from point cloud with Transformer[J].Neurocomputing, 2025, 641:130350.
[20] SHAHRIARI B, SWERSKY K, WANG Z Y, et al.Taking the human out of the loop:A review of Bayesian optimization[J].Proceedings of the IEEE, 2016, 104(1):148-175.
[21] GUPTA V K, LALWANI S K, BHATI G S, et al.Bayesian optimization based neural architecture search for classification of gases/odors mixtures[J].IEEE Sensors Journal, 2024, 24(5):7119-7125.
[22] AYDEMIR O.A new performance evaluation metric for classifiers:Polygon area metric[J].Journal of Classification, 2021, 38(1):16-26.
[23] 沈沐傲, 陈露, 张鸣原, 等.基于中红外光谱技术的岩石分类研究[J].分析测试学报, 2025, 44(7):1273-1281.
SHEN M A, CHEN L, ZHANG M Y, et al.The study on rock classification based on mid-infrared spectroscopy[J].Journal of Instrumental Analysis, 2025, 44(7):1273-1281.
[24] LI S, SHEN X R, SHEN X, et al.Improving the accuracy of soil classification by using vis-NIR, MIR, and their spectra fusion[J].Remote Sensing, 2025, 17(9):1524.
[25] 苏媛媛, 姜雪, 仓义鹏, 等.紫外-可见光谱传感对高温大曲白酒真实性的准确鉴别[J].化学试剂, 2023, 45(10):8-13.
SU Y Y, JIANG X, CANG Y P, et al.Accurate identification of high-temperature daqu liquor by UV-vis sensor[J].Chemical Reagents, 2023, 45(10):8-13.
[26] 周涛. 基于近红外光谱法的白酒品质检测分析[D].晋中:山西农业大学, 2023.
ZHOU T.Detection and analysis of baijiu quality based on near infrared spectroscopy[D].Jinzhong:Shanxi Agricultural University, 2023.
[27] LIU H B, ZHANG F L, TAN Y, et al.Multi-scale quaternion CNN and BiGRU with cross self-attention feature fusion for fault diagnosis of bearing[J].Measurement Science and Technology, 2024, 35(8):086138.
[28] 张栩, 颜伟, 李辉, 等.基于QR-BiGRU神经网络与区间抗差增广状态估计的线路参数区间追踪估计[J].电工技术学报, 2024, 39(23):7406-7417;7553.
ZHANG X, YAN W, LI H, et al.Interval estimation and tracking method for transmission line parameters based on QR-BiGRU neural network and interval robust augmented state estimation[J].Transactions of China Electrotechnical Society, 2024, 39(23):7406-7417;7553.
[29] 李萌, 宗学军, 连莲, 等.基于CNN-ABC-BiGRU的火电厂数据分析与应用研究[J].电子设计工程, 2023, 31(22):11-15;20.
LI M, ZONG X J, LIAN L, et al.Data analysis and applied research of thermal power plant based on CNN-ABC-BiGRU[J].Electronic Design Engineering, 2023, 31(22):11-15;20.
[30] 邹智, 吴铁洲, 张晓星, 等.基于贝叶斯优化CNN-BiGRU混合神经网络的短期负荷预测[J].高电压技术, 2022, 48(10):3935-3945.
ZOU Z, WU T Z, ZHANG X X, et al.Short-term load forecast based on Bayesian optimized CNN-BiGRU hybrid neural networks[J].High Voltage Engineering, 2022, 48(10):3935-3945.
[31] 蒲嘉鹏, 方勇, 毕浪, 等.一种基于Bayes-Bi-GRU模型的隧道施工期围岩变形预测方法:中国, CN118536660A[P].2024-08-23.
PU J P, FANG Y, BI L, et al.A tunnel surrounding rock deformation prediction method during construction period based on the Bayes-Bi-GRU model:China, CN118536660A[P].2024-08-23.
[32] SONG C G.A novel stability discriminant model of landslide dams based on CNN-BiGRU optimized by attention mechanism[J].Landslides, 2025, 22(10):3509-3523.
[33] PANERU B, THAPA B, PANERU B, et al.EEG right & left voluntary hand movement-based virtual brain-computer interfacing keyboard using hybrid deep learning approach[J].Advanced Engineering Informatics, 2025, 65:103304.
Outlines

/

〈 〉