Research on a small-concentration chemical oxygen demand prediction algorithm based on an enhanced parrot optimizer–BPNN and ultraviolet-visible spectroscopy
Abstract
Purpose: determining small concentrations of chemical oxygen demand (COD) is crucial for domestic drinking water safety. Ultraviolet-visible spectroscopy (UV-vis spectroscopy) is important for COD determination, but the multi-wavelength method has low accuracy and stability for small-concentration COD due to turbidity interference. This paper presents an enhanced parrot optimizer (EPO) algorithm for back propagation neural network (BPNN) parameter optimization to improve small-concentration COD prediction, which includes accuracy and stability. Results: firstly, the EPO algorithm uses the LHS population initialization strategy, which generates the initial population with the help of Latin hypercube sampling and improves the population diversity from the source; secondly, the EPO algorithm adopts the persistence-random-boundary (PRB) location update strategy, improves the position update formula in the residence phase, and integrates the simulated annealing idea to dynamically adjust the search step length to realize the precise balance between global exploration and local development ability; finally, this article proposed the contraction and whirl (CAW) individual elimination strategy, combined with the elite retention logic of the whale optimization algorithm, to periodically eliminate the inferior individuals to avoid premature maturation of the algorithm, and to strengthen the evolutionary momentum of the population. The synergistic effect of the above strategies can accurately optimize the weights and thresholds of the BPNN, and finally build a small concentration COD prediction model that is resistant to low turbidity interference. The core logic of the model's anti-turbidity interference lies in that the BPNN simultaneously learns the mapping relationship of “COD concentration – turbidity concentration – spectrum” and automatically identifies and deducts the contribution of turbidity to the spectrum when predicting COD, thereby offsetting its nonlinear interference and ultimately achieving accurate prediction of low concentration COD. Conclusions: the EPO–BPNN model is outstanding in convergence speed and accuracy. On the standard drinking water quality simulation data set, the coefficient of determination (R2) reached 0.9976, the root mean square error (RMSE) was as low as 0.3930 mg L−1, the mean absolute percentage error (MAPE) was only 3.47%, the percentage bias (PBIAS) was −0.081%, and the maximum relative standard deviation (RSD) was 2.26% (<3%). In the interference of multiple substances in the monitoring data of the inter-reservoir, the standard deviation (SD) of COD concentration values predicted by the model was 0.2876 and 0.3437, respectively; the fluctuations were 81.88% and 79.61% lower than those of the traditional model.

Please wait while we load your content...