Research on the Quantitative Analysis Method of Nitrate in Complex Water by Full Scale Spectrum With GS-SVR
LEI Hui-ping1, 2, HU Bing-liang1, YU Tao1*, LIU Jia-cheng1, LI Wei1, 2, WANG Xue-ji1, ZOU Yan3, SHI Qian3
1. Xi’an Institute of Optics and Precision Machanics, Chinese Academy Sciences, Xi’an 710119, China
2. Photoelectical Engineering Institute, University of Chinese Academy Sciences, Beijing 100049, China
3. Institute of Oceanographic Instrumentation, Shandong Academy of Sciences, Qingdao 266000, China
Abstract:Nitrate is an important index of water quality monitoring. The high concentration of nitrate in water results in the decrease of biodiversity and the degradation of the ecosystem. Meanwhile, it will cause irreversible harm to human health. Water quality monitoring technology based on the spectrum is the trend of modern water environment monitoring. Compared with the traditional method, nitrate field sampling and laboratory analysis, it has the advantages of simple operation, no pretreatment, fast detection, good repeatability and no pollution. Due to the complexity and diversity of water components, there is a high degree of nonlinearity between water parameters and absorbance. Traditional linear regression prediction models are not applicable,such as single wavelength method, dual wavelength method and partial least square method. Therefore, this paper proposes a new method for the determination of nitrate in water by fine full spectrum combined with the improved variable step grid search algorithm optimized support vector regression (GS-SVR). In cooperation with the college of chemistry and chemical engineering of Shaanxi University of Science and Technology, 94 groups of solution samples with different concentrations were prepared according to different concentration gradients and the experimental requirements by using standard nitrate solution, platinum cobalt standard solution and formazine standard suspension. Firstly, the transmittance spectrum was converted to absorbance, and 94 solution samples were divided into 80 training sets and 14 test sets by Kennard stone algorithm. Secondly, the improved GS algorithm combined with 5-fold cross validation is used to optimize the parameters of SVR by reducing the search range and changing the search step for many times, and the optimal penalty parameters and kernel function width are used to build model, which is used to predict the test set. Meanwhile, the prediction results are compared with those of BPNN, SVR, GS-SVR, PSO-SVR and GA-SVR. The results show that the coefficient of determination R2=0.993 5, root means square of prediction RMSEP=0.043 5. The optimal parameters are (512, 0.044 2), and the average training time is 13 s. Compared with the above five prediction models, R2 increased by 1.22%, 11.66%, 0.78%, 0.74%, 0.77%, training efficiency increased by 4.15 times (BPNN), 8.30 times (GS-SVR), 21.38 times (PSO-SVR), 10.23 times (GA-SVR). The prediction accuracy and training efficiency of the model has been greatly improved, which provides a novel approach basis for rapid and real-time online monitoring of nitrate concentration in the complex water body. This method is also suitable for the establishment prediction models of other water quality parameters.
Key words:Fine full spectrum; Nitrate; Improved grid search; Support vector regression
雷会平,胡炳樑,于 涛,刘嘉诚,李 炜,王雪霁,邹 妍,史 倩. 精细全光谱结合GS-SVR的复杂水体硝酸盐分析方法研究[J]. 光谱学与光谱分析, 2021, 41(02): 372-378.
LEI Hui-ping, HU Bing-liang, YU Tao, LIU Jia-cheng, LI Wei, WANG Xue-ji, ZOU Yan, SHI Qian. Research on the Quantitative Analysis Method of Nitrate in Complex Water by Full Scale Spectrum With GS-SVR. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2021, 41(02): 372-378.
[1] Liu F, Zheng P, Huang B, et al. International Conference on Computer and Computing Technologies in Agriculture. Springer, Cham, 2015,619.
[2] Causse J, Thomas O, Jung A V, et al. Water Research, 2016, 108: 312.
[3] Pons M N, Assaad A, Oucacha C, et al. Ecohydrology & Hydrobiology, 2017, 17(1): 46.
[4] MI Yun-ping, WANG Xiao-ping, JIN Xin(宓云軿, 王晓萍, 金 鑫). Journal of Zhejiang University·Engineering Science(浙江大学学报·工学版), 2008, 42(5): 790.
[5] WANG Li-li, LIU Xian-hua, MI Ma, et al(王莉丽,刘宪华,米 玛,等). Transducer and Microsystem Technologies(传感器与微系统), 2014, 33(1): 75.
[6] YANG Qiong, ZHU Qian-hua, REN Peng, et al(杨 琼,朱乾华,任 鹏,等). Journal of Analytical Science(分析科学学报), 2016, 32(4): 485.
[7] CHEN Ying, HE Lei, CUI Xing-ning, et al(陈 颖,何 磊,崔行宁,等). Spectroscopy and Spectral Analysis(光谱学与光谱分析), 2019, 39(5): 1489.
[8] He Z, Wen X, Liu H, et al. Journal of Hydrology, 2014, 509: 379.
[9] Bao Y, Hu Z, Xiong T. Neurocomputing, 2013, 117: 98.
[10] Sajan K S, Kumar V, Tyagi B. International Journal of Electrical Power & Energy Systems, 2015, 73: 200.
[11] Gao X, Hou J. Neurocomputing, 2016, 174: 906.