Stroke Segmentor
State-of-the-art ischemic stroke lesion segmentation in MRI
Installation
With a Python 3.9+ environment, you can install stroke_segmentor directly from PyPI:
pip install stroke_segmentor
Use Cases and Tutorials
A minimal example to create a segmentation could look like this:
from stroke_segmentor.inferer import Inferer
inferer = Inferer()
pred = inferer.infer(
adc_path="path/to/adc.nii.gz",
dwi_path="path/to/dwi.nii.gz",
segmentation_path="seg.nii.gz", # optional. the numpy array is always returned for direct usage
)
Logging
By default our package is silent, although we do use logging under the hood.
If you want, you can enable it like this:
from loguru import logger
logger.enable("stroke_segmentor")
Citation
DeepISLES
de la Rosa, Ezequiel, et al. "DeepISLES: a clinically validated ischemic stroke segmentation model from the ISLES'22 challenge." Nature Communications 16.1 (2025): 7357.
@article{de2025deepisles,
title={DeepISLES: a clinically validated ischemic stroke segmentation model from the ISLES'22 challenge},
author={de la Rosa, Ezequiel and Reyes, Mauricio and Liew, Sook-Lei and Hutton, Alexandre and Wiest, Roland and Kaesmacher, Johannes and Hanning, Uta and Hakim, Arsany and Zubal, Richard and Valenzuela, Waldo and others},
journal={Nature Communications},
volume={16},
number={1},
pages={7357},
year={2025},
publisher={Nature Publishing Group UK London}
}
BrainLesion Suite
Kofler, F., Rosier, M., Astaraki, M., Möller, H., Mekki, I. I., Buchner, J. A., ... & Menze, B. (2025). BrainLesion Suite: A Flexible and User-Friendly Framework for Modular Brain Lesion Image Analysis. arXiv preprint arXiv:2507.09036.
@article{kofler2025brainlesion,
title={BrainLesion Suite: A Flexible and User-Friendly Framework for Modular Brain Lesion Image Analysis},
author={Kofler, Florian and Rosier, Marcel and Astaraki, Mehdi and M{\"o}ller, Hendrik and Mekki, Ilhem Isra and Buchner, Josef A and Schmick, Anton and Pfiffer, Arianna and Oswald, Eva and Zimmer, Lucas and others},
journal={arXiv preprint arXiv:2507.09036},
year={2025}
}
NVAUTO Algorithm
Siddique, M. M. R., Yang, D., He, Y., Xu, D., & Myronenko, A. (2022). Automated ischemic stroke lesion segmentation from 3D MRI. arXiv preprint arXiv:2209.09546.
@article{siddique2022automated,
title={Automated ischemic stroke lesion segmentation from 3D MRI},
author={Siddique, Md Mahfuzur Rahman and Yang, Dong and He, Yufan and Xu, Daguang and Myronenko, Andriy},
journal={arXiv preprint arXiv:2209.09546},
year={2022}
}
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.
Metadata
Release files for stroke-segmentor 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stroke_segmentor-0.0.3.tar.gz | 7.5 kB | Without provenance | Details for stroke_segmentor-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stroke_segmentor-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for stroke_segmentor-0.0.3-py3-none-any.whl |
Total release size: 17.2 kB
Release files / stroke_segmentor-0.0.3.tar.gz
| Download URL | stroke_segmentor-0.0.3.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecd746a0d12910e331318153d793d6b3ac1a3526c08cb83539245d33cf33d6b2
|
|
BLAKE2b-256 checksum How to use checksums |
4f9026741e472c8564c441257f8a963961c6f386e76ab8801fafdcac2a890c66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / stroke_segmentor-0.0.3-py3-none-any.whl
| Download URL | stroke_segmentor-0.0.3-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1fe08468e074732e6b0d8c958fb63ef8826902750be24d471ff7f88102ed46b
|
|
BLAKE2b-256 checksum How to use checksums |
770a5ecd03dcf8a315c59a37365d113485cbfb1d893c9f8daddc04338af60e4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for stroke-segmentor 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.