Abstract

A mixed inverse problem for determining the biochemical oxygen demand of water () and the rate of biochemical oxygen consumption (), which are important indicators of water quality, has been formulated and numerically solved based on real experimental data. The inverse problem is reduced to the optimization problem consisting in minimization of the deviation of the calculated values from the experimental data, which is solved numerically using the Nelder–Mead method (zero order) and the gradient method (first order). A number of examples of processing both model experimental data and field experimental data provided by hydrological stations monitoring pollutants in the Kazakhstani part of the Ili River basin are presented. A mathematical model that adequately describes the processes in the river system has been constructed.

1. Introduction

Many models describing the processes of pollution and purification of water resources are based on the work of Streeter and Phelps published in 1925 [1], where a simple model (considered classical in our time) was proposed, which for many years satisfied the needs of engineers and other practitioners in the field of monitoring of water pollution in many countries. In the course of the development of this direction, it became clear that there are many rather important factors that have a great influence on the studied processes but are not taken into account by the classical Streeter-Phelps model. A reasonably good analysis of the models proposed over 40 years, taking into account new input data, was made in [2], but, as the author himself noted, all these models are semiempirical and require a lot of input data that are not always available for measurements. At first glance, the classical Streeter-Phelps model is simple to implement, and even its more complicated versions allow an analytical solution, which is undoubtedly an advantage for engineers, i.e., for practical use. Indeed, even with the advent of computers until the end of the 20th century, the issue of economical use of computer time in calculations had a priority position in the choice of models and methods of their implementation. Therefore, there are many works that consider different factors of oxygen consumption and recovery in water (dispersion, photosynthesis, reaeration, etc.), but all of them are based either on a large amount of input data, or on assumptions that are inconvenient in practice, but this is not the main weakness of these studies. For example, in [3], to calculate the missing (inaccessible for measurement) input data, where reaeration is taken into account, the original Streeter-Phelps model is synthesized with the shallow water equation, and here, the scientists already face the problem of cumbersome calculations. As shown in the work of Gotovtsev [4], the classical Streeter-Phelps model does not guarantee physically correct solutions for any input data, i.e., a rather difficult process of data calibration leads to a separately posed problem that requires separate consideration [2]. In [4], a modification of the classical Streeter-Phelps model (a closed Streeter-Phelps system) is proposed, which does not require additional hydrochemical analyzes; moreover, it is shown that it is physically correct. To obtain an analytical solution of the Streeter-Phelps closed-loop system, certain conditions are again set on the input data, for example, the frequency of incubation times [5], which is not applicable in practice. Thus, a positive aspect of these models is the explicit form of the desired value, which greatly facilitates the work of practitioners, but the models are complicated by introduction of additional factors imposing new conditions and restrictions on the input data, which creates a number of new problems; the solution of which already requires other resources. With development of more powerful computers, the capabilities of calculators have increased significantly and works have appeared where application of the modified Streeter-Phelps models is considered solutions to some inverse problems, for example [6]. That is, the general tendency to consider some problems as inverse to direct ones, which appeared in the 20th century [7, 8], was also reflected in the implementations of models describing the processes of pollution and purification of water resources.

In this paper, the sought BOD () and are considered solutions to an inverse problem for which additional information is given at a fixed moment of time . More exactly, a closed Streeter-Phelps model is considered, for which there are no data restrictions (taken from real sources), which is achieved by using iterative methods instead of searching for an analytical solution. It is shown that the inverse problem is ill-posed [7]; therefore, two optimization methods for its solution are considered: the semiheuristic Nelder–Mead [9] and the gradient (also known as regularizing [10]). The Nelder–Mead method is an unconstrained zero-order optimization method, i.e., the method that does not require computation of either the first or the second derivatives of the objective function, which is an undoubted advantage in the implementation of this iterative algorithm, especially in the case of many variables. However, the convergence of this method was investigated only for strictly convex functions in the one-dimensional case; for multidimensional objective functions, the convergence has not been proven (although for the two-dimensional case weak convergence was established under certain restrictions on the algorithm) [11]. The use of gradient methods (of the first order) in the case of a multidimensional objective function is complicated by the calculation of the gradient, but the convergence of these iterative algorithms has been sufficiently well studied [12]. This paper presents a comparative analysis of the numerical results of realization of the considered modified Streeter-Phelps model by the Nelder–Mead method and the steepest descent method for synthesized data. More exactly, two aspects of the methods are compared: the complexity of realization and investigation of convergence. The fact that for the Nelder–Mead method the relative “efficiency at the best case” outweighs the absence of a theory of convergence, noticed in [11], was also confirmed by the results of our comparative analysis. As this method is still a favorite among other zero-order optimization methods, it was used for testing the model under consideration based on real experimental data (provided by hydrological stations monitoring pollutants in the Kazakhstani part of the Ili River basin). The analysis of the obtained numerical results was carried out on the basis of the report on the research work of the JSC Institute of Geography and Water Security [13].

2. Materials and Methods

2.1. Statement of the Inverse Problem

In [4] and in the previous studies, the correctness of the physical formulation of the Streeter-Phelps closed system, describing the process of biochemical oxygen consumption, was shown:

Here, is the time, is the concentration of dissolved organic substance, is the concentration of dissolved oxygen, is the rate of biochemical oxygen consumption, is the concentration of oxygen saturation, and is the rate of reaeration.

In this work, it is assumed that , i.e., the process of decomposition of organic matter, which occurs in a water sample, is placed in a sealed flask or in the ice-covered river channels and reservoirs. For a given in the space , we have the following direct problem:where using the given values of constants , it is necessary to determine functions satisfying system (2) and (3).

Definition 1. For some , a pair of functions will be called a solution of direct problems (2) and (3) if for any functions such that , the following equalities hold:

Note 1. Direct problems (2) and (3) are correct in the sense of Hadamard in the space for .

It is obvious that problems (2) and (3) are reduced to an equivalent system of Volterra integral equations of the second kind, which are known to be correct.

To determine the most important indicators of water quality and , the problem inverse to ((2)) and ((3)) is considered: for some determine the values , where the functions are a solution to direct problems (2) and (3), using the given values of and the additional information:

Note 2. Inverse problems (2) and (5) are incorrect.

Indeed, inverse problems (2) and (5) are incorrect, since direct problems (2) and (3) are correct [10].

Note 3. Let for some functions be a solution to direct problems (2) and (3), then, there are traces of and the following estimates:are correct.

2.2. Statement of the Optimization Problem and Methods for Its Solution

In view of Note 3, formulated inverse problems (2) and (5) naturally reduce to an equivalent optimization problem associated with minimization of the following objective functional:

Here, are given values and and are solutions of direct problems (2) and (3), which correspond to parameters and .

Thus, parameters must be determined from the condition of minimum of functional (7).

A convenient way to solve the optimization problems is the Nelder–Mead method [9], which is an unconditional optimization of the functional in several variables without using its gradient. Since the convergence of the Nelder–Mead method has not been established for the two-dimensional case, for comparison, we also consider the regularizing gradient method, which gives us conditional convergence [10]. The gradient of functional (7) is equal towherefunctions are solutions for adjoint system

3. Results and Discussions

3.1. Comparison of Numerical Results for Synthetic Data

To carry out computational experiments, as sought values, we take . Let also.

Solving direct problems (2) and (3), we find functions , from which we obtain the values , which we take as additional information (5). And, using these data, we will reconstruct the parameters from the condition of functional minimum (7). Using the Nelder–Mead (NM) and gradient (GM) methods, the results presented in Table 1 were obtained. Here, the exact values of and are taken as additional information. Figure 1 shows the graphs of the functions , corresponding to the values of parameters obtained by the NM and GM methods.

As can be seen from Table 1, in the case when the exact values of and are known, the values of and are reconstructed quite accurately. In particular, the relative NM error was less than a hundredth of a percent.

Let us consider the case when the additional information (5) is given with some error ; that is, the values of and can randomly deviate from their true value by less than . After performing a number of computational experiments, it is possible to estimate the range of variation of the sought parameters and the corresponding functions . Tables 25 show the corresponding calculation results for different . Note that these tables present the maximum error values.

Figure 2 shows the graphs of the functions , corresponding to the values of parameters obtained by the NM and GM methods. The solid lines show the functions constructed by the results of solving the inverse problem with exact data for and . Dashed lines indicate maximum deviations when additional information (5) is specified with 5% error. As can be seen from Table 2 and Figure 2, the numerical results obtained by the NM and GM methods almost coincide.

Similar results for , , and are presented in Tables 35 and in Figures 35, respectively.

The results of Tables 25 show that an increase in the input error causes an increase in the error of the results. Moreover, it can be noted that the relative error for is about 3 times greater than that for , while the value of the objective functional always remains sufficiently small. It is also easy to see that the function as a whole is reconstructed much more accurately: in the case when the additional information (5) is given with some error, the deviation of the graph of function from the true one is insignificant. This is likely to be explained by the fact that the initial condition for in the studied problem is known, whereas the initial condition for is not known.

Thus, the optimization problem, equivalent to inverse problems (2) and (5), associated with minimization of functional (7), was solved by the Nelder–Mead method and by the gradient method, and the sought parameters were reconstructed quite accurately with the same maximum deviations for data errors. A series of calculations were carried out using field experimental data provided by the Institute of Geography. Oil products were considered pollutants, as they are included in the list of parameters, which must be obligatory determined according to the mandatory program of monitoring the quality of surface waters by hydrochemical and hydrological indicators.

3.2. Numerical Results for Experimental Data

Kazakhstani part of the Ili River, which is the main tributary of lake Balkhash basin, was chosen as the object of modeling. In the system of the economy of Kazakhstan, the basin is a diversified economic complex, which has environmentally hazardous enterprises of the extractive industry and nonferrous metallurgy. About 30% of the water resources of the Ili River are formed on the territory of Kazakhstan [1416]. The Ili River is a transboundary river, and in the recent decades, Kazakhstan has faced the growing water deficit, and one of the reasons for this is the policy of China to increase unilaterally the water intake from transboundary rivers Irtysh and Ili ignoring herewith the interests of the Kazakh side. The chemical composition of the Ili River on the territory of the Kazakhstan to the Kapshagai water reservoir is formed under the influence of pollutants coming from the territory of China as well as contaminated surface runoff and washout from the farmland adjacent to the basin. [17] The data of chemical analysis of water from 4 hydrological stations for the period from 2000 to 2014 were obtained. Table 6 presents the data for these hydrological stations. Figure 6 shows their location on the map.

To study the transfer of pollution, as well as to assess the assimilation capacity of the Kazakhstani part of the Ili River, еру data from two hydrological stations were considered: Dobyn pier (the first hydrological station on the Kazakhstani part of the Ili River) and the village of Ushzharma (the last hydrological station before the Ili delta). Figures 7 and 8 show the results of usage of two methods for numerical calculations of the sought parameters and at hydrological stations for the period from 2000 to 2014.

Figures 7 and 8 show that the solutions of the inverse problem by the Nelder–Mead method and the gradient method give very close results. It can be argued that the constructed mathematical model adequately describes the processes in the Ili River system, as evidenced by the results of a series of numerical experiments. Intra-annual hydrochemical regime of pollution of the Ili River in the section of the Dobyn pier is, in general, consistent with the theoretical description of its natural flow. There is a decrease in pollution in the March, an increase in the July low-water period with an improvement in quality during the period of precipitation in August. Further, during the period of rains, an improvement in quality should be observed, but its quality is deteriorated, which can be explained by the washout of pollutants from the adjacent territories. The increased water content in 2001 and 2008 led to an increase in the oxygen content in the water due to a more rapid flow of water in the river, and as a result of increased aeration. High concentrations of both mineral substances and pollutants, some of which are characterized by high chemical activity, led to more active oxidative reactions, as a result of which, in Figures 7 and 8, extremely high values of and are observed oil products in these years. These data are confirmed by the high values of CIWP (a complex index of water pollution, obtained by averaging all substances that exceed the maximum permissible concentration) in these years. Figure 7 shows that in 2006 the minimum value of the concentration of the pollutant after that the value increases. According to the space images [18], the area of irrigated land in China’s Xinjiang Uygur Autonomous Region (XUAR) had grown to 465,500 hectares. The increase in water consumption affects the river inflow into the territory of Kazakhstan which is one of the factors that affect the increase of concentration of pollutants [16, 18].

4. Conclusions

On the basis of the closed Streeter-Phelps system, an inverse problem that determines the power of point sources of pollutants, at which the concentration of pollutants at hydrological posts is equal to the maximum permissible, has been formulated. A comparative analysis of optimization methods (NM and GM) for solving the formulated inverse problem was carried out, which showed the effectiveness of application of the Nelder–Mead method and the gradient method. The results of numerical experiments made it possible to assess the assimilation capacity of the Kazakhstani part of the Ili River basin. The resulting estimate determines the upper limit of the assimilation capacity of the basin (the highest seasonal value of the maximum permissible load), since the calculations for the BOD were carried out at day-1. This value corresponds to a water temperature of 20°С, which is usually observed during the summer low-water period. It is obvious that in winter, when the rate of decomposition of pollutants is significantly lower, the calculated value of the maximum permissible load will decrease. Also, the obtained results can be used to predict changes in the concentration of pollutants in case a decrease in the river inflow into the territory of Kazakhstan.

Data Availability

The natural hydrological data used to support the findings of this study were supplied by E.A. Tursunov under license and so cannot be made freely available. Requests for access to these data should be made to JSC (Institute of Geography and Water Security, website: https://ingeo.kz/?page_id=2813~~~~~~~~~^~^~^~^~~~~~~~~~~~amp;lang=en).

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

We would like to thank A.V. Gotovtsev for useful commentaries. The work is supported by the grant No. 1049\GF4 of the Ministry of Education and Science of the Republic of Kazakhstan.