2-Stage Research Stack (~221.95 MB Total) Stage 1: RAD-DINO (90.95 MB WASM q8) Stage 2: Bio_ClinicalBERT (131 MB WASM q8) MIT + MIT

2-Stage Research Phantom Encoder β†’ Clinical-Term Study-Note Matcher

Chain Stage 1: RAD-DINO (onnx-community/rad-dino-ONNX, 90.95 MB q8 WASM) with Stage 2: Bio_ClinicalBERT (onnx-community/Bio_ClinicalBERT-ONNX, 131 MB q8 WASM, upstream emilyalsentzer/Bio_ClinicalBERT, reusing models/bio-clinicalbert/worker.js). Stage 1 localizes peak 37Γ—37 patch drift against a symmetric phantom baseline and drafts a masked research study note; Stage 2 unmasks [MASK] with exact MIMIC-III clinical logits and ranks candidate radiology study notes.

1. Independent Stage Loaders (~221.95 MB Total)

Stage 1 Β· RAD-DINO (90.95 MB WASM q8)

Not initialised β€” uses ../worker.js (microsoft/rad-dino, MIT).

Stage 2 Β· Bio_ClinicalBERT (131 MB WASM q8)

Not initialised β€” reuses ../../bio-clinicalbert/worker.js (emilyalsentzer/Bio_ClinicalBERT, MIT).

2. Run Chained Visual Analysis & Clinical-Term Matching

Select a procedural phantom above, drop a local research PNG/JPEG here, or paste (Ctrl/⌘+V). You can also edit the Stage 1 masked study note or clinical candidate terms below and re-score Stage 2 live.

Stage 1 visual rationale will populate once RAD-DINO finishes encoding.

Initialising Stage 1 (RAD-DINO) & Stage 2 (Bio_ClinicalBERT) loaders…

Stage 1 RAD-DINO–
Stage 2 ClinicalBERT–
Visual Drift vs Base–
Peak Visual Zone–
Top [MASK] Term–
Top Candidate Logit–
Best Study Note–
Combined NaN Count–

Stage 1 Β· 37Γ—37 Spatial Patch Drift vs Baseline

Run Stage 1 to inspect regional patch deviation vs Symmetric Baseline

Quadrant Visual Deviation

Stage 2 Β· Bio_ClinicalBERT Unmasked Study Note

Top-8 Unmasked Vocabulary Predictions (Prob + Logit)

Scored Candidate Radiology Terms at [MASK]

Ranked Research Study-Note Matches (Stage 1 Zone Γ— Stage 2 Clinical Term)

Run both Stage 1 (RAD-DINO) and Stage 2 (Bio_ClinicalBERT) to rank study-note templates.

Show the code

Show the code β€” rad-core.mjs: rankStudyNoteMatches() (fusing Stage 1 zone drift + Stage 2 Bio_ClinicalBERT probabilities)