Soft-Label Anonymous Gastric X-ray Image Distillation
Guang Li, Ren Togo, Takahiro Ogawa, Miki Haseyama
Introduction
Deep learning, in particular, deep convolutional neural networks (DCNNs), have been popular with many areas in computer vision . Especially, in the field of medical image analysis, DCNN-based CAD systems are often used as an auxiliary diagnosis of diseases . The sharing of medical data is a primary method for building high-accuracy CAD systems . However, there are still two main problems in medical data sharing. Firstly, with the increase in the number of medical equipment, the amount of medical image data grows exponentially, resulting in large size of the medical dataset . Therefore, the sharing of medical image data is inefficient. It is necessary to extract valid data to reduce the size of the medical dataset. Secondly, because the medical images contain the patient's private information, there is still an enormous controversy over the use of these medical data . It is difficult to share the medical image data of many diseases, which hindered the research and development of CAD systems.
To solve the problem of reducing the size of the dataset, many researchers have proposed unique solutions. For example, many instance selection and dataset pruning methods aim to select a subset of the entire training dataset and achieve performance comparable to the original full dataset, which can reduce the size of the dataset . Similarly, Campbell . proposed a Bayesian core-set construction method that can find valid data in the original dataset via the greedy iterative geodesic ascent . Also, Sener . proposed a core-set construction approach based on active learning . Active learning reduces the amount of data that need to be labeled by only labeling data that are difficult to classify . Although these previous approaches have made some progresses in solving the problem of reducing the size of standard image dataset, due to the high complexity of medical images and the need for professional knowledge of labeling, they still cannot meet the requirements for medical dataset.
Privacy protection problem has always been the main obstacle in medical data sharing . Researchers have also tackled the problem of hiding personal information. For example, some methods for removal of identifiers have been proposed to protect the privacy of patients . These methods contain stripping identifier and one-way hashing algorithm. The stripping identifier approach is an anonymization algorithm which can remove all patient identifiers in a record. And the one-way hashing algorithm transforms a patient record string into another string, such that operations on the hash value cannot calculate the original patient record. In recent years, with the rise of big data, some ways to use cloud computing platforms to share medical data securely have been proposed. For example, Yang . proposed a hybrid solution method of privacy-preserving medical data sharing based on cloud computing . Also, Fabian . proposed a method to realize the safe sharing of medical data with semi-trust cloud computing environments . Since it is challenging to ensure the validity of anonymized medical images, all of these methods do not pay attention to the anonymization of medical image data itself.
In this paper, we propose a novel method that can not only effectively compress the medical dataset but also anonymize medical images to protect the patient's private information . Since the researches of gastric X-ray images have both of the above problems, and we have previously proposed methods for anonymous gastritis image generation and automatic detection of gastritis , we also focus on gastric X-ray images in this research. Considering the gastric X-ray images with high resolutions can lead to expensive computing cost, we divide them into patches that have three categories. To maximize the compression of the dataset and distillation of the valid information, we distill each class into one image for training. Then we use the distilled images to estimate the labels of full gastric X-ray images. Experimental results show that our distillation method achieved competitive classification accuracy using a tiny distilled dataset. Furthermore, the sharing of medical image data can become more efficient and safer because the distilled images do not contain private information.
Our contributions are summarized as follows:
We propose a novel method for anonymous medical image distillation, which can improve the efficiency and security of medical image data sharing.
We realize high classification performance by distilling each class into one image for training.
Anonymous Gastric X-ray image distillation
This section shows the details of the soft-label anonymous gastric X-ray image distillation method. In subsection 2.1, we preprocess the training dataset by dividing the gastric images into patches. In subsection 2.2, we demonstrate the entire flow of the anonymous gastric image distillation algorithm. In subsection 2.3, we explain how to estimate the labels of full gastric X-ray images.
This subsection shows how we preprocess the training dataset. The gastric X-ray images in our dataset have high resolutions, , 2,048 2,048 pixels. In practical applications, the high-resolution images can lead to expensive computing cost. Therefore, we divide each gastric X-ray image into patches ( and respectively denote the number of patches in the vertical direction and the horizontal direction) and manually label these patch-based gastric X-ray images into the following three categories:
: patches outside of the stomach (irrelevant),
: patches extracted from non-gastritis X-ray images (negative) inside of the stomach,
: patches extracted from gastritis X-ray images (positive) inside of the stomach.
Figures 1 and 2 show the full gastric X-ray images and patch-based gastric X-ray images, respectively.
2 Anonymous Gastric Image Distillation
3 Full Gastric X-ray Image Classification
In this subsection, we explain how to estimate the label of a full gastric X-ray image based on patches. First, when we have a test gastric image, we divide it into patches. Then we put the divided patches into the trained DCNN model, and we can obtain the predicted labels of these patches. Next, we respectively calculate the number of patches whose predicted labels are and . The patches that extracted from outside of the stomach are not related to the gastritis/non-gastritis prediction, and hence we do not take into account them to the probability calculation. Finally, we estimate the label of a full gastric X-ray image as follows:
Experimental Results
In this section, we verify the effectiveness of our distillation method with experimental results. In subsection 3.1, we show the experimental settings of our method. In subsection 3.2, we evaluate the performance of our method by classifying the full gastric X-ray images.
This subsection shows the experimental settings of our research. The dataset used in our study contains 815 patients' (240 gastritis and 575 non-gastritis) gastric X-ray images. Each image has a ground truth (gastritis/non-gastritis), which was determined by patient diagnosis results of endoscopic examination and X-ray inspection. All of the gastric X-ray images are gray-scale and high-resolution. The training dataset contains 200 patients' (100 gastritis and 100 non-gastritis) images. Also, the rest of the patients' (140 gastritis and 475 non-gastritis) images are included in the test dataset. In the data preprocessing stage, we divided the images into patches (299 299 pixels), , = = 35, where the sliding interval was set to 50 pixels. Besides, the patches extracted from the training dataset were labeled as , and by a radiological technologist. Note that if the regions inside of the stomach were less than 1 in a patch, it was labeled as . In addition, if the regions inside of the stomach were more than 85 in a patch, it was labeled as or . And we discarded the rest of the patches in the training dataset. As a result, we obtained , and whose number of patches were 48,385, 42,785 and 45,127, respectively.
In the test phase, we performed two experiments (Ex. I and Ex. II) to show the validity of our proposed method quantitatively. Firstly, in Ex. I, we selected the distilled soft-label images that have the best classification performance on the patch-based training dataset and evaluated the performance on the full X-ray images of the test dataset. Specifically, we evaluated the full gastric X-ray images classification performance of the ResNet18 models trained on the three random subsets. Secondly, in Ex. II, we used the hard-label distillation as a comparative method. As in Ex. I, we selected the best distilled hard-label images, which have the highest classification accuracy on the patch-based training dataset. And we utilized the distilled hard-label images to evaluate the classification performance on the full gastric X-ray images. Note that we set the threshold to 0.4 in both of Exs. I and II, which tends to have an excellent classification performance. We utilized the following sensitivity (Sen), specificity (Spe) and harmonic mean (HM) of Sen and Spe as evaluation indexes:
where TP, FN, TN and FP denote the number of true positive, false negative, true negative and false positive, respectively.
2 Results and Discussion
The experimental results are shown in Tables 1 and 2. Table 1 shows the full gastric X-ray images classification performance of our proposed method and ResNet18 trained on the random subsets. The ResNet18 model trained with 3,000 images per category (total 9,000 images) has an HM score of 0.823. On the other hand, our soft-label distillation method that distilled each class into only one image for training has a higher HM score of 0.877. We can see that the proposed method realizes competitive classification accuracy with a tiny distilled dataset. Table 2 shows the full gastric X-ray images classification performance of our soft-label distillation and the hard-label distillation method. The HM scores of both the two approaches exceed 0.85, but our soft-label distillation outperforms the hard-label distillation with a higher score. Furthermore, we can see that the classification performance of our method becomes more stable because of the balance of Sen score and Spe score. It means that the distilled images with soft-label can lead to better distillation results. Experimental results clearly showed the validity of our purposed soft-label distillation method.
Figure 3 shows examples of distilled hard-label images and soft-label images used in our experiments. With the distillation methods, the information of gastritis/non-gastritis patch images was extracted and merged into only one image. Note that I (base), N (base) and P (base) respectively denote the image belongs to label , and with the highest probability. From Fig. 3, we can see that the features of gastritis/non-gastritis patches cannot be distinguished, in other words, the gastric images were anonymized completely. Hence, the distilled images have no private information of patients. Figure 3 clearly showed that our proposed method can effectively compress and anonymize the medical image data.
CONCLUSION
In this paper, we have proposed a soft-label anonymous gastric image distillation method. The proposed method realizes high classification performance by distilling each class into one image for training. Furthermore, the sharing of medical image data with our approach can become more efficient and safer because the distilled images are anonymous.