Detection of COD UV Absorption Spectra Based on PSO-PLS Hybrid Algorithm
ZHENG Pei-chao, ZHAO Wei-neng, WANG Jin-mei*, LAI Chun-hong, WANG Xiao-fa, MAO Xue-feng
Chongqing Municipal Level Key Laboratory of Photoelectronic Information Sensing and Transmitting Technology, College of Optoelectronic Engineering, Chongqing University of Posts and Telecommunications,Chongqing 400065, China
Abstract:Chemical oxygen demand (COD) is an important indicator of the degree of water pollution by organic matter. Ultraviolet absorption spectroscopy is the most widely used method for COD detection in water. It has the advantages of no pretreatment of samples, low cost, no pollution, and fast measurement speed. However, the original spectral data has high dimensions, and the spectral information contains a large number of redundant variables. Modeling the full spectral data has problems such as low accuracy and complicated calculations. Aiming at the low accuracy of UV absorption full-spectrum modeling and a large amount of collinearity in spectral data, this paper presents a method based on particle swarm optimization (PSO) and partial least squares (PLS) to select characteristic wavelengths to establish a prediction model. Improve the accuracy and applicability of the UV absorption spectrum prediction model and simplify the model. The UV spectrum data of 29 different concentrations of COD standard solutions were collected. Each standard solution was collected 5 times and averaged and smoothed to reduce the errors caused by the instrument and the environment. Taking into account the absorption of the standard solution in the spectral range of 200~310 nm, 246 wavelength points in this wavelength range were selected as modeling data, and the absorbance data at each wavelength point was used as a particle and numbered in order. PLS was used as the model Method, the correlation coefficient r and the root mean square error (RMSE) are used as evaluation indicators. The particle swarm algorithm fitness function f(x)=min (RMSE) is set. The initial population of particles is 20, the inertia weight w=0.6, and the self The learning factor c1=1.6, the group learning factor c2=1.6, the maximum number of iterations is 200, and the algorithm termination condition is to reach the maximum number of iterations. The output value of the optimal global variable of the algorithm is 168, 94, 181, 183, 175, 209, 106, 142. The correlation coefficient r and the predicted root mean square error RMSE of the PLS prediction model established by the eight wavelength points selected by the particle swarm optimization algorithm were 0.999 98 and 0.155 1, respectively. In order to verify the effectiveness of the prediction model established by PSO-PLS, three prediction models of PLS, iPLS and SVR were established for comparison. The verification results show that the correlation coefficient r and the root mean square error RMSE of the PSO-PLS model are better than those of the other three prediction models, which shows that the particle swarm algorithm can effectively extract the characteristic wavelengths used for PLS modeling and eliminate the common of sub-interval variables Linear, improving the accuracy of the prediction model. This method provides an effective way for real-time online monitoring of COD in water bodies.
郑培超,赵伟能,王金梅,赖春红,王小发,毛雪峰. 基于PSO-PLS混合算法的水体COD紫外吸收光谱检测研究[J]. 光谱学与光谱分析, 2021, 41(01): 136-140.
ZHENG Pei-chao, ZHAO Wei-neng, WANG Jin-mei, LAI Chun-hong, WANG Xiao-fa, MAO Xue-feng. Detection of COD UV Absorption Spectra Based on PSO-PLS Hybrid Algorithm. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2021, 41(01): 136-140.
[1] Kolb Marit, Bahadir Mufit, Teichgraber Burkhard. Water Research, 2017, 122(19): 645.
[2] Yang L, Shin H S, Jin H. Sensors, 2014, 14(1): 1771.
[3] Pigani L, Simone G V, Foca G, et al. Talanta, 2018, 178: 178.
[4] Bleyen N, Albrecht A, De Canniere P, et al. Applied Geochemistry, 2019, 100: 131.
[5] Hu Yingtian, Wen Yizhang, Wang Xiaoping. Sensor and Actuators B: Chemical, 2016, 227: 393.
[6] Hou D, Liu S, Zhang J, et al. Journal of Spectroscopy, 2014, 2014: 1.
[7] Li Z, Guan A, Ge H, et al. Microchemical Journal, 2017, 132: 185.
[8] Brito R S, Pinheiro H M, Ferreira F, et al. Urban Water Journal, 2014, 11(4): 261.
[9] YANG Peng-cheng, DU Jun-lan, CHENG Chang-kuo(杨鹏程, 杜军兰, 程长阔). Marine Environmental Science(海洋环境科学), 2016, 35(6): 943.
[10] Li Jingwei, Tong Yifei, Guan Li, et al. Optik, 2018, 174: 591.
[11] Pan T, Ji Q, Chen J M, et al. Key Engineering Materials, 2012, 500: 820.
[12] TANG Bin, ZHAO Jing-xiao, WEI Biao, et al(汤 斌, 赵敬晓, 魏 彪, 等). China Environmental Science(中国环境科学), 2015, 35(2): 478.
[13] Chen Baisheng, Wu Huanan, Li Sam Fong Yau. Talanta, 2014, 120: 325.
[14] Mojtaba Shourian, Jamshid Mousavi S. Water Resources Management, 2017, 31: 4835.