Deep Architectures for High-Resolution Multi-organ Chest X-ray Image Segmentation
Abstract
This research was supported by the Spanish Ministerio de Economía y Competividad under the NEWSOCO project [Grant Number TIN2015-67661-P], including European Development Regional Funds (EDRF). This work was also supported by the Spanish Ministry of Science, Innovation and Universities, and European Regional Development Funds (ERDF) under grant EXASOCO (PGC2018-101216-B-I00). Mr. Gómez’s work was supported by Spanish MECD FPU Grant [Grant Number FPU14/02380]. Pablo Mesejo is funded by the European Commission H2020-MSCA-IF-2016 through the Skeleton-ID Marie Curie Individual Fellowship [Grant Number 746592]. We acknowledge the support of NVIDIA Corporation with the donation of the Titan X Pascal GPU used for this research.
Full text
Noname manuscript No. (will be inserted by the editor) Deep architectures for high-resolution multi-organ chest X-ray image segmentation Oscar G´omez ·Pablo Mesejo · Oscar Ib´a˜nez ·Andrea Valsecchi · Oscar Cord´on the date of receipt and acceptance should be inserted later Abstract Chest X-ray images (CXRs) are the most common radiological examination tool for screening and diagnosis of cardiac and pulmonary diseases. The automatic segmentation of anatomical structures in CXRs is critical for many clinical applications. However, existing deep models work on severely down-sampled images (commonly 256 ×256 pixels), reducing the quality of the contours of the resulting segmentation and negatively affecting the possibilities of such methods to be effectively used in a real environment. In this paper, we study multi-organ (clavicles, lungs, and hearts) segmentation, one of the most important problems in semantic understanding of CXRs. We completely avoid down-sampling in images up to 1024 ×1024 (as in the JSRT dataset) and we diminish its impact in higher resolutions via network architecture simplification without a significant loss in the accuracy. To do so, we propose four different convolutional models by introducing structural changes to the baselines employed (U-Net and InvertedNet) as well as by integrating several techniques barely used by CXRs segmentation algorithms, such as instance normalization and atrous convolution. We also compare singleclass and multi-class strategies to elucidate which approach is the most convenient for this problem. Our best proposal, X-Net+, outperforms 9 state-of-the-art methods on clavicles and lungs obtaining a Dice similarity coefficient of 0.938 and 0.978, respectively, employing a 10-fold cross validation protocol. The same architecture yields comparable results to the state-of-the-art in heart segmentation with a Dice value of 0.938. Finally, its reduced version, RX-Net+, obtains similar results but with a significant reduction in memory usage and training time. Keywords Semantic segmentation ·chest x-ray segmentation ·convolutional neural networks ·deep networks simplification All the authors are with the Andalusian Research Institute in Data Science and Computational Intelligence (DaSCI), University of Granada, Granada, Spain. · All the authors are with the Department of Computer Science and Artificial Intelligence, University of Granada, Granada, Spain. · Pablo Mesejo is also with the Perception team at Inria Grenoble Rhˆone-Alpes, Grenoble, France. · Oscar Ib´a˜nez is also with Panacea Cooperative Research, Ponferrada, Spain. · Corresponding author email: [email protected] (O. G´omez)
2 Oscar G´omez et al. 1 Introduction X-ray images represent the most commonly employed medical imaging modality [1]. In particular, chest X-rays (CXRs) are the most commonly performed radiology examination world-wide [2] because they are able to produce images of the heart, lungs, airways, blood, vessels, spine, and chest [3], and because of their diagnosis and treatment potential [2, 4]. In order to quantify the importance of CXR analysis, it is important to notice that 2.02 million CXRs were performed in 2015/16 by the National Health Service of United Kingdom [5], and that 150 million CXRs are annually acquired in the United States alone[6]. Among all anatomical structures displayed in CXRs, the lungs, the heart and the clavicles are particularly important. Lungs radiography has been largely used for the diagnosis of pulmonary diseases such as pneumonia, tuberculosis, emphysema, and lung cancer [3, 7, 8]. Hearts are often employed to detect cardiovascular disease such as chronic stable angina or valvular heart disease [9]. Lastly, clavicles are used to detect lesions, such as tumorous lesions [10], or for forensic identification [11] via comparing their silhouette in ante-mortem and post-mortem X-ray images. Despite the great clinical importance of X-ray image understanding, a task such as the segmentation of anatomical structures in CXRs remains very challenging. This is mainly due to the projective nature of X-ray imaging, which causes large overlapping of anatomies, fuzzy object boundaries and complex texture patterns. For instance, even among expert radiologists, minor errors in diagnosis are performed in circa 30% of studies [12] and major errors in 3-6% [13, 14]. CXRs are a cornerstone of acute triage as well as longitudinal surveillance. Despite the ubiquity of the exam and its apparent technical simplicity, CXRs are widely regarded among radiologists as among the most difficult to master [13]. The automatic CXRs segmentation has been extensively studied since the ’70s, at least regarding the segmentation of lungs, rib cage, heart, and clavicles [15, 16]. Conventional methods rely on prior knowledge [17] to delineate anatomical objects from X-ray images. Modern approaches utilize deep convolutional networks and have shown superior performance [18]. More than 150 research works dealing with this problem were already published during the twentieth century [19], raising the number to 331 at present, according to Scopus1. Most works have focused on the segmentation of a single organ, mainly the lungs [8, 20, 21] for its medical importance2; followed by the heart [22], where most works plainly extrapolate the approaches used for lungs; and lastly the clavicles [23], the organ whose segmentation entails greater difficulty (reflected in a lower quality of the final segmentation [24]). Despite the great advances made in the automatic segmentation of these organs, limitations still persist, such as the need to use down-sampled CXRs or the irregularity and imprecision of the edges resulting from segmentation, which reduce their applicability in clinical settings. In this paper, we tackle the segmentation of hearts, clavicles and lungs in CXRs using convolutional neural networks (ConvNets). For this study, we have used a public database of CXRs called JSRT [25] with its associated ground truth [26]. 1Search performed the 8th September 2018 using the keywords ( TITLE-ABS-KEY ( chest AND x-ray AND segmentation ) OR TITLE-ABS-KEY ( chest AND radiograph AND segmentation ) AND NOT TITLE-ABS-KEY ( computed AND tomography ) ) 2According to the International Agency for Research on Cancer, lung cancer was the most common cause of cancer death in 2015 with 1.69 million deaths.
Deep architectures for high-resolution multi-organ chest X-ray image segmentation 3 The main goal of this paper is threefold. First, to improve the state-of-the-art results in CXR segmentation. To do so, we introduce a new architecture, called X-Net, that incorporates structural changes in the network architecture as well as integrates several techniques barely used by CXRs segmentation algorithms, such as instance normalization [27] and atrous convolution (a.k.a. dilated convolution) [28]. These modifications allow us to improve the segmentation accuracy of the state of the art. Further structural modifications (resulting in an extension termed X-Net+) also allow us to work with images up to 1024×1024 in only one GPU (an example of a segmentation obtained by X-Net+, our best network, is shown in the Figure 1). Second, to propose a simplification of X-Net and X-Net+, called RX-Net (Reduced X-Net) and RX-Net+, respectively, that reduce even more both memory usage and training time, while keeping similar results. Third, to investigate singleclass (a ConvNet is trained to segment each organ separately) and multi-class (a ConvNet is trained to segment all organs simultaneously) segmentation approaches to elucidate which one is more suitable for the task at hand. This paper is structured as follows. Section 2 reviews the current state of the art in CXRs segmentation. Section 3 describes our proposals. Section 4 presents experiments and results. The conclusions are detailed in Section 5. 2 Related works Many different taxonomies can be presented to classify image segmentation approaches [19, 29, 30, 31]. One possible classification could be the following: (1) rule-based methods, where the image is segmented by the application of a set of low-level and spatially blind rules (such as thresholding, edge detection, or region growing) [19]; (2) shape-based methods [32], where the segmentation is performed by matching a model, that includes some sort of prior shape information, to the image (such as active shape models, or active appearance models); (3) atlas-based methods [33], generally based on the registration of an atlas (i.e. an already segmented image) and a target image; (4) graph-based methods [34], that represent the image as a graph that is partitioned into a set of separated connected components (generally making use of techniques such as conditional random fields or Markov random fields); (5) machine learning-based methods [31], traditionally based on handcrafted features (e.g. SIFT) together with a classifier (i.e. k-NN or an artificial neural network) but, with the advent of ConvNets [35], this paradigm has shifted towards end-to-end approaches where the ConvNet input is directly the image to segment and the output is the target segmentation. Since each methodology has its own pros and cons, the best results are commonly achieved via hybrid approaches that combine two or more of the previous strategies [36, 37]. In general terms, in the case of CXRs segmentation, most approaches are either rule-based [19], shape-based [26], or machine learning-based [8]. Given that the state of the art in CXRs segmentation are deep learning techniques, and ConvNets in particular, this paper delves into this research line. The Japanese Society of Radiological Technology (JSRT) [25], in cooperation with the Japanese Radiological Society (JRS), created the standard digital image database with and without chest lung nodules (JSRT dataset) in 1998. Since then, the JSRT dataset has been used by a number of researchers in the world for various research purposes such as image processing, image compression, and computer-
4 Oscar G´omez et al. Fig. 1 Example of a segmentation obtained by X-Net+ with the overlap between the groundtruth and the segmentation in green, blue, and red for the clavicle, lungs, and heart, respectively; the over-segmented area in orange, and the under-segmented one in yellow. This segmentation obtains errors of 0.964 and 10 for the DSC and HD measures (detailed in the Section 4.2), respectively, with the clavicle, 0.965 and 16.763 with heart, and 0.985 and 53.225 with the lungs. aided diagnosis. In particular, the JSRT dataset represents the most popular dataset for CXRs segmentation, including high resolution images (2048×2048 size, 0.175mm pixel size) and high resolution segmentation masks (provided by [26]). Those segmentation masks have a resolution of 1024×1024 (i.e. ground truth resolution). Methods tested on JSRT are commonly evaluated using images of smaller resolution (256×256). The state of the art in lungs segmentation with the JSRT dataset [36] is based on a hybrid approach with four stages devoted to: 1) preprocessing the X-ray images by augmenting the contrast between the lungs and their surrounding area; 2) extracting the foreground (which incorporates the upper torso region) by using an intelligent block-based binarization; 3) excluding lung regions from the foreground through a series of spatial-based processing operations; and 4) employing an adaptive graph cut technique to locally refine the preliminary lung boundaries. On the other hand, the state of the art in hearts [38] and clavicles [24] segmentation is based on deep learning approaches that we describe below. With the advent of deep learning, many works have studied the use of ConvNets [35] for CXRs segmentation outperforming prior art based on classical techniques (corresponding to the first four categories in the aforementioned taxonomy). Firstly, an encoder-decoder network called U-Net [18] was studied for multi-class segmentation of lungs, heart and clavicles achieving comparable, or higher, accuracy on most of the structures when compared with the state-of-the-art segmentation methods [39]. They also studied the differences between multi-class and single-class training approaches, showing that for U-Net a multi-class approach helps the deep neural network to converge faster and deliver better segmentation results on the clavicles than the single-class. However, network outputs present holes inside the targeted structures as well as artifacts (i.e. small isolated segmented areas), which were solved with a post-processing step based on a levelset method. Afterwards, another work proposed a small modification of U-Net, called LF-SegNet [40]. LF-SegNet modified the up-sampling strategy, incorporated normalization techniques such as batch normalization [41], and employed data augmentation, slightly improving the performance on lungs segmentation in both the JSRT dataset and the Montgomery dataset [42] (that includes 138 CXRs
Deep architectures for high-resolution multi-organ chest X-ray image segmentation 5 and ground truth only for the lungs). Very recently, several articles tackled the segmentation of CXRs employing fully ConvNets [43, 39]. Also, a generative adversarial network approach called dual-path adversarial learning (DAL) based on a hybridization of a fully convolutional network and U-Net [38] was proposed for different kinds of medical image segmentation problems. DAL was tested for the segmentation of lungs and hearts, trained with images of 512 ×512 and evaluated on images on the ground truth resolution 1024 ×1024 resulting in the state of the art for heart segmentation. A work closely related to ours was published by Novikov et al. [24] in 2018, where a modification of U-Net, called InvertedNet (INET), segmented the three organs and achieved state-of-the-art results for clavicle segmentation. INET outperformed prior art by reducing the number of filters per convolutional layer, therefore decreasing the possibility of over-fitting. Furthermore, motivated by the Gaussian noise inherited from the X-ray images acquisition process, INET added Gaussian dropout layers [44] and utilized a weighted loss function based on the Dice Similarity Coefficient (DSC) [45]. Gaussian dropout is a generalization of dropout where the activations are multiplied with random variables drawn from other distributions. This new form of dropout amounts to adding a Gaussian distributed random variable with zero mean and standard deviation equal to the activation of the unit. INET only considers the multi-class approach and do not compare with training the network for only one class. Finally, it can only be used with down-sampled images (with a resolution of 256 ×256 pixels) and the main option pointed by the authors to operate with higher resolution images was the use of a multi-GPU scenario, unlike in this work where we opted for the modification of the network architecture. To the best of our knowledge, there are no other works in the literature that apply the atrous convolution [28] to the segmentation of CXRs, while it is one of the key elements of the state-of-the-art network for image segmentation in general [46]. Atrous convolution is a convolutional operation that introduces a spacing between the values in a kernel (the number of spaces between values is called dilated rate). This allows to adjust filter’s field-of-view and capture multi-scale context information without reducing the spatial dimensions of the features maps (i.e. a 3 ×3 kernel with a dilation rate of 2 will have the same field-of-view as a 5 ×5 kernel, while only using 9 parameters). However, this is computationally expensive and takes a lot of memory, as a consequence its use is normally preceded by a few pooling layers to make the features maps computationally approachable as in DeepLab [46]. Also, we are not aware of other works studying the compression/simplification of deep networks, devoted to medical image segmentation, for their deployment in single-GPU devices or to allow them to work with larger images. Many researchers have pointed out that ConvNets suffer from heavy overparameterization and can be efficiently reconstructed with only a small subset of its original parameters [47]. Therefore, several works have been published studying the simplification/compression of ConvNets reducing the required resources without significant loss in the original accuracy [48, 49]. Furthermore, we also perform a comparison between multi-class and single-class approaches using a k-fold crossvalidation protocol, which is a much more rigorous evaluation strategy than the one commonly employed in the deep learning literature (where generally a simple hold-out is used).
6 Oscar G´omez et al. 3 Methodology 3.1 Architectures The deep architectures proposed in this paper are inspired by INET [24] (described in Section 2 and depicted in Fig. 2) which, in turn, is a modification of U-Net. INET is devoted to the segmentation of lungs, hearts and clavicles in CXRs, and represents the state of the art in clavicle segmentation. (a) (b) (c) (d) x x x x / N N __ __ x 16 16 input: 1 x N x N InvertedNet 3x3@256; s=1; d=0.1 in N x N pooling: 2x2; s=1 pooling: AxB; s=s0 3x3@128; s=1; d=0.1 in N x N pooling: 2x2; s=1 3x3@64; s=2; d=0.1 in pooling: 2x2; s=1 N N 3x3@32; s=2; d=0.1 in pooling: 2x2; s=1 N N 3x3@16; s=2; d=0.1 in N N upsampling: AxB upsampling: 2x2 3x3@32; s=1; d=0.1 in N N upsampling: 2x2 3x3@64; s=1; d=0.1 in N N upsampling: 2x2 3x3@128; s=1; d=0.1 in N x N 3x3@256; s=1; d=0.1 in N x N 1x1@M; s=1 N x N output: M x N x N 1x1@F; s=1 N x N AxB@F; s=s0; d=d0 in or in N x N input: 1 x N x N 3x3@256; s=1; d=0.1 in N x N pooling: 2x2; s=1 3x3@128; s=1; d=0.1 in N x N pooling: 2x2; s=1 3x3@64; s=2; d=0.1 in pooling: 2x2; s=1 N N 3x3@32; s=2; d=0.1 in pooling: 2x2; s=1 N N 3x3@16; s=2; d=0.1; dr in N N upsampling: 2x2 3x3@32; s=1; d=0.1 in N N upsampling: 2x2 3x3@64; s=1; d=0.1 in N N upsampling: 2x2 3x3@128; s=1; d=0.1 in N x N 3x3@256; s=1; d=0.1 in N x N 1x1@M; s=1 N x N output: M x N x N X-Net input: 1 x N x N 3x3@64; s=1; d=0.1 in N x N pooling: 2x2; s=1 3x3@32; s=2; d=0.1 in pooling: 2x2; s=1 N N 3x3@16; s=2; d=0.1 in pooling: 2x2; s=1 N N 3x3@8 ; s=2; d=0.1; dr in N N upsampling: 2x2 3x3@16; s=1; d=0.1 in N N upsampling: 2x2 3x3@32; s=1; d=0.1 in N N upsampling: 2x2 3x3@64; s=1; d=0.1 in N x N 1x1@M; s=1 N x N output: M x N x N RX-Net Block of two convolu onal layers with F feature maps of N x N (the rst stride of s0, and the rest of 1); lter size AxB, followed by a dropout with d0 rate and op onal instance normaliza on. Block of ve convolu onal layers with F feature maps of N x N (the rst stride of s0, and the rest of 1) with increasing dilated rates (1, 2, 4, 8, and 16); lter size AxB, followed by a dropout with d0 rate and instance normaliza on. Single convolu onal layer with F feature maps of N x N with a stride of s0,; lter size AxB: Max pooling layer with pooling size AxB, stride s0 Upsampling layer with size AxB Concantena on opera on of two layers AxB@F; s=s0; d=d0; dr N x N input: 1 x N x N U-Net 3x3@64; s=1; d=0 in N x N pooling: 2x2; s=2 3x3@128; s=1; d=0 in pooling: 2x2; s=2 3x3@256; s=1; d=0 in pooling: 2x2; s=2 N N 3x3@512; s=1; d=0 in pooling: 2x2; s=2 N N 3x3@1024; s=1;d=0.5 in N N 2x2@512; s=2 3x3@512; s=1; d=0 in N N 3x3@256; s=1; d=0 in N N 3x3@128; s=1; d=0 in 3x3@64; s=1; d=0 in N x N 1x1@M; s=1 N x N output: M x N x N N N 2x2@512; s=2 2x2@512; s=2 2x2@512; s=2 Fig. 2 Schematic view comparing two preceding deep networks (a and b), and two of the deep networks proposed in this paper (c and d). All architectures employ Gaussian dropout, except U-Net that uses conventional dropout. ’in’ stands for ’instance normalization’. Even if INET currently offers the best performance in CXRs multi-class segmentation, it does not include some very relevant advances made in the image segmentation research field (atrous convolution) and deep learning in general (instance normalization). Consequently, the first methodological contribution of this paper is the introduction of a new architecture, called X-Net, that aims to increase the accuracy of INET through the inclusion of these advances. X-Net takes its name both from being designed to segment X-ray images and from the shape of the network (where, as usual, there is an encoding stage, which provides a reduced dimensionality representation of the input, and a decoding stage, that allows to recover an output of equal size to the input). First, X-Net takes advantage of instance normalization [27] at the end of each convolutional layer to add a normalization factor, accelerate the training, improve generalization, and reduce the dependency on the weights initialization. Second, X-Net changes the two central convolutional layers of INET by five atrous convolutional layers with increasing
Deep architectures for high-resolution multi-organ chest X-ray image segmentation 7 dilated rates of 1, 2, 4, 8 and 16 (see Fig. 2). These specific dilated rates are the most commonly employed in recent literature [50, 51, 52]. Atrous convolutions are convolutions with upsampled filters, that allow to enlarge the field-of-view and, therefore, to take into account more contextual information. The combined use of atrous convolution and instance normalization leads to a greater gain in performance than when they are employed separately (detailed in Section 4.4). The second proposal introduced in this paper, termed Reduced X-Net (RX- Net), consists of a simplification of X-Net with the aim of obtaining similar accuracy but with a significantly lower memory usage and training time. Importantly, the main source of memory usage is not the trainable parameters, but instead the feature maps. Reducing the number of features maps of resolution N×Nwill result in a large memory reduction. RX-Net represents one alternative that makes possible experimenting with images of higher resolution than the one generally used, as we will discuss in the next paragraph. Therefore, the simplification involves the elimination of the first and last convolutional blocks of X-Net (notice that the first and last layers have the largest activation maps), and the reduction to half the number of convolutional filters of each convolutional layer (see Fig. 2), since these changes lead to the larger reduction in the ConvNet memory usage with the smaller drop in accuracy. One important goal in CXRs image segmentation is to design a network able to work without any down-sampling or at least to reduce it to the minimum possible. The objective is to avoid upsampling the results (or diminish its impact) since upsampling causes a loss of detail in the final segmentation. In this sense, our next proposals are able to manage images of up to 1024 ×1024 in a single GPU (see subsection 4.3 for the technical details) without any down-sampling. Thus, these proposals are able to work with the ground truth resolution [26] of JSRT [25]. INET and X-Net would require too much memory or a multi-GPU scenario, being only able to work with images up to 256 ×256 (that is the resolution in which INET results, and most of the results in literature, are reported [24]). Our RX-Net can handle images up to 1024×1024, four times the usual resolution, but changing the input resolution results in a change in the relation between filter’s field-of-view and feature maps, which would lead to a different behaviour than the one showed by RX-Net with images of 256 ×256. To avoid this drawback, a new architecture called RX-Net+ is proposed. This network is an incremental step from RX-Net maintaining all their layers (except the last convolutional block) with the same resolution (i.e. the value N/4 of RX-Net+ is equal to 256). It allows us to employ the weights resulting from training RX-Net with 256 × 256 in RX-Net+ for images of 1024 ×1024, which significantly reduces the total training time. Additionally, RX-Net+ adds two pooling layers at the beginning (they could be replaced by convolutional layers but, if the number of feature maps introduced as input to the pre-trained RX-Net block is different to one, it would make impossible to re-use the weights from RX-Net in RX-Net+), and two final convolutional blocks connected to the inputs of the first two pooling layers (see Fig. 2). Furthermore, performing the pooling within the ConvNet allows to pass highresolution information to the final layers of the ConvNet (see Fig. 2). Notice that comparing RX-Net and RX-Net+ for images of 1024 ×1024 will allow to study the importance of the relation between the filter’s field-of-view and the feature maps. This approach could also be applied to X-Net giving rise to X-Net+. X- Net+ combines all the advantages of X-Net as well as allows to work with images
8 Oscar G´omez et al. of 1024 ×1024 in just one GPU. Training time and accuracy for both X-Net+ and RX-Net+ are improved thanks to training X-Net and RX-Net, respectively, then re-using the central block of common weights, and finally employing a simple fine-tuning. We will refer to our proposed deep networks as X-Net architectures, since they all are based on X-Net. (a) (b) X-Net+ input: 1 x N x N pooling: 2x2; s=2 pooling: 2x2; s=2 3x3@256; s=1; d=0.1 pooling: 2x2; s=1 3x3@128; s=1; d=0.1 pooling: 2x2; s=1 3x3@64; s=2; d=0.1 pooling: 2x2; s=1 3x3@32; s=2; d=0.1 pooling: 2x2; s=1 3x3@16; s=2; d=0.1; dr N N __ __ x 32 32 upsampling: 2x2 3x3@32; s=1; d=0.1 upsampling: 2x2 3x3@64; s=1; d=0.1 upsampling: 2x2 3x3@128; s=1; d=0.1 3x3@256; s=1; d=0.1 3x3@64; s=1; d=0.1 3x3@128; s=1; d=0.1 N x N 1x1@M; s=1 N x N output: M x N x N N N RX-Net+ input: 1 x N x N pooling: 2x2; s=2 pooling: 2x2; s=2 1x1@M; s=1 N x N output: M x N x N 3x3@64; s=1; d=0.1 3x3@128; s=1; d=0.1 N x N N N 3x3@64; s=1; d=0.1 pooling: 2x2; s=1 3x3@32; s=2; d=0.1 pooling: 2x2; s=1 3x3@16; s=2; d=0.1 pooling: 2x2; s=1 3x3@8 ; s=2; d=0.1; dr upsampling: 2x2 3x3@16; s=1; d=0.1 upsampling: 2x2 3x3@32; s=1; d=0.1 upsampling: 2x2 3x3@64; s=1; d=0.1 X-Net RX-Net upsampling: 2x2 upsampling: 2x2 upsampling: 2x2 upsampling: 2x2 Fig. 3 Schematic view of two of the deep networks proposed in this paper. These networks are extension of X-Net and RX-Net, respectively, allowing to handle ground truth resolution images (i.e. 1024 ×1024) in just one GPU. The legend of this figure can be seen in Fig. 2. 3.2 Training strategies Two strategies are compared to train all networks: a single-class approach (to train a network to segment only one organ, i.e. three different networks are required to segment the three organs), and a multi-class approach (to train a network to jointly segment the three organs). The loss function in the single-class approach is directly the usual DSC [45] (see Section 4.2), and for the multi-class segmentation we employ a balanced version of this measure, defined as the product of the DSC values obtained for each single organ, i.e. DSC = Qn i=1 DSCi, where nis the number of classes to segment, and DSCiis the DSC value for the segmentation of the class i(corresponding to each organ to segment). This loss function allows to deal with the imbalanced nature of the CXRs segmentation problem (for instance, in the JSRT dataset ground truth[26], the 73.53%, 21.85%, and 4.62% of image pixels on average belong to lungs, hearts and clavicles, respectively) looking for solutions that properly segment the three classes. This loss function is stricter than others employed in the state of the art (for instance, the weighted mean in [24]) because we intend to encourage solutions that segment properly the three organs. INET has been trained using the weighted mean as loss function as in the original work [24].
Deep architectures for high-resolution multi-organ chest X-ray image segmentation 9 3.3 Post-processing The predictions provided for each pixel by the neural architectures range from 0 to 1. To turn this soft classification into a binary mask, it is necessary to threshold the output at a given value. In this paper, we use the same threshold value (0.25) as in [24], where this value was fixed empirically based on a preliminary experimentation. This output does not ensure the presence of a single connected object for the heart, and two for clavicles and lungs. Therefore, a last and very simple post-processing step is considered: the largest connected object is selected for the hearts, and the two largest ones for the clavicles and lungs (notice that this post-processing step is a simplified version of the one proposed by [26], since it does not fill the holes within the object). The algorithm employed for this task was the Block-Based Decision Table algorithm [53] with 8-way connectivity. This very simple post-processing step has a minor but positive impact, as can be seen in Table 7, and it does not differ from other simple post-processing strategies employed [26, 54, 55, 56]. 4 Experiments The empirical evaluation of this paper includes two experiments. The first experiment is devoted to the study of performance, precision, robustness, and the trade-off between accuracy and memory/time consumption of the X-Net architectures and INET with both single-class and multi-class training approaches. This study is performed using a 3-fold cross validation protocol as in [24]. The goal of the second experiment is the comparison of the X-Net architectures performance (except the worst performing architectures from the latter experiment, that are excluded from the comparison) with the state-of-the-art results using a 10-fold cross validation to avoid any bias caused by the stochastic components of training a ConvNet. It is important to highlight the computational cost of performing the experimentation following a rigorous experimental design in deep learning (cross validation). Overall, around 1608 hours (67 days) were required to perform Experiment I, and around 1840 hours (77 days) were necessary to run Experiment II. Detailed information about training times are included in Sections 4.5 and 4.6. 4.1 Data The dataset employed in the experiments is the JSRT dataset [25]. It is the most widely used dataset in CXRs segmentation. This dataset is composed of 247 CXRs of 2048 ×2048 pixels with a grayscale depth of 12 bits. These images contain manual/ground-truth segmentations of the lungs, clavicles, and heart[26] with a resolution of 1024 ×1024 pixels, where ∼73%, ∼5%, and ∼22% of pixels belong to lungs, clavicles, and hearts, respectively.
16 Oscar G´omez et al. Table 6 Average ranking position of the best X-Net architectures and INET per organ and metric (DSC, HD, and their average). Two networks are considered equal if the difference in performance between them is lower than 0.005 for DSC and 5 pixels for HD. A 10-fold cross validation protocol is applied to the best performing architectures in Experiment I (see Section 4.5). Network\Metric Clavicles Lungs Hearts 3 organs DSC HD Aver. DSC HD Aver. DSC HD Aver. DSC HD Aver. X-Net+ s 1024 1.8 3.2 2.5 4.4 3.7 4.0 3.9 3.5 3.7 3.3 3.5 3.4 X-Net+ m 1024 2.5 5.4 3.9 3.8 2.8 3.3 3.3 4.1 3.7 3.2 4.1 3.6 X-Net s 256 4.8 3.2 4.0 4.1 3.9 4.0 4.0 4.9 4.4 4.3 4.0 4.1 X-Net m 256 6.5 5.4 5.9 4.1 3.4 3.8 4.0 3.7 3.8 4.8 4.2 4.5 RX-Net+ m 1024 4.1 6.4 5.2 4.5 5.6 5.0 4.5 4.4 4.4 4.3 5.4 4.9 RX-Net s 256 6.7 5.2 5.9 5.2 5.5 5.4 6.5 6.2 6.4 6.1 5.6 5.9 RX-Net m 256 7.8 6.0 6.9 6.3 6.2 6.2 4.9 4.3 4.6 6.3 5.5 5.9 RX-Net+ s 1024 2.8 3.4 3.1 8.7 8.5 8.6 6.4 6.0 6.2 6.0 6.0 6.0 INET m 256 8.3 7.0 7.7 4.1 5.5 4.8 7.7 8.1 7.9 6.7 6.9 6.8 Table 7 Comparison of our best X-Net-based architectures, with and without post-processing, with state-of-the-art approaches. The best results in the ground truth resolution, 1024 ×1024, are displayed in bold per organ and metric. JI and DSC represent the results reported in the trained resolution (indicated by the number in parentheses at the end of the name of the method). JI Full and DSC Full report the results in the original resolution of the segmentation mask (i.e. 1024 ×1024). DSC and DSC Full (as well as JI and JI Full) have the same value for methods trained with the original image resolution. Cells containing a “—” represent either that the proposed method does not tackle the segmentation of the organ, or that the results at the original or down-sampled resolution are not reported. Values calculated from other metric, where only one of them was reported, are marked with a “*”. Results without the post-processing step are also reported to allow a fair comparison with “pure” deep learning methods. Clavicles Lungs Hearts Method JI JI Full DSC DSC Full JI JI Full DSC DSC Full JI JI Full DSC DSC Full Human observer [26] — 0.896 — 0.945* — 0.946 — 0.972* — 0.878 — 0.935* TVC2018 (512) [38] — — — — — 0.951 — 0.975 — 0.893 —0.943 WPC2018, a.k.a. LF- SegNet (224) [40] — — — — 0.951 — 0.975* — — — — — WPC2018-2, a.k.a. FCN (224) [43] — — — — 0.959 — 0.979* — — — — — JBHI2018 (256) [21] — — — — 0.952 — 0.975 — — — — — MP2017 (256) [64] — — — — 0.955 — 0.977 — — — — — N2018 (256) [36] — — — — 0.963 0.948 0.983 0.974 — — — — MIA2012 (256) [23] 0.860 — 0.925* — — — — — — — — — SCIA2017 (256) [39] 0.863 — 0.926* — 0.959 — 0.979* — 0.899 — 0.947* — TMI2018, a.k.a. INET (256) [24] 0.868 — 0.929 — 0.950 — 0.974 — 0.882 — 0.937 — X-Net+ m 1024 without post-proc. 0.871 0.931 0.954 0.976 0.879 0.935 X-Net+ m 1024 0.874 0.933 0.956 0.978 0.884 0.938 X-Net+ s 1024 without post-proc. 0.880 0.936 0.954 0.976 0.863 0.927 X-Net+ s 1024 0.883 0.938 0.955 0.977 0.879 0.935 RX-Net+ m 1024 without post-proc. 0.859 0.924 0.948 0.973 0.876 0.934 RX-Net+ m 1024 0.864 0.927 0.951 0.975 0.880 0.936 RX-Net+ s 1024 without post-proc. 0.867 0.929 0.924 0.960 0.849 0.919 RX-Net+ s 1024 0.870 0.931 0.925 0.961 0.865 0.928 to work with images up to 1024 ×1024, maintaining the original relation between filter’s field-of-view and the feature maps, and to transfer the learning from their precedent versions (X-Net and RX-Net, respectively, for images of 1024 ×1024). Remarkably, state-of-the-art results have been obtained. Our best performing proposal, X-Net+ for single-class segmentation, obtains better results than the state of the art with clavicles with an average error of 0.884 (JI), 0.939 (DSC),
Deep architectures for high-resolution multi-organ chest X-ray image segmentation 17 and 18.022 (HD), and lungs with 0.963 (JI), 0.981 (DSC), 36.1 (HI). The results for hearts segmentation are as good as the state of the art with 0.89 (JI), 0.942 (DSC), and 37.207 (HD). The quantitative evaluation of our X-Net architectures by means of a rigorous experimental design protocol (10-fold cross validation, rankings and statistical tests) shows the empirical advantages of employing them in this task. Overall, the single-class training approach achieved better segmentation than the multi-class approach. This shows that multi-task learning is not always the best solution, despite its success in many other applications, and it must be analyzed for every particular problem separately. Furthermore, we have empirically shown, by comparing RX-Net and RX-Net+ for images of 1024 ×1024, that re-sizing a network to fit an input changes the relation between filter’s field-of-view and the feature maps leading to a change in its behaviour. In our case, this change has significantly worsened the results of RX-Net obtaining the worst results among our proposals, meanwhile RX-Net+ has been ranked in the top 5. Regarding future lines of research, the first future work will be to study the capability of our proposals to be applied to other problems, such as the segmentation of different sets of organs, different datasets, and different kinds of radiographs. Second, we aim to adapt our methods to the volumetric medical image segmentation scenario following an approach similar to V-Net [65]. Third, we would like to study further network simplifications following an automatic pruning approach as in ThinNet [66]. Last, we plan to test the applicability of this segmentation framework in a challenging real world problem, such as forensic identification via comparative radiography [11], to study if the quality of the resulting segmentation is sufficient for that task. Acknowledgements This research was supported by the Spanish Ministerio de Econom´ıa y Competividad under the NEWSOCO project [grant number TIN2015-67661-P], including European Development Regional Funds (EDRF). Mr. G´omez’s work was supported by Spanish MECD FPU grant [grant number FPU14/02380]. Pablo Mesejo is funded by the European Commission H2020-MSCA-IF-2016 through the Skeleton-ID Marie Curie Individual Fellowship [grant number 746592]. We acknowledge the support of NVIDIA Corporation with the donation of the Titan X Pascal GPU used for this research. Conflict of Interest The authors declare that they have no conflict of interest. References 1. Staffan Sandstr¨om, Harald Ostensen, and Holger Pettersson. The WHO manual of diagnostic imaging: radiographic technique and projections, volume 2. World Health Organization, 2003. 2. Richard H Daffner and Matthew Hartman. Clinical radiology: the essentials. Lippincott Williams & Wilkins, 2013. 3. Donna-Marie Rigby and Linda Hacking. Interpreting the chest radiograph. Anaesth Intensive Care, 19(2):50 – 54, 2018. 4. B. Van Ginneken, B. M. Ter Haar Romeny, and M. A. Viergever. Computer-aided diagnosis in chest radiography: a survey. IEEE Trans Med Imaging, 20(12):1228–1241, Dec 2001. 5. NHS England. Diagnostic imaging dataset annual statistical release 2015/2016. 2016. 6. Jonathan Laserson, Christine Dan Lantsman, Michal Cohen-Sfady, Itamar Tamir, Eli Goz, Chen Brestel, Shir Bar, Maya Atar, and Eldad Elnekave. TextRay: Mining Clinical Reports to Gain a Broad Understanding of Chest X-Rays. In MICCAI, pages 553–561, 2018. 7. Arnold M.R. Schilham, Bram van Ginneken, and Marco Loog. A computer-aided diagnosis system for detection of lung nodules in chest radiographs with an evaluation on a public database. Med Image Anal, 10(2):247 – 258, 2006.
18 Oscar G´omez et al. 8. Ajay Mittal, Rahul Hooda, and Sanjeev Sofat. Lung field segmentation in chest radiographs: a historical review, current status, and expectations from deep learning. IET Image Processing, 11(11):937–952, 2017. 9. M.T. Tsakok and F.V. Gleeson. The chest radiograph in heart disease. Medicine, 46(8): 453 – 457, 2018. 10. Sudhir Kapoor, Akshay Tiwari, and Saurabh Kapoor. Primary tumours and tumorous lesions of clavicle. Int Orthop, 32(6):829, 2008. 11. Oscar G´omez, Oscar Ib´a˜nez, Andrea Valsecchi, Oscar Cord´on, and Tzipi Kahana. 3D-2D silhouette-based image registration for comparative radiography-based forensic identification. Pattern Recognit, 83:469 – 480, 2018. 12. Michael A Bruno, Eric A Walker, and Hani H Abujudeh. Understanding and confronting our mistakes: the epidemiology of error in radiology and strategies for error reduction. Radiographics, 35(6):1668–1676, 2015. 13. PJ Robinson, D Wilson, A Coral, A Murphy, and P Verow. Variation between experienced observers in the interpretation of accident and emergency radiographs. The British journal of radiology, 72(856):323–330, 1999. 14. Adrian Brady, Riste´ard ´ O Laoide, Peter McCarthy, and Ronan McDermott. Discrepancy and error in radiology: concepts, causes and consequences. Ulster Med J, 81(1):3, 2012. 15. Jun-Ichiro Toriwaki, Yasuhito Suenaga, Toshio Negoro, and Teruo Fukumura. Pattern recognition of chest X-ray images. Comput Vision Graph, 2(3):252 – 271, 1973. 16. H. Wechsler and J. Sklansky. Finding the rib cage in chest radiographs. Pattern Recognit, 9(1):21 – 30, 1977. 17. Ying Zhu, Simone Prummer, Peng Wang, Terrence Chen, Dorin Comaniciu, and Martin Ostermeier. Dynamic layer separation for coronary DSA and enhancement in fluoroscopic sequences. In MICCAI, pages 877–884, 2009. 18. Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional networks for biomedical image segmentation. In MICCAI, pages 234–241, 2015. 19. Bram Van Ginneken, BM Ter Haar Romeny, and Max A Viergever. Computer-aided diagnosis in chest radiography: a survey. IEEE Trans Med Imaging, 20(12):1228–1241, 2001. 20. Yeqin Shao, Yaozong Gao, Yanrong Guo, Yonghong Shi, Xin Yang, and Dinggang Shen. Hierarchical lung field segmentation with joint shape and appearance sparse learning. IEEE Trans Med Imaging, 33(9):1761–1780, 2014. 21. Wei Yang, Yunbi Liu, Liyan Lin, Zhaoqiang Yun, Zhentai Lu, Qianjin Feng, and Wufan Chen. Lung field segmentation in chest radiographs from boundary maps by a structured edge detector. IEEE J Biomed Health Inform, 22(3):842–851, 2018. 22. Haithem Boussaid, Iasonas Kokkinos, and Nikos Paragios. Discriminative learning of deformable contour models. In ISBI, pages 624–628. IEEE, 2014. 23. Laurens Hogeweg, Clara I S´anchez, Pim A de Jong, Pragnya Maduskar, and Bram van Ginneken. Clavicle segmentation in chest radiographs. Med Image Anal, 16(8):1490–1502, 2012. 24. A. A. Novikov, D. Lenis, D. Major, J. Hlad˚uvka, M. Wimmer, and K. B¨uhler. Fully convolutional architectures for multiclass segmentation in chest radiographs. IEEE Trans Med Imaging, 37(8):1865–1876, Aug 2018. 25. Junji Shiraishi, Shigehiko Katsuragawa, Junpei Ikezoe, Tsuneo Matsumoto, Takeshi Kobayashi, Ken-ichi Komatsu, Mitate Matsui, Hiroshi Fujita, Yoshie Kodera, and Kunio Doi. Development of a digital image database for chest radiographs with and without a lung nodule: receiver operating characteristic analysis of radiologists’ detection of pulmonary nodules. AJR Am J Roentgenol, 174(1):71–74, 2000. 26. Bram Van Ginneken, Mikkel B Stegmann, and Marco Loog. Segmentation of anatomical structures in chest radiographs using supervised methods: a comparative study on a public database. Med Image Anal, 10(1):19–40, 2006. 27. Dmitry Ulyanov, Andrea Vedaldi, and Victor S. Lempitsky. Instance normalization: The missing ingredient for fast stylization. CoRR, abs/1607.08022, 2016. 28. Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. DeepLab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected CRFs. CoRR, abs/1606.00915, 2016. 29. D. J. Withey and Z. J. Koles. Medical image segmentation: Methods and software. In NFSI-ICFBI, pages 140–143, 2007.
Deep architectures for high-resolution multi-organ chest X-ray image segmentation 19 30. Muhammad Waseem Khan. A survey: Image segmentation techniques. International Journal of Future Computer and Communication, 3(2):89, 2014. 31. Erik Smistad, Thomas L. Falch, Mohammadmehdi Bozorgi, Anne C. Elster, and Frank Lindseth. Medical image segmentation on GPUs – a comprehensive review. Med Image Anal, 20(1):1 – 18, 2015. 32. Pablo Mesejo, Oscar Ib´a˜nez, Oscar Cord´on, and Stefano Cagnoni. A survey on image segmentation using metaheuristic-based deformable models: state of the art and critical analysis. Appl Soft Comput, 44:1–29, 2016. 33. Mariano Cabezas, Arnau Oliver, Xavier Llad´o, Jordi Freixenet, and Meritxell Bach Cuadra. A review of atlas-based segmentation for magnetic resonance brain images. Comput Methods Programs Biomed, 104(3):e158 – e177, 2011. 34. Bo Peng, Lei Zhang, and David Zhang. A survey of graph theoretical approaches to image segmentation. Pattern Recognit, 46(3):1020 – 1038, 2013. 35. Alberto Garcia-Garcia, Sergio Orts-Escolano, Sergiu Oprea, Victor Villena-Martinez, and Jose Garcia-Rodriguez. A review on deep learning techniques applied to semantic segmentation. arXiv preprint arXiv:1704.06857, 2017. 36. P. Chondro, C.-Y. Yao, S.-J. Ruan, and L.-C. Chien. Low order adaptive region growing for lung segmentation on plain chest radiographs. Neurocomputing, 275:1002–1011, 2018. 37. Khang Siang Tan and Nor Ashidi Mat Isa. Color image segmentation using histogram thresholding – fuzzy C-means hybrid approach. Pattern Recognit, 44(1):1 – 15, 2011. 38. Lei Bi, Dagan Feng, and Jinman Kim. Dual-path adversarial learning for fully convolutional network (FCN)-based medical image segmentation. The Visual Computer, 34(6): 1043–1052, Jun 2018. 39. Chunliang Wang. Segmentation of multiple structures in chest radiographs using multitask fully convolutional networks. In Puneet Sharma and Filippo Maria Bianchi, editors, SCIA, pages 282–289, 2017. 40. Ajay Mittal, Rahul Hooda, and Sanjeev Sofat. LF-SegNet: A fully convolutional encoder– decoder network for segmenting lung fields from chest radiographs. Wireless Personal Communications, 101(1):511–529, Jul 2018. 41. S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. ICML, 1:448–456, 2015. 42. Stefan Jaeger, Sema Candemir, Sameer Antani, Y`ı-Xi´ang J W´ang, Pu-Xuan Lu, and George Thoma. Two public chest X-ray datasets for computer-aided screening of pulmonary diseases. Quant Imaging Med Surg, 4(6):475, 2014. 43. Rahul Hooda, Ajay Mittal, and Sanjeev Sofat. An efficient variant of fully-convolutional network for segmenting lung fields from chest radiographs. Wireless Personal Communications, 101(3):1559–1579, Aug 2018. 44. Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. J Mach Learn Res, 15(1):1929–1958, 2014. 45. Thorvald Sørensen. A method of establishing groups of equal amplitude in plant sociology based on similarity of species and its application to analyses of the vegetation on danish commons. Kongelige Danske Videnskabernes Selskab, 5:1–34, 1948. 46. Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017. 47. Misha Denil, Babak Shakibi, Laurent Dinh, Nando De Freitas, et al. Predicting parameters in deep learning. In Advances in neural information processing systems, pages 2148–2156, 2013. 48. S. Han, X. Liu, H. Mao, J. Pu, A. Pedram, M.A. Horowitz, and W.J. Dally. EIE: efficient inference engine on compressed deep neural network. ISCA, pages 243–254, 2016. 49. Yong-Deok Kim, Eunhyeok Park, Sungjoo Yoo, Taelim Choi, Lu Yang, and Dongjun Shin. Compression of deep convolutional neural networks for fast and low power mobile applications. arXiv preprint arXiv:1511.06530, 2015. 50. Baiying Lei, Shan Huang, Ran Li, Cheng Bian, Hang Li, Yi-Hong Chou, and Jie-Zhi Cheng. Segmentation of breast anatomy for automated whole breast ultrasound images with boundary regularized convolutional encoder–decoder network. Neurocomputing, 321: 178 – 186, 2018. 51. J. Liu, J. Cai, K. Chellamuthu, M. Bagheri, L. Lu, and R. M. Summers. Cascaded coarse- to-fine convolutional neural networks for pericardial effusion localization and segmentation
20 Oscar G´omez et al. on ct scans. In 2018 IEEE 15th International Symposium on Biomedical Imaging (ISBI 2018), pages 1092–1095, April 2018. 52. Ke Gong, Xiaodan Liang, Yicheng Li, Yimin Chen, Ming Yang, and Liang Lin. Instancelevel human parsing via part grouping network. arXiv preprint arXiv:1808.00157, 2018. 53. Costantino Grana, Daniele Borghesani, and Rita Cucchiara. Optimized block-based connected components labeling with decision trees. IEEE Trans Image Process, 19(6):1596– 1609, 2010. 54. Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034, 2013. 55. Geert Litjens, Clara I S´anchez, Nadya Timofeeva, Meyke Hermsen, Iris Nagtegaal, Iringo Kovacs, Christina Hulsbergen-Van De Kaa, Peter Bult, Bram Van Ginneken, and Jeroen Van Der Laak. Deep learning as a tool for increased accuracy and efficiency of histopathological diagnosis. Scientific reports, 6:26286, 2016. 56. Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. Proc. Computer Vision and Pattern Recognition (CVPR), IEEE, 1(2):4, 2017. 57. Mario Beauchemin, Keith PB Thomson, and G Edwards. On the Hausdorff distance used for the evaluation of segmentation results. Can J Remote Sens, 24(1):3–8, 1998. 58. Paul Jaccard. The distribution of the flora in the alpine zone. 1. New phytologist, 11(2): 37–50, 1912. 59. St´ephane Lathuili`ere, Pablo Mesejo, Xavier Alameda-Pineda, and Radu Horaud. A comprehensive analysis of deep regression. arXiv preprint arXiv:1803.08450, 2018. 60. Edmund A Gehan. A generalized Wilcoxon test for comparing arbitrarily singly-censored samples. Biometrika, 52(1-2):203–223, 1965. 61. Zhanpeng Zhang, Ping Luo, Chen Change Loy, and Xiaoou Tang. Facial landmark detection by deep multi-task learning. In ECCV, pages 94–108, 2014. 62. Zhizheng Wu, Cassia Valentini-Botinhao, Oliver Watts, and Simon King. Deep neural networks employing multi-task learning and stacked bottleneck features for speech synthesis. In ICASSP, pages 4460–4464, 2015. 63. Myles Hollander and Douglas A Wolfe. Nonparametric statistical methods. Wiley- Interscience, 1999. 64. J. Xiong, Y. Shao, J. Ma, Y. Ren, Q. Wang, and J. Zhao. Lung field segmentation using weighted sparse shape composition with robust initialization. Medical Physics, 44(11): 5916–5929, 2017. 65. Fausto Milletari, Nassir Navab, and Seyed-Ahmad Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. In 3DV, pages 565–571. IEEE, 2016. 66. J. Luo, H. Zhang, H. Zhou, C. Xie, J. Wu, and W. Lin. ThiNet: Pruning CNN filters for a thinner net. IEEE Trans Pattern Anal Mach Intell, On press.