|
| 1 | +# 📘 AA-PKPD-Sim v1.2 |
| 2 | +## Inhaled Anaesthetic Agent Pharmacokinetics–Pharmacodynamics Simulator |
| 3 | + |
| 4 | +--- |
| 5 | + |
| 6 | +# 🔷 ABOUT |
| 7 | + |
| 8 | +## Overview |
| 9 | +**AA-PKPD-Sim v1.2** is a browser-based, mechanistic simulation tool designed to model the **uptake, distribution, and pharmacodynamic effects of inhaled anaesthetic agents** |
| 10 | + |
| 11 | +It integrates: |
| 12 | +- Classical **compartmental pharmacokinetics** |
| 13 | +- Age-adjusted **MAC modeling** |
| 14 | +- Physiological determinants (CO, VA, FRC) |
| 15 | +- BIS-based pharmacodynamic response |
| 16 | + |
| 17 | +to provide a **dynamic, visual understanding of inhalational anaesthesia**. |
| 18 | + |
| 19 | +--- |
| 20 | + |
| 21 | +## Core Model Architecture |
| 22 | + |
| 23 | +### 1. Pharmacokinetic Model |
| 24 | +- **4-compartment model** |
| 25 | + - VRG (vessel-rich group; brain) |
| 26 | + - Muscle group |
| 27 | + - Fat group |
| 28 | + - Vessel-poor group |
| 29 | + |
| 30 | +- Includes: |
| 31 | + - Alveolar compartment |
| 32 | + - Breathing circuit (circle system) |
| 33 | + |
| 34 | +- Solved using: |
| 35 | + - **Runge–Kutta 4th order (RK4)** integration |
| 36 | + - Adaptive timestep for numerical stability |
| 37 | + |
| 38 | +--- |
| 39 | + |
| 40 | +### 2. Key Physiological Inputs |
| 41 | + |
| 42 | +- Age-dependent: |
| 43 | + - Weight |
| 44 | + - Cardiac Output (CO) |
| 45 | + - Alveolar Ventilation (VA) |
| 46 | + - Functional Residual Capacity (FRC) |
| 47 | + |
| 48 | +- User-adjustable overrides: |
| 49 | + - Weight |
| 50 | + - CO |
| 51 | + - VA |
| 52 | + - FRC |
| 53 | + |
| 54 | +--- |
| 55 | + |
| 56 | +### 3. Agent-Specific Parameters |
| 57 | + |
| 58 | +Supported agents: |
| 59 | +- Sevoflurane |
| 60 | +- Desflurane |
| 61 | +- Isoflurane |
| 62 | +- Halothane |
| 63 | +- Xenon |
| 64 | + |
| 65 | +Each defined by: |
| 66 | +- MAC at age 40 |
| 67 | +- Blood:gas partition coefficient |
| 68 | +- Tissue partition coefficients |
| 69 | + |
| 70 | +--- |
| 71 | + |
| 72 | +### 4. Carrier Gas Effects |
| 73 | + |
| 74 | +- Air + O₂ |
| 75 | +- N₂O + O₂ |
| 76 | + |
| 77 | +Includes: |
| 78 | +- **Second gas effect (Eger & Epstein)** |
| 79 | +- N₂O MAC contribution |
| 80 | +- BIS modification |
| 81 | + |
| 82 | +--- |
| 83 | + |
| 84 | +### 5. MAC Modeling |
| 85 | + |
| 86 | +- Age-corrected MAC: |
| 87 | + - Adults → exponential decline (Mapleson) |
| 88 | + - Pediatrics → interpolated peak and decline |
| 89 | + |
| 90 | +--- |
| 91 | + |
| 92 | +### 6. Pharmacodynamics (BIS) |
| 93 | + |
| 94 | +- BIS modeled using: |
| 95 | + - Hill equation |
| 96 | + - EC₅₀ ≈ 0.71 MAC |
| 97 | + - γ = 2 |
| 98 | + |
| 99 | +- Output: |
| 100 | + - BIS value |
| 101 | + - Anaesthetic depth classification |
| 102 | + |
| 103 | +--- |
| 104 | + |
| 105 | +## Outputs |
| 106 | + |
| 107 | +### Real-time Graphs |
| 108 | + |
| 109 | +1. **FA/FI (Alveolar uptake)** |
| 110 | +2. **Tissue distribution (MAC equivalent)** |
| 111 | +3. **BIS (depth of anaesthesia)** |
| 112 | +4. **Alveolar concentration (vol%)** |
| 113 | + |
| 114 | +--- |
| 115 | + |
| 116 | +### Derived Metrics |
| 117 | + |
| 118 | +- Time to 1 MAC (brain) |
| 119 | +- VRG half-time |
| 120 | +- Steady-state BIS |
| 121 | +- N₂O contribution (if applicable) |
| 122 | + |
| 123 | +--- |
| 124 | + |
| 125 | +## Intended Use |
| 126 | + |
| 127 | +- Teaching inhalational anaesthesia physiology |
| 128 | +- Resident training and viva preparation |
| 129 | +- Conceptual understanding of: |
| 130 | + - Uptake kinetics |
| 131 | + - Distribution delays |
| 132 | + - Depth of anaesthesia |
| 133 | + |
| 134 | +--- |
| 135 | + |
| 136 | +## Limitations |
| 137 | + |
| 138 | +- Simplified compartmental assumptions |
| 139 | +- Does not account for: |
| 140 | + - Shunt/VQ mismatch |
| 141 | + - Dynamic surgical stimulation |
| 142 | + - Drug interactions (opioids, IV agents) |
| 143 | + |
| 144 | +> **Not intended for clinical decision-making** |
| 145 | +
|
| 146 | +--- |
| 147 | + |
| 148 | +## License |
| 149 | + |
| 150 | +GNU General Public License v3.0 (GPL-3.0) |
| 151 | + |
| 152 | +© 2026 |
| 153 | +Prof. Jyotirmay Kirtania |
| 154 | +MPMMCC & HBCH, Tata Memorial Centre, Varanasi |
| 155 | + |
| 156 | +--- |
| 157 | + |
| 158 | +--- |
| 159 | + |
| 160 | +# 🛠️ HELP |
| 161 | + |
| 162 | +## Getting Started |
| 163 | + |
| 164 | +1. Open `.html` file in Chrome/Edge |
| 165 | +2. Select anaesthetic agent |
| 166 | +3. Adjust patient and anaesthesia parameters |
| 167 | +4. Observe real-time simulation |
| 168 | + |
| 169 | +--- |
| 170 | + |
| 171 | +## 🧪 Controls |
| 172 | + |
| 173 | +### Agent Selection |
| 174 | +- Choose volatile agent from sidebar |
| 175 | +- Xenon auto-restricts carrier gas to O₂ |
| 176 | + |
| 177 | +--- |
| 178 | + |
| 179 | +### Carrier Gas |
| 180 | +- Air + O₂ |
| 181 | +- N₂O + O₂ |
| 182 | + |
| 183 | +Effect: |
| 184 | +- Alters uptake kinetics |
| 185 | +- Modifies BIS and MAC |
| 186 | + |
| 187 | +--- |
| 188 | + |
| 189 | +### Patient & Dose Inputs |
| 190 | + |
| 191 | +#### Age |
| 192 | +- Automatically updates physiology |
| 193 | +- Resets all parameters to age-predicted values |
| 194 | + |
| 195 | +#### Target (× MAC) |
| 196 | +- Defines desired anaesthetic depth |
| 197 | + |
| 198 | +#### Fresh Gas Flow (FGF) |
| 199 | +- Higher FGF → faster wash-in |
| 200 | + |
| 201 | +#### Duration |
| 202 | +- Simulation time (0.5–12 hours) |
| 203 | + |
| 204 | +--- |
| 205 | + |
| 206 | +## 🧬 Physiology Overrides |
| 207 | + |
| 208 | +User can manually adjust: |
| 209 | + |
| 210 | +- Weight |
| 211 | +- Cardiac Output |
| 212 | +- Alveolar Ventilation |
| 213 | +- FRC |
| 214 | + |
| 215 | +Indicator: |
| 216 | +- “⚠ MANUAL PHYSIOLOGY” appears when overridden |
| 217 | + |
| 218 | +Reset: |
| 219 | +- Use **↺ age** to revert to predicted values |
| 220 | + |
| 221 | +--- |
| 222 | + |
| 223 | +## 📊 Graph Interpretation |
| 224 | + |
| 225 | +### 1. FA/FI Curve |
| 226 | +- Rate of induction |
| 227 | +- Faster rise = faster onset |
| 228 | + |
| 229 | +--- |
| 230 | + |
| 231 | +### 2. Tissue Distribution |
| 232 | +- VRG reflects **brain concentration** |
| 233 | +- Muscle/fat reflect **reservoir effect** |
| 234 | + |
| 235 | +--- |
| 236 | + |
| 237 | +### 3. BIS Curve |
| 238 | + |
| 239 | +| BIS | Interpretation | |
| 240 | +|-----|--------------| |
| 241 | +| >90 | Awake | |
| 242 | +| 70–90 | Light sedation | |
| 243 | +| 40–60 | Surgical anaesthesia | |
| 244 | +| <40 | Deep anaesthesia | |
| 245 | + |
| 246 | +--- |
| 247 | + |
| 248 | +### 4. Alveolar Concentration |
| 249 | +- FA (alveolar) vs FI (inspired) |
| 250 | +- Reflects uptake efficiency |
| 251 | + |
| 252 | +--- |
| 253 | + |
| 254 | +## ⚠️ Key Concepts Demonstrated |
| 255 | + |
| 256 | +- Low blood:gas solubility → faster induction |
| 257 | +- High CO → slower induction |
| 258 | +- High VA → faster induction |
| 259 | +- Fat uptake → delayed emergence |
| 260 | +- Second gas effect (N₂O) |
| 261 | + |
| 262 | +--- |
| 263 | + |
| 264 | +## 📋 Outputs Panel |
| 265 | + |
| 266 | +Displays: |
| 267 | + |
| 268 | +- MAC at age |
| 269 | +- Target inspired concentration |
| 270 | +- Blood:gas coefficient |
| 271 | +- VRG half-time |
| 272 | +- BIS steady-state |
| 273 | +- Time to 1 MAC |
| 274 | + |
| 275 | +--- |
| 276 | + |
| 277 | +## ❌ Common Errors |
| 278 | + |
| 279 | +- Confusing FI with FA |
| 280 | +- Overinterpreting BIS as exact measure |
| 281 | +- Ignoring physiology overrides |
| 282 | +- Using model outputs clinically |
| 283 | + |
| 284 | +--- |
| 285 | + |
| 286 | +## 🧠 Best Use |
| 287 | + |
| 288 | +Use as: |
| 289 | +- Conceptual teaching tool |
| 290 | +- Simulation for viva/practical exams |
| 291 | +- Visual demonstration of PK-PD principles |
| 292 | + |
| 293 | +--- |
| 294 | + |
| 295 | +## 📄 Disclaimer |
| 296 | + |
| 297 | +This simulator: |
| 298 | + |
| 299 | +- Uses simplified mathematical models |
| 300 | +- Is intended for **education only** |
| 301 | + |
| 302 | +It does **not replace**: |
| 303 | +- Clinical judgment |
| 304 | +- Real patient monitoring |
| 305 | +- Anaesthesia workstation data |
| 306 | + |
| 307 | +--- |
| 308 | + |
| 309 | +## 📚 References (Embedded in Model) |
| 310 | + |
| 311 | +- Eger EI II (anaesthetic uptake and distribution) |
| 312 | +- Mapleson WW (MAC-age relationship) |
| 313 | +- Lerman J (paediatric MAC) |
| 314 | +- Yasuda N (partition coefficients) |
| 315 | +- Goto T (xenon pharmacology) |
| 316 | +- Cederholm I (N₂O BIS interaction) |
| 317 | + |
| 318 | +--- |
0 commit comments