Next Article in Journal
SEAWAT Scenarios Evaluating Links between the Southern Gabès (TN) Confined Aquifer and the Mediterranean Sea
Next Article in Special Issue
A Hybrid Model Combined Deep Neural Network and Beluga Whale Optimizer for China Urban Dissolved Oxygen Concentration Forecasting
Previous Article in Journal
Capacity Assessment of a Combined Sewer Network under Different Weather Conditions: Using Nature-Based Solutions to Increase Resilience
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Using Artificial Neural Networks to Predict Operational Parameters of a Drinking Water Treatment Plant (DWTP)

by
Stylianos Gyparakis
1,
Ioannis Trichakis
2,* and
Evan Diamadopoulos
1
1
School of Chemical and Environmental Engineering, Technical University of Crete, 73100 Chania, Greece
2
European Commission, Joint Research Centre (JRC), 21027 Ispra, Italy
*
Author to whom correspondence should be addressed.
Water 2024, 16(19), 2863; https://doi.org/10.3390/w16192863
Submission received: 10 September 2024 / Revised: 4 October 2024 / Accepted: 7 October 2024 / Published: 9 October 2024

Abstract

:
The scope of the present study is the estimation of key operational parameters of a drinking water treatment plant (DWTP), particularly the dosages of treatment chemicals, using artificial neural networks (ANNs) based on measurable in situ data. The case study consists of the Aposelemis DWTP, where the plant operator had an estimation of the ANN output parameters for the required dosages of water treatment chemicals based on observed water quality and other operational parameters at the time. The estimated DWTP main operational parameters included residual ozone (O3) and dosages of the chemicals used: anionic polyelectrolyte (ANPE), poly-aluminum chloride hydroxide sulfate (PACl), and chlorine gas (Cl2(g)). Daily measurable results of water sample analysis and recordings from the DWTP Supervisory Control and Data Acquisition System (SCADA), covering a period of 38 months, were used as input parameters for the artificial neural network (1188 values for each of the 14 measurable parameters). These input parameters included: raw water supply (Q), raw water turbidity (T1), treated water turbidity (T2), treated water residual free chlorine (Cl2), treated water concentration of residual aluminum (Al), filtration bed inlet water turbidity (T3), daily difference in water height in reservoir (∆H), raw water pH (pH1), treated water pH (pH2), and daily consumption of DWTP electricity (El). Output/target parameters were: residual O3 after ozonation (O3), anionic polyelectrolyte (ANPE), poly-aluminum chloride hydroxide sulfate (PACl), and chlorine gas supply (Cl2(g)). A total of 304 different ANN models were tested, based on the best test performance (tperf) indicator. The one with the optimum performance indicator was selected. The scenario finally chosen was the one with 100 neural networks, 100 nodes, 42 hidden nodes, 10 inputs, and 4 outputs. This ANN model achieved excellent simulation results based on the best testing performance indicator, which suggests that ANNs are potentially useful tools for the prediction of a DWTP’s main operational parameters. Further research could explore the prediction of water chemicals used in a DWTP by using ANNs with a smaller number of operational parameters to ensure greater flexibility, without prohibitively reducing the reliability of the prediction model. This could prove useful in cases with a much higher sample size, given the data-demanding nature of ANNs.

1. Introduction

Water treatment plant operators often seek a quick, easy-to-use, and reliable method to predict the daily dosages of chemicals. The present study focuses on meeting this need using ANNs to provide a useful and reliable tool for DWTP operators. This study uses historical data on the quality and operational parameters of a surface water treatment plant that produces water for human consumption (potable water). The importance of this study is that it takes into account the experience of the DWTP operator, a factor that has been largely absent from the existing literature.
Artificial intelligence is recognized as a powerful tool for solving many industrial operational problems and has been applied in various fields such as transportation, financial management, and healthcare [1,2,3]. Artificial intelligence has also found applications in the field of environmental monitoring, such as rainfall forecasting and water or wastewater treatment monitoring [3,4,5,6,7,8]. Recently, machine learning, a part of artificial intelligence, has also been employed in water resource management and treatment processes [9,10,11,12,13].
A reliable model for predicting the operating parameters of a water treatment plant is essential for controlling the operation of the plant and ensuring the provision of safe drinking water for consumers. Quality parameters such as turbidity, pH, and water temperature are often monitored, and there is a significant correlation between the aforementioned parameters and the quantities of flocculants and coagulants used in water treatment processes [11,14,15,16,17].
Artificial neural networks (ANNs), as a branch of artificial intelligence [18], are models designed to resemble the brain’s performance [18,19]. ANNs are very useful tools with high efficiency in complex relationship matching and forecasting in a DWTP setting. ANNs can process nonlinear data that are complex and difficult to simulate with simple mathematical models [12,15,17]. ANNs are based on learning, training, and control mechanisms and are not programmed like conventional computer programs. The training of an artificial neural network is achieved by adding the abovementioned connections through a training algorithm. Modelling using an artificial neural network is achieved based on the following main stages: 1. data collection, 2. data analysis, and 3. neural network training.
A neural network is capable of learning and therefore generalizing. These are the two main reasons that a neural network can make accurate predictions. Generalization is the production of logical output data for input data that is not encountered during the training of the artificial neural network. For this reason, an ANN is able to find appropriate simulation solutions to complex, data-rich, and otherwise intractable problems [19].
The most commonly used ANN types are: Multi-layer Perceptrons (MLPs), Radial Basis Function (RBF) networks, General Regression Neural Networks (GRNNs), Cascade Forward Networks (CFNs), and Kohonen’s self-organizing maps (SOM) [19,20,21,22]. Several studies have been published on the modelling and optimization of water treatment processes by using ANNs. Multilayer perceptron (MLP) artificial neural networks (ANNs) have been used for regression to determine flocculant dosages and turbidity of treated water [23,24]. Another approach, using machine vision, involved the use of a neural network to predict flocculant dosages by analyzing images of flocculation [25].
The values of the parameters of R2 (coefficient of determination), MSE (Mean Squared Error), SSE (Sum of Squared Error), and RMSE (Root-Mean-Square Error) are commonly used for the validation of the results that are predicted from the models. Small deviations between model results and experimental results are usually observed [1,26].
According to previous research [1,15,17,27], the advantages of ANN modelling in the water sector include: (i) the lack of an algorithm required to build the ANN model, making modelling a fast and flexible process; (ii) the ability to handle nonlinear relationships with ease; (iii) the incorporation of the experience and knowledge of the plant operator into the construction of the model; (iv) the optimization of water treatment processes; (v) practical solutions to water pollution issues; (vi) reduction of operational expenditures by the optimization of chemical usage; and (vii) timely generation of modelling and forecasting results.
The limitations of ANN modelling in the water sector are: (i) the availability of data; (ii) poor data reproducibility; (iii) the need for sufficient data for training and testing; (iv) the dependence of the prediction performance of the model on specific conditions (e.g., great uncertainty in sudden changes); (v) disadvantages related to random data selection; and (vi) high computational requirements [1,18,28].
Building on previous studies that demonstrated the reliability of ANN-based prediction models in the field of surface water treatment, the purpose of this study was to predict the chemical dosages in a DWTP and assess whether ANNs could be useful tools for the operators of complex physicochemical water treatment processes, providing them with first estimates of chemical dosages.

2. Materials and Methods

2.1. Study Area

The Aposelemis Dam reservoir supplies drinking water to the northeastern part of Crete, Greece. The capacity of the reservoir is 25.3 × 106 m3. Before entering the drinking water network, the surface water is treated at the Aposelemis DWTP to ensure compliance with high drinking water standards. First, the treated water is disinfected by ozone (in situ O3 production), which also oxidizes the dissolved metals turning them into insoluble forms. Then, the alum coagulants and flocculants are added for the precipitation of the produced sludge. After that, the water passes through sand filters and undergoes final disinfection using chlorine gas (Cl2(g)). A schematic of the treatment sequence is shown in Figure 1.
The Aposelemis DWTR has a maximum daily treatment capacity of 110,600 m3, although it usually operates at a third of its maximum capacity. The coagulant used at the DWTP is poly-aluminum chloride hydroxide sulfate (PACl). The quality of the produced drinking water meets the requirements of the drinking water legislation.
The processes of ozonation, coagulation, and disinfection are not easily simulated using classical modelling methods because of the complex physical and chemical mechanisms involved. Coagulation has been a common method for water treatment for decades; its main purpose is the removal of colloidal particles [12,17,27,29]. The steps followed during this study include: 1. collecting real operational data; 2. statistical analysis; 3. building; and 4. finally, selecting the ANN prediction model.
The basic statistics for the input and output parameters of the current study are given in Table 1.

2.2. Data Collection and Analysis

Water quality prediction models predict the water quality for future periods using historical data in real time and data from remote water quality monitoring systems [11]. According to the literature, although many efforts have been made to develop mathematical models to predict chemical usage in DWTPs, these models cannot predict the complex physicochemical processes in water treatment and may face difficulties analyzing the nonlinear relationships between process components, for example, in the coagulation process [12,29]. In order to obtain the input and output data that are required to develop and validate an ANN model, water analysis results were used from daily operational data for a period of 38 months (1,188 values for each of the 14 parameters for a total of 16,632 values). The data were either collected from the SCADA system through automated on- line analysis or through laboratory measurements according to standard methods and accredited ISO methods. The parameters analyzed in the lab were raw water turbidity (T1), raw water pH (pH1), treated water turbidity (T2), treated water pH (pH2), treated water residual chlorine (Cl2), treated water concentration of aluminum (Al), residual O3 after the ozonation process (O3), anionic polyelectrolyte (ANPE) dosage, poly-aluminum chloride hydroxide sulfate (PACl) dosage, filtration beds inlet water turbidity (T3). The parameters of daily difference in water height in reservoir (ΔH), raw water supply (Q), daily consumption of DWTP electricity (El), and chlorine gas supply (Cl2(g)) were obtained with the aid of sensors.
During data collection, seasonal variations in raw water quality data were observed. The fluctuations generally were minimal. However, during autumn and winter, which is the rainy season, increased variation in turbidity and pH value of raw water was observed. The progressions of the two main descriptors (raw water turbidity and pH) of the raw water quality over time are indicated in Figure 2 and Figure 3, respectively.
In order to use the data in the construction of the ANN models, data normalization was necessary because of the different ranges of scale among the different parameters. For this study, the input data of the ANN were normalized with final values between 0.0–1.0 by using the equation:
N o r m a l i z e d   D a t a = L M i n M a x M i n ,
where L is the raw value, Max is the maximum value of raw value, and Min is the minimum value of raw value.
The ANN inputs consisted of ten (10) raw and treated water quality and operational data parameters: 1. raw water supply (Q), 2. raw water turbidity (T1), 3. treated water turbidity (T2), 4. treated water residual chlorine (Cl2), 5. treated water concentration of residual aluminum (Al), 6. filtration beds inlet water turbidity (T3), 7. daily difference in water height in reservoir (ΔH), 8. raw water pH (pH1), 9. treated water pH (pH2), and 10. daily consumption of DWTP electricity (El).
The ANN targets, factors needed to achieve the desired treated drinking water quality, were: 1. the residual ozone after ozonation process (O3), 2. the anionic polyelectrolyte (ANPE) dosage, 3. the poly-aluminum chloride hydroxide sulfate (PACl) dosage, and 4. the chlorine gas supply (Cl2(g)).

2.3. ANN Approach

Nineteen different ANN scenarios were examined using the Neural Fitting Tool (nftool) of MATLAB R2019a. In particular, 1188 values per variable were used with random division between training, validation, and testing procedures of the ANNs. The available data were divided into 70% for training (832 individual values), 15% for validation (178 individual values), and 15% for testing (178 individual values) of the developing ANN models. During training, the network used the training samples to adjust the weights, which connect the nodes, with the objective of minimizing the error between targets and simulated values. To avoid overfitting, the algorithm used early stopping, which makes use of the validation samples, and their respective error. When the validation samples error begins to rise while the training samples error continues to decrease, ANN generalization is considered to have converged and training stops. Other early stopping criteria also include a maximum number of epochs (to prevent infinite runs) and a minimum value of gradient (to avoid running after weight adjustments cease changing over time). Test samples have no effects on training or validation; thus, training error provides an independent measure of ANN performance and generalization ability.
For ANN training, the Levenberg–Marquardt Algorithm was chosen, since it is a fast-converging algorithm, widely used by the scientific community [30,31,32,33,34,35]. This algorithm typically requires more memory, but for this study, the memory needs did not exceed the specifications of a middle-range personal computer. The algorithm excels at minimizing the training errors of the ANN, but in order to avoid overtraining and to ensure the interpolating and extrapolating capabilities of the model, an early stopping mechanism was used. This early stopping mechanism used the validation dataset to check how the validation error evolves during training. Generally, the validation error decreases in the first iterations of the algorithm, and at a certain point reaches a minimum, and then starts increasing again, due to overtraining of the ANN. For the present work, training automatically stopped when the validation samples’ mean squared error increased for six (6) consecutive times, and the final ANN for that iteration was the one with the weights producing the minimum validation error. Figure 4 shows the architecture of a simple ANN, which includes an input layer, two hidden layers, and an output layer [1,36].
Ensembles of ANNs were used instead of single ANNs in order to obtain more robust results. These ensembles consisted of many ANNs ranging from 10 to 100 ANNs in increments of 10 networks. Each ensemble had a maximum number of nodes for its ANNs, ranging from 10 to 100 maximum nodes in increments of 10 nodes. For each single ANN in any of these ensembles, the nodes of the hidden layer were subsequently randomly selected between one node and the maximum number of nodes in that specific ensemble.
Regarding the available data, the water quality and operational variables of the DWTP were categorized into three groups (Table 2). The first category includes those variables that, based on the experience of the DWTP operators, are required to be definitely present as inputs to the ANN model. The variables included in the first category are: raw water supply (Q), raw water turbidity (T1), treated water turbidity (T2), treated water residual chlorine (Cl2), treated water concentration of aluminum (Al), and filtration beds inlet water turbidity (T3). The second group includes those variables that are possibly to be necessary as inputs to the ANN model. The variables included in the second group are: daily difference in water height in reservoir (ΔH), raw water pH (pH1), treated water pH (pH2) and daily consumption of DWTP electricity (El). The third group includes the variables as outputs to the ANN model. The parameters included in the third group are: residual ozone (O3) after ozonation process, anionic polyelectrolyte (ANPE), poly-aluminum chloride hydroxide sulfate (PACl), and chlorine gas supply (Cl2(g)).

2.4. MATLAB Code

Appropriate code in MATLAB was designed and developed to run 16 different combinations of the 1st group variables combined with the 2nd group variables according to the canvas depicted in Table 3. The flow chart of the algorithm (code) developed in MATLAB is depicted in Figure 5.
In this comparative study, we examined 19 different ANN scenarios based on the number of neural networks and the number of nodes, with 16 different combinations of variables (Table 4) in each ANN scenario. In total, 304 different cases of ANNs were examined.

3. Results

3.1. Test Performance Indicator

Running 19 different ANN scenarios with 16 different cases per scenario (304 different cases), resulted in the creation of Table 5 with the test performance (tperf) indicator values per scenario and case. Test performance (tperf) is the preferred performance indicator, since it is not biased, and the data used to calculate this were previously used neither for training nor for validation of the ANN. It is calculated as the Mean Squared Error (MSE) of the values in the test dataset. MSE is a statistical parameter and consists of the average squared difference between outputs and targets. The smaller the value of the tperf indicator, the better the performance, while zero values of the tperf indicates no differences at all. Table 5 includes only those scenarios with the minimum value of the tperf indicator, for the sake of brevity. The final selection of the optimum ANN model scenario is made among those with the smallest value of the tperf indicator.
The optimum selected scenario consisted of 100 neural networks, 100 nodes, 42 hidden nodes in 1 hidden layer, and belonged to case 1 [all 4 input parameters are selected (ΔH, pH1, pH2, El)].

3.2. Artificial Neural Network Model

The ANN model constructed with 10 Inputs (ΔH, Q, T1, pH1, T2, pH2, Cl2, Al, El, T3), 100 nodes, 42 hidden nodes and 4 Targets (O3, ANPE, PACl, Cl2(g)) is reflected in Figure 6. The suggested ANN model predict very well the studied main operational parameters.
A clear outcome of this analysis, as expected, was that as the number of neural networks increased, with fixed number of nodes (Nodes = 10), and as the number of nodes increased, with fixed number of neural networks (Neural Networks = 100), the running time of ANN models increased exponentially.
The results in Table 5 show that including all the measurable parameters in the prediction model improves its performance, but at the cost of increased processing time. Also, in Table 5, the second-best case is with two parameters fewer (case 7: pH1, El parameters added and ΔH and pH2 parameters are omitted by the prediction model) in a clearly much shorter time. This suggests that the relationship between ΔH and pH2 parameters and the dosages of the chemicals that are used in a DWTP is much more complex, and only when a large number of neural networks is used can this complexity be captured.
Nevertheless, the ANN manages to reach the best test performance indicator to its minimum value. While the extra information provided by the two aforementioned parameters improves the selected prediction model accuracy by 1.65%, compared to the second-best scenario, it uses 42 hidden nodes versus 8 in a time of 23,346 s versus 461 s, respectively. Increasing the complexity of the ANN increases its accuracy, increasing the number of hidden nodes and ultimately the time required. In cases where time and computing power are important for decision making, a smaller number of neural networks and less complex models that can achieve satisfactory predictions are more desirable.
The plots between the normalized observed and model simulated values of the 4 target parameters, O3, ANPE, PACl, and Cl2(g) were constructed and are given in Figure 7, Figure 8, Figure 9 and Figure 10, respectively.
Figure 11, Figure 12, Figure 13 and Figure 14 show the simulated and observed values of the main operational parameters, which are the outputs of the developed ANN model.
Evaluating Figure 7, Figure 8, Figure 9 and Figure 10 and Figure 11, Figure 12, Figure 13 and Figure 14, one can easily conclude that the chosen ANN model satisfactorily predicts the values of the input parameters for the dosages of the chemicals used in the DWTP, with the exception of ozone dosage. It also follows the trend of increasing or decreasing them and satisfactorily approaches the extreme values to a large extent. The best value of R-squared (R2) is achieved for the Cl2(g) prediction model, followed by ANPE, then by PACl, and finally by O3. The wide variation of ozone values (see Figure 11) may justify the especially low value of R2. According to the literature, an R2 value greater than 0.5 is considered adequate for predicting sufficiently the values of input parameters [3,24,37,38,39]. The wide variation of ozone could be improved, in future studies, if a range of O3 values were used rather than singly measured values.
For each of the four (4) ANN output parameters, the denormalization equations of the parameters (where NV: normalized value), are, respectively:
O 3 = 0.2 × N V O 3
S P A N P E = 0.2 + 0.6 × N V S P A N P E
S P P A C l = 7 + 93 × N V S P P A C l
S P C l 2 ( g ) = 0.7 + 7.30 × N V S P C l 2 ( g )

3.3. Case Study

Finally, we applied the selected ANN model, by using actual daily values of the operational variables of the Aposelemis DWTP (Table 6). The results of applying the selected model appear in Table 7. The aim of the case study was to demonstrate how close the predicted values approach the values of variables chosen by the plant operators, based on their experience.
In comparing analyses from this specific case study and following the practices derived from the long-term experience of the plant operators, the differences between the quantities of chemicals actually used and those predicted by the ANN model were minimal. The forecast period is defined as the time during which the input values of the operational parameters in the chosen ANN model do not change significantly (±10%), e.g., seasonally, following severe weather events, after a significant change in the amount of water in the reservoir, etc.
The selected ANN model predictions could help plant operators optimize resource use, including reducing the consumption of chemicals and avoiding unnecessary tests. This leads to savings in both time and money while ensuring that the drinking water produced complies with the legal standards for human consumption.

4. Discussion

The present study reinforces the point of view that ANNs are useful tools for a DWTP, with high efficiency in complex relationship matching and forecasting. The conclusion that ANN models provide accurate prediction results has been drawn from many other similar studies [1,2,3,12,17]. In this study, the ANN model scenario finally chosen, from among the 304 examined scenarios, was the model with 100 neural networks, 100 nodes, and 42 hidden nodes. Specifically, the chosen ANN ensemble model was constructed with 10 input parameters (ΔH, Q, T1, pH1, T2, pH2, Cl2, Al, El, T3), 100 nodes, 42 hidden nodes, and 4 target variables (O3, ANPE, PACl, Cl2(g)). The choice was based on the smallest value of the tperf indicator. As expected, increasing the number of neural networks, with a fixed number of nodes, and increasing the number of nodes, with a fixed number of neural networks, result in an exponential increase in the running time of ANN models. Corresponding studies [4,11,14,15,16,17] have used similar raw water quality parameters (like pH, turbidity, and colour) with quite satisfactory results.
Incorporating all the available measurable variables into the prediction model improves its performance, though at the expense of time. On the other hand, the second-best case is with two parameters fewer (case 7: pH1, El parameters are included and ΔH and pH2 parameters are omitted) and reaches only slightly less satisfactory results, though in a clearly much shorter time. It is possible that the relationship between the ΔH and pH2 parameters and the dosages of the chemicals used in a DWTP is much more complex, and only when a large number of neural networks is used, can this complexity be captured. It makes sense that the extra information, which is provided with the two aforementioned parameters, improves the selected model prediction accuracy by 1.65%. However, the slightly more accurate model uses 42 hidden nodes and takes 23,346 s, compared to the second-best scenario’s 8 hidden nodes and 461 s. As many studies have concluded [4,9,24,40], increasing the complexity of the ANN increases its accuracy, increasing the number of hidden nodes and ultimately the time required. In cases where time and computing power are important parameters for decision making, it appears that satisfactory results can be obtained using less complex models with fewer neural networks.
With the exception of the ozone dosage, the chosen ANN model effectively predicts the values of the input parameters for the chemical dosages used in the DWTP, which includes Cl2(g), ANPE, and PACl dosages. It follows the trend of increasing or decreasing them and approaches the extreme values to a large extent. The value of R-squared (R2) is better achieved for the Cl2(g) prediction model, followed by ANPE, then by PACl, and finally by O3. The wide variation of ozone values may justify the specific low value of R2. Corresponding studies have shown even better results regarding R2 [7,9,17,24,40].
The ANN model is able to indicate the optimal Cl2(g), ANPE, and PACl dosages, based on 38 months of measurement experience. In this way, the model’s predictions can assist new DWTP operators, in particular, in determining the required dosages of water treatment chemicals, thus saving time and helping them gain practical know-how. In the case of application at the Aposelemis DWTP, the facility operator will have a reliable estimation of the ANN output parameters, regarding the dosages of water treatment chemicals that should be applied, depending on the current quality and other available operational parameters. The suggested prediction ANN model responds satisfactorily in predicting the studied main operational parameters, as has been shown by similar studies [1,15,17,24,25].
Future research could focus on predicting DWTP chemical dosages using ANNs with a reduced number of operational parameters for greater flexibility, without prohibitively reducing the reliability of the prediction model. This could prove useful in cases with much larger numbers of samples, given that ANNs are highly data-demanding.

Author Contributions

Conceptualization, I.T. and S.G.; methodology, I.T.; software, I.T.; validation, E.D.; formal analysis, S.G.; investigation, S.G.; resources, S.G.; data curation, S.G.; writing—original draft preparation, S.G.; writing—review and editing, E.D.; visualization, E.D.; supervision, E.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

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

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Alam, G.; Ihsanullah, I.; Naushad, M.; Sillanpää, M. Applications of Artificial Intelligence in Water Treatment for Optimization and Automation of Adsorption Processes: Recent Advances and Prospects. Chem. Eng. J. 2022, 427, 130011. [Google Scholar] [CrossRef]
  2. Bhattacharya, A.; Sahu, S.; Telu, V.; Duttagupta, S.; Sarkar, S.; Bhattacharya, J.; Mukherjee, A.; Ghosal, P.S. Neural Network and Random Forest-Based Analyses of the Performance of Community Drinking Water Arsenic Treatment Plants. Water 2021, 13, 3507. [Google Scholar] [CrossRef]
  3. Wongburi, P.; Park, J.K. Prediction of Wastewater Treatment Plant Effluent Water Quality Using Recurrent Neural Network (RNN) Models. Water 2023, 15, 3325. [Google Scholar] [CrossRef]
  4. Chen, K.; Chen, H.; Zhou, C.; Huang, Y.; Qi, X.; Shen, R.; Liu, F.; Zuo, M.; Zou, X.; Wang, J.; et al. Comparative Analysis of Surface Water Quality Prediction Performance and Identification of Key Water Parameters Using Different Machine Learning Models Based on Big Data. Water Res. 2020, 171, 115454. [Google Scholar] [CrossRef] [PubMed]
  5. Maloney, K.O.; Buchanan, C.; Jepsen, R.D.; Krause, K.P.; Cashman, M.J.; Gressler, B.P.; Young, J.A.; Schmid, M. Explainable Machine Learning Improves Interpretability in the Predictive Modeling of Biological Stream Conditions in the Chesapeake Bay Watershed, USA. J. Environ. Manag. 2022, 322, 116068. [Google Scholar] [CrossRef]
  6. Nasir, N.; Kansal, A.; Alshaltone, O.; Barneih, F.; Sameer, M.; Shanableh, A.; Al-Shamma’a, A. Water Quality Classification Using Machine Learning Algorithms. J. Water Process Eng. 2022, 48, 102920. [Google Scholar] [CrossRef]
  7. Papailiou, I.; Spyropoulos, F.; Trichakis, I.; Karatzas, G.P. Artificial Neural Networks and Multiple Linear Regression for Filling in Missing Daily Rainfall Data. Water 2022, 14, 2892. [Google Scholar] [CrossRef]
  8. Stylianoudaki, C.; Trichakis, I.; Karatzas, G.P. Modeling Groundwater Nitrate Contamination Using Artificial Neural Networks. Water 2022, 14, 1173. [Google Scholar] [CrossRef]
  9. Dunnington, D.W.; Trueman, B.F.; Raseman, W.J.; Anderson, L.E.; Gagnon, G.A. Comparing the Predictive Performance, Interpretability, and Accessibility of Machine Learning and Physically Based Models for Water Treatment. ACS EST Eng. 2021, 1, 348–356. [Google Scholar] [CrossRef]
  10. Huang, R.; Ma, C.; Ma, J.; Huangfu, X.; He, Q. Machine Learning in Natural and Engineered Water Systems. Water Res. 2021, 205, 117666. [Google Scholar] [CrossRef]
  11. Kim, Y.; Kwak, S.; Lee, M.; Jeong, M.; Park, M.; Park, Y.-G. Determination of Optimal Water Intake Layer Using Deep Learning-Based Water Quality Monitoring and Prediction. Water 2023, 16, 15. [Google Scholar] [CrossRef]
  12. Li, L.; Rong, S.; Wang, R.; Yu, S. Recent Advances in Artificial Intelligence and Machine Learning for Nonlinear Relationship Analysis and Process Control in Drinking Water Treatment: A Review. Chem. Eng. J. 2021, 405, 126673. [Google Scholar] [CrossRef]
  13. Lowe, M.; Qin, R.; Mao, X. A Review on Machine Learning, Artificial Intelligence, and Smart Technology in Water Treatment and Monitoring. Water 2022, 14, 1384. [Google Scholar] [CrossRef]
  14. Ghaedi, A.M.; Vafaei, A. Applications of Artificial Neural Networks for Adsorption Removal of Dyes from Aqueous Solution: A Review. Adv. Colloid Interface Sci. 2017, 245, 20–39. [Google Scholar] [CrossRef] [PubMed]
  15. Wu, G.-D.; Lo, S.-L. Effects of Data Normalization and Inherent-Factor on Decision of Optimal Coagulant Dosage in Water Treatment by Artificial Neural Network. Expert Syst. Appl. 2010, 37, 4974–4983. [Google Scholar] [CrossRef]
  16. Wu, G.-D.; Lo, S.-L. Predicting Real-Time Coagulant Dosage in Water Treatment by Artificial Neural Networks and Adaptive Network-Based Fuzzy Inference System. Eng. Appl. Artif. Intell. 2008, 21, 1189–1195. [Google Scholar] [CrossRef]
  17. Dadebo, D.; Obura, D.; Etyang, N.; Kimera, D. Economic and Social Perspectives of Implementing Artificial Intelligence in Drinking Water Treatment Systems for Predicting Coagulant Dosage: A Transition toward Sustainability. Groundw. Sustain. Dev. 2023, 23, 100987. [Google Scholar] [CrossRef]
  18. Alprol, A.E.; Mansour, A.T.; Ibrahim, M.E.E.-D.; Ashour, M. Artificial Intelligence Technologies Revolutionizing Wastewater Treatment: Current Trends and Future Prospective. Water 2024, 16, 314. [Google Scholar] [CrossRef]
  19. Haykin, S.S.; Haykin, S.S. Neural Networks and Learning Machines, 3rd ed.; Prentice Hall: New York, NY, USA, 2009; ISBN 978-0-13-147139-9. [Google Scholar]
  20. Farmaki, E.G.; Thomaidis, N.S.; Simeonov, V.; Efstathiou, C.E. Comparative Use of Artificial Neural Networks for the Quality Assessment of the Water Reservoirs of Athens. J. Water Supply Res. Technol. -Aqua 2013, 62, 296–308. [Google Scholar] [CrossRef]
  21. O’Reilly, G.; Bezuidenhout, C.C.; Bezuidenhout, J.J. Artificial Neural Networks: Applications in the Drinking Water Sector. Water Supply 2018, 18, 1869–1887. [Google Scholar] [CrossRef]
  22. Wu, W.; Dandy, G.C.; Maier, H.R. Protocol for Developing ANN Models and Its Application to the Assessment of the Quality of the ANN Model Development Process in Drinking Water Quality Modelling. Environ. Model. Softw. 2014, 54, 108–127. [Google Scholar] [CrossRef]
  23. Griffiths, K.A.; Andrews, R.C. The Application of Artificial Neural Networks for the Optimization of Coagulant Dosage. Water Supply 2011, 11, 605–611. [Google Scholar] [CrossRef]
  24. Kim, C.M.; Parnichkun, M. MLP, ANFIS, and GRNN Based Real-Time Coagulant Dosage Determination and Accuracy Comparison Using Full-Scale Data of a Water Treatment Plant. J Water Supply Res Tec 2017, 66, 49–61. [Google Scholar] [CrossRef]
  25. Yamamura, H.; Putri, E.U.; Kawakami, T.; Suzuki, A.; Ariesyady, H.D.; Ishii, T. Dosage Optimization of Polyaluminum Chloride by the Application of Convolutional Neural Network to the Floc Images Captured in Jar Tests. Sep. Purif. Technol. 2020, 237, 116467. [Google Scholar] [CrossRef]
  26. Tabari, H.; Hosseinzadeh Talaee, P. Reconstruction of River Water Quality Missing Data Using Artificial Neural Networks. Water Qual. Res. J. 2015, 50, 326–335. [Google Scholar] [CrossRef]
  27. Yateh, M.; Lartey-Young, G.; Li, F.; Li, M.; Tang, Y. Application of Response Surface Methodology to Optimize Coagulation Treatment Process of Urban Drinking Water Using Polyaluminium Chloride. Water 2023, 15, 853. [Google Scholar] [CrossRef]
  28. Zhao, L.; Dai, T.; Qiao, Z.; Sun, P.; Hao, J.; Yang, Y. Application of Artificial Intelligence to Wastewater Treatment: A Bibliometric Analysis and Systematic Review of Technology, Economy, Management, and Wastewater Reuse. Process Saf. Environ. Prot. 2020, 133, 169–182. [Google Scholar] [CrossRef]
  29. Lin, S.; Kim, J.; Hua, C.; Park, M.-H.; Kang, S. Coagulant Dosage Determination Using Deep Learning-Based Graph Attention Multivariate Time Series Forecasting Model. Water Res. 2023, 232, 119665. [Google Scholar] [CrossRef]
  30. Özdoğan, H.; Üncü, Y.A.; Şekerci, M.; Kaplan, A. Neural Network Predictions of (α, n) Reaction Cross Sections at 18.5±3 MeV Using the Levenberg-Marquardt Algorithm. Appl. Radiat. Isot. 2024, 204, 111115. [Google Scholar] [CrossRef]
  31. Žic, M.; Pereverzyev, S. Application of Self-Adapting Regularization, Machine Learning Tools and Limits in Levenberg–Marquardt Algorithm to Solve CNLS Problem. J. Electroanal. Chem. 2023, 939, 117420. [Google Scholar] [CrossRef]
  32. Azeem, A.; Mai, W.; Tian, C.; Javed, Q. Dry Weight Prediction of Wedelia Trilobata and Wedelia Chinensis by Using Artificial Neural Network and MultipleLinear Regression Models. Water 2023, 15, 1896. [Google Scholar] [CrossRef]
  33. Hassan, E.S.; Alharbi, A.A.; Oshaba, A.S.; El-Emary, A. Enhancing Smart Irrigation Efficiency: A New WSN-Based Localization Method for Water Conservation. Water 2024, 16, 672. [Google Scholar] [CrossRef]
  34. Aalipour, M.; Šťastný, B.; Horký, F.; Jabbarian Amiri, B. Scaling an Artificial Neural Network-Based Water Quality Index Model from Small to Large Catchments. Water 2022, 14, 920. [Google Scholar] [CrossRef]
  35. Mu’azu, N.D. Insight into ANN and RSM Models’ Predictive Performance for Mechanistic Aspects of Cr(VI) Uptake by Layered Double Hydroxide Nanocomposites from Water. Water 2022, 14, 1644. [Google Scholar] [CrossRef]
  36. Ding, S.; Li, H.; Su, C.; Yu, J.; Jin, F. Evolutionary Artificial Neural Networks: A Review. Artif. Intell. Rev. 2013, 39, 251–260. [Google Scholar] [CrossRef]
  37. Moriasi, D.N.; Arnold, J.G.; Van Liew, M.W.; Bingner, R.L.; Harmel, R.D.; Veith, T.L. Model Evaluation Guidelines for Systematic Quantification of Accuracy in Watershed Simulations. Trans. ASABE 2007, 50, 885–900. [Google Scholar] [CrossRef]
  38. Baouab, M.H.; Cherif, S. Prediction of the Optimal Dose of Coagulant for Various Potable Water Treatment Processes through Artificial Neural Network. J. Hydroinformatics 2018, 20, 1215–1226. [Google Scholar] [CrossRef]
  39. Wang, A.; Wang, J.; Luan, B.; Wang, S.; Yang, D.; Wei, Z. Classification of Pollution Sources and Their Contributions to Surface Water Quality Using APCS-MLR and PMF Model in a Drinking Water Source Area in Southeastern China. Water 2024, 16, 1356. [Google Scholar] [CrossRef]
  40. Lin, S.; Kim, J.; Hua, C.; Kang, S.; Park, M.-H. Comparing Artificial and Deep Neural Network Models for Prediction of Coagulant Amount and Settled Water Turbidity: Lessons Learned from Big Data in Water Treatment Operations. J. Water Process Eng. 2023, 54, 103949. [Google Scholar] [CrossRef]
Figure 1. Aposelemis DWTP flowchart.
Figure 1. Aposelemis DWTP flowchart.
Water 16 02863 g001
Figure 2. Raw water turbidity.
Figure 2. Raw water turbidity.
Water 16 02863 g002
Figure 3. Raw water pH.
Figure 3. Raw water pH.
Water 16 02863 g003
Figure 4. The architecture of a simple ANN with an input layer, two hidden layers, and an output layer [1].
Figure 4. The architecture of a simple ANN with an input layer, two hidden layers, and an output layer [1].
Water 16 02863 g004
Figure 5. Flowchart of MATLAB algorithm (code) for developing ANN models.
Figure 5. Flowchart of MATLAB algorithm (code) for developing ANN models.
Water 16 02863 g005
Figure 6. Selected ANN model architecture.
Figure 6. Selected ANN model architecture.
Water 16 02863 g006
Figure 7. Observed and simulated normalized values of O3.
Figure 7. Observed and simulated normalized values of O3.
Water 16 02863 g007
Figure 8. Observed and simulated normalized values of ANPE.
Figure 8. Observed and simulated normalized values of ANPE.
Water 16 02863 g008
Figure 9. Observed and simulated normalized values of PACl.
Figure 9. Observed and simulated normalized values of PACl.
Water 16 02863 g009
Figure 10. Observed and simulated normalized values of Cl2(g).
Figure 10. Observed and simulated normalized values of Cl2(g).
Water 16 02863 g010
Figure 11. Simulated and observed values of residual ozone (O3).
Figure 11. Simulated and observed values of residual ozone (O3).
Water 16 02863 g011
Figure 12. Simulated and observed values of ANPE dosage.
Figure 12. Simulated and observed values of ANPE dosage.
Water 16 02863 g012
Figure 13. Simulated and observed values of PACl dosage.
Figure 13. Simulated and observed values of PACl dosage.
Water 16 02863 g013
Figure 14. Simulated and observed values of Cl2(g) dosage.
Figure 14. Simulated and observed values of Cl2(g) dosage.
Water 16 02863 g014
Table 1. Variables statistics.
Table 1. Variables statistics.
NoVariableUnitMinMaxAverageStDev
1Daily difference in water height in reservoir (ΔH)m−1.913.550.000.18
2Raw water supply (Q)m3/d427171,85839,0629492
3Raw water turbidity (T1)NTU0.07562.006.6122.12
4Raw water pH (pH1) 6.578.387.580.34
5Treated water turbidity (T2)NTU0.010.740.160.08
6Treated water pH (pH2) 6.428.037.300.32
7Treated water residual chlorine (Cl2)mg/L0.020.900.440.11
8Treated water concentration of aluminum (Al)μg/L7.00146.0041.9721.36
9Daily consumption of DWTP electricity (El)kWh106019,78894242892
10Residual O3 after ozonation process (O3)mg/L0.000.200.050.02
11Anionic polyelectrolyte (ANPE)mg/L0.200.800.400.15
12Poly-aluminum chloride hydroxide sulfate (PACl)mg/L7.00100.0017.9911.64
13Chlorine gas supply (Cl2(g))kg/h0.708.002.461.27
14Filtration beds inlet water turbidity (T3)NTU0.177.251.290.84
Table 2. Variables categorization.
Table 2. Variables categorization.
NoVariableRequired to Be PresentPossibly to Be NecessaryOutputs
1Daily difference in water height in reservoir (ΔH)
2Raw water supply (Q)
3Raw water turbidity (T1)
4Raw water pH (pH1)
5Treated water turbidity (T2)
6Treated water pH (pH2)
7Treated water residual chlorine (Cl2)
8Treated water concentration of aluminum (Al)
9Daily consumption of DWTP electricity (El)
10Residual O3 after ozonation process (O3)
11Anionic polyelectrolyte (ANPE)
12Poly-aluminum chloride hydroxide sulfate (PACl)
13Chlorine gas supply (Cl2(g))
14Filtration beds inlet water turbidity (T3)
Table 3. Different combination cases of 4 parameters that are possibly to be necessary.
Table 3. Different combination cases of 4 parameters that are possibly to be necessary.
AAΔHpH1pH2El
11111
20111
31011
41101
51110
60011
70101
80110
91010
101100
111001
120001
130010
140100
151000
160000
Table 4. ANN Scenarios.
Table 4. ANN Scenarios.
NοANN ScenarioNeural NetworksNodesVariables Combination
1NN10N10101016 different cases according to Table 2
2NN20N10201016 different cases according to Table 2
3NN30N10301016 different cases according to Table 2
4NN40N10401016 different cases according to Table 2
5NN50N10501016 different cases according to Table 2
6NN60N10601016 different cases according to Table 2
7NN70N10701016 different cases according to Table 2
8NN80N10801016 different cases according to Table 2
9NN90N10901016 different cases according to Table 2
10NN100N101001016 different cases according to Table 2
11NN100N201002016 different cases according to Table 2
12NN100N301003016 different cases according to Table 2
13NN100N401004016 different cases according to Table 2
14NN100N501005016 different cases according to Table 2
15NN100N601006016 different cases according to Table 2
16NN100N701007016 different cases according to Table 2
17NN100N801008016 different cases according to Table 2
18NN100N901009016 different cases according to Table 2
19NN100N10010010016 different cases according to Table 2
Table 5. Best testing performance indicator per ANN scenario and case.
Table 5. Best testing performance indicator per ANN scenario and case.
NoNeural NetworksNodesCaseHidden NodesOutputsBest t PerfTime (s)
110010014240.00884823,346
240107840.008993461
31007071140.00921110,383
410050134640.0094235860
51002041340.00955217,848
6100102840.00957801
71008067240.00959413,377
810030131940.0096422863
9100104940.009658801
101006011240.0098427898
11100301840.0098972863
1280101840.009942657
Table 6. Case study inputs.
Table 6. Case study inputs.
NoInput VariablesUnitValueNormalized Value
1Daily difference in water height in reservoir (ΔH)m0.0240.35
2Raw water supply (Q)m3/d35,3400.46
3Raw water turbidity (T1)NTU7.850.01
4Raw water pH (pH1) 7.90.73
5Treated water turbidity (T2)NTU0.2570.34
6Treated water pH (pH2) 7.70.80
7Treated water residual chlorine (Cl2)mg/L0.4960.54
8Treated water concentration of residual aluminum (Al)μg/L840.55
9Daily consumption of DWTP electricity (El)kWh62690.28
14Filtration beds inlet water turbidity (T3)NTU0.950.11
Table 7. Case study outputs of the best-performing ANN.
Table 7. Case study outputs of the best-performing ANN.
NoTarget ParametersUnitANN Model’s Predicted Values of the Target ParametersReal Values Used in the DWTP
10Residual O3 after ozonation process (O3)mg/L0.040.03
11Anionic polyelectrolyte (ANPE)mg/L0.660.5
12Poly-aluminum chloride hydroxide sulfate (PACl)mg/L11.0510
13Chlorine gas supply (Cl2(g))kg/h1.671.50
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

Gyparakis, S.; Trichakis, I.; Diamadopoulos, E. Using Artificial Neural Networks to Predict Operational Parameters of a Drinking Water Treatment Plant (DWTP). Water 2024, 16, 2863. https://doi.org/10.3390/w16192863

AMA Style

Gyparakis S, Trichakis I, Diamadopoulos E. Using Artificial Neural Networks to Predict Operational Parameters of a Drinking Water Treatment Plant (DWTP). Water. 2024; 16(19):2863. https://doi.org/10.3390/w16192863

Chicago/Turabian Style

Gyparakis, Stylianos, Ioannis Trichakis, and Evan Diamadopoulos. 2024. "Using Artificial Neural Networks to Predict Operational Parameters of a Drinking Water Treatment Plant (DWTP)" Water 16, no. 19: 2863. https://doi.org/10.3390/w16192863

APA Style

Gyparakis, S., Trichakis, I., & Diamadopoulos, E. (2024). Using Artificial Neural Networks to Predict Operational Parameters of a Drinking Water Treatment Plant (DWTP). Water, 16(19), 2863. https://doi.org/10.3390/w16192863

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