# Expert-Level Diagnosis of Pediatric Brain Tumors via Consistency Calibration
Accurate diagnosis of pediatric brain tumors (PBT) is critical for saving lives, but the limited number of specialists makes accurate diagnostics scarce. To make the diagnosis of PBT accurate, automatic, and noninvasive, researchers propose to employ deep neural networks (DNNs) to predict tumor types using magnetic resonance imaging (MRI) data. Advanced methods mainly focus on fine-tuning DNNs pre-trained on large-scale datasets of natural images, e.g., ImageNet. However, existing methods overlook the priors of human experts.In particular, human experts typically recheck, to ensure prediction consistency, whether images predicted as one class are similar to those predicted as the same class. Namely, the predicted results of an intelligent system should remain consistent. Inspired by the re-checking process, we propose a novel learning paradigm, called \emph{co}nsistency \emph{cal}ibration (Coca).
Within the Coca framework, the output predicted by DNNs is guided by two objective functions: (i) the task-specific objective making the predicted results the same as the groundtruth, and (ii) an auxiliary objective re-checking the consistency of the prediction. To achieve Coca, we define the inconsistency for each sample by the inconsistent risks: the auxiliary risk is small (large), but the task-specific risk is large (small). Built upon the inconsistency definition, Coca identifies the inconsistencies for each sample in an adversarial attack manner. Subsequently, these inconsistencies are leveraged to tune DNNs in an adversarial training fashion for consistency calibration. To verify the efficacy of Coca, we conduct comprehensive experiments using a large-scale PBT dataset, showcasing that Coca can significantly outperform the state-of-the-art method. Moreover, Coca achieves a
This project represents the implementation of paper submitted to KBS titled "Expert-Level Diagnosis of Pediatric Brain Tumors via Consistency Calibration."
-
Clone the repository:
git clone https://github.com/sunch-ustc/coca.git
-
Navigate to the project directory:
cd coca
-
Create a Python virtual environment:
python -m venv venv
-
Activate the virtual environment:
On Windows:
venv\Scripts\activate
On macOS and Linux:
source venv/bin/activate
-
Install project dependencies:
pip install -r requirements.txt
The method comprises two main steps: the instantiation of inconsistency and the consistency calibration. The visualization of the proposed method is shown in Figure.
If your project involves training a model, provide instructions on how to do it. Include any relevant datasets, scripts, or parameters that need to be configured. For example:
-
Download the dataset from Dataset Link. Download the ResNet18 from Model
-
Place the dataset files in the
data/
directory and place the model files in themodel/
directory -
Run the training script:
python coca.py OUTPUT_DIR "/output/" \ OUTPUT_RESULT "/output/result.txt" \ yaml_path 'config/default.yaml' \ EVAL_CHECKPOINT 'model/resnet18-5c106cde.pth' \ DATA.DIR 'data/Internal.hdf5' \ method 'coca' \ TRAIN.BASE_LR 1e-4 \ TRAIN.PRE_LR 1.0 \ TRAIN.EPOCHS 200 \ beta12 0.1 beta21 0.1 \ times 3 epsilon 0.025 lamda [1.0,1.0,1.0,1.0]
You can evaluate the trained model on either the internal test set or the external test set. We offer a pre-trained model available at 'models/model', or you have the option to train a new model from scratch.
# test on the Internal test set
python coca.py OUTPUT_DIR "/output/coca" \
OUTPUT_RESULT "/output/coca/result.txt" \
yaml_path 'config/default.yaml' \
EVAL_CHECKPOINT 'model/model_best.pth.tar' \
DATA.DIR 'data/Internal.hdf5' \
Test "internal"
# test on the External test set
python coca.py OUTPUT_DIR "/output/coca" \
OUTPUT_RESULT "/output/coca/result.txt" \
yaml_path 'config/default.yaml' \
EVAL_CHECKPOINT 'model/model_best.pth.tar' \
DATA.DIR 'data/External.hdf5' \
Test "external"
The Dataset is collected through collaborations with several institutions:
-
Yunwei OU, Yongji TIAN, Wei LIU, Chunde Li, Zhenyu MA, Beijing Tiantan Hospital, Capital Medical University;
-
China Pediatric Neurosurgery Federation (CPNF), National Center for Neurological Disorders;
-
Qing CHANG, Dept. of Neuropathology, Beijing Neurosurgical institute Beijing Tiantan Hospital, Capital Medical University Rong ZHANG, Huashan Hospital, Fudan University; Junping ZHANG,SanboBrain Hospital, Capital Medical University;
-
Guangyu WANG, Qilu Shandong University; Jie ZHAO, Xiangya Children's Hospital of Hospital, Central South University;
-
Jie GONG, Qilu Hospital of Shandong University and institute of Brain and Brain-lnspired Science;
-
Ping LIANG, Children's Hospital of Chongqing Medical University;
-
Xiaosheng HE,Xijing Hospital, Air Force Medical University;
Provided that you want to use our dataset, please contact us([email protected]).