MOOSE (Multi-organ objective segmentation) a data-centric AI solution that generates multilabel organ segmentations to facilitate systemic TB whole-person research.The pipeline is based on nn-UNet and has the capability to segment 120 unique tissue classes from a whole-body 18F-FDG PET/CT image.
Welcome to the new and improved MOOSE (v3.2), where speed and efficiency aren’t just buzzwords—they’re a way of life.
💨 3x Faster Than Before
Like a moose sprinting through the woods (okay, maybe not that fast), MOOSE 3.2 is built for speed. It’s 3x faster than its older sibling, MOOSE 2.0, which was already no slouch. Blink, and you’ll miss it. ⚡
💻 Memory: Light as a Feather, Strong as a Bull
Forget “Does it fit on my laptop?” The answer is YES. 🕺 Thanks to Dask wizardry, all that data stays in memory. No disk writes, no fuss. Run total-body CT on that ‘decent’ laptop you bought three years ago and feel like you’ve upgraded. 🥳
🛠️ Any OS, Anytime, Anywhere
Windows, Mac, Linux—we don’t play favorites. 🍏 Mac users, you’re in luck: MOOSE runs natively on MPS, getting you GPU-like speeds without the NVIDIA guilt. 🚀
🎯 Trained to Perfection
This is our best model yet, trained on a whopping 1.7k datasets. More data, better results. Plus you can run multiple models at the same time - You’ll be slicing through images like a knife through warm butter. (Or tofu, if you prefer.) 🧈🔪
🖥️ The ‘Herd’ Mode 🖥️
Got a powerhouse server just sitting around? Time to let the herd loose! Flip the Herd Mode switch and watch MOOSE multiply across your compute like… well, like a herd of moose! 🦌🦌🦌 The more hardware you have, the faster your inference gets done. Scale up, speed up, and make every bit of your server earn its oats. 🌾💨
MOOSE 3.2 isn’t just an upgrade—it’s a lifestyle. A faster, leaner, and stronger lifestyle. Ready to join the herd? 🦌✨
Each model is designed to provide high-quality segmentation with MOOSE 3.2’s optimized algorithms and data-centric AI principles.
Supported Modalities 🩻
MOOSE 3.2 supports (or is prepared to support) multiple different modalities and their subtypes.
Each model declares which modality (and optionally which subtype) it expects as input, allowing the same pipeline to handle a wide range of clinical and research data.
Modality
Subtype
Description
File Prefix
CT
—
Computed Tomography
CT_
PT
FDG
Positron Emission Tomography, [¹⁸F]FDG tracer
PT_FDG_
PT
PSMA
Positron Emission Tomography, PSMA ligands
PT_PSMA_
MR
—
Magnetic Resonance (unspecified weighting)
MR_
MR
T1
T1-weighted MR
MR_T1_
MR
T2
T2-weighted MR
MR_T2_
NM
LU
Nuclear Medicine, [¹⁷⁷Lu]-based
NM_LU_
ST
LU
SPECT, [¹⁷⁷Lu]-based
ST_LU_
A subtype of — (i.e. None in the configuration) means the modality can be used without further specification.
The configuration lives in moosez.constants.ALLOWED_MODALITY_CONFIGURATIONS.
Star History 🤩
Citations ❤️
Ferrara, D., Pires, M., Gutschmayer, S. et al. Sharing a whole-/total-body [18F]FDG-PET/CT dataset with CT-derived segmentations: an ENHANCE.PET initiative. Sci Data (2026). https://doi.org/10.1038/s41597-026-07218-y
Shiyam Sundar, L. K., Yu, J., Muzik, O., Kulterer, O., Fueger, B. J., Kifjak, D., Nakuz, T., Shin, H. M., Sima, A. K., Kitzmantl, D., Badawi, R. D., Nardo, L., Cherry, S. R., Spencer, B. A., Hacker, M., & Beyer, T. (2022). Fully-automated, semantic segmentation of whole-body 18F-FDG PET/CT images based on data-centric artificial intelligence. Journal of Nuclear Medicine. https://doi.org/10.2967/jnumed.122.264063
Isensee, F., Jaeger, P.F., Kohl, S.A.A. et al. nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation. Nat Methods 18, 203–211 (2021). https://doi.org/10.1038/s41592-020-01008-z
Requirements ✅
Before you dive into the incredible world of MOOSE 3.2, here are a few things you need to ensure for an optimal experience:
Operating System: We’ve got you covered, whether you’re on Windows, Mac, or Linux. MOOSE 3.2 has been tested across these platforms to ensure seamless operation.
Memory: MOOSE 3.2 has quite an appetite! Make sure you have at least 16GB of RAM for the smooth running of all tasks.
GPU: If speed is your game, an NVIDIA GPU is the name! MOOSE 3.2 leverages GPU acceleration to deliver results fast. Don’t worry if you don’t have one, though - it will still work, just at a slower pace.
Python: Ensure that you have Python 3.10 or newer installed on your system. MOOSE 3.2 likes to keep up with the latest, after all!
So, that’s it! Make sure you’re geared up with these specifications, and you’re all set to explore everything MOOSE 3.2 has to offer. 🚀🌐
Installation Guide 🛠️
Available on Windows, Linux, and MacOS, the installation is as simple as it gets. Follow our step-by-step guide below and set sail on your journey with MOOSE 3.2.
For Linux 🐧 and Mac 🍏
First, create a Python environment. You can name it to your liking; for example, ‘moose-env’.
python -m venv moose-env
Activate your newly created environment.
source moose-env/bin/activate
Install MOOSE 3.2 from PyPI.
python -m pip install moosez
Voila! You’re all set to explore with MOOSE 3.2.
For Windows 🪟
Create a Python environment. You could name it ‘moose-env’, or as you wish.
python -m venv moose-env
Activate your newly created environment.
.\moose-env\Scripts\activate
If you need a CUDA-specific PyTorch build, install the appropriate PyTorch version for your system first. Otherwise, the PyPI install below will install the default PyTorch dependency.
Finally, install MOOSE 3.2 from PyPI.
python -m pip install moosez
There you have it! You’re ready to venture into the world of 3D medical image segmentation with MOOSE 3.2.
Happy exploring! 🚀🔬
Usage Guide 📚
Command-Line Tool for Batch Processing 🖥️🚀
Getting started with MOOSE 3.2 is as easy as slicing through butter 🧈🔪. Use the command-line tool to process multiple segmentation models in sequence or in parallel, making your workflow a breeze. 🌬️
Running Single/Multiple Models in Sequence 🏃♂️🎯
You can now run single or several models in sequence with a single command. Just provide the path to your subject images and list the segmentation models you wish to apply:
# For single model inference
moosez -d <path_to_image_dir> -m <model_name>
# For multiple model inference
moosez -d <path_to_image_dir> \
-m <model_name1> \
<model_name2> \
<model_name3> \
For instance, to run clinical CT organ segmentation on a directory of images, you can use the following command:
moosez -d <path_to_image_dir> -m clin_ct_organs
Likewise, to run multiple models, e.g. organs, ribs, and vertebrae, you can use the following command:
MOOSE 3.2 will handle each model one after the other—no fuss, no hassle. 🙌✨
Herd Mode: Running Parallel Instances 🦌💨💻
Got a powerful server or HPC? Let the herd roam! 🦌🚀 Use Herd Mode to run multiple MOOSE instances in parallel. Just add the -herd flag with the number of instances you wish to run simultaneously:
That’s it! With these flexible inputs, you can use MOOSE 3.2 to fit your workflow perfectly—whether you’re processing a single image, a stack of files, or leveraging different data formats. 🖥️🎉
Happy segmenting with MOOSE 3.2! 🦌💫
Directory Structure and Naming Conventions for MOOSE 📂🏷️
Applicable only for batch mode ⚠️
Using MOOSE 3.2 optimally requires your data to be structured according to specific conventions. MOOSE 3.2 supports both DICOM and NIFTI formats. For DICOM files, MOOSE infers the modality from the DICOM tags and checks if the given modality is suitable for the chosen segmentation model. However, for NIFTI files, users need to ensure the files are named with the correct modality suffix. For more information, see the Supported Modalities section.
Note: If the necessary naming conventions are not followed, MOOSE 3.2 will skip the subjects.
Naming Conventions for NIFTI files 📝
When using NIFTI files, you should name the file with the appropriate modality as a suffix, specified by the models you want to use.
For instance, if you have chosen the model_name as clin_ct_organs, the CT scan for subject ‘S2’ in NIFTI format should have the modality tag ‘CT_’ attached to the file name, e.g. CT_S2.nii. In the directory shown above, every subject will be processed by moosez except S4.
For more information on modality prefixes, see the Supported Modalities section.
Remember: Adhering to these file naming and directory structure conventions ensures smooth and efficient processing with MOOSE 3.2. Happy segmenting! 🚀
A Note on QIMP Python Packages: The ‘Z’ Factor 📚🚀
All of our Python packages here at QIMP carry a special signature – a distinctive ‘Z’ at the end of their names. The ‘Z’ is more than just a letter to us; it’s a symbol of our forward-thinking approach and commitment to continuous innovation.
Our MOOSE package, for example, is named as ‘moosez’, pronounced “moose-see”. So, why ‘Z’?
Well, in the world of mathematics and science, ‘Z’ often represents the unknown, the variable that’s yet to be discovered, or the final destination in a series. We at QIMP believe in always pushing boundaries, venturing into uncharted territories, and staying on the cutting edge of technology. The ‘Z’ embodies this philosophy. It represents our constant quest to uncover what lies beyond the known, to explore the undiscovered, and to bring you the future of medical imaging.
Each time you see a ‘Z’ in one of our package names, be reminded of the spirit of exploration and discovery that drives our work. With QIMP, you’re not just installing a package; you’re joining us on a journey to the frontiers of medical image processing. Here’s to exploring the ‘Z’ dimension together! 🚀
评论