coleb888/cartilage-vulnerability-atlas
0
Topographic Cartilage Vulnerability Atlas - Shiny App
This Shiny for Python app deploys two OAIZIB-CM cartilage vulnerability models:
- Radiographic OA prediction: KL >= 2
- Advanced OA prediction: KL >= 3
Input
The app expects:
- A 3D NIfTI segmentation mask file:
.niior.nii.gz - The segmentation must use OAIZIB-CM labels:
- 1 = femur
- 2 = femoral cartilage
- 3 = tibia
- 4 = medial tibial cartilage
- 5 = lateral tibial cartilage
- Demographics:
- Age
- BMI
- Gender code, as in OAIZIB-CM metadata
The app does not segment raw MRI. It requires a precomputed segmentation mask.
Output
The app returns:
- Predicted probability of KL >= 2
- Predicted probability of KL >= 3
- Risk interpretation
- Cartilage feature table
- 3x3 topographic cartilage maps
- Interactive 3D knee segmentation viewer
Local run
pip install -r requirements.txt
shiny run --reload app.pyDocker run
docker build -t cartilage-shiny .
docker run -p 7860:7860 cartilage-shinyThen open:
<http://localhost:7860>
Recommended deployment
Use Hugging Face Spaces with the Docker SDK. This is a live Python/Shiny app, so a static host is not sufficient.
