{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,19]],"date-time":"2026-08-19T16:11:32Z","timestamp":1787155892723,"version":"build-2736575974"},"reference-count":36,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2026,2,6]],"date-time":"2026-02-06T00:00:00Z","timestamp":1770336000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Plant Sci."],"abstract":"<jats:sec>\n                    <jats:title>Introduction<\/jats:title>\n                    <jats:p>Tannin content is a key factor influencing the taste of walnuts and serves as an important index for evaluating walnut quality. Rapid and accurate detection of tannin levels in walnut kernels is therefore significant for quality assessment and management. This study aims to develop an efficient method for predicting tannin content in walnut kernels using near-infrared (NIR) spectroscopy combined with machine learning techniques.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Methods<\/jats:title>\n                    <jats:p>A total of 180 samples of \u2018Wen 185\u2019 walnut kernels were used as the research objects. The NIR reflectance spectra of the samples were measured within the range of 4000\u201310000 cm\u207b\u00b9. The spectral data were processed using mathematical transformations and continuous wavelet transform (CWT), both separately and in combination. Pearson correlation analysis was applied to extract characteristic bands related to tannin content. Based on these features, a random forest (RF) model was constructed to quantitatively predict tannin content. Additionally, the SHAP algorithm was employed to interpret and visualize the machine learning model.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Results<\/jats:title>\n                    <jats:p>The results indicated that within the spectral range of 4000\u201310000 cm\u207b\u00b9, the NIR reflectance of walnut kernels increased with tannin content under different orchard management modes. Both first-order differential transformation and CWT, as well as their combination, significantly enhanced the correlation between spectral data and tannin content. The combination of first-order differential transformation and CWT notably improved the model's prediction performance. The optimal prediction model was achieved using the feature lg\u2019(1\/R)_CWT_28, with training set metrics of R\u00b2 = 0.880, RMSE = 1.188, RPD = 2.904, and validation set metrics of R\u00b2 = 0.831, RMSE = 1.620, RPD = 2.459.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Discussion<\/jats:title>\n                    <jats:p>The study demonstrates that combining mathematical transformations with wavelet transform can effectively improve the prediction accuracy of models for tannin content in walnut kernels. The RF model based on processed spectral data showed strong performance, indicating its potential for rapid and non-destructive tannin quantification. The use of SHAP algorithm further enhances model interpretability. These findings provide a valuable reference for the accurate prediction of tannin content in walnut kernels and may support quality control in walnut production and processing.<\/jats:p>\n                  <\/jats:sec>","DOI":"10.3389\/fpls.2026.1746869","type":"journal-article","created":{"date-parts":[[2026,2,6]],"date-time":"2026-02-06T06:54:11Z","timestamp":1770360851000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["Near-infrared prediction of tannin content in walnut kernels using wavelet transform combined with interpretable machine learning models"],"prefix":"10.3389","volume":"17","author":[{"given":"Qiuhao","family":"Xia","sequence":"first","affiliation":[{"name":"College of Horticulture and Forestry, Tarim University","place":["Alar, China"]},{"name":"Efficient and High-Quality Cultivation and Deep Processing Technology of Characteristic Fruit Trees in Southern Xinjiang, National Local Joint Engineering Laboratory","place":["Alar, China"]},{"name":"Xinjiang Production and Construction Corps, Southern Xinjiang Characteristic Forest and Fruit Technology Innovation Center","place":["Alar, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Langqin","family":"Luo","sequence":"additional","affiliation":[{"name":"Efficient and High-Quality Cultivation and Deep Processing Technology of Characteristic Fruit Trees in Southern Xinjiang, National Local Joint Engineering Laboratory","place":["Alar, China"]},{"name":"Xinjiang Production and Construction Corps, Southern Xinjiang Characteristic Forest and Fruit Technology Innovation Center","place":["Alar, China"]},{"name":"College of Life Science and Technology, Tarim University","place":["Alar, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yerhazi","family":"Yerzati","sequence":"additional","affiliation":[{"name":"College of Horticulture and Forestry, Tarim University","place":["Alar, China"]},{"name":"Efficient and High-Quality Cultivation and Deep Processing Technology of Characteristic Fruit Trees in Southern Xinjiang, National Local Joint Engineering Laboratory","place":["Alar, China"]},{"name":"Xinjiang Production and Construction Corps, Southern Xinjiang Characteristic Forest and Fruit Technology Innovation Center","place":["Alar, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Mian Muhammad","family":"Ahmed","sequence":"additional","affiliation":[{"name":"Efficient and High-Quality Cultivation and Deep Processing Technology of Characteristic Fruit Trees in Southern Xinjiang, National Local Joint Engineering Laboratory","place":["Alar, China"]},{"name":"Xinjiang Production and Construction Corps, Southern Xinjiang Characteristic Forest and Fruit Technology Innovation Center","place":["Alar, China"]},{"name":"College of Life Science and Technology, Tarim University","place":["Alar, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yonghao","family":"Chen","sequence":"additional","affiliation":[{"name":"Beijing Academy of Agricultural and Forestry Sciences Forestry Fruit Tree Research Institute","place":["Beijing, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Shiwei","family":"Wang","sequence":"additional","affiliation":[{"name":"School of Forestry and Landscape Architecture, Xinjiang Agricultural University","place":["Urumqi, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jiangnan","family":"Qin","sequence":"additional","affiliation":[{"name":"College of Horticulture and Forestry, Tarim University","place":["Alar, China"]},{"name":"Efficient and High-Quality Cultivation and Deep Processing Technology of Characteristic Fruit Trees in Southern Xinjiang, National Local Joint Engineering Laboratory","place":["Alar, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Liping","family":"Chen","sequence":"additional","affiliation":[{"name":"School of Information Engineering, Tarim University","place":["Aral, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Qiang","family":"Jin","sequence":"additional","affiliation":[{"name":"College of Horticulture and Forestry, Tarim University","place":["Alar, China"]},{"name":"Efficient and High-Quality Cultivation and Deep Processing Technology of Characteristic Fruit Trees in Southern Xinjiang, National Local Joint Engineering Laboratory","place":["Alar, China"]},{"name":"Xinjiang Production and Construction Corps, Southern Xinjiang Characteristic Forest and Fruit Technology Innovation Center","place":["Alar, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zhongzhong","family":"Guo","sequence":"additional","affiliation":[{"name":"College of Horticulture and Forestry, Tarim University","place":["Alar, China"]},{"name":"Efficient and High-Quality Cultivation and Deep Processing Technology of Characteristic Fruit Trees in Southern Xinjiang, National Local Joint Engineering Laboratory","place":["Alar, China"]},{"name":"Xinjiang Production and Construction Corps, Southern Xinjiang Characteristic Forest and Fruit Technology Innovation Center","place":["Alar, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Rui","family":"Zhang","sequence":"additional","affiliation":[{"name":"College of Horticulture and Forestry, Tarim University","place":["Alar, China"]},{"name":"Efficient and High-Quality Cultivation and Deep Processing Technology of Characteristic Fruit Trees in Southern Xinjiang, National Local Joint Engineering Laboratory","place":["Alar, China"]},{"name":"Xinjiang Production and Construction Corps, Southern Xinjiang Characteristic Forest and Fruit Technology Innovation Center","place":["Alar, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1965","published-online":{"date-parts":[[2026,2,6]]},"reference":[{"key":"B1","doi-asserted-by":"publisher","first-page":"843","DOI":"10.1271\/bbb.70.843","article-title":"Soy protein suppresses gene expression of acetyl-CoA carboxylase alpha from promoter PI in rat liver","volume":"70","author":"Aoki","year":"2006","journal-title":"Biosci. Biotechnol. Biochem."},{"key":"B2","doi-asserted-by":"publisher","first-page":"5","DOI":"10.1023\/A:1010933404324","article-title":"Random forests","volume":"45","author":"Breiman","year":"2001","journal-title":"Mach. Learn."},{"key":"B3","first-page":"40","article-title":"Determination of tannins in fruits using o-phenanthroline colorimetry","volume":"11","author":"Cai","year":"1997","journal-title":"Tianjin. Chem. Ind."},{"key":"B4","volume-title":"Classification and tannin content detection of wine grapes based on near-infrared hyperspectral imaging","author":"Cheng","year":"2020"},{"key":"B5","doi-asserted-by":"publisher","first-page":"2993","DOI":"10.3964\/j.issn.1000-0593(2024)10-2993-08","article-title":"Estimation of Spartina alterniflora leaf chlorophyll content based on continuous wavelet and random forest algorithm","volume":"44","author":"Guan","year":"2024","journal-title":"Spectrosc. Spectr. Anal."},{"key":"B6","doi-asserted-by":"publisher","first-page":"83","DOI":"10.11975\/j.issn.1002-6819.202407184","article-title":"Hyperspectral inversion of soil salinity in oasis tillage layer based on optimal mathematics and wavelet transform","volume":"41","author":"Guo","year":"2025","journal-title":"Trans. Chin. Soc. Agric. Eng."},{"key":"B7","doi-asserted-by":"publisher","first-page":"5115","DOI":"10.1021\/ac991301y","article-title":"Determination of condensed tannin monomers in environmental samples by capillary gas chromatography of acid depolymerization extracts","volume":"72","author":"Hernes","year":"2000","journal-title":"Anal. Chem."},{"key":"B8","doi-asserted-by":"publisher","first-page":"154","DOI":"10.14083\/j.issn.1001-4942.2025.04.019","article-title":"Estimation of SPAD value in rice based on CWT and BP neural network","volume":"57","author":"Hu","year":"2025","journal-title":"Shandong. Agric. Sci."},{"key":"B9","doi-asserted-by":"publisher","first-page":"243","DOI":"10.3969\/j.issn.1006-0464.2002.03.012","article-title":"Determination of tannin in food by spectrophotometry","volume":"26","author":"Huang","year":"2002","journal-title":"J. Nanchang. Univ. (Nat. Sci)."},{"key":"B10","doi-asserted-by":"publisher","first-page":"3493","DOI":"10.1021\/jf703573f","article-title":"Identification of spectral regions for quantification of red wine tannins with Fourier transform mid-infrared spectroscopy","volume":"56","author":"Jensen","year":"2008","journal-title":"J. Agric. Food Chem."},{"key":"B11","doi-asserted-by":"publisher","first-page":"26","DOI":"10.3321\/j.issn:1003-5214.1999.03.009","article-title":"Rapid determination method of oil iodine value","author":"Li","year":"1999","journal-title":"Fine. Chem."},{"key":"B12","doi-asserted-by":"publisher","DOI":"10.1016\/j.foodchem.2025.144392","article-title":"Unraveling almonds deterioration using whole-cell biosensor coupled with machine learning approaches and SHAP interpretation","volume":"484","author":"Li","year":"2025","journal-title":"Food Chem."},{"key":"B13","doi-asserted-by":"publisher","first-page":"166","DOI":"10.20048\/j.cnki.issn.1003-0174.2009.06.036","article-title":"Progress in research on nutritional value of walnut","volume":"24","author":"Li","year":"2009","journal-title":"Cereal Oil J. China"},{"key":"B14","doi-asserted-by":"publisher","first-page":"48","DOI":"10.3969\/j.issn.1002-204x.2024.06.011","article-title":"Prediction of nitrogen content in wolfberry leaves using hyperspectral reflectance","volume":"65","author":"Li","year":"2024","journal-title":"Ningxia. J. Agric. For. Sci. Technol."},{"key":"B15","doi-asserted-by":"publisher","first-page":"48","DOI":"10.3969\/j.issn.1002-204x.2024.06.011","article-title":"Prediction of nitrogen content in wolfberry leaves using hyperspectral reflectance","volume":"65","author":"Li","year":"2024","journal-title":"Ningxia. J. Agric. For. Sci. Technol."},{"key":"B16","doi-asserted-by":"publisher","DOI":"10.1016\/j.compag.2021.106293","article-title":"Predicting copper content in chicory leaves using hyperspectral data with continuous wavelet transforms and partial least squares","volume":"187","author":"Lin","year":"2021","journal-title":"Comput. Electron. Agric."},{"key":"B17","doi-asserted-by":"publisher","first-page":"190","DOI":"10.3969\/j.issn.0517-6611.2023.09.045","article-title":"Preliminary establishment of an astringency evaluation system of walnut based on tannin content","volume":"51","author":"Liu","year":"2023","journal-title":"Anhui. Agric. Sci. Bull."},{"key":"B18","first-page":"1","article-title":"Prediction of nitrogen content in rice leaves based on DWT-DE transformation and AHAELM algorithm","author":"Liu","year":"","journal-title":"Trans. Chin. Soc. Agric. Mach."},{"key":"B19","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.1705.07874","article-title":"Unified approach to interpreting model predictions","author":"Lundberg","year":"2017"},{"key":"B20","doi-asserted-by":"publisher","first-page":"4219","DOI":"10.19812\/j.cnki.jfsq11-5956\/ts.2022.13.048","article-title":"Research and application of near-infrared spectroscopy in apple detection","volume":"13","author":"Ma","year":"2022","journal-title":"J. Food Saf. Qual."},{"key":"B21","doi-asserted-by":"publisher","first-page":"144","DOI":"10.11975\/j.issn.1002-6819.202307092","article-title":"Comparison of hyperspectral inversion methods for heavy metal content in soil of lead-zinc tailings area in Hebei","volume":"39","author":"Mao","year":"2023","journal-title":"Trans. Chin. Soc. Agric. Eng."},{"key":"B22","doi-asserted-by":"publisher","first-page":"171","DOI":"10.14088\/j.cnki.issn0439-8114.2022.14.031","article-title":"Visualization of chlorophyll content in tomato leaves based on hyperspectral imaging","volume":"61","author":"Meng","year":"2022","journal-title":"Hubei. Agric. Sci."},{"key":"B23","volume-title":"Chinese Walnut Germplasm Resources","author":"Pei","year":"2011"},{"key":"B24","volume-title":"Pomology: Special Lectures on Fruit Tree Cultivation","author":"Qu","year":"1980"},{"key":"B25","doi-asserted-by":"publisher","first-page":"4674","DOI":"10.5846\/stxb202201140141","article-title":"Aboveground biomass inversion of Kandelia obovata mangrove in Maowei Sea, Beibu Gulf based on XGBoost algorithm","volume":"43","author":"Tan","year":"2023","journal-title":"Acta Ecol. Sin."},{"key":"B26","doi-asserted-by":"publisher","first-page":"3235","DOI":"10.3964\/j.issn.1000-0593(2022)10-3235-08","article-title":"Hyperspectral monitoring of total nitrogen content in fresh tea leaves based on wavelet analysis","volume":"42","author":"Wang","year":"2022","journal-title":"Spectrosc. Spectr. Anal."},{"key":"B27","doi-asserted-by":"publisher","first-page":"549","DOI":"10.3964\/j.issn.1000-0593(2023)02-0549-08","article-title":"Quantitative inversion of chlorophyll content in pitaya stems and leaves based on discrete wavelet\u2013differential transform algorithm","volume":"43","author":"Wang","year":"2023","journal-title":"Spectrosc. Spectr. Anal."},{"key":"B28","doi-asserted-by":"publisher","first-page":"1922","DOI":"10.3964\/j.issn.1000-0593(2014)07-1922-05","article-title":"Estimation of organic matter content in northern meadow soils based on wavelet transform and PLS coupled model","volume":"34","author":"Wang","year":"2014","journal-title":"Spectrosc. Spectr. Anal."},{"key":"B29","doi-asserted-by":"publisher","first-page":"1048","DOI":"10.1079\/BJN20061776","article-title":"Tissue-specific regulation of acetyl-CoA carboxylase gene expression by dietary soy protein isolate in rats","volume":"95","author":"Xiao","year":"2006","journal-title":"Br. J. Nutr."},{"key":"B30","first-page":"36","article-title":"Determination of tannin in hops by potassium ferricyanide absorbance method","volume":"20","author":"Yang","year":"1989","journal-title":"J. Shandong. Agric. Univ."},{"key":"B31","doi-asserted-by":"publisher","first-page":"2280","DOI":"10.13227\/j.hjkx.202304100","article-title":"Hyperspectral inversion of soil organic matter content based on CWT, SHAP, and XGBoost","volume":"45","author":"Ye","year":"2024","journal-title":"Environ. Sci."},{"key":"B32","doi-asserted-by":"publisher","first-page":"63","DOI":"10.1016\/S1003-6326(06)60040-X","article-title":"Sugar content prediction of apple using near-infrared spectroscopy treated by wavelet transform","volume":"26","author":"Ying","year":"2006","journal-title":"Spectrosc. Spectr. Anal."},{"key":"B33","doi-asserted-by":"publisher","first-page":"1278","DOI":"10.3964\/j.issn.1000-0593(2022)04-1278-07","article-title":"Estimation of soil organic matter content based on continuous wavelet transform","volume":"42","author":"Yumiti\u00b7","year":"2022","journal-title":"Spectrosc. Spectr. Anal."},{"key":"B34","doi-asserted-by":"publisher","DOI":"10.3964\/j.issn.1000-0593(2011)04-0951-04","article-title":"Research on nondestructive measurement of soluble tannin content in astringent persimmon using Vis\u2013NIR diffuse reflectance spectroscopy","volume":"31","author":"Zhang","year":"2011","journal-title":"Spectrosc. Spectr. Anal."},{"key":"B35","first-page":"903","article-title":"Prediction of brown soil organic matter based on visible\u2013near-infrared hyperspectral stacking generalization model","volume":"43","author":"Zhang","year":"2023","journal-title":"Spectrosc. Spectr. Anal."},{"key":"B36","doi-asserted-by":"publisher","first-page":"265","DOI":"10.11975\/j.issn.1002-6819.202207160","article-title":"Monitoring heavy metal pollution in wheat soil using hyperspectral remote sensing","volume":"39","author":"Zhong","year":"2023","journal-title":"Trans. Chin. Soc. Agric. Eng."}],"updated-by":[{"DOI":"10.3389\/fpls.2026.1806058","type":"correction","label":"Correction","source":"publisher","updated":{"date-parts":[[2026,2,27]],"date-time":"2026-02-27T00:00:00Z","timestamp":1772150400000}}],"container-title":["Frontiers in Plant Science"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fpls.2026.1746869\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,2,27]],"date-time":"2026-02-27T12:01:32Z","timestamp":1772193692000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fpls.2026.1746869\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,2,6]]},"references-count":36,"alternative-id":["10.3389\/fpls.2026.1746869"],"URL":"https:\/\/doi.org\/10.3389\/fpls.2026.1746869","relation":{},"ISSN":["1664-462X"],"issn-type":[{"value":"1664-462X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,2,6]]},"article-number":"1746869"}}