This repo is the official implementation of "Multimodal Multitask Deep Learning for Predicting Tertiary Lymphoid Structures and Peritoneal Recurrence in Gastric Cancer: A Multicenter Study".
Python == 3.8 and install from the requirements.txt using:
pip install -r requirements.txt
The model weights of CTransNet can be downloaded at the link. You may need to send the request to get the access permission.
You can train to get your own model.
python train.py
python eval.py
python eval_os.py
2.3. Inference the Model to predict the maturation stages of TLSs and peritoneal recurrence-free survival on external validation cohort
python inference.py
@article{li2026ctrans,
title={Multimodal Multitask Deep Learning for Predicting Tertiary Lymphoid Structures and Peritoneal Recurrence in Gastric Cancer: A Multicenter Study},
author={Li, Zihan and Zhang, Taojun and others},
journal={The Lancet Digital Health},
year={2026},
publisher={Elsevier}
}