https://github.com/brainlesion/deep_quality_estimation

Quality estimation for BraTS glioma segmentation models

https://github.com/brainlesion/deep_quality_estimation

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.1%) to scientific vocabulary

Keywords

brain glioma mri segmentation
Last synced: 5 months ago · JSON representation

Repository

Quality estimation for BraTS glioma segmentation models

Basic Info
Statistics
  • Stars: 3
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
brain glioma mri segmentation
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Contributing

README.md

Deep Quality Estimation

Python Versions Stable Version Documentation Status tests codecov License

Quality prediction for brain tumor segmentation on a scale ranging from ⭐ 1 star to ⭐⭐⭐⭐⭐⭐ 6 stars inspired by the paper Deep Quality Estimation: Creating Surrogate Models for Human Quality Ratings.
This can be used to estimate the quality of a BraTS glioma segmentation for evaluation purposes or, e.g., as part of a loss function during model training.

Important notes

[!IMPORTANT]
This package expects images in atlas space and segmentation labels in brats style, i.e. - label 1 is the necrotic and non-enhancing tumor core - label 2 is the peritumoral edema - label 3 is the GD-enhancing tumor (used to be label 4 in older data; both are supported)

[!NOTE] The model in this package differs from the one presented in the paper.
Unlike the original model it is trained based on individual radiologists' ratings enabling it to learn the variance between radiologists' estimates.
It outperforms the model presented in the paper on the test set.

[!CAUTION] The model is biased to overestimate segmentation quality as it was mainly trained on high-quality segmentations and was exposed to only a few bad samples. We still argue that high scores can be useful.

Installation

With a Python 3.9+ environment, you can install deep_quality_estimation directly from PyPI:

bash pip install deep_quality_estimation

Use Cases and Tutorials

A minimal example to predict the quality of a segmentation could look like this:

```python from deepqualityestimation import DQE

shown parameters are default values but can be adapted to usecase

dqe = DQE(device="cuda", cuda_devices="0")

inputs can be Paths (str or pathlib.Path object), NumPy NDArrays or a mix

meanscore, scoresper_view = dqe.predict( t1c="t1c.nii.gz", t1="t1.nii.gz", t2="t2.nii.gz", flair="flair.nii.gz", segmentation="segmentation.nii.gz", ) ```

Citation

If you use deep_quality_estimation in your research, please cite it to support the development!

https://arxiv.org/abs/2205.10355 @misc{kofler2022deepqualityestimationcreating, title={Deep Quality Estimation: Creating Surrogate Models for Human Quality Ratings}, author={Florian Kofler and Ivan Ezhov and Lucas Fidon and Izabela Horvath and Ezequiel de la Rosa and John LaMaster and Hongwei Li and Tom Finck and Suprosanna Shit and Johannes Paetzold and Spyridon Bakas and Marie Piraud and Jan Kirschke and Tom Vercauteren and Claus Zimmer and Benedikt Wiestler and Bjoern Menze}, year={2022}, eprint={2205.10355}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2205.10355}, }

Contributing

We welcome all kinds of contributions from the community!

Reporting Bugs, Feature Requests and Questions

Please open a new issue here.

Code contributions

Nice to have you on board! Please have a look at our CONTRIBUTING.md file.

Owner

  • Name: BrainLesion
  • Login: BrainLesion
  • Kind: organization

GitHub Events

Total
  • Issues event: 6
  • Watch event: 3
  • Delete event: 10
  • Issue comment event: 7
  • Push event: 32
  • Pull request review comment event: 3
  • Pull request review event: 7
  • Pull request event: 14
  • Create event: 11
Last Year
  • Issues event: 6
  • Watch event: 3
  • Delete event: 10
  • Issue comment event: 7
  • Push event: 32
  • Pull request review comment event: 3
  • Pull request review event: 7
  • Pull request event: 14
  • Create event: 11

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 22 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 2
pypi.org: deep-quality-estimation
  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 22 Last month
Rankings
Dependent packages count: 10.0%
Average: 33.0%
Dependent repos count: 56.1%
Maintainers (2)
Last synced: 6 months ago

Dependencies

.github/workflows/autoformat.yml actions
.github/workflows/pr-lint.yml actions
.github/workflows/release.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/tests.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
pyproject.toml pypi
  • flake8 >=4.0.1 develop
  • pytest >=8.0.0 develop
  • pytest-cov >=5.0.0 develop
  • Sphinx >=7.0.0 docs
  • furo >=2024.8.6 docs
  • myst-parser >=2.0.0 docs
  • sphinx-copybutton >=0.5.2 docs
  • python >=3.9