You are on page 1of 13

Environmental Modelling & Software 22 (2007) 1349e1361

www.elsevier.com/locate/envsoft

Neural-optimal control algorithm for real-time regulation of in-line


storage in combined sewer systems
Suseno Darsono, John W. Labadie*
Department of Civil and Environmental Engineering, Colorado State University, Fort Collins, CO 80523-1372, USA
Received 29 October 2005; received in revised form 15 September 2006; accepted 16 September 2006
Available online 9 November 2006

Abstract

Attempts at implementing real-time control systems as a cost-effective means of minimizing the pollution impacts of untreated combined
sewer overflows have largely been unsustained due to the complexity of the real-time control problem. Optimal real-time regulation of flows
and in-line storage in combined sewer systems is challenging due to the need for complex optimization models integrated with urban stormwater
runoff prediction and fully dynamic routing of sewer flows within 5e15 min computational time increments. A neural-optimal control algorithm
is presented that fully incorporates the complexities of dynamic, unsteady hydraulic modeling of combined sewer system flows and optimal
coordinated, system-wide regulation of in-line storage. The neural-optimal control module is based on a recurrent Jordan neural network archi-
tecture that is trained using optimal policies produced by a dynamic optimal control module. The neural-optimal control algorithm is demon-
strated in a simulated real-time control experiment for the King County combined sewer system, Seattle, Washington, USA. The algorithm
exhibits an effective adaptive learning capability that results in near-optimal performance of the control system while satisfying the time con-
straints of real-time implementation.
Ó 2006 Elsevier Ltd. All rights reserved.

Keywords: Artificial intelligence; Combined sewers; Hydraulic sewer models; Neural networks; Optimal control; Real-time control; Urban stormwater
management

1. Introduction storage capacity, have motivated the search for cost-effective


methods for controlling combined sewer overflows (CSOs).
A combined sewer system (CSS) is a type of urban drainage In addition, stormwater alone often carries high pollution
network constructed for collecting and transporting both urban loads, and in the U.S., federal and state standards are requiring
wastewater and stormwater flows; i.e., combined wet and dry assurance that storm runoff does not pollute adjacent rivers and
weather flows. These systems create serious pollution problems streams (U.S. EPA, 1999). In some cases, sewer separation can
in adjacent water bodies when high storm flow loadings result actually increase pollution to adjacent receiving waters since
in discharges exceeding interceptor sewer and treatment plant stormwater combined with sanitary flows may have previously
capacities. Combined sewers are no longer constructed, but been treated, whereas stormwater is often directly discharged
are still found in many large cities worldwide. The high cost into receiving waters in separated systems (AMSA, 1994).
and disruption to residences and businesses of converting to Real-time regulation of in-line storage in combined sewer
separated systems, or adding sufficient off-line detention systems through control of gates, pumps, and weirs is an
approach to reducing untreated overflows that has been suc-
* Corresponding author. Tel.: þ1 970491 6898; fax: þ1 970491 7727. cessfully demonstrated in several cities including Milwaukee,
E-mail addresses: sdarsono@tstinc.com (S. Darsono), labadie@engr. USA (Loucks et al., 2004), Quebec, Canada (Pleau et al.,
colostate.edu (J.W. Labadie). 2005), Tielt, Belgium (Vanrolleghem et al., 2005), Saverne,

1364-8152/$ - see front matter Ó 2006 Elsevier Ltd. All rights reserved.
doi:10.1016/j.envsoft.2006.09.005
1350 S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361

France (Vazquez et al., 2003), and Ense-Bremen, Germany 2. Optimal control module
(Weyand, 2002). Unfortunately, these examples of successful
ongoing implementations are rare due to past difficulties in 2.1. Formulation
the robustness and reliability of required computer control
equipment, sensor and communication devices, as well as According to Vanrolleghem et al. (2005), there are three
inadequate software and modeling capabilities. Schutze et al. basic approaches to real-time control of CSSs: volume-based
(2002) claim, however, that current advances in hardware and RTC, pollution-based RTC and emission-based RTC.
software technologies have overcome many of these past Although Rauch and Harremoës (1999) show that minimiza-
obstacles, and at reasonable cost, thereby providing a renewed tion of pollution impacts is not necessarily achieved with vol-
impetus for implementation of real-time control of CSSs. ume-based RTC, Duchesne et al. (2004) explain that the
The maximum utilization of spatially distributed in-line computational complexity of receiving water quality models,
storage in a combined sewer system is an inexpensive method and the dearth of available data necessary for calibration of
(relative to capital construction) of reducing the polluting such models in urban areas, makes volume-based RTC the
effects of untreated spills to receiving waters (Labadie, most practical approach. Therefore, reducing the occurrence
1993). The goal is to provide optimal regulation of control and magnitude of CSOs, and thereby reducing pollution im-
structures in the sewer network such that CSOs are minimized pacts on receiving waters, is the primary goal of the real-
or even eliminated. The hypothesis is that aggregate in-line time control system. The primary objectives are to minimize
storage capacity in a combined sewer network is often sizable, untreated overflows while maximizing through-flows to the
and if properly managed over time and space, can help reduce wastewater treatment plant for a storm event occurring over
pollution from untreated CSOs to adjacent water bodies. Even T time intervals:
if elimination of CSOs is not possible under ideal control strat-
egies, incorporation of real-time control into plans for X
T 2X
mþn X
m

constructing additional detention storage and other facilities minimize cit u2it þ wi s2i;Tþ1 ð1Þ
u;x
t¼1 i¼mþnþ1 i¼1
may reduce sizing requirements of these facilities, and there-
fore costs, by making optimum use of available in-line and subject to:
detention storage.
Real-time control (RTC) is most effective if integrated over stþ1 ¼ st þ ð0:5ðBðkÞ
ðkÞ
t ut þ Bt1 ut1 Þ þ rt Þconv ð2Þ
the entire sewer network, resulting in a large-scale, spatially
distributed optimal control problem. According to Pleau  
et al. (2005), most current RTC implementations are limited 0  stþ1  smax qðkÞ ; hðkÞ ð3Þ
to local reactive or supervisory control. Aside from the  
large-scale nature of integrated, system-wide or global optimal 0  ut  umax qðkÞ ; hðkÞ ð4Þ
control, the optimization is highly nonlinear, requiring integra-
tion with models for accurately simulating stormwater runoff where ut ¼ ðu1t ; .; umt ; umþ1;t ; .; umþn;t ; umþnþ1;t ; .; u2mþn ÞT
and sewer hydraulics, including fully dynamic unsteady flow is the vector of node discharge rates (m3/s) at the end of time
modeling in the sewer network. The optimization is also interval t throughout the sewer network (initial release rates
dynamic, with further computational stress arising from the u0 are assumed to be given), with m representing the number
need to repeatedly solve the optimal control problem within of control structures such as regulators, pump stations, weirs,
5e15 min time intervals as rainfall forecasts and measured orifices, etc., in the system. It is assumed that the portion of the
levels and flows are updated in real-time. state vector ðs1t ; .; smt Þ represents temporary storage accumu-
With computational time and complexity the primary limi- lated behind these structures located in the interceptor and lat-
tation in employing the accurate models necessary for effec- eral or trunk sewers (m3). It is assumed that check structures
tive real-time control, application of dynamic or recurrent are not directly located within the interceptor sewer, but rather
artificial neural networks (ANN) may provide the analysis regulators control discharges from each lateral into the inter-
speed, generalization ability and high fault tolerance needed ceptor, as well as bypassed overflows to the receiving waters
for effective implementation. Presented herein is an explora- if the interceptor sewer is surcharged at that location.
tion of the potential usefulness of dynamic artificial neural The interceptor sewer is divided into n sections correspond-
networks for real-time control of combined sewer systems. ing to the location of each regulator controlling discharges
A highly accurate, but computationally time consuming, opti- from a lateral sewer. The portion of the state vector
mal control model is utilized to provide the training data set ðsmþ1;t ; .; smþn;t Þ represents zero storage nodes within the in-
for a recurrent ANN under a wide range of sewer inflow con- terceptor sewer that are specified for the convenience of flow
ditions. Performance of the ANN is compared with the optimal routing calculations. The portion of the control vector
control module using validation data sets not included in the ðu1t ; .; umt Þ represents controlled discharges from each regu-
ANN training. The combined sewer system of the King lator or pump station into the interceptor sewer or downstream
County Wastewater Treatment Division, Washington, USA is trunk sewer; the portion ðumþ1;t ; .; umþn;t Þ are flows at each
chosen as a case study to demonstrate the viability of the neu- section of the interceptor sewer; and the portion
ral-optimal control model. ðumþnþ1;t ; .; u2mþn;t Þ represents untreated overflows from the
S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361 1351

system at regulator stations and other control structures. A typical may be immediately followed by another, it may be necessary
configuration for a regulator station is shown in Fig. 1. to increase this weighting factor to provide sufficient capacity
ðkÞ
The routing matrices Bt in Eq. (2) are current estimates at for the on-coming event.
iteration k of routing coefficients calculated from a fully dy- The constraints in Eq. (2) essentially maintain mass balance
namic sewer hydraulics model, as described subsequently in in each sewer reach, where rt is spatially distributed storm-
more detail. The vectors qðkÞ ; hðkÞ represent sewer discharges water inflows to the CSS predicted from an urban stormwater
and heads, respectively, over each sewer section i and discrete runoff model, such as the RUNOFF module of the U.S. EPA
time interval t as also simulated by the hydraulic  model. Max- SWMM model (Huber and Dickinson, 1988). These predic-
imum capacities on temporary storage smax qðkÞ ; hðkÞ Þ and tions are assumed to be updated in real-time as the storm event
node discharge umax qðkÞ ; hðkÞ Þ are shown to be dynamic func- progresses and new rainfall forecasts are generated. Since the
tions of qðkÞ ; hðkÞ since these bounds are dependent on hydrau- discharges ut are instantaneous flow rates, they are averaged
lic flows and heads throughout the sewer network. These over the time interval and multiplied by a conversion factor
iteratively adjusted restrictions on temporary in-line storage conv to convert them to storage units per time interval.
and discharges prevent upstream surcharge conditions from
occurring in the lateral or trunk sewers. Duchesne et al. 2.2. Iterative calculation of hydraulic sewer flows
(2001) claim that some surcharging should be allowed for
ðkÞ
maximum utilization of in-line storage in a combined sewer The ðm þ nÞ  ð2m þ nÞ routing matrices Bt in Eq. (2)
network, but this also can increase the danger of upstream account for attenuation and lagging of upstream releases to
flooding if inaccurate predictions of sewer inflows occur. downstream nodes and system spills. The superscript (k) is
ðkÞ
The objective function of Eq. (1) minimizes total weighted an iteration index indicating that elements of Bt are updated
overflows (squared) from the CSS, where the weighting coef- through successive solution of a fully dynamic unsteady flow
ficients cit can vary both spatially and temporally. That is, model that solves the complete Saint Venant equations
receiving water impacts may be more sensitive to overflows throughout the sewer network. Although it is possible to di-
at certain locations than others. Tidal and other temporal influ- rectly incorporate numerical approximations of the linearized
ences may also necessitate changes in the weighting coeffi- Saint Venant equations as constraints in the above formulation,
cients over time. Notice that spills are squared in the as proposed by Unver and Mays (1990), this results in an
objective function, which has a number of benefits. First, min- unwieldy, large-scale quadratic programming problem when
imizing the squared spills has a smoothing effect on the solu- applied to an entire sewer network over a dynamic time hori-
tion, and tends to produce more stable discharges, avoiding zon. Linearizing the Saint Venant equations also removes
oscillations and surges in the sewer system. In addition, adja- important nonlinear terms and prevents accurate simulation
cent water bodies can better absorb the polluting effects of of complex hydraulic conditions in the sewers, such as transi-
spills if they are smoothed over time, rather than a first-flush tions between supercritical and subcritical flow regimes.
shock of untreated spills that can intensify damage to aquatic A method originally proposed by Labadie (1993) suggests
habitat and species. P an iterative approach involving successive solution of the op-
The final term in the objective function m 2
i¼1 wi si;Tþ1 min- timal control model and the hydraulic sewer routing model
imizes residual storage in the system at the end of the opera- (Fig. 2). The optimal control model OPTCON is first executed
tional time horizon, which indirectly maximizes through-flow with current approximations of the routing coefficients (i.e.,
ðkÞ
to the wastewater treatment plant. Weighting factors wi serve elements of matrix Bt ), as well as initial estimates of bounds
to tradeoff this objective with the primary objective of mini- on temporary storage and discharge (i.e., Eqs. (3) and (4)). Op-
mizing untreated spills. If forecasts indicate that a storm event timal node discharge control solutions ut are then converted
into gate or pump settings, and the sewer network is again sim-
ulated using the complete Saint Venant equations. Based on
these results, the routing coefficients used in the optimal con-
ðkþ1Þ ðkþ1Þ
trol model are updated as: fbij gðkþ1Þ
t ¼ ðujt Þ=ðuit Þ, as
ðkþ1Þ
shown in Fig. 3, where uit represent flows simulated using
the dynamic hydraulic routing model under the current opti-
mal gate or pump settings. Routing matrix elements fbij gðkÞ
Interceptor

Regulator uit t
Gate for any iteration k are positive if node i receives outflow
from node j, or 0 if the two nodes are unconnected. For spills
and downstream releases from node i, fbij gðkÞ t ¼ 1.
Overflow Along with routing coefficients, limits on sewer reach storage
um+n+i,t Trunk Sewer smax ðqðkþ1Þ ; hðkþ1Þ Þ and discharge limits umax ðqðkþ1Þ ; hðkþ1Þ Þ
are updated from the hydraulic sewer simulation model in
Outfall the next iteration to assure hydraulic feasibility of solutions
Gate Regulator from the optimal control model.
Station i
Although the control problem defined by Eqs. (1)e(4) re-
Fig. 1. Typical regulator station with both regulator gate and outfall gate. flects a simplified problem of volume and discharge control in
1352 S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361

hydraulic simulation model that guarantee sufficient head for


downstream releases. Convergence occurs when successive cal-
culations of routing coefficients coincide to a desired error tol-
erance. In effect, inclusion of the routing coefficients in Eq. (2)
is a means of indirectly incorporating the complete Saint Venant
equations into the optimal control algorithm.

2.3. Solution of Saint Venant equations

The fully dynamic unsteady flow module UNSTDY is


applied to one-dimensional hydraulic routing in a combined
sewer network, including flows through junctions and control
structures (Chen and Chai, 1991). The basic Saint Venant
equations of conservation of mass and momentum are solved
in UNSTDY using a fully implicit numerical scheme:

vA vq
þ ¼ q[ ð5Þ
vt vx

vðrqÞ vðrqVÞ vh  
þ þ rgA þ rgA S0  Sf ¼ 0 ð6Þ
vt vx vx

where for each sewer section, A is flow cross-sectional area; q


is discharge; h is depth of flow; V is mean velocity; q[ is lateral
flow per unit length of the sewer section; x is longitudinal dis-
tance; t is time; S0 is bed slope; Sf friction slope; r is fluid
mass density; and g is gravitational acceleration.
Application of the fully implicit finite difference numerical
scheme used in UNSTDY has the advantage of producing sta-
ble solutions that do not require time step restrictions from the
Courant conditions. The model includes routines for calculat-
ing transitions between subcritical and supercritical flow condi-
tions, with supercritical flows solved using the kinematic wave
equations. The Preissmann slot technique allows evaluation of
unsteady flow in a storm sewer network under submerged con-
ditions, where a hypothetical slot at the top of the pipe can at-
tain higher pressurized flow wave celerity, thereby allowing the
same set of unsteady flow equations to be applied to surcharge
flow conditions. The width of the slot in UNSTDY is assumed
to be 0.1% of the maximum width of a conduit under surcharg-
ing conditions. In UNSTDY, the upstream boundary conditions
are based on stormwater inflow predictions from the RUNOFF
module of the U.S. EPA SWMM model (Huber and Dickinson,
1988). Downstream boundary conditions can be defined as dis-
charge hydrographs, stage hydrographs, stage-discharge rating
curves, or storage basins.
The hydraulic routing module can handle a branched sewer
network using a dendritic system of junctions with up to three
inflow branches and one outflow pipe. The hydraulic equations
Fig. 2. Flow chart of successive, iterative solution of optimal control model
OPTCON and hydraulic sewer model UNSTDY. for sewer flow through a confluence junction are the continuity
and energy equations (Chen and Chai, 1991). Since real-time
operation of urban drainage networks requires in-line or off-
a combined sewer network, interactive simulation using the line storage for detaining storm flood hydrographs from up-
complete Saint Venant equations allows bounds on flows stream areas, control devices are required to regulate storage
through gates and regulators in the control model and maximum of stormwater flow. UNSTDY allows inclusion of weirs, sluice
sewer levels to be adjusted based on levels calculated by the gates, radial gates, siphons, in-line and side orifices, wet-well
S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361 1353

Fig. 3. Calculation of routing coefficients used in optimal control model from flows simulated by numerical hydraulic model.

and dynamic head pump stations, and storage facilities in the and learning. Several studies have shown that artificial neural
sewer network routing. networks (ANN) are an effective tool for controlling complex,
nonlinear systems (Parisini and Zoppoli, 1994). Adaptive
2.4. Optimization algorithm control of combined sewer systems in real-time requires a re-
current ANN to model dynamic operational trajectories.
Several optimization algorithms have been proposed for The Jordan architecture (Fig. 4) selected for the ANN struc-
real-time, online solution of the problem embodied in Eqs. ture adapts well with time-varying systems, since the main
(1)e(4), or similar formulations. These include the general- purpose of the dynamic neural control module is to compute
ized reduced gradient algorithm (GRG) (Duchesne et al., optimal real-time gate controls based on current and previous
2004), projected Lagrangian method (MINOS) (Pleau et al., rainfall data and previous gate control decisions:
2005), regulator theory (LDQ control) (Marinaki et al., X
I X
K
1999), and genetic algorithms (Butler and Schütze, 2005). vhj ðtÞ ¼ whj;iþK yi ðtÞ þ whjk xk ðt  1Þ þ qhj ð7Þ
Since all of these algorithms are assumed to be implemented i¼1 k¼1
in an online, real-time environment, the sewer hydraulics mod-  
eling is unduly simplified to accommodate the use of these zj ðtÞ ¼ hj vhj ðtÞ ; j ¼ 1; .; J ð8Þ
algorithms. The optimization problem of Eqs. (1)e(4), includ-
ing iterative evaluation of dynamic, unsteady sewer hydraulics
using UNSTDY, is efficiently solved using discrete time opti- X
J
vok ðtÞ ¼ wokj zj ðtÞ þ qok ð9Þ
mal control theory based on Pontryagin’s maximum principle j¼1
(Pontryagin et al., 1962), with use of penalty functions for
indirectly accommodating the state-space constraints (Eq.  
xk ðtÞ ¼ ok vok ðtÞ ; k ¼ 1; .; K ð10Þ
(3)). Details on the OPTCON algorithm can be found in
Albuquerque and Labadie (1997), where the same algorithm where I is the total number of external inputs applied to neu-
was also applied to optimal regulation of an irrigation canal rons in the input layer; K is the total number of internal inputs
under fully dynamic, unsteady flow conditions. originating from neurons of the output layer and applied to K
neurons in the input layer in the next time step; J is the total
3. Neural network module number of neurons in the hidden layer; whji is the synaptic
weight of connection of neuron i in the input layer to neuron
3.1. Jordan recurrent ANN architecture j in the hidden layer; wokj is the synaptic weight of connection
of neuron j in the hidden layer to neuron k in the output layer;
The OPTCON optimal control module for minimizing yi ðtÞ is the external input signal entering neuron i in the input
CSOs is easily solved off-line for sewer networks, but integra- layer at time t; xk ðtÞ is the output from neuron k in the output
tion with the RUNOFF model for watershed inflow predictions layer, serving as internal input to the input layer in the next
and successive execution of the sewer hydraulics model time step; qhj is the threshold or bias unit applied to neuron j
UNSTDY may exceed the clock time limitations required in the hidden layer; qok is the threshold or bias unit applied
for real-time implementation, particularly for large-scale com- to neuron k in the output layer; vhj ðtÞ is the net internal activity
bined sewer networks. Neural networks are important methods level of neuron j in the hidden layer; vok ðtÞ is the net internal
of artificial intelligence related to computational intelligence activity level of neuron k in the output layer; zj ðtÞ is the output
1354 S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361

from neuron j in the hidden layer produced from operation of 3.2. Training and testing of recurrent ANN
activation function hj ðvhj ðtÞÞ on net internal activity vhj ðtÞ for
neuron j; and ok ðvok ðtÞÞ is the activation function operating Training of the dynamic neural control module is a super-
on net internal activity vok ðtÞ for neuron k in the output layer. vised learning process for determining the optimal connection
The logistic function is the commonly used activation func- weights whji , wokj and bias weights qhj , qok from the input/output
tion for multilayer perceptrons that guarantees output in the training data set. The input data are rain gauge measurements
range 0  yj ðtÞ  1 (Haykin, 1994): for various historical storm events and the output data set are
  the optimal gate controls calculated off-line by the optimal
1
zj ðtÞ ¼ hj vhj ðtÞ ¼ h ð11Þ control module. Training of the Jordan recurrent network
1 þ evj ðtÞ follows the standard generalized delta rule (Freeman, 1994) in-
volving feed-forward and error back-propagation calculations.
  1
xk ðtÞ ¼ ok vok ðtÞ ¼ o ð12Þ The process begins with standard normal transformation of the
1 þ evk ðtÞ inputeoutput training set data, since the activation function in
Internal inputs to the recurrent ANN are current, lag-1, and the neural network can only produce outputs in the range be-
lag-2 spatially distributed rainfall data, recognizing the likely tween 0 and 1. Re-transformation of neuron output values
correlation of successive rainfall inputs over time and space. from neurons in the output layer results in actual gate control
To facilitate smooth, dynamic operation of gates in the system, settings. Initial weights are determined using random number
gate-opening controls from the previous time period serve as generation, and a gradient-type optimization procedure adjusts
internal inputs to the ANN. Since current period gate openings the connection weights until the sum-of-squares error deviation
are the output of the ANN, the number of output neurons is the between ANN outputs and training set outputs is minimized
same as the number of gate controls in the system. (Haykin, 1994).

Fig. 4. Schematic of Jordan architecture recurrent artificial neural network.


S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361 1355

Optimal values of the learning parameter and momentum Pump Station and computer hardware have prevented use of
constant are based on experimental procedures to minimize the predictive control components in CATAD.
error and maximize convergence efficiency of the training
algorithm. However, training of recurrent neural networks 4.2. RUNOFF model calibration and validation
may suffer from slow convergence to local minima and must
be conducted with great care (Hassoum, 1995). The learning Labadie (1993) describes calibration of the RUNOFF
process is embedded in an experimental procedure to evaluate model for predicting stormwater inflows from the Seattle
the minimum square error (MSE) for determining the opti- area urban catchments into the combined sewer system. Model
mum number of neurons in the hidden layer. Testing the calibration was conducted by staff of the King County Depart-
dynamic neural control module is a process of evaluating ment of Natural Resources, Wastewater Treatment Division
model parameters from the learning or training step and is (formerly Metro Seattle). The West Point service area was por-
equivalent to a validation of the model. Since testing is an tioned into 400 drainage subbasins. Subbasin characteristics
evaluation of the performance of the previously estimated including average slope, overland flow lengths, roughness
model parameters, the input and output data sets for estimating coefficients, percent imperviousness, and infiltration parame-
parameters (for training) should be different from the input ters were evaluated in the calibration, with further validation
and output data set for validating the parameters (for testing). studies comparing simulated inlet hydrographs with measured
flows for storm events not included in the calibration. Ten-
minute rainfall data for the stormwater modeling were
4. Case study: West Point combined sewer system, collected at 17 sites within the Seattle City limits, along
Seattle, Washington, USA with measurements at the National Weather Service station
at SeaTac Airport and Sand Point in North Seattle. Flow
4.1. Description of case study data for model calibration were measured at more than 60
points throughout the West Point service area using transport-
The West Point Treatment Plant collection system of the able flow meters.
King County Wastewater Treatment Division, Seattle, Wash-
ington, USA is used for demonstrating the capabilities of the 4.3. UNSTDY hydraulic model development
neural-optimal control algorithm. The portion of the service
area of the West Point Treatment Plant that is included in Stormwater hydrographs generated from the RUNOFF
this modeling study covers over 26,000 ha, which includes model are routed into 22 inlet locations serving as upstream
160 km of gravity sewers with diameters up to 3.66 m, 11 boundary conditions and lateral inflows to the combined sewer
pumping stations and 17 regulator stations (Fig. 5). Although network (Fig. 5). The sewer network modeled in UNSTDY is
the average capacity of the West Point Treatment Plant is confined to only those portions with 1.22 m diameter pipe
5.83 m3/s, the plant has been recently expanded to handle sizes and higher, with smaller pipe sections modeled using
wet weather peak flow rates up to 19.3 m3/s. Fig. 5 shows kinematic wave approximations. For the numerical modeling,
the extent of the West Point combined sewer system as mod- the sewer network was divided into 260 sections, with distance
eled in this study, but it should be noted that this configuration between sections ranging from 18.3 m to 91.4 m based on
does not reflect recent expansions, upgrades and improve- desired numerical accuracy, changes in slope or existence of
ments to the King County wastewater system designed to sub- a weir or other control structure. Pipe and gate sizes, slopes,
stantially reduce the volume and frequency of combined sewer roughness coefficients and junction data were provided to
overflows (King County, 2004). Although not up-to-date, this the hydraulic model, along with rating tables for downstream
configuration was deemed acceptable for demonstrating the boundary conditions based on the normal flow approximation.
viability of the neural-optimal control algorithm. The UNSTDY hydraulic module routes inlet stormwater
Metro Seattle, which merged with King County as a single hydrographs through the sewer network, with dry weather
agency in 1994, originally developed the CATAD Computer flows provided as initial flow conditions. To facilitate linkage
Augmented Treatment and Disposal system in the early of the hydraulic model with the optimal control module, UN-
1970s, one of the first attempts to implement a supervisory STDY allows specification of optimal regulator station releases
control and data acquisition (SCADA) system for real-time calculated from OPTCON as interior boundary conditions, and
regulation of in-line storage in a combined sewer system. then calculating the gate openings required to produce those
With the main control center located at the West Point Treat- flows.
ment Plant, CATAD is designed to monitor and control pump
and regulator stations, including telemetry of real-time data on 4.4. Optimal control module
water levels, gate positions, tide levels, and pump speed data
(King County, 2004). Recent attempts have been made to For this demonstration, Fig. 5 depicts the regulator sta-
upgrade CATAD to monitor rainfall and flow conditions in tions assumed available for simulated real-time control,
the major trunk sewers and interceptors for model prediction with the remaining uncontrollable regulator stations modeled
of sewer inflows and optimal control of selected regulator sta- in UNSTDY as fixed weirs. Although the optimal control
tion gates in real-time. Unfortunately, problems at the Interbay module is confined to optimization of the regulator stations
1356 S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361

Fig. 5. Combined sewer collection system of the West Point Treatment Plant, King County Wastewater Treatment Division, Washington USA.

along the Elliot Bay Interceptor, the UNSTDY hydraulic interceptor. Flows in the interceptor are indirectly controlled
model calculates flows from the Duwamish pump station by gates in the regulator stations. Weighting factors cit in the
into the Elliot Bay Interceptor, as well as flows from the objective function (Eq. (1)) were uniformly set to 125, with
North Interceptor into the West Point Treatment Plant. These the penalty on final storage wi set to 12.5, although these
hydraulic calculations allow specification of the treatment weights are easily changed for prioritization of overflows as
capacity available for flows originating from the Elliot Bay to location and time of day (e.g., considering tidal influences
Interceptor. on polluting impacts of combined sewer overflows).
Fig. 6 is a schematic of the OPTCON model formulation Rain gauge data in the Seattle area were used to define 11
for the Elliot Bay Interceptor. Notice that storage variables diverse, spatially distributed storm events over the study area.
in the interceptor sewer are 0-storage dummy variables neces- Rainfall data in 10 min time increments were obtained from
sary for the state-space formulation of the optimal control National Weather Service stations in the area: SeaTac Airport
problem as defined in Eq. (2), even though it is assumed south of the study area and Sand Point located north of the
that there are no gates or other control structures within the study area. Although other rain gauges are maintained by
S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361 1357

Fig. 6. Schematic of the Elliot Bay portion of the West Point collection system modeled in OPTCON.

the City of Seattle, the NWS gauges provide the most com- Each of the 11 storm events produced from the rainfall da-
plete data set and at the desired time increment of 10 min. tabase provides input to OPTCON to compute optimal gate
The first ten events were utilized as training data sets for controls for each event in 10-min time increments. For the
the neural-optimal control model, with Storm #11 used for routing links shown in Fig. 6, routing coefficients in routing
ð0Þ
testing and validation. Fig. 7 shows the inflow hydrographs matrix Bt are set to 1.0 as initial approximations in the iter-
for Storm #11 for the study area corresponding to the con- ative process depicted in Fig. 2. Convergence of the routing
trollable regulators along the Elliot Bay Interceptor, as shown coefficients typically requires at most eight iterations, as
in Fig. 6. Inflows r5 entering the Elliot Bay Interceptor from shown in Fig. 8 for the trunk sewer between Hanford #1 and
the Duwamish Pump Station were estimated from application Hanford #2 as an example.
of the RUNOFF model to Southern Service area and UN- Fig. 9 demonstrates the results of application of OPTCON
STDY for routing flows to the Duwamish Pump Station. in reducing combined sewer overflows under fully integrated
Although future work can consider a larger number and va- dynamic optimal control. These results are contrasted with
riety of storm events, these were considered to be a reason- the uncontrolled solution where diversions from the trunk
ably diverse representation of storm events suitable for this sewers are allowed to enter the interceptor sewer until sur-
demonstration. charging occurs at that location, resulting in spills or overflows
1358 S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361

3.5 8
7
Inflow Hydrographs (m3/s)

3
r1

Overflows (m3/s)
6
r2
2.5 5
r3
r4 4
2
r5
r6 3
1.5
r7 2
r8
1 1
r9
r10 0
0.5 0 60 120 180 240 300 360 420

0 Time (min.)
0 50 100 150 200 250 300 350 400
OPTCON Uncontrolled
Time (min.)
Fig. 9. Comparison of total overflows from OPTCON solution versus uncon-
Fig. 7. Inflow hydrographs to the study area for Storm #11.
trolled operation for Storm #11.

from the previous time step serve as internal inputs. The


at that regulator station. Storm #11 is a large event, which re-
gradient-type back-propagation procedure is applied to opti-
sults in overflows in spite of the application of the optimal
mal estimation of the synaptic weights whji , wokj and bias units
control strategy, but with total overflows and peak discharge
qhj , qok . The gradient algorithm requires specification of learn-
rates substantially reduced under optimal control. These re-
ing parameter h and momentum constant a, which govern
sults clearly demonstrate the viability of optimal use of in-
the convergence rate and stability of the learning process.
line storage in the combined sewer system. However, since
For this application, numerous experiments with these param-
these optimal controls are based on perfect foreknowledge of
eters resulted in specification of the optimal parameters
the storm event, they cannot be implemented for actual real-
h ¼ 0.10 and a ¼ 0.30 as provided the minimum root mean
time control. Therefore, OPTCON solutions for Storms #1
square error (RMSE) in the learning process, and requiring
through #10 are utilized as training data sets for the recurrent
100 epochs or iterations.
neural network. The trained ANN can then be validated using
Masters
p ffiffiffiffiffiffi (1996) recommends the number of hidden neurons
results from Storm #11, which allows demonstration of opti-
¼ mn for networks with a single hidden layer, where n is the
mal real-time control without the presumption of perfect fore-
number of input neurons and m is the number of output neu-
knowledge of the storm event.
rons. This technique is only used to obtain an approximation
of the ideal hidden layer size. An experimental approach
4.5. Training the recurrent artificial neural network was utilized to determine the optimal number of neurons in
the hidden layer of the recurrent neural network, with results
The hydraulic routing and optimal control modules evaluate indicating that 60 neurons gave the minimum value of
the optimal gate controls for the training data set comprising RMSE (Fig. 10).
Storms 1 through 10, which are then used as desired outputs
in the learning step of the recurrent ANN. Ten-minute rainfall 4.6. Testing the neural-optimal control model
hyetographs are external inputs to the module and outputs
Testing of the neural-optimal control model is a process of
1.1 validating the ANN parameters from the learning or training
step using inputs not included in the training data set. The
Routing Coefficients

1.05
6 No. of
Hidden
5 Nodes
1
10
RMSE (x 10-4)

4 20
30
0.95 3
40

2 50
60
0.9
1
0

100

150

200

250

300

350

400

450

500

550

600

650
50

Time (min.) 0
20 30 40 50 60
Iter 0 Iter 2 Iter 4 Iter 6 Iter 8 Epochs

Fig. 8. Convergence of routing coefficients for trunk sewer reach between Fig. 10. Experimental results for determining optimal number of hidden nodes
Hanford #1 and Hanford #2. in recurrent ANN.
S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361 1359

input and output data sets for estimating parameters (i.e., train- The ability of the neural-optimal control model to adapt to
ing) should differ from the input and output data sets for the ongoing storm event is evident in Fig. 12, which provides
validating the ANN (i.e., testing). Storm #11 serves as the val- a comparison between total direct overflows from the com-
idation data set, since it was not included in the training data bined sewer system as hydraulically simulated using gate con-
sets for the recurrent ANN. Fig. 11 provides a comparison of trols from the recurrent ANN versus the controls produced by
the gate controls produced by the recurrent ANN with those OPTCON. It is also noted that the gate controls produced by
produced under perfect foreknowledge by OPTCON for the the ANN exhibit a smoothness and stability that belies the
regulator and outfall gates at the Connecticut Street regulator high variability of the rainfall inputs. It was originally hypoth-
station. It should be emphasized that the neural controls are esized that providing direct rainfall measurements as inputs to
generated with only current rainfall, past rainfall, and previous the ANN would not be successful since rainfall data can be
gate controls as inputs. The ANN is provided no forecast noisy and sporadic, and that it would be necessary to process
information or foreknowledge of the storm event, and yet the rainfall data through the RUNOFF model and provide the
the gate controls are quite close to those produced by OPT- resulting sewer inflow predictions as the input data sets for the
CON under perfect foreknowledge. Similar results are found ANN. These results indicate, however, that rainfall data can
in comparing the neural and OPTCON gate controls for the indeed be provided as direct inputs to the ANN, which is
other regulator stations in the study area. This indicates that facilitated by the dynamic nature of the recurrent ANN and
the neural network displays a learning capability that adapts the use of time-lagged inputs. For this application, execution
the control strategy to the ongoing storm event as rainfall of the recurrent ANN at each time step required only 0.02 s
data are being collected. Although the rainfall event used of CPU time on a 2 GHz Pentium 4 workstation, indicating
for testing differs from all the events used for training of that the neural-optimal control model can be easily imple-
the ANN, portions of this event are similar to portions of mented for adaptive, real-time control of combined sewer
the events used in the training. The ANN exhibits a pattern- systems.
recognition capability that detects these similarities and ex-
ploits them.
5. Summary and conclusions
(a) Real-time control of available in-line storage in combined
100
sewer systems has been demonstrated to be a viable, cost-
Gate Control (% Open)

80 effective approach to reducing untreated discharges to receiv-


ing waters during wet weather conditions and ameliorating the
60 adverse environmental impacts of sanitary sewage mixed with
stormwater. Furthermore, capital investment in additional stor-
40 age facilities, transport and treatment capacity can likely be
reduced if system planning and design includes real-time reg-
20 ulation of controllable gates, pumps and weirs in the system.
Although several cities in the U.S., Canada, and Europe
0
0 1 2 3 4 5 6 7 have implemented some degree of automation in the regula-
Time (hrs.) tion of storage and conveyance capacity in their combined
NEURAL OPTCON
sewer systems, these have primarily been limited to local
control strategies and use of simplified hydraulic models.
(b) Maximization of the full potential of existing in-line storage,
100 regulator sewer transport, and treatment capacity requires fully
integrated control strategies that effectively model the spatial
Gate Control (% Open)

80

2.5
60
Overflows (m3/s)

2
40
1.5

20 1

0.5
0
0 1 2 3 4 5 6 7 0
Time (hrs.) 0 1 2 3 4 5 6 7

NEURAL OPTCON
Time (hrs.)
NEURAL OPTCON
Fig. 11. Comparison of gate operations under neural control and OPTCON at
Connecticut Street regulator station: (a) regulator gate; (b) outfall gate. Fig. 12. Comparison of total overflows under neural control and OPTCON.
1360 S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361

and temporal heterogeneities of stormwater inputs to complex forecast information from radar-based meteorological fore-
combined sewer systems. Unfortunately, fully integrated sys- casting systems such as CALAMARÒ (RHEA, Inc.). Future
tem-wide control imbedded with realistic, fully dynamic sewer work will attempt to replace UNSTDY with SWMM 5.0
hydraulic models presents a significant computational chal- (Rossman, 2005) for dynamic unsteady flow modeling, and
lenge, particularly with the clock time constraints of real- eventually place the neural control software in a form suitable
time implementation. for public distribution. Since the optimization model is exe-
Presented herein is a neural-optimal control model that cuted off-line in this neural control strategy, it is conceivable
integrates the dynamic hydraulic model UNSTDY with the that modeling could be extended to fully integrated control
optimization model OPTCON based on optimal control the- of the entire urban drainage system, including wastewater
ory. Incorporating hydraulic realism in the optimization model treatment plant operations and prediction of receiving water
requires a computationally expensive iterative process, which quality impacts.
may violate the clock time constraints of real-time implemen-
tation. In addition, the optimal control strategies would be
difficult to implement since they are based on perfect fore- References
knowledge of the ongoing storm event. For these reasons,
a strategy is adopted whereby OPTCON/UNSTDY computa- Albuquerque, F., Labadie, J., 1997. Optimal nonlinear predictive control for
tions are conducted off-line for a wide range of spatially dis- canal operations. J. Irrig. Drain. Eng. 123 (1), 45e54.
tributed, historical storm events. The resulting optimal Association of Metropolitan Sewerage Agencies (AMSA), 1994. Approaches to
control outputs, along with the rainfall data sets as inputs, pro- Combined Sewer Overflow Program Development. AMSA, Washington DC.
Butler, D., Schütze, M., 2005. Integrating simulation models with a view to
vide training data sets for a recurrent artificial neural network optimal control of urban wastewater systems. Environ. Modell. Softw.
(ANN). The Jordan architecture adopted for the ANN effec- 20, 415e426.
tively captures the dynamic, rapid response characteristics of Chen, Y.-H., Chai, S.-Y., 1991. UNSTDY: Combined Sewer Model User’s
combined sewer systems. Inputs to the ANN include current Manual. Chen Engineering Technology, Inc., Ft. Collins, CO.
and past spatially distributed rainfall data, as well as previous Duchesne, S., Mailhot, A., Villeneuve, J.-P., 2004. Global predictive real-time
control of sewers allowing surcharged flows. J. Environ. Eng. 130 (5),
controls, with synaptic weights and other parameters in the 526e534.
ANN optimized to reproduce the optimal gate controls from Duchesne, S., Mailhot, A., Dequidt, E., Villeneuve, J.-P., 2001. Mathematical
OPTCON/UNSTDY as closely as possible. Re-training can modeling of sewers under surcharge for real time control of combined
be conducted off-line as new storm events are included in sewer overflows. Urban Water 3, 241e252.
the database, or if the need arises for altering the weighting Freeman, J., 1994. Simulating Neural Networks with Mathematica. Addison
Wesley Publishing Company, Inc., Reading, MA.
factors and parameters employed in OPTCON. Once trained, Hassoum, M., 1995. Fundamentals of Artificial Neural Networks. The MIT
the recurrent ANN can be implemented for real-time control Press, Cambridge, MA.
of combined sewer systems with full consideration of complex Haykin, S., 1994. Neural Networks: A Comprehensive Foundation. IEEE
system hydraulics and fully integrated, spatially distributed Press/Macmillan College Publishing Company, NY.
system-wide control. Huber, W., Dickinson, R., 1988. Stormwater Management Model, Version 4:
User’s Manual. Report no. EPA-600-3-88-001a. U.S. Environmental Pro-
The neural-optimal control algorithm was demonstrated tection Agency, Washington DC.
using the West Point Treatment Plant collection system of the King County, Washington, USA, 2004. 2003e2004 Annual Combined Sewer
King County Wastewater Treatment Division, Seattle, Washing- Overflow Report. Department of Natural Resources and Parks, Wastewater
ton, USA. Although the configuration of the system used in this Treatment Division, Seattle, WA.
case study is not current, and is based on previous model calibra- Labadie, J., 1993. Optimal use of in-line storage for real-time urban storm-
water control. In: Cao, C., Yen, B.C., Benedini, M. (Eds.), Urban Storm
tion studies, it is believed that it still provides a convincing dem- Drainage. Water Resources Publications, Inc., Highlands Ranch, CO.
onstration of the viability of the neural-optimal control strategy. Loucks, E.D., Locke, E.F., Heinz, S.R., Vitasovic, Z.C., 2004. A real-time
Validation results indicate that the neural-optimal control algo- control strategy for operating the Milwaukee Metropolitan Sewerage District
rithm closely tracks the optimal gate controls from OPTCON/ (MMSD) conveyance and storage system. In: Sehlke, G., et al. (Eds.),
UNSTDY for a storm event not included in the training data Proceedings of the 2004 World Water and Environmental Resources
Congress: Critical Transitions in Water and Environmental Resources Man-
sets for the recurrent ANN, while requiring only inputs of cur- agement, June 27eJuly 1, 2004, Salt Lake City, UT. Environmental and Wa-
rent and past rainfall measurements and previous gate controls. ter Resources Institute and American Society of Civil Engineers, Reston, VA.
The ability of the ANN to adapt the optimal controls to changes Marinaki, M., Papageorgiou, M., Messmer, A., 1999. Multivariable regulator
in rainfall intensity and distribution in the ongoing event is approach to sewer network flow control. J. Environ. Eng. 125 (3), 267e276.
clearly evident in this demonstration. Masters, T., 1996. Practical Neural Network Recipes in Cþþ. Elsevier
Science and Technology Books, Burlington, MA.
Further work is focusing on enriching the training data sets Parisini, T., Zoppoli, R., 1994. Neural networks for feedback feed-
for the ANN to include flow and/or sewer level calculations at forward nonlinear control systems. IEEE Trans. Neural Networks 5 (3),
selected measurement locations in the combined sewer sys- 436e449.
tem. Assuming that the hydraulic model is reliable and well Pleau, M., Colas, H., Lavallée, P., Pelletier, G., Bonin, R., 2005. Global
calibrated, the recurrent ANN can be implemented by aug- optimal real-time control of the Quebec urban drainage system. Environ.
Modell. Softw. 20, 401e413.
menting the input data set with current real-time flow and level Pontryagin, L., Boltyanskii, V., Gamkrelidze, R., Mishchenko, E., 1962. The
measurements throughout the combined sewer system. In ad- Mathematical Theory of Optimal Processes. Wiley-Interscience Publishing
dition, the training data sets can be further expanded to include Co., NY.
S. Darsono, J.W. Labadie / Environmental Modelling & Software 22 (2007) 1349e1361 1361

Rauch, W., Harremoës, P., 1999. Genetic algorithms in real-time control U.S. Environmental Protection Agency (U.S. EPA), 1999. Combined Sewer
applied to minimize transient pollution from urban wastewater systems. Overflow Management Fact Sheet. EPA Report No. 832-F-99-041. U.S.
Water Res. 33 (5), 1265e1277. EPA, Washington DC.
Rossman, L.A., 2005. Storm Water Management Model: User’s Manual. Ver- Vanrolleghem, P.A., Benedetti, L., Meirlaen, J., 2005. Modelling and real-time con-
sion 5.0. U.S. Environmental Protection Agency, Cincinnati, OH. trol of the integrated wastewater system. Environ. Modell. Softw. 20, 427e442.
Schutze, M., Campisano, A., Colas, H., Schilling, W., Vanrolleghem, P.A., Vazquez, J., François, M., Gilbert, D., 2003. Real-time management of a sew-
2002. Real-time control of urban wastewater systems e where do we stand age system: verification of the optimality and applicability of graphical
today? In: Proceedings of the Ninth International Conference on Urban linear programming compared to mixed linear programming. Rev. Sci.
Drainage, Portland, OR, September 8e13. Eau 16 (4), 425e442 (article in French).
Unver, O.L., Mays, L.W., 1990. Model for real-time optimal flood control op- Weyand, M., 2002. Real-time control in combined sewer systems in Germany e
eration of a reservoir system. Water Resour. Manag. 4, 21e46. some case studies. Urban Water 4, 347e354.

You might also like