Next Article in Journal
A Fuzzy Demand-Profit Model for the Sustainable Development of Electric Vehicles in China from the Perspective of Three-Level Service Chain
Next Article in Special Issue
Extended Isolation Forests for Fault Detection in Small Hydroelectric Plants
Previous Article in Journal
Does the ESG Index Affect Stock Return? Evidence from the Eurostoxx50
Previous Article in Special Issue
Experimental Air Impingement Crossflow Comparison and Theoretical Application to Photovoltaic Efficiency Improvement
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Forecasting Wastewater Temperature Based on Artificial Neural Network (ANN) Technique and Monte Carlo Sensitivity Analysis

1
Division of Energy Systems, Department of Energy Technology, KTH-Royal Institute of Technology, 11428 Stockholm, Sweden
2
Water Centre, KTH Royal Institute of Technology, 11428 Stockholm, Sweden
*
Author to whom correspondence should be addressed.
Sustainability 2020, 12(16), 6386; https://doi.org/10.3390/su12166386
Submission received: 23 June 2020 / Revised: 23 July 2020 / Accepted: 4 August 2020 / Published: 7 August 2020
(This article belongs to the Special Issue Artificial Intelligence for Renewable Energy Systems)

Abstract

:
Wastewater contains considerable amounts of thermal energy. Heat recovery from wastewater in buildings could supply cities with an additional source of renewable energy. However, variations in wastewater temperature influence the performance of the wastewater treatment plant. Thus, the treatment is negatively affected by heat recovery upstream of the plant. Therefore, it is necessary to develop more accurate models of the wastewater temperature variations. In this work, a computational model based on artificial neural network (ANN) is proposed to calculate wastewater treatment plant influent temperature concerning ambient temperature, building effluent temperature and flowrate, stormwater flowrate, infiltration flowrate, the hour of day, and the day of year. Historical data related to the Stockholm wastewater system are implemented in MATLAB software to drive the model. The comparison of calculated and observed data indicated a negligible error. The main advantage of this ANN model is that it only uses historical data commonly recorded, without any requirements of field measurements for intricate heat transfer models. Moreover, Monte Carlo sensitivity analysis determined the most influential parameters during different seasons of the year. Finally, it was shown that installing heat exchangers in 40% of buildings would reduce 203 GWh year−1 heat loss in the sewage network. However, heat demand in WWTP would be increased by 0.71 GWh year−1, and the district heating company would recover 176 GWh year−1 less heat from treated water.

1. Introduction

To tackle climate change impacts, several international and national targets have been determined. In December 2015, almost all the countries of the world agreed on the Paris Agreement. The main goal of the agreement is to strengthen the global response to the threat of climate change by keeping the global temperature increase at lower than 2 °C and to limit the rise even further to 1.5 °C, compared to pre-industrial levels [1]. The agreement states the need for all countries to set climate goals. To fulfil these ambitious goals, applicable evolution and arrangement of financial resources, innovative technology framework, and improved capacity-expansion are to be put in place [1]. In 2015, the UN also adopted Agenda 2030, consisting of 17 global goals for sustainable development to achieve a better and more sustainable future for all [2]. The European Union has undertaken quantitative targets of decreasing greenhouse gas emissions by 40% compared to the level in 1990 until 2030, as well as a 27% increase in the share of renewable energy and 7% enhanced energy efficiency [3]. The Energy Performance of Buildings Directive (EPBD) addresses the contribution of buildings; the sector accounts for 40% of energy use and 36% of CO2 [4]. The EU aims at all new buildings being nearly-zero-energy buildings, while renovation strategies shall improve the performance of old buildings [5]. As part of the EU, Sweden’s ambition is to be a leading country in the achievement of the objectives of the Paris Agreement and EU targets. Moreover, Sweden’s long term target is net-zero carbon emissions by 2045, and thereafter negative emissions [6]. In this paper, we explore how wastewater heat recovery can contribute to climate goals. Specifically, our objective is to present and evaluate a method for forecasting water temperature at the wastewater treatment plant level, which is an essential parameter for assessing and designing heat recovery systems on a larger scale.
Heating and cooling of buildings have been considered as one of the areas where the use of renewable energy is substantially improved [7,8]. A technology that is promising regarding this is recovering the thermal energy contained in wastewater and using it for heating [9,10,11,12,13,14,15]. Studies investigated that if wastewater were cooled down by 1 °C, 720 GWh year−1 would be theoretically gained [16]. More than 500 existing wastewater heat recovery systems have been reported all around the world [17], which are mostly located in Switzerland, Germany, and Scandinavia [18]. Some countries like Austria include the thermal energy of wastewater as a renewable energy resource in their national energy policies [17]. Therefore, it is expected that wastewater heat recovery technologies such as heat exchangers and heat pumps will be further expanded in the upcoming years.
Generally, there are two approaches for wastewater heat recovery [17]. The first one is the implementation of heat recovery technologies after wastewater treatment plant (WWTP) to recover heat from treated water [17,19]. Small fluctuations in flow and temperature of WWTP effluent is beneficial in heat pumps. Furthermore, treated water causes less fouling and clogging problems in wastewater heat recovery (WWHR) technologies. More importantly, heat recovery from treated water does not affect the biological performance of WWTP. That is why several WWTPs in Sweden were able to recover 2 to 3 GWh year−1 of heat from treated water [20]. There are several studies about heat recovery from WWTP effluent in Switzerland [21], Russia [22], and Scandinavia [21,23], indicating the maturity of WWHR technologies for treated water. Hepbasli et al. [18] reviewed the performance of heat pumps installed at WWTPs from energetic, exergetic, environmental, and economic points of view. However, treated water has lost part of its thermal energy in the sewer network. This leads to a lower temperature, which influences the performance of any heat recovery system. Meggers and Leibundgut [24] reported that the coefficient of performance (COP) of heat pumps could be reduced from 7 at buildings to 3 at WWTPs.
The second approach is the installation of heat recovery technologies such as heat exchangers or heat pumps at the property level [8,25]. Heat recovery at the property level and before WWTP is encouraging as wastewater contains more thermal energy than treated water. Another advantage of property level heat recovery is that recovered heat is used in very close vicinity to the WWHR system by short transport distances, which is essential in terms of economical implementation and operation. Frijns et al. [15] showed that 21.6 MWh year−1 theoretical heat could be recovered from wastewater in Dutch households. Alnahhal and Spremberg [25] investigated that greywater heat recovery could fulfil 30% of domestic hot water demand in buildings. Several studies evaluated the energy and economic performance of heat exchangers [24,26,27,28,29,30,31,32] or combined systems of heat exchangers and heat pumps [33,34,35,36,37,38] for greywater heat recovery. Lin et al. [39] improved the performance of heat recovery technologies using heat pipes. Many recent studies focused on particular applications such as dishwashers [40,41,42,43,44,45,46], and washing machines [41,42,46,47]. Wärf et al. [48] concluded that the potential heat recovery and maximum temperature drop associated with heat recovery on a case study in Linköping, Sweden is 0.65 kWh person−1 day–1 and 4.2 °C.
Nevertheless, the major drawback of on-property level heat recovery is the negative effects on the temperature-dependent processes in WWTP due to the cooling down of wastewater, which may lead, for example, to sub-optimal biological processes within the treatment plant [49]. Therefore, plans for upscaling property-level wastewater heat recoveries must not only investigate energy economy aspects, but also consider wastewater temperature related issues. Particularly in most countries, some legal constraints are determined on the temperature reduction for influents of WWTPs [16,49]. Therefore, a comprehensive understanding of wastewater temperature development, as a function of the expansion of on-property heat recovery, is essential.
A number of studies have developed various models for temperature changes in the wastewater system with different degrees of complexity. Sonakiya et al. [50] and Abdel-Aal et al. [51] proposed linear models of temperature loss as a function of sewer length. Since the model depends on the sewer length, the accuracy of the model varies for different sites at the sewer pipe. For example, Abdel-Aal et al. [51] reported their model error, which is the difference between modelled and measured temperature drops, in the range of −1 K to 0.76 K in different points of sewage network. Therefore, these linear models are associated with substantial uncertainty [19].
On the other hand, Dürrenmatt and Wanner [16,52] described a detailed model entitled TEMPEST by considering all relevant energy and mass flows. TEMPEST depends on a wide variety of parameters related to the sewer pipe, soil, wastewater, and air, which some of the sensitive parameters should be calibrated by the use of field measurement data. Abdel-Aal et al. [51] argued that the requirement of many details and parameters about the sewer system makes TEMPEST infeasible to implement. Moreover, for investigating the impacts of local heat recoveries on the WWTP influent temperature, simulating detailed processes in the sewage network, which adds the complexity of the model, is unnecessary. Kretschmer et al. [17] presented a more straightforward model by focusing on the maximum potential of heat recovery in the sewer network. Nonetheless, this model does not investigate the potential influence of wastewater heat recovery on heat losses in the sewer system [19]. Literature review shows that there is a conflict between the accuracy and simplicity of wastewater temperature models.
Artificial intelligence (AI) techniques are practical methods in overcoming such conflicts. AI is proven to be implemented as an alternative to process-driven physical models due to no need for detailed knowledge of internal system parameters [53,54]. Wei et al. [55] reviewed and compared conventional models and AI-based models implemented for energy consumption over the past decades. They concluded that AI-based models are reliable and full-scale in forecasting horizons. Bylinski et al. [56] concluded that using an artificial neural network (ANN) grants a great reflection of complex dependencies of the wastewater management problems, without considering detailed mechanisms of specified processes.
In this paper, an ANN-based model is developed to forecast the dynamic behaviour of wastewater temperature at the entrance of WWTP as a function of ambient temperature, building effluent temperature and flowrate, stormwater flowrate, infiltration flowrate, the hour of day, and the day of year. In addition to the fact that ANN does not need detailed knowledge of internal system processes, we use historical data commonly recorded at WWTP. The model is implemented in MATLAB software, version 9.7 (The MathWorks, Natick, MA, USA), and the formulation between inputs and output is presented. The model is trained by historical data from 2009 to 2018 and validated by 2019 data obtained from Henriksdal WWTP in Stockholm. Furthermore, the impact of uncertain input parameters on the ANN model output is scrutinised using the Monte Carlo simulation (MCS) technique. Finally, the proposed model is implemented to investigate the impacts of upscaling local heat recoveries on the performance of wastewater systems in Stockholm. MATLAB software has been employed for developing the artificial neural network (ANN), statistical analysis, and Monte Carlo simulation.

2. Materials and Methods

A forecasting model should have the flexibility and capability to deal with data accurately [57]. In this work, the ANN technique is selected due to no need for detailed knowledge of internal sewage network parameters. This technique needs historical data commonly recorded, without any requirements of field measurements for intricate heat transfer models. Moreover, the ANN is used due to its ability to train, validate, and test its parameters [58]. ANN models are considered as a non-linear modelling technique, which facilitates the formulation of links among input and output parameters by adequate weights and activation functions. In addition, a Monte Carlo sensitivity analysis is selected to allocate the uncertainty in the output of ANN model to the uncertainty associated with each input parameter over their entire range of interest. Monte Carlo sensitivity analysis changes all the input parameters simultaneously, which causes it to determine the most influential input parameters during the year and also during different seasons of the year. Different steps in constructing the proposed forecasting model are explained as follows.

2.1. Input Data

The first step in the ANN process is the determination of ANN model inputs. To realise impactful parameters, WWTP influent temperature, WWTP influent flow rate, and ambient temperature have been investigated and compared in Figure 1, based on real data as mentioned. Ambient temperature has a seasonal impact on WWTP influent temperature. For instance, in cold seasons where ambient temperature is in the range of −10 to 10 °C, WWTP influent temperature is in the range of 8 to 15 °C. On the other hand, in hot seasons where ambient temperature increases to the range of 10 to 25 °C, WWTP influent temperature is in the range of 15 to 20 °C. Wastewater leaving buildings has an average temperature of around 25 °C all around the year [15]. Therefore, the seasonal variation of WWTP influent temperature is a function of ambient temperature. However, the temperature of wastewater leaving buildings fluctuates during the day and affects diurnal variations of WWTP influent temperature. Furthermore, Figure 1 shows that whenever there is a remarkable rise in WWTP influent flowrate, WWTP influent temperature decreases substantially. It indicates that hourly fluctuations in WWTP influent temperature are a function of flowrate. The wastewater enters WWTP contents in three main components: (i) Wastewater from buildings, (ii) water infiltration into the sewage system, and (iii) stormwater. The amount of wastewater from buildings is in the range of 0.0026 to 0.0084 m3 h−1 pe−1 [59]. There are 752,700 people connected to Henriksdal WWTP in Stockholm [60]. Thus, the flow rate of wastewater dispatched from buildings is in the range of 1957 to 6322 m3 h−1. The amount of infiltration to the sewage system is simulated as a sine wave with the lowest values during the dry season and the highest during the rainy season [61]. The amount of stormwater enters Henriksdal WWTP is quantified by subtracting the amount of wastewater leaving buildings and infiltration from the total amount of WWTP influent flowrate. Finally, ambient temperature, building effluent temperature, building effluent flowrate, stormwater flowrate, infiltration flowrate into the sewage network, time of day, and day of year are chosen as input variables.
The data series for ambient temperature is received from the Swedish Meteorological and Hydrological Institute (SMHI) [62]. The data series for WWTP influent temperature and flowrate are received from Stockholm Vatten och Avfall AB [63]. Building effluent temperature and flowrate have not been continuously measured. However, data from random pumping stations in Stockholm shows that building effluent temperature and flowrate have constant trends with periodic daily fluctuations, as discussed by Cipolla and Maglionico [64]. Therefore, the data series for building effluent temperature is calculated based on the average value of 25 °C [15] and the periodic daily fluctuations adapted from pumping stations data. Data series for building effluent flowrate simulated based on the daily lowest and highest values of 5018 m3 h−1 and 6322 m3 h−1 and daily fluctuations of wastewater passing through pumping stations. The minimum amount of flowrate during summer is decreased to 1957 m3 h−1 due to travelling. Table 1 summarises input and output variables and their minimum and maximum values from 2009 to 2019, and the complete dataset can be found in the supplementary data file available online.

2.2. ANN Procedure

The structure depicted in Figure 2, defined as an ANN model, includes three main layers: (i) Input layer, (ii) hidden layers, and (iii) output layers. Although only one hidden layer and one output are presented in Figure 1 as a general demonstration, there could be more than one hidden layer and several outputs. Input (Ii) is multiplied by weight ( W i , j I ) and are summed up with biases in the hidden layer ( b j H ) and are collected in the hidden layer as the neurons (Nj). Afterwards, the obtained values are transferred to the output layer by implementing a transfer function ( f H ) and multiplied into hidden layer’s weights ( W 1 , j H ). Finally, the summation of output layer bias provides the final value of the ANN model output.
To prepare the ANN model, the dataset has to be divided into three sets as training (70% of available data), validation (15% of available data), and testing (15% of available data) [58]. By generating initial weights and biases, which are random numbers close to zero, the training stage started. By implementing an optimisation algorithm for regulating weights to minimise the error between the simulated output and the observed output, the network is trained. In this research, Levenberg-Marquardt backpropagation (trainlm) was used as the training algorithm. Then, the regulated weights and biases of hidden and output layers are implemented to validate the results, based on the defined observed data. If the error were not satisfactory, the weights and biases would change until the error between the simulated output and the observed output in the training and validation sets became agreeable [65]. After training and validation stages, the adjusted weights and biases are used to calculate outputs considering the dataset dedicated to the testing stage. It is crucial not to use the data points of training and validation stages in the testing stage. That is why the proposed ANN model would be able to be used as an extrapolation-forecasting tool. In other words, it would be able to forecast output parameters based on the data, which is not included in the training and constructing stages. In this work, MATLAB 2019 is employed for simulating the system and also for data processing.
Since the order of input variables are dissimilar (see Table 1), they should be normalized between −1 and 1 or 0 and 1 before the training stage [57,66]. Therefore, actual data (Xi) were normalized (Yi) in the range of −1 and 1 using the following Equation (1):
Y i = 2 × ( X i X m i n X m a x X m i n ) 1
in which X m a x and X m i n are maximum and minimum values of variable i.

2.3. ANN Architecture

For the aim of finding the optimum ANN structure, several parameters should be adjusted. The most influential parameters in ANN are the number of hidden layers, the number of neurons in each hidden layer, and the transfer function [66]. A trial-and-error method is implemented to determine the optimum values of the aforementioned parameters with the objective of minimum error. In this work, the coefficient of determination (R2), relative root mean square error (RRMSE), and percent bias (PBIAS) are chosen as error indicators. R2 calculated by Equation (2), based on Cheng et al. [67], evaluates the degree of the linear relationship between simulated and observed data. RRMSE, calculated by Equation (3) based on Sirsat et al. [68], grants a relative model evaluation, and its value is in the range of 0 and 1. RRMSE = 0 being the optimal value and the lower values showing the less error [68]. PBIAS determines the tendency of the simulated data to overestimate or underestimate the observed data [69]. Positive values indicate model underestimation bias, while negative values present model overestimation bias [70]. PBIAS is calculated with Equation (4) based on Gputa et al. [70].
R 2 = 1 ( i = 1 n ( X i o b s X i s i m ) 2 i = 1 n ( X i o b s X i m e a n ) 2 )
R R M S E = 1 X m e a n × 1 n i = 1 n ( X i o b s X i s i m ) 2
P B I A S = ( i = 1 n ( X i o b s X i s i m ) i = 1 n ( X i o b s ) )
where X i o b s is the observed data, X i s i m is the simulated value, X i m e a n is the mean of observed data, and n is the total number of observations.

2.4. Monte Carlo Simulation (MCS)

In Monte Carlo simulations (MCS), random samples of uncertain input parameters were generated regarding pre-defined probability density functions (PDFs). In this paper, probability distributions were defined based on historical data and tested using Kolmogorov-Smirnov test (KS test) [71,72]. In other words, we assumed a PDF for each input parameter and evaluated the goodness-of-fit of the assumed PDF by the KS test. This test includes two parameters as the KS test statistic and KS test p-value. KS test statistic represents the maximum distance between the cumulative density functions (CDFs) of assumed distribution and samples of the input parameter. The more this value is close to zero, the more likely that assumed distribution fits the observed data. If the p-value is more than the significance level (0.05 in this work), it is accepted that the assumed distribution fits the observed data [73].
The randomly generated samples from input PDFs were implemented as the inputs of the developed ANN model, and the output for each input vector was calculated. The outputs were used to determine the correlation between uncertain input parameters and output.

3. Results and Discussion

3.1. Developed Model Description

In order to determine the optimum structure of the ANN model, we used historical data from 2009 to 2018 to train several structures with a different number of hidden layers (one or two), a different number of neurons in each layer (0 to 10), as well as various transfer functions. The zero (0) value for the number of neurons in the second hidden layer means that the network only has one hidden layer. The errors associated with 20 structures are summarised and compared in Table 2. The results show that the best structure would be an input layer with 7 input variables, 1 hidden layer with 10 neurons, and an output layer with 1 output variable. Therefore, the optimum structure is presented as 7-10-1. Also, six linear and non-linear transfer functions commonly used in ANNs techniques are randomly tested. Table 2 indicates that 7-10-1 structure with Tan-sigmoid as transfer function provides the highest R2 and lowest RRMSE and PBIAS for the outputs. Figure 3 demonstrates the optimum structure of ANN network, which has 7 input parameters, 1 hidden layer with 10 neurons, 1 output layer with 1 output variable, and Tan-sigmoid as transfer function. The optimum values of weights and biases related to input and hidden layer are reported in Table 3. Thus, considering the optimum weights and biases in Table 3 and Equation (5), WWTP influent temperature would be calculated for each input dataset.
W W T P   I n f l u e n t   T e m p e r a t u r e = W 1 , j H × ( ( 2 1 + e x p ( 2 × ( ( W i , j I ) × X ) + b j H ) ) 1 ) + b 1 O
i = input counter, j = neuron counter.

3.2. Testing and Validation of the Developed Network

Figure 4 shows parity plots for WWTP influent temperature calculated from the network against the observed data related to the years 2009 to 2018. The best fit of outputs versus targets was recogniszed by a solid diagonal line while the ideal fit is represented by the dashed diagonal line. The deviation of the best fit (solid line) from the ideal fit (dashed line) shows the difference between correlated values and observed ones. Figure 4a represents the parity plots for the training stage. The correlation coefficient (R2) for the training dataset is equal to 0.979, which shows that there is a good agreement between calculated and observed data. To validate and test the developed network, other datasets, which were not considered in the training stage, were taken into account. Figure 4b,c shows the correlation between calculated and observed data in validation and testing stages. The correlation coefficient (R2) for validation and testing stages are 0.980 and 0.979, respectively. Figure 4d depicts that the aggregation of all points is located around the bisection, and this reveals the accuracy of the results and the ability of the proposed ANN models for forecasting WWTP influent temperature.

3.3. Extrapolation Capacity of the Developed Network

For evaluating the extrapolation ability of the developed network, the dataset related to the year 2019 was prepared as input to the network. These collected data were not used in training, testing, and validation stages. Figure 5 compares the observed data and the network output (WWTP influent temperature) values for the year 2019. The correlation coefficient (R2) value of 0.945 shows a highly linear relationship between observed and simulated data. The relative root mean square error (RRMSE) value of 0.055 reveals an acceptable deviation of simulated data from observed data. Moreover, a percent bias (PBIAS) value of 0.080 suggests an underestimation of the ANN model. Part of these errors is due to the deviation of simulated values from observed data during hours 3521 to 3535, 3571 to 3629, and 4298 to 4326. For instance, the reported value of the observed data for all hours in the first period is 20.94 °C, while the average value of simulated data for these hours is 17.52 °C. This comparison shows that simulated data are more logical. Experts from Henriksdal WWTP believe that due to sensor malfunction, the reported data in these periods are not correct. Generally, statistical indicators confirm an appropriate extrapolation ability of the developed network.

3.4. Sensitivity Analysis

To conduct the Monte Carlo simulation (MCS) sensitivity analysis, the probability density functions (PDFs) of the uncertain input variables should be determined. Ambient temperature, building effluent temperature, building effluent flowrate, infiltration flowrate, and stormwater flowrate are uncertain input parameters during the year. The assumed PDFs for inputs, as well as the KS test statistics and p-values, are presented in Table 4.
For MCS, 5000 input vectors were sampled randomly regarding the selected PDFs (Table 4). The generated dataset was arranged with 5 blocks of 1000 vectors per input. In each block, only one input had random values in the defined range, while other inputs had mean values. The variation of inputs and accordingly obtained WWTP influent temperatures (output) are presented in Table 4.
The output ranges represent that stormwater flowrate and building effluent temperature are the most influential input parameters (impacts on output = 13 to 14.59 °C). The second most impactful parameters are ambient temperature and building effluent flowrate, of which their variations caused the output to change from 11.42 to 11.74 °C. The lowest influence is related to infiltration flowrate.
The standard deviation of WWTP influent temperature (output) that resulted from the variability of different inputs during different seasons of the year is presented in Figure 6. Figure 6a depicts the impacts of input parameters on WWTP influent temperature during winter. It shows that the stormwater flow rate is the most influential parameter in winter, while other parameters do not have considerable impacts on the WWTP influent temperature. However, Figure 6b illustrates that stormwater is not only not the dominant influential parameter in spring, but also that other parameters like building effluent temperature and ambient temperature are slightly more impactful. The reason is that stormwater in winter includes melted snow with a temperature around 0 °C. Thus, cold stormwater in winter has more impacts than warmer stormwater in spring. The variability of input parameters in spring is more than the rest of seasons, which is why the range of standard deviation of WWTP influent temperature in spring is more than other seasons. Figure 6c,d shows that building effluent temperature is the most influential input parameter during summer and autumn. However, the impacts of other input parameters like ambient temperature and building effluent flowrate are not ignorable. Generally, it is concluded that stormwater flowrate has remarkable effects on the temperature dynamics during winter, and other input parameters do not have considerable impacts on WWTP influent temperature. However, for the rest of the years, other input parameters like building effluent temperature, ambient temperature, and building effluent flowrate play a more critical role on the WWTP influent temperature.
For evaluating the uncertainty of WWTP influent temperature, another block of 1000 vectors as input data was sampled randomly regarding the PDFs determined for each input and introduced in Table 4. For each vector of input data, WWTP influent temperature was calculated, and a Gaussian mixture PDF with a p-value of 0.88 was fitted on the outputs. Figure 7 compares the PDF of observed data and simulated data. It demonstrates that the distribution of simulated data is very similar to the corresponding distribution of observed values.

3.5. Model Application

In the current situation, where there are not many local heat recoveries in the buildings in Stockholm, wastewater is discharged from buildings at 25 °C and received by WWTP at 16 °C on average. The developed model in this work is implemented to investigate the impact of local heat recoveries at the property level on inflow temperature to the treatment plant. It is assumed that 40% of the buildings connected to Henriksdal WWTP would install heat exchangers (HE) to recover heat directly in the buildings. Heat exchangers are passive heat recovery technologies, suitable for preheating cold water. Wastewater temperature drop in the heat exchangers depends on various parameters such as the type of heat exchanger, the flowrates and temperatures of wastewater as well as cold water, which vary during the day. Considering previous studies [48,64,74], 5 °C on average is assumed as the wastewater temperature drop in heat exchangers. A decrease of 5 °C in the temperature of discharged wastewater from 40% of buildings would lead to 2 °C decrease in the total building effluent temperature.
The ANN model is used to investigate the impact of 2 °C decrease in building effluent temperature. In that case, WWTP influent temperature would decrease from 16 °C to 14.6 °C. Accordingly, 203 GWh year−1 heat loss in the sewage network would be avoided due to lower wastewater temperatures. However, since heat recovery in the buildings would reduce the temperature of wastewater at WWTP, heat demand for digesting the sludge in WWTP would be increased by 0.71 GWh year−1. Moreover, treated water discharged from WWTP contains less thermal energy, which results in the district heating company recovering 176 GWh year−1 less heat from treated water. Table 5 summarises the energy performance of the wastewater system in the current situation and the scenario that 40% of buildings installing heat exchangers. The results show that the ANN model is able to scrutinise the impacts of upscaling local heat recoveries on the performance of prevailing centralised systems.
The results of this study indicate that the ANN model can forecast the WWTP influent temperature based on historical data commonly recorded with an ignorable error. As mentioned in the literature review, several mathematical models have been suggested for sewage temperature calculation. However, a conflict between the accuracy and simplicity of wastewater temperature models exists in previous studies. For instance, Sonakiya et al. [50] and Abdel-Aal et al. [51] presented a simple model based on temperature loss. However, they reported 0.1 to 4 °C temperature loss per km. This shows that the accuracy of their model varies regarding the place of measurement, and it increases the uncertainty of their model. Abdel-Aal et al. [51] reported the values of root mean square error (RMSE) of their model as 0.9, 0.5 and 0.2 K for three different sites, while the overall RMSE was found to be 0.37 K. The value of RMSE for ANN model in this work is 0.6 K. A more accurate model was proposed by Dürrenmatt and Wanner [16,52]. Their model is a function of 24 parameters related to the sewer pipe, soil, wastewater, and air, whereby eight parameters are more sensitive and should be calibrated by field measurement data. The value of RMSE for the calibrated model was reported as 0.2 K. The ANN model offers an alternative route with fewer required parameters, however still with high accuracy. The ANN model in this work is developed based on historical data commonly recorded in WWTPs without any field measurement. In addition to the simplicity, R2, RRMSE, and PBIAS values of 0.9456, 0.0548, and 0.0800 show the accuracy of the model.

4. Conclusions

The ANN model presented in this work was developed to forecast the WWTP influent temperature. The proposed model was trained, validated, and tested using seven input parameters like ambient temperature, building effluent temperature, building effluent flowrate, infiltration into the sewage network, stormwater flow rate, the hour of day, and the day of year. The dataset was related to a period of 10 years, from 2009 to 2018. To investigate the extrapolation ability of the developed network, a dataset related to the year 2019 was prepared as seven inputs to the network, and calculated output was compared to observed values in 2019. The correlation coefficient (R2), relative root mean square Error (RRMSE), and percentage bias (PBIAS) are used as three statistical indicators to evaluate the performance of the model. The values of 0.945 for R2, 0.055 for RRMSE, and 0.080 for PBIAS show an appropriate performance of the ANN model.
The Monte Carlo simulation (MCS) technique was also implemented to analyse the relative significance of uncertain input parameters on the output. Sensitivity analysis showed that stormwater flowrate and building effluent temperature are the most influential input parameters all year round on the inflow temperature to the treatment plant. However, sensitivity analysis in different seasons indicated that the significance of parameters is changed. For instance, stormwater is the most influential parameter during winter, while building effluent temperature and ambient temperature are more impactful during summer. Moreover, the MCS sensitivity analysis implemented the ANN model results. The distribution of ANN model results is perfectly similar to the distribution of observed data, which shows that the ANN model is able to forecast the WWTP influent temperature efficiently. Our results suggest that ANN as a data-driven model for forecasting is a viable alternative to conventional models, which depend on the physical properties of the system that may be difficult or costly to obtain. Finally, the proposed ANN model used to investigate the effects of upscaling local heat recoveries on the performance of the wastewater system in Stockholm. In the case of installing heat exchangers in 40% of buildings, WWTP influent temperature would decrease from 16 °C to 14.6 °C. Accordingly, heat loss in the sewage network would be reduced by 203 GWh year−1. However, heat demand for digesting the sludge in WWTP would be increased by 0.71 GWh year−1. Moreover, available heat for recovery from treated water by the district heating company would be decreased by 176 GWh year−1. In future studies, this model is going to be implemented as an analysis tool to investigate the techno-economic and environmental impacts of local heat and water recoveries on critical centralised functions like WWTP and district heating company in Stockholm.

Supplementary Materials

Supplementary materials are available online at https://www.mdpi.com/2071-1050/12/16/6386/s1.

Author Contributions

Conceptualization, F.G. and D.N.; methodology, F.G.; software, F.G.; validation, F.G., and V.M.; investigation, F.G. and V.M.; data curation, F.G.; writing—original draft preparation, F.G.; writing—review and editing, D.N. and V.M.; visualization, F.G.; supervision, V.M.; project administration, D.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been carried out within the SEQWENS project funded by Formas—The Swedish Research Council for Environment, Agricultural Sciences and Spatial Planning, grant number 2018-00239.

Acknowledgments

The authors would like to thank Sofia Andersson and her colleagues from Stockholm Vatten och Avfall AB, Sweden, for providing the historical wastewater data needed to develop and validate the model. We are also grateful for comments on an early draft provided by Timos Karpouzoglou and Jörgen Wallin at KTH.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. United Nations. The Paris Agreement. Available online: https://unfccc.int/process-and-meetings/the-paris-agreement/the-paris-agreement (accessed on 10 July 2020).
  2. United Nations. Sustainable Development Goals. Available online: https://www.un.org/sustainabledevelopment/sustainable-development-goals/ (accessed on 15 April 2020).
  3. European Council. 2030 Climate & Energy Framework. Available online: https://ec.europa.eu/clima/policies/strategies/2030_en#tab-0-0 (accessed on 10 July 2020).
  4. Forster, D.; Okamura, S.; Wilkins, G.; Morris, M.; Kuikman, P.J.; Lesschen, J.P. Next Phase of the European Climate Change Programme: Analysis of Member States Actions to Implement the Effort Sharing Decision and Options for Further Community; AEA Technology Plc: Didcot, UK, 2012. [Google Scholar]
  5. European Parliament and Council of the European Union. Amending Directive 2010/31/EU on the Energy Performance of Buildings and Directive 2012/27/EU on Energy Efficiency. Available online: http://data.europa.eu/eli/dir/2018/844/oj (accessed on 10 July 2020).
  6. Ministry of the Environment (Sweden). The Climate Policy Framework. Available online: https://www.government.se/articles/2017/06/the-climate-policy-framework/ (accessed on 11 June 2020).
  7. European Parliament and Council of the European Union. Directive 2009/28/EC of the European Parliament and of the Council of 23 April 2009 on the Promotion of the Use of Energy from Renewable Sources and Amendingand Subsequently Repealing Directives 2001/77/EC and 2003/30/EC. Available online: http://data.europa.eu/eli/dir/2009/28/oj (accessed on 10 July 2020).
  8. Bertrand, A.; Aggoune, R.; Maréchal, F. In-building waste water heat recovery: An urban-scale method for the characterisation of water streams and the assessment of energy savings and costs. Appl. Energy 2017, 192, 110–125. [Google Scholar] [CrossRef] [Green Version]
  9. Neugebauer, G.; Kretschmer, F.; Kollmann, R.; Narodoslawsky, M.; Ertl, T.; Stoeglehner, G. Mapping Thermal Energy Resource Potentials from Wastewater Treatment Plants. Sustainability 2015, 7, 12988. [Google Scholar] [CrossRef] [Green Version]
  10. Williams, J. Circular Cities: Challenges to Implementing Looping Actions. Sustainability 2019, 11, 423. [Google Scholar] [CrossRef] [Green Version]
  11. Cecconet, D.; Raček, J.; Callegari, A.; Hlavínek, P. Energy Recovery from Wastewater: A Study on Heating and Cooling of a Multipurpose Building with Sewage-Reclaimed Heat Energy. Sustainability 2019, 12, 116. [Google Scholar] [CrossRef] [Green Version]
  12. Capodaglio, A.G.; Olsson, G. Energy Issues in Sustainable Urban Wastewater Management: Use, Demand Reduction and Recovery in the Urban Water Cycle. Sustainability 2019, 12, 266. [Google Scholar] [CrossRef] [Green Version]
  13. McCarty, P.L.; Bae, J.; Kim, J. Domestic Wastewater Treatment as a Net Energy Producer–Can This be Achieved? Environ. Sci. Technol. 2011, 45, 7100–7106. [Google Scholar] [CrossRef] [PubMed]
  14. Nowak, O.; Enderle, P.; Varbanov, P. Ways to optimize the energy balance of municipal wastewater systems: Lessons learned from Austrian applications. J. Clean. Prod. 2015, 88, 125–131. [Google Scholar] [CrossRef]
  15. Frijns, J.; Hofman, J.; Nederlof, M. The potential of (waste)water as energy carrier. Energy Convers. Manag. 2013, 65, 357–363. [Google Scholar] [CrossRef]
  16. Dürrenmatt, D.J.; Wanner, O. A mathematical model to predict the effect of heat recovery on the wastewater temperature in sewers. Water Res. 2014, 48, 548–558. [Google Scholar]
  17. Kretschmer, F.; Simperler, L.; Ertl, T. Analysing wastewater temperature development in a sewer system as a basis for the evaluation of wastewater heat recovery potentials. Energy Build. 2016, 128, 639–648. [Google Scholar] [CrossRef]
  18. Hepbasli, A.; Biyik, E.; Ekren, O.; Gunerhan, H.; Araz, M. A key review of wastewater source heat pump (WWSHP) systems. Energy Convers. Manag. 2014, 88, 700–722. [Google Scholar] [CrossRef]
  19. Arnell, M.; Lundin, E.; Jeppson, U. Sustainability Analysis for Wastewater Heat Recovery Literature Review; Lund University Technical Report; Lund University: Lund, Sweden, 2017. [Google Scholar]
  20. Lingsten, A.; Lundkvist, M. Nulägesbeskrivning av VA-Verkens Energianvändning; Report SVU 2008-01; The Swedish Water and Wastewater Association, Vatten S: Stockholm, Sweden, 2008. [Google Scholar]
  21. Schmid, F. Sewage water: Interesting heat source for heat pumps and chillers. In Proceedings of the 9th International IEA Heat Pump Conference, Zurich, Switzerland, 20–22 May 2008. [Google Scholar]
  22. Alekseiko, L.N.A.; Slesarenko, V.V.; Yudakov, A. Combination of wastewater treatment plants and heat pumps. Pac. Sci. Rev. 2014, 16, 36–39. [Google Scholar] [CrossRef] [Green Version]
  23. Mikkonen, L.; Rämö, J.; Keiski, R.L.; Pongrácz, E. Heat recovery from wastewater: Assessing the potential in northern areas. In Proceedings of the Water Research, Oulu, Finland, 15 August 2013. [Google Scholar]
  24. Meggers, F.; Leibundgut, H. The potential of wastewater heat and exergy: Decentralized high-temperature recovery with a heat pump. Energy Build. 2011, 43, 879–886. [Google Scholar] [CrossRef]
  25. Alnahhal, S.; Spremberg, E. Contribution to Exemplary In-house Wastewater Heat Recovery in Berlin, Germany. Procedia CIRP 2016, 40, 35–40. [Google Scholar] [CrossRef] [Green Version]
  26. Eslami-nejad, P.; Bernier, M. Impact of grey water heat recovery on the electrical demand of domestic hot water heaters. In Proceedings of the 11th International building performance simulation association conference, Glasgow, Scotland, 27–30 July 2009. [Google Scholar]
  27. Wong, L.T.; Mui, K.W.; Guan, Y. Shower water heat recovery in high-rise residential buildings of Hong Kong. Appl. Energy 2010, 87, 703–709. [Google Scholar] [CrossRef]
  28. Guo, Y.X.; Cai, Y.L.; Liang, S.Q.; Chen, W. Experimental Study on a Shower Waste Water Heat Recovery Device in Buildings. Appl. Mech. Mater. 2012, 226, 2402–2406. [Google Scholar] [CrossRef]
  29. McNabola, A.; Shields, K. Efficient drain water heat recovery in horizontal domestic shower drains. Energy Build. 2013, 59, 44–49. [Google Scholar] [CrossRef]
  30. Kordana, S.; Słyś, D.; Dziopak, J. Rationalization of water and energy consumption in shower systems of single-family dwelling houses. J. Clean. Prod. 2014, 82, 58–69. [Google Scholar] [CrossRef]
  31. Torras, S.; Oliet, C.; Rigola, J.; Oliva, A. Drain water heat recovery storage-type unit for residential housing. Appl. Therm. Eng. 2016, 103, 670–683. [Google Scholar] [CrossRef] [Green Version]
  32. Deng, Z.; Mol, S.; van der Hoek, J.P. Shower heat exchanger: Reuse of energy from heated drinking water for CO 2 reduction. Drink. Water Eng. Sci. 2016, 9, 1–8. [Google Scholar] [CrossRef] [Green Version]
  33. Liu, L.; Fu, L.; Jiang, Y. Application of an exhaust heat recovery system for domestic hot water. Energy 2010, 35, 1476–1481. [Google Scholar] [CrossRef]
  34. Chen, W.; Liang, S.; Guo, Y.; Cheng, K.; Gui, X.; Tang, D. Investigation on the thermal performance and optimization of a heat pump water heater assisted by shower waste water. Energy Build. 2013, 64, 172–181. [Google Scholar] [CrossRef]
  35. Wallin, J.; Claesson, J. Analyzing the efficiency of a heat pump assisted drain water heat recovery system that uses a vertical inline heat exchanger. Sustain. Energy Technol. Assess. 2014, 8, 109–119. [Google Scholar] [CrossRef]
  36. Dong, J.; Zhang, Z.; Yao, Y.; Jiang, Y.; Lei, B. Experimental performance evaluation of a novel heat pump water heater assisted with shower drain water. Appl. Energy 2015, 154, 842–850. [Google Scholar] [CrossRef]
  37. Gou, X.; Fu, Y.; Shah, I.; Li, Y.; Xu, G.; Yang, Y.; Wang, E.; Liu, L.; Wu, J. Research on a Household Dual Heat Source Heat Pump Water Heater with Preheater Based on ASPEN PLUS. Energies 2016, 9, 1026. [Google Scholar] [CrossRef] [Green Version]
  38. Postrioti, L.; Baldinelli, G.; Bianchi, F.; Buitoni, G.; Maria, F.D.; Asdrubali, F. An experimental setup for the analysis of an energy recovery system from wastewater for heat pumps in civil buildings. Appl. Therm. Eng. 2016, 102, 961–971. [Google Scholar] [CrossRef]
  39. Lin, S.; Broadbent, J.; McGlen, R. Numerical study of heat pipe application in heat recovery systems. Appl. Therm. Eng. 2005, 25, 127–133. [Google Scholar] [CrossRef]
  40. De Paepe, M.; Theuns, E.; Lenaers, S.; Van Loon, J. Heat recovery system for dishwashers. Appl. Therm. Eng. 2003, 23, 743–756. [Google Scholar] [CrossRef]
  41. Persson, T. Dishwasher and washing machine heated by a hot water circulation loop. Appl. Therm. Eng. 2007, 27, 120–128. [Google Scholar] [CrossRef]
  42. Persson, T.; Rönnelid, M. Increasing solar gains by using hot water to heat dishwashers and washing machines. Appl. Therm. Eng. 2007, 27, 646–657. [Google Scholar] [CrossRef]
  43. Hauer, A.; Fischer, F. Open Adsorption System for an Energy Efficient Dishwasher. Chem. Ing. Tech. 2011, 83, 61–66. [Google Scholar] [CrossRef]
  44. Jeong, S.W.; Lee, D.H. Drying performance of a dishwasher with internal air circulation. Korean J. Chem. Eng. 2014, 31, 1518–1521. [Google Scholar] [CrossRef] [Green Version]
  45. Bengtsson, P.; Berghel, J.; Renström, R. A household dishwasher heated by a heat pump system using an energy storage unit with water as the heat source. Int. J. Refrig. 2015, 49, 19–27. [Google Scholar] [CrossRef]
  46. Saker, D.; Vahdati, M.; Coker, P.J.; Millward, S. Assessing the benefits of domestic hot fill washing appliances. Energy Build. 2015, 93, 282–294. [Google Scholar] [CrossRef]
  47. Pakula, C.; Stamminger, R. Electricity and water consumption for laundry washing by washing machine worldwide. Energy Effic. 2010, 3, 365–382. [Google Scholar] [CrossRef]
  48. Wärff, C.; Arnell, M.; Sehlén, R.; Jeppsson, U. Modelling heat recovery potential from household wastewater. Water Sci. Technol. 2020. [Google Scholar] [CrossRef] [Green Version]
  49. Wanner, O.; Panagiotidis, V.; Clavadetscher, P.; Siegrist, H. Effect of heat recovery from raw wastewater on nitrification and nitrogen removal in activated sludge plants. Water Res. 2005, 39, 4725–4734. [Google Scholar]
  50. Sonakiya, M.; Panchore, B.; Mishra, N. Performance Analysis on Heating Conditions of Large Sewage Source Heat Pump System. Int. J. Emerg. Technol. 2013, 4, 27–30. [Google Scholar]
  51. Abdel-Aal, M.; Smits, R.; Mohamed, M.; De Gussem, K.; Schellart, A.; Tait, S. Modelling the viability of heat recovery from combined sewers. Water Sci. Technol. 2014, 70, 297–306. [Google Scholar] [CrossRef]
  52. Durrenmatt, D.J.; Wanner, O. Simulation of the wastewater temperature in sewers with TEMPEST. Water Sci. Technol. 2008, 57, 1809–1815. [Google Scholar] [CrossRef]
  53. Nabavi-Pelesaraei, A.; Rafiee, S.; Hosseinzadeh-Bandbafha, H.; Shamshirband, S. Modeling energy consumption and greenhouse gas emissions for kiwifruit production using artificial neural networks. J. Clean. Prod. 2016, 133, 924–931. [Google Scholar] [CrossRef]
  54. Feng, G.; Xia, G.; Chen, B.; Xiao, Y.; Zhou, R. A Method for Rockburst Prediction in the Deep Tunnels of Hydropower Stations Based on the Monitored Microseismicity and an Optimized Probabilistic Neural Network Model. Sustainability 2019, 11, 3212. [Google Scholar] [CrossRef] [Green Version]
  55. Wei, N.; Li, C.; Peng, X.; Zeng, F.; Lu, X. Conventional models and artificial intelligence-based models for energy consumption forecasting: A review. J. Pet. Sci. Eng. 2019, 181, 106187. [Google Scholar] [CrossRef]
  56. Byliński, H.; Sobecki, A.; Gębicki, J. The Use of Artificial Neural Networks and Decision Trees to Predict the Degree of Odor Nuisance of Post-Digestion Sludge in the Sewage Treatment Plant Process. Sustainability 2019, 11, 4407. [Google Scholar] [CrossRef] [Green Version]
  57. Hamzehie, M.E.; Fattahi, M.; Najibi, H.; Van der Bruggen, B.; Mazinani, S. Application of artificial neural networks for estimation of solubility of acid gases (H2S and CO2) in 32 commonly ionic liquid and amine solutions. J. Nat. Gas Sci. Eng. 2015, 24, 106–114. [Google Scholar] [CrossRef]
  58. Golzar, K.; Modarress, H.; Amjad-Iranagh, S. Evaluation of density, viscosity, surface tension and CO2 solubility for single, binary and ternary aqueous solutions of MDEA, PZ and 12 common ILs by using artificial neural network (ANN) technique. Int. J. Greenh. Gas Control 2016, 53, 187–197. [Google Scholar] [CrossRef]
  59. Ni, L.; Lau, S.K.; Li, H.; Zhang, T.; Stansbury, J.S.; Shi, J.; Neal, J. Feasibility study of a localized residential grey water energy-recovery system. Appl. Therm. Eng. 2012, 39, 53–62. [Google Scholar] [CrossRef]
  60. Suez Water Technologies. Building the World’s Largest MBR—Upgrading Stockholm’s Wastewater Treatment; Suez Water Technologies: Paris, France, 2017. [Google Scholar]
  61. Reyes, D. Modelling Heat Recovery from Urban Wastewater Systems—Case Study from Malmö. Master’s Thesis, Lund University, Lund, Sweden, June 2019. [Google Scholar]
  62. Swedish Meteorological and Hydrological Institute (SMHI). Meteorological Observations—Hourly Value. Available online: https://www.smhi.se/data/meteorologi/ladda-ner-meteorologiska-observationer#param=airtemperatureInstant,stations=all (accessed on 11 June 2020).
  63. Stockholm Vatten och Avfall AB. Water and Wastewater. Available online: https://www.stockholmvattenochavfall.se/en/water-and-wastewater/#!/wastewater (accessed on 11 June 2020).
  64. Cipolla, S.S.; Maglionico, M. Heat recovery from urban wastewater: Analysis of the variability of flow rate and temperature. Energy Build. 2014, 69, 122–130. [Google Scholar] [CrossRef]
  65. Golzar, K.; Amjad-Iranagh, S.; Modarress, H. Investigation of polymer + solvent mixtures by means of cubic equations of state and artificial neural network. Fluid Phase Equilib. 2016, 415, 134–143. [Google Scholar] [CrossRef]
  66. Đozić, D.J.; Gvozdenac Urošević, B.D. Application of artificial neural networks for testing long-term energy policy targets. Energy 2019, 174, 488–496. [Google Scholar] [CrossRef]
  67. Cheng, C.-L.; Shalabh; Garg, G. Coefficient of determination for multiple measurement error models. J. Multivar. Anal. 2014, 126, 137–152. [Google Scholar] [CrossRef] [Green Version]
  68. Sirsat, M.S.; Mendes-Moreira, J.; Ferreira, C.; Cunha, M. Machine Learning predictive model of grapevine yield based on agroclimatic patterns. Eng. Agric. Environ. Food 2019, 12, 443–450. [Google Scholar] [CrossRef]
  69. Scherer, L.; Venkatesh, A.; Karuppiah, R.; Pfister, S. Large-Scale Hydrological Modeling for Calculating Water Stress Indices: Implications of Improved Spatiotemporal Resolution, Surface-Groundwater Differentiation, and Uncertainty Characterization. Environ. Sci. Technol. 2015, 49, 4971–4979. [Google Scholar] [CrossRef] [PubMed]
  70. Gupta, H.V.; Sorooshian, S.; Yapo, P.O. Status of Automatic Calibration for Hydrologic Models: Comparison with Multilevel Expert Calibration. J. Hydrol. Eng. 1999, 4, doi. [Google Scholar] [CrossRef]
  71. Jing, R.; Wang, M.; Wang, W.; Brandon, N.; Li, N.; Chen, J.; Zhao, Y. Economic and environmental multi-optimal design and dispatch of solid oxide fuel cell based CCHP system. Energy Convers. Manag. 2017, 154, 365–379. [Google Scholar] [CrossRef]
  72. Frey, J. An exact Kolmogorov–Smirnov test for whether two finite populations are the same. Stat. Probab. Lett. 2016, 116, 65–71. [Google Scholar] [CrossRef]
  73. Justel, A.; Peña, D.; Zamar, R. A multivariate Kolmogorov-Smirnov test of goodness of fit. Stat. Probab. Lett. 1997, 35, 251–259. [Google Scholar] [CrossRef] [Green Version]
  74. Kayo, G.; Martinac, I.; Masanori, S.; Rahimibaroughi, H. Heat Recovery from Waste-Water in Buildings—A System-Oriented Longitudinal Study; Energimyndigheten: Estona, Sweden, 2018. [Google Scholar]
Figure 1. The variation of wastewater treatment plant (WWTP) influent temperature as a function of WWTP influent flowrate and ambient temperature. Data from Stockholm Vatten och Avfall AB [64] and the Swedish Meteorological and Hydrological Institute (SMHI) [63].
Figure 1. The variation of wastewater treatment plant (WWTP) influent temperature as a function of WWTP influent flowrate and ambient temperature. Data from Stockholm Vatten och Avfall AB [64] and the Swedish Meteorological and Hydrological Institute (SMHI) [63].
Sustainability 12 06386 g001
Figure 2. Schematic representation of the artificial neural network (ANN) structure.
Figure 2. Schematic representation of the artificial neural network (ANN) structure.
Sustainability 12 06386 g002
Figure 3. Optimum structure of ANN model for forecasting the WWTP influent temperature.
Figure 3. Optimum structure of ANN model for forecasting the WWTP influent temperature.
Sustainability 12 06386 g003
Figure 4. Correlation between values of calculated values and observed data for (a) training dataset, (b) validation dataset, (c) testing dataset, and (d) all datasets.
Figure 4. Correlation between values of calculated values and observed data for (a) training dataset, (b) validation dataset, (c) testing dataset, and (d) all datasets.
Sustainability 12 06386 g004
Figure 5. Measured (red) and simulated (blue) data for WWTP influent temperature for the year 2019.
Figure 5. Measured (red) and simulated (blue) data for WWTP influent temperature for the year 2019.
Sustainability 12 06386 g005
Figure 6. Forecasted mean WWTP influent temperature value and standard deviations related to the uncertainties of inputs during (a) Winter, (b) Spring, (c) Summer, and (d) Autumn.
Figure 6. Forecasted mean WWTP influent temperature value and standard deviations related to the uncertainties of inputs during (a) Winter, (b) Spring, (c) Summer, and (d) Autumn.
Sustainability 12 06386 g006
Figure 7. Comparison of simulated PDF as Gaussian mixture for WWTP influent temperature and distribution of observed data.
Figure 7. Comparison of simulated PDF as Gaussian mixture for WWTP influent temperature and distribution of observed data.
Sustainability 12 06386 g007
Table 1. The minimum and maximum of input and output variables for the city of Stockholm, Henriksdal WWTP from 2009 to 2019.
Table 1. The minimum and maximum of input and output variables for the city of Stockholm, Henriksdal WWTP from 2009 to 2019.
SetParameterUnitMinimumMaximum
InputsAmbient temperature °C−20.7031.80
Buildings effluent temperature °C8.5134.70
Buildings effluent flowrate m3 s−10.551.74
Stormwater flowrate m3 s−10.0011.08
Infiltration flowrate m3 s−10.000.58
Hour of dayh1.0024
Day of yeard1.00365
OutputsWWTP influent temperature°C2.0823.70
Table 2. Comparison of different neural networks with two hidden layers and varied number of neurons as well as different transfer functions.
Table 2. Comparison of different neural networks with two hidden layers and varied number of neurons as well as different transfer functions.
No.StructureWWTP Influent Temperature
Transfer FunctionR2RRMSEPBIAS
17-4-0-1Symmetric hard-limit0.8450.0710.056
27-4-3-1Triangular Basis0.9320.0590.107
37-4-6-1Tan-sigmoid0.8970.0650.043
47-5-1-1Hard-limit0.9630.0480.090
57-5-5-1Satlin0.9200.0500.194
67-5-7-1Symmetric hard-limit0.8630.0620.036
77-6-0-1Satlin0.8640.0590.039
87-6-3-1Triangular Basis0.9670.0530.164
97-6-5-1Linear0.9420.0550.072
107-7-0-1Hard-limit0.8520.0720.116
117-7-4-1Satlin0.9140.0560.087
127-7-8-1Linear0.9230.0520.094
137-8-2-1Satlin0.9010.0580.073
147-8-4-1Triangular Basis0.8640.0760.036
157-8-8-1Symmetric hard-limit0.8870.0630.059
167-9-0-1Hard-limit0.8540.0590.061
177-9-4-1Satlin0.9350.0520.081
187-9-7-1Symmetric hard-limit0.9180.0570.077
197-9-10-1Linear0.9650.0490.067
207-10-0-1Tan-sigmoid0.9830.0440.035
Table 3. The optimum weights (wij) and biases (bj) for the best architecture of ANN models for predicting WWTP influent temperature.
Table 3. The optimum weights (wij) and biases (bj) for the best architecture of ANN models for predicting WWTP influent temperature.
LayerWeight and BiasNo.No. of Neurons
12345678910
InputWeights, w i , j I 10.18−2.610.650.685.834.540.120.42−0.08−7.83
20.200.780.00−3.01−0.050.09−0.04−3.74−4.430.07
30.45−0.76−0.040.090.000.180.420.05−4.540.04
4−0.32−3.04−0.06−0.260.000.100.03−0.451.100.00
50.360.270.00−0.090.010.100.11−0.06−0.28−0.01
63.08−1.140.130.330.250.140.250.58−0.50−0.71
73.03−1.11−0.17−0.680.221.031.94−0.960.100.14
HiddenBias, b j H 13.972.07−0.87−0.91.15−0.081.33−1.17−1.34−1.34
Weights, w 1 , j H 10.13−0.09−3.111.083.020.18−0.53−1.03−0.022.11
OutputBias, b 1 O 1−1.86
Table 4. Simulated probability density functions (PDFs) with the input ranges and obtained WWTP influent temperature (output) ranges.
Table 4. Simulated probability density functions (PDFs) with the input ranges and obtained WWTP influent temperature (output) ranges.
Uncertain Input ParameterUnitPDFScenario RangeKolmogorov–Smirnov TestΔ InputΔ Output (°C)
Statisticp-value
Ambient temperature °CGaussian mixtureμ1 = 3.5; σ = 3.0
μ2 = 15.5; σ = 5.0
0.020.4542.6011.74
Buildings effluent temperature °CNormalμ1 = 22.33; σ = 2.950.010.8622.113.00
Buildings effluent flowrate m3 s1Uniforma = 1.20; b = 1.800.080.060.5211.42
Infiltration flowrate m3 s1Exponentialλ = 0.090.030.200.414.31
Storm water flowratem3 s1Exponentialλ = 0.090.010.707.9314.59
Table 5. Comparison of the current situation and the possible evolving system resulting from local heat recovery by heat exchangers in 40% of buildings.
Table 5. Comparison of the current situation and the possible evolving system resulting from local heat recovery by heat exchangers in 40% of buildings.
ParameterCurrent Situation without Local Heat RecoveryPossible Evolving System Regarding Local Heat Recovery
Buildings effluent temperature, °C25.0023.00
WWTP influent temperature, °C16.0014.60
Local heat recovery in buildings, GWh year−10.0096.26
Heat loss in sewage network, GWh year−11237.281034.15
WWTP heat demand, GWh year111.0611.77
Heat recovery from treated water, GWh year−11485.751309.95

Share and Cite

MDPI and ACS Style

Golzar, F.; Nilsson, D.; Martin, V. Forecasting Wastewater Temperature Based on Artificial Neural Network (ANN) Technique and Monte Carlo Sensitivity Analysis. Sustainability 2020, 12, 6386. https://doi.org/10.3390/su12166386

AMA Style

Golzar F, Nilsson D, Martin V. Forecasting Wastewater Temperature Based on Artificial Neural Network (ANN) Technique and Monte Carlo Sensitivity Analysis. Sustainability. 2020; 12(16):6386. https://doi.org/10.3390/su12166386

Chicago/Turabian Style

Golzar, Farzin, David Nilsson, and Viktoria Martin. 2020. "Forecasting Wastewater Temperature Based on Artificial Neural Network (ANN) Technique and Monte Carlo Sensitivity Analysis" Sustainability 12, no. 16: 6386. https://doi.org/10.3390/su12166386

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop