You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repo is an official implementation of "Toward Robust Diagnosis: A Contour Attention Preserving Adversarial Defense for COVID-19 Detection", which is accepted by AAAI 2023.
As the COVID-19 pandemic puts pressure on healthcare systems worldwide, the computed tomography image based AI diagnostic system has become a sustainable solution for early diagnosis. However, the model-wise vulnerability under adversarial perturbation hinders its deployment in practical situation. The existing adversarial training strategies are difficult to generalized into medical imaging field challenged by complex medical texture features. To overcome this challenge, we propose a Contour Attention Preserving (CAP) method based on lung cavity edge extraction. The contour prior features are injected to attention layer via a parameter regularization and we optimize the robust empirical risk with hybrid distance metric. We then introduce a new cross-nation CT scan dataset to evaluate the generalization capability of the adversarial robustness under distribution shift. Experimental results indicate that the proposed method achieves state-of-the-art performance in multiple adversarial defense and generalization tasks.
The overall framework of the proposed CAP.
Getting Started
Let's start by cloning the repo:
git clone https://github.com/Quinn777/CAP
Then, you need to install the required packages including: Python 3.7, CUDA 11.6, Pytorch 1.10 and Timm 0.5.4. To install all these packages, simply run:
You can select the training and testing method by changing the status of parameters "train_method" and "test_method" in config.json file. Similarly, changing the status of parameter "epsilon", "num_steps" and "step_size" can control adversarial attack power.
Saliency map of three models under different training strategies.
Cite This Paper
If you find our code helpful for your research, please using the following bibtex to cite our paper:
@article{xiang2022toward,
title={Toward Robust Diagnosis: A Contour Attention Preserving Adversarial Defense for COVID-19 Detection},
author={Xiang, Kun and Zhang, Xing and She, Jinwen and Liu, Jinpeng and Wang, Haohan and Deng, Shiqi and Jiang, Shancheng},
journal={arXiv preprint arXiv:2211.16806},
year={2022}
}
About
This repo is an official implementation of "Toward Robust Diagnosis: A Contour Attention Preserving Adversarial Defense for COVID-19 Detection", which is accepted by AAAI 2023.