The paper deals with the operation of the Integrated Urban Wastewater System as composed of the Sewer Network and associated Wastewater Treatment Plant. The performance of the integrated system is defined in terms of appropriate, selected, performance indicators of both subsystems. Both subsystems are connected and interact by a piping system. It is shown how the performance of the Integrated Urban Wastewater System is affected by various Sewer Network control scenarios: (1) only the Sewer Network outlet valve opening is controlled, (2) all the Sewer Network valves are controlled by a Model Predictive Control algorithm developed for minimizing the environmental impact of the subsystem and modified by constraining it in terms of Sewer Network outlet valve opening. More specific, it is proven that the Sewer Network outlet valve opening has an important role in the performances of the integrated system, and that already existing Sewer Network control strategies can be altered in such a way that they will enhance these performances.

  • A performance evaluation method for the Integrated Urban Wastewater System (IUWS) is proposed.

  • It is possible to operate the Sewer Network (SN) without worsening the Wastewater Treatment Plant (WWTP) performances.

  • Constraining the SN control algorithm in terms of SN outlet valve opening unlocks further improvements in IUWS performances.

Humanity is facing three major global environmental crises: pollution, loss of biodiversity and climate change. A large portion of the pollution crisis, besides air and land pollution, is represented by the increasing quantity of pollutants in water sources (UNESCO et al. 2023). Water is the source of life on Earth, thus its quality impacts the environment and public health. The main cause of water pollution is represented by human activities that are producing large amounts of heavily polluted wastewater, having the potential to compromise the water sources. For this reason, managing wastewater is an important topic and is included in most of the organizations' agenda, such as the United Nations 2030 Agenda for Sustainable Development (UN General Assembly 2015). Moreover, national and international legislation provides stricter and stricter limits for the quantity of pollutants in the wastewater discharged into the natural recipients, providing frameworks to respect these limits. One example of such legislation is the European Union (EU) Water Framework Directive (European Parliament 2000) which establishes a unified approach to wastewater legislation aiming at protecting the environment and restoring water quality across the EU. Respecting these limits in a continuously developing civilization is a challenge and implies developing new technologies for wastewater management or improving the existing ones by increasing the operational efficiency of Sewer Networks (SNs) and Wastewater Treatment Plants (WWTPs). Moreover, like any other industrial facility, WWTPs are non-negligible sources of Greenhouse Gases (GHGs), such as nitrous oxide (N2O), methane (CH4) and carbon dioxide (CO2) (Flores-Alsina et al. 2011), contributing to another major worldwide crisis: climate change. Thus, in the context in which it became imperative to reduce GHG emissions (Intergovernmental Panel on Climate Change 2006, 2019), the issue of managing wastewater should account for these emissions.

The wastewater management processes include collecting wastewater from human communities and industrial facilities throughout SNs and treating wastewater in WWTPs. The literature approaches the two subjects either separately (such as Vasiliev et al. (2024) or Du et al. (2022)) or in an integrated manner (such as Butler & Schutze (2005)) – Integrated Urban Wastewater Systems (IUWS). The primary objectives when increasing the efficiency of SNs are preventing overflowing into the environment, and, in instances when inevitable discharges occur during heavy pluviometric events (rain and storm), keeping a minimum concentration of pollutants in the wastewater released into the natural recipients. On the other hand, for WWTP, efficiency is ensured by maintaining the pollutants' concentrations in the plant's effluent below the limits stipulated by the prevailing legislation. In the case that the two IUWS subsystems are treated in an integrated manner, it is important to discern the implications that the SN operation has on the operational efficiency of the WWTP as the effluent of the SN serves as the influent for the WWTP. Increased flow rates originating from the SN, a consequence of control actions designed to minimize overflows, have the potential to overload the WWTP, giving rise to environmental repercussions downstream. Consequently, SN control strategies should consider their impact on the operational efficiency of the WWTP. This is a well-known problem (i.e., Harremoës et al. 1993). Although recent innovations, such as Membrane Bioreactors (MBRs), have partly addressed the problem of hydraulic loading, it has become evident with the introduction of other process technologies like Enhanced Biological Phosphorus Removal (EBPR), sensitivity to incoming wastewater quality, not just quantity, remains a challenge. A recent study discusses variations in wastewater quality and in-sewer processes during conveyance in sewer systems (Gao et al. 2023). Conversely, WWTP control strategies should consider their role in helping the SN, particularly when the SN is affected by substantial pluviometric events. More specifically, the WWTP control strategies should be able to deal with increased wastewater flow for short time periods, taking over some of the stress that the extreme weather events pose on the SN.

The International Water Association (IWA), aiming at combining the relevant biological treatment models into a unified model that can describe the activated sludge treatment process, gave the scientific community a series of WWTP mathematical models, such as ASM1 (Henze et al. 1987) – modelling carbon and nitrogen removal, ASM2 (Gujer et al. 1995) – modelling, in addition to ASM1, the phosphorus removal, ASM2d (Henze et al. 1999) and ASM3 (Gujer et al. 1999). The development of WWTP control strategies required complex models encompassing the entire treatment system, capable of facilitating the comparisons among different control strategies. In this context, a series of benchmark models have been developed: BSM1 (Alex et al. 2008), BSM1-LT (Rosen et al. 2004) and BSM2 (Gernaey et al. 2014). Additionally, as WWTPs are a source of GHG emissions, models including these emissions have been developed. One such model has been considered in this paper, namely BSM2G (Flores-Alsina et al. 2011). Controlling the WWTP usually aims at maximizing the plant's efficiency by maintaining the effluent quality within the legal limits, while, at the same time, having a lower operational cost. The scientific community proposed, throughout the years, a series of control strategies for WWTPs ranging from a simple PID controller (as presented in the default strategies defined by BSM1 and BSM2) to more complex ones, such as event-triggered Model Predictive Control (Du et al. 2022), fuzzy logic techniques (Santín et al. 2023; Zhao et al. 2023) or adaptive PID controllers (Piotrowski et al. 2023).

Regarding the SN, the literature reports two types of models (Vasiliev et al. 2022a):

  • 1. Flow models – based on the Saint-Venant equations (for example, the model presented in Joseph-Duran et al. (2013)).

  • 2. Quality models – capable of modelling pollutants entering, moving through and exiting the SN. The quality models can be further split into:

  • a. Stochastic quality models (data-driven, using various techniques such as multigene genetic programming (Safari & Danandeh Mehr 2018) or polynomial regressions (Najafzadeh et al. 2017)).

  • b. Deterministic quality models (based on causality relationships). A reference deterministic quality model is BSMSewer (Saagi et al. 2016), an SN benchmark simulation model, which is also considered in this paper. It is composed of a catchment model and an SN model accounting for wastewater transport (flow and loads), pipes flushing and wastewater storage.

Regarding IUWS, the literature reveals a limited number of papers. The majority primarily concentrates on the modelling aspects of these integrated systems in terms of combining an SN model with a WWTP model. Sharma et al. (2012), aiming to investigate the effects of SN chemical dosage on WWTP efficiency, propose an IUWS model by combining the SeweX model (SN) with the ASM2d model (WWTP). Barbu et al. (2017a) propose an IUWS model by combining BSMSewer (SN) with BSM2 (WWTP) aiming at enhancing the understanding regarding the interactions between the two subsystems. Another integrated model is SYNOPSIS proposed by Butler & Schutze (2005). The authors implemented and tested a series of Real Time Control (RTC) strategies (a reference strategy, an optimal setpoint strategy, but also a hierarchical control approach) on the proposed model. Other approaches using RTC strategies for IUWS can be found in Seggelke et al. (2013), Lu et al. (2020) and Sun et al. (2020). One interesting approach is presented by Kroll et al. (2015), where the authors use an RTC control strategy for the SN in order to maintain the volume of overflow at a minimum value, while, at the same time, the SN effluent is limited at the WWTP maximum capacity, helping, this way, the efficiency of the plant.

However, as seen in Vasiliev et al. (2023), limiting the SN outflow to the maximum WWTP capacity does not always provide the best results with respect to the performances of both subsystems. Thus, this paper aims to define a way to evaluate the operational efficiency of the IUWS and study the implications of SN operation on the integrated system performance. Various control strategies are explored and their implications are studied. Firstly, a simple SN control is imposed (constant value for the SN outlet valve opening, while all the other SN valves and pumps are fully opened and running at 100%). Secondly, a previously developed SN Model Predictive Control (MPC) algorithm (Vasiliev et al. 2024) designed for reducing the environmental impact of SN and modified by constraining it in terms of SN outlet valve opening is used for reducing the environmental impact of the IUWS.

The MPC algorithm is an online optimal control strategy. Optimal control is a subfield of the control theory involving an optimization procedure for finding the control inputs’ combination that minimizes a given fitness function. Based on the moment when the optimization procedure is run, two types of optimal control can be distinguished: (1) offline optimal control – the optimization procedure is performed before the system starts operating and (2) online optimal control – the optimization procedure is performed during the operation of the system. The MPC algorithm falls into the second category. It implies predicting the future behaviour of the system over a certain time horizon (named prediction horizon) using a dynamic model of the system. At each time step, the optimization problem is solved resulting in the optimal control actions. The first control action is applied to the real system and the procedure is repeated for the next time step (Camacho & Bordons 2007).

The rest of the paper is structured in three more sections. The first one presents the structure of the IUWS, its influent, the performance indicators of both subsystems, a short presentation of the MPC algorithm and also a method to evaluate the operational efficiency of the integrated system in terms of environmental impact (pollutants discharged, but also GHG emitted) and operation cost. The next section is dedicated to the simulation results obtained with various SN control actions, while the last section presents the conclusions of this research including subsequent research directions.

Integrated urban wastewater system model

The sewer network model

This paper considers an SN model designed for a city the size of Galați, Romania (approximately 250,000 inhabitants in a 250 km2 area). As presented in Figure 1, the network is composed of seven storage tanks (noted as TKi, ) related to five collecting areas. Each of the collecting areas is described by its surface (Sj, ) and the number of people living in that area (pej, ). Moreover, the 5th collecting area includes the industrial part of the city. Each of the storage tanks is described by its capacity and maximum outflow, the values being obtained as in Vasiliev et al. (2022b). Each of them has one input (the tank's influent Qin,TKi) and two outputs (the tank's overflow Qovf,TKi and the tank's effluent). The flow of each tank's effluent can be controlled by applying, to the output valve/pump, a normalized command UTKi ∈ [0, 1]. As presented in Figure 1, the wastewater is evacuated gravitationally throughout valves from five of the tanks, while for the other two (TK4 and TK6), the wastewater is evacuated by pumps.
Figure 1

The structure and dimensioning of SNs.

Figure 1

The structure and dimensioning of SNs.

Close modal

The model has been previously developed in Vasiliev et al. (2022b) using the BSMSewer Software Package (Saagi et al. 2016) for testing optimal control strategies that aim to optimize the efficiency of the SN.

However, because of the model's complexity, its integration is computationally costly, so using this model in online optimal control strategies imposes a series of limitations related to the model's integration time. For this reason, in Vasiliev et al. (2024), a simplified version of this model has been implemented by removing from BSMSewer all the dynamics and states that were related to the pollutants' transport and storage. Basically, the resulting simplified model accounts only for the wastewater flow throughout the SN. Of course, this means losing information about pollutant concentrations, which will be regained during the control phase using the methodology proposed by Vasiliev et al. (2024).

The influent of the SN is composed of five influents related to the five collecting areas. Each of them is further split into two components: a domestic component and a pluviometric one. Moreover, the influent related to the 5th collecting area includes an additional industrial component. Each of the components is described by its flow and pollutant loads (CODpart – Particulate Chemical Oxygen Demand, CODsol – Soluble Chemical Oxygen Demand, – ammonia and – phosphate).

For testing purposes, a 28-day influent has been generated in two variants: a forecasted influent and a disturbed one. The domestic component of the forecasted influent has been generated as described in Saagi et al. (2016): based on the area's population equivalent and average flow/loads per inhabitant adjusted with their daily, weekly and yearly variations. The pluviometric component is generated based on a weather forecast and the surface of the collecting area, while the industrial component considers the flow and loads specific to a mid-sized brewery (Ng 2006) with weekly and yearly variations. The disturbed influent is obtained from the forecasted one, by altering the flows of the components with random Gaussian distributed numbers.

The wastewater treatment plant model

For the WWTP, this paper considers the BSM2G model, which extends the BSM2 model by including GHG emissions. The plant layout is the same as the BSM2 one (Gernaey et al. 2014). Thus, it includes both wastewater treatment (a nitrification/denitrification scheme with five tanks – three aerated ones and two anoxic – and two clarifiers) and sludge treatment (composed of a sludge thickener, an anaerobic digestor with a dewatering unit and a storage tank).

The WWTP tanks are modelled using a modified version of ASM1. Thus, besides modelling organic compounds and nitrogen biological removal, the GHG emissions are estimated from various sources (Flores-Alsina et al. 2011):

  • CO2 resulting from the biomass respiration, BOD oxidation and the nitrification stage.

  • N2O generated by heterotrophic denitrification.

In addition to the GHG emissions related to biological treatment, other sources are considered (Flores-Alsina et al. 2011):

  • CO2 produced during anaerobic digestion.

  • CO2 produced by CH4 combustion.

  • CO2 equivalent of the net power usage.

The WWTP model considered in this paper uses a simple PI controller for regulating the dissolved oxygen (DO) concentration in the 2nd aerated tank by manipulating the aeration flow in all aerated tanks (the strategy A1 defined by BSM2 (Gernaey et al. 2014)).

Coupling unit

The SN effluent is composed of the five variables defined by BSMSewer, while the BSM2G influent contains 21 variables, a coupling unit is required between the two systems. The coupling unit makes the conversion of these variables by using a modified version of the BSMsewer to ASM2d variables conversion defined by Saagi et al. (2016), as presented in Vasiliev et al. (2023).

IUWS performance

SN performance indicators

In BSMSewer 10 performance indicators are defined for assessing the performance of SN control strategies (Saagi et al. 2016). Each of them can be calculated globally for the entire SN or individually for each of the storage tanks. This paper considers and analyses only two of them: Vovf (the total volume of discharged wastewater during overflow events – measured in m3/year) and OQI (the quality index of the discharged wastewater during overflow events – measured in kg − polluting units/day). In the case of the simplified model, as it accounts only for the water flow throughout the network, only Vovf can be computed.

WWTP performance indicators

BSM2G extends the BSM2 WWTP performance indicators set by including some indicators related to GHG emissions (Flores-Alsina et al. 2011). From the whole indicators set of BSM2G, this paper considers and analyses only three of them: EQI (the Effluent Quality Index – measured in kg − polluting units/day), OCI (the Operational Cost Index) and GHGtotal (the total WWTP GHG emissions – measured in kg CO2e/day).

IUWS performance indicators

For assessing the performance of the IUWS, as both subsystems are discharging pollutants into the environment, it is necessary to have an indicator to quantify the discharged water quality from the integrated system. This could be expressed in terms of the quality indexes that are defined for both subsystems. The discharged water quality from the WWTP is described by EQI, which is calculated based on the effluent ASM1 variables as defined in BSM2. On the other hand, the discharged water quality from the SN is described by OQI, which is calculated as defined in BSM1 after converting the BSMSewer variables of the discharged wastewater to ASM2d variables. Thus, EQI and OQI are not comparable, as the last one also includes the phosphorus component. For this reason, a new quality index for SN overflowed wastewater is proposed – OQI1. It is calculated, after converting the BSMSewer variables of the overflows to ASM1 variables, in the same way that EQI gets calculated (Gernaey et al. 2014). Consequently, as EQI and OQI1 are comparable and have the same unit (kg polluting − units/day), a Discharge Quality Index (DQI) could be defined to measure the total quantity of pollutants as a function of EQI and OQI1:
(1)
DQI stands for a Discharge Quality Index intended to measure the total quantity of pollutants. The discharges can come from the SN (OQI1) and the WWTP (EQI). Pollutants’ discharge is, in any case, what is intended to be minimized by the IUWS operation. Both discharges, however, may not be of equal severity. For example, when the SN overflows on the streets, it is considered a more severe situation than the case where it can be redirected into the same natural recipient as the WWTP effluent. Therefore, to take it into account, a higher value for wOQI will be necessary. In this paper, it will be considered that all SN overflow is properly directed to the natural receptor, which means the two weights will be equal: wEQI = wOQI = 0.5.
For evaluating the global performance of the WWTP, Barbu et al. (2017b) define an integrated performance indicator accounting for the effluent quality, operational cost and GHG emissions. Having DQI defined, the integrated performance indicator could be modified, such as it includes information about the pollutants discharged by SN in the natural recipients:
(2)
where the notation:
(3)
being the scaled value of the performance indicator X and X0 the value obtained for the same performance indicator in a base case. λ ∈ [0, 1] is a factor for weighting the terms of the indicator, thereby giving varying degrees of importance to each of them.

The base case is defined as the case when no control is considered for the SN (all valves are fully open and all pumps are running at maximum capacity). The values of the performance indicators in the base case can be seen in Table 1.

Table 1

The values of the performance indicators in the base case

Performance indicatorUnitValue
Vovf,0 m3/year 313,942 
OQI1,0 kg − polluting units/day 4,007 
EQI0 kg − polluting units/day 11,959 
OCI0 – 14,436 
GHGtotal,0 kg CO2e/day 27,159 
DQI0 kg − polluting units/day 15,966 
Performance indicatorUnitValue
Vovf,0 m3/year 313,942 
OQI1,0 kg − polluting units/day 4,007 
EQI0 kg − polluting units/day 11,959 
OCI0 – 14,436 
GHGtotal,0 kg CO2e/day 27,159 
DQI0 kg − polluting units/day 15,966 

Of course, there is a need for a truly integrated indicator definition, and this requires some extra research that is beyond the scope of this paper. Specifically, the definition of integrated operational cost index and integrated GHG emissions of the SN and WWTP is needed.

Sewer network control

A first version of SN control is proposed by Vasiliev et al. (2024). In the mentioned paper, a MPC approach to control the SN in order to minimize its environmental impact is considered. Because it has been observed in simulations that only controlling the outputs of TK3, TK4 and TK5 can lead to an improvement of the SN performances, the proposed MPC algorithm is searching for the optimal controls of just these three tanks, while for the other tanks, the outlet valves are fully open and the outlet pumps are running at full capacity.

Thus, in Vasiliev et al. (2024) the three essential elements of the MPC are defined as follows:

  • • The dynamic model of the system – the simplified model described in Section 2.1.1.

  • • The definition of the fitness function J – three versions were implemented and compared:

    • o the first is defined as the global volume of overflow;

    • o the second is defined as the sum of the tank volumes of overflow weighted with some values computed offline accounting for the medium loads of each of the storage tanks;

    • o the third is defined in the same way as the previous one but having an additional penalty term to account for the remaining free space in the SN at the end of the prediction horizon.

  • • The optimization algorithm – Particle Swarm Optimization algorithm has been considered for computing the optimal control actions with the following characteristics:

    • o 20 particles in the swarm;

    • o algorithm stopping when 100 iterations are reached or when there were 30 consecutive iterations with no improvements or the fitness function value reached 0.

The simulation results suggested that the best values for MPC hyperparameters are the step size TS = 1 h and the prediction horizon TH = 6 h, while the fitness function providing the best results is the second one defined as follows:
(4)
where the weights wTKi are calculated offline based on the mean quality index (QITKi) of the wastewater that goes through each of the storage tanks:
(5)
with QImin being the minimum quality index and QImax the maximum one.

These quality indexes are calculated before running the control algorithm based on pollutant measurements in key points of the SN using the methodology proposed by Vasiliev et al. (2024). This approach is necessary for compensating the lost information given by the model simplification.

The statistical analysis of the best results obtained by Vasiliev et al. (2024) showed an average reduction of 52% of Vovf and an average reduction of 50% of OQI compared to the base case. The small standard deviations of both performance indicators proved the reliability of the proposed MPC algorithm.

Table 2 presents the scaled average values of the IUWS performance indicators obtained when connecting the SN model controlled by the previously mentioned MPC algorithm to the WWTP model described in Section 2.1.2. As expected, using the MPC algorithm has an effect only on SN performances, while the effect on the WWTP performances is negligible.

Table 2

The scaled values of the performance indicators when SN is controlled by MPC

Performance indicatorScaled value
 0.4773 
 0.4961 
 0.9643 
 0.9976 
 1.0024 
 0.8457 
Performance indicatorScaled value
 0.4773 
 0.4961 
 0.9643 
 0.9976 
 1.0024 
 0.8457 

As it has been mentioned before, the implemented MPC algorithm considers computing only the optimal control values for the outlet valve of three of the storage tanks (TK3, TK4 and TK5) as their manipulation was the only way to improve the SN performances. In the ‘Results and Discussion’ section of this paper, the effect of constraining the MPC in terms of SN outlet valve opening will be explored. Consequently, a modification of this control algorithm is imposed. More specifically, the control actions of SN tanks 1–6 will be subject to optimization. This change will imply analyzing the resulting data from a statistical point of view to prove that the modified MPC is maintaining its reliability.

For studying the implications of SN operation on the integrated system performance, two sets of results were generated in simulation:

  • The first set of results considers that the only control applied to the SN is the outlet valve opening, while all the other valves and pumps are opened and running at 100%.

  • The second set of results considers that the MPC algorithm proposed by Vasiliev et al. (2024) is constrained in terms of SN outlet valve opening, with the changes imposed and presented at the end of Section 2.3.

All simulations were performed over a period of 28 days, using the disturbed influent as the influent of the IUWS. Knowing that the WWTP requires a stabilization period after start-up, the initial state of the WWTP model has been set such that the actual simulation will start after the stabilization period (Gernaey et al. 2014). This assures a consistent starting point for each simulation.

SN outlet valve control

As mentioned before, the first set of results considers that all SN valves and pumps are opened and running at 100%, except the outlet valve which is kept at a constant value UTK7 ∈ [0, 1]. For analyzing the implications of UTK7 on the IUWS performances, multiple simulations have been performed for various values of UTK7 and the performance indicators described in Section 2.2 were computed.

Figure 2(a) shows the change in the SN performance indicators for each constant value of the SN outlet valve opening.
Figure 2

Scaled performance indicator values obtained in first case for various values of UTK7: (a) SN performance and (b) WWTP performance.

Figure 2

Scaled performance indicator values obtained in first case for various values of UTK7: (a) SN performance and (b) WWTP performance.

Close modal

As observed, a value of UTK7 > 0.8 has no effect on the SN performances compared to the base case. Lowering UTK7 to 0.7 results in increasing the volume of overflow and the overflow quality index by 8%. Lowering UTK7 more will lead to a further increase of the two performance indicators, with UTK7 < 0.65 having a dramatic effect (over 100% increase).

On the other hand, Figure 2(b) shows the change in the WWTP performance indicators for each constant value of the SN outlet valve opening.

All WWTP performance indicators are improving when lower values of UTK7 are considered, as there is less wastewater directed to the treatment plant. It can be observed that decreases as UTK7 increases, with small improvements for UTK7 > 0.7 and more consistently decreased values below this limit. remains unchanged until UTK7 reaches 0.7, then starts decreasing as the SN outlet valve closes more. has a 1% increase while UTK7 lowers from 1 to 0.5, followed by a constant improvement for UTK7 < 0.5.

Figure 3 shows the change of IUWS performance indicators for each constant value of UTK7. In Figure 3(a), DQI, a measure of the total pollutants discharged by the IUWS into the environment, is analyzed, showing a minimum for UTK7 = 0.7. However, the total reduction in the pollutants discharged by the IUWS is under 2%. Furthermore, the integrated performance indicator I(λ) described by Equation (2) has been computed for all the simulation results and for various values of λ. Figure 3(b) shows the obtained values of I(λ), with the red line denoting the best UTK7 value obtained for each λ. As the factor λ is kept above 0.3, the optimum value of UTK7 remains at 0.7, however I(λ) is less than 2% better than in the base case. For λ < 0.2, the best value of UTK7 starts decreasing, as the importance of the total quantity of pollutants decreases and the importance of operational cost and greenhouse gas emissions increases.
Figure 3

IUWS performance indicators values obtained in the first case for various values of UTK7 (a) , (b) I(λ); the red line denotes the minimum values obtained for each value of λ.

Figure 3

IUWS performance indicators values obtained in the first case for various values of UTK7 (a) , (b) I(λ); the red line denotes the minimum values obtained for each value of λ.

Close modal

Consequently, it can be stated that UTK7 has strong effects on the performances of both subsystems. However, these effects are in antithesis, thus setting a constant value of UTK7 to get an improved performance of one subsystem will provide worse performance of the other one. Moreover, combining the effects, it has been observed that the best improvement of the IUWS performances ( and I(λ) for practical λ values) is marginal (under 2%), much lower than the case when the SN outlet valve was kept fully open, while, at the same time, the SN was controlled by an MPC algorithm (see Table 2). Therefore, more control capacity at the SN level is needed.

Constrained MPC control of the SN

The second set of results was obtained by considering a control strategy applied to the SN. The control strategy is the MPC algorithm defined by Vasiliev et al. (2024) and described in Section 2.3. A constraint regarding the opening of the SN outlet valve has been integrated into the algorithm. Consequently, the modifications of the MPC that were described at the end of Materials and Methods have been imposed. The following assumptions were made:

  • The model required by MPC – the SN simplified model; the forecasted influent has been used as the input.

  • The process – the integrated model composed of the SN model implemented in BSMSewer coupled to the BSM2G model; the disturbed influent has been used as the input.

In this case, various constant values for UTK7 have been considered between 0.25 (25% opening) and 1 (100% opening) and integrated as a constraint in the previously described MPC algorithm, as presented in Figure 4. For each constant value, 10 simulations have been performed. Figure 5 shows the statistics of the change of each performance indicator of the two subsystems for each constant value of the constraint.
Figure 4

The schematic representation of the proposed control structure.

Figure 4

The schematic representation of the proposed control structure.

Close modal
Figure 5

Statistics of the scaled performance indicators obtained in the second case: (a) , (b) , (c) , (d) , (e) , (f) .

Figure 5

Statistics of the scaled performance indicators obtained in the second case: (a) , (b) , (c) , (d) , (e) , (f) .

Close modal

As observed, lowering the value of UTK7 leads to SN performing worse, but also to a more efficient WWTP operation. Under this scenario, UTK7 can be lowered to as much as 0.65 without having any significant negative impact on the SN performance. Moreover, further lowering to as much as 0.35 leads to just a small increase in the performance indicator, which could be compensated by the efficiency gained by the WWTP. Setting UTK7 constraint below 0.35 leads to a high decrease in the SN performance. On the other hand, in the case of WWTP, while a value of UTK7 over 0.7 leads to insignificant performance improvements, lowering it below this limit provides consistent decrease of all analyzed performance indicators: EQI, OCI and GHGtotal.

Interesting results can be seen when analyzing DQI, a measure of the total pollutants discharged by the IUWS into the environment. Using a value above 0.7 for UTK7 leads only to small improvements of DQI. Lowering UTK7 more comes with an improvement of this performance indicator, with a ‘plateau’ value of approximately 0.5 (a reduction of approximately 50% in the total pollutants discharged into the environment) for UTK7 ∈ [0.3 0.55], and consistent worsening below this interval.

Moreover, the small values of the standard deviations obtained for each constraint value and for each performance indicator demonstrate that the MPC algorithm keeps its reliability when constrained.

If the only objective of operating the IUWS is to minimize the quantity of pollutants discharged into the environment, a value of UTK7 in the plateau range of DQI would be the best solution. Specifically, using UTK7 = 0.35 will lead to the optimum reduction of pollutants of about 52%. Additionally, this solution also provides a 20% reduction of OCI and 25% reduction of GHGtotal.

However, usually the objective of minimizing the quantity of pollutants discharged into the environment is coupled with two other objectives: minimizing operational cost and GHG emitted during the wastewater treatment. For this reason, the integrated performance indicator I(λ) described in Equation (2) has been computed for all the sets of results and for various values of λ. Figure 6 shows the mean of the obtained values.
Figure 6

Integrated performance indicator values obtained in the second case for various values of λ and UTK7; red line denotes the minimum values obtained for each value of λ.

Figure 6

Integrated performance indicator values obtained in the second case for various values of λ and UTK7; red line denotes the minimum values obtained for each value of λ.

Close modal

As the factor λ is kept above 0.4, the optimum value of UTK7 remains at 0.35. For λ < 0.4, the best value of the constraint starts decreasing, as the importance of the total quantity of pollutants decreases and the importance of operational cost and GHG emissions increases.

More improvements should be obtained by considering UTK7 to vary in time depending on the SN outlet tank free space. More specifically, instead of keeping UTK7 at its optimum value (0.35) all the time, it will stay at that value only when the free space in the SN outlet tank is medium. If there is more free space than necessary, the valve could be closed more to help the WWTP performances. On, the other hand, if there is less free space than necessary, the valve should be opened more to help the SN performances. This was achieved using a fuzzy block to compute the UTK7 constraint as seen in the proposed control structure presented in Figure 7(a).
Figure 7

Proposed control structure with dynamic constraint: (a) The dynamic control structure; (b) The membership functions of the fuzzy block input; (c) The membership functions of the fuzzy block output; (d) The input–output characteristic of the fuzzy block.

Figure 7

Proposed control structure with dynamic constraint: (a) The dynamic control structure; (b) The membership functions of the fuzzy block input; (c) The membership functions of the fuzzy block output; (d) The input–output characteristic of the fuzzy block.

Close modal

The Fuzzy block has one input (SN outlet tank free space – described by the membership functions presented in Figure 7(b)) and one output (UTK7 described by the membership functions presented in Figure 7(c)). The membership functions of the inputs and outputs were determined throughout a trial-and-error process. The rules that ensure the characteristics described in Figure 7(d) are:

  • IF UTK7_FREE_SPACE IS LOW THEN UTK7 IS HIGH

  • IF UTK7_FREE_SPACE IS MEDIUM THEN UTK7 IS MEDIUM

  • IF UTK7_FREE_SPACE IS HIGH THEN UTK7 IS LOW

Using this fuzzy block to compute the SN outlet valve constraint leads to the results presented in Table 3.

Table 3

The scaled values of the performance indicators when SN is controlled by the constrained MPC and the constraint is computed by the fuzzy block

Performance indicatorScaled values when the constraint is constant (UTK7 = 0.35)
Scaled values when the constraint is computed by the fuzzy block
MINMEANMAXSTDMINMEANMAXSTD
 0.65 0.67 0.73 0.0312 0.54 0.59 0.69 0.0408 
 0.67 0.71 0.78 0.0357 0.62 0.67 0.80 0.0638 
 0.39 0.40 0.41 0.0067 0.37 0.38 0.39 0.0050 
 0.81 0.81 0.83 0.0063 0.80 0.80 0.81 0.0050 
 0.76 0.77 0.78 0.0066 0.74 0.75 0.76 0.0062 
 0.46 0.48 0.50 0.0108 0.44 0.45 0.49 0.0173 
Performance indicatorScaled values when the constraint is constant (UTK7 = 0.35)
Scaled values when the constraint is computed by the fuzzy block
MINMEANMAXSTDMINMEANMAXSTD
 0.65 0.67 0.73 0.0312 0.54 0.59 0.69 0.0408 
 0.67 0.71 0.78 0.0357 0.62 0.67 0.80 0.0638 
 0.39 0.40 0.41 0.0067 0.37 0.38 0.39 0.0050 
 0.81 0.81 0.83 0.0063 0.80 0.80 0.81 0.0050 
 0.76 0.77 0.78 0.0066 0.74 0.75 0.76 0.0062 
 0.46 0.48 0.50 0.0108 0.44 0.45 0.49 0.0173 

It can be observed that when using a dynamic UTK7 constraint the mean quantity of wastewater overflowed from SN decreases with an additional 8%, while the quantity of pollutants in the overflowed wastewater decreases by 4%. Regarding the WWTP, EQI and the total greenhouse gas emissions decrease with 2%, while OCI with just 1%. Moreover, the total quantity of pollutants is improved with 1%. The values of the standard deviations demonstrate that the new approach is reliable. Figure 8 shows the difference between the mean values of the integrated performance indicator I(λ) in the two constrained cases for various values of the factor λ.
Figure 8

Mean integrated performance indicator values obtained for various different values of λ in the best constant constraint case and in the dynamic constraint case.

Figure 8

Mean integrated performance indicator values obtained for various different values of λ in the best constant constraint case and in the dynamic constraint case.

Close modal

It is observed that there is a persistent 2–3% improvement no matter the value of λ.

Of course, the solution presented in this paper can be scaled to other IUWS configurations by following the steps: (1) develop and validate a model of the SN in the BSMSewer Software Package; obtain the simplified version according to the procedure presented in Vasiliev et al. (2024); (2) develop and validate a model of the WWTP using the modified version of ASM1 (Flores-Alsina et al. 2011); (3) determine the values of the two weights involved in computing DQI based on the severity of discharges from each of the subsystems; (4) prepare an influent scenario for the IUWS such as it takes into account various conditions; (5) scale the MPC algorithm to the SN configuration and perform hyper-parameter tuning as presented in Vasiliev et al. (2024), while considering the aspects related to the computational effort of the algorithm; (6) find the best value for the UTK7 constraint, using the above presented methodology; (7) use fuzzy techniques to further improve the results.

This paper proposes a method to evaluate the performance of IUWS operation in term of performance indicators of both subsystems, by defining a DQI, a measure of the total pollutants discharged into the environment by both subsystems and an integrated performance indicator considering, besides the quantity of pollutants discharged, the operational cost and the greenhouse emissions of the WWTP. Based on the proposed method, a study of the effects of SN operation on the IUWS performances is conducted, the results being compared with a base case. The effects were studied in two cases. In the first case, only the SN outlet valve was controlled, by keeping it at a constant opening, UTK7. In the second case, a previously developed MPC algorithm aiming at minimizing the environmental impact of the SN overflows has been modified by constraining it in terms of the SN outlet valve opening.

The results obtained in the first case showed that, for the considered IUWS, modifying the SN outlet valve opening has a strong effect on both subsystems' performances. However, the effects are opposed. Thus, closing the outlet valve below a certain limit led to improved performances of the WWTP, as it has less wastewater to treat and degrading performances for the SN, as its probability to overflow increases. Combining the effects, in absence of any other SN control actions, they cancel, resulting in just a marginal improvement of the IUWS performances (under 2%), much less than the case when the SN is controlled by an unconstrained MPC, with the outlet valve fully open. Therefore, more control capacity at SN level is needed.

In the second configuration, improvements of both subsystems were obtained for a quite wide range of connecting valve opening, unlocking a win-win region, as shown by the DQI: a plateau for UTK7 ∈ [0.3 0.55] where the total quantity of pollutants discharged by the integrated system is reduced by 50%. The improvements when keeping the valve opening in this plateau are confirmed by analyzing the integrated performance indicator. Moreover, the additional improvement of the IUWS performances (2–3%) can be achieved by considering the SN outlet valve constraint to vary in time depending on the free space in the SN outlet storage tanks.

In subsequent research, the authors intend to define an integrated operational cost index, as well as integrated GHG emissions and use them for updating I(λ) into a truly integrated index. Moreover, more improvements of the IUWS performances should be possible if the optimal value of UTK7 gets determined at each MPC step based on the state of the SN and the WWTP. Besides this, in future work, the authors want to extend the research presented in this paper by considering the impact of climate change-related aspects (such as extreme meteorological events or climate variability) on the IUWS performances. Additionally, the effects that operating the SN has on the IUWS long-term performances will be studied.

This work received support from the Catalan Government under Project 2022 SGR 197 and by the Spanish Government under MICINN projects PID2019-105434RB-C33 and TED2021-806 129134B-I00 co-funded with the European Union ERDF funds.

All relevant data are available from an online repository or repositories: http://doi.org/10.17605/OSF.IO/92Z8D.

The authors declare there is no conflict.

Alex
J.
,
Benedetti
L.
,
Copp
J.
,
Gernaey
K.
,
Jeppsson
U.
,
Nopens
I.
,
Pons
M.
,
Rieger
L.
,
Rosen
C.
&
Steyer
J.-P.
(
2008
)
Benchmark Simulation Model no. 1 (BSM1)
.
Report by the IWA Taskgroup on Benchmarking of Control Strategies for WWTPs
.
Barbu
M.
,
Vilanova
R.
,
Santin
I.
&
Meneses
M
. (
2017a
) ‘
Decentralized control strategies evaluation for an Integrated Urban Wastewater System
’,
2017 18th International Carpathian Control Conference (ICCC)
, pp.
46
51
.
https://doi.org/10.1109/CarpathianCC.2017.7970369
.
Barbu
M.
,
Vilanova
R.
,
Meneses
M.
&
Santin
I.
(
2017b
)
On the evaluation of the global impact of control strategies applied to wastewater treatment plants
,
Journal of Cleaner Production
,
149
,
396
405
.
https://doi.org/10.1016/j.jclepro.2017.02.018
.
Butler
D.
&
Schutze
M.
(
2005
)
Integrating simulation models with a view to optimal control of urban wastewater systems
,
Environmental Modelling & Software
,
20
(
4
),
415
426
.
https://doi.org/10.1016/j.envsoft.2004.02.003
.
Camacho
E. F.
&
Bordons
C.
(
2007
)
Model Predictive Control
.
London
:
Springer
.
https://doi.org/10.1007/978-0-85729-398-5
.
Du
S.
,
Zhang
Q.
,
Han
H.
,
Sun
H.
&
Qiao
J.
(
2022
)
Event-triggered model predictive control of wastewater treatment plants
,
Journal of Water Process Engineering
,
47
,
102765
.
https://doi.org/10.1016/j.jwpe.2022.102765
.
European Parliament
. (
2000
)
Directive 2000/60/EC of the European parliament and of the council of 23 October 2000 establishing a framework for community action in the field of water policy
,
Official Journal L
,
327
, .
Flores-Alsina
X.
,
Corominas
L.
,
Snip
L.
&
Vanrolleghem
P. A.
(
2011
)
Including greenhouse gas emissions during benchmarking of wastewater treatment plant control strategies
,
Water Research
,
45
(
16
),
4700
4710
.
https://doi.org/10.1016/j.watres.2011.04.040
.
Gao
Y.
,
Shi
X.
,
Jin
X.
,
Wang
X. C.
&
Jin
P.
(
2023
)
A critical review of wastewater quality variation and in-sewer processes during conveyance in sewer systems
,
Water Research
,
228
,
119398
.
https://doi.org/10.1016/j.watres.2022.119398
.
Gernaey
K.
,
Jeppsson
U.
,
Vanrolleghem
P.
&
Copp
J. B.
(
2014
)
Benchmarking of Control Strategies for Wastewater Treatment Plants
.
IWA Publishing
.
https://doi.org/10.2166/9781780401171
.
Gujer
W.
,
Henze
M.
,
Mino
T.
&
Loosdrecht
M. v.
(
1999
)
Activated sludge model No. 3
,
Water Science and Technology
,
39
(
1
),
183
193
.
https://doi.org/10.1016/S0273-1223(98)00785-9
.
Gujer
W.
,
Henze
M.
,
Mino
T.
,
Matsuo
T.
,
Wentzel
M. C.
&
Marais
G. v. R.
(
1995
)
The activated sludge model No. 2: Biological phosphorus removal
,
Water Science and Technology
,
31
(
2
),
1
11
.
https://doi.org/10.1016/0273-1223(95)00175-M
.
Harremoës
P.
,
Capodaglio
A. G.
,
Hellström
B. G.
,
Henze
M.
,
Jensen
K. N.
,
Lynggaard-Jensen
A.
,
Otterpohl
R.
&
Søeberg
H.
(
1993
)
Wastewater treatment plants under transient loading – performance, modelling and control
,
Water Science and Technology
,
27
(
12
),
71
115
.
https://doi.org/10.2166/wst.1993.0292
.
Henze
M.
,
Grady
C.
,
Gujer
W.
,
Marais
G.
&
Matsuo
T.
(
1987
)
Activated sludge model 1
,
IAWQ Scientific and Technical Report
1
, 1–33.
Henze
M.
,
Gujer
W.
,
Mino
T.
,
Matsuo
T.
,
Wentzel
M. C.
,
Marais
G. v. R.
&
Van Loosdrecht
M. C. M.
(
1999
)
Activated sludge model No.2d, ASM2D
,
Water Science and Technology
,
39
(
1
),
165
182
.
https://doi.org/10.2166/wst.1999.0036
.
Intergovernmental Panel on Climate Change.
(
2006
)
IPCC Guidelines for National Greenhouse Gas Inventories
.
Hayama, Japan: Institute for Global Environmental Strategies.
Intergovernmental Panel on Climate Change.
(
2019
)
Refinement to the 2006 IPCC Guidelines for National Greenhouse Gas Inventories
.
Hayama, Japan: Institute for Global Environmental Strategies
.
Joseph-Duran
B.
,
Ocampo-Martinez
C.
&
Cembrano
G.
(
2013
)
A Control-Oriented Hybrid Modelling Approach for Sewer Networks: Barcelona Case Study
.
11th IWA Conference on Instrumentation, Control and Automation, Narbonne, France
.
Kroll
S.
,
Dirckx
G.
,
Donckels
B. M. R.
,
Van Dorpe
M.
,
Weemaes
M.
&
Willems
P.
(
2015
)
Modelling real-time control of WWTP influent flow under data scarcity
,
Water Science and Technology
,
73
(
7
),
1637
1643
.
https://doi.org/10.2166/wst.2015.641
.
Lu
Z.
,
Wang
M.
,
Zhang
M.
,
Li
J.
,
Xu
Y.
,
Shi
H.
,
Liu
Y.
&
Huang
X.
(
2020
)
Water-level based discrete integrated dynamic control to regulate the flow for sewer-WWTP operation
,
Frontiers of Environmental Science & Engineering
,
14
(
3
),
45
.
https://doi.org/10.1007/s11783-020-1222-4
.
Najafzadeh
M.
,
Laucelli
D. B.
&
Zahiri
A.
(
2017
)
Application of model tree and evolutionary polynomial regression for evaluation of sediment transport in pipes
,
KSCE Journal of Civil Engineering
,
21
(
5
),
1956
1963
.
http://dx.doi.org/10.1007/s12205-016-1784-7
.
Ng
W. J.
(
2006
)
Industrial Wastewater Treatment
.
Imperial College Press
, London.
Piotrowski
R.
,
Wonia
M.
&
Wonia
A.
(
2023
)
Stochastic optimisation algorithm for optimisation of controller parameters for control of dissolved oxygen in wastewater treatment plant
,
Journal of Water Process Engineering
,
51
,
103357
.
https://doi.org/10.1016/j.jwpe.2022.103357
.
Rosen
C.
,
Jeppsson
U.
&
Vanrolleghem
P.
(
2004
)
Towards a common benchmark for long-term process control and monitoring performance evaluation
,
Water Science and Technology : A Journal of the International Association on Water Pollution Research
,
50
,
41
49
.
https://doi.org/10.2166/wst.2004.0669
.
Saagi
R.
,
Flores-Alsina
X.
,
Fu
G.
,
Butler
D.
,
Gernaey
K. V.
&
Jeppsson
U.
(
2016
)
Catchment & sewer network simulation model to benchmark control strategies within urban wastewater systems
,
Environmental Modelling & Software
,
78
,
16
30
.
https://doi.org/10.1016/j.envsoft.2015.12.013
.
Safari
M. J. S.
&
Danandeh Mehr
A.
(
2018
)
Multigene genetic programming for sediment transport modeling in sewers for conditions of non-deposition with a bed deposit
,
International Journal of Sediment Research
,
33
(
3
),
262
270
.
https://doi.org/10.1016/j.ijsrc.2018.04.007
.
Santín
I.
,
Meneses
M.
,
Pedret
C.
,
Barbu
M.
&
Vilanova
R.
(
2023
)
Nitrous oxide reduction in wastewater treatment plants by the regulation of the internal recirculation flow rate with a fuzzy controller
,
Journal of Water Process Engineering
,
53
,
103802
.
https://doi.org/10.1016/j.jwpe.2023.103802
.
Seggelke
K.
,
Löwe
R.
,
Beeneken
T.
&
Fuchs
L.
(
2013
)
Implementation of an integrated real-time control system of sewer system and waste water treatment plant in the city of Wilhelmshaven
,
Urban Water Journal
,
10
(
5
),
330
341
.
https://doi.org/10.1080/1573062X.2013.820331
.
Sharma
K. R.
,
Corrie
S.
&
Yuan
Z.
(
2012
)
Integrated modelling of sewer system and wastewater treatment plant for investigating the impacts of chemical dosing in sewers
,
Water Science and Technology
,
65
(
8
),
1399
1405
.
https://doi.org/10.2166/wst.2012.019
.
Sun
C.
,
Romero
L.
,
Joseph-Duran
B.
,
Meseguer
J.
,
Muñoz
E.
,
Guasch
R.
,
Martinez
M.
,
Puig
V.
&
Cembrano
G.
(
2020
)
Integrated pollution-based real-time control of sanitation systems
,
Journal of Environmental Management
,
269
,
110798
.
https://doi.org/10.1016/j.jenvman.2020.110798
.
UN General Assembly
. (
2015
)
Transforming our World: The 2030 Agenda for Sustainable Development
. United Nations, New York.
UNESCO, UN-Water, & World Water Assessment Programme
. (
2023
)
The United Nations World Water Development Report 2023: Partnerships and Cooperation for Water
.
UNESCO
, Paris.
Vasiliev
I.
,
Luca
L.
,
Vilanova
R.
&
Caraman
S
. (
2022a
) ‘
Sewer Network Modelling and Control – A Literature Review
’,
2022 26th International Conference on System Theory, Control and Computing (ICSTCC)
, pp.
58
63
.
https://doi.org/10.1109/ICSTCC55426.2022.9931870
.
Vasiliev
I.
,
Luca
L.
,
Barbu
M.
,
Vilanova
R.
&
Caraman
S
. (
2022b
) ‘
Sewer Network Model of a City with a Medium Sized Population
’,
23rd International Carpathian Control Conference
,
Sinaia
.
https://doi.org/10.1109/ICCC54292.2022.9805864
.
Vasiliev
I.
,
Luca
L.
,
Barbu
M.
,
Vilanova
R.
&
Caraman
S
. (
2023
).
An analysis towards integrated control of wastewater collecting and treatment systems
’,
2023 27th International Conference on System Theory, Control and Computing (ICSTCC)
.
Vasiliev
I.
,
Luca
L.
,
Barbu
M.
,
Vilanova
R.
&
Caraman
S.
(
2024
)
Reducing the environmental impact of sewer network overflows using model predictive control strategy
,
Water Resources Research
,
60
(
1
),
e2023WR035448
.
https://doi.org/10.1029/2023WR035448
.
Zhao
J.
,
Dai
H.
,
Wang
Z.
,
Chen
C.
,
Cai
X.
,
Song
M.
,
Guo
Z.
,
Zhang
S.
,
Wang
X.
&
Geng
H.
(
2023
)
Self-organizing modeling and control of activated sludge process based on fuzzy neural network
,
Journal of Water Process Engineering
,
53
,
103641
.
https://doi.org/10.1016/j.jwpe.2023.103641
.
This is an Open Access article distributed under the terms of the Creative Commons Attribution Licence (CC BY 4.0), which permits copying, adaptation and redistribution, provided the original work is properly cited (http://creativecommons.org/licenses/by/4.0/).