GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - callmesobhan/rlt-sparse-dosimetry: MATLAB toolbox for TIA and red-bone-marrow dosimetry from sparse measurements in radioligand therapy (research code, seeking review)

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
+rlt
+rlt
 
 
.github/workflows
.github/workflows
 
 
data/templates
data/templates
 
 
docs
docs
 
 
examples
examples
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

rlt-sparse-dosimetry 🧬📐

Time-Integrated Activity (TIA) & Red-Bone-Marrow Dosimetry from Sparse RLT Measurements
Physically constrained kinetic fitting, AICc model selection, sampling-schedule benchmarking, and auditable marrow dosimetry in MATLAB

tests License: Non-Commercial (Research & Personal) MATLAB Isotopes

Workflow Architecture

flowchart LR
    A["📥 Validated Intake (+rlt.io: Units, Decay, Hct)"] --> B["Constrained Biokinetic Fit (Mono / Bi / Tri / Uptake + AICc)"]
    B --> C["Time-Integrated Activity (TIA) + Tail Extrapolation Audit"]
    C --> D["Red-Bone-Marrow Self + Cross Dose (+rlt.marrow)"]
    D --> E["Monte Carlo Uncertainty + Auditable Markdown Report"]
Loading

The problem

Full dosimetry needs many blood samples and scans per cycle. Most centres can afford a few. With so few points, the reported dose depends on choices that rarely get reported: which kinetic model is fitted, how the curve is closed before the first and after the last sample, which time points were acquired, how noisy each point is, and, for marrow, whether blood is a valid proxy at all.

Published work illustrates the stakes: the same ¹⁷⁷Lu-DOTATATE patients gave very different blood-based marrow doses with mono-, bi- and tri-exponential fits, and blood-based doses were well below image-based ones (details and references). This toolbox makes those choices explicit, measurable and auditable.

What it does

  1. Fits physically constrained models (mono, bi, tri-exponential, uptake) so effective half-life never exceeds the physical one and activity never goes negative, and flags what the fit cannot tell you (how much of the TIA is extrapolated, exactly determined models, no resolvable washout).
  2. Refuses to over-fit. AICc selection lets a model compete only when the data can support it.
  3. Marrow dosimetry (rlt.marrow): blood-based and image-based self-dose, a dose for every candidate blood model, time-dependent marrow-to-blood ratio, remainder of body, assembly of all contributions with S-values you supply, and Monte Carlo uncertainty with shared calibration error.
  4. Benchmarks sampling schedules on virtual cohorts with known truth: for each schedule and estimator, how often is the TIA within 10%?
  5. Validated data intake (rlt.io): units, a mandatory decay-correction flag, duplicates, haematocrit entered as percent, S-values without a recorded reference, all rejected with a complete list of problems.
  6. Audit trail: every result carries its assumptions, warnings and software provenance; rlt.report.marrow writes them to a Markdown report.
  7. Empirical Cycle-1 → Cycle-2+ Bayesian NLME schedule optimizer (+rlt/+nlme) & blood-proxy violation auditor (rlt.marrow.auditBloodProxy): ingests a centre's own Cycle-1 multi-time-point patients, fits a hierarchical log-normal population prior, runs Empirical Bayes MAP Cycle-2+ single/two-time-point TIA + credible intervals (shrinking each patient's Cycle-1 fit toward the population prior), optimizes the Cycle-2+ scan window under explicit worst-case toxicity-miss risk bounds, and automatically flags patients whose paired blood-vs-VOI kinetics violate constant-RMBLR blood-proxy assumptions (specific marrow uptake / infiltration).

Quick start

Requires MATLAB R2021a or newer. Base MATLAB only, no toolboxes.

addpath(pwd)                                     % from the repo root
rlt.selfCheck                                    % known-answer checks, no framework needed
results = runtests("tests")                      % full unit tests
run("examples/demo_marrow_workflow.m")           % end-to-end marrow dosimetry on synthetic data
run("examples/demo_marrow_blood_schedules.m")    % which blood sampling plan is enough?
run("examples/demo_single_patient.m")            % organ/lesion TIA with uncertainty
run("examples/demo_schedule_comparison.m")       % scan schedules for organs and lesions
% Blood-based marrow self-dose
T   = rlt.io.readActivityTable("activity.csv");              % validated, decay correction undone
P   = rlt.io.readPatientInfo("patients.csv");
b   = rlt.io.getSeries(T, "P001", 1, "blood");
res = rlt.marrow.selfDose(b.t, b.A, ConcentrationUnit=b.unit, Hct=0.45, Sex="M", ...
                          AdministeredMBq=7400, Isotope=b.isotope);
res.doseGy, res.candidates, res.warnings, res.assumptions
rlt.report.marrow("P001_marrow.md", res, Patient="P001");

Functions

Area Function Purpose
Fitting rlt.fitTAC constrained model fit, TIA, AICc, quality warnings
rlt.selectModel AICc selection with sparse-data fallback
rlt.tiaHybrid, rlt.tiaSinglePoint, rlt.optimalSinglePointTime non-fit estimators
rlt.estimate one entry point for all estimators
Marrow rlt.marrow.rmblr, referenceMass red-marrow-to-blood ratio, reference mass
rlt.marrow.selfDose blood or VOI based self-dose, all-model comparison
rlt.marrow.remainderOfBody, scaleSValue remainder-of-body TIA, S-value mass scaling
rlt.marrow.totalDose, uncertainty, elasticity sum of contributions, Monte Carlo, sensitivity
Data rlt.io.readActivityTable, validateActivityTable, getSeries import and validation
rlt.io.readPatientInfo, readSValues, lookupS covariates and S-values
rlt.undoDecayCorrection, applyDecayCorrection decay-correction helpers
Dose rlt.absorbedDose local-deposition dose, or your S-value
Study design rlt.simulatePopulation, evaluateSchedules, plotSchedules virtual cohorts (kidney, tumour, blood) and schedule benchmark
Uncertainty rlt.propagateTIA measurement error into TIA
Housekeeping rlt.selfCheck, version, provenance, report.marrow, isotope

Documentation

  • docs/MARROW.md: methods, assumptions register, when blood-based dosimetry fails, literature.
  • docs/DATA_CHECKLIST.md: what to collect so future patient data imports cleanly.
  • docs/DESIGN.md: mathematics, design decisions, validation plan, roadmap.
  • CHANGELOG.md.

Read this before using it on patients

  • Research and teaching code. Not a medical device and not validated for clinical dosimetry. It is released under the Non-Commercial Personal & Academic Research License, which provides it "as is", without warranty. Validating it for any clinical or regulatory use is your responsibility.
  • The virtual-cohort presets (kidney, tumour, blood) are illustrative numbers, not measured data. Schedule rankings are only as good as the cohort you simulate.
  • The toolbox ships no S-values. Cross-dose terms need values from OLINDA/EXM, MIRDcalc, IDAC-Dose or your own Monte Carlo, with the reference recorded.
  • The blood-based method assumes no specific marrow uptake and no marrow involvement. See docs/MARROW.md before applying it to patients with bone metastases or to ¹⁷⁷Lu-DOTATATE.
  • Isotope constants and the blood density are reference values that were not independently verified. Check them (assumptions register in MARROW.md).
  • The EANM bone-marrow guideline text was not available when the formulas were implemented; compare them with it.
  • Test status: the 56 unit tests pass on MATLAB R2026b (Linux) in CI on every push. The first CI run found real bugs in the data-import layer, since fixed, so treat import code on your own files and platform as freshly tested. MATLAB releases between R2021a and R2025b, Windows and macOS have not been tested. Passing tests show that the code does what it was written to do, not that the dosimetry is clinically valid; see the points above.

Licence and feedback

Non-Commercial Personal & Academic Research License (NC-PARL 1.0) — see LICENSE, copyright (c) 2026 Sobhan Shahbazi. Free for personal use and non-commercial research with citation (Sobhan Shahbazi (2026). rlt-sparse-dosimetry. https://github.com/callmesobhan/rlt-sparse-dosimetry); commercial use requires a written license. Reviews, suggestions and corrections to the formulas, constants and assumptions are welcome as GitHub issues. The assumptions register in docs/MARROW.md lists what most needs a second pair of eyes.

About

MATLAB toolbox for TIA and red-bone-marrow dosimetry from sparse measurements in radioligand therapy (research code, seeking review)

Topics

bone-marrowdosimetrylutetium-177matlabnuclear-medicineradioligand-therapy

Resources

Readme
License
Activity

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.