Downloads · 30 days
215
20% of all-time downloads
aagatti/nnunet_knee
nnunet_knee is a machine learning model from aagatti. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for nnunetv2. The card lists the license as mit.
Automated knee MRI segmentation using nnU-Net cascade architecture for clinical and research applications.
Downloads · 30 days
215
20% of all-time downloads
All-time downloads
1.1K
Public
Repo size
7.7 GB
Likes
3
Public
Click a slice to open those files.
.pth4.9 GB · 94%
From the Hugging Face model README
Automated knee MRI segmentation using nnU-Net cascade architecture for clinical and research applications.
This model provides accurate segmentation of 9 anatomical structures in knee MRI scans including cartilage, meniscus, and bone components with a mean Dice coefficient of 0.924.
| Label | Structure | Typical DSC |
|---|---|---|
| 0 | Background | - |
| 1 | Patellar cartilage | >0.86 |
| 2 | Femoral cartilage | >0.86 |
| 3 | Medial tibial cartilage | >0.86 |
| 4 | Lateral tibial cartilage | >0.86 |
| 5 | Medial meniscus | >0.84 |
| 6 | Lateral meniscus | >0.84 |
| 7 | Femur bone | >0.95 |
| 8 | Tibia bone | >0.95 |
| 9 | Patella bone | >0.95 |
# Install dependencies
pip install torch nnunetv2 SimpleITK numpy huggingface_hub
# Download models from HuggingFace
from huggingface_hub import snapshot_download
snapshot_download(repo_id="aagatti/nnunet_knee", local_dir="./nnunet_knee_models")
from scripts.inference import KneeSegmentationInference
# Initialize inference
inference = KneeSegmentationInference(model_path="./nnunet_knee_models/models")
# Run segmentation
result = inference.predict("knee_mri.nii.gz", "segmentation_output.nii.gz")
python scripts/inference.py --input knee_mri.nii.gz --output segmentation.nii.gz
For complete setup with testing and validation:
If you use this model in your research, please cite:
@article{nnunet_knee_2024,
title={Automating Imaging Biomarker Analysis for Knee Osteoarthritis Using an Open-Source MRI-Based Deep Learning Pipeline},
author = {Goyal, Ananya and Belibi, Francesca and Sahani, Vyoma and Pedersen, Rune and Vainberg, Yael and Williams, Ashley and Chu, Constance and Haddock, Bryan and Gold, Garry and Chaudhari, Akshay and Kogan, Feliks and Gatti, Anthony},
year={2025},
doi = {10.1101/2025.02.21.25322094},
publisher = {Cold Spring Harbor Laboratory Press},
URL = {https://www.medrxiv.org/content/early/2025/02/23/2025.02.21.25322094},
eprint = {https://www.medrxiv.org/content/early/2025/02/23/2025.02.21.25322094.full.pdf},
journal = {medRxiv},
note={Available at: https://huggingface.co/aagatti/nnunet_knee}
}
This model is part of an open-source knee MRI analysis pipeline. Contributions and feedback are welcome!
For questions about this model or collaboration opportunities, please reach out through the HuggingFace repository discussions.
Model Version: 1.0
Last Updated: 2025
License: MIT
Maintained by: @aagatti