Operational Effects on Water Quality Evolution in Water Distribution Systems (2024)

All articles published by MDPI are made immediately available worldwide under an open access license. No special permission is required to reuse all or part of the article published by MDPI, including figures and tables. For articles published under an open access Creative Common CC BY license, any part of the article may be reused without permission provided that the original article is clearly cited. For more information, please refer to https://www.mdpi.com/openaccess.

Feature papers represent the most advanced research with significant potential for high impact in the field. A Feature Paper should be a substantial original Article that involves several techniques or approaches, provides an outlook for future research directions and describes possible research applications.

Feature papers are submitted upon individual invitation or recommendation by the scientific editors and must receive positive feedback from the reviewers.

Editor’s Choice articles are based on recommendations by the scientific editors of MDPI journals from around the world. Editors select a small number of articles recently published in the journal that they believe will be particularly interesting to readers, or important in the respective research area. The aim is to provide a snapshot of some of the most exciting work published in the various research areas of the journal.

Original Submission Date Received: .

  • Journals
      • Active Journals
      • Find a Journal
      • Proceedings Series
  • Topics
  • Information
      • For Authors
      • For Reviewers
      • For Editors
      • For Librarians
      • For Publishers
      • For Societies
      • For Conference Organizers
      • Open Access Policy
      • Institutional Open Access Program
      • Special Issues Guidelines
      • Editorial Process
      • Research and Publication Ethics
      • Article Processing Charges
      • Awards
      • Testimonials
  • Author Services
  • Initiatives
  • About
      • Overview
      • Contact
      • Careers
      • News
      • Press
      • Blog

Sign In / Sign Up Submit

Journals

Engineering Proceedings

Volume 69

Issue 1

10.3390/engproc2024069030

Submit to this Journal

► Article Menu

Article Menu

Article Views
Citations -

announcement Help format_quote Cite question_answer Discuss in SciProfiles

thumb_up ... Endorse textsms ... Comment

Need Help?

Support

Find support for a specific problem in the support section of our website.

Get Support

Feedback

Please let us know what you think of our products and services.

Give Feedback

Information

Visit our dedicated information section to learn more about MDPI.

Get Information

clear

JSmol Viewer

clear

first_page

settings

Order Article Reprints

Font Type:

Arial Georgia Verdana

Font Size:

Aa Aa Aa

Line Spacing:

Column Width:

Background:

Proceeding Paper

by

Laura González

1Operational Effects on Water Quality Evolution in Water Distribution Systems (9),

Yesid Coy

1,

Dominic L. Boccelli

Operational Effects on Water Quality Evolution in Water Distribution Systems (11)Dominic L. Boccelli

2 and

Juan Saldarriaga

Operational Effects on Water Quality Evolution in Water Distribution Systems (12)Juan Saldarriaga

3,*Operational Effects on Water Quality Evolution in Water Distribution Systems (13)

1

Water Distribution and Sewerage Systems Research Center, Universidad de los Andes, Bogotá 111711, Colombia

2

Department of Civil and Architectural Engineering and Mechanics, University of Arizona, Tucson, AZ 85721, USA

3

Civil and Environmental Engineering Department, Universidad de los Andes, Bogotá 111711, Colombia

*

Author to whom correspondence should be addressed.

Presented at the 3rd International Joint Conference on Water Distribution Systems Analysis & Computing and Control for the Water Industry (WDSA/CCWI 2024), Ferrara, Italy, 1–4 July 2024.

Eng. Proc. 2024, 69(1), 30; https://doi.org/10.3390/engproc2024069030

Published: 2 September 2024

(This article belongs to the Proceedings of )

Download PDF
Download PDF with Cover
Download XML
Download Epub

Browse Figures

VersionsNotes

Abstract

:

Water distribution systems (WDSs) are subject to operational changes due to variability in demands, the availability of flow rates, system maintenance and unexpected events. This study aims to assess the behavior of water quality in a distribution network associated with operational changes that the system typically undergoes. For this work, two black-box models were compared to predict chlorine concentration at different nodes in a small network and a large network. The model was trained with synthetic data from simulations through the EPANET-Python Toolkit. The results show that the black-box model can be implemented to predict water quality in real time.

Keywords:

water quality; WDS; chlorine decay; water age; black-box models

    1. Introduction

    An accurate representation of the underlying water quality dynamics within a distribution system network model can assist with water quality management [1]. The purpose of this research is to evaluate the effect of operational changes on the evolution of chlorine. Although the preferred methods for modeling include physically based equations, an extensive exploration of data-based or black-box approaches has been performed as well [2]. As an alternative to physically based models, two black-box models can be implemented in order to predict residual chlorine levels. This document is divided into three sections. The methodology presents the structure of the algorithms used in this work. The results show the prediction graphs of selected nodes and a consolidation of the model’s performance metrics. The conclusions present the most relevant findings and future work.

    2. Methodology

    This section presents the methodology applied for (a) the hydraulic and water quality models of the case studies, (b) the algorithms used for the prediction of chlorine concentrations and (c) model inputs and hyperparameter optimization as follows.

    2.1. Hydraulic and Water Quality Simulation

    The WDSs used as case studies in this work are EPANET Net3 and Bogotá trunk network (as shown in Figure 1). For Net 3, 5 operational and water quality scenarios were simulated considering different initial chlorine concentrations in the reservoirs, as well as different demand patterns, to simulate 5 months of historical data for developing two black-box models. In the second case study, due to the hydraulic complexity and because the network represents a real system, the model requires robust calibration. Thus, for the second case study, only 11 days of data were generated for the preliminary evaluation. The EPANET-Python Toolkit [3] and EPANET-MSX were used for the simulations.

    2.2. LSTM Algorithm

    Long Short-Term Memory is a form of RNN with a more complex cell architecture for more accurately maintaining the memory of important correlations. This algorithm is good at extracting patterns in input feature space, where the input data span over long sequences [4]. The algorithm uses two separate paths, long-term memory data, i.e., the cell state ( C t ), and short-term memory data, i.e., the hidden state ( h t ) [5]. Each input vector x t is processed sequentially by means of a sigmoid activation function ( σ). The forget gate determines which information from the previous cell is discarded and which is preserved by means of a forget gate vector ( f t ). The input gate determines which new information is stored in the cell state ( C t ) by means of an input gate ( i t ) and candidate cell state ( C ˜ t ) vectors. The cell state ( C t ) is updated by combining the previous cell state with the candidate cell state ( C ˜ t ) weighted by the forget gate ( f t ) and the input gate ( i t ). The output gate ( o t ) is produced to determine which information from the current cell state ( C t ) should be output as the hidden state ( h t ). Then, an output for the current time-step is produced.

    2.3. CNN Algorithm

    The Convolutional Neural Network (CNN) model consists of three layers: the input, hidden and output layers. The CNN is composed of a sequence of convolutional layers, where each neuron in a layer is connected to a small local region of neurons in the input data. This is executed by sliding a weight matrix, called a filter, over the input and the convolution computed at each point, which is referred to as the feature map, between the input and the filter [6]. The output feature map from the first layer is then given by convolving each filter w h 1 for h = 1 , , M 1 with the input as follows [7]:

    a 1 i , h = ( w h 1 x ) i = j = w h 1 j x i j

    where w h 1 1 x k x 1 , and a 1 1 x N k + 1 x M 1 .

    2.4. Inputs and Hyperparameters

    • Inputs: Nodes were selected as sensors to take their hydraulic characteristics (pressure and demand) and residual chlorine. For Net 3, we used the same ones used by [8]; in the case of the Bogotá trunk network, we took some nodes chosen by [2]. Abrupt changes in both hydraulic and water quality patterns influence the accuracy and performance of the proposed models; then, seasonality was included as an additional variable.

    • Hyperparameters: Bayesian optimization was used to create different models with a given parameter assignment, specifying a range of variation depending on the available computational cost. This optimization aims to minimize the final validation loss. As hyperparameters, the LSTM algorithm used N Units, Epochs and Batch Size; the CNN only used Epochs and Batch Size.

    3. Results

    Figure 2 shows the predicted performance of the test data set for Net 3 at the 1, 3, 6 and 12 h forecast using the CNN at node 143. As the prediction time increases, the algorithm tends to reduce performance; therefore, the accuracy of the prediction is lower. R2 decreases from a value of 0.98 to 0.90. Table 1 presents the prediction of the other nodes.

    Regarding the Bogotá trunk network, as mentioned, only 11 days of data were available for training. However, despite the decrease in time, the model still has very high performance, due to the constant patterns in this scenario, as indicated in Figure 3.

    4. Conclusions

    This paper provides the preliminary results of research conducted on the prediction of the chlorine residual in WDSs. Two algorithms were evaluated, LSTM and the CNN, demonstrating high predictive capability, although evaluated with cyclic patterns. The Net3 network showed that the models were optimal-fitting; however, in this research, the location of the sensors was not evaluated; therefore, an analysis to identify the most predictive nodes would be recommended. The Bogotá trunk network obtained an R2 of 0.99, as the patterns had a more stable behavior. Finally, the CNN requires shorter computational times; however, it predicts the first hours better, but by hour 12, LSTM showed higher accuracy. Future work can focus on generating synthetic data with changes closer to reality or with the implementation of real data.

    Author Contributions

    Conceptualization, L.G., D.L.B. and J.S.; methodology, L.G. and Y.C.; software, L.G. and Y.C.; validation, L.G., Y.C., D.L.B. and J.S.; formal analysis, L.G., Y.C., D.L.B. and J.S.; investigation, L.G., Y.C., D.L.B. and J.S.; data curation, L.G. and Y.C.; writing—original draft preparation, L.G. and Y.C.; writing—review and editing, D.L.B. and J.S.; visualization, L.G. and Y.C.; supervision, D.L.B. and J.S.; project administration, J.S. 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. The data are not publicly available due to privacy issues from water utilities.

    Conflicts of Interest

    The authors declare no conflicts of interest.

    References

    1. Qin, T.; Boccelli, D.L. Estimating Distribution System Water Demands Using Markov Chain Monte Carlo. J. Water Resour. Plan. Manag. 2019, 145, 04019023. [Google Scholar] [CrossRef]
    2. Enriquez, L.; González, L.; Saldarriaga, J.G. Application of Black-Box Models Based on Artificial Intelligence for the Prediction of Chlorine and TTHMs in the Trunk Network of Bogotá, Colombia. J. Hydroinformatics 2023, 25, 1396–1412. [Google Scholar] [CrossRef]
    3. Kyriakou, M.S.; Demetriades, M.; Vrachimis, S.G.; Eliades, D.G.; Polycarpou, M.M. EPyT: An EPANET-Python Toolkit for Smart Water Network Simulations. J. Open Source Softw. 2023, 8, 5947. [Google Scholar] [CrossRef]
    4. Muharemi, F.; Logofătu, D.; Leon, F. Machine Learning Approaches for Anomaly Detection of Water Quality on a Real-World Data Set. J. Inf. Telecommun. 2019, 3, 294–307. [Google Scholar] [CrossRef]
    5. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
    6. Barzegar, R.; Aalami, M.T.; Adamowski, J. Short-Term Water Quality Variable Prediction Using a Hybrid CNN–LSTM Deep Learning Model. Stoch. Environ. Res. Risk Assess. 2020, 34, 415–433. [Google Scholar] [CrossRef]
    7. Borovykh, A.; Bohte, S.; Oosterlee, C.W. Conditional Time Series Forecasting with Convolutional Neural Networks. arXiv 2017, arXiv:1703.04691. [Google Scholar]
    8. Yang, X.; Boccelli, D.L. Dynamic Water-Quality Simulation for Contaminant Intrusion Events in Distribution Systems. J. Water Resour. Plan. Manag. 2016, 142, 04016038. [Google Scholar] [CrossRef]

    Operational Effects on Water Quality Evolution in Water Distribution Systems (14)

    Figure 1. (a) Net3; (b) Bogotá trunk network.

    Figure 1. (a) Net3; (b) Bogotá trunk network.

    Operational Effects on Water Quality Evolution in Water Distribution Systems (15)

    Operational Effects on Water Quality Evolution in Water Distribution Systems (16)

    Figure 2. Scatter plot for 1, 3, 6 and 12 h forecast with CNN for node 143—Net3.

    Figure 2. Scatter plot for 1, 3, 6 and 12 h forecast with CNN for node 143—Net3.

    Operational Effects on Water Quality Evolution in Water Distribution Systems (17)

    Operational Effects on Water Quality Evolution in Water Distribution Systems (18)

    Figure 3. Chlorine concentration prediction at node 1562 of Bogotá trunk network with CNN.

    Figure 3. Chlorine concentration prediction at node 1562 of Bogotá trunk network with CNN.

    Operational Effects on Water Quality Evolution in Water Distribution Systems (19)

    Operational Effects on Water Quality Evolution in Water Distribution Systems (20)

    Table 1. Data set test performance at different prediction times for Net3.

    Table 1. Data set test performance at different prediction times for Net3.

    Nodeh-ForecastLSTM R2CNN R2Nodeh-ForecastLSTM R2CNN R2
    12110.980.9715910.980.98
    30.960.9630.970.97
    60.940.9460.960.95
    120.810.81120.90.86
    14310.970.9819710.940.96
    30.960.9730.940.94
    60.930.9460.930.92
    120.890.90120.770.75

    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.


    © 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

    Share and Cite

    MDPI and ACS Style

    González, L.; Coy, Y.; Boccelli, D.L.; Saldarriaga, J. Operational Effects on Water Quality Evolution in Water Distribution Systems. Eng. Proc. 2024, 69, 30. https://doi.org/10.3390/engproc2024069030

    AMA Style

    González L, Coy Y, Boccelli DL, Saldarriaga J. Operational Effects on Water Quality Evolution in Water Distribution Systems. Engineering Proceedings. 2024; 69(1):30. https://doi.org/10.3390/engproc2024069030

    Chicago/Turabian Style

    González, Laura, Yesid Coy, Dominic L. Boccelli, and Juan Saldarriaga. 2024. "Operational Effects on Water Quality Evolution in Water Distribution Systems" Engineering Proceedings 69, no. 1: 30. https://doi.org/10.3390/engproc2024069030

    Article Metrics

    Cite

    Export citation file: BibTeX | EndNote | RIS

    MDPI and ACS Style

    González, L.; Coy, Y.; Boccelli, D.L.; Saldarriaga, J. Operational Effects on Water Quality Evolution in Water Distribution Systems. Eng. Proc. 2024, 69, 30. https://doi.org/10.3390/engproc2024069030

    AMA Style

    González L, Coy Y, Boccelli DL, Saldarriaga J. Operational Effects on Water Quality Evolution in Water Distribution Systems. Engineering Proceedings. 2024; 69(1):30. https://doi.org/10.3390/engproc2024069030

    Chicago/Turabian Style

    González, Laura, Yesid Coy, Dominic L. Boccelli, and Juan Saldarriaga. 2024. "Operational Effects on Water Quality Evolution in Water Distribution Systems" Engineering Proceedings 69, no. 1: 30. https://doi.org/10.3390/engproc2024069030

    clear

    Eng. Proc., EISSN 2673-4591, Published by MDPI

    RSS Content Alert

    Further Information

    Article Processing Charges Pay an Invoice Open Access Policy Contact MDPI Jobs at MDPI

    Guidelines

    For Authors For Reviewers For Editors For Librarians For Publishers For Societies For Conference Organizers

    Operational Effects on Water Quality Evolution in Water Distribution Systems (21)

    © 1996-2024 MDPI (Basel, Switzerland) unless otherwise stated

    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.

    Terms and Conditions Privacy Policy

    Operational Effects on Water Quality Evolution in Water Distribution Systems (2024)
    Top Articles
    Latest Posts
    Article information

    Author: Maia Crooks Jr

    Last Updated:

    Views: 5859

    Rating: 4.2 / 5 (63 voted)

    Reviews: 94% of readers found this page helpful

    Author information

    Name: Maia Crooks Jr

    Birthday: 1997-09-21

    Address: 93119 Joseph Street, Peggyfurt, NC 11582

    Phone: +2983088926881

    Job: Principal Design Liaison

    Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy

    Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.