Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2017 Aug 24;7:9390. doi: 10.1038/s41598-017-09313-y

A systematic model identification method for chemical transformation pathways – the case of heroin biomarkers in wastewater

Pedram Ramin 1,2,, Borja Valverde-Pérez 1, Fabio Polesel 1, Luca Locatelli 1, Benedek Gy Plósz 1,3,
PMCID: PMC5571155  PMID: 28839237

Abstract

This study presents a novel statistical approach for identifying sequenced chemical transformation pathways in combination with reaction kinetics models. The proposed method relies on sound uncertainty propagation by considering parameter ranges and associated probability distribution obtained at any given transformation pathway levels as priors for parameter estimation at any subsequent transformation levels. The method was applied to calibrate a model predicting the transformation in untreated wastewater of six biomarkers, excreted following human metabolism of heroin and codeine. The method developed was compared to parameter estimation methods commonly encountered in literature (i.e., estimation of all parameters at the same time and parameter estimation with fix values for upstream parameters) by assessing the model prediction accuracy, parameter identifiability and uncertainty analysis. Results obtained suggest that the method developed has the potential to outperform conventional approaches in terms of prediction accuracy, transformation pathway identification and parameter identifiability. This method can be used in conjunction with optimal experimental designs to effectively identify model structures and parameters. This method can also offer a platform to promote a closer interaction between analytical chemists and modellers to identify models for biochemical transformation pathways, being a prominent example for the emerging field of wastewater-based epidemiology.

Introduction

Models are mathematical representations of real systems that are able to predict their performance under defined conditions. Many chemical and biological systems can be described with stoichiometry and kinetic models. These include differential equations that describe the dynamics of chemical mass or concentrations according to transformation or transfer rates for substrates and products. To predict behaviour of a real system with as small deviation as possible, model structure selection and model parameters estimation should be performed in a systematic procedure referred to as model identification1.

Model parameters can be estimated through formal mathematical optimization problems by defining suitable decision variables, namely parameter estimates, objective functions and constraints on, e.g., model parameter values. For the calibration of biochemical pathway models, different types of optimization problems have been defined in systems biology2, such as metabolic flux balance analysis for bioprocess optimization3 or optimization for biochemical pathways and estimation of kinetic parameters4. Moreover, the optimization output (e.g., parameter estimates) could be subject to a significant variability as a result of optimization settings such as parameters uncertainty range. For instance, local optimization methods, such as the flexible Simplex method5, can lead to different parameter values depending on the initial guess given as input6.

Parameter identification approaches are used to assess uniqueness of a model parameters set, which would result in high prediction accuracy. Parameter identifiability for biological models has been widely studied79. Typical drawbacks are over-parametrization of models and poor data availability and quality. To overcome parameter identifiability issues the use of effective experimental design has been proposed such as increasing the number of monitored chemicals to improve the parameters identifiability10. Additionally, the tasks requires complex parameter estimation protocols, combining several steps, such as sensitivity analysis, parameter correlation, or iterative procedures7, 11, 12.

Most water quality models suffer from over-parametrization13. Therefore, more recently, a wealth of studies propose robust parameter estimation methodologies and uncertainty analysis in the areas of urban drainage14, 15 and wastewater treatment7, 11, 12, 16. Techniques proposed for uncertainty and identifiability assessment of model parameters include (i) methods based on local analysis (e.g., Brun et al.7), which have been demonstrated to be sensitive to the initial parameter value choice17, 18; and (ii) global methods, including Monte Carlo-based (MC) methods such as Generalized Likelihood Uncertainty Estimation (GLUE)19, or Markov chain- Monte Carlo (MCMC)20, 21 based methods. Following model calibration, it is suggested to assess the impact of parameter uncertainty on model outputs. This task can be carried out via MC simulations22, 23. However, the propagation of uncertainty between model parameters is not considered in any calibration protocols12, 24, 25.

Nevertheless, standardized model identification and calibration procedures are not reported for all biological systems or water quality models. For example, despite the increasing popularity of trace organic micropollutant fate models and their applications in wastewater treatment plants2629 and urban drainage models2932, model parameter uncertainty and parameter identifiability analysis is less well understood. Meanwhile, increased knowledge of transformation pathways has been achieved as a result of extensive experimental efforts33, 34. These challenges are particularly relevant when the combined identification of transformation pathways and estimation of transformation rates are required. More specifically, in the emerging field of wastewater-based epidemiology (WBE) – in which concentrations of drug biomarkers measured at sewer outlets are used to back-calculate drug consumption in urban areas – fate models have been only recently introduced31, 3537 to account for in-sewer transformation of drug biomarkers. In these approaches, back-calculation of drug consumption is directly linked to the in-sewer transformation rates of drug biomarkers during transport. Biased prediction of transformation rates or associated uncertainties can result in inaccurate drug consumption estimates.

Estimation of reliable uncertainties is even a bigger challenge once more complex fate models are used, such as those combining primary (e.g., fate of organic carbon fractions or microbial growth) and secondary metabolic processes (transformation of trace organic chemicals, e.g., drug biomarkers or pharmaceuticals)3840. A knowledge gap exists in identifying metabolic transformation pathways in complex biological matrices – a focal area chosen for the present study. For instance, cocaine in wastewater is transformed to benzoylecgonine and other metabolites, different from those undergoing through human metabolism. The task is even more challenging, for newly synthetized drugs, for which limited or no information about their human and in-sewer bacterial metabolism exists. The identification of major drug transformation pathways is necessary to close mass-balances in multi-level transformation routes. We note that measuring drug biomarkers, at the ng L−1 to µg L−1 range, is a labour-intensive and costly task, which involves quantitative analysis of target compounds that have to be selected prior to experiments. The selection should be performed through proper and efficient assessments.

The main goal of this study was to develop a model identification method for biochemical transformation pathways by employing sound parameter uncertainty propagation. The method was benchmarked against selected conventional techniques in terms of prediction accuracy, transformation pathway identification efficiency and parameter correlation. The method is applied to identify transformation pathways for the human biomarkers of the illicit drug heroin in wastewater, accounting for both biotic and abiotic transformations.

Results and Discussion

Model identification methodology

An overview of identification methodology is presented in Fig. 1a. The method involves three stages: (I) estimation of parameters at defined levels; (II) evaluation of model structure (i.e., kinetic and/or pathway) at each level; and (III) propagation of parameters uncertainty to the subsequent levels. The estimation methodology consists of n levels, defined according to assumed abiotic (A) and biotic (B) reaction pathways. The chemical pathways are represented by m chemicals (from X 1 to X m) transformed via abiotic (e.g., hydrolysis) and microbially-mediated reactions. Kinetic model parameters thus include m + 1 abiotic transformation rates, represented by k abio,1 to k abio,m (d−1) and kabio,2 (d−1), and m + 1 biotic transformation rate constants, represented by k bio,1 to k bio,m (L gTSS−1 d−1) and kbio,2 (L gTSS−1 d−1). To simplify the representation, the number of transformation rates for abiotic and biotic processes are considered the same.

Figure 1.

Figure 1

(a) Overview of the proposed identification method, referred to as Method 1 in this study, to estimate transformation rate constants in metabolic pathway models for both abiotic and biotic processes. The method includes n calibration levels for m number of metabolites (i.e., X 1 to X m) and m + 1 number of parameters for abiotic model (i.e., k abio,1 to k abio,m and kabio,2) and biotic model (i.e., k bio,1 to k bio,m and kbio,2). The method starts from Level 1 (abiotic) and ends at Level n (biotic). Each level includes 2–3 calibration steps. Arrows indicate the information flow, i.e., parameter uncertainty propagation, among the levels. Blue and orange arrows pass the information from abiotic (A) and biotic (B) model parameters, respectively. (b) Additional evaluation step between any two levels to assess the accuracy of model structure by detecting systematic deviations from experimental results.

Model parameters at each level are considered to be either primary, subsidiary or combinatorial. Primary parameters are the ones introduced at any level for the first time by employing priors in the form of even parameter probability distributions set with arbitrary or e.g., literature-informed ranges. Subsidiary parameters are the ones previously estimated at upstream levels and which are relevant to parameter estimation at downstream levels in terms of uncertainty propagation. Combinatorial parameters are similar to primary ones, and are associated with chemicals, exhibiting two transformation pathways. In other words, combinatorial parameters define the overall transformation rate of the chemical and are equal to the sum of transformation rates to each product. Each of the transformation rates are turned into primary parameters in the following level. For instance, from the example shown in Fig. 1, at level 1(A) k abio,1 (arbitrary boundaries, uniform distribution) is a primary parameter. At level 2 (A) previously estimated k abio,1 (known boundaries and distribution inferred at level 1) is a subsidiary parameter and “k abio,2 + kabio,2” (arbitrary boundaries, uniform distribution) is a combinatorial parameter. At level 3 (A), k abio,1 (boundaries and distribution inferred at level 1) remains as subsidiary parameter whilst k abio,2 (known upper boundary inferred from previous combinatorial parameter estimation, uniform distribution), kabio,2 (known upper boundary inferred similar to k abio,2, uniform distribution) and k abio,3 (arbitrary boundaries, uniform distribution) are all primary parameters, in case there is no extra branch for X 3.

Each level consists of a three-step parameter estimation approach: (i) Prior settings: prior model parameter distribution ranges are defined by either considering uniform distribution for primary parameters or a distribution function for subsidiary parameters, as indicated in Fig. 1; (ii) Global optimization: global optimum parameter values are estimated using an iterative/adoptive algorithm, e.g., DREAM(ZS) 41 in present study; (iii) Post processing: The range of uncertainty and type of distribution of posterior primary parameters are determined, Supplementary Table S3. Once a unique set of parameter is estimated, deviations of model predictions from measurements are assessed. In the case of systematic error in model prediction, the structure of kinetic model (e.g., second-order or of first-order kinetics) and the chemical transformation pathways (e.g., new transformation products) are re-evaluated (Fig. 1b). This iterative approach ensures that uncertainty of parameters would only propagate when the model structure is adequately described.

In Fig. 1, the arrows represent the information flow. Whilst the distribution from abiotic to biotic model is considered for all calibration levels (blue arrows), the biotic calibration levels only distribute the information (orange arrows) within the calibration levels for biotic processes (e.g., the information does not pass from Level 1(B) to Level 2(A)). Although Fig. 1 presents the methodology for a simple chain pathway, the method can be applied for multi-branched pathways including parallel or consecutive transformations.

Case study of heroin and codeine transformation pathways

The transformation pathway for heroin (HER) and its human metabolites 6-monoacetylmorphine (6-MAM), morphine (MOR), and morphine-3-β-D-glucuronide (MORG), and codeine (COE) and its human metabolite norcodeine (NCOE) are depicted in Fig. 2. The pathway model was derived based on former studies38, 42 employing pathways primarily based on human metabolism, including the transformation of COE to MOR. Following the kinetic model calibration, the overall transformation pathway was extended with two additional pathways/branches for HER and MORG (dashed arrows). A kinetic model based on Activated Sludge Modelling framework for Xenobiotics (ASM-X)31 was used to describe the drug transformations (Supplementary Table S1). In the present study, the assumption of accurate kinetic model to predict removal or formation of each individual drug biomarkers, has simplified the task of identification of model structure to only pathway identification.

Figure 2.

Figure 2

The identified transformation pathway of heroin (HER) and codeine (COE) drug biomarkers, including abiotic and biotic processes. Posterior distribution of estimated parameters (histograms) for proposed methodology – Method 1 (in red), Method 2 (dotted blue line, upper X axis) and Method 3 (solid black line) at 4 different calibration levels. For Method 2 and 3, distributions are shown with linear interpolations between pairs of distribution data points. Abbreviations: T.P. - unknown transformation product (TP); A - Abiotic model, B - Biotic model. Stoichiometry and process rates are according to transformation pathway of HER and COE drug biomarkers and are shown in the Supplementary Table S1. Solid arrows are pathways identified from literature and new identified pathways are shown with dashed arrows.

New pathways were initially hypothesized by checking the mass balances in the pathway at any given time (i.e., the amount of transformation of a compound to another should correspond to formation of the second compound). To apply the model identification methodology, the concentration profiles of these chemicals from a targeted batch experiment in wastewater were used38.

Estimation of transformation rates for the case study

Applying the novel parameter estimation method to the case of heroin and its biomarkers resulted in a four-level model identification problem, including seven abiotic model parameters (A) and nine biotic model parameters (B) (Fig. 2). As compared to the pathway elucidated in Fig. 1, this pathway has an unequal number of k abio and k bio parameters (as a result of pathways adopted from human metabolism and also two new additional pathways). The posterior distributions (histograms) of estimated primary parameters (Fig. 2; Supplementary Fig. S1) are presented along with the transformation pathways, thereby indicating the information flow direction. Four additional histograms for combinatorial parameters are also shown separately for COE (abiotic and biotic), HER (biotic) and MORG (biotic) (Fig. 2). Model calibration was initiated by the estimation of k abio for chemicals not formed from other chemicals – HER and COE (Fig. 2, denoted by 1(A)). Below, each identification level is briefly described, with ranges and distributions of all parameters reported in Supplementary Table S3.

Level 1(A). To estimate k abio,HER, a uniform probability distribution and an arbitrary range were considered as prior information. Measured concentrations of MORG during abiotic experiments showed no transformation, hence k abio,MORG was set to zero. In parallel, combinatorial parameter k abio,COE (k abio,COE,1 + k abio,COE,2) was estimated.

Level 2(A) and 2(B). This level includes the estimation of the primary abiotic parameter for 6MAM (k abio,6MAM), involving the subsidiary parameter, k abio,HER. Additionally, for COE and NCOE, the estimation involves (k abio,COE,1, k abio,COE,2 and k abio,NCOE) that includes the subsidiary parameter k abio,COE. Biotic combinatorial parameters for overall MORG biotransformation, k bio,MORG (k bio,MORG,1 + k bio,MORG,2), overall HER biotransformation, k bio,HER (k bio,HER,1 + k bio,HER,2), and overall COE biotransformation, k bio,COE (k bio,COE,1 + k bio,COE,2), were also estimated at this level.

Level 3(A) and 3(B). Abiotic primary parameter, k abio,MOR, and the rest of abiotic model parameters were considered subsidiary. Biotic primary parameters were also estimated (i.e., k bio,HER,1, k bio,HER,2 and k bio,6MAM). Additionally, the biotic primary parameters k bio,COE,1, k bio,COE,2 and k bio,NCOE were estimated. Relevant subsidiary parameters from previous levels were considered at each estimation.

Level 4(B). The remaining three biotic model parameters, i.e., k bio,MORG,1, k bio,MORG,2, and k bio,MOR, were estimated using all the other model parameters as subsidiary.

Comparison with conventional model parameter estimation methods

Two parameter estimation methods, referred to as Method 2 and Method 3, were used to benchmark Method 1, and to assess the impact of different uncertainty propagation approaches on parameter estimates.

Method 2: The method, also referred to as the lumped approach, comprises the estimation of all model parameters using a single objective function, in which all seven k abio were estimated simultaneously using only the abiotic experimental data and all nine k bio were estimated simultaneously using only the biotic experimental data. Examples of the application of Method 2, whereby a parameter subset is calibrated to fit several experimental data series, are common in literature6, 12, 16, 24, 43. To apply this method in this case study, we propagated uncertainties from the abiotic model to biotic ones (i.e., by employing abiotic parameters as subsidiary). Therefore we considered the 95% credibility interval of the abiotic estimated parameters as uncertainty range for the estimation of all nine k bio corresponding to the biotic model.

Method 3: The method consisted of the estimation of parameters in a sequential order, similar to Method 1. However, the propagation of parameter uncertainties was omitted, i.e., at each level, fixed values of the already estimated parameters were used as priors (see, e.g., Insel et al.44). Thus, all parameters in Method 3 are treated as primary. This is a common approach for the calibration of, e.g., nitrous oxide (N2O) production models, in which parameters only related to N2O are estimated and the remaining parameters are fixed45. However, it has been demonstrated that by ignoring the uncertainties introduced by fixing parameter values may lead to significant underestimation of the uncertainty in emissions of N2O46.

The histograms from Method 1 and Method 3 (Fig. 1, red bars and solid black lines) show that for most parameters the posterior distribution are skewed (e.g., significant positive skewness for MOR (B1)). A comparison of the estimated parameter values (median) and uncertainty of parameter estimates reported as 95% credibility interval is presented in Fig. 3. These results indicate comparable range and similar distribution for parameter sets obtained with Method 1 and Method 3. This is not the case for most of the parameters subsets obtained using Method 2, which leads to comparably higher parameter values and predominantly wider uniform distributions. We note, however, that the wider parameter ranges are a result of the wider boundaries considered for Method 2 (Fig. 2), thereby ensuring no restriction of solution space that could potentially include a global optimum. Using Method 2, the uniform posterior distribution shows poor parameters identifiability as different combination of parameter values could result in similar prediction accuracy.

Figure 3.

Figure 3

Values of estimated parameters — k abio (d−1) in abiotic model and k bio (L gTSS−1 d−1) in biotic model—using Method 1 (proposed methodology), Method 2 (lumped approach) and Method 3 (no propagation of uncertainties). Marks are estimated values (median) and error bars represent 95% credibility interval (lower bound, upper bound). Abbreviation: T.P. = transformation product(s).

The discrepancy between ranges of parameter estimates obtained using Method 1 and Method 3 is at maximum for k bio,6MAM in which range of this parameter from Method 3 is more than twice of the width of the range estimated by Method 1. However, the range of k bio,COE,2 estimated by Method 1 is almost twice of that estimate by Method 3. In addition, for some parameters the posterior distribution from Method 1 and Method 3 are different (Fig. 2), especially for the primary parameters that are estimated based on a combinatorial parameter e.g., k abio,COE,1 and k abio,COE,2 at level 2.

Following parameter estimation, the impact of parameter uncertainty on model outputs (i.e., drug concentrations) was assessed through uncertainty analysis using Monte Carlo simulations (Fig. 4). These results suggest that Method 2 can lead to estimates with higher uncertainties for both abiotic and biotic model parameters. Notably, estimated parameter values and associated uncertainties obtained using Method 2 are highly dependent on the choice of the parameter ranges used in the optimization, i.e., higher ranges would result in higher estimates calculated as the mean of often uniform posterior distributions.

Figure 4.

Figure 4

Measured and simulated biomarker concentration data with uncertainty bands obtained using Method 13. Markers are measured data and lines are simulation results. The shaded area reflects 95% credibility interval of model prediction (red area and full line: Method 1, grey area and dashed line: Method 2, blue area and dotted line: Method 3).

The accuracy of model predictions derived using the three different calibration methods was assessed using statistical tests (Table 1). Values obtained for the Root Mean Squared Error (RMSE) and the Mean Absolute Error (MAE) are related to model prediction accuracy: the lower the RMSE and MAE are the more accurate the model prediction is. Additionally, the average relative Interval Length to Coverage of measurements by prediction bands (ILTC) was used for accuracy assessment. Lower ILTC is an indication of lower prediction uncertainty together with higher coverage of measured values by uncertainty band. Results obtained using these statistical tests (Table 1) suggest that, for the abiotic and biotic model, Method 2 was the least accurate for all parameters, reporting, on average, 8 times higher RMSE and MAE values and 5 times higher ILTC values compared to Method 1 and Method 3. We note that comparably high coverage of measurements were obtained using Method 2, which does not necessary translate into high accuracy. Results obtained for HER using Method 1 showed similar parameter estimation accuracy to that obtained with Method 3. For abiotic model, higher accuracy was obtained using Method 1 for NCOE and MOR. Interestingly, Method 3 showed slightly higher accuracy for COE and 6MAM compared to Method 1 for the abiotic model. As for the biotic model, the prediction accuracy obtained using Method 1 and Method 3 showed comparable performance except for MOR and 6-MAM, for which Method 1 resulted in higher accuracy, and for MORG, Method 3 showed a better performance.

Table 1.

Assessment of simulation accuracy of models calibrated using Methods 13. Abbreviations: RMSE, root mean squared error; MAE, mean absolute error; ILTC, interval length to coverage. For better comparison among the three methods following color code is used: boldface – high accuracy; underlining- moderate accuracy; italic type – low accuracy.

graphic file with name 41598_2017_9313_Tab1_HTML.jpg

To assess the significance of uncertainty propagated via subsidiary parameters to primary parameter estimates, a global sensitivity analysis (GSA) was performed according to standardized regression coefficients (SRC) method47 (Supplementary Fig. S2). These results show the importance of propagated uncertainty at each calibration level. It was found that less uncertainty propagation can be expected from the subsidiary parameters located at the further upstream of a calibration level. Nevertheless, since in present case study all chemicals in the pathway and their formation or transformation kinetics are required for back-calculation in WBE studies, no parameter subset selection was performed based on GSA results, common practice in most calibration protocols8.

We note that the choice of SSE as objective function may have had significant impact on the convergence of the optimization algorithm for parameter estimation as we used equal weight factors in all methods. There are methods proposed to assess the impact of weights combinations on optimization resuts48. The effect of selection of the objective function on parameter estimation is not further analysed in this study, as it has been previously reported by Hauduc et al.49.

Analysis of parameter correlation

To assess the impact of the parameter estimation methods on parameter collinearity, correlation analysis was performed on the posterior parameter distributions using Methods 13 (Supplementary Figs S35). According to the linear correlation coefficients (LCC) obtained and considering a collinearity threshold for identifiability to be 0.750, all estimated parameters from all methods were identifiable except for parameters related to the chemicals with two transformation branches in Method 3 (i.e., HER and MORG transformation pathways, Fig. 2). Figure 5 shows the collinearity index for those parameters that are highly correlated according to Method 3 together with the collinearity index from Method 1 and 2 for further comparison. The sign of correlations indicates whether the parameters are positively or negatively correlated.

Figure 5.

Figure 5

Linear correlation coefficients for model parameters following parameter estimation in calibration Method 13. Correlation threshold for identifiability defined at 0.7 according to Frutiger et al.50. Positive and negative correlations are designated with + and − respectively.

Results suggest that Method 1 typically resulted in increased values of LCC compared to Method 2, which results from incorporating uncertainties propagated from other upstream model parameters. Using Method 3 maintained a good model-fit for the corresponding chemicals (HER abiotic; COE, NCOE, abiotic and biotic) by fixing the sum of kinetic parameters from each branch (a hard optimization constraint, e.g., k bio,HER,1 = k bio,HER − k bio,HER,2). However, perfect inverse linear relationship (correlation: −1) was obtained for the transformation rate constants for abiotic HER as well as for abiotic and biotic COE, NCOE transformation, implying that k bio,HER,1 can be compensated by decreasing k bio,HER,2. This non-identifiability problem did not appear in the Method 1 by optimizing kinetic parameter of each transformation at the same time, whilst the optimization is constrained to maintain the sum of the primary parameters within the 95% credibility interval of combinatorial parameter (a soft optimization constraint). All parameters obtained using Method 2 showed very weak correlations, as the optimizer could not converge to any particular optimal point.

Identifying new transformation pathways

The transformation pathway network illustrated in Fig. 2 includes two newly identified pathways for HER and MORG via biocatalysis in wastewater as compared to human metabolism42, 51. These pathways were identified using mass balance calculations over the transformation of 6MAM and MOR, and were compared with available rule-based data base52. If the biomarker transformation pathways in wastewater would follow human metabolism, i.e., no additional transformation for HER and MORG, a significant discrepancy would be obtained between measured and predicted data (Fig. 6). Only based on measured data, one cannot infer the existence of another pathway with sufficient evidence, since net accumulation of chemicals depends on both transformation and formation rates. Hence, one way to assess whether an additional pathway exist, is to estimate transformation rates before pathway modification and assess the uncertainty of transformation rates on predictions. Figure 6 attempts to assess if the information on additional pathway can be inferred using Methods 13.

Figure 6.

Figure 6

Biomarker transformation pathway identification considering human metabolism as prior knowledge. Pathways for HER and 6MAM (a) and MORG, MOR (b) are highlighted. Simulation results are demonstrated for highlighted chemicals using calibration Method 13. Posterior parameter probability distributions (i.e., histograms) were obtained using Method 1 (in red), Method 2 (dotted blue line, upper X axis) and Method 3 (solid black line).

If 6MAM is the sole transformation product of HER, rapid transformation of HER should be followed by the formation of 6MAM in the first 3 hours of experiment. However, the measurements for 6MAM do not show accumulation (Fig. 6a). Model predictions for MORG and MOR simulation results following calibration using Method 1 and Method 3 showed rapid net formation of MOR during the simulation time (Fig. 6b). However, this trend does not agree with measured data. In contrary, Method 2 suggests very high removal rate. Figure 6 additionally reports the distribution of posterior parameter values obtained using Methods 13. Histograms indicate that parameters estimated using Method 1 and 3 are identifiable (clear peak shape), whilst Method 2 failed to show any particular distribution. Following this assessment, the model structure (i.e., the pathways) was modified to eliminate the systematic deviation imposed by inaccurate pathway model.

By comparing parameter ranges from Method 1 and Method 3 (Fig. 3), for the newly identified pathways, it emerges that Method 3 resulted in 14% higher uncertainty range for transformation rate k bio,HER,2, whilst 28% higher uncertainty range was estimated for k bio,MORG,2 using Method 1. It is reported that for identifiable parameters, the relative parameter estimation error, such as 95% confidence interval, should be less than 50% of an estimate50. Based on this criterion, none of the parameters related to the new pathways were identifiable i.e., lowest confidence interval was 52.5% (for lower bound) for k bio,HER,2 using Method 1.

High uncertainty ranges reported in Fig. 3 correspond to significant skewedness of the histograms. Nevertheless, the two additional pathways found in this study are in agreement with existing literature, in which incomplete deconjugation of glucuronide metabolites to the respective parent substance was shown in wastewater for morphine53, lamotrigine54 and sulfamethoxazole55.

Outlook

The main objective of this study was to develop an identification method for reaction kinetics and multi-branched chemical transformation pathways models. The proposed approach employs uncertainty propagation between model parameters. Based on the results obtained, the prediction accuracy, transformation pathway identification and parameter identifiability, the benefits of sound uncertainty propagation using Method 1 seem to be significant compared to the other two methods. The results show that sound uncertainty propagation may lead to even more accurate model prediction.

It is not certain that model parameters can be estimated unambiguously, if the dynamic model is only partially observable (e.g., undetermined concentrations in the pathway) due to technical limitations56. Therefore, modifying existing transformation pathway models to find pathway gap is often necessary. Results obtained in this study indicate that the proposed parameter estimation method can be useful to identify transformation pathway branching and the associated reaction kinetics. New transformation pathways proposed based on the method should be now confirmed by analytical chemists by characterizing the transformation product.

As for the practical aspects, to effectively select biomarkers to be used in targeted experiments, identifying transformation pathways of xenobiotics in complex biological matrices, such as wastewater, has a particular relevance for WBE57. The present study can serve as an input for optimal experimental design (e.g., stability tests or pathway identification), as currently there is little information available to address this issue. It can be used to assess the inclusion of all the necessary chemicals presented in the pathway, which would facilitate the identification of model parameters. Moreover, estimated transformation rates could be helpful to re-define sampling strategy during batch experiment. For reliable back-calculation of substance (e.g., drugs) consumption rates in urban areas, WBE engineering approaches will be required to employ biokinetics and transport models. In this context, biased kinetic rate uncertainty can lead to unreliable predication uncertainty. Overall, our method can fill such a gap by providing a practical approach to identify potential transformation pathways and transformation kinetics models. Model validation, which is an essential step to verify the accuracy of a calibrated model, is not presented here as part of the model identification procedure. In fact if the model fails to be validated with an independent dataset, the experimental design, model structure analysis and model parameters should be evaluated or estimated again. Nevertheless, model validation results for 6MAM have already been presented in our previous study38. It should be noted that, back-calculation for WBE studies is performed at sewer catchment level, and this requires identification of a reactive transport sewer model to reliability estimate chemicals conversions in the sewer during their hydraulic residence time. Hence, inclusion of uncertainties related to sewer predictions should be also accounted for36.

Methods

Parameter estimation method

In this study, a method is developed to propagate information through transformation pathway levels, including a priori parameter probability ranges and distribution. For Level 1, a uniform prior distribution is assumed with an arbitrary parameter range based on preliminary assessments. For subsequent levels, the 95%-credibility interval of the parameter estimates identified at each Level (e.g., k abio,HER,1 at Level 1(A 1)) is considered as the uncertainty range for all subsequent Levels (e.g., Level 2(A) 1 and Level 2(B 1)). The distributions of posterior parameters were identified by testing different distribution functions including beta, birnbaumsaunders, exponential, extreme value, gamma, generalized extreme value, generalized pareto, inversegaussian, logistic, loglogistic, lognormal, nakagami, normal, rician, tlocationscale and Weibull distributions. To identify probability distributions, the closest fit was found using allfitdist in Matlab R2014a (Mathworks, US).

Optimization method

Model parameters were estimated using the Bayesian optimization method Differential Evolution Adaptive Metropolis (DREAM(ZS))41, employing the normalized sum of squared error (SSE) as the objective function:

SSE=i=1nj=1m(yˆi,jyi,jyˆi,j,maxyˆi,j,min)2 1

where n is the number of measurements series, m the number of the data points in each series, yˆ is the measured data and y the model predictions. yˆi,jmax and yˆi,jmin indicate maximum and minimum of measurements, respectively. Objective function included all the model outputs (i.e., simulated concentrations) and measured values up to each level. DREAM(ZS) was employed using 5 Markov chains in parallel with 20000–50000 maximum number of function evaluation for each estimation. Following optimization, only the posterior parameters that resulted in good agreement between model output and measured data were selected for further analysis based on Theil inequality coefficient (TIC), with acceptable threshold of 0.358. Besides the DREAM algorithm - used in this study, other optimization approaches can also be used to estimate model parameters such, e.g., Latin Hypercube Sampling based Simplex (LHSS)6.

Benchmarking the model identification method developed

We benchmarked the developed approach (Method 1) by comparing it with two methods based on literature studies:

Method 2: Parameters are estimated in a concerted way and by omitting a priori information regarding the range and the parameter probability distribution – also referred to as the “lumped” estimation method. To estimate the biotic model parameters, a priori information related to the abiotic parameter range is considered as 95% credibility interval of already estimated ones.

Method 3: Parameter values are estimated using a step-wise approach (similar as Method 1), whereby parameter values in upstream levels are fixed when estimating parameters at downstream levels.

Comparison between different model calibration procedures was performed based on the statistical tests and criteria adopted from other studies59, 60: (i) goodness-of-fit, using the root mean squared error (RMSE) and mean absolute error (MAE); (ii) a measure to combine model prediction uncertainty and coverage of measurements. This is defined as Length to Coverage of measurements by prediction bands (ILTC). This measure is the ratio of average relative interval length (ARIL)59 and coverage of measurements by model uncertainty bands15; and (iv) parameter identifiability via parameter uncertainty and parameter correlation analysis50.

Case study of HER and COE drug biomarkers

For the development of the identification method, the transformations of HER and COE drug biomarkers and their respective human metabolites, 6MAM, MORG, MOR and NCOE were used as case study. Specific details regarding the experimental assessment and process model development are presented by Ramin et al.38. Briefly, the fate of drug biomarkers (partitioning to solids, abiotic and biotic transformation) was assessed in water and untreated wastewater by means of targeted batch experiments (14.3 °C, pH = 8.8) under anaerobic conditions. The chemical transformation kinetics were described by identifying process models (Supplementary Table S1) based on the Activated Sludge Modelling framework for Xenobiotics (ASM-X)31. The model includes kinetic parameters, namely abiotic transformation rates, k abio (d−1), and biotic transformation rate constants, k bio (L gTSS d−1), for each selected drug biomarkers. Fate model and model parameters are presented in Supplementary Tables S1 and 2.

Electronic supplementary material

Acknowledgements

This study was supported by the European Union’s Seventh Framework Programme for research, technological development and demonstration [grant agreement 317205, the SEWPROF MC ITN project]. Borja Valverde-Pérez thanks the Integrated Water Technology (InWaTech) project (http://www.inwatech.org) for the financial support.

Author Contributions

P.R., B.V.P. and B.G.P. developed the methodology. Model and method implementations were performed by P.R. supported by F.P. and L.L. contributed to analysis tools. P.R. wrote the paper and all authors reviewed the manuscript.

Competing Interests

The authors declare that they have no competing interests.

Footnotes

Electronic supplementary material

Supplementary information accompanies this paper at doi:10.1038/s41598-017-09313-y

Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Contributor Information

Pedram Ramin, Email: pear@kt.dtu.dk.

Benedek Gy. Plósz, Email: b.g.plosz@bath.ac.uk

References

  • 1.Gujer, W. System analysis for water technology (Springer, 2008).
  • 2.Banga, J. R. Optimization in computational systems biology. BMC Syst. Biol. 2 (2008). [DOI] [PMC free article] [PubMed]
  • 3.Varma A, Palsson BO. Metabolic Flux Balancing: Basic Concepts, Scientific and Practical Use. Bio/Technology. 1994;12:994–998. doi: 10.1038/nbt1094-994. [DOI] [Google Scholar]
  • 4.Mendes P, Kell DB. Non-linear optimization of biochemical pathways: Applications to metabolic engineering and parameter estimation. Bioinformatics. 1998;14:869–883. doi: 10.1093/bioinformatics/14.10.869. [DOI] [PubMed] [Google Scholar]
  • 5.Nelder JA, Mead R, Nelder BJA, Mead R. A simplex method for function minimization. Comput. J. 1965;7:308–313. doi: 10.1093/comjnl/7.4.308. [DOI] [Google Scholar]
  • 6.Wágner DS, et al. Towards a consensus-based kinetic model for green microalgae – the ASM-A. Water Res. 2016;103:485–499. doi: 10.1016/j.watres.2016.07.026. [DOI] [PubMed] [Google Scholar]
  • 7.Brun R, Siegrist H, Gujer W, Reichert P. Practical identi ability of ASM2d parameters—systematic selection and tuning of parameter subsets. Water Res. 2002;36:4113–4127. doi: 10.1016/S0043-1354(02)00104-5. [DOI] [PubMed] [Google Scholar]
  • 8.Ruano MV, Ribes J, De Pauw DJW, Sin G. Parameter subset selection for the dynamic calibration of activated sludge models (ASMs): Experience versus systems analysis. Water Sci. Technol. 2007;56:107–115. doi: 10.2166/wst.2007.605. [DOI] [PubMed] [Google Scholar]
  • 9.Perez-Garcia, O., Lear, G. & Singhal, N. Metabolic network modeling of microbial interactions in natural and engineered environmental systems. Front. Microbiol. 673 (2016). [DOI] [PMC free article] [PubMed]
  • 10.Chandran K, Smets BF. Optimizing experimental design to estimate ammonia and nitrite oxidation biokinetic parameters from batch respirograms. Water Res. 2005;39:4969–4978. doi: 10.1016/j.watres.2005.10.001. [DOI] [PubMed] [Google Scholar]
  • 11.Sin G, Van Hulle SWH, De Pauw DJW, Van Griensven A, Vanrolleghem PA. A critical comparison of systematic calibration protocols for activated sludge models: A SWOT analysis. Water Res. 2005;39:2459–2474. doi: 10.1016/j.watres.2005.05.006. [DOI] [PubMed] [Google Scholar]
  • 12.Mannina G, Cosenza A, Vanrolleghem PA, Viviani G. A practical protocol for calibration of nutrient removal wastewater treatment models. J. Hydroinformatics. 2011;13 doi: 10.2166/hydro.2011.041. [DOI] [Google Scholar]
  • 13.Omlin M, Reichert P. A comparison of techniques for the estimation of model prediction uncertainty. Ecol. Modell. 1999;115:45–59. doi: 10.1016/S0304-3800(98)00174-4. [DOI] [Google Scholar]
  • 14.Deletic A, et al. Assessing uncertainties in urban drainage models. Phys. Chem. Earth. 2012;42–44:3–10. doi: 10.1016/j.pce.2011.04.007. [DOI] [Google Scholar]
  • 15.Dotto CBS, et al. Comparison of different uncertainty techniques in urban stormwater quantity and quality modelling. Water Res. 2012;46:2545–2558. doi: 10.1016/j.watres.2012.02.009. [DOI] [PubMed] [Google Scholar]
  • 16.Sin G, Pauw DJWDe, Weijers S, Vanrolleghem PA. An Efficient Approach to Automate the Manual Trial and Error Calibration of Activated Sludge Models. Biotechnol. Bioeng. 2007;100:516–528. doi: 10.1002/bit.21769. [DOI] [PubMed] [Google Scholar]
  • 17.Li B, Stenstrom MK. Practical identifiability and uncertainty analysis of the one-dimensional hindered-compression continuous settling model. Water Res. 2016;90:235–246. doi: 10.1016/j.watres.2015.12.034. [DOI] [PubMed] [Google Scholar]
  • 18.Brockmann D, Rosenwinkel KH, Morgenroth E. Practical identifiability of biokinetic parameters of a model describing two-step nitrification in biofilms. Biotechnol. Bioeng. 2008;101:497–514. doi: 10.1002/bit.21932. [DOI] [PubMed] [Google Scholar]
  • 19.Beven K, Beven K, Freer J, Freer J. Equi®nality, data assimilation, and uncertainty estimation in mechanistic modelling of complex environmental systems using the GLUE methodology. J. Hydrol. 2001;249:11–29. doi: 10.1016/S0022-1694(01)00421-8. [DOI] [Google Scholar]
  • 20.Martin C, Ayesa E. An Integrated Monte Carlo Methodology for the calibration of water quality models. Ecol. Modell. 2010;221:2656–2667. doi: 10.1016/j.ecolmodel.2010.08.008. [DOI] [Google Scholar]
  • 21.Sharifi S, Murthy S, Takács I, Massoudieh A. Probabilistic parameter estimation of activated sludge processes using Markov Chain Monte Carlo. Water Res. 2014;50:254–266. doi: 10.1016/j.watres.2013.12.010. [DOI] [PubMed] [Google Scholar]
  • 22.Sin G, Gernaey KV, Lantz AE. Good modelling practice (GMoP) for PAT applications: Propagation of input uncertainty and sensitivity analysis. Biotechnol. Prog. 2009;25:1043–1053. doi: 10.1002/btpr.166. [DOI] [PubMed] [Google Scholar]
  • 23.Joss A, et al. Biological degradation of pharmaceuticals in municipal wastewater treatment: Proposing a classification scheme. Water Res. 2006;40:1686–1696. doi: 10.1016/j.watres.2006.02.014. [DOI] [PubMed] [Google Scholar]
  • 24.Zhu A, et al. A novel protocol for model calibration in biological wastewater treatment. Sci. Rep. 2015;5 doi: 10.1038/srep08493. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Vanrolleghem, P. A. et al. A comprehensive model calibration procedure for activated sludge models. Proc. 76th Annu. WEF Conf. Expo. Los Angeles 1115 Oct. (2003).
  • 26.Plósz BG, et al. Modelling micro-pollutant fate in wastewater collection and treatment systems: Status and challenges. Water Sci. Technol. 2013;67:1–15. doi: 10.2166/wst.2012.562. [DOI] [PubMed] [Google Scholar]
  • 27.Polesel F, Andersen HR, Trapp S, Plósz BG. Removal of antibiotics in biological wastewater treatment systems – A critical assessment using the Activated Sludge Modelling framework for Xenobiotics (ASM-X) Environ. Sci. Technol. 2016;50:10316–10334. doi: 10.1021/acs.est.6b01899. [DOI] [PubMed] [Google Scholar]
  • 28.Torresi E, et al. Biofilm thickness influences biodiversity in nitrifying MBBRs – Implications on micropollutant removal. Environ. Sci. Technol. 2016;50:9279–9288. doi: 10.1021/acs.est.6b02007. [DOI] [PubMed] [Google Scholar]
  • 29.Snip LJP, Flores-Alsina X, Plósz BG, Jeppsson U, Gernaey KV. Modelling the occurrence, transport and fate of pharmaceuticals in wastewater systems. Environ. Model. Softw. 2014;62:112–127. doi: 10.1016/j.envsoft.2014.08.007. [DOI] [Google Scholar]
  • 30.Vezzaro L, et al. A model library for dynamic transport and fate of micropollutants in integrated urban wastewater and stormwater systems. Environ. Model. Softw. 2014;53:98–111. doi: 10.1016/j.envsoft.2013.11.010. [DOI] [Google Scholar]
  • 31.Plósz BG, Reid MJ, Borup M, Langford KH, Thomas KV. Biotransformation kinetics and sorption of cocaine and its metabolites and the factors influencing their estimation in wastewater. Water Res. 2013;47:2129–2140. doi: 10.1016/j.watres.2012.12.034. [DOI] [PubMed] [Google Scholar]
  • 32.Snip LJP, et al. Generation of synthetic influent data to perform (micro)pollutant wastewater treatment modelling studies. Sci. Total Environ. 2016;570:278–290. doi: 10.1016/j.scitotenv.2016.05.012. [DOI] [PubMed] [Google Scholar]
  • 33.Rubirola A, Llorca M, Rodriguez-mozaz S, Casas N. Characterization of metoprolol biodegradation and its transformation products generated in activated sludge batch experiments and in full scale WWTPs. Water Res. 2014;63:21–32. doi: 10.1016/j.watres.2014.05.031. [DOI] [PubMed] [Google Scholar]
  • 34.Gulde R, et al. Systematic Exploration of Biotransformation Reactions of Amine- Containing Micropollutants in Activated Sludge. Environ. Sci. Technol. 2016;50:2908–2920. doi: 10.1021/acs.est.5b05186. [DOI] [PubMed] [Google Scholar]
  • 35.Bisceglia KJK, Lippa KA. Stability of cocaine and its metabolites in municipal wastewater - the case for using metabolite consolidation to monitor cocaine utilization. Environ. Sci. Pollut. Res. 2014;21:4453–4460. doi: 10.1007/s11356-013-2403-5. [DOI] [PubMed] [Google Scholar]
  • 36.Ramin, P. Modelling Illicit Drug Fate in Sewers for Wastewater-Based Epidemiology, PhD Thesis. (Technical University of Denmark, 2016).
  • 37.McCall A-K, et al. Influence of different sewer biofilms on transformation rates of drugs. Environ. Sci. Technol. 2016;50:13351–13360. doi: 10.1021/acs.est.6b04200. [DOI] [PubMed] [Google Scholar]
  • 38.Ramin P, et al. Transformation and sorption of illicit drug biomarkers in sewer systems: understanding the role of suspended solids in raw wastewater. Environ. Sci. Technol. 2016;50:13397–13408. doi: 10.1021/acs.est.6b03049. [DOI] [PubMed] [Google Scholar]
  • 39.Plósz BG, Leknes H, Thomas KV. Impacts of competitive inhibition, parent compound formation and partitioning behavior on the removal of antibiotics in municipal wastewater treatment. Environ. Sci. Technol. 2010;44:734–742. doi: 10.1021/es902264w. [DOI] [PubMed] [Google Scholar]
  • 40.Torresi E, et al. Impact of external carbon dose on the removal of micropollutants using methanol and ethanol in post-denitrifying Moving Bed Biofilm Reactors. Water Res. 2017;108:95–105. doi: 10.1016/j.watres.2016.10.068. [DOI] [PubMed] [Google Scholar]
  • 41.Laloy E, Vrugt JA. High-dimensional posterior exploration of hydrologic models using multiple-try DREAM(ZS) and high-performance computing. Water Resour. Res. 2012;48:1–18. doi: 10.1016/j.advwatres.2012.07.002. [DOI] [Google Scholar]
  • 42.Boerner U, Abbott S, Roe RL. The Metabolism of Morphine and Heroin in Man. Drug Metab. Rev. 1975;4:39–73. doi: 10.3109/03602537508993748. [DOI] [PubMed] [Google Scholar]
  • 43.Vangsgaard AK, Mutlu AG, Gernaey KV, Smets BF, Sin G. Calibration and validation of a model describing complete autotrophic nitrogen removal in a granular SBR system. J Chem Technol Biotechnol. 2013;88:2007–2015. [Google Scholar]
  • 44.Insel G, Sin G, Lee DS, Nopens I, Vanrolleghem PA. A calibration methodology and model-based systems analysis for SBRs removing nutrients under limited aeration conditions. J. Chem. Technol. Biotechnol. 2006;81:679–687. doi: 10.1002/jctb.1464. [DOI] [Google Scholar]
  • 45.Ni BJ, Ruscalleda M, Pellicer-Nàcher C, Smets BF. Modeling nitrous oxide production during biological nitrogen removal via nitrification and denitrification: Extensions to the general ASM models. Environ. Sci. Technol. 2011;45:7768–7776. doi: 10.1021/es201489n. [DOI] [PubMed] [Google Scholar]
  • 46.Domingo-Félez, C., Valverde-Pérez, B., Plósz, B. G., Sin, G. & Smets, B. F. Towards an optimal experimental design for N2O model calibration during biological nitrogen removal. In WWTmod (2016).
  • 47.Sin G, Gernaey KV, Neumann MB, van Loosdrecht MCM, Gujer W. Global sensitivity analysis in wastewater treatment plant model applications: Prioritizing sources of uncertainty. Water Res. 2011;45:639–651. doi: 10.1016/j.watres.2010.08.025. [DOI] [PubMed] [Google Scholar]
  • 48.Holzkämper A, Klein T, Seppelt R, Fuhrer J. Assessing the propagation of uncertainties in multi-objective optimization for agro-ecosystem adaptation to climate change. Environ. Model. Softw. 2015;66:27–35. doi: 10.1016/j.envsoft.2014.12.012. [DOI] [Google Scholar]
  • 49.Hauduc H, et al. Efficiency criteria for environmental model quality assessment: A review and its application to wastewater treatment. Environ. Model. Softw. 2015;68:196–204. doi: 10.1016/j.envsoft.2015.02.004. [DOI] [Google Scholar]
  • 50.Frutiger J, Marcarie C, Abildskov J, Sin G. A Comprehensive Methodology for Development, Parameter Estimation, and Uncertainty Analysis of Group Contribution Based Property Models-An Application to the Heat of Combustion. J. Chem. Eng. Data. 2016;61:602–613. doi: 10.1021/acs.jced.5b00750. [DOI] [Google Scholar]
  • 51.Cone EJ, Welch P, Mitchell JM, Paul BD. Forensic drug testing for opiates: I. Detection of 6-acetylmorphine in urine as an indicator of recent heroin exposure; drug and assay considerations and detection times. J. Anal. Toxicol. 1991;15:1–7. doi: 10.1093/jat/15.1.1. [DOI] [PubMed] [Google Scholar]
  • 52.EAWAG-BBD. Pathway Prediction System (2016). Available at: http://eawag-bbd.ethz.ch/predict/index.html. (Accessed: 15th March 2016).
  • 53.Senta I, Krizman I, Ahel M, Terzic S. Assessment of stability of drug biomarkers in municipal wastewater as a factor influencing the estimation of drug consumption using sewage epidemiology. Sci. Total Environ. 2014;487:659–665. doi: 10.1016/j.scitotenv.2013.12.054. [DOI] [PubMed] [Google Scholar]
  • 54.Zonja B, Pérez S, Barcelo D. Human Metabolite Lamotrigine-N2-glucuronide Is the Principal Source of Lamotrigine-Derived Compounds in Wastewater Treatment Plants and Surface Water. Environ. Sci. Technol. 2016;50:154–164. doi: 10.1021/acs.est.5b03691. [DOI] [PubMed] [Google Scholar]
  • 55.Nieradzik, L. M., Radjenović, J., Auguet, O., Ni, B.-J. & Gutierrez, O. Re-formation of sulfamethoxazole in anaerobic sewers from human metabolites. In International Conference on Emerging Contaminants (EmCon) (2016).
  • 56.Raue A, et al. Structural and practical identifiability analysis of partially observed dynamical models by exploiting the profile likelihood. Bioinformatics. 2009;25:1923–1929. doi: 10.1093/bioinformatics/btp358. [DOI] [PubMed] [Google Scholar]
  • 57.Daughton, C. G. Illicit drugs in municipal sewage: proposed new non-intrusive tool to heighten public awareness of societal use of illicit/abused drugs and their potential for ecological consequences. In American Chemical Society, Symposium Series 348–364. (American Chemical Society, Symposium Series, 2001).
  • 58.Decostere B, et al. Validation of a microalgal growth model accounting with inorganic carbon and nutrient kinetics for wastewater treatment. Chem. Eng. J. 2016;285:189–197. doi: 10.1016/j.cej.2015.09.111. [DOI] [Google Scholar]
  • 59.Jin X, Xu CY, Zhang Q, Singh VP. Parameter and modeling uncertainty simulated by GLUE and a formal Bayesian method for a conceptual hydrological model. J. Hydrol. 2010;383:147–155. doi: 10.1016/j.jhydrol.2009.12.028. [DOI] [Google Scholar]
  • 60.Daren Harmel R, Smith PK. Consideration of measurement uncertainty in the evaluation of goodness-of-fit in hydrologic and water quality modeling. J. Hydrol. 2007;337:326–336. doi: 10.1016/j.jhydrol.2007.01.043. [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES