A Universal Model for Quantitative Analysis of Near-Infrared
Spectroscopy Based on Transfer Component Analysis
WANG Xue1, 2, 4, WANG Zi-wen1, ZHANG Guang-yue1, MA Tie-min1, CHEN Zheng-guang1, YI Shu-juan3, 4, WANG Chang-yuan2
1. College of Electrical and Information, Heilongjiang Bayi Agricultural University, Daqing 163319, China
2. Daqing Center of Inspection and Testing for Agricultural Products and Processed Products, Ministry of Agriculture and Rural Affairs, Daqing 163319, China
3. College of Engineering, Heilongjiang Bayi Agricultural University, Daqing 163319, China
4. Heilongjiang Province Research Center of Ecological Rice Seedling Raising Device and Whole Course Mechanized Engineering Technology, Daqing 163319, China
Abstract:There are differences in spectral data acquisition equipment and environmental conditions. In near-infrared spectroscopy quantitative analysis, low prediction accuracy was found in the models established. To enhance the universality and generalizability of near-infrared spectroscopy quantitative analysis models and improve their predictive accuracy, a universal model strategy is proposed based on the transfer component analysis method improved by the transfer matrix (TM-TCA). The TM-TCA method adopts a two-step correction strategy to correct the slave spectral data, reducing the spectral differences caused by instrument offsets, drifts, or instabilities. It can make the characteristics of the corrected slave spectral data similar to the master's to the maximum extent, eliminate the deviation caused by different instruments or external conditions, and enhance the prediction ability of the model to the slave spectral data. Firstly, the spectral transfer matrix between the master and the slave is obtained. The transfer matrix converts the master-slave spectral data matrix, which is then used as the input for the transfer component analysis method. Subsequently, the kernel function and the number of eigenvalues in transfer learning are chosen using iterative optimization of multiple indicators. The RBF kernel function is selected, and the number of eigenvalues is 52. Comparative experiments are conducted with other methods to verify the effectiveness of TM-TCA. The experimental results show that the spectral correction rate based on TM-TCA reaches 97.1%, with a reduction of 82.9% in the average relative mean squared (ARMS). The ARMS value surpasses that achieved by the transfer matrix and TCA methods, 46.5% and 30.2%, respectively. To validate the effectiveness of the model construction strategy, a universality quantitative analysis model is established based on TM-TCA and partial least squares regression (PLSR) under different device conditions. Compared to the prediction performance, the TCA-PLSR model's coefficient of determination of the TM-TCA-PLSR model reaches 0.872 9, which is improved by 41%. The root-mean-square error of prediction (RMSEP) and the mean absolute error (MAE) are 0.154 3 and 0.115 9, respectively, reduced by more than 90%. Furthermore, the relative prediction determination (RPD) of the TM-TCA-PLSR model exceeds 2.5, indicating that the model has practical application value. The experimental results demonstrate that the TM-TCA transfer method reduces the difference between the master and slave spectra. The master model established based on TM-TCA exhibits a certain degree of universality capability.
Key words:Near-infrared spectroscopy; Quantitative analysis; Model transfer; Transfer component analysis
王 雪,王子文,张广月,马铁民,陈争光,衣淑娟,王长远. 基于迁移成分分析的近红外光谱定量分析通用模型[J]. 光谱学与光谱分析, 2024, 44(11): 3213-3221.
WANG Xue, WANG Zi-wen, ZHANG Guang-yue, MA Tie-min, CHEN Zheng-guang, YI Shu-juan, WANG Chang-yuan. A Universal Model for Quantitative Analysis of Near-Infrared
Spectroscopy Based on Transfer Component Analysis. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2024, 44(11): 3213-3221.
[1] NI Li-jun,XIAO Li-xia,ZHANG Li-guo, et al(倪力军,肖丽霞,张立国,等). Journal of Instrumental Analysis(分析测试学报),2018,37(5): 539.
[2] CHU Xiao-li,SHI Yun-ying,CHEN Pu, et al(褚小立,史云颖,陈 瀑,等). Journal of Instrumental Analysis(分析测试学报),2019,38(5): 603.
[3] QIAO Chun-yan,ZHANG Xue-ru,ZHENG Wei-min, et al(乔春艳,张雪茹,郑卫民,等). Science and Technology of Food Industry(食品工业科技),2021,42(22): 297.
[4] Workman Jr J. Applied Spectroscopy,2018,72(3): 340.
[5] HU Li-ping,HUANG Sheng-quan,TIAN Shu-hua, et al(胡丽萍,黄生权,田淑华,等). Chemical Industry and Engineering Progress(化工进展),2020,39(8): 3263.
[6] PENG Dan,LI Lin-qing,LIU Ya-li, et al(彭 丹,李林青,刘亚丽,等). Spectorscopy and Spectral Analysis(光谱学与光谱分析),2020,40(6): 1828.
[7] ZHANG Jin,CAI Wen-sheng,SHAO Xue-guang(张 进,蔡文生,邵学广). Progress in Chemistry(化学进展),2017,29(8): 902.
[8] WANG Hong-hong,WANG Ying,HUANG Hao-ran, et al(王红鸿,汪 莹,黄浩冉,等). Chinese Journal of Analysis Laboratory(分析试验室),2023,43(6): 864.
[9] WEN Xiao-yan,XU Yan-yan,LI Mao-gang, et al(温晓燕,徐艳艳,李茂刚,等). Chinese Journal of Analytical Chemistry(分析化学),2021,49(10): 1758.
[10] Xu Z P,Zhang P F,Wang Q,et al. Infrared Physics & Technology,2022,123(1): 104120.
[11] Bai Y H,Fang Y L,Zhang B H,et al. Computers and Electronics in Agriculture,2022,198(6): 107073.
[12] LIU Zhi-jian,XIONG Zhi-xin,HU Yun-chao, et al(刘智健,熊智新,胡云超,等). Chinese Journal of Analysis Laboratory(分析试验室),2023,021201(https: //doi.org/10.13595/j.cnki.issn1000-0720.2023.021201).
[13] ZHANG Jin,YE Shi-zhu,WU Ai-jing, et al(张 进,叶世著,吴艾璟,等). Chinese Journal of Analytical Chemistry(分析化学),2022,50(9): 1391.
[14] Pan S J,Tsang I W,Kwok J T,et al. IEEE Transactions on Neural Networks,2011,22(2): 199.
[15] CAO Hong-liang,ZHANG Ying,WU Bin, et al(曹鸿亮,张 莹,武 斌,等). Journal of Computer Applications(计算机应用),2021,41(12): 3608.
[16] ZHENG Wen-rui,LI Shao-wen,HAN Ya-lu, et al(郑文瑞,李绍稳,韩亚鲁,等). Journal of Instrumental Analysis(分析测试学报),2020,39(10): 1274.
[17] Qiu Z J,Zhao S T,Feng X P,et al. Science of the Total Environment,2020,740: 140118.
[18] Tao C,Wang Y J,Cui W B,et al. Science of the Total Environment,2019,669: 964.
[19] YANG Hui-hua,ZHANG Xiao-feng,FAN Yong-xian(杨辉华,张晓凤,樊永显,等). Chinese Journal of Analytical Chemistry(分析化学),2014,42(9): 1229.
[20] WANG Qi-bin,YANG Hui-hua,PAN Xi-peng, et al(王其滨,杨辉华,潘细朋,等). Laser and Infrared(激光与红外),2020,50(9): 1081.