Skip to content

MedCAI/SuRImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuRImage: Deep learning model for pathological invasiveness prediction based on surgical resection images

The official implementation of SuRImage.

🎉 The work has been accepted by The Lancet Digital Health 2026

1. Introduction

1.1 Background

Intraoperative diagnosis is crucial for selecting segmentectomy or lobectomy in clinical stage IA lung adenocarcinoma (LUAD). Current pathological examination during surgery suffers from chanllenges:

(i) The long time for frozen section analysis.

(ii) The ambiguous and inaccurate report through patholigcal examination.

To overcome these issues, we propose a novel framework named SuRImage that assits intraoperative diagnosis based on surgical resection images, provides providing insights into the macroscopic morphological features that indicate LUAD pathological invasiveness.

1.2 Framework

The main novelty of SuRImage is shown in subsequent Figure 1. Motivated by Fine-Grained Learning, we propose a coarse-to-fine grained classification model for completing three tasks in assisting LUAD diagnosis, namely, IAC diagnosis, IAC identification, and IAC classification.


Figure 1. Overview of the Coarse-to-fine framework in SuRImage.

2. Quick Start

2.1 Installation

Assuming that you have installed PyTorch and TorchVision, if not, please follow the officiall instruction to install them firstly. Intall the dependencies using cmd:

python -m pip install -r requirements.txt --user -q

The code is developed and tested using pytorch 1.12.1 + cu113. Other versions of pytorch are not fully tested.

2.2 Data preparation

Data are saved at Datasets. Please prepare the data as following:

|-Datasets
  |-GDHP
    |-AIS
    | |-img1.png
    | |-img2.png
    | | |-...
    |-MIA
    | |-img3.png
    | |-img4.png
    | | |-...
    |-1
    | |-img5.png
    | |-img6.png
    | | |-...
    |-2
    | |-img7.png
    | |-img8.png
    | | |-...
    |-3
    | |-img9.png
    | |-img10.png
    | | |-...

Data split script and patient information could be refered by the provided files.

2.3 Pretrained Weights

Pretrained weights are saved at "./pretrained_weights/", which could accelerate the training convergence.

|-pretrained_weights
| |-resnext50_32x4.bin
| |-seresnext50_32x4d.bin
| |-...

Surely, you can also train the backbone yourself.

2.4 Training

Training your SuRImage:

python trainer_vanilla.py
python trainer_fusion.py
python trainer_clinic.py # SuRImage

2.5 Testing

Testing your SuRImage:

python tester_vanilla.py
python tester_fusion.py
python tester_clinic.py # SuRImage

Evaluation procedures are also offered, like class activation map generation (generate_cam.py), ROC drawing (draw_roc_xxx.py), confusion matrix drawing (draw_confusion_matrix.py), etc. SuRImage achieves the encouraging performance on three tasks, improving the diagnosis efficency and uncovering the pathological attributes contained in resection images:


Figure 2. Class activation maps generated by SuRImage.

3. Citation

If you find this work or code is helpful in your research, please cite:

@misc{yao2024adaptively,
  title={Adaptively learning visual model of surgical resection images via coarse-to-fine--grained strategy for pathological invasiveness prediction in indeterminate stage IA lung adenocarcinoma.},
  author={Yao, Lintong and Zhou, HaiYu and Cai, Linghan and Li, Qiaxuan and Xie, Daipeng and Lin, Hongwei},
  year={2024},
  publisher={American Society of Clinical Oncology}
}

@article{yao2026deep,
  title={Deep Learning Model for Pathological Invasiveness Prediction Based on Surgical Resection Images Using Smartphone in Clinical Stage IA Lung Adenocarcinoma (SuRImage): a Prospective, Multicentric Diagnostic Study},
  author={Yao, Lintong, and Cai, Linghan, et al.},
  journal={The Lancet Digital Health},
  year={2026},
  publisher={Elsevier}
}

4. Contributing

Thanks to the following work for improving our project:

5. License

Distributed under the Apache 2.0 License. See LICENSE for more information.

About

Deep learning model for pathological invasiveness prediction

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages