Introduction

Due to rapid industrialization, increase in population, and growing concerns over climate change and energy security, renewable energy has attracted strong interest recently (Xin et al. 2018). Energy supply from renewable energy sources has improved remarkably; however, its contribution to global energy mix is still quite limited (Ersahin et al. 2011). Therefore, development of sustainable energy supplies is necessary (Guldhe et al. 2017). In this context, municipal wastewater and sludge, as energy intensive materials, are being recognized as promising feedstocks for energy production (Shizas and Bagley 2004; Gyobu et al. 2015; Korth et al. 2017). Annual sludge production is expected to increase rapidly in the future due to increasing urbanization that requires a higher level of sanitation through stringent environmental regulations to protect the quality of receiving water bodies (Leblanc et al. 2008; Pilli et al. 2015). Municipal wastewater treatment plants employ several types of processes for sludge management such as aerobic and anaerobic stabilization, and incineration (Jimenez et al. 2015). Amongst various alternatives, anaerobic digestion of sludge is considered as one of the most suitable technologies for renewable energy production via the conversion of organic matter into methane containing biogas.

Methane-rich biogas produced by anaerobic digestion of municipal wastewater sludge can be utilized as a fuel to offset heat and electricity consumption of the wastewater treatment facilities. Wan et al. (2016) reported that around 78% of the total energy in wastewater treatment plants could be potentially recovered by anaerobic digestion of primary sludge. It is possible to obtain 12.5 m3 biogas/population equivalent (PE) annually by anaerobic digestion of sludge in a full-scale wastewater treatment plant. By this way, around 23.5 kWh/PE year of energy could be produced (Jenicek et al. 2013). By utilizing all biogas produced by anaerobic sludge digestion via combined heat-power (CHP) units having 34% electric efficiency, 20.6 kWh/PE year of electrical energy was produced in a full-scale wastewater treatment plant (Nowak et al. 2011). Maximization of sludge production in the primary treatment stage of a municipal wastewater treatment plant would serve as a key to achieve the concept of energy-neutral or energy-positive wastewater treatment that has been gaining interest recently (Meerburg et al. 2016; Guven et al. 2017). Together with the optimization of the activated sludge processes via efficient aeration technologies and strategies, anaerobic digestion of biosolids is one of the most important processes to achieve energy autonomy in wastewater treatment plants. For instance; application of a high rate activated sludge process to shunt as much organic matter as possible to sludge stream without oxidation, electricity production of higher than 100% of the demand of a wastewater treatment plant could be produced via biogas from anaerobic digestion of the sludge (Nowak et al. 2011). It was reported that electric energy of 28 kWh/PE year was produced by anaerobic digestion of sludge produced from a high rate activated sludge process (Meerburg et al. 2016). Beside CHP units, other methods such as use of biomethane as biofuel for vehicles after appropriate pre-treatment can be applied to utilize the energy content of biogas (Tilche and Galatola 2008; Ersahin et al. 2011).

Especially to evaluate the impact of different process and operation variables on the performance of the treatment methods, including complex reactions such as anaerobic digestion, modeling can be used as a very effective tool (Shang et al. 2005; Vavilin et al. 2006; Ersahin et al. 2007; Ekama 2009). Modeling has been widely used for understanding, design and control of the waste(water) treatment processes. Over the years, various models, from simple ones that considered anaerobic digestion as only a single step process to advanced and extended complex models, have been developed (Donoso-Bravo et al. 2011; Lauwers et al. 2013). Anaerobic Digestion Model No. 1 (ADM1), has been released by the International Water Association (IWA) task group to aggregate the scientific knowledge on anaerobic bioprocesses and harmonize the modeling studies. Therefore, ADM1 has established a basic platform for modeling of anaerobic digestion and is now considered as the most accepted and widely used model (Batstone et al. 2002a). Various steps are included in the ADM1 covering disintegration, hydrolysis, acidogenesis, acetogenesis and methanogenesis as biochemical, and ion association/dissociation and gas–liquid transfer as physicochemical steps. Ever since its development, ADM1 has been used for simulating anaerobic digestion of different waste(water)s, such as industrial wastewaters (Ersahin et al. 2007; Dereli et al. 2010; Barrera et al. 2015), domestic wastewaters (Feng et al. 2006), agricultural wastes (Gali et al. 2009; Nordlander et al. 2017), and municipal wastewater sludge (Blumensaat and Keller 2005; Yasui et al. 2008; Astals et al. 2013; Lauwers et al. 2013; Mendes et al. 2015; Otuzalti and Altınay Perendeci 2018).

This study attempts to model the dynamic performance of a full-scale anaerobic digester treating mixed sludge (primary and secondary) in a wastewater treatment plant by using ADM1. The model was calibrated and validated, based on effluent chemical oxygen demand (COD), methane production, alkalinity and pH parameters, with the long-term operational data of the full-scale digester. The applications of ADM1 to full-scale sludge digesters are quite limited in literature due to several reasons such as data availability and accessibility. Therefore, the study presents a real-world example of implementation of ADM1 to simulate the long-term dynamic performance of a full-scale sludge digester.

Materials and methods

Full-scale digester

The operational data used in the modeling study were obtained from a full-scale anaerobic sludge digester located in a municipal wastewater treatment plant with a design capacity of 400,000 m3/day corresponding to 1,600,000 PE. The wastewater treatment plant is configured as a 5-stage Bardenpho Process for biological nitrogen and phosphorus removal and operated as an extended aeration process with a high solids retention time (SRT) of around 20 days. The primary sludge and waste activated sludge (the excess activated sludge produced by the biological conversion, which should be removed from the system in order to maintain the required SRT) are anaerobically digested in six flow-through digesters operated in parallel under mesophilic conditions (35–37 °C). Each digester has an effective volume of 10,000 m3 and is mixed with a gas and digestate recirculation systems. The digesters were fed with mixed primary and secondary sludge with an average volumetric loading rate of 1.45 kg COD/m3 day. The hydraulic retention time for the digesters were 32 days and average COD removal efficiency was 33%.

Due to biological growth (and solids present in the raw wastewater which are only partly degraded), excess sludge eventually accumulates beyond the desired MLSS concentration in the aeration tank. This amount of solid (called waste activated sludge, WAS) is removed from the treatment process to keep the ratio of biomass to food supplied (sewage or wastewater) in balance and the F:M ratio in a defined range. WAS is stored away from the main treatment process in storage tanks and is further treated by digestion, either under anaerobic or aerobic conditions prior to disposal.

The operational parameters monitored during the study period were determined according to the Standard Methods (APHA 2005).

Mathematical model

ADM1 is a mathematical model developed by the International Water Association (IWA) task group for mainly describing the biochemical processes involved in anaerobic digestion (Batstone et al. 2002b, 2006). The ADM1 was implemented in Aquasim 2.1g software (Reichert et al. 1998) in this study. The digester was modelled as a continuous system including a mixed liquid reactor with a gas diffusion link to a mixed gas headspace. Initial stoichiometric and kinetic coefficients were taken from the original ADM1 model (Batstone et al. 2002b). Initial concentrations of the state variables were obtained by running the model with constant flow and pollutant load until reaching a steady state. Following that, the model was calibrated with dynamic loading in order to get a similar trend between operational data (200 days) and model prediction. In the complex mathematical models for biological processes, such as ADM1; several parameters with uncertain values, and relatively few measured outputs are involved in simulating the anaerobic digestion process, which in return makes them quite difficult to calibrate. Calibration was performed by using an iterative approach as suggested by Dereli et al. (2010). The calibration procedure was started with the initial parameter values (generally default parameter set) of the model. Simulations were performed by changing the value (depending on the sensitivity and variability) of only one parameter at each trial. The calculated results were compared with the measured data and the difference between the model outputs and data were iteratively minimized based on some statistical indicators. In this approach, kinetic parameters were calibrated by minimizing the root mean square error between measurements and calculated model results. Attempts to quantify all the parameters and coefficients and fit all the parameters simultaneously are not practical and usually result in a very low confidence in the estimated parameters. ADM1 is a highly parameterized model that contains several state variables, biochemical processes, stoichiometric and kinetic parameters (Batstone et al. 2002b). When ADM1 was implemented for sludge digestion, it was reported that disintegration rate of particulates, growth kinetics of acetogenotrophic and hydrogenotrophic methanogens and propionate utilizers were the most sensitive parameters on model outputs (Mendes et al. 2015; Montecchio et al. 2017). Therefore, only a limited number of parameters that have high impact on the results should be calibrated (Dochain and Vanrolleghem 2001; Poggio et al. 2016). In order to testify the accuracy and the predictive ability of the model, a validation study was performed by comparing the data obtained from a different operation period (360 days) to the calibrated model predictions.

Results and discussion

Model calibration

The calibration study was performed with the data obtained from the full-scale digester for a period of 200 days. A brief statistical evaluation of the data is presented in Table 1. During the period of the calibration, the digester was operated with a hydraulic retention time (HRT) of 40 days. The average volumetric loading rate (VLR) and COD removal efficiency of the digester were 1.32 kg COD/m3 day and 34%, respectively. The low COD removal efficiency of the digester was attributed to pre-stabilization of the secondary sludge in the main stream wastewater treatment plant operated as an extended aeration process with a high SRT. This situation was taken into account for ADM1 based COD fractionation of the composite matter (Table 2). Thus, the particulate inert fraction of substrate was increased to 49% indicating a low biodegradability. Astals et al. (2013) reported that particulate inert fraction of municipal wastewater sludge varied between 38 and 46% depending on the type of sludge and operating conditions of the treatment plant. Besides, high values for particulate inert fraction of waste activated sludge, over 40%, were reported in the study of Lubken et al. (2015). In order to ensure carbon and nitrogen balances in ADM1, the carbon and nitrogen content of the particulate organic matter was adjusted based on the influent characteristics according to Eqs. 1 and 2 (Ersahin et al. 2007; Gernaey et al. 2014). Balance of nitrogen and carbon contents is quite significant for a successful simulation of anaerobic digestion process (Ronner-Holm et al. 2012).

$$\begin{array}{*{20}l} {C_{XC} = f_{xI,XC} \cdot C_{inert} + f_{sI,XC} \cdot C_{inert} + f_{pr,XC} \cdot C_{aa} + f_{ch,XC} \cdot C_{su} + f_{li,XC} \cdot C_{li} } \hfill \\ {C_{XC} = 0.49 \cdot 0.03 + 0.01 \cdot 0.03 + 0.15 \cdot 0.03 + 0.16 \cdot 0.03125 + 0.19 \cdot 0.022 = 0.02868\;{\text{mole}}\;{\text{C/g}}\;{\text{COD}}} \hfill \\ \end{array}$$
(1)
$$\begin{array}{*{20}l} {N_{XC} = f_{xI,XC} \cdot N_{inert} + f_{sI,XC} \cdot N_{inert} + f_{pr,XC} \cdot N_{aa} } \hfill \\ {N_{XC} = 0.49 \cdot 0.002 + 0.01 \cdot 0.002 + 0.15 \cdot 0.007 = 0.00205\;{\text{mole}}\;{\text{N/g }}\;{\text{COD}}} \hfill \\ \end{array}$$
(2)

where CXC: carbon content of the composites, Cinert: carbon content of the inerts, Caa: carbon in amino acids and proteins, Csu: carbon in sugars, Cli: carbon in lipids, NXC: nitrogen content of the composites, Ninert: nitrogen content of the inerts, Naa: nitrogen in amino acids and proteins.

Table 1 Data from the full-scale anaerobic digester used for the model calibration [mean ± standard deviation (number of data)]
Table 2 Calibration results of the ADM1 based influent characterization parameters

Anaerobic digestion is a very complex process comprising of several stages such as disintegration and hydrolysis of particulate organics, acidogenesis, acetogenesis and methanogenesis. In order to mathematically describe the anaerobic decomposition processes, ADM1 uses several kinetic and stoichiometric parameters (Batstone et al. 2002b). The calibration of the ADM1 model parameters requires a deep understanding of the interaction between each process, functional microorganism and environmental conditions. Thus, only the most important parameters should be calibrated to improve the compatibility between measured data and model outputs. A minimum set of parameters, that were reported as the most sensitive parameters on simulation results (Souza et al. 2013; Chen et al. 2015; Barrera et al. 2015), were manually calibrated. The calibrated parameters and their initial values are given in Table 3. Disintegration rate of particulates, fractionation of particulate organics and kinetics of acetate, propionate and hydrogen utilizers were changed to fit the model outputs to the experimental results data. The disintegration rate is of particular importance when modeling the anaerobic digestion of waste activated sludge since disruption of bacteria cells and release of biodegradable organic matter is the rate limiting step in the process (Ramirez et al. 2009). The rest of the parameters were used as original ADM1 defaults (Batstone et al. 2002b).

Table 3 Default and calibrated values of model parameters

The simulation results obtained in the calibration study are depicted in Fig. 1. Figure 1 showed simulated and measured results of effluent COD, methane production, alkalinity and pH after calibration of the model. The dynamic performance of the digester in terms of the investigated parameters was simulated in good agreement with the measured data. Fluctuations in the alkalinity, and the variations in methane production in the first 100 days were predicted with the model quite reasonably. Methane production was slightly over predicted, especially between 100 and 200th days. This may be related with the changing sludge characteristics since the primary and waste activated sludge composition varied significantly due to several reasons such as changes in wastewater characteristics and mainstream treatment plant operation. This is reported as one of the most important difficulties in calibrating ADM1 since it requires an extensive substrate characterization that is not commonly practiced in full-scale reactors (Ozkan-Yucel and Gokçay 2010). Arnell et al. (2016) reported that biodegradable fraction of COD, and protein and lipid fractions of particulate biodegradable COD had significant effect on methane production and digester stability. Interactions between water and sludge streams and the dynamics in a wastewater treatment plant could be better simulated by plant-wide modeling as suggested by Mbamba et al. (2016).

Fig. 1
figure 1

Simulation results of the calibrated model: a Effluent COD concentration, b Methane gas production, c Alkalinity in the digester, d pH in the digester

Model validation

Evaluation of the agreement of the model responses with a different data set was performed in the validation study. The calibrated model was validated with a data set belonging to a different operation time (360 days), which was not used for the calibration study. During this period, the average HRT and VLR of the digester were 28 days and 1.63 kg COD/m3 day, respectively. Statistical evaluation of the data used for model validation is given in Table 4.

Table 4 Data from the full-scale anaerobic digester used for the model validation [mean ± standard deviation (number of data)]

The validation outputs and the measured data for effluent COD, methane production, alkalinity and pH parameters are presented in Fig. 2. In general, the calibrated model reasonably predicted the dynamic behavior of the full-scale anaerobic sludge digester in the validation period. The model could match the pH value in good agreement with the measured data. The mean absolute relative error for pH prediction was calculated as 1.9%, which can be regarded as high accuracy (Batstone and Keller 2003). However, the alkalinity in the digester was slightly overpredicted possibly due to overestimated cation concentrations in the influent. Better prediction of pH in comparison to alkalinity parameter was also reported by Derbal et al. (2009). Since alkalinity was more sensitive than pH, it was suggested to use alkalinity as a control parameter for operation of anaerobic digesters. Although the model could predict the dynamic profile of methane generation, there were some deviations from the measured data. These discrepancies might be due to the changes in the sludge composition fed to the digester. The mean absolute relative errors for COD, methane flow, and alkalinity predictions were calculated as 12.6%, 23.9, and 13.8, respectively; which can be regarded as medium accuracies (Batstone and Keller 2003). The biodegradability of the sludge, in particular inert fraction (fxI,xc), is strongly dependent on the operational SRT of the activated sludge systems (Jones et al. 2009). Mottet et al. (2010) reported that the waste activated sludge from extended aeration systems contained more lignin-, cellulose- and hemicellulose-“like” fractions than the sludge from treatment systems operated at short SRTs. Thus, the over- and underpredicted results might be related with the differences in the stabilization degree of the waste activated sludge in the mainstream wastewater treatment plant during calibration and validation periods.

Fig. 2
figure 2

Simulation results of the validated model: a Effluent COD concentration, b Methane gas production c Alkalinity in the digester, d pH in the digester

Anaerobic digestion of municipal sludge and biogas derived electricity production are crucial for improving the degree of energy self-sufficiency in municipal wastewater treatment plants. It is reported that the average biogas production of anaerobic digesters and self-supply of electricity of wastewater treatment plants in Germany are 26 L/PE day and 40%, respectively (DWA-A 216E 2015). The specific biogas production in the investigated full-scale digesters was calculated as 12 ± 4 L/PE day, which was remarkably low. Therefore, there seems to be an important potential for optimization of both main stream wastewater treatment process and anaerobic sludge digestion. Thus, modeling can serve as a valuable tool to improve the process performance and degree of energy self-sufficiency of the plant. For instance; positive impact of co-digestion approach on methane production and total operational cost of an anaerobic digester was presented by the plant-wide simulation study of Arnell et al. (2016).

Conclusions

ADM1 model was employed to describe the anaerobic digestion of mixed (primary and secondary) sludge from a municipal wastewater treatment plant under mesophilic conditions in a full-scale anaerobic digester. According to the statistical evaluation of the data obtained from the digester, the average COD removal efficiency was only 33%, which was quite low considering the high HRT (32 days) of the digester. This was related with the pre-stabilization of the secondary sludge in the main stream wastewater treatment plant operated as an extended aeration process. With the calibration of the most sensitive parameters, the model simulation outputs corresponded well with the measured data. The model was validated with the data acquired from a different operation period and it predicted the process performance reasonably well, especially in terms of effluent COD and pH. Some deviations observed in methane generation were attributed to the changes in the sludge composition depending on the stabilization degree of the waste activated sludge in the mainstream wastewater treatment plant. The overall results of this study demonstrated that the ADM1 model can be used as a useful tool to simulate the dynamic performance of the full-scale sludge digesters. Thus, it can be used as a tool to optimize sludge digesters in order to achieve more energy autonomous and sustainable municipal wastewater treatment plants.