This interactive tool shows how biomarker concentrations change in the body over time. Based on figures 9.1 and 9.2 in Molecular Epidemiology: Principles and Practices, the tool lets you adjust key parameters like biological half-life and exposure patterns. These adjustments show how biomarkers accumulate and are eliminated from the body. Can you reach a steady state where the diffusion rate into the body equals the diffusion rate out?
Accumulation phase: biomarker builds up during exposure
Elimination phase: concentration decreases after exposure stops
Half-life determines both accumulation and elimination rates
Half-life can differ per matrix
Half-life determines what period of exposure can possibly be reflected in a measurement
Exposure variability creates fluctuations in biomarker levels
Sampling timing: half-life determines optimal collection windows. Biomarkers with a relatively short half-life are more sensitive to fluctuations of exposure
Summary measures: recent vs. usual vs. peak vs. cumulative exposure assessment will summarize levels in distinct ways
Model logic
Details
The tool uses a one-compartment pharmacokinetic model with first-order kinetics. In this model, the elimination rate stays proportional to the substance’s concentration, and concentration changes reflect the balance between intake (exposure) and elimination rates. We model this process using two equations:
\[
\begin{aligned}
& k=\frac{\ln (2)}{t_{1 / 2}} \\
& C_{\text {new }}=C_{\text {old }}+\left(\operatorname{Exposure}(t)-k \times C_{\text {old }}\right) \times \Delta t
\end{aligned}
\] Here, \(k\) represents the elimination constant, \(t_{1/2}\) the half-life, \(C\) the concentration, and \(\Delta t\) the time step (1 hour).
Exposure senarios
The model includes four different exposure patterns, each based on (somewhat) realistic environmental or occupational conditions. The dose for any hour, \(D(t)\), follows these patterns:
Constant Environmental: steady exposure at the average dose level. The exposure is the same 24/7: \[
D(t)=D_{\text {avg }}
\]
Constant Occupational: restricts exposure to weekdays during standard work hours (9 to 17 o’clock): \[D(t) = \begin{cases}
D_{\text{avg}} & \text{if weekday and } 9 \leq h < 17 \\
0 & \text{otherwise}
\end{cases}\]
Variable Environmental: this represents fluctuating environmental exposures with daily peaks. There’s a baseline exposure that gets boosted during certain hours, plus random day-to-day variation: \[D(t) = \begin{cases}
D_{\text{avg}} \cdot (1+\epsilon_V) & \text{during peak hours} \\
0.4 \cdot D_{\text{avg}} \cdot (1+\epsilon_V) & \text{during off-peak hours}
\end{cases}\]
Variable Occupational: combines occupational timing with random fluctuation: \[D(t) = \begin{cases}
D_{\text{avg}} \cdot (1+\epsilon_V) & \text{if weekday and } 9 \leq h < 17 \\
0 & \text{otherwise}
\end{cases}\]
The variability component \(\epsilon_V\) introduces randomness through the formula \((U(0,1)-0.5) \times V\), where \(V\) represents the variability factor you set and \(U(0,1)\) generates a random number between 0 and 1 from a uniform distribution.
Where this model simplifies
Details
This single-compartment pharmacokinetic (PK) model is a useful starting point to get a sense of the basic relationship between exposure and internal concentration. However, it simplifies many biological realities of course. In reality, the body is not a single, well-mixed compartment, an exposure dose is not simply added, and the substance is not eliminated from a single compartment at a constant rate. I’m not a toxicologist myself - so the nuances of these processes are outside of my area of expertise - but I have tried to learn the (very) basics. Below are my thoughts on where the reality is more complicated than implied by this model.
First, the model assumes chemicals enter and exit the body instantly and completely and do so through a single route, but actual ADME processes (Absorption, Distribution, Metabolism, Excretion) involve multiple, complex routes and physical barriers following exposure. Namely, as a result of the gut wall, skin, and lungs absorption takes time, and the amount of a chemical that makes it into the bloodstream (its bioavailability) after exposure is rarely 100%. For example, inhaled chemicals bypass the liver and enter arterial blood directly, giving them immediate access to sensitive organs like the brain and heart. Ingested substances, on the other hand, first pass through the liver, where enzymes can partially destroy (= first-pass effect) them before they ever reach general circulation. Skin absorption follows yet another route by delivering chemicals into venous blood. Each route creates different kinetic patterns that our single-compartment model does not capture.
Second, once absorbed, chemicals do not distribute uniformly throughout the body as the model assumes. The circulatory system transports substances unevenly, and chemicals partition between blood and tissues based on blood flow, tissue composition, and the chemical’s own properties. For example, lipophilic (lipid-soluble) compounds like PCBs and DDT (but also some vitamins) concentrate heavily in fatty tissues, while water-soluble substances like carbohydrates and amino acids remain largely in blood and other body water. This partitioning creates multiple body reservoirs/compartments with vastly different uptake and release rates that our model cannot capture. Specifically, partitioning can create a two-phased elimination pattern with rapid initial clearance from blood and organs, followed by very slow release from fat stores. During periods of weight loss or metabolic stress, stored chemicals can remobilize and create concentration spikes in circulation, causing internal re-exposure long after external exposure has ceased. The single-compartment model does not show these dynamic phases caused by such interplay between storage and release.
Lastly, the model assumes elimination (which includes both metabolism and excretion) occurs at a fixed, predictable rate. However, this assumption can break down at high exposure levels when metabolic systems become saturated. Namely, biotransformation systems in the liver such as the Cytochrome P450 enzymes - which can either detoxify substances or convert them into more harmful metabolites - have a finite capacity that when exceeded, results in lower elimination rates. Such a state is better described by so called zero-order kinetics (Michaelis-Menten kinetics), where a constant amount is eliminated per unit time, regardless of how high the concentration gets. In the end, such a violation of our first-order kinetics assumption means that chemicals can persist longer in the body than predicted at very higher exposure/concentration levels by our model.
And in reality, all of these ‘parameters’ can differ from person to person.. that may sound hopeless but in some cases this variation between people can enable better causal inferences on the health effects of chemicals through mendelian randomization!
Future stuff
Details
Originally, I wanted to create this little interactive visualization to illustrate variability in biomarkers and demonstrate how sampling design and summary measures matter in epidemiological studies. I use within-subject variation for this demonstration, but effective epidemiological studies also take the between-person variation into account, so I hope to incorporate the latter as well. I’m not sure how yet though.