Subspecialty-Specific Foundation Model for Intelligent Gastrointestinal Pathology
Paper β’ 2505.21928 β’ Published β’ 1
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Official pre-trained models for SlideCheck - a lightweight dual-head patch classifier for computational pathology.
| Model | Description | BRACS Cancer AUC | Mean BACC | Size | Download |
|---|---|---|---|---|---|
| phase1_baseline.pt | Base model (Mixup+FP) | 0.9345 | 0.8333 | 9.8 MB | π₯ |
| v4a_bl_ft.pt | Co-evolution FT (best overall) | 0.9253 | 0.8591 | 9.8 MB | π₯ |
| v5a_bl_scr.pt | Co-evolution Scratch (best scratch) | 0.9170 | 0.8555 | 9.8 MB | π₯ |
| v6c_bl_ft.pt | V3c confidence weighting | 0.9322 | 0.8508 | 9.8 MB | π₯ |
pip install huggingface_hub torch numpy h5py
git clone https://github.com/lingxitong/SlideCheck.git
cd SlideCheck
pip install -e .
from huggingface_hub import hf_hub_download
from slidecheck.inference import SlideCheckPredictor
# Download model (choose one)
model_path = hf_hub_download(
repo_id="infamousgxy/slidecheck",
filename="phase1_baseline.pt" # or v4a_bl_ft.pt, v5a_bl_scr.pt, v6c_bl_ft.pt
)
# Load predictor
predictor = SlideCheckPredictor(model_path)
# Predict from H5 file (TRIDENT format)
results = predictor.predict_from_h5('features.h5')
print(f"Abnormal probability: {results['prob_abn'].mean():.4f}")
print(f"Cancer probability: {results['prob_can'].mean():.4f}")
| Model | BRACS Can AUC | UNITO Can AUC | CAMEL Can AUC | Mean BACC |
|---|---|---|---|---|
| Phase1 BL | 0.9345 | 0.7977 | 0.8517 | 0.8333 |
| V4a BL FT | 0.9253 | 0.8281 | 0.9073 | 0.8591 β |
| V5a BL SCR | 0.9170 | 0.8257 | 0.9025 | 0.8555 |
| V6c BL FT | 0.9322 | 0.8172 | 0.8843 | 0.8508 |
Recommendation:
All models share the same architecture:
SlideCheckMLP:
LayerNorm(2560)
β Linear(2560, 768) β GELU β Dropout(0.1)
β Linear(768, 768) β GELU β Dropout(0.1)
β head_abn: Linear(768, 1) # Normal/Abnormal
β head_can: Linear(768, 1) # Cancer/Non-Cancer
Dataset A (859,379 patches from 8 datasets):
Co-evolution models (V4a, V5a, V6c) additionally use:
SlideCheck requires Virchow2 features (2560d). See phase1_baseline_README.md for feature extraction code.
# One h5 file per WSI:
{
'features': [N_patches, 2560], # float32
'coords': [N_patches, 2], # int64
}
If you use these models in your research, please cite:
@article{zhu2025subspecialty,
title={Subspecialty-specific foundation model for intelligent gastrointestinal pathology},
author={Zhu, Lianghui and Ling, Xitong and Ouyang, Minxi and Liu, Xiaoping and Guan, Tian and Fu, Mingxi and Cheng, Zhiqiang and Fu, Fanglei and Zeng, Maomao and Liu, Liming and others},
journal={arXiv preprint arXiv:2505.21928},
year={2025}
}
Apache License 2.0