Learn the new, keep the old: Extending pretrained models with new anatomy and images

06/01/2018 ∙ by Firat Ozdemir, et al. ∙ 0

Deep learning has been widely accepted as a promising solution for medical image segmentation, given a sufficiently large representative dataset of images with corresponding annotations. With ever increasing amounts of annotated medical datasets, it is infeasible to train a learning method always with all data from scratch. This is also doomed to hit computational limits, e.g., memory or runtime feasible for training. Incremental learning can be a potential solution, where new information (images or anatomy) is introduced iteratively. Nevertheless, for the preservation of the collective information, it is essential to keep some "important" (i.e. representative) images and annotations from the past, while adding new information. In this paper, we introduce a framework for applying incremental learning for segmentation and propose novel methods for selecting representative data therein. We comparatively evaluate our methods in different scenarios using MR images and validate the increased learning capacity with using our methods.

READ FULL TEXT VIEW PDF
POST COMMENT

Comments

There are no comments yet.

Authors

page 7

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

With the growing interest in automatic and semi-automatic analysis of patients, available data size for research is continuously increasing. Even for a single anatomical structure, soon it may become infeasible to retrain a network when a newly available data is introduced. On the other hand, one can expect to see variations in image properties across iterations of new data due to various factors, e.g. mechanical differences across imaging device brands, physiological differences across imaged subjects. Furthermore, although various datasets from similar modality are often available, they belong to different studies, hence they have different field-of-view (FOV), image acquisition parameters, and/or annotated anatomy. For instance, some MR modalities (i.e., ultra short TE) are often used to analyze bones and tendons thanks to its high contrast. However, a study on diagnosis or healing quantification of Achilles tendon often do not allocate resources for proximal bone tissue annotation. Similarly, for an osteotomy planning, often only bones are annotated to generate surgical guides. Aggregation of annotation knowledge across different anatomy, modality & dataset are not well investigated; however, it is of growing interest in the machine learning community 

[1, 2]

as in the form of an “evolving” classifier. To the best of our knowledge, increasing label problem has neither been tackled for segmentation nor in medical community.

For class-incremental learning problem, initial works include finetuning [3]; however, it is well known [4] that this results with “catastrophic forgetting.” Later on, learning without forgetting (LwF) [2] has been proposed, which utilizes distillation loss [1]

such that when new classes are being added to a network, final activation response of the previous classes are also used for backpropagation. With iCaRL 

[5], authors extend on LwF by proposing a strategy for selecting an exemplar dataset, which keeps a “representative” subset of the earlier training data for the existing classes, and put an upper bound on required memory requirements. In [6], authors suggest a novel way to pick representative samples to train on, for the purpose of maximizing performance for binary segmentation task of gland cells at a next training iteration.

In this work, our novelties are in line with blocks that are necessary to expand class-incremental learning for segmentation task; extending distillation loss to segmentation without an assumption on mutual exclusivity of classes. We propose alternative methods for picking representative samples to sustain segmentation accuracy of prior classes. To the best of our knowledge, this is the first work extending distillation loss for class-incremental segmentation.

2 Incremental Head Networks

Figure 1: Schematic of the proposed convolutional network at incremental step . Additional layers (“Head”) at step are shown with . Second layer at coarsest level is called abstraction layer. denotes the exemplar data in Sec. 2.2.

2.1 Conservation of Prior Knowledge with Distillation

In medical image analysis, a lot of anatomies show similarity in their statistical priors (i.e., bones). Similarly to the idea of finetuning a pretrained VGG [7] network for different digital image classification task, one can train a model with a dataset of anatomy and then finetune it for a new dataset of anatomy , as to utilize knowledge obtained from dataset of when learning . Based on the application, maintaining segmentation capability of anatomy can be equally important (e.g. functional modeling), albeit the two annotated dataset being collected from different patients/studies. It is possible to use distillation loss [1, 5] in order to retain the segmentation accuracy of , while exploiting learned prior statistical knowledge to better learn more limited resources of .

Inspired by the idea (LwF [2]) from classification, we propose a segmentation framework for class-incremental learning. At an initial training phase, we train a U-Net [8] like network (cf. Fig. 1 without ) with a first dataset using desired classification loss . In order to disambiguate between initial and incremental training, we will refer to the old and new steps as and , respectively. Prior to incremental training, all available dataset

is passed through the pretrained network in order to produce prediction probabilities for the old classes, including their respective background. For old classes

, these predictions are then used for retaining the network’s segmentation accuracy. For incremental training, a new network is then constructed with an additional head as shown in Fig. 1. The parameters for the the network (cf. Fig. 1) except for are loaded from the previously trained model. During incremental training, for given mini-batch we optimize the following loss:

(1)

where is a weighting scalar, and is the distillation loss defined as:

(2)

where and are the predicted probabilities for class for the initially trained network and the old class heads in the new network.

While it would be ideal to retain all prior training dataset when introducing a new label, this is not a scalable solution due to computational challenges discussed before. An extreme case is to remove all prior data from incremental learning; i.e.,  [2]. The method proposed above is called in the following as LwfSeg. When incrementally learning with datasets of similar properties, LwfSeg may prove sufficient to preserve old class segmentation capacity. Unfortunately, there can be significant amount of variation in image data across different iterations of training, e.g. different MR field inhomogeneity due to different patient profiles, differences across used machine brands. This can lead to a false guidance of the network with an effort to retain old class knowledge.

2.2 Selecting Representative Samples

One can select a subset of the training data to be kept for future incremental learning processes. For classification tasks, a potential approach to choosing representative samples is to observe the feature space right before the final network layer (i.e., embedding space) [5, 9]

, where each input sample is represented with a class-discriminating vector.

Although an intuitive extension for segmentation is to use the embedding space, this is not directly applicable. Finding “most representative” pixels per class in the embedding space is not very helpful. Even if one aggregates a representativeness metric over all pixels at the embedding space as to get a scalar value per input image, it is not clear how to account for the ratio of the foreground pixels accordingly. Therefore, we propose the following two alternatives.

Maximum Set Coverage over Most Certain Sample Abstractions: Using dropout layers, one can compute a trained models confidence for a given input image

through Monte Carlo estimates 

[10] by getting inference times. A typical way to get a scalar uncertainty value from an image is to aggregate the uncertainty over all pixels. In [6], in a microscopy segmentation context, authors select samples based on maximum uncertainty for maximizing performance gain in a next round of training. An ideal exemplar set should contain slices with high confidence (i.e., least uncertainty) for class-incremental task, in order to prevent “catastrophic forgetting.” For typical medical images where foreground labels are underrepresented, or completely missing in a slice when this anatomy is not intersecting, high confidence samples are likely to fall on images with only background. As a remedy, one can choose most certain slices for each class among images where corresponding class label exists, creating a “most” certain set for every class .

As an effort to further reduce the kept training data, we aim to select a representative subset of . Similarly to [6], we use spatially averaged activations at the abstraction-layer (c.f. Fig.1) of our network to represent a given image as a vector . In an iterative fashion, we then create a representative set with elements for each class in order to maximize set coverage [11] over the full training set

, using cosine similarity between each

. We call this method Abstraction exemplar-based incremental Segmentation (AeiSeg). Although one can use a faster method to pick samples for the set , the iterative set coverage approach ensures maximum set coverage even if in future some of the later picked exemplar samples need to be removed; i.e., storage constraints.

Maximum Set Coverage over Content Distance: Albeit being a fast proposition, similarity across spatially averaged activations [6] at abstraction-layer have questionable image representation capability, as no objective function directly optimizes for image representation. Instead, we use the activations of a pre-trained VGG network at multiple layer levels to describe “content” of an input image, which is inspired by [12]

. A VGG network trained on ImageNet 

[13] has convolutional filters tuned for object recognition and localization task. Hence, its layer responses aim to distinctively represent objects present in a given image invariant to their spatial location. Based on this, a distance metric defined over the activations of such a network can give an accurate relative quantification of any two images from a dataset. Let be the activation response of a VGG16 network at layer , filter , width and height at the corresponding layer for a given image . We compute the content distance

(3)

as the mean squared distance between activation responses of two images and , where and are the sets of all convolutional layers and their respective filters of the trained VGG network. We call this method Content Representativeness-based incremental Segmentation (CoRiSeg).

3 Experiments and Results

Experimental Scenarios
initTrain incTrain
Case 1 4 Hum 4 Scap
Case 2 6 Scap 1 Hum
Case 3 4 Hum 3 Scap*
Figure 2: Learning an incremental network for classes with new images and annotations of new structures , given a pre-trained and frozen network . Left: Representation of LwfSeg. Middle: Additional loss in AeiSeg and CoRiSeg for augmenting the new network (left) with exemplar images . Right: Experimental scenarios depicting initial (init) and incremental (inc) datasets for humerus (Hum) and scapula (Scap). Case 3 incTrain (*) was conducted on a different MR sequence (water-saturated Dixon).

Our experimental dataset consists of 9 Dixon sequences of left shoulder collected with 1.5 Tesla at resolution of 0.91 mm x 0.91 mm x 3 mm, corresponding to 192x192x64 voxel resolution. Humerus and scapula bones were annotated by an expert. Our goal is to combine knowledge from different data for a network that can segment both anatomical structures. We evaluated our proposed method for the three scenarios shown in the table in Fig. 2

. One volume each was fixed randomly for validation and testing each of all scenarios. The first scenario (Case 1) tests a typical setting where different anatomies were of interest and thus annotated in separate studies. The second scenario (Case 2) aims to observe advantages of incremental training with minimal effort, i.e., incrementally annotated data, giving insight on an extreme case where a single volume annotation is provided. The last scenario (Case 3) studies the feasibility of combining learned segmentation information from different anatomy and images of different contrast. The methods were implemented with Tensorflow 

[14] and ran on an Nvidia Titan X GPU. Proposed network is implemented in 2D, hence image samples per volume given in Fig. 2. For a fair comparison, we fixed all parameters across different models to , , ,

, batch size of 8 images, and trained all models for 1000 epochs. Used network (cf. Fig.

1

) has a first convolutional layer with 64 filters and the amount of filters double at every coarsening level. Each convolutional layer is proceeded with a batch normalization and ReLU activation. For CoRiSeg, we use a VGG16 network 

[7] pre-trained on ImageNet [13]. While a VGG trained on a medical image set would be expected to provide more accurate score, training set of ImageNet is not matchable by any annotated medical database. We used Dice similarity coefficient and average symmetric surface distance for evaluating segmentation performance across tested methods (cf. Table 1). We compared our proposed methods: LwfSeg with its extensions with exemplar sets AeiSeg and CoRiSeg. Upper bound cases are presented with networks trained on only a given anatomy/dataset, i.e., without any incremental learning and hence without the need to preserve “old” (extra) information. We also show results from finetuning for comparison, although catastrophic forgetting is a known problem. In Fig. 3, we showcase qualitative results from different scenarios (cf. table in Fig. 2).

Case 1 Case 2 Case 3
Dice SurfDist Dice SurfDist Dice SurfDist
Method hum scap hum scap scap hum scap hum hum scap hum scap
Upper- bound HumSeg 96.7 - 0.36 - 82.9 - 5.38 96.7 - 0.36 -
ScapSeg - 88.1 - 0.67 88.5 - 0.66 - - 84.6 - 0.93
Baseline finetuned 0.1 86.2 41.22 1.08 13.4 79.8 16.41 7.54 0.0 83.8 65.93 1.21
Proposed LwfSeg 95.9 87.5 0.88 1.51 73.2 87.3 6.08 7.12 66.0 79.1 13.32 2.86
AeiSeg 96.1 82.9 1.31 2.27 74.8 63.5 7.09 36.52 94.2 76.7 2.68 3.20
CoRiSeg 96.3 82.8 0.89 2.30 78.7 90.2 5.38 13.51 94.8 78.7 1.56 2.03
Table 1: Dice coefficient [%] and average symmetric surface distance (SurfDist) [mm] of networks trained only for humerus (HumSeg) and scapula (ScapSeg), finetuning, and our proposed incremental learning methods (cf. table in Fig. 2). Best scores of incremental methods are shown in bold.
(a) Gold Standard
(b) CoRiSeg Case 1
(c) HumSeg Case 2
(d) CoRiSeg Case 2
(e) LwfSeg Case 3
(f) CoRiSeg Case 3
Figure 3: Segmentation of the test volume with different methods.

4 Discussions

As seen, with finetuning, the shared network body gets re-tuned to adapt to the new incremental data, almost completely forgetting the initial classes. Proposed segmentation extension of learning without forgetting (LwfSeg) performs relatively well in all cases. For every scenario, both proposed methods using exemplar sets either outperform or achieve performance as close to LwfSeg for the old class. CoRiSeg achieves the highest Dice score for the old data, suggesting that for selecting exemplars the maximum set coverage over content distance is more effective than averaging at abstraction-layer (AeiSeg). In addition, in Case 2, where the incremental dataset is severely handicapped, both LwfSeg and CoRiSeg surprisingly outperform HumSeg. While it is expected for a network trained on 1 volume (64 images) to perform poorly, incremental networks are seen to achieve higher segmentation performance, suggesting that shared-body layers potentially learned to extract bone-generic knowledge. Should this be shown for a wider range of bone structures, it would be critically relevant for orthopedic applications in the future. When the incremental dataset is introduced from a different imaging sequence in Case 3, one can see the great advantage of keeping exemplar samples; i.e., 28.8% increase in Dice score of CoRiSeg compared to LwfSeg. While the performance difference is less obvious for the new class, the change in old class scores suggests distillation loss to have provided false “guidance” on the new dataset with LwfSeg, i.e. trying to retain old class segmentation performance without any exemplar samples. Since finetuning does not need to remember the appearance of humerus (bone) in the other image modality, it outperforms with scapula in Case 3. We expected VGG trained for object classification (on ImageNet) to select better exemplar images for our task. Indeed, compared to CoRiSeg, using the UNet trained by us for yielded 1.6%, 0.7%, and 0.07% worse Dice, respectively, for each Case.

Note the high average symmetric surface distance in some of the proposed incremental methods, i.e., AeiSeg and CoRiSeg in Case 2; LwfSeg in Case 3. These are due to small blobs of false positives far from the target anatomy (cf. Fig. 3). These blobs could possibly be removed with a trivial post processing step (e.g. morphological operations, largest connected region, conditional random fields, user input), which is beyond the objective of this paper. Additional randomized hold-out test sets for Case 3 showed little variation (2% Dice) in results, while the proposed AeiSeg and CoRiSeg were still over 27% Dice better than LwfSeg in retaining old class info. We will conduct extensive evaluations in future.

5 Conclusions

In this work, we have proposed a solution for applying class-incremental learning to segmentation using a distillation objective function (LwfSeg). However, with increasing size of labels and variability in medical images, we have shown that LwfSeg may become suboptimal without an exemplar dataset. To address this, we have proposed two novel methods to select representative images based on abstraction layer response (AeiSeg) and content distance (CoRiSeg); which imposes no restrictions on the incremental data size or #classes. We have evaluated the proposed frameworks on three different scenarios that often exist in medical image analysis community and shown that the proposed methods achieve performance similar to the upper-bound conditions. LwfSeg showed promising efficiency in retaining old class segmentation performance, which was improved further with proposed extensions with exemplar selections. To the best of our knowledge, this work is the first to show class-incremental learning in medical image segmentation (LwfSeg), and its extensions with intelligent exemplar selection (AeiSeg & CoRiSeg), CoRiSeg being our favorite with its intuitive design and higher performance. In the future, we will extend incremental training to additional anatomical structures and imaging modalities.

Acknowledgements. Funded provided by the Swiss National Science Foundation (SNSF) and a Highly-Specialized Medicine grant of the Canton of Zurich.

References

  • [1]

    Hinton, G., Vinyals, O., Dean, J.: Distilling the Knowledge in a Neural Network.

    ArXiv e-prints (2015), 1503.02531
  • [2] Li, Z., Hoiem, D.: Learning without Forgetting. ArXiv e-prints (2016), 1606.09282
  • [3] Girshick, R., Donahue, J., Darrell, T., Malik, J.: Rich feature hierarchies for accurate object detection and semantic segmentation. ArXiv e-prints (2013), 1311.2524
  • [4] McCloskey, M., Cohen, N.J.: Catastrophic interference in connectionist networks: The sequential learning problem. volume 24, 109 – 165. Academic Press (1989)
  • [5] Rebuffi, S.A., Kolesnikov, A., Sperl, G., Lampert, C.H.: iCaRL: Incremental Classifier and Representation Learning. ArXiv e-prints (2016), 1611.07725
  • [6]

    Yang, L., Zhang, Y., Chen, J., Zhang, S., Chen, D.Z.: Suggestive annotation: A deep active learning framework for biomedical image segmentation.

    In: MICCAI, 399–407 (2017)
  • [7] Simonyan, K., Zisserman, A.: Very deep convolutional networks for large-scale image recognition. ArXiv e-prints 1409.1556v6
  • [8] Ronneberger, O., Fischer, P., Brox, T.: U-net: Convolutional networks for biomedical image segmentation. In: N. Navab, J. Hornegger, W.M. Wells, A.F. Frangi, eds., MICCAI, 234–241 (2015)
  • [9] Häusser, P., Mordvintsev, A., Cremers, D.: Learning by Association - A versatile semi-supervised training method for neural networks. ArXiv (2017), 1706.00909
  • [10] Gal, Y., Ghahramani, Z.: Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning. ArXiv e-prints (2015), 1506.02142
  • [11] Hochbaum, D.S.: Approximation algorithms for np-hard problems. 94–143. PWS Publishing Co. (1997)
  • [12]

    Gatys, L.A., Ecker, A.S., Bethge, M.: Image style transfer using convolutional neural networks.

    In: 2016 IEEE CVPR, 2414–2423 (2016)
  • [13] Russakovsky, O., Deng, J., Su, H., Krause, J., et al.: ImageNet Large Scale Visual Recognition Challenge. ArXiv e-prints (2014), 1409.0575
  • [14] Abadi, M., Agarwal, A., Barham, P., Brevdo, E., et al.: TensorFlow: Large-scale machine learning on heterogeneous systems (2015)