Internal Research Brief

Pharmacokinetic Research Brief

Individualized Caffeine Metabolism Modeling for CafOS
Prepared for clinical review — March 2026 • v1.0 • CafOS Research
Section 01

The Problem

The standard advice — "stop drinking coffee by 2 PM" — is a population-level heuristic that ignores 3–12× individual variation in caffeine metabolism. A fast metabolizer clears caffeine in 3 hours; a slow metabolizer on oral contraceptives may require 12+ hours. One-size-fits-all timing advice is pharmacologically indefensible.

Caffeine (1,3,7-trimethylxanthine) is eliminated almost entirely by hepatic metabolism. The CYP1A2 enzyme handles ~95–97% of primary biotransformation via N-demethylation. Less than 2% of ingested caffeine is excreted unchanged in urine — kidney function is irrelevant to caffeine clearance.

Caffeine 1,3,7-TMX CYP1A2 LIVER ~97% Paraxanthine (1,7-DMX) 84% Theobromine (3,7-DMX) 12% Theophylline (1,3-DMX) 4%
FIG. 1 — Primary caffeine metabolism pathway via hepatic CYP1A2
Section 02

The Pharmacokinetic Model

CafOS uses a one-compartment oral absorption model with first-order kinetics, replacing the commonly used instant-absorption simplification.

C(t) = (F × D × ka) / (Vd × (ka − ke)) × (e−ke·t − e−ka·t)
ParameterSymbolPopulation MeanRangeUnit
BioavailabilityF0.990.95 – 1.00
DoseDvaries28 – 400mg
Absorption rateka2.00.5 – 4.5h−1
Volume of distributionVd0.60.4 – 0.8L/kg
Elimination rateke0.1390.058 – 0.231h−1
Half-lifet½5.03.0 – 12.0hours
200 150 100 50 0 0h 2h 4h 6h 8h 10h 12h Time after ingestion (hours) Plasma [caffeine] mg Cmax = 45 min Simple model (instant absorption) Full PK model Sleep threshold (20mg)
FIG. 2 — 95mg caffeine dose: full PK model (solid) vs simplified instant-absorption model (dashed)

The full model captures the absorption phase (Tmax ~45 min) that the simplified model misses. This matters for calculating peak plasma concentration and the timing window before caffeine levels begin to decline.

Section 03

Individual Variation Factors

CYP1A2 activity — and therefore caffeine half-life — varies by up to 8× between individuals due to genetics, hormones, drugs, and lifestyle. The following modifiers shift the population-mean t½ of 5.0 hours:

FactorModifier on t½Effective t½Mechanism
CYP1A2 fast metabolizer×0.703.5h*1A/*1A homozygous
CYP1A2 normal1.005.0hPopulation mean
CYP1A2 slow metabolizer×1.809.0h*1F or *1C carriers
Smoker (10+ cigs/day)×0.653.3hCYP1A2 induction via AhR
Combined oral contraceptive×1.809.0hEstrogen inhibits CYP1A2
Pregnancy (3rd trimester)×3.0015.0hHormonal CYP1A2 suppression
Age 60+×1.206.0hReduced hepatic capacity
Fluvoxamine co-admin×5.00+25h+Potent CYP1A2 inhibitor
200 150 100 50 0 2 4 6 8 10 12 14 16 18 20 22 24 Hours after 200mg dose 20mg Fast (t½=3h) Slow (t½=9h) ← Clear by 6h Still 30mg at 18h →
FIG. 3 — Same 200mg dose: fast metabolizer (teal, t½=3h) vs slow metabolizer (amber, t½=9h)
Key insight: A slow metabolizer drinking Cold Brew (200mg) at 2 PM will still have 30mg of active caffeine at midnight — enough to delay sleep onset by 20+ minutes. The same dose in a fast metabolizer clears to <5mg by 8 PM.
Section 04

CYP1A2 Triage Questionnaire

Since >99% of users will never have CYP1A2 genotyping results, CafOS infers metabolizer status through a 6-question onboarding triage. Each question is designed to be factual and observable — not a guess about sleep causation.

Design principle: We do NOT ask "How does coffee affect your sleep?" — that question is circular. If users knew the answer, they wouldn't need the app. Every question below asks something the user definitely knows about themselves.

Q1: Smoking Status — strongest environmental modifier

"Do you smoke cigarettes or use nicotine regularly?"

ResponseModifier (M1)Mechanism
No / quit >3 months ago1.00Baseline
Quit within last 3 months0.85CYP1A2 de-induction in progress
Yes, <10 cigarettes/day0.75Moderate AhR-mediated induction
Yes, 10+/day0.65Strong CYP1A2 induction via PAHs

Polycyclic aromatic hydrocarbons in cigarette smoke activate the aryl hydrocarbon receptor (AhR), inducing CYP1A2 transcription. This is the most replicated finding in caffeine pharmacokinetics — heavy smokers clear caffeine 30–50% faster.

Q2: Hormonal Contraceptives / HRT (women only)

"Are you currently taking hormonal birth control or hormone replacement therapy?"

ResponseModifier (M2)Mechanism
No1.00Baseline
Combined pill/patch/ring (estrogen + progestin)1.80Ethinylestradiol inhibits CYP1A2
Progestin-only pill/IUD/implant1.10Minimal CYP1A2 effect
Hormone replacement therapy1.50Conjugated estrogens, moderate inhibition
Not sure which type1.40Conservative estimate

Q3: Pregnancy (women only)

"Are you currently pregnant?"

ResponseModifier (M3)Effective t½
No1.005.0h
1st trimester (weeks 1–13)1.206.0h
2nd trimester (weeks 14–27)2.0010.0h
3rd trimester (weeks 28+)3.0015.0h

Progressive CYP1A2 suppression from rising estrogen and progesterone. Triggers automatic 200mg/day cap per ACOG guidelines.

Q4: Perceived Effect Duration — key phenotypic proxy

"After drinking a cup of coffee, how long do you typically feel the alertness/energy boost?"

ResponseModifier (M4)Implied phenotype
Less than 2 hours0.70Fast metabolizer
About 2–3 hours0.85Fast-normal
About 3–5 hours1.00Population average
About 5–7 hours1.25Slow-normal
More than 7 hours / jittery for a long time1.50Slow metabolizer
Why this works and "how does it affect your sleep?" doesn't: This question asks about waking alertness duration — something people actually observe during the day. "I stopped feeling my morning coffee by lunch" is an observation. "Coffee at 3PM affects my sleep" is a guess about causation across many confounding variables (stress, screens, kids, alcohol). The perceived pharmacodynamic duration correlates with time from Cmax to sub-threshold plasma concentration without requiring users to understand sleep physiology.

Q5: Daily Caffeine Intake — calibrates Q4

"How many caffeinated drinks do you have on a typical day?"

ResponseModifier (M5)Role
0–1 per day1.05Low tolerance — Q4 answers highly credible
2–3 per day1.00Normal
4–5 per day0.95Minor CYP1A2 autoinduction
6+ per day0.90Heavy use — tolerance may mask Q4 perception

Q6: Age

ResponseModifier (M6)
18–290.95
30–441.00
45–591.10
60+1.20

Scoring Algorithm

t½ = 5.0 × M1 × M2 × M3 × M4 × M5 × M6
Clamped to [2.5, 15.0] hours.

Cross-Validation Logic

Tolerance masking correction: If Q5 = "6+ cups/day" AND Q4 = "less than 2 hours" → shift M4 from 0.70 to 0.85. Heavy consumers may not perceive the effect due to adenosine receptor tolerance, not because they metabolize faster. Conversely, if Q5 = "0–1 cups" AND Q4 = ">7 hours" → use full M4 = 1.50 (highly credible slow metabolizer signal).

Worked Examples

Example A: Average Male Professional, 35
Non-smoker (×1.00) • N/A hormones • Not pregnant • Effect: 3–5h (×1.00) • 2–3/day (×1.00) • Age 35 (×1.00)
t½ = 5.0 × 1.00 × 1.00 × 1.00 × 1.00 × 1.00 × 1.00
= 5.0 hours
Example B: Woman on Combined OC, Feels Coffee 5–7h
Non-smoker (×1.00) • Combined OC (×1.80) • Not pregnant (×1.00) • Effect: 5–7h (×1.25) • 1/day (×1.05) • Age 28 (×0.95)
t½ = 5.0 × 1.00 × 1.80 × 1.00 × 1.25 × 1.05 × 0.95
= 11.2 hours → morning coffee only
Example C: Heavy Smoker, Coffee Wears Off Fast
10+/day smoker (×0.65) • N/A • N/A • Effect: <2h (×0.85 adjusted — 6+ cups masks perception) • 6+/day (×0.90) • Age 42 (×1.00)
t½ = 5.0 × 0.65 × 0.85 × 0.90 × 1.00
= 2.5 hours (clamped) → can drink until evening

Rejected Approaches

ApproachWhy rejected
"How does coffee affect your sleep?"Circular — users don't know, that's why they use the app
Automatic Bayesian learning from sleep dataToo noisy — stress, screens, kids, alcohol all affect sleep. Can't attribute causation.
EthnicityGDPR Article 9 risk. Q4 captures phenotype regardless of genotype source.
Diet (broccoli, chargrilled meat)Effect too small (5–15%), confusing UX
Family historyUsers often don't know. Complex genetics, too noisy.
Specific medicationsHandled in Settings as a separate drug interaction check, not in onboarding.
Section 05

User-Driven Recalibration

The onboarding questionnaire provides an initial estimate. Rather than attempting automatic Bayesian inference from noisy sleep data (stress, screens, kids, and alcohol all confound sleep quality attribution), CafOS uses direct user feedback on its own output.

Why not automatic sleep learning? Sleep quality is affected by dozens of variables beyond caffeine — work stress, screen time, alcohol, room temperature, hormonal cycles, children. Automatically attributing every bad night to caffeine would systematically overestimate the half-life. The model would drift toward false-slow, pushing cutoff times unreasonably early.

Recalibration Prompt

After 2 weeks of use, CafOS asks a single question:

"Do you feel your cutoff time is:   Too early  |  About right  |  Too late"
ResponseAdjustmentRationale
Too earlyke × 1.10 (faster metabolism)User metabolizes caffeine faster than estimated
About rightNo changeModel is calibrated
Too lateke × 0.90 (slower metabolism)User is still affected at cutoff time

This prompt is available once per month in Settings. It creates a clean feedback loop on the app's output rather than attempting to infer metabolism from noisy sleep physiology data. Each adjustment shifts the effective half-life by ~10%, allowing convergence over 2–3 months without overfitting.

The key insight: Let the human decide if the cutoff feels right. They know their own life context better than any algorithm. We optimize the app output, not the sleep data.
Section 06

Safety Guardrails

ParameterValueBasis
Sleep caffeine threshold20 mgConservative; Drake et al. 2013
WHO daily maximum400 mg/dayEFSA/WHO healthy adult limit
t½ model clamp[2.5, 15.0] hoursPhysiological bounds
Pregnancy daily limit200 mg/dayACOG recommendation
Disclaimer: CafOS is a wellness tool, not a medical device. It does not diagnose, treat, or prevent any condition. Users on medications that interact with CYP1A2 (e.g., fluvoxamine, ciprofloxacin, theophylline) should consult their healthcare provider. Pregnant users are advised to follow ACOG guidelines independently.
References
  1. Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195-1200.
  2. Sachse C, Brockmöller J, Bauer S, Roots I. Functional significance of a C→A polymorphism in intron 1 of the cytochrome P450 CYP1A2 gene. Br J Clin Pharmacol. 1999;47(4):445-449.
  3. Cornelis MC, El-Sohemy A, Kabagambe EK, Campos H. Coffee, CYP1A2 genotype, and risk of myocardial infarction. JAMA. 2006;295(10):1135-1141.
  4. Parsons WD, Neims AH. Effect of smoking on caffeine clearance. Clin Pharmacol Ther. 1978;24(1):40-45.
  5. Abernethy DR, Todd EL. Impairment of caffeine clearance by chronic use of low-dose oestrogen-containing oral contraceptives. Eur J Clin Pharmacol. 1985;28(4):425-428.
  6. Fredholm BB, Bättig K, Holmén J, Nehlig A, Zvartau EE. Actions of caffeine in the brain with special reference to factors that contribute to its widespread use. Pharmacol Rev. 1999;51(1):83-133.
  7. Landolt HP. Sleep homeostasis: a role for adenosine in humans? Biochem Pharmacol. 2008;75(11):2070-2079.
  8. Knutti R, Rothweiler H, Schlatter C. Effect of pregnancy on the pharmacokinetics of caffeine. Eur J Clin Pharmacol. 1981;21(2):121-126.