Skip to content

[MIA'20] Semi-supervised WCE Image Classification with Adaptive Aggregated Attention

License

Notifications You must be signed in to change notification settings

Guo-Xiaoqing/SSL_WCE

Repository files navigation

Semi-supervised WCE Image Classification with Adaptive Aggregated Attention

by Xiaoqing Guo, Yixuan Yuan.

Summary:

Intoduction:

This repository is for our MedIA paper "Semi-supervised WCE Image Classification with Adaptive Aggregated Attention"

Framework:

Usage:

Requirement:

Tensorflow 1.4 (1.8) Python 3.5

Preprocessing:

Clone the repository:

git clone https://github.com/Guo-Xiaoqing/SSL_WCE.git
cd SSL_WCE 
  • Use "make_txt.py" to split training data and testing data. The generated txt files are showed in folder "./txt/".

  • "make_tfrecords.py" is used to make tfrecord format data, which could be stored in folder "./tfrecord/".

  • Note that we implemented data augmentation before training and then used the augmented dataset for training in this paper. However, it may be inconvenient for you. Therefore, to avoid additional data augmentation before training, online data augmentations, including random flips and rotations, are added in script "utilsForTF.py".

  • WarpDisc2Square.m is the Matlab code for data preprocessing.

Train the model:

sh ./script/train_SSL_WCE.sh
  • In this paper, the backbone of our method is DenseNet. Besides, we also integrate our method on other classification backbones: VGG, ResNet-50 and ResNeXt-50. These models are in the folder "./nets/". Several changes, such as decreasing the number of layers and feature maps, are made to ensure the size of these backbone networks to be similar to that of DenseNet. The hyperparameters utilized to these backbones are written in their corresponding model scripts.

Test the model:

sh ./script/evaluation_SSL_WCE.sh

Well trained model:

You could download the trained SSL_WCE model from Google Drive. Put the model in directory './models'.

Results:

  • Attention maps and inputs of the second branch derived from validation samples are shown in Results.

  • Log files recorded with tensorflow 1.4 and 1.8 are listed in Logs, which report the running time, loss and accuracy of a mini-batch during training phase.

Citation:

If you found this repository helpful for your research, please cite our paper:

@article{guo2020semi,
  title={Semi-supervised WCE Image Classification with Adaptive Aggregated Attention},
  author={Guo, Xiaoqing and Yuan, Yixuan},
  journal={Medical Image Analysis},
  pages={101733},
  year={2020},
  publisher={Elsevier}
}

Questions:

Please contact "xiaoqingguo1128@gmail.com"

About

[MIA'20] Semi-supervised WCE Image Classification with Adaptive Aggregated Attention

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages