PosterPDF Available

Parameter Estimation for Nonlinear Mixed Effects Models Implemented in Mathematica

Authors:

Abstract

In many applications within biology and medicine, measurements are gathered from several entities in the same experiment. This could for example be patients exposed to a treatment or cells measured after stimuli. To characterize the variability in response between entities, the nonlinear mixed effects (NLME) model is a suitable statistical model. An NLME model enables quantification of both within- and between subject variability. The parameter estimation in NLME models is not straightforward, due to the intractable expression of the likelihood function. In this work we present a Mathematica package for parameter estimation in NLME models where the longitudinal model is defined by differential equations. The parameter estimation problem is solved by the first-order conditional estimation (FOCE) method with exact gradients. The package is demonstrated using data from a simulated drug concentration model.
Jacob Leander1,2,3, Joachim Almquist1,3, Helga Kristín Ólafsdóttir2, Anna Johnning1,2, and Mats Jirstrand1
1Fraunhofer-Chalmers Centre, Gothenburg, Sweden, 2Department of Mathematical Sciences, Chalmers University of Technology and University of Gothenburg,
Gothenburg, Sweden, 3Quantitative Clinical Pharmacology, Early Clinical Development, IMED Biotech Unit, AstraZeneca, Gothenburg, Sweden
Parameter Estimation for Nonlinear Mixed
Effects Models Implemented in Mathematica
Background
In many applications within biology and
medicine, measurements are gathered from
several entities in the same experiment. This
could for example be patients exposed to a
treatment or cells measured after stimuli.
To characterize the variability in response
between entities, the nonlinear mixed effects
(NLME) model is a suitable statistical model. An
NLME model enables quantification of both
within- and between subject variability.
The parameter estimation in NLME models is
not straightforward, due to the intractable
expression of the likelihood function.
In this work we present a Mathematica package
for parameter estimation in NLME models
where the longitudinal model is defined by
differential equations. The parameter
estimation problem is solved by the first-order
conditional estimation (FOCE) method with
exact gradients. The package is demonstrated
using data from a simulated drug concentration
model.
Statistical model
The dynamical model for an individual is
defined by a system of ODEs
     
together with an observation model
     
The individual parameters are linked to
population parameters by a functional
relationship   with the random
effects .
Extension to a longitudinal model described by
stochastic differential equations (SDEs) is also
supported.
Parameter estimation
The aim is to estimate the model parameters
  from a set of observations
    .
Since the random effects are unobserved, the
joint probability distribution is marginalized over the
unobserved quantities to obtain the likelihood
function.
 

   


Due to the normality assumptions in the model we
have
 



  


with residual     
Since the integral over is problematic, the
integral is approximated using a second order Taylor
expansion of , which yields the objective function
 

 
 


where the point
 
() is the value maximizing
(for a fixed ). This leads to a nested optimization
problem which is computationally demanding.
The Hessian can further be simplified to give the
so called first order conditional estimation (FOCE)
approximation.
Exact gradients
A quasi-Newton method with a finite difference
approximation of the gradient has traditionally
been used to compute the maximum likelihood
estimate.
In this work, we use sensitivity equations to
compute exact gradients for the optimization of
  and
.
The ODE system is differentiated with respect to
the model parameters to obtain the sensitivity
equations [1,2].
Exact gradients enable faster and more robust
optimization compared to finite differences, and
have been implemented in the NLME software
NONMEM 7.4 [3].
The package has previously been used in several
applications, see [4,5,6].
Modeling workflow
The measurements are collected as a list of time-
value pairs with easy-to-use plotting tools
available.
The NLME model is defined by an ODE system
and an observation model.
The estimation requires dataset, model and initial
guesses for the population parameters:
Several options are available:
The optimization returns an object which
contains the estimated model, including
parameter estimates and optimization history.
The model object can be used for easy plotting of
predictions
Acknowledgements
This project has been supported by the Swedish Foundation for Strategic Research,
which is gratefully acknowledged.
References
[1] Almquist, J., Leander, J. & Jirstrand, M. J Pharmacokinet Pharmacodyn (2015) 42:
191. https://doi.org/10.1007/s10928-015-9409-1
[2] Olafsdottir, H.K., Leander, J., Almquist, J. et al. AAPS J (2018) 20: 88.
https://doi.org/10.1208/s12248-018-0232-7
[3] Beal, S., Sheiner, L.B., Boekmann, A. & Bauer, R.J. NONMEM’s User’s Guides (ICON
Development Solutions, Ellicott City, MD, USA, 2009)
[4] Leander, J., Almquist, J., Ahlström, C. et al. AAPS J (2015) 17: 586.
https://doi.org/10.1208/s12248-015-9718-8
[5] Cardilin, T., Almquist, J., Jirstrand, M. et al. Cancer Chemother Pharmacol (2019).
https://doi.org/10.1007/s00280-019-03829-y
[6] Andersson, R., Jirstrand, M., Almquist, J,. Gabrielsson, J. European Journal of
Pharmaceutical Sciences (2019) 128:1. https://doi.org/10.1016/j.ejps.2018.11.015
Summary and conclusions
A Mathematica package for parameter
estimation in nonlinear mixed effects
models has been implemented and
demonstrated.
The package enables easy-to-use NLME
modeling, is free, and can be further
demonstrated upon request.
ResearchGate has not been able to resolve any citations for this publication.
Article
Full-text available
Purpose Radiation therapy, whether given alone or in combination with chemical agents, is one of the cornerstones of oncology. We develop a quantitative model that describes tumor growth during and after treatment with radiation and radiosensitizing agents. The model also describes long-term treatment effects including tumor regrowth and eradication. Methods We challenge the model with data from a xenograft study using a clinically relevant administration schedule and use a mixed-effects approach for model-fitting. We use the calibrated model to predict exposure combinations that result in tumor eradication using Tumor Static Exposure (TSE). Results The model is able to adequately describe data from all treatment groups, with the parameter estimates taking biologically reasonable values. Using TSE, we predict the total radiation dose necessary for tumor eradication to be 110 Gy, which is reduced to 80 or 30 Gy with co-administration of 25 or 100 mg kg⁻¹ of a radiosensitizer. TSE is also explored via a heat map of different growth and shrinkage rates. Finally, we discuss the translational potential of the model and TSE concept to humans. Conclusions The new model is capable of describing different tumor dynamics including tumor eradication and tumor regrowth with different rates, and can be calibrated using data from standard xenograft experiments. TSE and related concepts can be used to predict tumor shrinkage and eradication, and have the potential to guide new experiments and support translations from animals to humans.
Article
Full-text available
Nonlinear mixed effects (NLME) modeling based on stochastic differential equations (SDEs) have evolved into a promising approach for analysis of PK/PD data. SDE-NLME models go beyond the realm of standard population modeling as they consider stochastic dynamics, thereby introducing a probabilistic perspective on the state variables. This article presents a summary of the main contributions to SDE-NLME models found in the literature. The aims of this work were to develop an exact gradient version of the first-order conditional estimation (FOCE) method for SDE-NLME models and to investigate whether it enabled faster estimation and better gradient precision/accuracy compared to the use of gradients approximated by finite differences. A simulation-estimation study was set up whereby finite difference approximations of the gradients of each level were interchanged with the exact gradients. Following previous work, the uncertainty of the state variables was accounted for using the extended Kalman filter (EKF). The exact gradient FOCE method was implemented in Mathematica 11 and evaluated on SDE versions of three common PK/PD models. When finite difference gradients were replaced by exact gradients at both FOCE levels, relative runtimes improved between 6- and 32-fold, depending on model complexity. Additionally, gradient precision/accuracy was significantly better in the exact gradient case. We conclude that parameter estimation using FOCE with exact gradients can successfully be applied to SDE-NLME models.
Article
Full-text available
The first order conditional estimation (FOCE) method is still one of the parameter estimation workhorses for nonlinear mixed effects (NLME) modeling used in population pharmacokinetics and pharmacodynamics. However, because this method involves two nested levels of optimizations, with respect to the empirical Bayes estimates and the population parameters, FOCE may be numerically unstable and have long run times, issues which are most apparent for models requiring numerical integration of differential equations. We propose an alternative implementation of the FOCE method, and the related FOCEI, for parameter estimation in NLME models. Instead of obtaining the gradients needed for the two levels of quasi-Newton optimizations from the standard finite difference approximation, gradients are computed using so called sensitivity equations. The advantages of this approach were demonstrated using different versions of a pharmacokinetic model defined by nonlinear differential equations. We show that both the accuracy and precision of gradients can be improved extensively, which will increase the chances of a successfully converging parameter estimation. We also show that the proposed approach can lead to markedly reduced computational times. The accumulated effect of the novel gradient computations ranged from a 10-fold decrease in run times for the least complex model when comparing to forward finite differences, to a substantial 100-fold decrease for the most complex model when comparing to central finite differences. Considering the use of finite differences in for instance NONMEM and Phoenix NLME, our results suggests that significant improvements in the execution of FOCE are possible and that the approach of sensitivity equations should be carefully considered for both levels of optimization.
Article
Full-text available
Inclusion of stochastic differential equations in mixed effects models provides means to quantify and distinguish three sources of variability in data. In addition to the two commonly encountered sources, measurement error and interindividual variability, we also consider uncertainty in the dynamical model itself. To this end, we extend the ordinary differential equation setting used in nonlinear mixed effects models to include stochastic differential equations. The approximate population likelihood is derived using the first-order conditional estimation with interaction method and extended Kalman filtering. To illustrate the application of the stochastic differential mixed effects model, two pharmacokinetic models are considered. First, we use a stochastic one-compartmental model with first-order input and nonlinear elimination to generate synthetic data in a simulated study. We show that by using the proposed method, the three sources of variability can be successfully separated. If the stochastic part is neglected, the parameter estimates become biased, and the measurement error variance is significantly overestimated. Second, we consider an extension to a stochastic pharmacokinetic model in a preclinical study of nicotinic acid kinetics in obese Zucker rats. The parameter estimates are compared between a deterministic and a stochastic NiAc disposition model, respectively. Discrepancies between model predictions and observations, previously described as measurement noise only, are now separated into a comparatively lower level of measurement noise and a significant uncertainty in model dynamics. These examples demonstrate that stochastic differential mixed effects models are useful tools for identifying incomplete or inaccurate model dynamics and for reducing potential bias in parameter estimates due to such model deficiencies.
Article
This study presents an extensive dose-response-time (DRT) meta-analysis of the nicotinic acid-induced inhibition of free fatty acids and insulin release. The purpose was to quantify the implications of lacking exposure data when analysing complex pharmacodynamic systems. The DRT model successfully characterised various response behaviours—including time-delays, rebound, feedback mechanisms, and adaptation—on both the individual and the population level. Comparing the fitted DRT model to an exposure-driven reference analysis showed that bias and uncertainty were introduced in the parameter estimates. However, most estimates were within one standard error from the reference. In both approaches, a few parameters suffered from practical identifiability issues, likely due to large differences in half-lives of the different rate processes. Moreover, the optimal dosing strategies predicted by the DRT model differed slightly from those of the exposure-driven analysis, having a lower optimal steady-state reduction of free fatty acids exposure.
NONMEM's User's Guides (ICON Development Solutions
  • S Beal
  • L B Sheiner
  • A Boekmann
  • R J Bauer
Beal, S., Sheiner, L.B., Boekmann, A. & Bauer, R.J. NONMEM's User's Guides (ICON Development Solutions, Ellicott City, MD, USA, 2009)