Non-Destructive Geographical Traceability and Quality Control of Glycyrrhiza uralensis Using Near-Infrared Spectroscopy Combined with Support Vector Machine Model
Abstract
1. Introduction
- (1)
- A comprehensive NIR dataset was developed by non-destructively collecting spectral data of Glycyrrhiza uralensis samples from three major production regions (Gansu, Inner Mongolia, and Xinjiang) using a handheld NIR spectrometer (SW2960, OTO Photonics Inc., Hsinchu, Taiwan, China), covering both wild and cultivated resources.
- (2)
- A systematic modeling framework was constructed by exhaustively optimizing spectral preprocessing techniques and comparing four machine learning algorithms (SVM, RF, kNN, and DT), demonstrating that the SVM model yields superior accuracy (>99%) and robustness for licorice traceability.
2. Materials and Methods
2.1. Sample Preparation and NIR Spectral Acquisition
2.2. Data Processing and Model Establishment
2.2.1. Dataset Partitioning and Spectral Preprocessing
2.2.2. Model Construction
2.3. Performance Evaluation
3. Results
3.1. Spectral Analysis
3.2. Model Performance with Different Preprocessing
3.3. Comparison of Classification Models
3.4. Chemical Composition Interpretation
4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| NIR | Near-Infrared |
| SVM | Support Vector Machine |
| Gansu | Gansu Province |
| Inner Mongolia | Inner Mongolia Autonomous Region |
| Xinjiang | Xinjiang Uygur Autonomous Region |
| HPLC | High-performance liquid chromatography |
| LC-MS | liquid chromatography–mass spectrometry |
| RF | Random Forest |
| DT | Decision Tree |
| kNN | k-Nearest Neighbors |
| KS | Kennard–Stone |
| SNV | Standard normal variate |
| MSC | Multiplicative scatter correction |
| AUC | Area Under the Receiver Operating Characteristic Curve |
| PCA | Principal Component Analysis |
| OA | Overall Accuracy |
| RBF | Radial Basis Function |
References
- Park, Y.S.; Kang, S.M.; Kim, Y.J.; Lee, I.J. Exploring the dietary and therapeutic potential of licorice (Glycyrrhiza uralensis Fisch.) sprouts. J. Ethnopharmacol. 2024, 328, 118101. [Google Scholar] [CrossRef]
- Zhong, C.; Chen, C.; Gao, X.; Tan, C.; Bai, H.; Ning, K. Multi-omics profiling reveals comprehensive microbe–plant–metabolite regulation patterns for medicinal plant Glycyrrhiza uralensis Fisch. Plant Biotechnol. J. 2022, 20, 1874–1887. [Google Scholar] [CrossRef]
- Shi, G.; Kong, J.; Wang, Y.; Xuan, Z.; Xu, F. Glycyrrhiza uralensis Fisch. alleviates dextran sulfate sodium-induced colitis in mice through inhibiting of NF-κB signaling pathways and modulating intestinal microbiota. J. Ethnopharmacol. 2022, 298, 115640. [Google Scholar] [CrossRef]
- Ding, Y.; Brand, E.; Wang, W.; Zhao, Z. Licorice: Resources, applications in ancient and modern times. J. Ethnopharmacol. 2022, 298, 115594. [Google Scholar] [CrossRef]
- Han, Y.; Wu, S.; Zhou, H.; Lu, X.; Cheng, S.; Li, J.; Su, L.Y. Glycyrrhiza uralensis Fisch: A novel source of analgesic activity through NaV1.8 sodium channel modulation. Food Res. Int. 2025, 222, 117620. [Google Scholar] [CrossRef]
- Zuo, J.; Meng, T.; Wang, Y.; Tang, W. A review of the antiviral activities of glycyrrhizic acid, glycyrrhetinic acid and glycyrrhetinic acid monoglucuronide. Pharmaceuticals 2023, 16, 641. [Google Scholar] [CrossRef] [PubMed]
- Bhat, A.A.; Moglad, E.; Afzal, M.; Agrawal, N.; Thapa, R.; Almalki, W.H.; Gupta, G. The anticancer journey of liquiritin: Insights into its mechanisms and therapeutic prospects. Curr. Med. Chem. 2025, 32, 6026–6041. [Google Scholar] [CrossRef]
- Husain, I.; Bala, K.; Khan, I.A.; Khan, S.I. A review on phytochemicals, pharmacological activities, drug interactions, and associated toxicities of licorice (Glycyrrhiza sp.). Food Front. 2021, 2, 449–485. [Google Scholar] [CrossRef]
- Ain, N.U.; Khan, B.; Zhu, K.; Ji, W.; Tian, H.; Yu, X.; Zhang, Z. Fabrication of mesoporous silica nanoparticles for releasable delivery of licorice polysaccharide at the acne site in topical application. Carbohydr. Polym. 2024, 339, 122250. [Google Scholar] [CrossRef]
- Cui, X.; Lou, L.; Zhang, Y.; Yan, B. Study of the distribution of Glycyrrhiza uralensis production areas as well as the factors affecting yield and quality. Sci. Rep. 2023, 13, 5160. [Google Scholar] [CrossRef] [PubMed]
- Zhu, M.; Chen, H.; Si, J.; Wu, L. Effect of cultivation mode on bacterial and fungal communities of Dendrobium catenatum. BMC Microbiol. 2022, 22, 221. [Google Scholar] [CrossRef]
- Sharma, R.; Singla, R.K.; Banerjee, S.; Sharma, R. Revisiting licorice as a functional food in the management of neurological disorders: Bench to trend. Neurosci. Biobehav. Rev. 2023, 155, 105452. [Google Scholar] [CrossRef]
- Jiang, Y.; Wei, S.; Ge, H.; Zhang, Y.; Wang, H.; Wen, X.; Li, P. Advances in the identification methods of food-medicine homologous herbal materials. Foods 2025, 14, 608. [Google Scholar] [CrossRef]
- Pan, S.; Zhang, X.; Xu, W.; Yin, J.; Gu, H.; Yu, X. Rapid on-site identification of geographical origin and storage age of tangerine peel by near-infrared spectroscopy. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2022, 271, 120936. [Google Scholar] [CrossRef]
- Liu, A.; Zhou, J.; Luo, Y.; Li, Y.; Yang, Y.; Meng, Z.; Li, P. Separation and detection of ginsenosides: Challenges, industrial implications, and developments. Food Res. Int. 2025, 221, 117069. [Google Scholar] [CrossRef]
- Yang, Y.; Wang, S.; Zhu, Q.; Qin, Y.; Zhai, D.; Lian, F.; Li, P. Non-destructive geographical traceability of American ginseng using near-infrared spectroscopy combined with a novel deep learning model. J. Food Compos. Anal. 2024, 136, 106736. [Google Scholar] [CrossRef]
- Zhang, W.; Kasun, L.C.; Wang, Q.J.; Zheng, Y.; Lin, Z. A review of machine learning for near-infrared spectroscopy. Sensors 2022, 22, 9764. [Google Scholar] [CrossRef] [PubMed]
- Yang, Y.; Qiu, C.; Zhou, D.; Qin, Y.; Li, M.; Zhai, D.; Cheng, X. NIR-GAN: A spectral data augmentation framework for medicine-food homologous herb identification. J. Food Compos. Anal. 2025, 148, 108328. [Google Scholar] [CrossRef]
- Yang, Y.; Zhou, J.; Liu, A.; Yang, Z.; Qin, Y.; Tian, F.; Zhai, D. Non-destructive origin tracing and ginsenoside quantification in American ginseng using hyperspectral imaging and mixed multi-task 1DCNN. J. Food Compos. Anal. 2025, 147, 108063. [Google Scholar] [CrossRef]
- Ding, R.; Yu, L.; Wang, C.; Zhong, S.; Gu, R. Quality assessment of traditional Chinese medicine based on data fusion combined with machine learning: A review. Crit. Rev. Anal. Chem. 2024, 54, 2618–2635. [Google Scholar] [CrossRef] [PubMed]
- Yu, B.; Liang, J.; Ju, J.W.W. Classification method for crack modes in concrete by acoustic emission signals with semi-parametric clustering and support vector machine. Measurement 2025, 244, 116474. [Google Scholar] [CrossRef]
- Gupta, D.; Hazarika, B.B.; Gupta, U.; Pedrycz, W. A robust fuzzy twin support vector machine with kernel-target alignment for binary classification. Eng. Appl. Artif. Intell. 2025, 161, 112189. [Google Scholar] [CrossRef]
- Chinese Pharmacopoeia Commission. Pharmacopoeia of the People’s Republic of China; China Medical Science Press: Beijing, China, 2020; Volume I, pp. 88–90. [Google Scholar]
- Lanjewar, M.G.; Parab, J.S.; Kamat, R.K. Machine learning based technique to predict the water adulterant in milk using portable near infrared spectroscopy. J. Food Compos. Anal. 2024, 131, 106270. [Google Scholar] [CrossRef]
- da Silva Pereira, E.; Cruz-Tirado, J.P.; Crippa, B.L.; Morasi, R.M.; de Almeida, J.M.; Barbin, D.F.; Silva, N.C.C. Portable near infrared (NIR) spectrometer coupled with machine learning to classify milk with subclinical mastitis. Food Control 2024, 163, 110527. [Google Scholar] [CrossRef]
- Zhu, R.; Wu, X.; Wu, B.; Gao, J. High-accuracy classification and origin traceability of peanut kernels based on near-infrared (NIR) spectroscopy using Adaboost-Maximum uncertainty linear discriminant analysis. Curr. Res. Food Sci. 2024, 8, 100766. [Google Scholar] [CrossRef]
- Zhu, Y.; Fan, S.; Zuo, M.; Zhang, B.; Zhu, Q.; Kong, J. Discrimination of new and aged seeds based on on-line near-infrared spectroscopy technology combined with machine learning. Foods 2024, 13, 1570. [Google Scholar] [CrossRef]
- Li, J.; Qian, J.; Chen, J.; Ruiz-Garcia, L.; Dong, C.; Chen, Q.; Zhao, Z. Recent advances of machine learning in the geographical origin traceability of food and agro-products: A review. Compr. Rev. Food Sci. Food Saf. 2025, 24, e70082. [Google Scholar] [CrossRef]
- Zhao, Q.; Miao, P.; Liu, C.; Yu, Y.; Li, Z. Accurate and non-destructive identification of origins for lily using near-infrared hyperspectral imaging combined with machine learning. J. Food Compos. Anal. 2024, 129, 106080. [Google Scholar] [CrossRef]
- Chychkarov, Y.; Serhiienko, A.; Syrmamiikh, I.; Kargin, A. Handwritten digits recognition using SVM, KNN, RF and deep learning neural networks. CMIS 2021, 2864, 496–509. [Google Scholar] [CrossRef]
- Meena, D.; Chakraborty, S.; Mitra, J. Geographical origin identification of red chili powder using NIR spectroscopy combined with SIMCA and machine learning algorithms. Food Anal. Methods 2024, 17, 1005–1023. [Google Scholar] [CrossRef]
- Yang, Y.; Wu, Y.; Li, W.; Liu, X.; Zheng, J.; Zhang, W.; Chen, Y. Determination of geographical origin and icariin content of Herba Epimedii using near infrared spectroscopy and chemometrics. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2018, 191, 233–240. [Google Scholar] [CrossRef]
- Airlangga, G. Analysis of machine learning classifiers for speaker identification: A study on SVM, random forest, KNN, and decision tree. J. Comput. Netw. Archit. High Perform. Comput. 2024, 6, 430–438. [Google Scholar] [CrossRef]
- Rodrigues, I.; Parayil, A.; Shetty, T.; Mirza, I. Use of linear discriminant analysis (LDA), K nearest neighbours (KNN), decision tree (CART), random forest (RF), Gaussian naive bayes (NB), support vector machines (SVM) to predict admission for post graduation courses. In Proceedings of the International Conference on Recent Advances in Computational Techniques (IC-RACT). In Proceedings of the International Conference on Recent Advances in Computational Techniques (IC-RACT) 2020, Online, 26–27 June 2020. [Google Scholar] [CrossRef]
- Nugrahaeni, R.A.; Mutijarsa, K. Comparative analysis of machine learning KNN, SVM, and random forests algorithm for facial expression classification. In Proceedings of the 2016 International Seminar on Application for Technology of Information and Communication (ISemantic); IEEE: Piscataway, NJ, USA, 2016; pp. 163–168. [Google Scholar] [CrossRef]
- De Hond, A.A.; Steyerberg, E.W.; Van Calster, B. Interpreting area under the receiver operating characteristic curve. Lancet Digit. Health 2022, 4, e853–e855. [Google Scholar] [CrossRef] [PubMed]
- Han, Q.L.; Lu, J.F.; Zhu, J.J.; Lin, L.; Zheng, Z.; Jiang, S.T. Non-destructive detection of freshness in crayfish (Procambarus clarkii) based on near-infrared spectroscopy combined with deep learning. Food Control 2025, 168, 110858. [Google Scholar] [CrossRef]
- Li, P.; Wang, S.; Yu, L.; Liu, A.; Zhai, D.; Yang, Z.; Yang, Y. Non-destructive origin and ginsenoside analysis of American ginseng via NIR and deep learning. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2025, 334, 125913. [Google Scholar] [CrossRef]
- Yan, T.; Duan, L.; Chen, X.; Gao, P.; Xu, W. Application and interpretation of deep learning methods for the geographical origin identification of Radix Glycyrrhizae using hyperspectral imaging. RSC Adv. 2020, 10, 41936–41945. [Google Scholar] [CrossRef] [PubMed]
- Zhu, Y.; Chen, X.; Wang, S.; Liang, S.; Chen, C. Simultaneous measurement of contents of liquirtin and glycyrrhizic acid in liquorice based on near infrared spectroscopy. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2018, 196, 209–214. [Google Scholar] [CrossRef]
- Cai, W.; Li, X.; Ma, Y.; Liao, Y.; Yu, B.; Li, R. Origin traceability and quality assessment of licorice in Asia based on multidimensional fingerprinting and enhanced by deep learning. Food Chem. 2025, 494, 145997. [Google Scholar] [CrossRef]
- Li, Y.; Ren, Z.; Zhao, C.; Liang, G. Geographical origin traceability of navel oranges based on near-infrared spectroscopy combined with deep learning. Foods 2025, 14, 484. [Google Scholar] [CrossRef]
- Guo, W.; Cheng, M.; Dong, X.; Liu, C.; Miao, Y.; Du, P.; Liu, L. Analysis of flavor substances changes during fermentation of Chinese spicy cabbage based on GC-IMS and PCA. Food Res. Int. 2024, 192, 114751. [Google Scholar] [CrossRef]
- Li, H.; Zhang, Y.; Dai, G.; Zhaxi, C.; Wang, Y.; Wang, S. Identification and quantification of compounds with angiotensin-converting enzyme inhibitory activity in licorice by UPLC-MS. Food Chem. 2023, 429, 136962. [Google Scholar] [CrossRef]
- Ren, K.; Wang, R.; Fang, S.; Ren, S.; Hua, H.; Wang, D.; Liu, X. Effect of CYP3A inducer/inhibitor and licorice on hepatotoxicity and in vivo metabolism of main alkaloids of Euodiae Fructus based on UPLC-Q-Exactive-MS. J. Ethnopharmacol. 2023, 303, 116005. [Google Scholar] [CrossRef]
- Guo, Y.; Wei, Y.; Sun, S.; Yang, D.; Lv, S. Qualitative analysis of licorice and strychnine decoction before and after combination using UPLC-QE-Orbitrap-MS. Phytochem. Anal. 2024, 35, 1323–1344. [Google Scholar] [CrossRef]
- Zhang, D.; Liu, Y.; Yang, Z.; Song, X.; Ma, Y.; Zhao, J.; Fan, L. Widely target metabolomics analysis of the differences in metabolites of licorice under drought stress. Ind. Crops Prod. 2023, 202, 117071. [Google Scholar] [CrossRef]
- Chen, X.; Cheng, G.; Liu, S.; Meng, S.; Jiao, Y.; Zhang, W.; Xu, J. Probing 1D convolutional neural network adapted to near-infrared spectroscopy for efficient classification of mixed fish. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2022, 279, 121350. [Google Scholar] [CrossRef]
- Lu, S.; Zhang, M.; Shen, D.; Deng, D.; Rui, L. Advancing spices quality with artificial intelligence: Research progress and future prospects. Food Rev. Int. 2025, 1–32. [Google Scholar] [CrossRef]
- Liu, X.; Liu, X.; Wang, J.; Zang, D.; Yang, Y.; Chen, Q.; Guo, D.A. Machine learning and chemometric methods for high-throughput authentication of 53 root and rhizome Chinese herbal using ATR-FTIR fingerprints. J. Chromatogr. B 2025, 1260, 124630. [Google Scholar] [CrossRef] [PubMed]
- Feng, L.; Wu, B.; Zhu, S.; He, Y.; Zhang, C. Application of visible/infrared spectroscopy and hyperspectral imaging with machine learning techniques for identifying food varieties and geographical origins. Front. Nutr. 2021, 8, 680357. [Google Scholar] [CrossRef] [PubMed]
- Zhai, D.; Zhou, J.; Ma, J.; Liu, A.; Liu, J.; Meng, Z.; Li, P. Rapid identification of adulteration in American ginseng powder using near-infrared spectroscopy combined with machine learning. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2025, 350, 127409. [Google Scholar] [CrossRef]
- Nardecchia, A.; Presutto, R.; Bucci, R.; Marini, F.; Biancolillo, A. Authentication of the geographical origin of “Vallerano” chestnut by near infrared spectroscopy coupled with chemometrics. Food Anal. Methods 2020, 13, 1782–1790. [Google Scholar] [CrossRef]
- Qiao, L.; Mu, Y.; Lu, B.; Tang, X. Calibration maintenance application of near-infrared spectrometric model in food analysis. Food Rev. Int. 2023, 39, 1628–1644. [Google Scholar] [CrossRef]
- Heinen, M.; Schneider, H.M.; Shan, K.; Bakker, G.; Bakema, G. The effect of a compacted subsoil layer on the development of the maize root system. Soil Tillage Res. 2025, 254, 106763. [Google Scholar] [CrossRef]
- Hao, Y.; Luo, C.; Li, T.; Zhang, J.; Chen, H. Adversarial transfer learning-based hybrid recurrent network for air quality prediction. Int. J. Intell. Syst. 2025, 2025, 6014262. [Google Scholar] [CrossRef]







| Model | Preprocessing | OA (%) | P (%) | R (%) | F1 (%) | AUC (%) |
|---|---|---|---|---|---|---|
| SVM | 0-2-0-1 | 99.81 ± 0.43 | 99.92 ± 0.19 | 99.70 ± 0.67 | 99.81 ± 0.43 | 100 ± 0.00 |
| DT | 2-2-0-0 | 87.10 ± 2.05 ** | 84.20 ± 2.45 ** | 84.08 ± 3.06 ** | 83.77 ± 2.76 ** | 92.87 ± 2.15 ** |
| kNN | 0-2-0-2 | 98.09 ± 3.49 * | 98.59 ± 3.01 | 97.06 ± 6.04 * | 97.73 ± 4.54 * | 99.83 ± 0.39 |
| RF | 0-2-0-1 | 99.23 ± 0.66 * | 99.46 ± 0.54 * | 98.78 ± 1.15* | 99.09 ± 0.88 * | 99.82 ± 0.20 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Liu, A.; Meng, Z.; Ma, J.; Liu, J.; Wang, H.; Li, Y.; Yang, Y.; Liu, N.; Hui, M.; Zhai, D.; et al. Non-Destructive Geographical Traceability and Quality Control of Glycyrrhiza uralensis Using Near-Infrared Spectroscopy Combined with Support Vector Machine Model. Foods 2026, 15, 411. https://doi.org/10.3390/foods15030411
Liu A, Meng Z, Ma J, Liu J, Wang H, Li Y, Yang Y, Liu N, Hui M, Zhai D, et al. Non-Destructive Geographical Traceability and Quality Control of Glycyrrhiza uralensis Using Near-Infrared Spectroscopy Combined with Support Vector Machine Model. Foods. 2026; 15(3):411. https://doi.org/10.3390/foods15030411
Chicago/Turabian StyleLiu, Anqi, Zibo Meng, Jiayi Ma, Jinfeng Liu, Haonan Wang, Yingbo Li, Yu Yang, Na Liu, Ming Hui, Dandan Zhai, and et al. 2026. "Non-Destructive Geographical Traceability and Quality Control of Glycyrrhiza uralensis Using Near-Infrared Spectroscopy Combined with Support Vector Machine Model" Foods 15, no. 3: 411. https://doi.org/10.3390/foods15030411
APA StyleLiu, A., Meng, Z., Ma, J., Liu, J., Wang, H., Li, Y., Yang, Y., Liu, N., Hui, M., Zhai, D., & Li, P. (2026). Non-Destructive Geographical Traceability and Quality Control of Glycyrrhiza uralensis Using Near-Infrared Spectroscopy Combined with Support Vector Machine Model. Foods, 15(3), 411. https://doi.org/10.3390/foods15030411

