|
|
|
|
|
|
Research on the Wavelength Attention 1DCNN Algorithm for Quantitative Analysis of Near-Infrared Spectroscopy |
CHEN Bei, JIANG Si-yuan, ZHENG En-rang |
School of Electrical and Control Engineering,Shaanxi University of Science & Technology,Xi'an 710021,China
|
|
|
Abstract Near-infrared spectroscopy(NIRS) technology is widely used in petroleum, textiles, food, pharmaceuticals, etc., due to its fast, non-destructive, and efficient characteristics. However, there are problems with traditional analysis methods,such as difficulty in feature extraction, low modeling accuracy when dealing with spectral data with many variables, and high redundancy. Therefore, this paper proposes a quantitative modeling method of one-dimensional wavelength attention convolutional neural network (WA-1DCNN) suitable for near-infrared spectroscopy without variable screening. The modeling method has a simple structure, strong versatility, and high accuracy.This study introduces the wavelength attention mechanism, which enhances the model's ability to capture important wavelength features by giving different weights to different wavelength data, thereby improving the accuracy and robustness of quantitative analysis. Four publicly available near-infrared spectral datasets were used in this paper to verify the feasibility of the proposed method. The proposed algorithm was compared with three traditional modeling methods that added wavelength screening, namely partial least squares (PLS), support vector regression (SVR), extreme learning machine (ELM), and one-dimensional convolutional neural network (1DCNN)modeling method. The model performance indicators root evaluated the model performance mean square error (RMSE) and coefficient of determination (R2). The results show that the performance indicators of the WA-1DCNN modeling method without the wavelength screening algorithm are better than those of the traditional modeling method and the 1DCNN modeling method with the wavelength screening algorithm. The R2 of the test set in the 655 tablets dataset is 0.956 3, which is 4.34%, 12.56%, 18.42%, and 11.59% higher than that of 1DCNN and PLS, SVR, and ELM with wavelength screening; the R2 of the test set in the 310 tablets dataset is 0.957 4, which is 2.72%, 8.28%, 7.27%, and 1.17% higher than that of 1DCNN and PLS, SVR, ELM, and 1DCNN with wavelength screening; The R2 of the test set were 0.980 3 and 0.968 5, respectively, which were 6.24%, 1.48%, 1.75%, 6.08% and 5.81%, 1.85%, 1.58%, 2.96% higher than those of 1DCNN and PLS, SVR, and ELM with wavelength screening; in the wheat protein dataset, the R2 of the test set was 0.960 0, which was 8.67%, 5.79%, 7.94%, and 0.56% higher than those of 1DCNN and PLS, SVR, and ELM with wavelength screening. To verify the optimality of the WA-1DCNN model structure in this paper, ablation experiments were conducted on four near-infrared spectral datasets to change the WA-1DCNN model structure. The results show that the wavelength-attention convolutional neural network is a spectral quantitative analysis method with strong versatility, high generalization ability and simple structure, which can promote the quantitative analysis of near-infrared spectra.
|
Received: 2024-07-18
Accepted: 2024-10-15
|
|
|
[1] Bec K B, Grabska J, Huck C W. Molecules, 2020, 25(12): 2948.
[2] LIU Yan, CAI Wen-sheng, SHAO Xue-guang(刘 言,蔡文生,邵学广). Science Bulletin(科学通报), 2015, 60(8): 704.
[3] Kamboj U, Guha P, Mishra S. Materials Today: Proceedings, 2022, 48: 576.
[4] Shen S, Hua J, Zhu H, et al. LWT-Food Science and Technology, 2022, 155: 112970.
[5] Ai N, Jiang Y, Omar S, et al. Molecules, 2022, 27(2): 335.
[6] Wu Y, Liu Y, Li X, et al. Fuel, 2022, 318: 123543.
[7] Devianti, Sufardi, Hafsah S, et al. Case Studies in Chemical and Environmental Engineering, 2023, 8: 100435.
[8] YU Shui, HUAN Ke-wei, LIU Xiao-xi, et al(于 水,宦克为,刘小溪,等). Spectroscopy and Spectral Analysis(光谱学与光谱分析), 2024, 44(6): 1627.
[9] YANG You, ZHOU Yu, LI Si-hai(杨 友,周 玉,李四海). Journal of the Chinese Cereals and Oils Association(中国粮油学报), 2024, 39(9): 198.
[10] Zhang M, Zhang T, Wang Y, et al. Chemosensors, 2024, 12(9): 184.
[11] Wang D, Zhao F, Wang R, et al. Frontiers in Plant Science, 2023, 14: 1138693.
|
[1] |
LI Xiao-xing1, 2, XIAO Jin-feng1*, ZHANG Hong-ming2*, LÜ Bo2, 3*, YIN Xiang-hui1, ZHAO Ming4, MA Fei5, FU Jia2, HU Yan1, 2, LI Zhi-hao1, 2, WANG Fu-di2, SHEN Yong-cai6, DAI Shu-yu7. Study on Improving Stability of Near-Infrared Spectra by Normal
Distribution Screening Method[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(06): 1566-1577. |
[2] |
LIU Wei1, TAN Hui-zhen1, JIANG Li-wen1, DU Guo-rong2*, LI Pao1, 3*, TANG Hui3. Nondestructive Identification of Lonicerae Japonicae Flos and Flos Lonicerae With Near Infrared Spectroscopy and New Variable
Selection-Partial Least Squares Discriminant Analysis[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(06): 1605-1611. |
[3] |
WANG Jian-xu1, TAN Yin-yu1, QIN Dan2*, TANG Bin1, TANG Huan2, FAN Wen-qi2, YANG Wen1, ZHONG Nian-bing1, ZHAO Ming-fu1*. Research on Non-Destructive Detection of Moisture Content in Xuan Paper Based on Near-Infrared Reflectance Spectroscopy[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(06): 1629-1638. |
[4] |
ZHANG Jia-lun1, 2, ZHANG Wei-gang2*, ZHUANG Yue-ting1, 2, ZHANG Qian-feng1. Construction and Performance Control of Low Infrared Emissivity
Coating Based on Visible and Near-Infrared Reflectance Spectra
of Green Vegetation[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(06): 1663-1669. |
[5] |
LI Wen1, LUO Cheng-kui1*, CHEN Shi-heng2*, JIN Hao-shu2, LI Jie1, LI Yi-bo1. Rapid Quantitative Analysis of Acidic Ions in In-Situ Leaching Solution Using Cavity-Enhanced Raman Spectrometry[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(06): 1744-1751. |
[6] |
ZHU Zhi-hui1, 2, LI Wo-lin1, HAN Yu-tong1, YE Wen-jie1, JIN Yong-tao1, WANG Qiao-hua1, 2, MA Mei-hu3. Research on Identification of Non-Directional Doping of Egg White
Powder Based on Near Infrared Spectroscopy and LOF[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(06): 1768-1775. |
[7] |
LI Tong-le1, CHEN Xiao2, CHEN Xiao-jing1, CHEN Xi1, YUAN Lei-ming1, SHI Wen1, HUANG Guang-zao1*. Using DANN to Classify the Mango Varieties With NIR Spectroscopy[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(05): 1251-1256. |
[8] |
ZHAO Yu-xia1, ZHANG Ming-jin1, 3*, WANG Ru1, ZHANG Shi-zhi2, YIN Bo1, 3. 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(05): 1290-1299. |
[9] |
ZHU Yong-bing1, CAI Yu-qin1, JIANG Li-yao1, LEI Chun1, TENG Long1, WANG De-wang3, TAO Zhi2*. Study on Quantitative Analysis Method of TDLAS Intravenous Drug
Concentration Based on ECA-1D-CNN[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(05): 1341-1347. |
[10] |
YAO Cheng-shuo1, 2, WANG Chang-kun1, 2*, LIU Jie1, 2, GUO Zhi-ying1, 2, MA Hai-yi1, 2, YUAN Zi-ran1, 2, WANG Xiao-pan1, 3, PAN Xian-zhang1, 2. Spectral Prediction of Soil Fertility Attributes in Typical Croplands of Sanjiang Plain Based on Band Selection[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(05): 1422-1431. |
[11] |
LI Jia-qi1, 2, 3, TIAN Xi2, 3, WANG Qing-yan2, 3, HE Xin2, 3, HUANG Wen-qian2, 3*. Research on the Method of Online Detection of Hollow Watermelons Based on Full-Transmission Near-Infrared Spectroscopy[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(05): 1440-1447. |
[12] |
CHEN Zhuo-ting1, WANG Qiao-hua1, 2*, WANG Dong-qiao1, CHEN Yan-bin1, LI Shi-jun1, 2. Non-Destructive Detection of Pre-Incubation Breeding Duck Egg Fertilization Information Based on Visible/Near Infrared Spectroscopy and Joint Optimization Strategy[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(05): 1469-1475. |
[13] |
WEN Yu-kuan1, DONG Gui-mei1, LI Liu-an2, YU Xiao-xue2, YU Ya-ping1*. Nondestructive Identification of Egg Yolk Color Based on Near Infrared Spectrum and Multivariate Data Processing[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(04): 1015-1021. |
[14] |
CHEN Xin-gang1, 2, ZHANG Wen-xuan1, MA Zhi-peng1*, ZHANG Zhi-xian1, WAN Fu3, AO Yi1, ZENG Hui-min1. Improved Convolutional Neural Network Quantification of Mixed Fault Characterization Gases in Transformers Based on Raman Spectroscopy[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(04): 932-940. |
[15] |
CUI Jia-cheng1, SONG Wei-ran1, YAO Wei-li2, JI Jian-xun1, HOU Zong-yu1, 3, WANG Zhe1, 3*. Improving LIBS Quantification by Combining Domain Factors and Multilayer Perceptron Method[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(04): 1022-1027. |
|
|
|
|