How ntejas-1/rsna-knee-abnormality-detection works
This repository builds and submits an ensemble for RSNA knee MRI abnormality detection. Its main workflow turns radiology reports into training targets, preprocesses MRI series into a cache, trains two model arms, and appends their rank-based predictions to a reference ensemble before publishing a submission. It also includes OOF evaluation and per-finding blend configuration. The README documents the end-to-end stages and the notebook’s staging-file flow; unsampled implementation details are represented only where those documented relationships support them.
Main entry points: train_armA.py Arm A training · labels_v1_opus45.csv Extracted labels · cache Sharded image cache · train_armB.py Arm B training
Components 17
Report labels
- Radiology reports
- Cortex extraction
sql/02_prompt_v1.sql - Extracted labels
labels_ds/labels_v1_opus45.csv
Image preparation
- DICOM cache builder
cache/build_cache.py - Competition MRI data
- Sharded image cache
cache
Modeling and evaluation
- Arm A training
train/train_armA.py - Arm B training
train/train_armB.py - Fold checkpoints
- OOF predictions
oof - OOF evaluation
tools/eval_oof.py
Inference and submission
- Per-label weights
submit/blend_weights.py - Reference ensemble
ref_kernel/rsna-knee-speedy-raptors-coatnet-d4-sota.ipynb - Appended arm blend
submit/blend_cell.py - Prediction staging file
- Submission publisher
push/rsna-knee-dinov2-coatnet-repro.ipynb
Other components
- Kaggle competition
Connections 18
- Radiology reports → Cortex extraction: provides text
README.md - Cortex extraction → Extracted labels: extracts targets
README.md - Competition MRI data → DICOM cache builder: provides series
README.md - DICOM cache builder → Sharded image cache: writes shards
README.md - Sharded image cache → Arm A training: feeds training
README.md - Extracted labels → Arm A training: provides targets
README.md - Sharded image cache → Arm B training: feeds training
README.md - Extracted labels → Arm B training: provides targets
README.md - Arm A training → Fold checkpoints: trains folds
README.md - Arm B training → Fold checkpoints: trains folds
README.md - Arm A training → OOF predictions: produces predictions
README.md - OOF predictions → OOF evaluation: evaluated by
tools/eval_oof.py - Fold checkpoints → Appended arm blend: runs inference
README.md - Reference ensemble → Prediction staging file: writes predictions
README.md - Per-label weights → Appended arm blend: configures weights
submit/blend_weights.py - Appended arm blend → Prediction staging file: updates predictions
submit/blend_cell.py - Prediction staging file → Submission publisher: provides predictions
README.md - Submission publisher → Kaggle competition: submits result
README.md