 Methodology Article
 Open access
 Published:
Nonlinear mixedeffects modelling for single cell estimation: when, why, and how to use it
BMC Systems Biology volume 9, Article number: 52 (2015)
Abstract
Background
Studies of celltocell variation have in recent years grown in interest, due to improved bioanalytical techniques which facilitates determination of small changes with high uncertainty. Like much highquality data, singlecell data is best analysed using a systems biology approach. The most common systems biology approach to singlecell data is the standard twostage (STS) approach. In STS, data from each cell is analysed in a separate subproblem, meaning that only data from the same cell is used to calculate the parameter values within that cell. Because only parts of the data are considered, problems with parameter unidentifiability are exaggerated in STS. In contrast, a related approach to data analysis has been developed for the studies of patienttopatient variations. This approach, called nonlinear mixedeffects modelling (NLME), makes use of all data, when estimating the patientspecific parameters. NLME would therefore be advantageous compared to STS also for the study of celltocell variation. However, no such systematic evaluation of the two approaches exists.
Results
Herein, such a systematic comparison between STS and NLME has been performed. Different examples, both linear and nonlinear, and both simulated and real experimental data, have been examined. With informative data, there is no significant difference in the results for either parameter or noise estimation. However, when data becomes uninformative, NLME is significantly superior to STS. These results hold independently of whether the loss of information is due to a low signaltonoise ratio, too few data points, or a bad input signal. The improvement is shown to come from both the consideration of a joint likelihood (JLH) function, describing all parameters and data, and from an a priori postulated form of the population parameters. Finally, we provide a small tutorial that shows how to use NLME for singlecell analysis, using the free and userfriendly software Monolix.
Conclusions
When considering uninformative singlecell data, NLME yields more accurate parameter and noise estimates, compared to more traditional approaches, such as STS and JLH.
Background
Celltocell variation is one of the most intriguing and important fields in today’s cell biology research. Historically, the fact that cells are different from each other has been neglected, and this neglect has led to erroneous conclusions and descriptions of the system [1]. Within the systems biology community, modelling of cells has typically been performed based on data from the average of cells, and the model has thus described an average cell. In several wellknown cases, this average cell has turned out to be highly nonrepresentative of the true underlying cellular behaviour. For instance, the prevailing view of the signalling cascade involving Casp3 was that the changes were described as gradual, since this was the average population behaviour; however, this population behaviour was obtained by a gradual change in the number of cells that had switched from one state to another, where the switch in each individual cell was fast [2]. Celltocell variation is also at the heart of understanding cell differentiation, which involves the important special cases of stem cell research and research on the development of tumours [3].
One common example of single cell data is fluorescent recovery after photobleaching (FRAP), which examines the timedependent response to the bleaching of a part of a cell (Fig. 1 a). This response normally follows an exponential decline/increase. The most straightforward analysis of such data is therefore to simply fit an exponential curve to the data, and evaluate the value of the exponent [4] (Fig. 1 b). The limitation of such an approach is that the exponent does not correspond to the velocity of any specific mechanism, but to a phenomenological description lumping many subprocesses together. A more mechanistically interpretable approach is to form a model based on prior knowledge of the underlying subprocesses. Sometimes such a model is formulated using partial differential equations (PDEs) [5] (Fig. 1 c). The limitation of PDEs is that a single simulation is very computationally timeconsuming. Therefore, PDEbased models are usually utilized for forwardsimulation, i.e. where simulations of different scenarios are performed, but where the model is assumed as known. Another important type of modelling is known as reversedengineering, in which parameters with mechanistic interpretation are estimated based on the data, and where conclusions can be drawn regarding mechanisms in the biological system [6–9] (Fig. 1 d).
Such reverseengineering approaches to research on celltocell variation have typically been pursued using ordinary differential equations (ODEs) and a method known as the standard twostage approach (STS) (Fig. 1 e) [10]. STS is the typical approach used to study ODEs in systems biology [7], applied to the problem of singlecell characterization. In other words, after a nonrejected model has been chosen, the parameters are determined in each cell separately (stage 1 in STS). Thereafter, the distribution of the cell population’s parameters are compared and determined (stage 2). One of the problems with STS is that the data in one cell alone may be insufficient to determine the individual parameters for that particular cell accurately, i.e. that the uncertainty in each of the individual parameters are unacceptably high [11]. In such situations, it may be beneficial to make use of the data and information that exists also for the other cells.
Such approaches, where one problem for one unit is solved in connection to the corresponding problem for all other units, have been developed in various other disciplines, under a variety of names. One such name is multitask learning. This name is used in the machine learning community, and has been successfully applied to e.g. classification, pattern recognition, etc [12–16]. However, multitask learning approaches seem only rarely to have been applied to the task of estimating parameters in an ODE [17], and not at all to celltocell variation studies. In contrast, the same idea has also been developed under the name mixedeffects modelling, and the subclass known as nonlinear mixedeffects modelling (NLME) (Fig. 1 f) has been widely used to estimate parameters in ODEs [10, 11]. The majority of NLME applications appear within the field of pharmacokinetics, i.e. for models that describe the uptake, breakdown, and effect of a drug in human or animal subjects.
Regarding celltocell variation, there are a few recent examples that make use of NLME, but there is no systematic evaluation of when and why NLME is advantageous compared to STS. One important series of papers regarding NLME and celltocell variation have been published by Zechner et al. The first such papers were applied to snapshot data, i.e. data were only a single data point is available for each cell [18–20]. Recently, this approach has been generalized to also be able to deal with timeseries data [21]. The Zechner papers focus on issues related to noise, and for instance seek to differentiate between extrinsic and intrinsic noise. Presumingly for this reason, they work exclusively with continoustime markov chains (CTMC), and do not present any results for ODEs, despite the fact that ODEs is the most widely used model class in the systems biology community [22]. In other words, the Zechner papers do not explain how to use NLME to study celltocell variations using ODEs. Furthermore, the Zechner papers do not demonstrate or explain why or when NLME are superior to STS. There is one conference paper on NLMEbased ODEestimation of singlecell data [23]. This paper presents a comparison between such ODEestimation and an early version of the Zechner snapshot approach [20]. However, also this paper [23] does not explain when or why NLME should be used instead of STS. Herein we present such an explanation.
More specifically, we demonstrate the occasional importance of studying celltocell variation with NLME rather than using STS. Based on simulated data, where the true model structure and parameter values are known (Fig. 2), we show that for the case of uninformative data, NLME is advantageous over STS regarding parameter estimation: both kinetic and noise parameters were estimated significantly closer to the true values compared to estimating the parameters using STS. We show that this advantage seems independent of the reason for the lackofinformation in the data, and also unravel where the advantage comes from. We finally also demonstrate that NLME can be used for the analysis of real experimental FRAP data from the yeast Saccharomyces cerevisiae.
Methods
The standard two stage approach
In STS, the following model structure is used
where x ^{i} is the state vector for the i:th individual; u ^{i} is the input signal vector for individual i; p ^{i} is the parameter vector for the i:th individual; f and g are nonlinear vector functions; and y ^{i} is the vector of observations for individual i.
Parameter estimation
In Stage 1, the parameters for each individual p _{ i } are estimated. Note that in a modelling framework such as eqs. (1)(2), no information is shared between the individuals, which makes the parameter estimation problem for each individual a separate estimation problem. In Stage 2, the variability of the parameter estimates are calculated (Fig. 1 e).
In the case of only estimating the parameters, we minimize the following cost function, based on the sum of squares of the residuals
where i and j denotes the i:th observation in the j:th state; y _{ ij } is the experimental data; \(\hat {y}_{\textit {ij}}\) is the corresponding simulated output from the model; and σ _{ ij } is the standard deviation of the experimental measurement. In other words, the kinetic parameters p are given by
Note that this approach cannot be used to estimate σ, since in eq. (3) σ only appears in the denominator, and the optimum for σ therefore lies at +∞. For estimation of the noise, we therefore use the more general approach of maximizing the full loglikelihood function
where
where σ is the vector of all σ _{ ij }, which now normally have their optima different from 0 or infinity, since they appear both in the numerator and in the denominator.
Software
Modelling and parameter estimation with the STS approach was performed using MATLAB (Mathworks). The simulation of the model was performed with the function SPBDsimulate in The Systems Biology Toolbox2 (SBTB2) (sbtoolbox2.org). Optimisation was done both using the builtin local optimisation algorithm lsqnonlin (which uses GaussNewton methods), and using the global simulated annealing and nonlinear simplex approach available in SBTB2. All simulations and optimisations, except the ones made for the noise estimation and the JLH were done using a PC (Processor: Intel Core i53470 3.20 GHz, Memory: 8.00 GB, manufacturer: HewlettPackard). The simulations and optimisations for the noise estimation and the JLH were done using a laptop (Processor: Intel Core i5560M 2.667 GHz, Memory: 2x 2048 MB, manufacturer: Samsung, DDR310600S, 1333 MHz). All MATLABfiles used (including datasets) are available in Additional file 1.
The nonlinear mixedeffects approach
NLME is a general modelling approach that can be applied to analyse any type of system that can be described by eqs. (7)(11), i.e. to a system that is made up of individuals belonging to a joint population, and where the individuals’ parameter values belong to the parameter distribution of the population. This link between the parameter values among the individuals allows information to be shared between the individuals. The idea is that this information sharing may result in better estimates for both the individual parameters and for the covariance matrices. More specifically, in NLME models, the following general model structure is used
where x ^{i}, u ^{i}, and y ^{i} are, just as for STS, the state, input, and measurement vectors for individual i; where ϕ ^{i} is the parameter vector for the i:th individual, which now no longer is a free variable, but instead depends on Θ, the population parameter vector describing the typical individual in the population, Z ^{i} the covariates (not used in this paper), and η ^{i}, the random effects; and where Ω and Σ describes the covariance matrices of the random effects, η ^{i}, and the measurement noise, ε ^{i}, respectively.
Parameter estimation
In NLME there are two types of parameters to estimate: the fixed effects, Θ, and the variances of the random effects, Ω and Σ.
The fixed effects describe the main trend, i.e. the typical value of the model parameters. For a singlecell model, such fixed effects could be the typical population value of a kinetic parameter.
There are two types of random effects; betweencell, η, and betweensample, ε, variability. The betweensample variabilities are related to the residuals, in that they describe the differences between the predicted, \(\hat {y}\), and the observed, y, measurement values. In practice, the software packages used herein, NONMEM and Monolix, can handle e.g. additive
proportional, and a combination of additive and proportional betweensample variability
The effect of the betweencell random effects, η, on the cellspecific parameters, ϕ ^{i}, can in principle be described by any function, g, and the used software packages support both normal, lognormal, and userspecified distributions (specific examples are provided in the two test cases below).
The marginal likelihood (L) of the model parameters for the data is the product of the individual marginal likelihoods of the cells, j according to
Where m is the number of observations per cell, i.e., m =N·n _{ y }. The parameters are estimated through minimizing 2 log of the likelihood (2LL). Since there is no closed form solution to the marginal likelihood various approximations are available. The most commonly used approximation is the firstorder conditional estimation method where L is linearised with a first order Taylor expansion around the estimates of the random effects, i.e. around η. In the NONMEM example (Model 1), the numerical search for the minimum of the 2LL is implemented according to a modified algorithm by [24] which is a derivatefree quasiNewton type minimization algorithm. The objective function value (OFV) reported by the software is proportional to 2LL. In the Monolix example (Model 2), the numerical search is done by a stochastic approximation of the expectation maximisation algorithm [25].
Software
The NLME approach has been implemented in several software packages [26]. In this paper, the two software packages NONMEM and Monolix are both used. This is done to show consistency in terms of results across different software packages, but also as a way of presenting several choices to the reader.
For the analysis with NONMEM version 7.2.0 [27] was used. The interaction with NONMEM is made through NMTRAN, a language translating userdefined code and datasets into FORTRAN77. ODEs can be defined by the user and for this particular project a differential equation solver, for nonstiff systems, was used (ADVAN6) together with the firstorder conditional estimation (FOCE) method. PerlspeaksNONMEM (PsN)3.5.3 [28, 29] was used for execution of models. NONMEM and PsN were installed on a PC and a laptop, which systems details were the same as described in the section The standard two stage approach, with the fortran compiler GNU gfortran.
For the analysis with Monolix, version 4.3.2 was used, as implemented in MATLAB version 8.1 [30]. Importantly, for users who do not have access to MATLAB, a stand alone version also exists. The models are written in a language called mlxtran, which apart from having a rich library of PKPDmodels also allows the users to define their own ODEs [31]. SBTB2 also contains functions for translating SBTB2models into mlxtran, using the addonpackage SBPOP. Compared to NONMEM, Monolix offers a more user friendly environment, including a graphical user interface. For the beginner, we therefore recommend to use Monolix, and we have also developed a small tutorial, which explains how to us it for singlecell models. This tutorial, together with all scripts used to perform the analysis in this paper, is available in the Additional file 1. All the analysis regarding Monolix was performed on the same PC as described in the section The standard two stage approach. All NONMEMfiles and Monolixfiles used (including datasets) are available in Additional file 1.
An inbetween approach: the joint likelihood function
There are two main differences between STS and NLME which both potentially could lead to improvements in the parameter estimation: i) in NLME one forms a likelihood function for the parameter estimation to the combined data set for all cells, and ii) in NLME one postulates a distribution for the variation of the parameter values across the cell population.
To analyse where the improvement in the parameter estimation originates from, we also did some analysis with an inbetween approach: the joint likelihood function (JLH) approach. In JLH, we only use improvement aspect i), the single likelihood function for the combined data set, but do not postulate a joint parameter distribution. In other words, instead of eqs. (5)(6), we use the following two equations:
where
where N _{ c } denotes the number of cells.
Software
The software and optimization and model formulation tools used for the JLH analysis is the same as for STS.
Experimental data
The experimental procedures are further discussed in [32]. FRAP experiments were performed using YFP. We used yeast cells of the BY4741 genetic background expressing YFP under the control of the constitutively expressed ACT1 promoter (P _{ACT1}YFP). In addition, this strain expressed two extra fluorescent protein reporters: a CFPAce2 fusion and a Myo1mCherry fusion, both driven by their own promoters. We used Ace2 to locate the nucleus and determine the cells position in the cell cycle (Ace2 is nuclear only at the end of mitosis and early G1), and we used Myo1 to confirm motherdaughter separation (Myo1 forms a ring at the budneck during mitosis, which disappears when cytokinesis is complete). In this way, we minimized celltocell variation in our measurements related to cell cycle position, without disturbing the system with synchronization procedures.
We used exponentially growing cells cultured in synthetic medium (BSMTRP,LEU,URA 2 % glucose). For the experiments, we attached cells to the bottom of 384well glass bottom plates (MGB10111LG, Matrical Biosciences, Spokane, Washington, USA). To prevent cells from moving during the experiment, we pretreated the wells with concanavalin A (type V; SigmaAldrich, St. Louis, MO, USA), as previously described (ColmanLerner 2005).
Photobleaching of individual nuclei was performed using an Olympus IX81 inverted microscope with a FV1000 confocal module with an oil immersion Olympus UplanSapo 63X objective (numerical aperture, NA 1.35). We used an automatic zaxis control, a motorized xy stage, a 458488515 argon laser, a 543 HeNe laser and photomultiplier (PMT) Hamamatsu R6353.
For trainofFRAP experiments, we imaged YFP with the 515 nm laser. In each cell, we repeated four times the following procedure: we first took 5 images, then performed a partial photobleaching (roughly reducing the signal by 50 %), then measured the recovery for 7 sec (30 images, time resolution 0.22 sec). From the photobleaching step, we used a 100 % laser power on a small subarea of the nucleus (radius 0.25 m) during 0.16 sec. Subsequently, we imaged using 1 % laser power and 4 sec/pixel scanning speed. We set the confocal microscope pinhole to wide open (500 m).
Quantification of total fluorescence in each compartment was performed in ImageJ, by manually drawing regions of interest (ROIs) in the nucleus and the cytosol, and quantifying it using the ImageJ plugin “Time Series Analyzer V2”. A typical ROI was a circle of 200 nm in radius. We applied photobleaching and autofluorescence corrections to all images as described in [32].
Two case studies: a linear and a nonlinear model
Let us now introduce the two examples considered in this paper. The first, Model 1, is a linear model, describing transport of YFP, and the second, Model 2, is a nonlinear model describing the osmoregulation of yeast cells.
Linear model
The statespace description of Model 1 is given by the following four equations
where n and c are the amounts of YFP in the nucleus and in the cytosol, respectively; where k _{1} and k _{2} are the transports from and to the nucleus, respectively; and where y _{ n } and y _{ c } are the two measurement signals (Fig. 3 b and c). A sketch of the model is given in Fig. 3 a.
In STS estimation, data from each cell were analysed separately, potentially yielding as many k _{1} values as there were cells in the experiment. For simulation of the data using eqs. (18)(21), the following equations were used to obtain the initial conditions
where t _{ F R A P,j } is the first time point after FRAP j. There were four FRAPs, two states, and two kinetic parameters, and thus 10 unknown parameters in the parameter vector p
In the NLME estimation, the individual rate constants \({k_{1}^{j}}\) and \({k_{2}^{j}}\) were described by the following equations
where \(\theta _{k_{1}}\) and \(\theta _{k_{1}}\) are the typical values of k _{1} and k _{2} in the cell population, respectively, and \(\eta _{k_{1}}^{\,j}\) and \(\eta _{k_{2}}^{\,j}\) are random effects describing the difference between the typical and individual values. \(\eta _{k_{1}}\) and \(\eta _{k_{2}}\) belongs to normal distributions with mean 0 and estimated variances, \(\omega _{k_{1}}^{2}\) and \(\omega _{k_{2}}^{2}\), respectively. The estimated variances \(\omega _{k_{1}}^{2}\) and \(\omega _{k_{2}}^{2}\) can be correlated. Both the variances \(\omega _{k_{i}}^{2}\) and their correlations are collected in the variancecovariance matrix Ω. Thus, five parameters are needed to describe the individual \({k_{1}^{\,j}}\) and \({k_{2}^{\,j}}\) for the entire population: \(\theta _{k_{1}}\), \(\theta _{k_{2}}\), \(\omega _{k_{1}}^{2}\), \(\omega _{k_{2}}^{2}\), and the offdiagonal element in Ω. Unlike in STS, this number is always five, independent of the number of analysed cells.
The initial conditions were modelled as
where η _{ j }∈N _{ j }(0,1) and Θ _{3} is the standard error of the residual error.
Finally, the noise is for both STS and NLME assumed to be additive, which also is how the simulated data was generated. In other words, simulations were done for different values of the parameters, additive noncorrelated noise was added, and the ability of STS and NONMEM to retrieve the parameter values and the standard deviation of the noise was evaluated.
The nonlinear model
Model 2 is a model published by Gennemark et al. [33] (equations for the model can be found in Additional file 2). The model describes how the yeast cell reacts to an osmolarity shock by producing glycerol via activation of the protein Hog1 (Fig. 4 a). A description of all the equations can be found in the Supplementary material. The model consists of 4 ODEs, 10 parameters, and 3 algebraic equations, including several nonlinearities, both products of states, and events switching between two expressions depending on the value of a state. 4 parameters (Ve, kp2, kHOG, td) were optimized from the simulated data, and the remaining 6 parameters were kept at their literature values. The initial conditions were assumed to be known, as was the noise level. The input of the model is the addition of salt to the cells (Fig. 4 b) and the measured output signal of the model is intracellular (Fig. 4 c) and total (intracellular + extracellular) glycerol concentrations (Fig. 4 d).
In the NLME estimation, the model parameters are described by the following equations.
where θ _{ x } is the typical value of x in the cell population, and \({\eta _{x}^{j}}\) is the random effect describing the difference between the typical and individual values for parameter x for cell j. These random effects (η _{Ve}, η _{kp2}, η _{kHOG}, and η _{td}) belongs to normal distributions with mean 0 and estimated variances (\(\omega _{\text {Ve}}^{2}\), \(\omega _{\textrm {kp2}}^{2}\), \(\omega _{\textrm {kHOG}}^{2}\), and ω _{td}). There are no covariances, i.e. the matrix Ω is set to be diagonal. Both measurements of the model, intracellular and total glycerol concentrations, have additive noise
where index ic means intracellular, tot means total, and where ε _{ic} and ε _{tot} are normally distributed, with mean 0 and estimated variances.
Comparison of performance
The performance of STS and NLME are analyzed by comparing the relative deviation from the true parameter value (estimated parameter/true parameter) (Figs. 5, 7). Apart from figures showing the relative deviation for each parameter for each artificial cell, the differences between STS and NLME is also accompanied by a Student’s ttest. The ttest is pairwise, and tests whether the relative deviation (the distance from 1) is significantly different between STS and NLME.
Ethics
The experiments and data collection were carried out on Saccharomyces Cerevisiae, which has no associated ethical issues.
Results
Linear model: NLME is advantageous in cases of lowquality data
We generated FRAP data structured like the real experimental data (Methods) but with known true kinetic parameters, in order to determine whether there is a difference between STS’s and NLME’s ability to estimate the true parameters in a system (Fig. 2). For Model 1, NLME was implemented using the software NONMEM. Both STS and NLME estimated the parameters using the true structural model, which for the case of NLME also included the true additive error model eqs. (20)(21). In addition, NLME were given the true form of the kinetic parameter distributions among the cell population (that η had a lognormal distribution with an unknown mean and standard deviation). The standard deviation of the measurement noise was in the first part of the analysis assumed to be known.
The generated FRAP data were divided into four different cases: Original Data, Sparse Data, Noisy Data, and Weak Input Signal Data (Fig. 3 b and c). The Original Data (Fig. 3 b and c, green) had 48 observations per state, giving a total of 96 observations per artificial cell. The Sparse Data (Fig. 3 b and c, black) had 24 observations per artificial cell (1/4 of the number of observations in the Original Data). The noise of the Noisy Data (Fig. 3 b and c, purple) had a standard deviation of 50, compared with 10 for the Original Data. The Weak Input Signal Data had FRAPs that were half of the strength of the FRAPs used to generate the Original Data. The initial conditions were the same for all timeseries in the Original, Noisy, and Sparse Data, since they correspond to the same perturbation from the steady state. For the same reason, the Weak Input Signal Data had an initial condition closer to the steady state. All initial conditions were estimated from the simulated datasets eqs. (27)(28)
In Fig. 5, the results from the estimation of the kinetic parameter k _{1} from both STS (red) and NLME (blue) can be seen. From this figure, it is clear that for the case of the Original Data (Fig. 5 a), there is no significant difference between STS and NLME in terms of their ability to estimate the true parameters: the relative deviation from the true values were 0.991 ±0.09 for NLME and 0.993 ±0.09 for STS (mean ±SD). However, for the cases when the quality of the data is reduced in either of three different ways (sparseness in Fig. 5 b, a larger noise level in Fig. 5 c, and a weaker input signal in Fig. 5 d), there is a larger difference: STS often fails, while NLME still produces roughly the same results. These differences are also supported by a paired Student’s ttest (p<0.05). Similar results can be seen for the other kinetic parameter, k _{2}, in Figure S1 in Additional file 3.
Linear model: the same improvement holds for noise estimation
Next we considered the case of also estimating the measurement noise. All results gave the same type of improvement as for the analysis above. We considered the case where the same noise distribution was used for all cells. In other words, for NLME there was only one additional parameter to estimate: the variance of the noise. For NLME, this means that a single value is obtained for all the cells. Conversely, for STS, which considers the estimation in each individual cell as an independent problem, there were 200 estimated values for this new noise parameter. The results are shown in Fig. 6. As can be seen, NLME performed significantly better in the case of Sparse Data (40 observations per artificial cell), but equally well in the case of Rich Data (240 observations per artificial cell). Again these conclusions are supported by a Student’s ttest (p<0.05).
The results hold for a nonlinear model
We also generated simulated data from the second, nonlinear, model. This generation used a four step input signal (Fig. 4 b), simulating the addition of equal amounts of salt four times at equal time intervals. The generated data were divided into four different cases: Original Data, Sparse Data, Noisy Data, and Weak Input Signal Data. The Sparse Data (Fig. 4 c and d, black) had 20 observations per output signal, giving a total of 40 observations per artificial cell. The 40 observations can be compared with the 500 observations used in the Original Data (Fig. 4 c and d, green). The noise of the Noisy Data (Fig. 4 c and d, purple) had a standard deviation of 2.2 compared with 0.5 for the Original Data. The amplitude of the input signal in the data with a weak input signal (Fig. 4 c and d, blue) was one tenth of the amplitude of the input signal in the Original Data (Fig. 4 b).The parameter estimation with NLME included the true error model and the true, lognormal, form of the parameter distributions.
For Model 2, NLME is implemented using Monolix. Figure 7 shows the results of Model 2 for the parameter td. In Fig. 7 a, the red and blue curves largely overlap, meaning that in this case, using the Original Data, there is no difference between STS and NLME. In contrast, when the quality of the data is reduced in either of three different ways (sparseness in Fig. 7 b, a larger noise level in Fig. 7 c, and a weak input signal in Fig. 7 d), STS is significantly worse than NLME. These observed differences are confirmed by a paired Student’s ttest (p<0.05). Similar results can be seen for the other three parameters, Ve (Figure S2), kp2 (Figure S3), kHOG (Figure S4), in Additional file 3.
Where does the improvement come from?
The above analysis demonstrates that NLME gives an improvement in the cases of having insufficient information in the data due to either sparsity in sample points, noise or bad input signal leading to bad excitation of the system. This leads to the natural followup question of where the improvement comes from. This analysis is done using the JLH approach, and this is done in two ways.
For the first JLH analysis, all parameters are kinetic or initial condition parameters, and are individual to each cell. That means that the joint likelihood function l _{ tot }, breaks down into its individual components
where l _{ i } is the likelihood function considering the data available for the i:th cell only. In other words, in the first JLH analysis, JLH provides no improvement compared to STS, and all the observed improvement comes from the postulation of a joint parameter distribution across the cell population.
For the second JLH analysis, the noise distribution is shared among all cells, meaning that the total likelihood breaks down in the following way
where λ is the standard deviation of the noise. In other words, using the total likelihood function l _{JLH} in eq. (36) for the estimation of all the parameters at the same time, could therefore in principle be an approach that is superior to STS.
The result of applying this second approach, in eq. (36), to Model 1 is shown in Fig. 8. As can be seen, a JLH function (blue) does converge faster to the truth for both parameter (Fig. 8 a) and noise estimation (Fig. 8 b) compared to STS (red). However, JLH is still not as good as NLME (black).
All in all, this means that the improvement of NLME comes purely from the assumption of a shared parameter distribution in cases of only estimating parameters that are unique to each cell; in contrast, the advantage of the shared distribution is combined with the additional advantage of a joint likelihood function, in cases of shared parameters across the cell population (such as the noise in eq. (36)).
Application to real experimental data
To demonstrate that NLME is applicable to real data of celltocell variations, we also performed a corresponding analysis for the experimental data analysed using STS and NLME (Methods). Here the true parameters are not known. Using all available experimental data, the estimated parameters from STS and NLME are roughly the same and they both describe the data well as can be seen in Fig. 9 a, c, d. However, when removing data from the full timeseries, to make the data sparse, new corresponding STS parameter estimates become much more changed than the corresponding NLME estimates, Fig. 9 b. This is consistent with the results from the simulated data above.
Discussion
In this paper, we have answered the questions when, why, and how NLME should be applied to the problem of parameter and noise estimation based on ODE analysis of singlecell data. This analysis brings clear evidence that there are important and common cases when NLME is advantageous compared to the traditional STS approach: in cases of noninformative data, NLME converges faster to the true values.
When considering the case for NLME in singlecell analysis, there are a few strengths that should be further clarified. Firstly, although NLME has only recently been discovered in the analysis of singlecell data, it has a long tradition in other fields, in particular pharmacometrics. Thus, there is already a rich literature of theoretical and methodological results supporting the NLME approach. In other words, the theoretical properties of the method are already wellestablished, and there are many associated analysis tools that can be used in future analysis of celltocell variation. Secondly, a specific example of such a wellestablished approach is covariate analysis, which has a high potential also for the study of celltocell variation. Covariate analysis was part of the initial incentive behind the development of NLME: to find correlations between subjectspecific characteristics, such as age and weight, with the properties in the model, including subjectspecific responses to drug treatments [34]. In the case of celltocell variation, this covariate analysis translates to the identification of correlations between cellspecific characteristics such as cellline, cellvolume, celltype, etc, with e.g. the cellspecific kinetic parameters estimated by the model. Thirdly, the rich theory behind NLME also includes estimation of the noise. Such noise estimations are still quite rare in systems biology studies, but are standard in NLME estimations performed in NONMEM. Fourthly, the development of NLME in software packages such as NONMEM and Monolix was driven by challenges commonly seen with patientspecific studies, challenges that also are present in many celltocell variation studies; these packages are thus well adapted for celltocell variation studies. For instance, patientspecific studies often have the limitation that only a few datapoints can be collected for each patient; this is a common problem also for cells. Similarly, patientspecific studies are often associated with high noiselevels; high noiselevel is also a problem that often becomes pronounced when considering data from individual cells. A final important advantage of NLME is the computational effort. This advantage is primarily seen when comparing NONMEM and JLH of eq. (36). The high computational load of JLH comes from the fact that all parameters have to be estimated in one problem; the computational time in NONMEM and Monolix is reduced via various approximations, which have been developed over the years. NONMEM is also fast because it is implemented in FORTRAN. As an example, the computational time using 100 data sets was roughly 2 hours, and more than 15 hours, for NONMEM and JLH, respectively.
There are naturally also limitations with NLME, and with its current implementations, when considering them in a systems biology singlecell context. For instance, pharmacometrics models are typically small, with around 3–10 states. Today’s singlecell models are usually equally small, but other systems biology models may be substantially bigger, sometimes including hundreds of states. As singlecell omics data becomes increasingly available, this will mean that larger models probably will appear in a singlecell context as well. This will put new challenges to NLME implementations. This challenge is also put forth by the parallel developments of systems pharmacology, which links pharmacometrics models with intracellular models. One other limitation and challenge when adopting NLME to singlecell analysis is the difference in concepts and notions, and also this challenge is also put forth by systems pharmacology. For this limitation, we argue that Monolix is an important alternative to the more widely used NONMEM package, since Monolix is based on Matlab and has a userfriendly interface. Finally, the methodologies considered herein have limitations in terms of their handling of noise, since they do not account for process noise. Therefore, it is important to also follow the implementation of the other subcommunities of NLME, and their implementations into singlecell analysis. The perhaps most important such paper to date is the recent one by Zechner et al. [21].
While the method presented in the Zechner paper is similar to the one we propose in the sense that both methods adapt a mixedeffects approach, there are still fundamental differences. Firstly, the Zechner paper only deals with models based on ContinuousTime Markov Chains. This is a class of models that is fundamentally different from the models based on ODEs that we use. In other words, one cannot simply put a process noise parameter to zero in their formalism and obtain the same equations and methods proposed herein. Secondly, the Zechner paper estimates their parameters using a Bayesian Inference Network, which is an alternative framework, different from the frequentist approaches in NONMEM and Monolix. Finally, we do a thorough analysis of when, why, and how NLME should be applied to singlecell problems. The Zechner paper does not have the kind of convergence and comparison plots that we have (Figs. 5, 6, 7, 8, 9), clearly demonstrating the advantage of NLME compared to STS. Also, the Zechner paper does not unravel the reason why this advantage is there, i.e. they do not differentiate between the different contributions of JLH and the assumption of a joint distribution across the population.
Conclusions
NLME is a widely used approach in other areas, but it has only recently and in a few papers been applied to singlecell data. No systematic comparison has clearly answered the questions when, why, and how to use it in this new situation. In this paper, we have shown that NLME should be used when the available data for each cell are not informative enough to obtain reliable parameter estimates using each cell. If the data are informative enough, NLME provides no advantage in terms of accuracy, but if the data is either too sparse, too noisy, or obtained with a too weak stimulation, NLME has a faster convergence to the true parameter values. This holds for both linear and nonlinear systems, for both simulated and experimental data, and for both parameter and noise estimation. The reason why NLME is advantageous is i) that a joint likelihood function is formed, and ii) that one assumes a shared distribution of the parameter values across the cell population. The first factor, i), only contributes if there are shared parameters, such as e.g. the noise level, across the cell population. NLME is implemented in a wide variety of software packages previously not mentioned in the singlecell literature, and we provide a small tutorial for how to use Monolix  a userfriendly and stable alternative  for the analysis of single cell data. This answers the final question of how to get started.
Availability of supporting data
The data sets supporting the results of this article are included within the article and its Additional files.
Abbreviations
 CTMC:

Continoustime markov chain
 FRAP:

Fluorescent recovery after photobleaching
 JLH:

Joint likelihood function
 NLME:

Nonlinear mixedeffects modelling
 ODE:

Ordinary differential equation
 PDE:

Partial differential equation
 ROI:

Region of interest
 STS:

Standard twostage approach
 YFP:

Yellow fluorescent protein
References
ColmanLerner A, Gordon A, Serra E, Chin T, Resnekov O, Endy D, et al. Regulated celltocell variation in a cellfate decision system. Nature. 2005; 437(7059):699–706.
Choi HS, Han S, Yokota H, Cho KH. Coupled positive feedbacks provoke slow induction plus fast switching in apoptosis. FEBS Lett. 2008; 581(14):2684–90.
Neumüller RA, Knoblich JA. Dividing cellular asymmetry: assymetric cell division and its implications for stem cells and cancer. Genes Dev. 2009; 23(23):2675–99.
Su M, Jiang H, Zhang P, Liu Y, Wang E, Hsu A, et al. Kneeloading modality drives molecular transport in mouse femur. Ann Biomed Eng. 2006; 34(10):1600–6.
Enderling H, Anderson AR, Chaplain MA, Rowe GW. Visualisation of the numerical solution of partial differential equation systems in three space dimensions and its importance for mathematical models in biology. Math Biosci Eng. 2006; 3(4):571–82.
Ingolia NT, Weissman JS. Systems biology: Reverse engineering the cell. Nature. 2008; 454(7208):1059–62.
Cedersund G, Roll J. Systems biology: model based evaluation and comparison of potential explanations for given biological data. FEBS J. 2009; 276(4):903–22.
Brännmark C, Nyman E, Fagerholm S, Bergenholm L, Ekstrand EM, Cedersund G, et al. Insulin Signaling in Type 2 Diabetes: experimental and modeling analyses reveal mechanisms of insulin resistance in human adipocytes. J Biol Chem. 2013; 288(14):9867–80.
Nyman E, Lindgren I, Lövfors W, Lundengård K, Cervin I, Sjöström TA, et al. Mathematical modeling improves EC50 estimations from classical doseresponse curves. FEBS J. 2015; 282(5):951–62.
Jonsson EN, Wade JR, Karlsson MO. Nonlinearity detection: advantages of nonlinear mixedeffects modeling. AAPS Pharm Sci. 2000; 2(3):114–23.
Bonate PL. Recommended Reading in Population Pharmacokinetic Pharmacodynamics. AAPS Pharm Sci. 2005; 2(2):E36373.
Caruana R. Multitask learning. Mach Learn. 1997; 28(1):41–75.
Pan SJ, Yang Q. A survey on transfer learning. IEEE Trans Knowledge Data Eng. 2010; 22(10):1345–59.
Evgeniou T, Micchelli CA, Pontil M. Learning multiple tasks with kernel methods. J Mach Learn Res. 2005; 6:615–37.
Grauman K, Darrell T. The pyramid match kernel: Efficient learning with sets of features. J Mach Learn Res. 2007; 8:725–60.
Zhang T, Ghanem B, Liu S, Ahuja N. Robust visual tracking via structured multitask sparse learning. Int J Comput Vis. 2013; 101(2):367–83.
Romain B, Letort V, Lucidarme O, Rouet L, DalchéBuc F. A multitask learning approach for compartmental model parameter estimation in DCECT sequences. In: International Conference on Medical Image Computing and ComputerAssisted Intervention. Berlin Heidelberg, Germany: Springer: 2013. p. 271–278.
Zechner C, Pelet S, Peter M, Koeppl H. Recursive Bayesian Estimation of Stochastic Rate Constants from Heterogeneous Cell Populations. In: 50th IEEE Conference on Decision and Control and European Control Conference (CDCECC). Piscataway, NJ, USA: IEEE: 2011. p. 5837–5843.
Koeppl H, Zechner C, Ganguly A, Pelet S, Peter M. Accounting for extrinsic variability in the estimation of stochastic rate constants. Int J Robust Nonlin. 2012; 22(10):1103–19.
Zechner C, Ruess J, Krenn P, Pelet S, Peter M, Lygeros J, et al. Momentbased inference predicts bimodality in transient gene expression. Proc Natl Acad Sci USA. 2012; 109(21):8340–5.
Zechner C, Unger M, Pelet S, Peter M, Koeppl H. Scalable inference of heterogeneous reaction kinetics from pooled singlecell recordings. Nat Methods. 2014; 11(2):197–202.
Hübner K, Sahle S, Kummer U. Applications and trends in systems biology in biochemistry. FEBS J. 2011; 278(16):2767–857.
Gonzalez AM, Uhlendorf J, Schaul J, Cinquemani E, Batt G, FerrariTrecate G. Identification of biological models from singlecell data: a comparison between mixedeffects and momentbased inference. In: European Control Conference, ECC. Piscataway, NJ, USA: IEEE: 2013. p. 3652–3657.
Fletcher R. Fortran Subroutines for Minimization by QuasiNewton Methods. Report R7125, A.E.R.E.England: Harwell; 1972.
Delyon B, Lavielle M, Moulines E. Convergence of a stochastic approximation version of the EM algorithm. Ann Stat. 1999; 27(1):94–128.
Bauer RJ, Guzy S, Ng C. A survey of population analysis methods and software for complex pharmacokinetic and pharmacodynamic models with examples. AAPS J. 2007; 9(1):E60E83.
Koeppll H, Zechner C, Ganguly A, Pelet S, Peter M. NONMEM User’s Guides (1989–2009). Icon Development Solutions. 2009. https://nonmem.iconplc.com/nonmem7/Release_Notes_Plus/nm720.pdf Accessed: 4th june 2015.
Lindbom L, Ribbing J, Jonsson EN. PerlspeaksNONMEM (PsN)–a Perl module for NONMEM related programming. Comput Methods Programs Biomed. 2004; 75(2):85–94.
Lindbom L, Ribbing J, Jonsson EN. PsNToolkitA collection of computer intensive statistical methods for nonlinear mixed effect modeling using NONMEM. Comput Methods Programs Biomed. 2005; 79(3):241–57.
Lixoft: Monolix® Available at http://www.lixoft.eu/products/monolix/productmonolixoverview/ Accessed: 4th June 2015.
Lixoft: Monolix® Users Guide. Available at http://www.lixoft.eu/wpcontent/resources/docs/UsersGuide.pdf. Accessed: 4th June 2015.
Durrieu L, Johansson R, Bush A, Janzén D, Gollvik M, Cedersund G, et al. Quantification of nuclear transport in single cells. bioRxiv The Preprint Server for Biology doi:10.1101/001768
Gennemark P, Nordlander B, Hohmann S, Wedelin D. A simple mathematical model of adaptation to high osmolarity in yeast. In Silico Biology. 2006; 6(3):193–214.
Jonsson EN, Karlsson MO. Automated covariate model building within NONMEM. Pharm Res. 1998; 15(9):1463–1468.
Acknowledgments
The research has been funded by LIST and by the Swedish Research Council.
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ contributions
MK developed, implemented, and analysed the results for parameter estimation accuracy for Model 1 and Model 2. DJ developed, implemented, and analysed an early version of the results for Model 1 and DJ also developed, implemented, and analysed the presented results for the JLHapproach, noise estimation, and the experimental data. MCK contributed with an expertise on NONMEM. LD carried out the experimental work and together with ACL provided experimental data and contributed with a biological model and interpretations. GC supervised and designed the study, and codrafted the manuscript with MK and DJ. All authors read and approved the final manuscript.
Additional files
Additional file 1
Supporting data. A zipfile containing the datasets used in the analysis, MATLABfiles, NONMEMfiles, and Monolixfiles equivalent to the ones used in the analysis, as well as a minitutorial of how to use Monolix. (ZIP 1761 kb)
Additional file 2
Equations for model 2. A PDF containing the complete equations for the nonlinear model used in the second case study. (PDF 88.8 kb)
Additional file 3
Supplementary figures and tables. A PDF with figures showing the results of the estimation of the parameters not shown in the article, as well as tables summarising the results of the Student’s ttests for the different parameters. (PDF 1085 kb)
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License(http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver(http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Cite this article
Karlsson, M., Janzén, D.L., Durrieu, L. et al. Nonlinear mixedeffects modelling for single cell estimation: when, why, and how to use it. BMC Syst Biol 9, 52 (2015). https://doi.org/10.1186/s129180150203x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s129180150203x