⌇

Hill Equation

Math
Run the live example Free · no sign-up · runs in your browser

The HillEquation block implements the classic sigmoidal Emax⁡E_{\max} pharmacodynamic dose-response model. It describes the non-linear relationship between drug concentration at the active biological receptor site (CeC_e) and the resulting physiological effect (EE). Widely used in anesthesia automation, pharmacology, bio-engineering, and enzymatic saturation kinetics, the block features a live Dose-Response Curve Preview (HillEquationInsights) in the Property Editor that plots E(Ce)E(C_e) over [0,3⋅EC50][0, 3 \cdot \text{EC}_{50}] along with quantitative badges for E(0)E(0), E(EC50)E(\text{EC}_{50}), and E(∞)E(\infty).

Mathematical Model

The receptor fractional occupancy occ⁡(Ce)∈[0,1]\operatorname{occ}(C_e) \in [0, 1] is modeled using the Hill formulation:

occ⁡(Ce)=CeγEC50γ+Ceγ=11+(EC50Ce)γ\operatorname{occ}(C_e) = \frac{C_e^\gamma}{\text{EC}_{50}^\gamma + C_e^\gamma} = \frac{1}{1 + \left(\frac{\text{EC}_{50}}{C_e}\right)^\gamma}

where Ce≥0C_e \ge 0 is the effect-site drug concentration, EC50\text{EC}_{50} (ec50) is the median effective concentration, and γ\gamma (gamma) is the Hill cooperativity exponent. If Ce≤0C_e \le 0, occupancy evaluates cleanly to 0.00.0.

The resulting clinical or biological effect EE is evaluated relative to the uninhibited baseline E0E_0 (e0) and maximum achievable effect change Emax⁡E_{\max} (emax):

E(t)=E0−Emax⁡⋅occ⁡(Ce(t))E(t) = E_0 - E_{\max} \cdot \operatorname{occ}(C_e(t))

At zero concentration (Ce=0C_e = 0), E=E0E = E_0. At median concentration (Ce=EC50C_e = \text{EC}_{50}), receptor occupancy is exactly 0.50.5 regardless of γ\gamma, producing half-maximal effect E=E0−0.5Emax⁡E = E_0 - 0.5 E_{\max}. As Ce→∞C_e \to \infty, effect saturates at E=E0−Emax⁡E = E_0 - E_{\max}.

Inputs & Outputs

Direction ID Label Type Status
→ In in1 Ce number Required
← Out effect Effect number Output
← Out occupancy Occ. number Output

Parameters

Parameters Label Type Default Description
e0 Baseline (E0) number 93 Effect at zero concentration, for example an awake BIS of 93
emax Maximum Effect (Emax) number 93 Largest possible drop from the baseline
ec50 EC50 number 3.4 Concentration giving half the maximum effect, in the unit of Ce
gamma Hill Slope (γ) number 3 Steepness of the curve: 1 is hyperbolic (Michaelis-Menten), above 1 sigmoidal

Usage Examples

Example 1: Propofol Effect-Site Concentration to Bispectral Index (BIS) Mapping

Modeling anesthetic depth during surgical induction. An effect-site concentration of propofol CeC_e is delivered via a pharmacokinetic compartmental model. Setting e0 = 93.0, emax = 93.0, ec50 = 3.4 μg/mL\mu\text{g/mL}, and gamma = 3.0. When CeC_e rises from 00 to 3.4 μg/mL3.4\ \mu\text{g/mL}, the output BIS index drops from 93.093.0 (fully awake) to 46.546.5 (surgical anesthesia level), saturating safely near zero during high bolus infusions.

Example 2: Neuromuscular Blockade Muscle Relaxation Monitoring

Modeling rocuronium or vecuronium neuromuscular blocking agents with baseline twitch height E0=100%E_0 = 100\% and Emax⁡=100%E_{\max} = 100\%. Configuring ec50 = 1.2 μg/mL\mu\text{g/mL} and gamma = 4.5. The steep Hill exponent γ=4.5\gamma = 4.5 reproduces the sudden onset of profound muscle paralysis as concentration surpasses 1.0 μg/mL1.0\ \mu\text{g/mL}.

Remarks & Best Practices

  • Live Dose-Response Curve Preview: The Property Editor plots E(Ce)E(C_e) in real time as you adjust e0, emax, ec50, and gamma, displaying exact baseline E(0)E(0), median E(EC50)E(\text{EC}_{50}), and saturation E(∞)E(\infty) values.
  • Logarithmic Numerical Stability: In the WebAssembly engine, receptor occupancy is computed via logarithmic transformations to prevent floating-point numerical overflow when handling steep Hill exponents (γ≥5\gamma \ge 5) or large concentrations.
  • Varying Plant Gain for Controllers: Because the slope dEdCe\frac{dE}{dC_e} changes dramatically with concentration, closed-loop controllers (such as target-controlled infusion PIDs) experience high loop gain near EC50\text{EC}_{50} and low loop gain in saturation regions.
  • Non-Negative Concentration Clamping: Inputs with negative values (Ce<0C_e < 0) are clamped automatically to zero, preventing complex numbers or NaN states.
  • Dual Outputs: Emits both the final physiological effect and the normalized receptor occupancy (occ∈[0,1]\text{occ} \in [0, 1]) for pharmacokinetic-pharmacodynamic (PK/PD) studies.

Frequently Asked Questions (FAQ)

Q: What is the physical meaning of the Hill coefficient n in cooperative binding?

In the Hill equation y=xnKAn+xny = \frac{x^n}{K_A^n + x^n}, nn is the Hill cooperativity coefficient and KAK_A is the half-maximal effective concentration (EC50EC_{50}). When n=1n = 1, binding is non-cooperative (hyperbolic Michaelis-Menten kinetics). When n>1n > 1, binding exhibits positive cooperativity (e.g. oxygen binding to hemoglobin with n≈2.8n \approx 2.8), generating an ultra-sensitive sigmoidal switch-like activation curve.

Related Components

  • TransferFunction: Models linear pharmacokinetic drug distribution compartments.
  • LookupTable: General 1D empirical nonlinear lookup tables.
  • Saturation: Clamps signals to physical boundaries.
  • PIDController: Automates closed-loop physiological effect regulation.