estimate the bioavailability of a drug -凯发k8网页登录
in this example, you will use the parameter estimation capabilities of simbiology™ to calculate f
, the bioavailability, of the drug ondansetron. you will calculate f
by fitting a model of absorption and excretion of the drug to experimental data tracking drug concentration over time.
this example requires optimization toolbox™.
background
most drugs must be absorbed into the bloodstream in order to become active. an intravenous (iv) administration of a drug is one way to achieve this. however, it is impractical or impossible in many cases.
when a drug is not given by iv, it follows some other route into the bloodstream, such as absorption through the mucous membranes of the gi tract or mouth. drugs administered through a route other than iv administration are generally not completely absorbed. some portion of the drug is directly eliminated and never reaches the bloodstream.
the percentage of drug absorbed is the bioavailability of the drug. bioavailability is one of the most important pharmacokinetic properties of a drug. it is useful when calculating safe dosages for non-iv routes of administration. bioavailability is calculated relative to an iv administration. when administered intravenously, a drug has 100% bioavailability. other routes of administration tend to reduce the amount of drug that reaches the blood stream.
modeling bioavailability
bioavailability can be modeled using one of several approaches. in this example, you use a model with a gi compartment and a blood plasma compartment. oral administration is modeled by a dose event in the gi compartment. iv administration is modeled by a dose event in the blood plasma compartment.
the example models the drug leaving the gi compartment in two ways. the available fraction of the drug is absorbed into the bloodstream. the remainder is directly eliminated. the total rate of elimination, ka
, is divided into absorption, ka_central
, and direct elimination, cl_oral
. the bioavailability, f
, connects total elimination with ka_central
and cl_oral
via two initial assignment rules.
ka_central = f*ka cl_oral = (1-f)*ka
the drug is eliminated from the blood_plasma
compartment through first-order kinetics, at a rate determined by the parameter cl_central
.
load the project that contains the model m1
.
sbioloadproject('bioavailability.sbproj','m1');
format of the data for estimating bioavailability
you can estimate bioavailability by comparing intrapatient measurements of drug concentration under different dosing conditions. for instance, a patient receives an iv dose on day 1, then receives an oral dose on day 2. on both days, we can measure the blood plasma concentration of the drug over some period of time.
such data allow us to estimate the bioavailability, as well as other parameters of the model. intrapatient time courses were generated for the drug ondansetron, reported in [2] and reproduced in [1].
load the data, which is a table.
load('ondansetron_data.mat');
convert the data to a groupeddata
object because the fitting function sbiofit
requires it to be a groupeddata
object.
gd = groupeddata(ondansetron_data);
display the data.
gd
gd = 33x5 groupeddata time drug group iv oral ________ _______ _____ ___ ____ 0 nan 1 8 nan 0.024358 69.636 1 nan nan 0.087639 58.744 1 nan nan 0.15834 49.824 1 nan nan 0.38895 44.409 1 nan nan 0.78392 40.022 1 nan nan 1.3182 34.522 1 nan nan 1.8518 28.972 1 nan nan 2.4335 25.97 1 nan nan 2.9215 22.898 1 nan nan 3.41 20.75 1 nan nan 3.8744 18.095 1 nan nan 4.9668 13.839 1 nan nan 5.8962 10.876 1 nan nan 7.8717 6.6821 1 nan nan 10.01 4.0166 1 nan nan 12.08 2.5226 1 nan nan 15.284 0.97816 1 nan nan 0 nan 2 nan 8 0.54951 5.3091 2 nan nan 0.82649 14.262 2 nan nan 1.0433 19.72 2 nan nan 1.4423 21.654 2 nan nan 2.0267 22.144 2 nan nan 2.5148 19.739 2 nan nan 2.9326 17.308 2 nan nan 3.3743 15.599 2 nan nan 3.9559 13.906 2 nan nan 4.9309 10.346 2 nan nan 6.1155 7.4489 2 nan nan 8.0002 5.1919 2 nan nan 10.091 2.9058 2 nan nan 12.228 1.6808 2 nan nan
the data have variables for time, drug concentration, grouping information, iv, and oral dose amounts. group 1 contains the data for the iv time course. group 2 contains the data for the oral time course. nan
in the drug column means no measurement was made at that time. nan
in one of the dosing columns means no dose was given through that route at that time.
plot the pharmacokinetic profiles of the oral dose and iv administration.
plot(gd.time(gd.group==1),gd.drug(gd.group==1),'marker',' ') hold on plot(gd.time(gd.group==2),gd.drug(gd.group==2),'marker','x') legend({'8 mg iv','8 mg oral'}) xlabel('time (hour)') ylabel('concentration (milligram/liter)')
notice there is a lag phase in the oral dose of about an hour while the drug is absorbed from the gi tract into the bloodstream.
fitting the data
estimate the following four parameters of the model:
total forward rate out of the dose compartment,
ka
clearance from the
blood_plasma
compartment,clearance
volume of the
blood_plasma
compartmentbioavailability of the orally administered drug,
f
set the initial values of these parameters and specify the log transform for all parameters using an estimatedinfo
object.
init = [1 1 2 .8]; estimated_parameters = estimatedinfo({'log(ka)','log(clearance)',... 'log(blood_plasma)','logit(f)'},'initialvalue',init);
because ka
, clearance
, and blood_plasma
are positive physical quantities, log transforming reflects the underlying physical constraint and generally improves fitting. this example uses a logit transform on f
because it is a quantity constrained between 0 and 1. the logit transform takes the interval of 0 to 1 and transforms it by taking the log-odds of f
(treating f
as a probability). for a few drugs, like theophyline, constraining f
between 0 and 1 is inappropriate because oral bioavailability can be greater than 1 for drugs with unusual absorption or metabolism mechanisms.
next, map the response data to the corresponding model component. in the model, the plasma drug concentration is represented by blood_plasma.drug_central
. the corresponding concentration data is the drug
variable of the groupeddata object gd
.
responsemap = {'blood_plasma.drug_central = drug'};
create the dose objects required by sbiofit
to handle the dosing information. first, create the iv dose targeting drug_central
and the oral dose targeting dose_central
.
iv_dose = sbiodose('iv','targetname','drug_central'); oral_dose = sbiodose('oral','targetname','drug_oral');
use these dose objects as template doses to generate an array of dose objects from the dosing data variables iv
and oral
.
doses_for_fit = createdoses(gd,{'iv','oral'},'',[iv_dose, oral_dose]);
estimate parameters using sbiofit
.
opts = optimoptions('lsqnonlin','display','final'); results = sbiofit(m1, gd,responsemap,estimated_parameters,doses_for_fit,... 'lsqnonlin',opts,[],'pooled',true);
local minimum possible. lsqnonlin stopped because the final change in the sum of squares relative to its initial value is less than the value of the function tolerance.
interpreting results
first, check if the fit is successful.
plot(results)
overall, the results seem to be a good fit. however, they do not capture a distribution phase over the first hour. it might be possible to improve the fit by adding another compartment, but more data would be required to justify such an increase in model complexity.
when satisfied with the model fit, you can draw conclusions about the estimated parameters. display the parameters stored in the results object.
results.parameterestimates
ans=4×3 table
name estimate standarderror
________________ ________ _____________
{'ka' } 0.77947 0.1786
{'clearance' } 45.19 2.8674
{'blood_plasma'} 138.73 4.5249
{'f' } 0.64455 0.066013
the parameter f
is the bioavailability. the result indicates that ondansetron has approximately a 64% bioavailability. this estimate in line with the literature reports that oral administration of ondansetron in the 2-24 milligram range has a 60% bioavailability [1,2].
blood_plasma
is the volume of distribution. this result is reasonably close to the 160 liter vd reported for ondansetron [1]. the estimated clearance is 45.4 l/hr.
ka
does not map directly onto a widely reported pharmacokinetic parameter. consider it from two perspectives. we can say that 64% of the drug is available, and that the available drug has an absorption parameter of 0.4905/hr. or, we can say that drug clearance from the gi compartment is 0.7402/hr, and 64% of the drug cleared from the gi tract is absorbed into the bloodstream.
generalizing this approach
lsqnonlin
, as well as several other optimization algorithms supported by sbiofit
, are local algorithms. local algorithms are subject to the possibility of finding a result that is not the best result over all possible parameter choices. because local algorithms do not guarantee convergence to the globally best fit, when fitting pk models, restarting the fit with different initial conditions multiple times is a good practice. alternatively, sbiofit
supports several global methods, such as particle swarm, or genetic algorithm optimization. verifying that a fit is of sufficient quality is an important step before drawing inferences from the values of the parameters.
this example uses data that was the mean time course of several patients. when fitting a model with data from more patients, some parameters might be the same between patients, some not. such requirements introduce the need for hierarchical modeling. you can perform hierarchical modeling can by configuring the categoryvariablename
flag of estimatedinfo
object.
references
roila, fausto, and albano del favero. "ondansetron clinical pharmacokinetics." clinical pharmacokinetics 29.2 (1995): 95-109.
colthup, p. v., and j. l. palmer. "the determination in plasma and pharmacokinetics of ondansetron." european journal of cancer & clinical oncology 25 (1988): s71-4.