Next Article in Journal
Going Sustainable or Going Extinct: The Consequences of Clean Technologies, Green Finance, and Natural Resources on the Environment
Previous Article in Journal
Transition Design as a Strategy for Post-Pandemic Spatial Experience Enhancement: A Sustainability Perspective
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predicting the Influence of Ammonium Toxicity Levels in Water Using Fuzzy Logic and ANN Models

1
Institute Agroecology and Land Management, National University of Water and Environmental Engineering, 33028 Rivne, Ukraine
2
Faculty of Civil and Environmental Engineering, Institute of Civil Engineering, Warsaw University of Life Sciences, 02-787 Warsaw, Poland
*
Author to whom correspondence should be addressed.
Sustainability 2024, 16(14), 5835; https://doi.org/10.3390/su16145835
Submission received: 24 April 2024 / Revised: 2 July 2024 / Accepted: 3 July 2024 / Published: 9 July 2024

Abstract

:
The study aimed to address the complex and critical issue of surface water quality monitoring by proposing a diversified approach that incorporates a range of chemical indicators. (1) Background: the purpose of the study was to address the problem of surface water quality monitoring in relation to the toxic effects of ammonium on aquatic ecosystems by developing predictive models using fuzzy logic and artificial neural networks. (2) Water samples from the Styr River, influenced by the Rivne Nuclear Power Plant, were analyzed using certified standard methods and measured parameters, while fuzzy logic and artificial neural network models, including Mamdani’s algorithm and various configurations of activation functions and optimization algorithms, were employed to assess water quality and predict ammonium toxicity. (3) A fuzzy logic system was developed to classify water quality based on ammonia content and other parameters, and six Artificial Neural Network (ANN) models were tested, with the ANN#2 model (using ReLU activation and ADAM optimizer) showing the best performance. (4) This study emphasizes the critical need for precise monitoring and modeling of total ammonium in surface water, considering its variable toxicity and interactions with environmental factors, to effectively protect aquatic ecosystems, namely ichthyofauna.

1. Introduction

Surface water quality monitoring is a complex procedure that includes a number of chemical analyses performed on water. When analyzing water quality based on a comparison of nine indicators with their Maximum Permissible Concentration (MPC) values, important indicators such as pH, temperature, electrical conductivity, and acidity and alkalinity of water are usually not taken into account [1]. If the concentration of a chemical substance in water exceeds the established MPC, this may indicate contamination of the water body and the need to take measures to reduce the level of contamination and restore water quality [2]. Usually, the approach allows us to determine the extent to which water meets the established standards and whether it can be used for various needs, e.g., drinking, fishing, recreation, etc. [3]. Assessment of the quality of surface water is a difficult task, since measures to improve the condition of the water environment or, conversely, their absence, depend on its conclusion [4].

1.1. Sources and Regulation of Ammonia in Water Bodies

Ammonia contamination of aquatic ecosystems is a significant global problem, and robust water quality standards or criteria are needed to protect local water intakes. Ammonium (NH4+) and ammonia (NH3), which make up the TAN content of aquatic ecosystems, are of great interest to environmental scientists because they can be used to study the nitrogen cycle and are considered indicators of water quality [5]. The natural formation of TAN concentration in water bodies occurs as a result of the nitrogen biogeochemical cycle, as most organisms consume nitrogen in the form of NH4+ (or organic nitrogen) or by reducing NO3 to NH4+. Conversely, NH4+ is returned to the environment when organisms die, and the variety of subsequent nitrogen forms depends on whether the local environment contains soluble oxygen [6]. The environmental risk caused by ammonia is of increasing worldwide interest due to high emissions of ammonia and its strong toxic effects on aquatic organisms [7].
Ammonia can be released into surface waters from point and non-point sources with treated and untreated wastewater. Point sources of TAN include sewage from animal husbandry, industrial sewage, municipal sewage, nitrogen emissions from aquaculture, and runoff and infiltration from waste disposal sites [8]. Additional point sources encompass runoff from operating mines, oil fields, and industrial facilities without sewage systems. Non-point sources include the cultivation of N2-fixing crops, the use of animal manure, and the use of inorganic nitrogen fertilizers [9]. Additional non-point sources are runoff from N-saturated forests and meadows, urban runoff from unsewered and channelized areas, and septic leachate. Further sources include runoff from construction sites and abandoned mines, as well as activities such as biomass burning, land clearing, land conversion, and wetland drainage that mobilize nitrogen from long-term storage pools [10].
With regard to purpose, surface waters are traditionally divided into the following: drinking, fishing, recreational and touristic, ecological, and marine. Depending on the purpose of the water, appropriate standards for its quality are adopted. In Ukraine, water bodies used to meet drinking, household, and other needs of the population have a standard of total ammonium at 2 mg/dm3 [11,12]. According to the environmental safety standards of water bodies used for fish farming, the natural fresh water standard is at 0.5–1.0 mg/dm3, and the fishing water is at 1.0–2.0 mg/dm3 [13]. These concentration values do not correlate with water pH, electrical conductivity, temperature, and other water characteristics. The generally accepted rate of ammonium in water for ecological reservoirs is 0.05 mg/dm3. This norm ensures the normal functioning of aquatic ecosystems and is not toxic to fish and other aquatic organisms [14].
However, in some cases, such as in large rivers, the concentration of ammonium can be higher. For instance, in the Dnipro River, the ammonium level is 0.1 mg/dm3 [15]. This is attributed to the fact that the Dnipro is a large river with a fast current, facilitating the dissolution of ammonium in water. In contrast, in smaller lakes and ponds near pollution sources, the ammonium concentration may be lower. This is because such smaller bodies of water have a limited capacity and are more sensitive to pollution [16].
The United States Environmental Protection Agency (USEPA) developed this adjustment equation based on studies that examined the relationship between ionized and non-ionized ammonia as a function of pH and temperature in water. In Australia and New Zealand, jurisdictions have adopted the USEPA method for adjusting ammonia standard values based on temperature and pH [17].
In contrast, European environmental quality standards and Canadian water quality regulatory values are set for the concentration of non-ionized ammonia, regardless of pH and temperature [18]; the share of non-ionized ammonia is calculated using speciation equations [19]. Non-ionized ammonia NH3 is more toxic than ammonium NH4+, especially for aquatic flora and fauna, because it is neutral and diffuses through the membranes of biological cells more easily than NH4+ [20]. Therefore, biotic toxicity is usually determined for NH3 rather than NH4+. However, NH4+ also contributes to the total ammonia toxicity under certain conditions; therefore, its contribution to the total toxicity cannot be ignored [21]. The pH value and water temperature strongly influence the NH3 and NH4+ ratio, and therefore the toxicity; the higher the temperature and pH, the higher the proportion of NH4+ and the higher the contribution of NH4+ to the total toxicity of ammonia [22]. Such a dependence can be seen in Figure 1. The toxicity of non-ionized ammonia NH3 in water is greater, because it is soluble in fats and can penetrate into the cells of living organisms.
In addition to pH and temperature, the balance of ionized and non-ionized ammonia is also influenced to a lesser extent by other physicochemical parameters, such as water hardness, alkalinity, and ionic strength. Reduction of ammonia toxicity by calcium ions, as well as sodium Na+ and potassium K+ ions, was demonstrated in the amphipod Hyalella azteca [23]. Extremely soft water (hardness < 5 mg/dm3) in its living environment may lead to increased toxicity of many pollutants, including ammonia. Regulations appropriate to the region are necessary to adequately protect these unique ecosystems [24].
In waters defined by the European Commission, the EQSs for the protection of freshwater fish are 0.021 and 0.78 mg/dm3 for non-ionized ammonia and total ammonia, respectively [25]. An EQS of 0.015 mg/dm3 for non-ionized ammonia expressed as an annual average has been proposed for non-EU waters [26].
Anthropogenic sources of ammonia pollution are diverse and include process waters from mining and petrochemical industries, waste from pharmaceutical production, and nitrogen fertilizers used in agriculture. Nuclear power plants are one of the important enterprises in Ukraine that may affect the chemical composition of surface waters of the country [27]. Nuclear power plants (NPPs) produce wastewater containing TAN and having elevated temperatures and pH levels [28,29]. Heating, evaporation, and concentration of cooling water components occur in NPP cooling systems; in particular, the concentration of bicarbonate and carbonate ions causes an increase in the pH of hydrogen in NPP discharge waters to 9.0 [30,31]. NPP water discharge in terms of temperature impact and chemical composition in Ukraine is regulated by [32,33]. Nitrogen-containing substances are discharged with NPP return waters due to the use of corrective additives for cleaning the second circuit (ammonia, hydrazine, morpholine, monoethanolamine, etc.) due to the discharge of mixed-action regeneration water filters [34]. Therefore, such waters also have an increased content of nitrogenous substances, phosphates, and carbonates [35] and are discharged into natural bodies of water (seas, oceans, rivers, lakes) [36]. Therefore, the study of the effect of total ammonium on the water body which comes with NPP waters is a very relevant issue.
Generally, the relevance of the influence of total ammonium at elevated temperatures is given a lot of attention, particularly for tropical freshwater species. This is mainly due to the fact that such surface waters are characterized by the presence of ammonia in water with low ionic strength and elevated temperature (over 27 °C), which can lead to its higher toxicity [18,37]. The pH value also affects the ratio of TAN forms and thus the toxicity. There are a number of countries and regions around the world that have consistently established aquatic life criteria for ammonia based on the appropriate relationship between ammonia toxicity, temperature, and pH [38].
Although studies on the environmental risks of ammonia were conducted in Ukraine and environmental standards for TAN were established, none of them took into account the influence of water environment factors (temperature, pH, etc.) on the toxicity of TAN forms [11,12,13,14]. Our study addresses this knowledge gap.
There are several [39] analytical methods that allow for the separate determination of NH3 and NH4+ forms (electrochemical, chromatographic, etc.), but these methods are time-consuming and require the use of expensive equipment. Total ammonium is usually measured in monitoring programs along with physicochemical parameters (pH, temperature, and conductivity or salinity), and then non-ionized ammonia is calculated. Current analytical methodologies provide detection limits of about 20 μg/dm3, which does not provide sufficient sensitivity for ammonia analysis with the proposed PNECs [18].
There are various indices used to evaluate and monitor water quality in water systems [40]. One of the first systems developed by Horton [41] was the creation of general indices that allow systematizing various parameters of water quality. This methodology was later improved by the US National Sanitation Foundation (NSF), resulting in the well-known water quality index (WQI) [42]. WQI is an index that shows the level of cumulative influence of selected parameters on the overall water quality in the form of a single numerical value, and this indicator is widely used worldwide to assess water quality [43,44].

1.2. Advanced Techniques in Water Quality Assessment: Fuzzy Modelling and Artificial Neural Networks

In recent years, fuzzy modelling has been one of the most active and promising areas of research applied in the field of management and decision making. Fuzzy modelling is particularly useful when there is uncertainty in the description of systems and business processes that complicates or even precludes the application of precise quantitative methods and approaches. In the field of systems management, fuzzy modelling allows us to obtain more adequate results compared to results based on the use of traditional analytical models and control algorithms. One of the characteristic features of the complexity of building a model is uncertainty in the presentation of the structure or behavior of the original system.
Traditional algorithms easily work with simple linear processes [45], but algorithms with fuzzy logic can work in complex or nonlinear processes, such as pH control, where nonlinearities arise together with time-varying parameters or dead times [46,47]. Control strategies based on fuzzy logic are not based on mathematical modelling depicting chemical or physical relationships between the system components; instead, they deal with a set of rules related to the changes observed in the process when the variable also changes and are therefore more easy to implement.
Modelling ecological systems is a complex scientific task, as researchers often fail to make accurate statements about inputs and outputs. To solve this problem, fuzzy logic can be applied in the development of environmental monitoring indicators [48]. It is known that tools and possibilities of fuzzy logic are actively used to assess water quality by calculating WQI [42].
A large volume of data is used to assess the quality of natural waters. The study indicates the effective use of artificial neural network (ANN) models, which are built on the structure of biological neural networks [49]. The primary advantage of ANNs is their ability to detect implicit relationships between input and output data and predict the water quality index (WQI) [50]. Creating an ANN requires an appropriate network structure and a significant amount of data, with the optimal structure determined through experience and trial and error [51]. ANN models show high potential for forecasting the quality of underground and surface water. Many scientific reports demonstrate successful applications of ANNs in predicting WQI and changes in concentrations of NO3, DO, and BOD [52].
Thus, the novelty of this study consists of the proposal to modify the WQI natural water quality assessment methodology used in Ukraine and to use an additional water quality index based on the effect of ammonium WQIAM on flora and fauna. The urgency of implementing such an index is related to the importance of assessing the impact of NPP wastewater discharges into the river.
The aim of the work was the following. We aimed to conduct an analysis of the main factors influencing the NH3-NH4+ balance, that is, the level of ammonium toxicity in surface waters, and to use them in modelling. Based on this, it was necessary to create a water quality assessment model based on ammonium content using fuzzy logic and ANN to predict the toxic effect of ammonium on aquatic living organisms. The practical value of the obtained results was to establish for which consumers and which water organisms the ammonium-containing surface waters would have a valuable practical value.

2. Material and Methods

2.1. Study Area and Water Quality Analysis

The research was conducted on the Styr River, within the Rivne Nuclear Power Plant (RNPP) water discharge influence zone. Sampling and monitoring of parameters were carried out by the certified measuring laboratory of the RNPP (Certificate of Recognition of Measuring Capabilities No. R-8/11-57-5 dated 22.12.17), using measuring instruments verified by the State Metrological Supervision of Ukraine. Standard measurement methods were used to control the concentration. This study used the monitoring RNPP results for 2018–2022 (Table 1).
The flow rate in the Styr River, Q [m3/s], was measured at the hydrological station below the water intake of the RAPP using an acoustic flow rate meter; the flow rate was calculated as the product of the cross-sectional area (m2) by the average flow rate (m/s).
The Styr River basin is located in northwestern Ukraine, within the Lviv, Volyn, and Rivne regions. The river is 494 km long and its catchment covers an area of 13,100 km2 with an average annual water flow of 49.5 m3/s at the mouth, decreasing to 10–20 m in the upper reaches and increasing to 30–50 m in the middle and lower reaches. The riverbed is composed of sandstones and shales of Cretaceous and Paleogene age, as well as Miocene clays in the lower reaches. According to surface water typology, the Styr River is a lowland-type, sandy loamy river [36].
Two water sampling sites were selected (Figure 2). Their selection was carried out for the purpose of monitoring whether there is a negative impact from the discharge of cooling water into the Styr River by the RNPP in terms of ammonium content.

2.2. Fuzzy Logic

The theory of fuzzy sets, the main ideas of which were proposed by the mathematician Lotfi Zadeh [57], allows us to describe qualitative, fuzzy concepts and knowledge about the surrounding world, as well as to operate on the knowledge in this theory to form an independent direction of scientific and applied research—fuzzy modelling [58]. Development and application of fuzzy inference systems include a number of stages (Figure 3).
Next, Mamdani’s algorithm was used, which is one of the first that was used in fuzzy inference systems [62]. Mamdani’s algorithm consists of the following steps:
  • Formation of the rule base of fuzzy inference systems.
  • Fuzzification of input variables.
  • Aggregation of terms according to fuzzy rules. Paired fuzzy logical operations are used to find the degree of truth of the conditions in each of the fuzzy rules.
  • Activation of sub-conclusions in fuzzy rules; at the same time, only active fuzzy rules are taken into account to reduce the output time.
  • Accumulation of the conclusions of vague rules.
  • Defuzzification of source variables.
The characteristics of the fuzzy set are the membership function. In this study, a triangular membership function was used, which can be expressed as:
μ x = 0 , x a x c x a b a , a x b c x c b , b x c
where a is the minimum possible value, b is the most expected value, and c is the maximum possible value.

2.3. Artificial Neural Networks

The basis of the next stage of research was the creation, training, and testing of ANN models (Figure 4).
To create and effectively use an ANN model, it is very important to correctly choose the model parameters. The learning parameters can be classified as follows:
  • Parameters related to the network architecture:
    -
    Number of hidden layers and their characteristics;
    -
    Initialization of network weights;
    -
    Selection of the activation function.
  • Parameters related to the learning process:
    -
    Batch size—the number of data subsets used for the unit weight calibration process. Depending on the processing power, the batch size can be from a few data points to an entire dataset. A batch size that is too small may result in a longer learning process. On the other hand, an excessively large batch size may lead to the impossibility of achieving convergence.
    -
    Number of epochs—the number of times the entire training dataset is exposed to the network during training. The number of epochs can vary from a few to several thousand and depends on the size of the training set, the type of network, and the specifics of the problem.
    -
    Loss function—a function that compares target values and predicted output values. The main goal of training is to minimize the loss function between those values.
    -
    Optimization algorithm—a function or algorithm that adjusts the learning parameters of a neural network. To implement the learning process of the neural network, backpropagation algorithms are used for multiple iterative comparisons of the network’s output value with the expected value. The number of performed comparisons depends on the size of the training set, the expected number of iterations, and the training progress of the network. Without the use of backpropagation algorithms, a simple comparison of the output values would only update the weights on the last layer of the hidden network, since its inner layers act as a black box. To update them, the backpropagation algorithm calculates the derivative values of the activation function of each neuron in the network based on the input vector for each level [63].
The key indicator when calculating various loss indicators is the observation error e i , which is defined as the difference between the target value and the value predicted by the model for a given observation i [64].
e i = y i y i
where y i —predicted value; y i —target value.
Measures based on absolute errors include the mean squared error (MSE):
M S E = 1 n i = 1 n e i 2 ,
A group of indicators based on the part of the main measure is expressed as a percentage of p i , including the mean absolute percentage error (MAPE):
p i = | e i | y i ,  
MAPE is calculated from the formula:
M A P E = 1 n i = 1 n 100 · p i ,
The MSE indicator was calculated to evaluate the model effectiveness. MAPE and R 2 were used for comparative analysis of the model performance.
R2 is a statistical measure used to predict future outcomes or test hypotheses based on other related information. R2 is determined using Formula (6) [65]:
R 2 = 1 y i y i 2 y i y i ¯ 2 .
In the next stage of the study, six ANN models were created which had the same architecture but differing activation functions (ReLU, softmax, tanh) and optimization algorithms (ADAM, RMSprop) [66].
The network structure, with an input layer consisting of 4 neurons, one hidden layer (128 neurons), and an output layer with 1 neuron, was optimal (Figure 5).

3. Results and Discussion

The water quality of the river after the discharge of cooling water in the Styr River is indicated in Table 2, showing the result of the discharge of RNPP return water in the area of the Styr River. Temperatures vary considerably between the two sections (S1 and S2), ranging from 1.2 °C to 23.0 °C. Section S1 has higher average temperatures compared to Section S2. The highest temperatures occur in July and August, while the lowest values are observed in January and December. Peak water flow in the Styr River occurs in March and April, while the lowest values are observed in August and September. pH values remain within a range from 7.92 to 8.47 throughout the year in both sections. Temperatures vary considerably between the two sections (S1 and S2), ranging from 1.2 °C to 23.0 °C. Section S1 has higher average temperatures compared to Section S2 (Table 2). The highest temperatures occur in July and August, while the lowest values are observed in January and December. Peak runoff occurs in March and April, while the lowest values are observed in August and September. pH values remain within a range from 7.92 to 8.47 throughout the year in both sections. On average, the DO concentration is higher in Section S1 than in Section S2. The concentration of TAN ranges from 0.23 mg/dm3 to 0.62 mg/dm3 in both sections during the year. The highest concentration of TAN is observed in January and February and the lowest in July and August. There are no significant seasonal variations in the concentration of NO2, CO32−, Cl, and SO42−. The highest concentration of PO43− is observed in May and June and the lowest in December and January.
  • Justification of the effect of electrical conductivity and anions of weak acids on the level of ammonium toxicity
When monitoring the quality of surface water, according to the current methodology in Ukraine [1], indicators such as water pH, temperature, and the main anions of weak inorganic acids (for example, CO32− and SiO44−), except for PO43−, are not taken into account. This approach does not take into consideration the influence of weak acid anions, which can be present in relatively high concentrations in surface waters. When assessing the TAN impact on flora and fauna, it is advisable to also pay attention to the content of soluble silicates (SiO44−). This anion is not in the list of controlled chemical indicators of water quality, but it can play a similar function as carbonates (CO32−) in relation to macrophytes. Ionized silicates can be perceived by plants as inorganic fertilizers, which are extremely necessary, e.g., for diatoms and various other submerged macrophytes. Its main purpose is to strengthen the stem and roots of the plant [67]. Water electrical conductivity is also an important parameter, but it affects only the balance of ionized and non-ionized ammonia in water [18,24]. As evidenced by modern scientific results of experimental research, it is believed that water with an electrical conductivity of more than 500 mS/cm or more than 200–300 mg/dm3 has a relatively stable percentage of non-ionized ammonium, i.e., the chemical balance does not shift in the direction of increasing NH3. Therefore, it is very important to monitor the water quality with electrical conductivity below 500 mS/cm [68].
At a neutral or alkaline water pH, the concentration of inorganic weak acid anions (PO43−, CO32−, SiO44−) can affect the balance between ammonia and ammonium. Thus, their content can determine the toxicity of ammonia in aquatic environments. Their influence on the content of non-ionized ammonia can be more pronounced, especially in alkaline conditions. In this case, the reason is that ammonia and anions of weak acids can react with each other and form inorganic salts, which are weak electrolytes. For example, at a temperature of 25 °C in aqueous solutions with the same molar concentration of 0.1 M, the dissociation constant Ka is 1.86·10−5 for NH4HCO3, 2.9·10−5 for NH4H2PO4, and 2.9·10−5 for NH4HSiO4. Thus, ammonia is retained by these anions, and the balance between ionized and non-ionized forms is shifted toward the ionized (less toxic) form. In water at a high pH (in alkaline environments), carbonates may be more dominant compared to sulphates, and therefore the effect of carbonates on ammonia distribution may be more pronounced [69]. In the case of anions of strong acids (Cl, SO42−), although they can interact with ammonia, forming ammonium sulphates and chlorides, their effect is less noticeable in an alkaline environment compared to anions of weak acids.
  • WQIAM approach
The process of creating the WQIAM is to summarize a number of different indicators (pH, temperature, concentration of weak inorganic acid anions, water electrical conductivity) into a single compressed value that determines the water quality and its impact on flora and fauna after the discharge of cooled water to River Styr and to make it understandable to a wide number of people, including local residents, who influence the decision making of local authorities [40,70]. Building and modelling with WQIAM will provide the decision makers with a reliable and simple tool to control and monitor water resources downstream of industrial areas.
In order to translate quantitative data into something more sustainable, fuzzy membership functions must first be defined so as to represent an acceptable level. For developing a WQIAM index for the assessment of water quality with regard to ammonium content, the following procedure should be applied [71]. In the first stage, water quality classes are determined for all selected and substantiated variables (chemical parameters of water). Each set of variable values is then assigned to a corresponding quality class value. The next steps are to apply the membership function, create a rule base, and use a fuzzy algorithm. Defuzzification of the conclusions is carried out using the centroid method, the calculation of which is based on the concept of the gravity center of the original function.
Complex relationships occur between the concentration of ammonia nitrogen and various external factors [72]. These factors may affect the TAN concentration differently at different times and in different places, forming complex schemes that greatly complicate the forecast. Taking into account all of the above, the method of water quality assessment based on the content of total ammonium TAN should differentiate chemical indicators according to the level of the negative impact. The conducted literature analysis on the degree of TAN impact on flora and fauna allowed us to make the following assumptions and reasonable conclusions for the preparation of fuzzy logic rules. A fragment of the table with such rules is presented in Table 3.
Four factors were used as independent variables: T, pH, EC, and AWIA. The triangular membership function was used for the fuzzification of the independent variables (Figure 6).
The linguistic meaning of the independent variables and the distribution of ranges are given in Table 4. Each of the variables was described by three terms: low, middle, and high.
The inference system checks the value of each linguistic variable using fuzzy logic rules and transforms the input set into an output linguistic variable. The next step of fuzzy inference is to aggregate the input data based on the generated rules. Multiple rules are processed simultaneously, followed by their aggregation into the final solution using a fuzzy logical conclusion. The set of rules in this study included 125 rules (Figure 7). This study used the Mamdani-type inference based on an IF-THEN logic function using an AND function as a conjunction.
The centroid defuzzification method was used to calculate the output value, in which the original value was determined based on the gravity center of the original fuzzy set. The output variable was described by five terms: very good, good, satisfactory, poor, and very poor (Figure 8).
The linguistic value of the source variable and the distribution of ranges are given in Table 5.
The final step involves defuzzification, where the fuzzy linguistic output variables are converted into numbers. Figure 9 shows an example of the defuzzification step.
The output variable WQIAM was calculated for 448 monitoring records. After using the fuzzy logic model, a table was formed which contained 448 rows and 5 columns: the first 4 are the input variables (T, pH, EC and AWIA), and the last column is the output variable (WQIAM).
During the next stage of the study, six ANN models were created.
Table 6 shows the characteristics of ANN models and a comparison of their performance. Performance testing of the models was carried out for 100 epochs; increasing the number of epochs did not lead to an increase in the model efficiency. The dataset was divided into three parts—training/testing/validation at the ratio of 70%/15%/15%. The batch size was set to one batch.
It should be noted that the use of the activation function ReLU compared to the functions softmax and tanh showed a significant increase in performance. Analysis of MAPE and R2 indicated that the ANN#2 model achieved the best performance results (lowest MAPE and highest R2). This network used the ReLU activator for the hidden layers of neurons and the ADAM loss function optimizer. The best performance was achieved for MAPE = 5.8%; R2 = 0.9686.
Figure 9 and Figure 10 show a comparison of the MSE and MAE results for the training and validation datasets for the best (ANN#2) and worst (ANN#5) ANN models.
Figure 10a shows the MSE comparison results for the training and validation datasets of the ANN#2 model. The maximum value of MSE was reached in the first epoch and was 11.933 for the training sample; the validation set was 4.504. The minimum MSE values were as follows: 0.1826 for the training set in the 96th epoch and 0.0336 for the validation set in the 88th epoch.
Figure 10b shows the results of MSE comparison for the training and validation datasets of the ANN#5 model. The maximum value of MSE was reached in the first epoch and was 28.469 for the training sample or 27.357 for the validation set. The minimum MSE values were reached in the 95th epoch and were 0.986 for the training set and 0.825 for the validation set.
Figure 11 shows the distribution of predicted and target values of the ANN#2 (a) and ANN#5 (b) networks. In the case of the ANN#2 network, the vast majority of predicted values are as close as possible and do not deviate from the regression line.
The architecture, weights, and configuration of the ANN#2 model after training and testing were saved in H5 and JSON files. This allows the model to be used without retraining. Additionally, the model can make predictions about datasets that it has not yet “seen”. The next step was to check the effectiveness of the model and compare its forecast with real data. The dataset contained 8 records, one record for each grade level, which were obtained during the Fuzzy Logic model application phase. Data were loaded into the ANN model and the predicted values (y′) were calculated. Table 7 shows target values (y), predicted values (y′), and the percentage deviation ∆y between these values.
Table 7 shows that the deviation levels between the target and forecast values can be estimated as low, which confirms the modelling efficiency and the high quality of the obtained forecasts.
Since the purpose of this work was to assess the impact of an NPP which discharges ammonium-containing wastewater into the Styr River, it is appropriate to choose ichthyofauna for predicting the impact of ammonium, due to the fact that when comparing the norm of total ammonium for drinking water and fisheries, the requirements for fisheries are stricter.
The development of a water quality assessment model and a water quality prediction model based on ammonium content is of not only scientific but also practical importance. The practical significance of the obtained results lies in the search for users of ammonium-containing natural waters, for which even a slight increase in its concentration or other indicators of water quality (T, pH, electrical conductivity, concentration of anions of weak inorganic acids, etc.) can lead to negative consequences. Thus, for consumers of surface water who use it as a source of drinking water, the change in the concentration of ammonium and other listed indicators is important, but not as important as for flora and fauna. Surface water, which is the source of the water supply, is required to be cleaned, and most often the water treatment station will ensure compliance with the necessary requirements for this indicator [73,74].
Surface waters with ammonium are the immediate environment for the creation of flora and fauna. Therefore, when evaluating and comparing the impact of TAN on flora and fauna, it is necessary to understand mainly which living organisms are extremely sensitive to its toxicity. As reported in a number of scientific studies, a significant number of macrophytes perceive ammonium as a nutrient element [75,76]. Plants fix it especially well together with soluble carbon dioxide, which in turn is consumed for their growth (photosynthesis) [18]. In paper [77], it was demonstrated that Lemna aequinoctialis was moderately sensitive to ammonia, but an increase in ammonia concentration inhibited the growth of the macrophyte Ceratophyllum demersum due to the decrease in the content of non-structural carbohydrates in the leaves.
In paper [76], it was stated that ammonia toxicity is most pronounced in the macrophyte Elodea canadensis at higher temperatures (25 °C) and low pH values of 6. They suggested that this was due to a limited amount of inorganic carbon required for the construction of carbohydrates, necessary for ammonia detoxification. The two forms of inorganic carbon available to macrophytes are CO2 and carbonates. At high temperatures, CO2 is limited due to the lower concentration of dissolved gases; at low pH, carbonate availability is limited due to the interaction with hydrogen ions [78,79]. Thus, it can be assumed that when managing a water body with an increased TAN content and a low carbon content, it may be appropriate to introduce natural limestone into the water [69,79]. This should allow improved growth of submerged macrophytes that consume TAN together with carbon as inorganic fertilizers.
It is known that fish are the most sensitive species to both chronic and acute exposure to ammonia. However, there is overlap between the sensitivities of representatives of different taxonomic groups, and furthermore, the range of acute toxicity values for all taxa is within approximately two orders of magnitude. The toxicity of ammonia to fish is well documented, and some mechanisms of this process are well explained. These include proliferation of gill tissue cells [18], violation of osmoregulatory and circulatory activity, and subsequent violation of the metabolic function of the liver and kidneys [80]. Most fish produce ammonia as the end product of protein metabolism, which is excreted through the gills into the surrounding water. The increased content of ammonia in the environment worsens its removal from water, and the increased content of ammonia leads to an imbalance of ion regulation in the body of fish [26].

4. Conclusions

The research presented in the article emphasizes the need to improve the methodology of comprehensive ecological assessment of surface waters, especially for reservoirs receiving ammonium-containing wastewater from nuclear power plants. The proposed WQIAM Total Ammonium Exposure Water Quality Index resulted from a modification of the WQI calculation methodology. It was established that the percentage of the highly toxic non-ionized form of ammonium (NH3) increases significantly not only with an increase in temperature and pH, but also with other parameters (electrical conductivity, concentration of anions of weak inorganic acids). This approach makes it possible to predict the concentration balance of ionized and non-ionized forms of ammonium under the influence of local variations of established factors in reservoirs. The creation of an ANN model for predicting the toxic effect of ammonium on aquatic living organisms showed its effectiveness through the analysis of the obtained values (MAPE = 5.8%; R2 = 0.9686). The practical importance of this research can be useful in several areas of environmental management and sustainable water management. First, forecasting the levels of toxicity in reservoirs is a necessary condition for effective management of wastewater discharge of industrial facilities, ensuring their compliance with environmental norms and standards. Secondly, modeling the relationships between the chemical indicators of water increases the probability of avoiding a crisis state of receiving reservoirs of nuclear power plants and the level of their environmental safety. Third, the proposed WQIAM index for estimating and predicting the content of non-ionized ammonia allows for the development of more effective strategies for the protection of ichthyofauna, which is important for the preservation of biodiversity.

Author Contributions

Conceptualization, Y.T., R.T. and A.P.; methodology, Y.T., R.T., P.K., A.P. and O.B.; software, R.T., A.K. and I.S.; validation, P.K., O.B. and I.S.; formal analysis, Y.T., A.K., A.P. and O.B.; investigation, Y.T., P.K., O.B. and I.S.; resources, Y.T., R.T. and P.K.; data curation, P.K., O.B. and I.S.; writing—original draft preparation, Y.T., R.T. and A.P.; writing—review and editing, Y.T., R.T. and A.K.; visualization, P.K., R.T. and A.K.; supervision, Y.T. and R.T.; project administration, Y.T.; funding acquisition, R.T., P.K. and I.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable for studies not involving humans or animals.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Trach, R.; Trach, Y.; Kiersnowska, A.; Markiewicz, A.; Lendo-Siwicka, M.; Rusakov, K. A Study of Assessment and Prediction of Water Quality Index Using Fuzzy Logic and ANN Models. Sustainability 2022, 14, 5656. [Google Scholar] [CrossRef]
  2. Ola, I.; Drebenstedt, C.; Burgess, R.M.; Mensah, M.; Hoth, N.; Okoroafor, P.; Külls, C. Assessing Petroleum Contamination in Parts of the Niger Delta Based on a Sub-Catchment Delineated Field Assessment. Environ. Monit. Assess. 2024, 196, 585. [Google Scholar] [CrossRef] [PubMed]
  3. Kekes, T.; Tzia, C.; Kolliopoulos, G. Drinking and Natural Mineral Water: Treatment and Quality–Safety Assurance. Water 2023, 15, 2325. [Google Scholar] [CrossRef]
  4. Brettschneider, D.J.; Spring, T.; Blumer, M.; Welge, L.; Dombrowski, A.; Schulte-Oehlmann, U.; Sundermann, A.; Oetken, M.; Oehlmann, J. Much Effort, Little Success: Causes for the Low Ecological Efficacy of Restoration Measures in German Surface Waters. Environ. Sci. Eur. 2023, 35, 31. [Google Scholar] [CrossRef]
  5. Zhang, M.; Dong, X.; Li, X.; Jiang, Y.; Li, Y.; Liang, Y. Review of Separation Methods for the Determination of Ammonium/Ammonia in Natural Water. Trends Environ. Anal. Chem. 2020, 27, e00098. [Google Scholar] [CrossRef]
  6. Gałuszka, A.; Migaszewski, Z.M.; Namieśnik, J. Moving Your Laboratories to the Field—Advantages and Limitations of the Use of Field Portable Instruments in Environmental Sample Analysis. Environ. Res. 2015, 140, 593–603. [Google Scholar] [CrossRef] [PubMed]
  7. Wang, X.; Li, J.; Chen, J.; Cui, L.; Li, W.; Gao, X.; Liu, Z. Water Quality Criteria of Total Ammonia Nitrogen (TAN) and Un-Ionized Ammonia (NH3-N) and Their Ecological Risk in the Liao River, China. Chemosphere 2020, 243, 125328. [Google Scholar] [CrossRef] [PubMed]
  8. Camargo, J.A.; Alonso, Á. Ecological and Toxicological Effects of Inorganic Nitrogen Pollution in Aquatic Ecosystems: A Global Assessment. Environ. Int. 2006, 32, 831–849. [Google Scholar] [CrossRef] [PubMed]
  9. Xia, Y.; Zhang, M.; Tsang, D.C.W.; Geng, N.; Lu, D.; Zhu, L.; Igalavithana, A.D.; Dissanayake, P.D.; Rinklebe, J.; Yang, X.; et al. Recent Advances in Control Technologies for Non-Point Source Pollution with Nitrogen and Phosphorous from Agricultural Runoff: Current Practices and Future Prospects. Appl. Biol. Chem. 2020, 63, 8. [Google Scholar] [CrossRef]
  10. Smith, P.; House, J.I.; Bustamante, M.; Sobocká, J.; Harper, R.; Pan, G.; West, P.C.; Clark, J.M.; Adhya, T.; Rumpel, C.; et al. Global Change Pressures on Soils from Land Use and Management. Glob. Chang. Biol. 2016, 22, 1008–1028. [Google Scholar] [CrossRef]
  11. DSanPiN 2.2.4-171-10. Hygienic Requirements for Drinking Water Intended for Human Consumption. Approved by Order No. 400 of the Ministry of Health of Ukraine Dated 2010. 12 May 2010. Available online: https://zakon.rada.gov.ua/Laws/Show/Z0452-10#Text (accessed on 27 March 2024).
  12. Zakonodavstvo Ukraini. Hygienic Water Quality Standards of Water Bodies to Meet Drinking, Household and Other Needs of the Population. Order of the Ministry of Health of Ukraine Dated May 2, 2022 No. 721. 2022. Available online: https://zakon.rada.gov.ua/Laws/Show/Z0524-22#Text (accessed on 27 March 2024).
  13. Zakonodavstvo Ukraini. Generalized List of Maximum Permissible Concentrations (MPC) and Tentatively Safe Levels of Exposure (VZUV) of Harmful Substances for the Water of Fishing Reservoirs. Ministry of Agriculture (Order of the State Emergency Service of Ukraine Dated 31.08.2017 No. 47 on Approval of the List of Industry Standards, Valid until 01.01.2025). 1990. Available online: http://online.budstandart.com/Ua/Catalog/ (accessed on 27 March 2024).
  14. Zakonodavstvo Ukraini. Methodology for Assigning a Body of Surface Water to One of the Classes of Ecological and Chemical State of the Body of Surface Water, As Well As Assigning an Artificial or Significantly Altered Body of Surface Water to One of the Classes of Ecological Potential of an Artificial or Significantly Altered Body of Surface Water. 2019. Available online: https://zakon.rada.gov.ua/Laws/Show/Z0127-19#Tex (accessed on 27 March 2024).
  15. Khilchevskyi, V.K.; Plichko, L.V.; Zabokrytska, M.R. The Centralized Water Supply of Kyiv Is 150 Years Old (1872–2022)—The Importance of the Dnipro and Desna Rivers. In Proceedings of the 16th International Conference Monitoring of Geological Processes and Ecological Condition of the Environment, Kyiv, Ukraine, 15–18 November 2022; European Association of Geoscientists & Engineers: Utrecht, The Netherlands, 2022; pp. 1–5. [Google Scholar]
  16. Yu, D.; Chen, N.; Krom, M.D.; Lin, J.; Cheng, P.; Yu, F.; Guo, W.; Hong, H.; Gao, X. Understanding How Estuarine Hydrology Controls Ammonium and Other Inorganic Nitrogen Concentrations and Fluxes through the Subtropical Jiulong River Estuary, S.E. China under Baseflow and Flood-Affected Conditions. Biogeochemistry 2019, 142, 443–466. [Google Scholar] [CrossRef]
  17. US Environmental Protection Agency. Aquatic Life: Ambient Water Quality Criteria for Ammonia-Freshwater; US Environmental Protection Agency: Washington, DC, USA, 2013.
  18. Mooney, T.J.; Pease, C.J.; Hogan, A.C.; Trenfield, M.; Kleinhenz, L.S.; Humphrey, C.; van Dam, R.A.; Harford, A.J. Freshwater Chronic Ammonia Toxicity: A Tropical-to-temperate Comparison. Environ. Toxicol. Chem. 2019, 38, 177–189. [Google Scholar] [CrossRef] [PubMed]
  19. Emerson, K.; Russo, R.C.; Lund, R.E.; Thurston, R.V. Aqueous Ammonia Equilibrium Calculations: Effect of PH and Temperature. J. Fish. Board. Can. 1975, 32, 2379–2383. [Google Scholar] [CrossRef]
  20. Ding, T.-T.; Du, S.-L.; Huang, Z.-Y.; Wang, Z.-J.; Zhang, J.; Zhang, Y.-H.; Liu, S.-S.; He, L.-S. Water Quality Criteria and Ecological Risk Assessment for Ammonia in the Shaying River Basin, China. Ecotoxicol. Environ. Saf. 2021, 215, 112141. [Google Scholar] [CrossRef] [PubMed]
  21. El-Greisy, Z.A.E.-B.; Elgamal, A.E.E.; Ahmed, N.A.M. Effect of Prolonged Ammonia Toxicity on Fertilized Eggs, Hatchability and Size of Newly Hatched Larvae of Nile Tilapia, Oreochromis Niloticus. Egypt. J. Aquat. Res. 2016, 42, 215–222. [Google Scholar] [CrossRef]
  22. Wang, X.; Fan, B.; Fan, M.; Belanger, S.; Li, J.; Chen, J.; Gao, X.; Liu, Z. Development and Use of Interspecies Correlation Estimation Models in China for Potential Application in Water Quality Criteria. Chemosphere 2020, 240, 124848. [Google Scholar] [CrossRef] [PubMed]
  23. Borgmann, U. Chronic Toxicity of Ammonia to the Amphipod Hyalella Azteca; Importance of Ammonium Ion and Water Hardness. Environ. Pollut. 1994, 86, 329–335. [Google Scholar] [CrossRef] [PubMed]
  24. Kleinhenz, L.S.; Humphrey, C.L.; Mooney, T.J.; Trenfield, M.A.; van Dam, R.A.; Nugegoda, D.; Harford, A.J. Chronic Ammonia Toxicity to Juveniles of 2 Tropical Australian Freshwater Mussels (Velesunio Spp.): Toxicity Test Optimization and Implications for Water Quality Guideline Values. Environ. Toxicol. Chem. 2019, 38, 841–851. [Google Scholar] [CrossRef] [PubMed]
  25. Johnson, I.; Sorokin, N.; Atkinson, C.; Rule, K.; Hope, S. Proposed EQS for Water Framework Directive Annex VIII Substances Ammonia (Un-Ionised); Science Report; Water Framework Directive: Edinburgh, UK, 2007. [Google Scholar]
  26. Eddy, F.B. Ammonia in Estuaries and Effects on Fish. J. Fish. Biol. 2005, 67, 1495–1513. [Google Scholar] [CrossRef]
  27. Kuznietsov, P.; Biedunkova, O.; Trach, Y. Monitoring of Phosphorus Compounds in the Influence Zone Affected by Nuclear Power Plant Water Discharge in the Styr River (Western Ukraine): Case Study. Sustainability 2023, 15, 16316. [Google Scholar] [CrossRef]
  28. Wang, X.; Zhao, G.; Qu, X.; Yang, X.; Wang, J.; Wang, P. Influence of Cooling Water Parameters on the Thermal Performance of the Secondary Circuit System of a Modular High-Temperature Gas-Cooled Reactor Nuclear Power Plant. Energies 2023, 16, 6560. [Google Scholar] [CrossRef]
  29. Kuznietsov, P.; Tykhomyrov, A.; Biedunkova, O.; Zaitsev, S. Improvement of methods for controlling power oil of cooling tower recycling water supply units at Rivne nuclear power plant. Sci. Horiz. 2022, 25, 69–79. [Google Scholar] [CrossRef]
  30. Kuznietsov, P.N.; Biedunkova, O.O.; Yaroshchuk, O.V. Experimental study of transformation of carbonate system components cooling water of rivne nuclear power plant during water treatment by liming. Probl. At. Sci. Technol. 2023, 144, 69–73. [Google Scholar] [CrossRef]
  31. Kuznietsov, P. Evaluation of the Scaling and Corrosive Potential of the Cooling Water Supply System of a Nuclear Power Plant Based on the Physicochemical Control Dataset. Data Brief. 2024, 54, 110347. [Google Scholar] [CrossRef] [PubMed]
  32. Zakonodavstvo Ukraini. Rules for the Protection of Surface Water from Pollution by Return Water. Resolution of March 25, 1999 N 465, Kyiv. 1999. Available online: https://zakon.rada.gov.ua/Laws/Show/465-99-%D0%BF#Text (accessed on 27 March 2024).
  33. Permit for Special Water Use of VP RAEP No. 53/RV/49d-20. 2020. Available online: https://e-services.davr.gov.ua (accessed on 27 March 2024).
  34. Kuznietsov, P.; Biedunkova, O. Evaluating the Impact of Dispersed Particles in the Water of a Power Plant Recirculating Cooling System on the Discharge of Suspended Solids into a Natural Water Body. East. -Eur. J. Enterp. Technol. 2023, 6, 6–16. [Google Scholar] [CrossRef]
  35. Chen, W.; Hui, K.; Wang, B.; Zhao, Q.; Chong, D.; Yan, J. Review of the Tube External Condensation Heat Transfer Characteristic of the Passive Containment Cooling System in Nuclear Power Plant. Ann. Nucl. Energy 2021, 157, 108226. [Google Scholar] [CrossRef]
  36. Kuznietsov, P.M.; Biedunkova, O.O. Variations in Content of Total Organic and Inorganic Carbon and Their Seasonality in the Water of the River Styr. In Proceedings of the 17th International Conference Monitoring of Geological Processes and Ecological Condition of the Environment, Kyiv, Ukraine, 7–10 November 2023; European Association of Geoscientists & Engineers: Utrecht, The Netherlands, 2023; pp. 1–5. [Google Scholar]
  37. Peters, A.; Merrington, G.; Leverett, D.; Wilson, I.; Schlekat, C.; Garman, E. Comparison of the Chronic Toxicity of Nickel to Temperate and Tropical Freshwater Species. Environ. Toxicol. Chem. 2019, 38, 1211–1220. [Google Scholar] [CrossRef] [PubMed]
  38. Zheng, L.; Liu, Z.; Yan, Z.; Zhang, Y.; Yi, X.; Zhang, J.; Zheng, X.; Zhou, J.; Zhu, Y. PH-Dependent Ecological Risk Assessment of Pentachlorophenol in Taihu Lake and Liaohe River. Ecotoxicol. Environ. Saf. 2017, 135, 216–224. [Google Scholar] [CrossRef]
  39. Krishnan, S.T.; Devadhasan, J.P.; Kim, S. Recent Analytical Approaches to Detect Exhaled Breath Ammonia with Special Reference to Renal Patients. Anal. Bioanal. Chem. 2017, 409, 21–31. [Google Scholar] [CrossRef]
  40. Azzirgue, E.M.; Cherif, E.K.; Tchakoucht, T.A.; Azhari, H.E.; Salmoun, F. Testing Groundwater Quality in Jouamaa Hakama Region (North of Morocco) Using Water Quality Indices (WQIs) and Fuzzy Logic Method: An Exploratory Study. Water 2022, 14, 3028. [Google Scholar] [CrossRef]
  41. Horton, R.K. An Index Number System for Rating Water Quality. J. Water Pollut. Control Fed. 1965, 37, 300–306. [Google Scholar]
  42. Chaudhary, J.K. A Comparative Study of Fuzzy Logic and WQI for Groundwater Quality Assessment. Procedia Comput. Sci. 2020, 171, 1194–1203. [Google Scholar]
  43. Sudarno, S.; Agung Wibowo, M.; Andarini, P.; Veda Priya Kurniatama, D.; Ghinna Humaira, N. Methods for Determining the Water Quality Index in Developing Asian Countries: A Review. Ecol. Eng. Environ. Technol. 2024, 25, 311–323. [Google Scholar] [CrossRef] [PubMed]
  44. Bassi, N.; Kumar, M.D. Water Quality Index as a Tool for Wetland Restoration. Water Policy 2017, 19, 390–403. [Google Scholar] [CrossRef]
  45. Larroca, F.P.; Olschewski, E.S.; Quino-Favero, J.; Huamaní, J.R.; Castillo Sequera, J.L. Water Treatment Plant Prototype with PH Control Modeled on Fuzzy Logic for Removing Arsenic Using Fe(VI) and Fe(III). Water 2020, 12, 2834. [Google Scholar] [CrossRef]
  46. Von Altrock, C.; Krause, B.; Zimmermann, H.-J. Advanced Fuzzy Logic Control Technologies in Automotive Applications. In Proceedings of the IEEE International Conference on Fuzzy Systems, San Diego, CA, USA, 8–12 March 1992; pp. 835–842. [Google Scholar]
  47. Chen, C.-H.; Jeng, S.-Y.; Lin, C.-J. Fuzzy Logic Controller for Automating Electrical Conductivity and PH in Hydroponic Cultivation. Appl. Sci. 2021, 12, 405. [Google Scholar] [CrossRef]
  48. McKone, T.E.; Deshpande, A.W. Can Fuzzy Logic Bring Complex Environmental Problems into Focus? Environ. Sci. Technol. 2005, 39, 42A–47A. [Google Scholar] [CrossRef]
  49. won Seo, I.; Yun, S.H.; Choi, S.Y. Forecasting Water Quality Parameters by ANN Model Using Pre-Processing Technique at the Downstream of Cheongpyeong Dam. Procedia Eng. 2016, 154, 1110–1115. [Google Scholar]
  50. Trach, Y.; Trach, R.; Kalenik, M.; Koda, E.; Podlasek, A. A Study of Dispersed, Thermally Activated Limestone from Ukraine for the Safe Liming of Water Using ANN Models. Energies 2021, 14, 8377. [Google Scholar] [CrossRef]
  51. Trach, R.; Khomenko, O.; Trach, Y.; Kulikov, O.; Druzhynin, M.; Kishchak, N.; Ryzhakova, G.; Petrenko, H.; Prykhodko, D.; Obodianska, O. Application of Fuzzy Logic and SNA Tools to Assessment of Communication Quality between Construction Project Participants. Sustainability 2023, 15, 5653. [Google Scholar] [CrossRef]
  52. Grinberga, L.; Grabuža, D.; Grīnfelde, I.; Lauva, D.; Celms, A.; Sas, W.; Głuchowski, A.; Dzięcioł, J. Analysis of the Removal of BOD, COD and Suspended Solids in Subsurface Flow Constructed Wetland in Latvia. Acta Sci. Pol. Archit. 2021, 20, 21–28. [Google Scholar] [CrossRef]
  53. DSTU 4077-2001; Water Quality. Determination of PH. State Standard of Ukraine: Kyiv, Ukraine, 2002.
  54. MWV 081/12-0106-03; Surface, Groundwater and Return Water. Procedure for Measuring the Mass Concentration of Ammonium Ions by the Photocolorimetric Method with Nessler’s Reagent. State Environmental Inspectorate of the Ministry of Environmental Protection of Ukraine: Kyiv, Ukraine, 2003.
  55. DSTU ISO 9963-1:2007; Water Quality—Determination of Alkalinity—Part 1: Determination of Total and Composite Alkalinity. State Consumer Standard of Ukraine: Kyiv, Ukraine, 2007.
  56. MWV 081/12-0005-01; Surface and Treated Wastewater. Methodology for Measuring the Mass Concentration of Dissolved Orthophosphates by the Photometric Method. State Environmental Inspectorate of the Ministry of Environmental Protection of Ukraine: Kyiv, Ukraine, 2001.
  57. MWV 081/12-0311-06; Surface, Groundwater and Return Water. Methods of Temperature Measure-Ments. State Environmental Inspectorate of the Ministry of Environmental Protection of Ukraine: Kyiv, Ukraine, 2006.
  58. MWV 081/12-0653-09; Surface, Groundwater and Return Water. Method for Measuring the Mass Concentration of Chlorides by the Titrimetric Method. State Environmental Inspectorate of the Ministry of Environmental Protection of Ukraine: Kyiv, Ukraine, 2009.
  59. MWV 081/12-0177-05; Surface, Groundwater and Return Water. Method for Measuring the Mass Concentration of Sulphates by the Titrimetric Method. State Environmental Inspectorate of the Ministry of Environmental Protection of Ukraine: Kyiv, Ukraine, 2005.
  60. MWV 081/12-0008-01; Surface and Treated Wastewater. Method for Measuring the Mass Con-Centration of Dissolved Oxygen by the Winkler Iodometric Titration Method. State Environmental Inspectorate of the Ministry of Environmental Protection of Ukraine: Kyiv, Ukraine, 2001.
  61. KND 211.1.4.023-95; Method for Photometric Determination of Nitrite Ions with Gries Reagent in Surface and Treated Wastewater. Ukrainian Scientific Center for Water Protection: Khmelnytskyi, Ukraine, 1995.
  62. Nikolaev, A.B.; Sapego, Y.S. Developing Incident Detection Algorithm Based on the Mamdani Fuzzy Inference Algorithm. Int. J. Adv. Stud. 2017, 7, 18. [Google Scholar] [CrossRef]
  63. Trach, R.; Ryzhakova, G.; Trach, Y.; Shpakov, A.; Tyvoniuk, V. Modeling the Cause-and-Effect Relationships between the Causes of Damage and External Indicators of RC Elements Using ML Tools. Sustainability 2023, 15, 5250. [Google Scholar] [CrossRef]
  64. Li, T.; Lu, J.; Wu, J.; Zhang, Z.; Chen, L. Predicting Aquaculture Water Quality Using Machine Learning Approaches. Water 2022, 14, 2836. [Google Scholar] [CrossRef]
  65. Trach, R.; Lendo-Siwicka, M.; Pawluk, K.; Bilous, N. Assessment of the Effect of Integration Realisation in Construction Projects. Teh. Glas. 2019, 13, 254–259. [Google Scholar] [CrossRef]
  66. Madhu, G.; Kautish, S.; Alnowibet, K.A.; Zawbaa, H.M.; Mohamed, A.W. NIPUNA: A Novel Optimizer Activation Function for Deep Neural Networks. Axioms 2023, 12, 246. [Google Scholar] [CrossRef]
  67. Weldes, H.H.; Lange, K.R. Properties of Soluble Silicates. Ind. Eng. Chem. 1969, 61, 29–44. [Google Scholar] [CrossRef]
  68. Trach, Y.; Bujakowski, F.; Koda, E.; Mazur, Ł.; Nejbert, K.; Podlasek, A.; Vaverková, M.D. Characterization of Adsorbents from Ukrainian Kaolinite Clay for the Sorption of Nickel: Insight and Practical Application for Water Treatment in Conditions of Economic Constraints. Desalination Water Treat. 2022, 278, 1–12. [Google Scholar] [CrossRef]
  69. Trach, Y.; Melnychuk, V.; Trach, R. The Removal of Cationic and Anionic Pollutions from Water Solutions Using Ukrainian Limestones: Comparative Analysis. Desalination Water Treat. 2022, 275, 24–34. [Google Scholar] [CrossRef]
  70. Mourhir, A.; Rachidi, T.; Karim, M. River Water Quality Index for Morocco Using a Fuzzy Inference System. Environ. Syst. Res. 2014, 3, 21. [Google Scholar] [CrossRef]
  71. Icaga, Y. Fuzzy Evaluation of Water Quality Classification. Ecol. Indic. 2007, 7, 710–718. [Google Scholar] [CrossRef]
  72. Wang, H.; Zhang, L.; Zhao, H.; Wu, R.; Sun, X.; Cen, Y.; Zhang, L. Feature Multi-Level Attention Spatio-Temporal Graph Residual Network: A Novel Approach to Ammonia Nitrogen Concentration Prediction in Water Bodies by Integrating External Influences and Spatio-Temporal Correlations. Sci. Total Environ. 2024, 906, 167591. [Google Scholar] [CrossRef] [PubMed]
  73. Michel, M.M.; Tytkowska, M.; Reczek, L.; Trach, Y.; Siwiec, T. Technological Conditions for the Coagulation of Wastewater from Cosmetic Industry. J. Ecol. Eng. 2019, 20, 78–85. [Google Scholar] [CrossRef] [PubMed]
  74. Wichowski, P.; Rutkowska, G.; Kamiński, N.; Trach, Y. Analysis of Water Consumption in the Campus of Warsaw University of Life Sciences in Years 2012–2016. J. Ecol. Eng. 2019, 20, 193–202. [Google Scholar] [CrossRef] [PubMed]
  75. Harford, A.J.; Mooney, T.J.; Trenfield, M.A.; van Dam, R.A. Manganese Toxicity to Tropical Freshwater Species in Low Hardness Water. Environ. Toxicol. Chem. 2015, 34, 2856–2863. [Google Scholar] [CrossRef]
  76. Netten, J.J.; van der Heide, T.; Smolders, A.J. Interactive Effects of PH, Temperature and Light during Ammonia Toxicity Events in Elodea Canadensis. Chem. Ecol. 2013, 29, 448–458. [Google Scholar] [CrossRef]
  77. Gao, J.; Li, L.; Hu, Z.; Zhu, S.; Zhang, R.; Xiong, Z. Ammonia Stress on the Carbon Metabolism of Ceratophyllum Demersum. Environ. Toxicol. Chem. 2015, 34, 843–849. [Google Scholar] [CrossRef]
  78. Wang, Z.; Leung, K.M.Y. Effects of Unionised Ammonia on Tropical Freshwater Organisms: Implications on Temperate-to-Tropic Extrapolation and Water Quality Guidelines. Environ. Pollut. 2015, 205, 240–249. [Google Scholar] [CrossRef] [PubMed]
  79. Trach, Y.; Melnychuk, V.; Melnychuk, G.; Mazur, Ł.; Podlasek, A.; Vaverková, M.; Koda, E. Using Local Mineral Materials for the Rehabilitation of the Ustya River—A Case Study. Desalination Water Treat. 2021, 232, 346–356. [Google Scholar] [CrossRef]
  80. Arillo, A.; Margiocco, C.; Melodia, F.; Mensi, P.; Schenone, G. Ammonia Toxicity Mechanism in Fish: Studies on Rainbow Trout (Salmo Gairdneri Rich.). Ecotoxicol. Environ. Saf. 1981, 5, 316–328. [Google Scholar] [CrossRef]
Figure 1. The percentage content of non-ionized ammonium with regard to the water temperature and pH [19].
Figure 1. The percentage content of non-ionized ammonium with regard to the water temperature and pH [19].
Sustainability 16 05835 g001
Figure 2. Water sampling sites of the Styr River in the zone of influence of the RNPP water discharge.
Figure 2. Water sampling sites of the Styr River in the zone of influence of the RNPP water discharge.
Sustainability 16 05835 g002
Figure 3. The main stages of the fuzzy inference process.
Figure 3. The main stages of the fuzzy inference process.
Sustainability 16 05835 g003
Figure 4. Stages of ANN model creation, training, and testing.
Figure 4. Stages of ANN model creation, training, and testing.
Sustainability 16 05835 g004
Figure 5. ANN model architecture.
Figure 5. ANN model architecture.
Sustainability 16 05835 g005
Figure 6. An example of a triangular membership function (factor pH).
Figure 6. An example of a triangular membership function (factor pH).
Sustainability 16 05835 g006
Figure 7. Example of part of the rule base (from 1 to 16).
Figure 7. Example of part of the rule base (from 1 to 16).
Sustainability 16 05835 g007
Figure 8. An example of the linguistic value of the output variable (level “satisfactory”).
Figure 8. An example of the linguistic value of the output variable (level “satisfactory”).
Sustainability 16 05835 g008
Figure 9. Example of the defuzzification for values of input variables [12, 6.9, 1550, 7].
Figure 9. Example of the defuzzification for values of input variables [12, 6.9, 1550, 7].
Sustainability 16 05835 g009
Figure 10. Calculation of mean squared error (MSE) for training and validation datasets of ANN#2 (a) and ANN#5 (b).
Figure 10. Calculation of mean squared error (MSE) for training and validation datasets of ANN#2 (a) and ANN#5 (b).
Sustainability 16 05835 g010
Figure 11. Scatter plot of predicted and target values of the ANN#2 (a) and ANN#5 (b) networks.
Figure 11. Scatter plot of predicted and target values of the ANN#2 (a) and ANN#5 (b) networks.
Sustainability 16 05835 g011
Table 1. Characteristics of the measurement methods (CI is the measurement range, δ is the relative measurement error, ∆ is the absolute measurement error).
Table 1. Characteristics of the measurement methods (CI is the measurement range, δ is the relative measurement error, ∆ is the absolute measurement error).
IndicatorCIδ (∆)Measurement Method (Standard in Ukraine)
pH251–12(± 0.2)[53]
TAN, mg/dm30.1–50±5%[54]
CO32−, mg/dm3--[55]
PO43−, mg/dm30.05–0.5±15%[56]
Temperate, °C1.5–70(0.1 °C)[57]
Cl, mg/dm37–1500±20%[58]
SO42−, mg/dm35–500±9%[59]
DO, mg/dm30.5–500.5 to 5: δ = ±25;
5 to 20: δ = ±20;
20 to 50: δ = ±10
[60]
NO2, mg/dm30.03–100.05 to 1.0: ±δ = 50%, more than 1.0: 25%[61]
Table 2. Indicators of the water quality of the Styr River before (C1) and after (Ce) discharge of cooling water (M ± SD during 2018–2022, M—is the mean value, SD is the standard deviation).
Table 2. Indicators of the water quality of the Styr River before (C1) and after (Ce) discharge of cooling water (M ± SD during 2018–2022, M—is the mean value, SD is the standard deviation).
T, °CQ, m3/spHDO, mg/dm3TAN, mg/dm3NO2, mg/dm3SO42−, mg/dm3Cl, mg/dm3CO32−, mg/dm3PO43−, mg/dm3
S1
January1.2 ± 2.734.8 ±14.1792 ± 0.0812.29 ± 0.420.62 ± 0.110.07 ± 0.0351.7 ± 8.913.7 ± 2.2241 ± 100.22 ± 0.06
February 2.6 ± 4.536.4 ± 18.2 8.03 ± 0.0612.22 ± 1.150.57 ± 0.120.06 ± 0.0252.9 ± 13.315.7 ± 1.5237 ± 150.15 ± 0.05
March 5.5 ± 5.144.2 ± 22.38.16 ± 0.0712.24 ± 1.490.43 ± 0.090.07 ± 0.0445.2 ± 9.514.9 ± 2.8229 ± 160.16 ± 0.13
April12.0 ± 4.643.2 ± 9.88.15 ± 0.1011.63 ± 1.070.47 ± 0.080.09 ± 0.0739.8 ± 11.113.7 ± 3.1253 ± 180.19 ± 0.09
May 17.3 ± 1.939.2 ± 9.38.29 ± 0.068.99 ± 1.410.36 ± 0.100.17 ± 0.0642.4 ± 8.813.6 ± 1.5228 ± 100.28 ± 0.14
June 21.8 ± 0.329.6 ± 7.48.42 ± 0.079.24 ± 0.70.29 ± 0.080.14 ± 0.0937.4 ± 11.014.0 ± 1.6243 ± 120.39 ± 0.15
July21.7 ± 2.425.0 ± 4.98.41 ± 0.088.79 ± 1.520.22 ± 0.070.08 ± 0.0339.6 ± 12.213.0 ± 2.5227 ± 220.42 ± 0.05
August22.7 ± 5.214.6 ± 9.38.32 ± 0.109.43 ± 0.620.23 ± 0.090.08 ± 0.0236.7 ± 7.214.1 ± 2.4218 ± 260.41 ± 0.08
September16.9 ± 5.517.4 ± 7.68.18 ± 0.1010.33 ± 0.910.21 ± 0.090.06 ± 0.0235.2 ± 6.215.6 ± 2.3226 ± 280.34 ± 0.08
October 9.6 ± 3.624.0 ± 6.68.18 ± 0.0910.67 ± 1.440.26 ± 0.090.05 ± 0.0136.3 ± 13.714.8 ± 2.3218 ± 300.32 ± 0.03
November 4.9 ± 1.924.4 ± 17.37.97 ± 0.0911.38 ± 0.870.30 ± 0.080.08 ± 0.0244.8 ± 12.915.5 ± 1.8235 ± 150.22 ± 0.07
December1.8 ± 1.726.6 ± 16.97.94 ± 0.0312.49 ± 0.930.48 ± 0.110.05 ± 0.0235.5 ± 9.415.8 ± 5.4223 ± 200.20 ± 0.07
S2
January2.1 ± 2.434.8 ± 14.18.06 ± 0.1611.72 ± 0.550.57 ± 0.120.06 ± 0.0352.6 ± 9.114.5 ± 1.7245 ± 110.25 ± 0.07
February 3.6 ± 4.936.4 ± 18.2 8.12 ± 0.1811.42 ± 0.900.59 ± 0.140.04 ± 0.0354.4 ± 13.214.4 ± 0.6246 ± 180.18 ± 0.04
March 6.1 ± 5.544.2 ± 22.38.28 ± 0.1111.79 ± 1.310.51 ± 0.110.07 ± 0.0445.2 ± 9.114.8 ± 2.9246 ± 170.17 ± 0.14
April13.0 ± 4.543.2 ± 9.88.23 ± 0.0811.00 ± 1.060.53 ± 0080.09 ± 0.0641.9 ± 11.413.1 ± 2.9250 ± 150.19 ± 0.12
May 18.4 ± 1.939.2 ± 9.38.37 ± 0.098.88 ± 1.560.41 ± 0.090.14 ± 0.0842.3 ± 8.914.8 ± 1.2232 ± 160.29 ± 0.12
June 22.5 ± 0.929.6 ± 7.48.44 ± 0.098.86 ± 0.870.31 ± 0.110.13 ± 0.0339.6 ± 12.3316.9 ± 1.6248 ± 150.38 ± 0.12
July22.4 ± 2.625.0 ± 4.98.47 ± 0.078.65 ± 0.820.24 ± 0.120.09 ± 0.0340.7 ± 7.915.1 ± 1.6237 ± 120.44 ± 0.14
August23.0 ± 5.814.6 ± 9.38.35 ± 0.138.80 ± 0.950.25 ± 0.140.07 ± 0.0337.3 ± 6.1814.0 ± 2.2239 ± 100.42 ± 0.06
September17.4 ± 5.217.4 ± 7.68.26 ± 0.119.68 ± 1.200.23 ± 0.080.05 ± 0.0236.3 ± 14.216.2 ± 2.3232 ± 110.37 ± 0.08
October 10.3 ± 3.624.0 ± 6.68.26 ± 0.0910.26 ± 1.260.28 ± 0.070.05 ± 0.0137.8 ± 14.114.6 ± 2.5221 ± 280.33 ± 0.07
November 5.8 ± 2.324.4 ± 17.38.04 ± 0.0711.03 ± 1.250.36 ± 0.060.08 ± 0.0346.2 ± 11.016.9 ± 3.4240 ± 180.23 ± 0.06
December2.3 ± 1.626.6 ± 16.98.10 ± 0.0712.02 ± 1.120.51 ± 0.110.05 ± 0.0235.0 ± 8.616.6 ± 2.9233 ± 180.21 ± 0.05
Table 3. Fragment of fuzzy logic rules.
Table 3. Fragment of fuzzy logic rules.
T 5–15 T 15–25 T 5–15 T 15–25 T 15–25
pH 6–7.5pH 6–7.5pH 8–9.5pH 8–9.5pH 8–9.5
EC 500  mS/cm or TDS 200–300 mg/dm3EC 500  mS/cm or TDS 200–300 mg/dm3EC 500  mS/cm or TDS 200–300 mg/dm3EC 500  mS/cm or TDS 200–300 mg/dm3EC 500  mS/cm or TDS 200–300 mg/dm3
Anions of weak inorganic acids ≥50%Anions of weak inorganic acids ≥50%Anions of weak inorganic acids ≥50%Anions of weak inorganic acids ≥50%Anions of weak inorganic acids ≥50%
Water quality is goodWater quality is satisfactoryWater quality is satisfactoryWater quality is satisfactoryWater quality is
poor
Table 4. Ranges of linguistic values for particular factors.
Table 4. Ranges of linguistic values for particular factors.
FactorsTpHECAWIA
low[1, 5, 9][5.4, 6, 6.6][−100, 500, 1100][−4, 0, 4]
middle[6, 10, 14][6.15, 6.75, 7.35][650, 1250, 1850][1, 5, 9]
high[11, 15, 19][6.9, 7.5, 8.1][1400, 2000, 2600][6, 10, 14]
Table 5. Linguistic meaning of the source variable and distribution of ranges.
Table 5. Linguistic meaning of the source variable and distribution of ranges.
very good[−1.5, 0, 1.5]
good[1, 2.5, 4]
satisfactory[3.5, 5, 6.5]
poor[6, 7.5, 9]
very poor[8.5, 10, 11.5]
Table 6. Comparison of the ANN model performance.
Table 6. Comparison of the ANN model performance.
ANN ModelsANN#1ANN#2ANN#3ANN#4ANN#5ANN#6
activation functionReLUReLUsoftmaxsoftmaxtanhtanh
optimization algorithmADAMRMSpropADAMRMSpropADAMRMSprop
R20.96860.97540.74360.72290.52280.5641
MAPE, %5.85.214.913.316.615.9
Table 7. Evaluation of the prediction efficiency of the ANN#2 model.
Table 7. Evaluation of the prediction efficiency of the ANN#2 model.
Target Value (y)Predicted Value (y′)Deviation ∆y, %
22.0040.18
32.9940.19
43.9740.65
55.0040.07
65.9930.12
77.324.57
88.0861.07
98.5485.02
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Trach, Y.; Trach, R.; Kuznietsov, P.; Pryshchepa, A.; Biedunkova, O.; Kiersnowska, A.; Statnyk, I. Predicting the Influence of Ammonium Toxicity Levels in Water Using Fuzzy Logic and ANN Models. Sustainability 2024, 16, 5835. https://doi.org/10.3390/su16145835

AMA Style

Trach Y, Trach R, Kuznietsov P, Pryshchepa A, Biedunkova O, Kiersnowska A, Statnyk I. Predicting the Influence of Ammonium Toxicity Levels in Water Using Fuzzy Logic and ANN Models. Sustainability. 2024; 16(14):5835. https://doi.org/10.3390/su16145835

Chicago/Turabian Style

Trach, Yuliia, Roman Trach, Pavlo Kuznietsov, Alla Pryshchepa, Olha Biedunkova, Agnieszka Kiersnowska, and Ihor Statnyk. 2024. "Predicting the Influence of Ammonium Toxicity Levels in Water Using Fuzzy Logic and ANN Models" Sustainability 16, no. 14: 5835. https://doi.org/10.3390/su16145835

APA Style

Trach, Y., Trach, R., Kuznietsov, P., Pryshchepa, A., Biedunkova, O., Kiersnowska, A., & Statnyk, I. (2024). Predicting the Influence of Ammonium Toxicity Levels in Water Using Fuzzy Logic and ANN Models. Sustainability, 16(14), 5835. https://doi.org/10.3390/su16145835

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop