calculate nca parameters and fit model to pk/pd data using simbiology model analyzer -凯发k8网页登录

main content

calculate nca parameters and fit model to pk/pd data using simbiology model analyzer

this example shows how to perform noncompartmental analysis to calculate nca parameters and estimate the tumor growth model [1] parameters from experimental data using nonlinear regression in the simbiology model analyzer app.

tumor growth model

the model used in this example is a simbiology® implementation of the pharmacokinetic/pharmacodynamic (pk/pd) model by simeoni et al. it quantifies the effect of anticancer drugs on tumor growth kinetics from in vivo animal studies. the drug pharmacokinetics are described by a two-compartment model with iv bolus dosing and linear elimination (ke) from the central compartment. tumor growth is a biphasic process with an initial exponential growth followed by linear growth. the growth rate of the proliferating tumor cells is described by

l0*x1[1 (l0l1*w)ψ]1ψ

l0, l1, and ψ are tumor growth parameters, x1 is the weight of the proliferating tumor cells, and w is the total tumor weight. in the absence of any drugs, the tumor consists of proliferating cells only, that is, w = x1. in the presence of an anticancer agent, a fraction of the proliferating cells is transformed into nonproliferating cells. the rate of this transformation is assumed to be a function of the drug concentration in the plasma and an efficacy factor k2. the nonproliferating cells x2 go through a series of transit stages (x3 and x4) and are eventually cleared from the system. the flow-through of the transit compartments is modeled as a first-order process with the rate constant k1.

the simbiology model makes these adjustments to the pharmacodynamics of tumor growth:

  • instead of defining the tumor weight as the sum of x1, x2, x3, and x4, the model defines the tumor weight by the reaction named increase, null → tumor_weight, with the reaction rate (2*l1*l0*x12l1 2*l0*x1)*tumor_weight.

    tumor_weight is the total tumor weight, x1 is the weight of the proliferating tumor cells, and l0, and l1 are tumor growth parameters.

  • similarly, the model defines the decrease in tumor weight by the reaction named decay, tumor_weight → null, with the reaction rate k1*x4. the constant k1 is the forward rate parameter, and x4 is the last species in the series of transit reductions in tumor weight.

  • ke is a function of the clearance and the volume of the central compartment: ke = cl_central/central.

pk/pd data description

the experimental (synthetic) data contains measurements from eight patients for three responses: measured drug concentrations in the central compartment, in the peripheral compartment, and measured tumor weight. the data also contains the dosing information, and each patient receives an iv dose at day 7.

the data set contains the following columns.

  • id — patient ids

  • time — times when measurements are taken

  • centralconc — drug concentration in the central compartment

  • peripheralconc — drug concentration in the peripheral compartment

  • dose — dosing information for each patient

  • k1 and cl_central — variant columns which contain group-specific values for the parameters k1 and cl_central.

nan values are used whenever there is no measurement or no dose is given.

load tumor growth model and data

  1. at the command line, enter:

    simbiologymodelanalyzer("tumor_growth_fitpkpd.sbproj");
  2. simbiology model analyzer opens. in the browser pane, the models folder contains the tumor growth model and the data1 folder contains the experimental data along with the dosing information.

  3. classify the data columns so that such variable classifications can be used by the fit program later in the example. the app performs automatic classifications as appropriate (such as the id, time, dose columns). but for the measured response data columns such as centralconc, you need to manually classify them as the dependent variables. to do so, first open the data sheet as follows. in the browser pane, expand the data1 folder and double-click datasheet1.

  4. in the data1 table, double-click classification under centralconc. select dependent. repeat the same process for peripheralconc and tumorweight. you can leave the k1 and cl_central columns unset.

    note

    the app has automatically classified:

    • the id column as group (a grouping variable).

    • the time column as independent (an independent variable).

    • the dose column as dose1 (a dosing variable). if there are more than one dose columns, they can be classified as dose2, dose3, and so on.

visualize experimental data

after you load the data, you can visualize the measured responses.

  1. in the browser pane, click data1.

  2. on the home tab, in the plot section, click the time plot. the app generates a time plot of all three responses, namely: centralconc, peripheralconc, and tumorweight.

    in the default time plot, responses correspond to the measured responses and are plotted using different line styles. scenarios refers to different groups (eight patients) in the data and are plotted using different colors.

    tip

    plots are backed by data that are currently present in the app workspace. plots are not snapshots. when the data (either experimental data or simulation results) is removed or changed, the plots are also updated according to the changes in the underlying data.

customize data visualization

the steps in this section are optional and are not necessary for fitting. you can customize the plot to make it clearer. for example, you can plot the pd data (tumorweight) on a different axis than the pk data (centralconc and peripheralconc). to do so, create two different groups (sets) of responses, where the first set contains only tumorweight and the second set contains centralconc and peripheralconc.

  • right-click tumorweight (gram) in the responses table and select create new set. the app creates set 1 and set 2. set 1 contains only tumorweight, which is now plotted on a different axis than set 2, which contains centralconc and peripheralconc.

    the visual channels table now contains sets. this table is a summary table of all slicing variables that are currently present in the plot and their corresponding plot styles. in this current plot, the slicing variables are sets, responses, and scenarios.

    tip

    you can slice data using different slicing variables. each slicing variable appears in the plot with a different visual style (or channel) such as color, line style, and axes position. slicing variables can represent attributes of data, such as responses or scenarios (that is, groups or simulation runs). slicing variables can also be covariates or parameter values associated with a scenario or group. by default, the app provides slicing variables for different response variables and different scenarios in the plotted data. you can add other visual styles (or channels) for sets of responses and associated parameter or covariate variables.

you can also group the responses based on different dose amounts that the patients receive. there are three different dose groups: 30, 75, and 150 mg.

  1. in the visual channels table, at the dose row, double-click the empty cell and select color. a red indicator appears because another slicing variable (scenarios) has the same plot style. clear the style (visual channel) for scenarios by selecting empty.

  2. in the dose table, the app has automatically binned the dose amounts. set number of bins to 3. you can now see that the dose amount has an impact on the tumor size. the higher the dose is, the smaller the tumor becomes.

  3. you can also query the corresponding dose group from each line by showing its data tip. press ctrl and click a blue line to display its data tip. to remove it, ctrl click again anywhere on the same line.

perform noncompartmental analysis (nca)

using the drug pharmacokinetic data, you can estimate nca parameters. nca is model agnostic and can give insights into the drug pharmacokinetics without any underlying assumptions. you can use some of the nca results as initial estimates when calibrating the model to the data, as discussed later in this example. for details on the list of available nca parameters and their formulas, see noncompartmental analysis.

nca program setup

  1. on the home tab, select program > non-compartmental analysis. a new program (program1) appears.

  2. the data setup step of the program defines the data set to use for the nca analysis. in this example, the program automatically selects data1.

  3. the nca execution step defines the data column associations and algorithm details. in the definition table, set concentration to centralconc. leave the other settings unchanged.

  4. on the home tab, click run.

once the nca analysis is complete, the app opens a new datasheet containing the results.

the program also saves the results in the lastrun folder of the program by default. to access the results, in the browser pane, expand the program1 folder. then expand lastrun folder. the nca results are stored in the table named results. for details about calculated nca parameters, see noncompartmental analysis.

export results to matlab workspace

you can export the nca results to the matlab® workspace and perform further data analyses at the command line.

  1. right-click results. select export data to matlab workspace.

  2. the simbiology data export dialog box opens. change the name of the variable to ncatable. click ok.

after you export the data to the matlab workspace, you can analyze the data at the command-line. for instance, you can calculate the average drug clearance from the nca data and use it as the model parameter value.

estimate model parameters using nonlinear regression

simbiology provides different regression techniques to estimate model parameters based on experimental data. this example details the steps for using the nonlinear regression method lsqnonlin (requires optimization toolbox™) to fit the model to the data. if you do not have optimization toolbox, the app uses fminsearch instead. for the purposes of the example, only some of the pk/pd model parameters are estimated, namely: k1, l0, l1, cl_central, k12, and k21.

fit program setup

  1. from the home tab, select program > fit data. a new program (program2) appears on a new tab. the data and model steps have been prepopulated with data1 and tumor growth model, respectively.

  2. by default, the fit step autogenerates plots after the fitting is complete. disable the plot generation by clicking the plot icon at the top of the fit program step for now. the plots will be explored later in the example.

  3. in the data map table, define the mapping between the model components and the data columns from the input data.

    • the group row identifies which column in the data is a grouping variable, such as patient ids.

    • the independent row identifies which column in the data is an independent variable, such as time.

    • the response row identifies which response or measurement data column corresponds to which model component. if there are multiple response data, you can add more response rows by clicking the response button at the bottom of the data map table. to delete a response from the table, right-click and select delete.

    • the dose from data row defines which column in the data maps to which model component as a dose target. if there are multiple dose columns, you can add more rows by clicking the dose button.

    • the variant from data row defines which column in the data contains alternative parameter values for which model component. click the variant button to see the row or add more variants.

    note

    in this example, the app uses the classification information from the data sheet of the input data and maps the id column as the grouping variable (defined by the group row in the table), and time column as an independent variable (defined by the independent row in the table). it has also identified centralconc, peripheralconc, and tumorweight as response columns.

    1. in the first response row, next to centralconc, double-click the cell component, and enter central.drug as the corresponding model component for that measurement data column.

    2. similarly, map the peripheralconc column to peripheral.drug.

    3. map tumorweight to [tumor growth model].tumor_weight.

    4. map the dose column to central.drug to indicate that the drug species in the central compartment is being dosed.

  4. leave the variant and dose setup table as is because there is no group-specific doses or variants being used in this example. for details on how to use this table, see .

  5. in the fit step, define the model parameters to estimate in the estimated parameters table. double-click the empty cell in the estimated parameters column and type k1. the app shows model components with matching names. select k1 from the list.

    by default, the parameter is log-transformed as indicated by the transformation log. you can change the transformation to no transformation none, probit, or logit transformation. for details, see . for this example, keep the default log transform because it often improves the convergence. the initial untransformed value is automatically set to the model value which is 0.5.

  6. enforce the biological parameters to stay positive by specifying the untransformed lower bound and untransformed upper bound as 1e-5 and 10, respectively.

  7. similarly, add the following parameters: cl_central, l0, l1, k12, and k21.

  8. select pooled fit to estimate one set of parameters for all patients (population fit). if you do not select pooled fit, the app estimates one set of parameters for each patient (individual fit).

  9. the default error model is the constant error model. simbiology supports constant, proportional, exponential, and combined error models. for details, see . for now, use the constant error model.

  10. keep the rest of the fitting settings unchanged. these settings are

    • estimation method — the default method is lsqnonlin if you have optimization toolbox. if you do not, the app uses fminsearch.

      for more information, see supported methods for parameter estimation in simbiology.

    • algorithm settings — most common options for the estimation method. click to expand the section and see the options. to see the description of each option, click the info icon to the right of the header.

    • advanced algorithm settings — advanced settings for the estimation method. the table is empty by default.

run fit program

after you set the fitting options, you can run the fit step.

  1. at the top of the fit step, click the run this program step button.

    by default, the fit step shows the progress of parameter estimation in a separate figure. the progress plot shows the live status of parameter estimation and fitting quality measures such as log likelihood. for details, see .

  2. the progress plot shows that the fit converged. you can close the progress plot.

    if you are using fminsearch, the fit can fail to converge due to reaching the maximum number of iterations. you can increase maxiter in the algorithm settings, but for the purposes of this example, you can continue completing the steps without doing so.

visualize fit results

once the parameter estimation is complete, the fit results are shown in a new data sheet. the datasheet contains parameter estimates and other information related to fit quality measures, such as aic and bic, which can be useful to compare the performance of different error models.

in addition to quality statistics, you can also view various fit plots, such as actual versus predicted plots and residual distribution plots.

  1. in the browser pane, expand program2 > lastrun, which contains results and simdatai. results contains estimated parameter values and fit statistics. simdatai contains the simulated model responses for each individual (patient or group) using the estimated parameter values.

  2. click results. available fit plots are automatically listed in the plot section on the home tab. then select act vs pred from the list.

    the actual versus predicted plot appears on a separate tab. the predicted responses are plotted on the x-axis and the observed (experimental) responses are plotted on the y-axis.

    you can change the plot to other supported plots by selecting one of the plots from the style section in the property editor. if you want the new plot on its own separate tab and you do not want to reuse the existing plot tab, select the plot from the plot section on the home tab.

  3. change the plot to a residual distribution plot by selecting res dist in the style section.

    the plot shows whether the residuals for each response are normally distributed. in an ideal normal probability plot of residuals, the residuals line up along the diagonal line across the plot and the histograms indicate a normal fit. however, from the plot, the residuals for all three responses, especially centralconc and peripheralconc, do not seem to be normally distributed. it could be an indication that the constant error model assumption is incorrect.

compare different error models

the following steps show how to change the error model to an exponential error model to fit the data again and compare the fit statistics of two different error models.

save fit results.  before fitting the data again using the exponential error model, save the constant error model result in a separate folder. otherwise, the program, by default, overwrites results from the lastrun folder every time you run the fit.

  1. right-click the lastrun folder of the fit program in the browser pane.

  2. select save data.

  3. in the save data dialog, enter fit_constant as the data name.

rerun fit with exponential error model.  after you save the data, you can rerun the fit program with a different error model.

  1. return to the fit program by clicking the program2 tab. in the error model section, select exponential.

  2. at the top of the fit step, click the run this program step button.

  3. close the progress plot after the fit completes.

  4. if you closed the previous datasheet (datasheet3) that contains the fit statistics from the previous fit, reopen the datasheet. to do so, in the browser pane, expand program2 > fit_constant. then double-click datasheet3.

  5. from the lastrun folder, drag results onto datasheet3. new columns (program2_lastrun) containing the latest fit results are added next to the previous fit results (program2_fit_constant).

    the table is updated as follows.

    the statistics table compares the fit quality measures. from the comparison, both the aic and bic of the fit using the exponential error model are smaller than those of the previous fit. this indicates that the exponential error model fits the data better than the constant error model. the larger log likelihood of the exponential error model also indicates it is a better fit.

  6. next, look at the residual distribution plot. click results from the lastrun folder. then click residual dist from the plot section on the home tab.

    compared to the residual distributions of the constant error model, the residual distributions from the exponential error model look more normal, indicating that the exponential error model fits the data better.

calculate confidence intervals

another way to assess the quality of fit results is to compute 95% confidence intervals for the estimated parameters and model predictions — that is, model simulation results using the estimated parameters. this step requires statistics and machine learning toolbox™.

  1. click the program2 tab. click the green ( ) icon at the upper left and select confidence interval. a confidence interval step appears following the fit step.

  2. at the top of the confidence interval step, disable the autogeneration of plots by clicking the plot icon. for both parameter confidence intervals and prediction confidence intervals, use the default method gaussian and 95% confidence level. click the run this program step button to compute confidence intervals.

    for parameter confidence intervals, the supported methods are gaussian, profilelikelihood, and bootstrap.

    for prediction confidence intervals, the supported methods are and .

  3. once completed, the results are stored as parameterci and predictionci in the lastrun folder of the program. parameterci contains 95% confidence intervals for the estimated parameters. predictionci contains 95% confidence intervals for the model predictions.

  4. plot 95% confidence intervals for the estimated parameters. click parameterci in the browser pane and select confidence in the plot section.

    the confidence interval for each estimated parameter is shown in a new plot. the plot indicates the successful computation of the confidence intervals for all estimated parameters.

    depending on the outcome (status) of the confidence interval estimation, the app plots the results differently.

    • if the status of confidence interval estimation is a success (as in the above plot), the app uses the first default color (blue) to plot a line and a centered dot for every parameter estimate. the app also plots a box to indicate the confidence intervals.

    • if the status is constrained or estimable, the app uses the second default color (red) and plots a line, centered dot, and box to indicate the confidence intervals.

    • if the status is not estimable, the app plots only a line and a centered cross in red.

    • if there are any transformed parameters with estimated values that are 0 (for the log transform) and 0 or 1 (for the probit or logit transform), no confidence intervals are plotted for those parameter estimates.

    for more details on the definitions of different statuses, see .

    you can also change the layout of the plot in plot settings.

    • the 'split' layout displays the confidence interval for each parameter estimate on a separate axis.

    • the 'grouped' layout displays all confidence intervals on one axis, grouped by parameter estimates. each estimated parameter is separated by a vertical black line.

    in both cases, the parameter bounds defined in the original fit are marked by square brackets. the app uses vertical dotted lines to group confidence intervals of parameter estimates that have been computed in a common fit.

  5. similarly, plot 95% confidence intervals for the model predictions. click predictionci in the browser pane and select confidence in the plot section.

    the plot indicates the successful computation of the confidence intervals because there are no red plot. the plotting behavior differs depending on the outcome () of the confidence interval calculation.

    • if the status is constrained or not estimable, the app uses the second default color (red) to plot the confidence intervals.

    • otherwise, the app uses the first default color (blue) and plots the confidence intervals as shaded areas (as in the above plot).

    for details, see and .

visualize simulation statistics and overlay experimental data using percentile plot

the percentile plot lets you visualize simulation results and statistics that can be overlaid with experimental data. for example, you can plot 5th and 95th percentile curves of simulation data over time instead of seeing the individual time courses. you can also visualize the mean, standard deviation, minimum, and maximum of simulation and experimental data. for details, see .

note

if you have not completed the prior steps that generated the required results to continue, you can load the completed project instead. enter the following command.

simbiologymodelanalyzer("tumor_growth_fitpkpd_completed.sbproj")
  1. in the lastrun folder of program2, select simdatai > [tumor growth model].tumor_weight.

  2. on the home tab, click percentile.

    the percentile plot shows the 5th and 95th percentile curves by default.

  3. select data1 > tumorweight. drag and drop it on to the plot.

    by default, the display type of the experimental data is automatically set to mean, which shows the mean measurement at each time with ±1 standard deviation. if you want to visualize only the raw data, double-click mean and select raw data. for this example, keep the mean display.

  4. in the percentiles section, for the show percentiles (%) option, enter 10,80 to show the 10th and 80th percentiles.

  5. change display style to both lines and shading.

  6. in the mean section, show the minimum and maximum response data points at each time by setting show min/max to true.

  7. in the data1 section, change show raw data fraction (%) to 100 to show all the underlying raw data points. you can also enter a custom percentage number. you can also see the bins used to generate the summary statistics. change show bin edges to true.

    the percentile plot is updated as follows. the asterisks (*) represent the calculated minimum and maximum values after interpolation, and the dots (.) represent original data points.

  8. you can also specify a custom number of bins or specific bin edges. for instance, change binning method to specify number of bins. then enter 10 for number of time point bins. the percentile plot is updated as follows. for details on how the app computes the underlying statistics, see .

after parameter estimation, you can set the model values to the parameter estimates and perform other analyses. for instance, you can find out important model parameters using and vary the sensitive parameters to investigate model variability by using virtual patients.

references

[1] simeoni, monica, paolo magni, cristiano cammia, giuseppe de nicolao, valter croci, enrico pesenti, massimiliano germani, italo poggesi, and maurizio rocchetti. “predictive pharmacokinetic-pharmacodynamic modeling of tumor growth kinetics in xenograft models after administration of anticancer agents.” cancer research 64, no. 3 (february 1, 2004): 1094–1101.

[2] koch, gilbert, antje walz, gezim lahu, and johannes schropp. “modeling of tumor growth and anticancer effects of combination therapy.” journal of pharmacokinetics and pharmacodynamics 36, no. 2 (april 2009): 179–97.

see also

related topics

网站地图