Toolkit · clinical NLP replication · 2026

Oncology trajectory & inflection toolkit.

End-to-end clinical-NLP replication of three published methods on a real 30-patient synthetic oncology cohort. Trajectory smoothing, performance-status extraction, and inflection-point detection across radiology and ECOG signals — every extraction citing a verbatim sentence from source text.

Live API ↗
Patients
30
Cancers
NSCLC · mCRC · HER2+ breast · DLBCL · prostate
Inflections
18
Window
18 mo
02 / Methods replicated

Three published Kehl-group methods, on the same cohort.

No single paper does all three on one patient. ONCOTRAJ stitches them into one longitudinal pipeline.

Trajectory smoothing

Kernel-smoothed time-series of radiologic scoring across 18-month windows. Per-report extraction of cancer_present / progression / response / metastasis from chest CT, MRI, PET-CT reports, with a verbatim citing sentence drawn from the source.

Kehl K.L. et al. — Nature Communications, 2024 · DOI 10.1038/s41467-024-54071-x

Performance-status extraction

ECOG and KPS extraction from medical-oncology notes via four prompting strategies — regex, simple prompting, Chain-of-Thought, and Double Filtering — reproducing the comparison table from the original paper on the same cohort.

Kehl group — JCO CCI, Feb 2026 · DOI 10.1200/CCI-25-00226

Inflection detection

Change-point detection on smoothed trajectories. Fires when radiology shows progression and ECOG worsens to ≥ 2 within a 60-day window, with a 90-day refractory between events — flagging candidates for treatment change or trial referral.

Kehl K.L., Schrag D. et al. — JCO CCI, 2020 · DOI 10.1200/CCI.20.00184
03 / Trajectory viewer

A real patient. Real inflections.

Pick a patient. Radiology score (crimson, left axis) and ECOG performance (phosphor, right axis) over 18 months. Dashed line marks the detected inflection point.

LIVE BACKEND Same FastAPI backend that powers this viewer is exposed at /docs ↗ — Swagger UI, curl-able endpoints, mock-LLM mode (production parity, no live keys).
Trajectory slope (last 6 mo)
Inflection confidence
ECOG drift (mean Δ)
04 / Stack

Built to be reproducible.

Python FastAPI SQLite SQLAlchemy Anthropic SDK pytest Plotly
05 / Cite

If ONCOTRAJ is useful in your work.

@misc{sami2026oncotraj,
  author = {Sami, Abdullah Abdul},
  title  = {ONCOTRAJ: Oncology Trajectory & Inflection Toolkit},
  year   = {2026},
  url    = {https://oncotraj-toolkit.pages.dev}
}
Request access to the harness