[MICCAI2025] MOC: Meta-Optimized Classifier for Few-Shot Whole Slide Image Classification
9
stars
4
commits
Python
primary language
Sep 9, 2025
updated
This repository contains the official PyTorch implementation for our paper:
MOC: Meta-Optimized Classifier for Few-Shot Whole Slide Image Classification (MICCAI 2025)

WSI Preprocessing: This repository does not include scripts for Whole Slide Image (WSI) preprocessing. Please follow the official CLAM pipeline to extract WSI features.
luad and lusc features into the same folder named nsclc/merge_features_conch.h5_files as they preserve the coordinate information of the patches.main_moc.py at lines 205 and 266.Example Data Directory Structure:
data/
├── nsclc/
│ └── merge_features_conch/
│ ├── h5_files/
│ └── pt_files/
└── rcc/
└── ...
Dataset Information: Dataset definitions and split information have been placed in the dataset_csv/ and splits/ directories, respectively.
models/conch_checkpoint.bin. This path can be changed in main_moc.py at line 135.Modify the CUDA device ID and dataset name in the scripts/moc_train.sh script, then run:
bash scripts/moc_train.sh
Modify the relevant configurations in the scripts/moc_eval.sh script, then run:
bash scripts/moc_eval.sh
If you use this code or our method in your research, please cite our paper:
@article{xiang2025moc,
title={MOC: Meta-Optimized Classifier for Few-Shot Whole Slide Image Classification},
author={Xiang, Tianqi and Li, Yi and Zhang, Qixiang and Li, Xiaomeng},
journal={arXiv preprint arXiv:2508.09967},
year={2025}
}
4 commits
Python
98.7%
Shell
1.3%
[MICCAI2025] MOC: Meta-Optimized Classifier for Few-Shot Whole Slide Image Classification
9
stars
4
commits
Python
primary language
Sep 9, 2025
updated
This repository contains the official PyTorch implementation for our paper:
MOC: Meta-Optimized Classifier for Few-Shot Whole Slide Image Classification (MICCAI 2025)

WSI Preprocessing: This repository does not include scripts for Whole Slide Image (WSI) preprocessing. Please follow the official CLAM pipeline to extract WSI features.
luad and lusc features into the same folder named nsclc/merge_features_conch.h5_files as they preserve the coordinate information of the patches.main_moc.py at lines 205 and 266.Example Data Directory Structure:
data/
├── nsclc/
│ └── merge_features_conch/
│ ├── h5_files/
│ └── pt_files/
└── rcc/
└── ...
Dataset Information: Dataset definitions and split information have been placed in the dataset_csv/ and splits/ directories, respectively.
models/conch_checkpoint.bin. This path can be changed in main_moc.py at line 135.Modify the CUDA device ID and dataset name in the scripts/moc_train.sh script, then run:
bash scripts/moc_train.sh
Modify the relevant configurations in the scripts/moc_eval.sh script, then run:
bash scripts/moc_eval.sh
If you use this code or our method in your research, please cite our paper:
@article{xiang2025moc,
title={MOC: Meta-Optimized Classifier for Few-Shot Whole Slide Image Classification},
author={Xiang, Tianqi and Li, Yi and Zhang, Qixiang and Li, Xiaomeng},
journal={arXiv preprint arXiv:2508.09967},
year={2025}
}
4 commits
Python
98.7%
Shell
1.3%