The MOFO in multi-organ universal segmentation for ultrasound images serve as a pioneering exploration of improving segmentation performance by leveraging semantic and anatomical relationships within ultrasound images of multiple organs!
This repository provides the official implementation of Multi-Organ FOundation (MOFO) Model.
Multi-Organ Foundation Model for Universal Ultrasound Image Segmentation with Task Prompt and Anatomical Prior (IEEE Transaction on Medical Imaging, Under Review)
- Our MOFO is a segmentation foundation model formalized for multi-organ ultrasound universal segmentation.
- A hybri d US image database consisting of diverse images of 10 organs from patients across multiple medical centers is assembled to demonstrate the effectiveness of the MOFO.
Ultrasound images of various organs in the human body. (a) Midbrain. (b) Thyroid. (c) Breast. (d) Median nerve. (e) Leg muscle. (f) Lymph node. (g) Heart. (h) Kidney. (i) Fetus. (j) Achilles tendon.
The MOFO comprises prompt, vision, and prior branches. The vision branch extracts organ-invariant representations from images for segmentation. The prompt branch aggregates task prompt and image features to generate organ-specific representations, guiding the vision branch in segmenting objects. The prior branch utilizes the anatomical prior encoder to map the prediction maps and ground truth into the prior space, applying constraints to ensure consistency.
| Organ | Source | People | People | Target | Links | |
|---|---|---|---|---|---|---|
| 1 | Breast | Open | - | 647 | Breast tumor | BUSI |
| 2 | Fetus | Open | - | 999 | Fetal head | HC18 |
| 3 | Leg muscle | Open | - | 309 | Lower leg muscle | FALLMUD |
| 4 | Thyroid | Open | - | 637 | Thyroid nodule | DDTI |
| 5 | Achilles tendon | Private | 172 | 1048 | Achilles tendon | - |
| 6 | Heart | Private | 218 | 218 | Interventricular septum | - |
| 7 | Kidney | Private | 392 | 1102 | Kidney tumor | - |
| 8 | Lymph node | Private | 815 | 815 | Lymph node | - |
| 9 | Median nerve | Private | 520 | 1059 | Median nerve | - |
| 10 | Midbrain | Private | 205 | 205 | Midbrain | - |
-
Clone the repository.
git clone https://github.com/Git-HB-CHEN/MOFO.git cd MOFO -
Create a virtual environment for MOFO and activate the environment.
conda create -n MOFO python=3.9 conda activate MOFO -
Install Pytorch. (You can follow the instructions here)
-
Install other dependencies.
pip install -r requirements.txt
-
Download the Weights of the MOFO
-
Place your ultrasound images in the
examplesfolder -
Infer your ultrasound images with the MOFO
python infer.py
-
Provide the
Multi-Organ Databasefolder to help you organize your dataset. All images were saved inPNGformat. No special pre-processed methods are used in data preparation. -
Train the MOFO with your own datasets
python train.py -
Test the MOFO with your own datasets
python test.py
