SVF SVF Clinical Platform — paid clinical bundle, two capsules free in the browser Open the live demo
All capsules
SHIVA OS/Capsules/Spine Toolkit
Umbrella project Prototype → next build MIT

SHIVA Spine Toolkit

The umbrella project. A trustworthy, fast, reproducible spine measurement and planning tool, built in the open, designed to compete with Surgimap on the measurements that actually matter — and to be auditable in ways Surgimap is not.

Goal
Trust · speed · reproducibility
Target
Surgimap-grade ICC under 90 s / case
Validation north star
3 raters × 30 films × 2 timepoints
Stack
Browser-only · TS + Vite · IndexedDB
No backend
No HIPAA scope · no telemetry
Author
Behnam Sour, MD
01 — Three things that define "best"

Trustworthy.
Fast.
Reproducible.

A spine clinic measures 30+ films a day. A surgeon stakes a 6-hour PSO on these numbers. Inter-rater agreement within ±2° is the table-stakes. Everything in the roadmap ladders to one of those three.

TRUSTWORTHY

Math correctness, not feature count

If PI is wrong by 4°, you've planned the wrong surgery. Trust is built through math correctness, synthetic ground-truth tests, and inter-rater data.

FAST

Surgimap's killer feature is 90 s/case

Not the math — the speed. Magnifier loupe, sub-pixel snap-to-edge, keyboard nudges, endplate tool. Sub-90-second exit criterion.

REPRODUCIBLE

Two raters, same image, ±2° agreement

This is a software problem (precision tooling) more than a clinical training problem. Address it in the UI and the math.

02 — The 8-phase roadmap

Do these in order.
Don't skip.

Working document for taking the prototype to a tool that earns its place in a deformity surgeon's workflow. Each phase has an explicit exit criterion.

PHASE 1

Trust the math (2–3 weeks)

Fix PI normalization and PI–LL signs. Synthetic ground-truth tests. Audit log skeleton. Persistent disclaimer. Schema versioning. Exit: every measurement reproduces a known synthetic case within 0.5°.

PHASE 2

Precision tooling (3–4 weeks)

Magnifier loupe, window/level, keyboard nudge, endplate tool. Exit: 13 landmarks in under 90 s. Two raters agree within 2° on every measurement.

PHASE 3

DICOM (2 weeks)

In-browser DICOM parsing with dicom-parser. Auto-calibration from pixel spacing. De-identification mode. Exit: drag a real DICOM lumbar lateral, no calibration step, measurements correct.

PHASE 4

Clinical analysis (2 weeks)

Schwab badges, Roussouly type, GAP score, age-stratified population norms. Exit: output is what a deformity surgeon reads, not raw angles.

PHASE 5

Architecture refactor (4 weeks)

TypeScript with branded angle types. Vite + modular src/core, src/io, src/ui, src/ml. IndexedDB for image blobs. Schema migrations.

PHASE 6

ML assist (6+ weeks)

ONNX-Web in-browser detector trained on VerSe / AASCE2019. Confidence-based flagging. Rule: the user always reviews and explicitly accepts.

PHASE 7

Surgical planning

Virtual osteotomy. Target solver (given target PI−LL, solve required wedges). Achieved-vs-planned compare on post-op imaging.

PHASE 8

Validation paper

30 films × 3 raters × 2 tools × 2 timepoints. ICC computation. Submit to Spine Deformity or European Spine Journal.

Doctrine
What NOT to do.

Don't add 3D — lateral films are 2D and EOS users don't need this. Don't add full-spine AI segmentation — surgeons want corners, not contours. Don't go Electron — single-file HTML is a feature. Don't build a server — no backend = no HIPAA scope. Don't pursue FDA prematurely — stay an engineering prototype, get the science right, license later. Don't add user accounts — export/import JSON is the sync model.

03 — Sub-projects under this umbrella

The Toolkit ships
as a constellation.

Each project below is independently usable, but they share the same audit, provenance, and reproducibility primitives.

Using this in a clinic?

The MIT code is free. A clinical site license covers deployment support, integration help, hash-verified releases, and indemnification language. See commercial offerings →

Get a quote