基于物理先验残差网络的茶叶轻元素极小样本XRF定量分析
Physics-Guided Residual Networks for Small-Sample XRF Quantification of Light Elements in Tea
摘要: 能量色散X射线荧光光谱(EDXRF)在农产品无损检测中具有重要应用前景,但茶叶等轻基体中轻元素(如Al、S、Ca)的定量分析常受制于强烈的基体效应(吸收–增强效应)。此外,在极小样本量条件下,常规数据驱动模型在处理高维光谱数据时面临严重的“维数灾难”与过拟合风险。为破解这一难题,本文提出了一种基于物理先验残差网络(Physics-Guided Residual Network, PGRN)的小样本定量分析方法。该架构采用两阶段融合策略:第一阶段,基于X射线物理先验知识,提取目标元素的净峰面积构建单变量物理底座(Physical Baseline),为模型提供基础的物理鲁棒性,有效规避小样本下的模型失效;第二阶段,结合标准正态变量变换(SNV)与稀疏机器学习算法(Lasso/ElasticNet),在包含相邻干扰元素的特定光谱感兴趣区(ROI)内,针对性地学习并补偿物理模型无法解释的基体效应残差。实验结果表明,与传统物理定量方法相比,PGRN实现了预测精度的显著提升。以受基体效应影响严重的硫(S)元素为例,其交叉验证决定系数(R2)从0.567显著提升至0.831,交叉验证均方根误差(RMSECV)大幅下降。该方法有效打破了小样本光谱分析的过拟合困境,为复杂基体下的高精度XRF定量分析提供了一种兼具数据驱动精度与物理可解释性的白盒新范式。
Abstract: Energy-dispersive X-ray fluorescence (EDXRF) spectrometry holds significant potential for the non-destructive testing of agricultural products. However, the quantitative analysis of light elements (e.g., Al, S, Ca) in light matrices such as tea leaves is frequently constrained by intense matrix effects (absorption-enhancement). Furthermore, under extremely small sample conditions, conventional data-driven models face the severe “curse of dimensionality” and high risks of overfitting when processing high-dimensional spectral data. To address this dilemma, a novel quantitative analysis method based on a Physics-Guided Residual Network (PGRN) is proposed. The architecture adopts a two-stage fusion strategy. In the first stage, guided by X-ray physical prior knowledge, a univariate physical baseline is established by extracting the net peak area of the target element, providing fundamental physical robustness. In the second stage, by combining Standard Normal Variate (SNV) transformation with the sparse Lasso machine learning algorithm, the matrix effect residuals are specifically extracted and compensated within targeted spectral regions of interest (ROIs) encompassing adjacent interfering elements. Experimental results demonstrate that PGRN achieves a significant improvement in prediction accuracy. Taking sulfur S, which is severely affected by matrix effects, as an example, the cross-validation coefficient of determination (R2) was significantly improved from 0.567 to 0.831, with a substantial decrease in RMSECV. This method effectively overcomes the overfitting bottleneck in small-sample spectral analysis, providing a novel white-box paradigm that integrates data-driven accuracy with physical interpretability for high-precision XRF quantification in complex matrices.
文章引用:邢竣博, 李野, 赵鹏. 基于物理先验残差网络的茶叶轻元素极小样本XRF定量分析[J]. 物理化学进展, 2026, 15(2): 91-101. https://doi.org/10.12677/japc.2026.152010

参考文献

[1] 陈宗懋. 我国茶产业质量安全和环境安全问题研究[J]. 农产品质量与安全, 2011(3): 5-7.
[2] 张明露, 黄聪薇, 赖飞. 贵州红茶中14种微量元素含量分析及健康风险评价[J]. 贵州农业科学, 2023, 51(5): 117-124.
[3] Marguí, E., Queralt, I. and Hidalgo, M. (2009) Application of X-Ray Fluorescence Spectrometry to Determination and Quantitation of Metals in Vegetal Material. TrAC Trends in Analytical Chemistry, 28, 362-372. [Google Scholar] [CrossRef
[4] 李小莉, 王毅民, 邓赛文, 王祎亚, 李松, 白金峰. 中国X射线荧光光谱分析的地学应用60年[J]. 光谱学与光谱分析, 2023, 43(10): 2989-2998.
[5] Lai, M., Xiang, L., Lin, J. and Li, H. (2013) Quantitative Analysis of Elements (C, N, O, Al, Si and Fe) in Polyamide with Wavelength Dispersive X-Ray Fluorescence Spectrometry. Science China Chemistry, 56, 1164-1170. [Google Scholar] [CrossRef
[6] 王祎亚, 邓赛文, 王毅民, 李松. X射线荧光光谱在痕量和超轻元素分析中的应用评介[J]. 冶金分析, 2020, 40(10): 12-31.
[7] 卓尚军, 陶光仪, 殷之文, 言昂. X射线荧光光谱定量分析中超轻元素的处理方法[J]. 化学学报, 1999, 57(12): 1348-1351.
[8] Rousseau, R.M. (2006) Corrections for Matrix Effects in X-Ray Fluorescence Analysis—A Tutorial. Spectrochimica Acta Part B: Atomic Spectroscopy, 61, 759-777. [Google Scholar] [CrossRef
[9] 唐琳, 李勇, 唐羽锋, 刘泽, 柳炳琦. 基于深度学习的LSTM模型在X荧光光谱中的应用[J]. 核技术, 2023, 46(7): 78-84.
[10] 陈颖, 杨惠, 肖春艳, 赵学亮, 李康, 庞丽丽, 史彦新, 刘峥莹, 李少华. 基于XRF-CNN土壤重金属Zn元素含量预测模型研究[J]. 光谱学与光谱分析, 2021, 41(3): 880-885.
[11] 杨婉琪, 李智琪, 李福生, 吕树彬, 樊佳婧. 基于CARS和1D-CNN联合的XRF土壤重金属超标分析方法研究[J]. 光谱学与光谱分析, 2024, 44(3): 670-674.
[12] 陈聪, 黄龙, 胡艳, 向莉. ICP-OES检测茶叶及其浸出物中微量元素的研究[J]. 安徽农学通报, 2018, 24(9): 123-126.
[13] Bellman, R.E. (2015) Adaptive Control Processes: A Guided Tour. Princeton University Press.
[14] 姜红, 施磊, 鞠晨阳. 基于XRF与一维卷积神经网络的汽车保险杠分类与识别[J]. 工程塑料应用, 2025, 53(6): 134-139.
[15] Raissi, M., Perdikaris, P. and Karniadakis, G.E. (2019) Physics-Informed Neural Networks: A Deep Learning Framework for Solving Forward and Inverse Problems Involving Nonlinear Partial Differential Equations. Journal of Computational Physics, 378, 686-707. [Google Scholar] [CrossRef
[16] 马江媛, 桑晓霞, 李叶丽, 黄登宇. 基于能量色散X射线荧光光谱分析技术对茶叶检测条件的优化[J]. 食品与发酵工业, 2020, 46(4): 282-286.
[17] 龚仓, 李高湖, 付桂花, 唐鑫, 黄艳波. X射线荧光光谱法测定富砷地质样品中的主次痕量元素[J]. 分析试验室, 2014, 33(10): 1220-1224.
[18] 李唐虎, 甘婷婷, 赵南京, 殷高方, 叶紫琪, 汪颖, 盛若愚. 基于PIEspline的土壤XRF光谱背景扣除方法研究[J]. 光谱学与光谱分析, 2025, 45(5): 1364-1372.
[19] Tibshirani, R. (1996) Regression Shrinkage and Selection via the Lasso. Journal of the Royal Statistical Society Series B: Statistical Methodology, 58, 267-288. [Google Scholar] [CrossRef
[20] 赵伟, 杨涛, 唐晨, 封亚辉, 郑建明. 基于X射线荧光光谱(XRF)-Pb同位素与深度学习的铜精矿产地溯源[J]. 中国无机分析化学, 2025, 15(5): 667-675.
[21] 徐立鹏, 葛良全, 谷懿, 刘敏, 张庆贤, 李飞, 罗斌. 基于PCA-BP神经网络的EDXRF分析测定地质样品中铁、钛元素含量的应用研究[J]. 光谱学与光谱分析, 2013, 33(5): 1392-1396.