node grouping for consumer demand estimation using …

7
1 st International WDSA / CCWI 2018 Joint Conference Kingston, Ontario, Canada July 23-25, 2018 NODE GROUPING FOR CONSUMER DEMAND ESTIMATION USING A SELF-ORGANIZING MAP S.M. Masud Rana *1 , Dominic L. Boccelli 1 , Angela Marchi 2 , and Graeme C. Dandy 2 1 Dept. of Chemical and Environmental Engineering, University of Cincinnati, Cincinnati, OH 45221, USA 2 School of Civil, Environmental and Mining Engineering, University of Adelaide, Adelaide, 5005, Australia * [email protected] ABSTRACT Real-time demand estimation is crucial for real-time management of a drinking water system (DWS), which includes minimization of operating cost, emergency response, water quality maintenance, etc. On the other hand, real-time demand estimation from a limited number of measurements is not pos- sible without clustering consumer nodes assuming that the consumer nodes within a cluster have the same (or similar) temporal demand patterns. However, clustering nodes within a DWS model without consideration of the spatial distribution of measurement locations may make the demands unobservable within the estimation process. A machine learning based clustering algorithm, called the self-organizing map (SOM), is presented that clusters the nodes of a DWS model based on the sensitivities of the measurement locations to the nodal demands. The algorithm was applied to the Net3 network, an example network distributed with EPANET. The performance of the SOM based clustering was evaluated using data generated with a hypothetical cluster scenario representing un- known actual consumer distributions. Demand multipliers for the SOM clusters were estimated with a Bayesian approach. The SOM clusters showed good observability properties, and resulted in good representation between the simulated and synthetically generated flow measurements. However, the simulated flow measurements at unmonitored locations varied widely, which is an important consid- eration if adequate transport characteristics are of interest. Keywords: Self-Organizing Map, Water Distribution Network, Demand 1 BACKGROUND Demand driven modeling of a drinking water system (DWS) model, such as modeling using EPANET [1], is a popular modeling method for the design and management of DWSs in the USA and other developed countries. For adequately pressurized DWSs, calibrated demand driven models can provide good approximations of the network hydraulics that are essential for ensuring system reliability (i.e., adequate supply, pressure, and water quality.) On the other hand, consumer demands are one of the largest sources of uncertainty in real-time modeling of a DWS. Traditionally, long term (i.e., monthly or annually) averaged consumer demands are estimated from billing data and short term (minutes to hours) temporal variations (called demand patterns) are assumed fixed and estimated indirectly using measurements from different locations in the network [2]. DWS modeling with deterministic demand patterns has provided many benefits to DWS managers, such as, long term planning and water quality management, but such demand patterns often fail to represent the daily variability in

Upload: others

Post on 06-May-2022

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: NODE GROUPING FOR CONSUMER DEMAND ESTIMATION USING …

1st International WDSA / CCWI 2018 Joint Conference Kingston, Ontario, Canada July 23-25, 2018

NODE GROUPING FOR CONSUMER DEMAND ESTIMATIONUSING A SELF-ORGANIZING MAP

S.M. Masud Rana∗1, Dominic L. Boccelli1, Angela Marchi2, and Graeme C. Dandy2

1Dept. of Chemical and Environmental Engineering, University of Cincinnati, Cincinnati, OH45221, USA

2School of Civil, Environmental and Mining Engineering, University of Adelaide, Adelaide, 5005,Australia

* [email protected]

ABSTRACT

Real-time demand estimation is crucial for real-time management of a drinking water system (DWS),which includes minimization of operating cost, emergency response, water quality maintenance, etc.On the other hand, real-time demand estimation from a limited number of measurements is not pos-sible without clustering consumer nodes assuming that the consumer nodes within a cluster havethe same (or similar) temporal demand patterns. However, clustering nodes within a DWS modelwithout consideration of the spatial distribution of measurement locations may make the demandsunobservable within the estimation process. A machine learning based clustering algorithm, calledthe self-organizing map (SOM), is presented that clusters the nodes of a DWS model based on thesensitivities of the measurement locations to the nodal demands. The algorithm was applied to theNet3 network, an example network distributed with EPANET. The performance of the SOM basedclustering was evaluated using data generated with a hypothetical cluster scenario representing un-known actual consumer distributions. Demand multipliers for the SOM clusters were estimated witha Bayesian approach. The SOM clusters showed good observability properties, and resulted in goodrepresentation between the simulated and synthetically generated flow measurements. However, thesimulated flow measurements at unmonitored locations varied widely, which is an important consid-eration if adequate transport characteristics are of interest.

Keywords: Self-Organizing Map, Water Distribution Network, Demand

1 BACKGROUND

Demand driven modeling of a drinking water system (DWS) model, such as modeling using EPANET[1], is a popular modeling method for the design and management of DWSs in the USA and otherdeveloped countries. For adequately pressurized DWSs, calibrated demand driven models can providegood approximations of the network hydraulics that are essential for ensuring system reliability (i.e.,adequate supply, pressure, and water quality.) On the other hand, consumer demands are one of thelargest sources of uncertainty in real-time modeling of a DWS. Traditionally, long term (i.e., monthlyor annually) averaged consumer demands are estimated from billing data and short term (minutesto hours) temporal variations (called demand patterns) are assumed fixed and estimated indirectlyusing measurements from different locations in the network [2]. DWS modeling with deterministicdemand patterns has provided many benefits to DWS managers, such as, long term planning andwater quality management, but such demand patterns often fail to represent the daily variability in

Page 2: NODE GROUPING FOR CONSUMER DEMAND ESTIMATION USING …

1st International WDSA / CCWI 2018 Joint Conference Kingston, Ontario, Canada July 23-25, 2018

consumer demands and hence the network hydraulics. On the other hand, real-time operations, suchas daily operational planning, emergency event management, and demand forecasting, require real-time demand information [3, 4, 5]. With widespread implementation of supervisory control anddata acquisition (SCADA) systems, real-time demand estimation has become a possibility. Flow andpressure measurements are continuously monitored at key locations (such as, tank inlets and pumpoutlets) and can be used to estimate real-time consumer demands. As well as SCADA information, avast amount of spatial information about consumers, such as, land-use, socioeconomic data, etc., arealso available, which can play important role in demand estimation.

In general, demand estimation using the observed information will require some degree of cluster-ing nodes. However, the number of unknown demand multiplier must be equal to or less than thenumber of available measurement locations, which will make the estimation problem even- or over-determined. The assumption inherent in such clustering is that the consumers within a cluster havealmost perfectly correlated temporal demand patterns. On the other hand, observability of clustereddemands is strongly linked to the spatial distribution of the measurement locations [6, 7] in relation tothe clusters. When the parameters are unobservable, the parameter estimation problem may becomeill-conditioned or provide non-unique solutions. Clustering of consumer nodes in DWS models hasbeen an overlooked problem, and although several clustering methods exists in the literature (e.g.,[8, 9, 10]) for different objectives, very few have considered demand observability of the clusterednodes as an objective (a notable exception is [11].) As such, the aforementioned clustering methodsin most cases are not useful for demand estimation purposes.

The objective of this study is to present a clustering method using measurement sensitivities to de-mand perturbations through a self-organizing map (SOM). The SOM is an unsupervised machinelearning method that is capable of handling numeric and non-numeric information, such that non-numeric spatial information about consumers can be utilized in addition to the measurement sensi-tivities. The SOM projects high dimensional data to a lower dimensional space in an orderly fashion[12]. The ordered projection, e.g., in two dimensions, can then be used to visualize the stratifica-tion or grouping inherent in the data. A large number of disciplines have used SOM for unsuper-vised clustering, for example, genetic research, financial research, climate change, and data division[13, 14, 15]. The SOM based method was applied to the example network Net3, which is distributedwith EPANET2.0, to cluster consumer nodes using measurement sensitivity information. The aggre-gated demands of the clustered nodes were estimated using a Bayesian parameter estimation methodand showed a high level of observability, i.e., the demand uncertainties were well bounded and tight.

2 METHODOLOGY

The SOM based clustering method was applied to Net3, which has 97 nodes and 117 pipes. Syn-thetic measurements from pre-specified locations were utilized to estimate distributions of clustereddemands using a Markov chain Monte Carlo (MCMC) based algorithm, which is a Bayesian param-eter inference method. The impacts of demand nodes on measurement locations are equivalent tothe measurement sensitivities to demand perturbations given by the Jacobian in a non-linear leastsquares formulation for demand estimation. These impacts are calculated by the hydraulic solversduring DWS simulations, and can be easily obtained from popular demand driven DWS solvers, suchas EPANET [1]. Recently, excellent reviews associated with the mathematical formulation of the

Page 3: NODE GROUPING FOR CONSUMER DEMAND ESTIMATION USING …

1st International WDSA / CCWI 2018 Joint Conference Kingston, Ontario, Canada July 23-25, 2018

Figure 1: A hypothetical SOM map before and after training.

Jacobian, which can be used for SOM based clustering, have been performed [7, 16].

2.1 The SOM Algorithm and Node Clustering

A typical two-dimensional (2D) SOM map contains a 2D grid of “neurons,” where each neuron rep-resents a certain region of the data space. The distribution of the neurons in the 2D grid of a trainedSOM map will reflect the different strata in the training data. For example, if a particular input datasethas three distinct groups, the neurons of a 2D SOM map for that dataset will arrange themselves inthree regions. The following steps generally describe the procedure for the development of a 2D SOMmap for a particular dataset: (1) Specify the SOM grid size and initialize the vectors representing theSOM neurons using training data points; (2) Compare each data point with the neurons to find theneuron closest to that data point, called the “winner” neuron; and (3) Update the vectors of the winnerneuron and the neurons that are within a certain radius of the winner neuron on the 2D grid so as tomake the vectors come closer to that data point. Steps 2 and 3 are repeated for all data points and formultiple epochs, and as training progresses the radius of influence of the winner neurons is reduced.The process of updating multiple neurons with a single input is key to the SOM algorithm, which hasa smoothing effect on the output plane that results in an ordered plane reflecting different strata of theinput space. Figure 1 shows a hypothetical 4 × 6 SOM map that, after training, has revealed threeregions of its training dataset represented by three groups of neurons. Although, crisp boundariesare shown in Figure 1 for convenience, SOM neurons, in general, will vary across the grid smoothly.Thus, the size of a SOM grid impacts the resolution of the stratification of the data space – a small gridmay aggregate multiple strata, while a large grid would result in very gradual neuron variation, whichmight make the formation of neuron groups difficult. A more general discussion and mathematicaldescriptions of the SOM algorithm can be found in [12, 17].

After successful training of the SOM map, the consumer nodes can be classified by the indexes ofthe neurons corresponding to each of the data points. Since the size of the SOM grid would likelybe greater than the number of desired clusters, a second level of clustering of the trained SOM mapis often required. For example, in Figure 1 if only two clusters were desired, and assuming vectorsof the group 2 neurons were closer to those of group 3, neuron groups 2 and 3 would be combined.Multiple studies provide automated methods for grouping the output layer of SOM maps (e.g., [18]).In this study, the output layer was grouped visually since the output layer was crisp enough for thesmall Net3 network. The SOM-Toolbox software package [19] for Matlab (MathWorks, Inc., Natick,Massachusetts) was used to generate the SOM based clusters in this paper.

Page 4: NODE GROUPING FOR CONSUMER DEMAND ESTIMATION USING …

1st International WDSA / CCWI 2018 Joint Conference Kingston, Ontario, Canada July 23-25, 2018

Figure 2: (Left) The actual cluster scenario of Net3 used for the generation of synthetic measurementswith three different consumer patterns. The measurement locations are marked with squares andlabeled with their EPANET link ids. (Right) The SOM based clustering of the network.

2.2 Demand Estimation

To assess the performance of demand observability of the SOM based clusters, a scenario with threearbitrary actual clusters was created and simulated flow measurements were assumed to be collectedfrom 5 locations throughout the network. The left panel of Figure 2 shows the actual cluster scenariowith three different consumer groups along with the locations of the flow monitoring points. Flowmeasurements have already been shown by several authors to be more important than pressure mea-surements for demand estimation purposes, hence in this paper only flow sensitivities have been usedfor clustering purposes. The flow measurement locations correspond to the three tank inlets/outlets(link id: 20, 40, 50), a pipe (link id: 223), and a pump station (link id: 60). Since tank inlet/outlet andpump flows are typically measured in real networks, the chosen measurement locations were deemedto be representative of actual practice. Link id: 223 was chosen so as to obtain additional informa-tion about the north-west part of the network. Assuming the number of actual consumer groups isunknown, the objective was to generate four clusters such that the demand estimation problem wouldbe overdetermined with the measurements from the five locations. Normally distributed measurementerrors with standard deviation equal to 2% of the magnitude of the measurements were added to sim-ulate flow measurement errors. The network model was assumed to be well calibrated with no othersources of error (e.g., tank levels, pipe roughness, etc.) considered. The network was then clusteredusing the measurement sensitivities at the specified measurement locations with the SOM algorithm.Demand multiplier distributions for a single time step for the clusters were then estimated using theMCMC algorithm. During the demand estimation procedure and clustering, the actual clusters wereassumed to be unknown, i.e., the actual clusters were only used for synthetic measurement generation.

3 RESULTS

A 4 × 5 SOM grid was chosen to be trained with the sensitivity information corresponding to the5 measurement locations of the Net3 network. Four regions of neurons could be easily discernedfrom the output layer and the corresponding node clustering is shown in the right panel of Figure 2.The SOM based clusters are different from the actual cluster scenario, hence the demand multipliersestimated for these four clusters using the observed flow measurements represent an abstract averageof the actual demand multipliers of the nodes.

Page 5: NODE GROUPING FOR CONSUMER DEMAND ESTIMATION USING …

1st International WDSA / CCWI 2018 Joint Conference Kingston, Ontario, Canada July 23-25, 2018

Table 1: Simulated flows at the measurement locations for the actual cluster scenario and the SOMbased clustering. Measurements are assumed to be the summation of the simulated actual flows anderrors.

Pipe id Actual Flow Simulated Error Synthetic Measurements SOM Flow(GPM) (GPM) (GPM) (GPM)

20 1287.90 34.29 1322.20 1322.2340 796.49 11.39 807.88 807.8850 1196.91 -36.99 1159.91 1159.91

223 -1261.80 -0.21 -1261.59 -1261.5860 13276.68 164.98 13441.66 13275.74

Table 1 shows the synthetic flow measurements generated with the actual cluster scenario with mul-tipliers 1.34, 1.71 and 1.10 for clusters one through three, respectively. The expected demand mul-tipliers of the four SOM based clusters, estimated using the measurements from the actual clusterscenario, were 1.29, 1.70, 1.59, and 1.47, respectively. Table 1 also shows the flows obtained with themeans of the multiplier distributions for the SOM based clusters. A good match at the measurementlocations was observed with a root mean squared error (RMSE) of 74.2 GPM, representing an aver-age error of about 0.25%. While simulated flows for the actual clusters and the SOM based clustersare very similar at the measurement locations, flows at the unmonitored locations varied widely. Thedeviation of the underlying hydraulics of the entire network from the actual can be assessed by cal-culating the RMSE of flow considering all pipes in the network, a metric that obviously cannot becalculated for a real network, unless, of course, the flows in all pipes are actually monitored. Fig-ure 3 shows the histogram and empirical cumulative distribution of the flow errors in all pipes. Thetotal RMSE for all pipes was about 1800 GPM. Two other orientations of actual clusters with 4 and5 total clusters, respectively, were also used to assess the SOM based clustering (results not shown)and very similar results were obtained i.e., flows at the measurement locations matched well with thesynthetically derived actual flows, while flows at the unmonitored locations varied widely.

The distribution of the demand multipliers of the SOM based clusters, estimated using the syntheticmeasurements generated with the actual cluster scenario, are shown in Figure 4. As expected thedemand multipliers were tightly bounded and represented some degree of averaging of the actual

Figure 3: Distribution of errors in simulated flows for all pipes for the SOM based clustering (leftaxis.) Empirical cumulative frequency plot for the same errors is shown with scatters (right axis.)

Page 6: NODE GROUPING FOR CONSUMER DEMAND ESTIMATION USING …

1st International WDSA / CCWI 2018 Joint Conference Kingston, Ontario, Canada July 23-25, 2018

Figure 4: Distributions of multipliers of the four SOM based clusters.

nodal demands. The demand multiplier distributions estimated using synthetic data generated with theother two actual cluster scenarios were also tightly bounded and smooth, indicating good observabilityof the SOM clusters with respect to the measurement locations.

4 SUMMARY

A new method of clustering drinking water distribution system nodes using the SOM algorithm waspresented. Sensitivity of different nodes, as measured by the sensitivity of measurements to changesin nodal demands, were used as the criteria to cluster nodes. After training, the SOM stratified thesensitivity information and multiple nodal groups were formed. From the stratified sensitivity map,the desired number of clusters could be obtained. The clusters identified with the SOM were used toapproximate the underlying hydraulics of some arbitrarily generated actual clusters using an MCMC-based parameter estimation procedure. The modeled flow using the estimated multipliers for theSOM based clusters matched the data obtained at the monitored locations very well. On the otherhand, the approximation of the flows in the non-monitored pipes was relatively poor. This studyhighlights the difficulty of clustering a network with the objective of matching monitored data alone.Spatial information about consumers and land use that can be easily obtained from zoning maps orsatellite imagery may also have a valuable role in clustering a network to improve the approximationof underlying hydraulics. The SOM, being capable of handling non-numeric information, can alsoutilize such spatial information along with sensitivity information to produce clusters that will not onlyensure demand observability but also will improve the modeling of the actual network hydraulics.

References

[1] L. A. Rossman, “EPANET 2,” 2000, U.S. EPA, Water Supply and Water Resources Division,National Risk Management Research Laboratory, Cincinnati.

[2] N. C. Do, A. R. Simpson, J. W. Deuerlein, and O. Piller, “Calibration of Water Demand Mul-tipliers in Water Distribution Systems Using Genetic Algorithms,” Journal of Water ResourcesPlanning and Management, vol. 142, no. 11, pp. 04 016 044–1–13, 2016.

[3] X. Yang and D. L. Boccelli, “Model-based event detection for contaminant warning systems,”Journal of Water Resources Planning and Management, vol. 142, no. 11, p. 04016048, 2016.

[4] S. M. M. Rana and D. L. Boccelli, “Contaminant Spread Forecasting and Confirmatory Sam-pling Location Identification in a Water-Distribution System,” Journal of Water Resources Plan-ning and Management, vol. 142, no. 12, p. 4016059, 2016.

Page 7: NODE GROUPING FOR CONSUMER DEMAND ESTIMATION USING …

1st International WDSA / CCWI 2018 Joint Conference Kingston, Ontario, Canada July 23-25, 2018

[5] X. Yang and D. L. Boccelli, “Bayesian approach for real-time probabilistic contamination sourceidentification,” Journal of Water Resources Planning and Management, vol. 140, no. 8, p.4014019, 2014.

[6] S. M. M. Rana, D. L. Boccelli, A. Marchi, and G. C. Dandy, “Impact of measurement locationand clustering on real-time demand estimation,” in World Environmental and Water ResourcesCongress 2017. Sacramento, CA: ASCE, 2018, pp. 602–610.

[7] A. Marchi, G. C. Dandy, D. L. Boccelli, and S. M. M. Rana, “Assessing the observability ofdemand pattern multipliers in water distribution systems using algebraic and numerical deriva-tives,” Journal of Water Resources Planning and Management, vol. 144, no. 5, p. 04018014,2018.

[8] A. Preis, A. J. Whittle, A. Ostfeld, and L. Perelman, “Efficient Hydraulic State Estimation Tech-nique Using Reduced Models of Urban Water Networks,” Journal of Water Resources Planningand Management, vol. 137, no. 4, pp. 343–351, 2011.

[9] L. S. Perelman, M. Allen, A. Preis, M. Iqbal, and A. J. Whittle, “Automated sub-zoning of waterdistribution systems,” Environmental Modelling & Software, vol. 65, pp. 1–14, 2015.

[10] T. Qin and D. L. Boccelli, “Grouping water-demand nodes by similarity among flow paths inwater-distribution systems,” Journal of Water Resources Planning and Management, vol. 143,no. 8, p. 04017033, 2017.

[11] G. Sanz and R. Perez, “Sensitivity Analysis for Sampling Design and Demand Calibration inWater Distribution Networks Using the Singular Value Decomposition,” Journal of Water Re-sources Planning and Management, vol. 141, no. 10, pp. 04 015 020–1–9, 2015.

[12] T. Kohonen, E. Oja, O. Simula, A. Visa, and J. Kangas, “Engineering applications of the self-organizing map,” Proceedings of the IEEE, vol. 84, no. 10, pp. 1358–1384, 1996.

[13] P. B. Gibson, S. E. Perkins-Kirkpatrick, P. Uotila, A. S. Pepler, and L. V. Alexander, “On theuse of self-organizing maps for studying climate extremes,” Journal of Geophysical Research:Atmospheres, vol. 122, no. 7, pp. 3891–3903, 2017.

[14] J. Herrero, A. Valencia, and J. Dopazo, “A hierarchical unsupervised growing neural networkfor clustering gene expression patterns,” Bioinformatics, vol. 17, no. 2, pp. 126–136, 2001.

[15] R. J. May, H. R. Maier, and G. C. Dandy, “Data splitting for artificial neural networks usingSOM-based stratified sampling,” Neural Networks, vol. 23, no. 2, pp. 283–294, 2010.

[16] O. Piller, S. Elhay, J. Deuerlein, and A. R. Simpson, “Local Sensitivity of Pressure-DrivenModeling and Demand-Driven Modeling Steady-State Solutions to Variations in Parameters,”Journal of Water Resources Planning and Management, vol. 143, no. 2, p. 04016074, 2017.

[17] T. Kohonen, “Essentials of the self-organizing map,” Neural Networks, vol. 37, pp. 52–65, 2013.

[18] J. Vesanto and E. Alhoniemi, “Clustering of the self-organizing map,” IEEE Transactions onneural networks, vol. 11, no. 3, pp. 586–600, 2000.

[19] J. Vesanto, J. Himberg, E. Alhoniemi, J. Parhankangas et al., “Self-organizing map in matlab:the som toolbox,” in Proceedings of the Matlab DSP conference, vol. 99, 1999, pp. 16–17.