Full text
October 2019 Ana Filipa de Oliveira Ramos Deep Learning Applied to Medical Imaging October 2019 Ana Filipa de Oliveira Ramos Deep Learning Applied to Medical Imaging October 2019
i Ana Filipa de Oliveira Ramos Deep Learning Applied to Medical Imaging Master Dissertation Master Degree in Biomedical Engineering Dissertation oriented by Victor Manuel Rodrigues Alves Patrícia Sánchez-Gonzalez October 2019
i DECLARATION Name: Ana Filipa de Oliveira Ramos Dissertation Title: Deep Learning Applied to Medical Imaging Mentors: Victor Manuel Rodrigues Alves, Patricia Sánchez-Gonzalez Conclusion Year: 2019 Master Designation: Mestrado Integrado em Engenharia Biomédica Master Branch: Informática Médica I declare that I grant to the University of Minho and its agents a non-exclusive license to file and make available through its repository, in the conditions indicated below, my dissertation, as a whole or partially, in digital support. I declare that I authorize the University of Minho to file more than one copy of the dissertation and, without altering its contents, to convert the dissertation to any format or support, for the purpose of preservation and access. Furthermore, I retain all copyrights related to the dissertation and the right to use it in future works. I authorize the partial reproduction of this dissertation for the purpose of investigation by means of a written declaration of the interested person or entity. This is an academic work that can be used by third parties if internationally accepted rules and good practice with regard to copyright and related rights are respected. Thus, the present work can be used under the terms of the license indicated below. In case the user needs permission to be able to make use of the work in conditions not foreseen in the indicated licensing, he should contact the author through the RepositóriUM of the University of Minho. Atribuição-NãoComercial-SemDerivações CC BY-NC-ND https://creativecommons.org/licenses/by-nc-nd/4.0/ Universidade do Minho, ____/____/______ Signature: ___________________________________
ii Acknowledgements I would like to thank my supervisor at the Polytechnic University of Madrid, Patricia Sánchez-González, for sharing her knowledge and guiding me. I would also like to express my appreciation to all the work of the Biomedical Engineering and Telemedicine Group team, which has enabled me to develop my dissertation in a high-quality environment with such great minds. To my supervisor at University of Minho, Victor Alves, I am truly grateful for all his support and availability throughout all phases of the project. His constant disposition was fundamental to both the developing and writing phases, never denying his assistance even with his busy schedule. I would like to thank the amazing people I met through my academic journey, for all the moments that have always cheered me up through the course. To all my old friends, thank you for your patience and support during this period. Your presence and friendship are essential to my happiness. I would also like to thank my parents and my sister for all the support and advice in all my decisions. To my cousin Cristina, thank you for all your guidance. Their wisdom has made me the person I am today. Finally, to André Dias, for being with me celebrating the good moments and supporting me in bad. For all your love, thank you. To my parents, sister and boyfriend, I dedicate this dissertation.
iii STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. Universidade do Minho, ____/____/______ Signature: ________________________________________
iv
v ABSTRACT Medical examinations in general and medical imaging in particular play an important role in disease detection and patient monitoring. Most of the medical images produced are based on X-rays and are used by almost all medical specialties. They provide sensitive results and are relatively inexpensive compared to other techniques such as Magnetic Resonance Imaging (MRI). However, MRI has proven to be a great diagnostic tool as it enables high-quality images in multiple planes or directions. Progressively more researchers are exploring the use of Deep Learning (DL) algorithms to process and analyse medical images. The main goal of this work is to study and evaluate DL methods applied to two different types of medical images: 2D X-rays images and 3D MRI scans. Both of these types are often used for early detection, diagnosis, and treatment of diseases. Existing DL architectures and image preprocessing techniques have also been studied and developed for segmentation of various brain regions (using MRIs) and classification of chest diseases (using X-rays). Convolution Neural Network (CNN) architectures have aroused interest in health domain because of their powerful learning ability. These networks use multiple convolutions, pooling and fully connected layers to learn the features. This work investigated several CNN architectures and their application in classification of chest X-rays. The use of transfer learning, a deep learning technique, was also studied. This technique enabled the initialization of the CNN with weights from a pre-trained model, whereby the knowledge was transferred from another model. Fully Convolutional Networks (FCN), have been successfully used in the segmentation of biomedical images. In this work, an FCN based on the well-known U-net architecture was used to perform the segmentation of brain MRI scans. U-net uses convolution, max pooling, concatenation and up sampling layers to extract the features. For the segmentation task the best result obtained with brain MRI using Dice Similarity Coefficient was 95.97%. For the classification task using chest X-rays, the best result using Area Under the ROC Curve was 96.40%. Keywords: Deep learning, Machine learning, Medical imaging, MRI, X-rays.
vi RESUMO Os exames médicos em geral e as imagens médicas em particular, desempenham um papel importante na deteção de doenças e no monitoramento dos pacientes. As imagens produzidas são na sua maioria raios-X, pois são utilizados em grande parte das especialidades médicas. Os raios-X fornecem resultados sensíveis e são relativamente baratos quando comparados com outras técnicas, como a ressonância magnética (RM). As RM, no entanto, provaram ser uma ótima ferramenta de diagnóstico, uma vez que permitem obter imagens de alta qualidade em vários planos ou direções. Progressivamente mais cientistas investigam o uso de algoritmos de Deep Learning (DL) para o processamento e análise de imagens médicas. O presente trabalho tem como principal objetivo o estudo e avaliação de técnicas de DL aplicadas a dois tipos de imagens médicas: imagens de raios-X (2D) e imagens de RM (3D). Ambas são frequentemente usados para deteção precoce, diagnóstico e tratamento de doenças. Estudaram-se também diferentes arquiteturas de DL e técnicas de pré-processamento de imagens para realizar a segmentação de várias regiões do cérebro (usando imagens de RM) e para a classificação de doenças torácicas (usando raios-X). A Convolution Neural Network (CNN) é uma arquitetura que tem despertado um grande interesse no domínio da saúde devido à sua boa capacidade de aprendizagem. Estas redes utilizam várias camadas de tipo convolution , pooling e fully connected para aprender as features . O presente trabalho investigou diferentes esquemas de CNN e avaliou a sua capacidade de classificar os raios-X tóracicos. Também se estudou o uso de uma técnica de DL denominada transfer learning . Esta técnica permitiu a inicialização da rede usando pesos provenientes de um modelo pré-treinado, transferindo o seu conhecimento. As Fully Convolutional Networks (FCN) têm obtido um bom desempenho na segmentação de imagens biomédicas. Neste trabalho, para segmentar as imagens de RM do cérebro, utilizou-se uma FCN baseada numa arquitetura amplamente conhecida, a arquitetura U-Net. A U-Net usa camadas de convolution , max pooling , concatenation e up sampling para extrair as features . Na segmentação de imagens de RM cerebral, o melhor resultado foi um Coeficiente de Similaridade dos Dados de 95,97%. Na classificação de raios-X torácicos, o melhor resultado foi uma área sob a curva ROC de 96,40%. Palavras-Chave: Deep learning , Imagens Ressonância Magnética, Imagiologia médica, Machine learning , Raios-X.
xiii LIST OF ABBREVIATIONS AND ACRONYMS A AUC Area Under the ROC curve AI Artificial Intelligence ANN Artificial Neural Network B BraTS Brain Segmentation Challenge C CTR Cardiothoracic Ratio CSF Cerebrospinal Fluid COPD Chronic Obstructive Pulmonary Disease CT Computer Tomography CAD Computer-Aided Diagnosis CNN Convolution Neural Networks CE Cross-Entropy D DL Deep Learning DNN Deep Neural Network DSR Design Science Research DSC Dice Similarity Coefficient F FPR False Positive Rate FSL FMRIB’s Software Library FTL Focal Tversky Loss FCL Fully Connected Layer FCN Fully Connected Network G GDL Generalised Dice Loss GM Gray Matter
xiv I ILSVRC ImageNet Large Scale Visual Recognition Challenge ICLR International Conference on Learning Representation ISLES Ischemic Stroke Lesion Segmentation J JI Jaccard Index L LONI Laboratory of Neuro Imaging LPBA40 LONI Probabilistic Brain Atlas M ML Machine Learning MRI Magnetic Resonance Imaging MDT Maximum Transverse Diameter of Thorax MDH Maximum Transverse Heart N NHS National Health Service N3 Nonparametric Nonuniform Intensity Normalization P PET Positron Emission Tomography R RF Radiofrequency ROC Receiver Operating Characteristics ReLU Rectifier Linear Units S SURF Speeded-Up Robust Features SGD Stochastic Gradient Descent T TPR True Positive Rate TL Tversky Loss
xv T TRM Tversky Ratio Model TI Tversky Similarity Index U UPM Polytechnic University of Madrid US Ultrasound V VGG Visual Geometry Group VGGNet Visual Geometry Group Network W WCE Weighted Cross-Entropy WM White Matter WMH White Matter Hyperintensities
xvi GLOSSARY Activation Function Used in neural networks, decides whether the neuron is activated or not. The neuron receives an input value from previous neurons. If the value is large enough, the neural unit passes the value to the next neuron, thus acting as a threshold function. Artificial Intelligence (AI) The capacity of a computer does some human activities like thinking, making decisions or learning. Artificial Neural Networks (ANN) A model that is inspired by the brain and that performs the mapping from a received input to the desired output using the "neurons" of the network, also referred to as a unit, and nodes that are weighted interconnected. Batch In Neural Networks, samples used in one iteration. Bias Field An unwanted low-frequency smooth signal that falsifies MRI due to inhomogeneities in the magnetic fields of the MRI machine. CheXpert A competition for automated chest x-ray interpretation and a large dataset, which contains 224,316 chest radiographs of 65,240 patients. The images were collected from October 2002 at July 2017 in Stanford Hospital, along with medical reports from radiologists. Class Refers to the output category of the data, and a label in a dataset refers to one of the classes. Convolutional Neural Network (CNN) A CNN are a deep neural network that consist of three main layers’ groups: input, feature extraction and classification layers. CNN has performed well in object recognition, semantic segmentation and image classification. Dataset A collection of data. The data contains features and, if using supervised training, a label. Deep Learning (DL) A subfield of Machine Learning, belong to representation learning, where the algorithm is trained to learn the feature hierarchy to classify the data provided. Dropout Regularization technique that disable certain neurons in the network, their weights were zeroed and forced to train with a different layer configuration in each update. DSR Methodology A rigorous scientific research methodology that includes the techniques, principles, and procedures that must be followed to design and develop successful solutions to the problems. Epoch One forward pass and one backward pass through all training samples. Feature In Machine Learning, a feature is a measurable propriety of an attribute.
xvii fit_generator Keras method that generates the data batch-by-batch to train the model. ImageNet dataset A large database of a wider variety of objects designed for object recognition and image classification. Machine Learning (ML) An approach to achieving Artificial Intelligence, where a computer is trained using specific algorithms and a large amount of data to gain the ability to adapt to new situations and predict patterns. Magnetic Resonance Imaging (MRI) A non-invasive and painless imaging technique based on the absorption and emission of energy in the radiofrequency (RF) spectrum of the electromagnetic spectrum. MRI is widely often used for clinical assistance and also in clinical research. Medical Imaging Informatics A discipline that results from the combination of medical images and biomedical informatics. Serves to enhance the improvement and knowledge of clinical care. On the one hand, medical imaging allows the study of a disease state in vivo . On the other hand, biomedical informatics is involved in the development of computer science techniques for creating and managing medical data. Overfitting Occurs when a model that fits the training data too well that fails when applied to new data. The generalizability is negatively impacted. Pixel Picture element that defines a unit of information in two-dimensional space. Skull Stripping Method of removing non-brain tissues (e.g. bone, scalp, veins) from MRI. Soft Tissue Tissues that support other structures and organs of the body, such as tendons, fibrous tissues, fat, muscles, nerves and blood vessels. Test set The subset of the dataset used to test the model after the training phase. Train set The subset of the dataset used to train a model. Validation set A subset of the dataset used to adjust hyperparameters in the training phase. Voxel Volume element that represents a value in the three-dimensional space. X-rays Imaging Produced when a high voltage is applied between two electrodes, and the electrons collide with sufficient kinetic energy with a tungsten anode target. The tissues on the body have a different atomic number, the number of protons in the nucleus, so they also have different densities. When the density is higher, the X-rays are effectively blocked, allowing visualize inside the body due to the different shadows.
xviii
1 INTRODUCTION
INTRODUCTION 2 1.1 CONTEXT AND MOTIVATION Nowadays, medical images such as Computed Tomography (CT), X-rays, or Magnetic Resonance Imaging (MRI) are widely used to diagnose, plan and guide the treatment and monitoring of disease progression [1]. Image registration techniques, i.e., methods of aligning images on a computer model or aligning features in an image with locations in physical space are part of the clinical routine. They are the core for the interpretation and analysis of the medical image to connect the spatial information and the pathologies or anomalies. The image registration allows the combination of complementary information provided by different modalities, intermodality, or by the same modality, intramodality. It can also be used to align multiple images captured from the same subject, intrasubject registration, or from different subjects, intersubject registration. However, image manipulation is possible only with digital images consisting of picture elements, also referred to as pixels , which are small rectangular arrays with an associated image intensity value. They provide the coordinate system of the image and allow access to each element in the image through its respective two-dimensional position on the array. The 3D volumes are created when captured directly or when 2D images are stacked. Each pixel is now a small volume element, also called a voxel. Each voxel is also assigned an intensity that results from an average of a physical attribute measure over that volume [1]. One of the most common used 2D image are X-rays because sensitive results can be obtained, and radiological devices are widely available [2]. The X-rays allow visualization within the body due to the Key points: • Medical images are commonly used to plan and control treatment, for example, to monitor the disease progression. • Each element of an image is called a pixel and has an associated image intensity value. • Each element of a volumetric image is called a voxel and has an associated intensity that is the average of a physical attribute measure across that volume. • The main objective of this dissertation is the application of Deep Learning techniques to various types of medical images, X-ray and MRI images, with the motivation to investigate and propose new solutions that help physicians in today’s society diagnose and treat easier, cheaper and faster.
INTRODUCTION 3 different density of tissues. When the density is higher, the X-rays are effectively blocked, and different shadows are created for the tissue [3]. The interpretation by the radiologist, however, can be a challenge because it depends on his experience and a clear mind. Since the radiologist has to work intensively, this misdiagnosis increases due to exhaustion. There is also a lack of specialized physicians, mainly in the least developed areas [4]. For this reason, interest in combining X-rays images with Deep Learning (DL) methods has increased over the years [5] [6] [7] [8]. DL techniques have also been study in 3D images, such as MRI images, which has providing promising results [9] [10] [11] [12]. MRI provides variable image contrast and high contrast for soft tissue (i.e., tissues that support other structures and organs of the body, such as tendons, fibrous tissues, fat, muscles, nerves and blood vessels), and high spatial resolution [13]. The quantitative analysis of brain MRI is often used to study brain disorders, e.g. to quantify tissue atrophy by segmentation and corresponding measurements of brain tissue [14]. Manual segmentation requires experienced radiologists to analyse the MRI information, which takes a long time because they have to analyse several slices of the image. Manual segmentation is also subjective depending on the radiologist. It has been found that DL segmentation and classification techniques are useful for improved diagnosis, growth rate prediction, treatment planning, and treatment costs because their algorithms perform well [15] [16] [17] [18]. This dissertation motivation relies on current more frequent (X-rays) and more promising (MRI images) medical images and the emerging DL techniques to investigate and propose new solutions that help physicians in today’s society make diagnosis and treatment easier, cheaper and faster. 1.2 OBJECTIVES The main goal of this work is to study and compare DL methods applied in various medical imaging technologies, with two different types of medical images: 2D images (X-rays) and 3D images (MRI). Both types of images are often used for early detection, diagnosis, and treatment of diseases. In addition, to achieve the main objective, DL models and image pre-processing techniques have also been studied and developed to achieve the secondary objectives: segmentation of various brain regions and classification of chest diseases. 1.3 INVESTIGATION METHODOLOGY Prior to developing any solution, careful and thorough research is required to analyse and select the appropriate development tools, methods and research strategies to use to develop the solution. Therefore,
INTRODUCTION 4 the research strategy selected for this dissertation was the Design Science Research (DSR), which is considered to be effective in computer science and medical informatics projects. The DSR methodology, Figure 1-1, is a rigorous scientific research methodology that includes the techniques, principles, and procedures that must be followed to design and develop successful solutions to the problems [19] [20]. It can be divided into six main steps: 1) Problem identification and motivation - Identification of the research problems to be solved, and appropriate justification of the practical and scientific values of the solution. 2) Definition of the solution’s objectives – Identification and presentation of the solution objectives of the solution based on the identified research problems. 3) Design and development of the solution – Design the solution, i.e. definition of the features and architecture, and then development of the solution for solve the specified objectives. 4) Demonstration – Experiments and simulations to demonstrate the solutions developed, in order to evaluate the capacity of the solutions to solve the research problems. 5) Evaluation – Assessment of the solution and comparison of the results achieved in the demonstration step with the objective defined in the second step. This means assessing whether the solution worked out can support the research problems and the objectives set. 6) Communication – Communication of the problem as the developed solution to an audience, i.e., spread the importance of the problem and of the solution. Figure 1-1 - Design Research Process schema.
TECHNOLOGIES AND CONCEPTS 11 Table 2-2 - T1, T2 and FLAIR MRI sequences. Where BBB refers to Blood-Brain Barrier [24]. Sequence MR sample Property Useful for T1 Cortex Gray CSF Dark Fat Bright Inflammation Dark WM Light • Anatomic detail • Vascular changes • Disruption of BBB T2 Cortex Light Gray CSF Bright Fat Light Inflammation Bright WM Dark Gray • Anatomic detail (CSF spaces) • Most Lesions, but cannot distinguish lesions from CSF FLAIR Cortex Light Gray CSF Dark Fat Light Inflammation Bright WM Dark Gray • Same as T2 • Delineation of lesions near the ventricles. • Enema 2.3 ARTIFICIAL NEURAL NETWORK Artificial Intelligence (AI) can be described, succinctly, as the capacity of a computer to simulate some human activities such as thinking, making decisions or learning [25]. Figure 2-4 presents a flowchart of relationships between different parts of AI. Machine Learning (ML) is an AI technique, where a computer is trained using specific algorithms and a large amount of data to gain the ability to adapt to new situations and predict patterns [25] [26]. ML is usually divided into two types of learning algorithms: unsupervised learning and supervised learning. On one hand, unsupervised learning occurs when ML is used to automatically recognize the patterns in a given dataset. On the other hand, for supervised learning the ground-truth of each dataset case is given, and the computer performs a classification prediction [27].
TECHNOLOGIES AND CONCEPTS 12 Figure 2-4 - Flowcharts showing the relationships between different parts of an AI system in different AI disciplines. The boxes denote the components that can learn from the data. In the 1940s, McCullock and Pitts developed a model that imitates a biological neural network, called Artificial Neural Network (ANN). The system architecture is inspired on the biological neural system, which in turn consists of receptors, a neural network and effectors. The receptors receive stimuli and pass the electrical impulses through the neural network into interconnected neurons to the effectors, which convert the electrical impulse into a body reaction. In ANNs, the receptors are the input nodes/units that receive the information, which can be expressed numerically. The information is presented as activation values. This information is then forwarded to the hidden nodes, also called artificial neurons, based on the weights (real numbers that express the importance of the respective inputs to the output) and activation functions. The information flows from node to node until the output node, that presents the predicted value. The error, difference between the predicted value and the actual value, is propagated backwards using an optimizer (e.g. Stochastic Gradient Descent) by apportioning them to each node’s weights according to the amount of this error the node is responsible for. Hence the hidden nodes sum all the weighted inputs, a parameter is added to ensure that the output is not only affected by the weights (i.e. it’s bias). This is important specially for activation function that only trigger at values greater than zero (e.g. ReLU activation function). This parameter called a bias is an offset from an origin. In addition to the activation functions, the loss functions
TECHNOLOGIES AND CONCEPTS 13 are also important for fine-tuning neural network because they calculate the error for a training example [28] [29] [30]. In the biological context, a neuron is a biological cell that consists of three main areas: the cell body, the axon, and the dendrites. The cell body contains information about hereditary proprieties and plasma, with which the neuron remains functional. The dendrites receive a stimulus, electrical impulses, from other neurons. Then, the cell body sums up the received signals and, if sufficient, generates a signal that it transmits to other cells via the axon, Figure 2-5. Between two neurons, there is a structure called the synapse, and when the impulse arrives at the synapse terminal, the neurotransmitters are released. The neurotransmitters diffuse across the synaptic gap to excite or inhibit the receptor neurons of emitting electrical impulses, depending on the type of synapse. Over time, the effectiveness of the synapses is adjusted by learning from the activities they have participated in. Figure 2-5 - The three main stages of Biological Neural Systems. The next topics summarize how the biological functionality of a neural network influences some properties of the ANN’s: • A neuron receives multiple signals and then process them. • The synapse can modify, by weight, the received signals. • The cell body of a neuron sums the weighted received signals (inputs). • The signal produced by a neuron can be sent to many other neurons. • It can be considered that the information processing is local (each neuron processes the input signal). • The synapse effectiveness can be optimized by experience. • The neurotransmitters can be enhancer or inhibitory. Deep Learning (DL) is a subfield of ML, belong to representation learning, which uses multiple layers of nonlinear processing units for feature extraction [31]. DL networks are deeper than ANNs, i.e. have a higher number of hidden nodes that data passes through [32]. Since the 1980s, ANN’s have emerged into a powerful DL approach, most notably due to the Hopfield’s energy approach in 1982. Hopfield
TECHNOLOGIES AND CONCEPTS 14 proposed an ANN model that introduced concepts such as the energy function and the stability criterion to create a new method of associative memory and calculate the optimization of an ANN [33]. 2.3.1 DEEP NEURAL NETWORKS The computers can perform numeric computation better than humans. However, it is desirable that they also be able to solve complex perception problems. For this reason, intelligent systems such as ANN’s, which are inspired by biological neural systems, have been extensively studied over the years. Theoretically ANN has one input layer, one output layer, and at least one hidden layer between them. Deep Neural Networks (DNN) are based on ANN but have a high number of hidden layers and are the basic model used in DL. In DNN’s, the DL performs the mapping from a received input to the desired output using the "neurons" of the network, also called a unit, which are nodes that are weighted interconnected [34]. 2.3.2 ACTIVATION FUNCTIONS An activation function decides whether the node is activated or not. The node receives an input value from previous nodes. If the value is large enough, the neural unit passes the value to the next unit. There are three main types of activation functions: Softmax, Sigmoid and Rectifier Linear Units (ReLU). In 2013, the Leaky Rectified Linear Unit (Leaky ReLU) was introduced for the first time, a variant of the ReLU, which is also being studied in this dissertation. Each unit calculates the output differently using the equations in Table 2-3, denote that each unit receives 𝑥 as input, and 𝑓 designates the respective output [35] [36].
Table 2-3. Activation Functions. 2.3.3 LOSS FUNCTIONS AND OPTIMIZERS The loss function essentially performs an evaluation of the predicted value so that the algorithm knows whether the value is correct or not. The predicted value is incorrect if differs from the real value in the training set. To minimize the loss, an optimizer is used, the Stochastic Gradient Descent (SGD) is most commonly used for optimization and is also used in the model approaches of this work. An optimization problem searches for the parameters that minimize the loss function, and SGD iteratively searches for these parameters [35]. Below is an explanation of the loss functions used in this work. At last, in case of study 1, the Dice Similarity Coefficient was used as loss function, while in case of study 2 the Categorical Cross-Entropy was used. Activatio n Function Equation Graphical representation Proprieties Softmax 𝑓(𝑥)= 𝑒𝑥𝑛 ∑𝑒𝑥𝑐 𝑛 𝑐=1 Used in multi-classification tasks, normalizing the output of the previous layers to bring the total to one, specifying the probability for each class. Sigmoid 𝑓(𝑥)= 1 1+𝑒−𝑥 Usually used in binary classification problems. ReLU 𝑓(𝑥)=𝑚𝑎𝑥 (0,𝑥) Recently, has been used as a hidden unit. Works well with large and consistent gradients. Leaky ReLU 𝑓(𝑥)=𝑚𝑎𝑥 (𝑎𝑥,𝑥) In contrasts to ReLU, a non-negative slope, a, is assumed for the negative part, so that the negative part is not completely dropped.
TECHNOLOGIES AND CONCEPTS 16 Cohen´s Kappa Cohen´s Kappa, 𝜅, is used to measure inter-rater reliability. It is assumed that the proposed evaluation criteria are independent, that the categories are also independent (and that only one of them has to occur) and that two raters operate independently of each other. Adapting to clinical areas often requires categorization of the diseases through clinical testing. Therefore, it is important to determine whether the clinical professionals are reliable. Using the example of a psychology area, where the judges are different psychologists, the units are psychological tests protocols and the categories are mental disorders, it is necessary to determine the degree of stability among psychologists. Both the psychology tests and the diseases have to be independent, the patient only has to be affected by one of the diseases, and the psychologists have to act independently [37]. For multi-class classification problems, a weighted Cohen´s Kappa is used to optimize neural networks, equation 1. Three matrices are used: the matrix of observed scores, 𝑂, the matrix of expected scores, resulted by the product of the predict and “true values” histogram vector’s, 𝐸, and the weight matrix, 𝜔. 𝜅=1 – ∑𝜔𝑖,𝑗𝑂𝑖,𝑗𝑖,𝑗 ∑𝜔𝑖,𝑗𝐸𝑖,𝑗𝑖,𝑗 ( 1 ) In equation 1, 𝑖,𝑗 ∈{1,2…,𝐶}, being 𝐶 the number of classes. 𝐸𝑖,𝑗 is normalized to 𝐸 and 𝑂 have the same sum [38]. Cross-Entropy Cross-Entropy (CE) loss for binary classifications can be defined by equation 2: 𝐶𝐸={−𝑙𝑜𝑔(𝑝),𝑖𝑓 𝑦=1 −𝑙𝑜𝑔(1−𝑝),𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 ( 2 ) where 𝑦∈{±1} is the ground-truth class and 𝑝∈[0,1] is the estimated probability for the class with label 𝑦=1. This can be easily extended to the multi-class problems. The classes can also be weighted by introducing a factor 𝛼, that should be inverse of the class frequency, mitigating the class imbalance problem, Weighted Cross-Entropy (WCE) [39]. Dice Similarity Coefficient Loss Dice Similarity Coefficient (DSC) loss function, equation 3 represents the spatial overlap between two binary images, P and G, and the value can vary between 0 (no overlap) and 1 (perfect agreement) [40].
TECHNOLOGIES AND CONCEPTS 17 DSCLoss=1−2|P∩G| |P|+|G| ( 3 ) Sudre C.H. et al proposed the Generalised Dice Loss (GDL) as loss function, consisting essentially of an asymmetric DSC defined as: 𝐺𝐷𝐿=1−2 ∑𝑤𝑙∑𝑟𝑙𝑛𝑝𝑙𝑛𝑛 2 𝑙=1 ∑𝑤𝑙∑𝑟𝑙𝑛+𝑝𝑙𝑛𝑛 2 𝑙=1 ( 4 ) where 𝑤𝑙 is the weight attributed to a label, 𝑟𝑙𝑛 represent the voxels of the segmented image, and, 𝑝𝑙𝑛 the probability of this voxel belongs to a label [41]. F1-score Loss The F1-score metric is often used to evaluate the performance of classification systems, and to look for suitable parameters that maximize the F1-score. The metric evaluates the performance by comparing the results achieved and the expected results. This is a scale between precision and recall [42]. By dividing the number of observations by the sum of the reversal of the observation, the harmonic mean (𝐻) is obtained, equation 5: 1 𝐻≡1 𝑛∑1 𝑥𝑖 𝑛 𝑖=1 ( 5 ) where 𝑛 denotes the number of observations and 𝑥𝑖 an observation [43]. F1-score, 𝐹1, is calculated from the harmonic mean of Precision, equation 6, and Recall, equation 7 𝑃𝑟𝑒𝑐𝑖𝑠𝑖𝑜𝑛= 𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒+ 𝐹𝑎𝑙𝑠𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 ( 6 ) 𝑅𝑒𝑐𝑎𝑙𝑙= 𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒+ 𝐹𝑎𝑙𝑠𝑒 𝑁𝑒𝑔𝑎𝑡𝑖𝑣𝑒 ( 7 ) 𝐹1=2×𝑃𝑟𝑒𝑐𝑖𝑠𝑖𝑜𝑛×𝑅𝑒𝑐𝑎𝑙𝑙 𝑃𝑟𝑒𝑐𝑖𝑠𝑖𝑜𝑛+𝑅𝑒𝑐𝑎𝑙𝑙 ( 8 ) Consequently, F1-score loss function is defined as: 𝐹1𝐿𝑜𝑠𝑠 =1−𝐹1 ( 9 )
TECHNOLOGIES AND CONCEPTS 18 Jaccard Index In 1908, Paul Jaccard proposed a similarity metric called as Jaccard Index (JI) or Jaccard similarity coefficient, which is used to determine the degree of similarity, dissimilarity, and distance between two objects [31]. The calculation consists of dividing the number of attributes shared by the number of proprieties [44] [45] [46]. Taking into account the image context, JI can be defined as: 𝐽𝐼(𝐴,𝐵)=𝐴𝑖,𝑐∩𝐵𝑖,𝑐 𝐴𝑖,𝑐∪𝐵𝑖,𝑐 ( 10 ) where 𝐴𝑖,𝑐 denotes the ground-truth label of class c in pixel i , and 𝐵𝑖,𝑐 the prediction of class c in pixel i. These are vectors in which the current classes are denoted by 1 and the others by 0 [45]. Therefore, the Jaccard distance calculates the dissimilarity between two objects, equation 11, and is used as loss function [44]: 𝐽𝐼𝐿𝑜𝑠𝑠(𝐴,𝐵)=1−𝐽𝐼(𝐴,𝐵) ( 11 ) Receiver Operating Characteristics In 1982, Hanley and McNeil proposed Receiver Operating Characteristics (ROC) curve and the Area Under the ROC curve (AUC), which indicates the degree of separability and indicates the extent to which the model is able to distinguish between classes. The ROC curve details the True Positive Rate (TPR)/Recall versus the False Positive Rate (FPR). 𝐹𝑃𝑅= 𝐹𝑎𝑙𝑠𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 𝑇𝑟𝑢𝑒 𝑁𝑒𝑔𝑎𝑡𝑖𝑣𝑒 + 𝐹𝑎𝑙𝑠𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 ( 12 ) AUC represents the probability that a randomly chosen diseased is correctly rated, varies from 0 to 1. In Figure 2-6, when AUC is 1, it is a perfect classification, and when AUC is 0.92, 0.72 and 0.5 is an excellent, good and worthless classification, respectively [47] [48]. Figure 2-6 - Example ROC Curve [49].
TECHNOLOGIES AND CONCEPTS 19 Tversky Loss In 1977, mathematical psychologist Amos Tversky proposed The Ratio Model of similarity (TRM), also known as Tversky Similarity Index (TI), which fosters human instability in comparison, spotting the comparison on the similarity and not on the differences [50]. The TRM is defined as: 𝑇𝑅𝑀(𝐴,𝐵)= |𝐴∩𝐵| 𝛼(𝐴\𝐵)+𝛽(𝐵\𝐴)+|𝐴∩𝐵|′ ( 13 ) where, the numerator denotes what A and B have in common; (𝐴\𝐵) denotes the features of A that are not shared by B; (𝐵\𝐴) the features of B that are not shared by A; the parameters 𝛼 and 𝛽 are nonnegative and specify the importance of each component, making the similarity calculation asymmetrical [51]. Applying the equation 13 on image segmentation or classification, it is possible define a 2-class TRM variant for class 𝑐, equation 14: 𝑇𝑅𝑀𝑐=∑𝑝𝑖𝑐𝑔𝑖𝑐+𝜖 𝑁 𝑖=1 ∑𝑝𝑖𝑐𝑔𝑖𝑐+𝛼∑𝑝𝑖𝑐𝑔𝑖𝑐+ 𝑁 𝑖=1 𝛽∑𝑝𝑖𝑐𝑔𝑖𝑐+𝜖 𝑁 𝑖=1 𝑁 𝑖=1 ( 14 ) where, the ground-truth is represented by 𝑔∈{0,1}, the predicted label by 𝑝∈[0,1] and the number of pixels by 𝑁. The ground-truth can be expressed as 𝑔𝑖𝑐 , representing the probability that pixel 𝑖 is of the lesion class 𝑐 and 𝑔𝑖𝑐 expressing the probability pixel 𝑖 is of non-lesion class, 𝑐. The same is true for the predicted label, expressed by 𝑝𝑖𝑐 and 𝑝𝑖𝑐. The presence of the parameter 𝜖 inhibits the division by zero, affording stability. Therefore, the Tversky Loss (TL) function can be expressed as: 𝑇𝐿=∑1− 𝑐𝑇𝑅𝑀𝑐 ( 15 ) In order to improve the detection of the classes with lower probabilities, it can be introduced a parameter 𝛾 that exponentiates the TL, obtaining the Focal Tversky Loss (FTL) function: 𝐹𝑇𝐿𝑐=∑(1−𝑇𝑅𝑀𝑐)1/𝛾 𝑐 ( 16 ) Where, the parameter 𝛾 can vary over the interval [1,3]. When 𝛾=1 the 𝐹𝑇𝐿𝑐 is simplified to 𝑇𝐿, but when 𝛾>1 the loss function has a serious impact on misclassified predictions. If the 𝑇𝑅𝑀𝑐 are high and the pixel is not properly classified, the 𝐹𝑇𝐿𝑐 is not affected, because (1−𝑇𝑅𝑀𝑐) it is above zero. Otherwise, the 𝐹𝑇𝐿𝑐 value drops significantly, if the 𝑇𝑅𝑀𝑐 is low [52].
TECHNOLOGIES AND CONCEPTS 20 2.3.4 DEEP NEURAL NETWORK STRUCTURES Convolution Neural Networks Convolutional Neural Network (CNN) architectures allows efficient detection and extraction of important visual features. CNN consists of three main layer groups: input, feature extraction and classification layers. The input layer loads and stores a 3D input, i.e., the images processed on the network. Then, the feature extraction layers have subsequent layers of convolution, pooling, and activation to progressively produce higher order features. Finally, the classification layers have one or more Fully Connected Layers (FCL) to use the high order received features and to create class probabilities or scores [53]. CNN has performed well in object recognition, semantic segmentation and image classification [54] [55] [56]. At Ischemic Stroke Lesion Segmentation (ISLES) Challenge 2017, all the best performing teams present a CNN architecture [14]. Visual Geometry Group (VGG) from University of Oxford developed the VGG Network (VGGNet) that is one of the most preferred CNN architectures for extracting features from images. VGGNet consists of 16 convolutional layers, only 3 x3 convolutions, but lots of filters. In this work, it was tested several CNNs architectures [56] [57]. Fully Convolutional Networks The Fully Convolutional Networks (FCN), such as the CNN’s, can also learn high level and hierarchal features achieving goods results in segmentation tasks using biomedical images. Each layer is a threedimensional array of size ℎ × 𝑤 × 𝑑 , where 𝑑 is the channel dimensional and ℎ × 𝑤 are the spatial dimensions. The input layer receives the image, and the higher layers have receptive fields that connect the higher layer’s positions to the position on the input image [55]. The difference between the FCN and the CNN is that the CNN has connected nodes and usually ends with an FCL, that allows the network to perform classification tasks. On the other hand, the FCN consists only of convolutional or pooling layers, since there are no FCLs, an output image of any size can be generated (Figure 2-7) [58]. Figure 2-7 – A CNN for classification (above) and an FCN that creates a heat map (bellow). Image from [58].
CASE STUDY 1: SEGMENTATION STROKE IN MRI 27 million X-ray images were taken over the same period-, MRI images provide detailed images of the body’s internal structures and are a promising medical image in the DL approaches [76]. 3.2.1 STROKE DISEASE Stroke occurs when the circulation in the brain is disturbed, leading to an oxygen deficiency and consequently death of the nerve cells in the affected area. There are two main types of strokes: haemorrhagic and ischemic. The first affects only 15 percent of strokes, is more dangerous and occurs when a brain aneurysm burst, or a blood vessel leaks. About 40 percent of the stroke deaths are due to the haemorrhagic stroke. An ischemic stroke occurs when a blood vessel is blocked by a blood clot and the blood does not reach the brain [73]. Recovery depends on various factors such as the localization and size of the initial stroke lesion. Adequate recovery is determined by the combination of processes, such as restitution (i.e. restoration of proper functionality of damage nervous tissue) and substitution (i.e. reorganization of damaged neural pathways to learn the lost functions) [77]. However, each patient has a different outcome and physicians should choose an appropriate treatment strategy and plan the most appropriate follow-up to optimize post-stroke rehabilitation [74]. Stroke diagnosis requires the analysis of medical images such as CT, MRI, Ultrasound (US) and Positron Emission Tomography (PET) images. They provide a non-invasive method of mapping the anatomy of a subject [77] [78]. Of the above techniques, CT and MRI are most commonly used in clinical applications [75]. MRI images of the brain can reveal white spots, so-called White Matter Hyperintensities (WMH), which are localized in the deep white matter and are caused by a restriction in blood flow, e.g. small vessel disease [79]. WMH are common in patients with cardiovascular risk factor and symptomatic cerebrovascular disease and are associated with dementia and death, and above all an increased risk of stroke [80] [81]. MRI images track the recovery of the patient as physicians can examine WMH regression, Figure 3-1 [82]. Figure 3-1 - WMH regression on brain MRI images, after a 21-month follow-up of middle cerebral artery infarction (left, initial scan; right, follow-up) [82].
CASE STUDY 1: SEGMENTATION STROKE IN MRI 28 3.2.2 STROKE DATASET The dataset used was provided by the Guttmann Neurorehabilitation Hospital -a specialist hospital for the rehabilitation of people with neurological disabilities, e.g. spinal cord injury and acquired brain injuryas well as from the Biomedical Engineering and Telemedicine Centre –a research group of the Polytechnic University of Madrid (UPM) [83] [84]. The dataset (Figure 3-2) contains 132 patient cases with a total of 712 MRI images and is referred to as dataset I . Figure 3-2 - Example of the dataset I images. The dataset was not spatially normalized, the images have different dimensions and did not consist exclusively of brain MRI images. The images also had no ground-truth, which was a problem in this work. After removal the non-brain MRI images and after performed a spatial normalization, two datasets were tested, differing in the number of slices. 181 and 40 slices per MRI image were tested resulting, respectively, in two 2D tensors with the shape of (181 x712, 208, 176, 1) and (40 x712, 208, 176, 1) considering the colour channel. In Figure 3-3 it can be seen the distribution of the data, considering that the data was split into 60% for training, 20% for validation and 20% for testing. Figure 3-3 - Number of cases MRI in each phase.
CASE STUDY 1: SEGMENTATION STROKE IN MRI 29 3.2.3 LONI PROBABILISTIC BRAIN ATLAS Since the dataset I contained no ground-truth, a digital brain atlas was used, which was provided by the Laboratory of Neuro Imaging (LONI) of University of Southern California. The LONI Probabilistic Brain Atlas (LPBA40) consists of 40 MRI brain images of healthy volunteers whose size is 181 x217 x181. In this work, a size of 181 x208 x176 was used, some background areas were cropped as they were not relevant in this study, and the dataset is referred to as dataset II . LPBA40 contains a total of 56 structures that were manually labelled. In this study, after examining the various brain regions and how they can be affected by stroke, the classes were grouped into 5 classes (Figure 3-4): background, brainstem, cerebellum, right cerebral hemisphere, and left cerebral hemisphere [85]. Figure 3-4 - LPBA40 MRI slice (left), original corresponding label (centre), and the corresponding label after grouping classes. In practice, the background, brainstem and cerebellum were retained and the other 54 structures divided into the right and left cerebral hemispheres (27 + 27 structures), as present in Figure 3-5. Figure 3-5 - Aggrupation of the different right/left structures in “Right Cerebral Hemisphere” and “Left Cerebral Hemisphere”.
CASE STUDY 1: SEGMENTATION STROKE IN MRI 30 3.3 METHODS The DL techniques are often used to segment different objects. The following sections describe approaches to pre-processing the images from dataset I , selecting an MRI image from dataset II for use as ground-truth of dataset I , and then describe the approaches to performing brain segmentation of the various brain areas. For brain segmentation, two different approaches were tested, one using the dataset I during the training phase and the other using the dataset II . The computer used allowed faster processing of all tests and approaches. Table 3-1 presents the computer specifications used in this work. Table 3-1 - Computer Specifications. Operative System Ubuntu 14.04 LTS (64 bit) CPU Intel Xeon E5-1650 RAM 64Gb Secondary Memory • 2 Disks of 2TB • 1 Disk of 512Gb • GPU – NVIDIA P6000 • Cuda Parallel-Processing Colors 3840 • GPU 24 GB GDDR5X • FP32 Performance 12 TFLOPS 3.3.1 IMAGES PRE-PROCESSING The original dataset I was unclean, it was not exclusively brain images, but also images of other body regions. So, the first step was a selection of brain MRI images. The final result was a dataset consisting only of MRI images of the brain, Figure 3-6. Figure 3-6 - Elimination of non-brain MRI images of the dataset used.
CASE STUDY 1: SEGMENTATION STROKE IN MRI 31 Thereafter, a spatial normalization of all the MRI images contained in the dataset I was performed to obtain the same dimensions as in the dataset II , namely 181 x208 x176. The images also did not have a brain extraction process (skull stripping process). Thus, the non-brain tissues (e.g. bone, scalp, veins) remain on them, and then the brain extraction was performed. To skull stripping the images, a freely available software tool was used, the FMRIB’s Software Library (FSL) [86]. However, in some cases, the brain extraction was not good enough to remove the entire skull, as shown in Figure 3-7. Figure 3-7 - Example of a bad Skull Stripping an MRI image of the dataset. In addition, the intensity of the same tissue in an MRI image can vary even if images of the same patient were taken at different times with the same scanner. The dataset images were changed by the bias field, i.e. an unwanted low-frequency smooth signal that falsifies MRI images due to inhomogeneities in the magnetic fields of the MRI machine. It was corrected with the N4ITK method, a variant of the Nonparametric Nonuniform Intensity Normalization (N3) [87] [88]. The N4ITK method is publicly available in the Insight Toolkit of the National Institutes of Health. The method attempts to maximize the high frequency of tissue intensity distribution by iteratively searching for the smooth multiplicative field. The N4ITK method is an approximation to the B -spline algorithm, which attempts to minimize the sum of the squares of the residuals of the data points from the corresponding function values defined by the B-spline object, this is also referred as least squares fitting [88]. The changes in the histograms after application of the N4ITK method in a MRI image are shown in Figure 3-8, a maximization of the frequency component in the high frequency pixel value, intensity 0, can be seen.
CASE STUDY 1: SEGMENTATION STROKE IN MRI 32 Figure 3-8 - Histograms of an MRI image before and after the N4ITK method. The red arrow shows the maximization of the frequency of the high frequency pixel To ensure similar intensity and contrast scales in the tissue, it was adapted the Nyúl et. al method. The main idea of this method is to cut off the tails with high intensity, as they are usually associated with outliers. This was done by changing the image histograms to match a mean histogram based on certain landmarks obtained from the original histograms. There are two steps: a training step and a transformation step. In the training step, a template histogram with interesting landmarks is created by finding the average of the histograms in a reference population. After the training step, the original images intensities between two landmarks are changed by linear transformation into the corresponding learned landmarks, the transformation step [89]. The final step was to calculate the mean intensity value and standard deviation of the MRI’s to normalize the data using the Z-score statistical method, equation 17: 𝑍= 𝑥𝑖−𝜇𝑝 𝜎𝑝 ( 17 ) where 𝑥𝑖 denotes the raw pixel value, 𝜇𝑝 denote the mean of the voxels and 𝜎𝑝 denote the standard deviation [90].
CASE STUDY 1: SEGMENTATION STROKE IN MRI 33 An overview of the image pre-processing approach is illustrated in Figure 3-9. Figure 3-9 - Overview of the images pre-processing. 3.3.2 LABEL SELECTION The dataset I had no ground-truth, therefore a similar image of the dataset II was selected, and the respective ground-truth was used as ground-truth of all images of dataset I . This selection was made using Speeded-Up Robust Features (SURF) algorithm, which ranked the most similar LPBA40 images with a given image of the dataset I , Figure 3-10. An axial plane MRI slice was used to study the similarities. Figure 3-10 - The most similar images sorted by SURF. SURF procedure begins with the search for the orientation assignment. The Haar-wavelet responses in x and y directions for a circular neighbourhood of size 6s around an interest point are calculated. Once the Haar-wavelet responses are calculated, appropriate Gaussian weights centred on the point of interest are applied. The responses are represented as vectors in a space with horizontal response strength and
CASE STUDY 1: SEGMENTATION STROKE IN MRI 34 vertical response strength along the abscissa and the ordinate, respectively. The dominant orientation is estimated by calculating the sum of all responses within a sliding orientation window with an angle of 60 degrees. Within the window, the horizontal and vertical vectors are summed, creating a new vector. The longest created vector represents the orientation of the point of interest. Finally, using a constructed square area centred around the point of interest and the previously selected orientation, the descriptor vector is extracted. To find similar images, SURF compares the descriptors of both images [91] [92]. 3.3.3 BRAIN SEGMENTATION The main goal is to segment the MRI images of the brain into the different brain areas. A network based on the U-net was designed (Figure 2-8). By analysing the effects of strokes on different brain regions, four different brain areas have been defined for segmentation: brainstem, cerebellum right cerebral hemisphere and left cerebral hemisphere [93] [94] [95]. Table 3-2 summarizes how a stroke can affect these brain regions. Table 3-2 - Stroke consequences in different brain regions. Two experiments were tested, one using the dataset I and one using the dataset II as input to the model in the training phase. Both testes aimed to segment the images into background, brainstem, cerebellum, right and left cerebral hemisphere. Affected Brain Area Consequences of Stroke Brainstem Brainstem stroke interfere with some automatic function such as body temperature control, heart rate, loss of respiratory capacity, and in the worst case may even cause the death of the patient. Cerebellum Cerebellum is responsible for sufficient movement. Cerebellar strokes may affect nausea, headache and loss of motor coordination and balance. Cerebrum Cerebrum is responsible for higher intellectual functions and, if affected, can cause memory problems, for example. The cerebrum is divided into the right and left side, commonly referred to as hemispheres. Stroke in the right cerebral hemisphere causes visual problems, inability of spatial orientation and left-side paralysis. Stroke in the left cerebral hemisphere affects speech and comprehension skills, reading, writing, and learning skills, as well as right-sided paralysis.
CASE STUDY 1: SEGMENTATION STROKE IN MRI 35 In Experiment 1, dataset I was used to train the network and then segment the MRI images. The groundtruth selection was explained in section 3.3.2. In this experiment, two datasets were tested: the dataset I with each MRI image containing 181 slices, referred to as dataset I-181 , and with each MRI image containing 40 slices, referred to as dataset I-40 . In Experiment 2, the dataset II was used as input for training the model, and then the dataset I-181 was used for the test phase. Figure 3-11 presents a schematic representation of the datasets used in each experiment. Figure 3-11 - Overview of the dataset used in each experiment in the training phase. In both experiments, the effect of dropout and batch normalization layers on model performance was tested. As well as the impact of using an asymmetric loss function, which is the sum of WCE and GDL, instead of the DSC loss function. The output for both experiments would be the label of the brain areas for each input image.
CASE STUDY 1: SEGMENTATION STROKE IN MRI 36 3.4 RESULTS Experiment 1 As mentioned earlier, the input training in this experiment was the dataset I. All model approaches used an SGD optimizer and also a call-back to trigger an early stop when three consecutive epochs achieved the same loss result. Table 3-3 presents the parameters used in the various tests. Table 3-3 - Parameters used in the tests. Parameter Value Batch size 20 Learning rate 1x10-4 Learning rate decay 1x10-6 Momentum 0.9 Number of epochs 120 The models were initially trained with the dataset I-181 , containing 128,872 slices, of the size 208 x176. Using the mentioned split percentages, 77,468 slices were used for training, 25,702 for validation and 25,702 for testing. The achieved training results are shown in Table 3-4. Table 3-4 - Results using DSC loss function and the dataset I-181 . Proposed Method DSC Loss DSC Val. DSC Loss Val. DSC Original Network 0.1197803 0.9158488 0.3417317 0.8526722 Batch normalization layers 0.1425844 0.8574180 0.1424841 0.8575164 Dropout Layers 0.1425827 0.8574178 0.1424836 0.8575164 Both Layers 0.1425841 0.8574180 0.1424851 0.8575164 Then, the number of slices of each MRI image was reduced to 40 slices per image. Dataset I-40 contains a total of 28,480 slices (208 x176 dimensions), of which 17,120 slices are for training, 5,680 for validation and 5,680 for testing. The training results for all models’ approaches are given in Table 3-5.
4.1 STATE OF THE ART Chest X-rays are still among the most widely used clinical exams to diagnose or monitor chest diseases such as pneumonia, pulmonary edema or cardiomegaly. The availability of radiological equipment, a sensitive result, and the low cost promote the use. The interpretation by the radiologist, however, can be a challenge as it depends on his experience and a clear mind. Since the radiologist has to work intensively, these misdiagnoses due to exhaustion increases. There is also a lack of specialized physicians, mainly in the least developed areas [4]. For this reason, interest in the combination of image processing technology with medical imaging and DL methods has increased over the years [5]. The concept of Computer-Aided Detection (CAD) was first proposed in 1966 to improve the visualization and detection of microcalcifications using digital mammography. This has already been a challenging task at the time, as the characteristics such as size, shape or intensity of microcalcifications are extremely variable and are also localized in areas with dense parenchymal tissue [102]. Progressively more researchers are exploring the use of DL algorithms to design CAD for chest X-rays. However, these algorithms can handle different types of images (medical and non-medical). The DL systems showed good results in the categorization of findings, even in networks that were trained with non-medical images. Bar et. al, studied the use of a CNN pre-trained with a non-medical dataset, ImageNet dataset (a large database of a wider variety of objects designed for object recognition and image classification), to detect pleural effusion, cardiomegaly, and mediastinal enlargement when tested with chest X-rays. They achieved an AUC of 0.86 [6] [103]. Lakani et al. also studied the use of DNN architectures, namely AlexNet and GoogLeNet, pre-trained with the ImageNet dataset, to detect pulmonary tuberculosis on chest Key points: • In this section, the CheXpert dataset was used, containing 224,316 chest X-rays of 65,240 unique patients. • Deep Learning classification techniques were used to classify 5 chest diseases: Atelectasis, Cardiomegaly, Consolidation, Edema and Pleural Effusion. • The best performance was achieved with a CNN architecture whose first two convolution layers were initialized with weights from a VGGNet model pre-trained on ImageNet. The best approach achieved an AUC of 96.40% in the training phase.
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 44 X-rays, also obtained satisfactory results, an AUC of 0.99 [7]. The CNN networks have been extremely successful in providing DL approaches to healthcare, as they have been able to recognizing various diseases and use different types of medical images, for example, the detection of diabetic retinopathy in fundus photographs or skin cancer using digital photographs of skin lesions [17] [18]. Many of the developed approaches are focused on chest X-rays diseases and have been successful, for example, in the detection of tuberculosis or atelectasis [7] [8]. The creation of publicly available annotated medical image datasets has been a powerful mechanism for the development of DL diagnoses methods, as one of the main limitations is the small data. The public dataset used in this dissertation is the CheXpert (Chest eXpert) dataset, which contains 224,316 chest X-ray images of 65,240 unique patients. 4.2 MATERIALS Some of the major vital functions caused by the main breathing and circulatory organs are located on the chest. Chest diseases affect millions of people in the world. For example, it is estimated that 235 million people have asthma and more than 200 million people have Chronic Obstructive Pulmonary Disease (COPD) [104] [105]. In 1895, Wilhelm Conrad Röntgen discovered X-rays, which were truly revolutionary for medical diagnosis. There are now a variety of imaging techniques, such as MRI or CT, which are considered the “future” of diagnostic medicine. However, the chest radiographs do not appear to be replaced and are still the most common type of radiograph [106]. Certain hospitals continue to take chest X-rays in certain cases, for example, prior to surgery, as devices are available for performing chest X-rays, and they are more suitable for more sensitive results [107]. The medical importance of a chest X-ray and the complexity of the interpretation of chest images have led to the development of computer algorithms to support the radiologist [106]. 4.2.1 CHEXPERT DATASET The dataset used was the CheXpert (Chest eXpert) which contains 224,316 chest X-ray images of 65,240 patients. The images were collected from October 2002 at July 2017 at Stanford Hospital, along with medical reports from radiologists. The dataset contains the already separate train and validation data with 224,113 and 203 X-ray images, respectively, each with frontal and lateral data, Figure 4-1.
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 45 Figure 4-1 - Example of the dataset images. The label extraction was done in three steps: “Mention Extraction”, “Mention Classification” and “Mention Aggregation”. The first one, “Mention Extraction”, uses the section Impression of the radiologist medical reports to summarize the main findings [108]. The Impression is one of the most significant sections on the radiologist medical reports, a questionnaire made by University of Arizona College of Medicine in 1988 founded that nearly 43% of physicians only read this section if the medical report was longer than one page [109]. There, the professionals can summarize the clinical impression achieved by all image features, relevant clinical information and laboratory findings, and make conclusions and suggestions about the patient’s health [108] [110]. The second step, “Mention Classification” uses the synopses sentences on “Mention Extraction” and classifies the mentions as Positive if the observation showed evidence of a pathology; Negative if there are no pathological findings; and Uncertain , expressing uncertainty and ambiguity of the medical report. Finally, “Mention Aggregation” group all 14 labels, which consist of “No Finding”, “Support Devices” and 12 pathologies. For each of the 14 labels one of the following values can be assigned: • Positive , 1 , if it had at least one positive mention. • Negative , 0 , if it had at least one negative mention. • Uncertain , u , if it had not positive mentions and at least one uncertain mention. • Blank , if it had no mention on the observation. The label “No Finding” was positive when it didn´t have a disorder classified as Positive or Uncertain . Table 4-1 presents an example of an output from the labeller when used as input a sampled medical report.
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 46 Table 4-1 - An output from the labeller when it is given as input a sampled medical report. It extracts the mentions in the medical report (underline) and classifies the uncertainties (bolded) and the negations (italicized). Adapted from [108]. Medical Report findings Observation Labeller Output – unremarkable cardiomediastinal silhouette. – no lung lesion or atelectasis. – mild degenerative changes in the lumbar spine and old right rib fractures. – Diffuse reticular pattern, which can be seen with an atypical infection or chronic fibrotic change. No focal consolidation Atelectasis 0 Cardiomegaly Consolidation 0 Edema Enlarged cardiomediastinal silhouette 0 Fracture 1 Lung Lesion 0 Lung Opacity No Finding Pleural Effusion Pleural Other Pneumonia u Pneumothorax Support Devices In this work only 5 of the 14 labels were used: Atelectasis, Cardiomegaly, Consolidation, Edema, and Pleural Effusion. Each one was assigned as Positive, Negative, Uncertain . This is also the labelling used in the CheXpert Challenge, a competition that uses the CheXpert dataset for automated chest X-rays interpretation, which will be addressed in the section 0. 4.2.2 CHEST DISEASES Atelectasis Atelectasis is a lung disease that is associated with an oxygen deficiency or increased pulmonary vascular resistance. The tissue that suffers from the obstruction can cause fever, tachypnoea, wheezing, rhonchi, and chest pain. There are three main causes or contributors to development: lung tissue compression, alveolar air absorption, and impairment of surfactant function. In medical images, infections such as bronchiolitis, bronchitis, pneumonia, and tuberculosis as well as tumours, asthma and cystic fibrosis the presence of atelectasis is only visible if the affected area is large [111] [112].
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 47 To obtain an effective diagnosis of atelectasis, chest X-rays with anterior-posterior and lateral projections are used to determine the presence, size and the distribution of the disease, Figure 4-2. Chest X-rays can also reveal problems that distinguish atelectasis from a lobar consolidation [112]. Figure 4-2 - Chest X-rays using the antero-posterior and lateral projections document the presence and distribution of atelectasis. Adapted from [112]. Cardiomegaly Cardiac enlargement may indicate of multiple diseases, such as valvular heart disease, coronary artery disease, various cardiomyopathies, pericardial diseases, or even hypertrophy. Accordingly, the Cardiothoracic Ratio (CTR), calculated by dividing the Maximum Transverse Diameter of the Heart (MDH) by the Maximum Transverse Diameter (MTD) of the thorax on the X-ray film, is a significant clinical measure for the analysis of normality heart size. Figure 4-3 shows the MDH and MTD in a chest X-ray. If
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 48 the CTR is 50% implies cardiomegaly, the heart size is increased. When cardiomegaly is detected, the next diagnostic steps for the patient include physical examinations, medical and psychosocial history, 24- hour electrocardiogram monitoring, and blood and urine analysis [113] [114]. Figure 4-3 - Chest X-ray showing the MDH and MDT [114]. Pulmonary Consolidation Pulmonary consolidation occurs when a compressible area of the lung, normally filled with air, is filled with a fluid or solid. Consolidation results in difficulty in breathing, as the entry of air is a difficulty and interferes with normal lung function, removes polluted air and supplies new clean air, resulting in a lack of oxygen. The patient may show some symptoms such as pale skin, coughing up blood and chest pain. Lung consolidation may provide evidence of multiple diseases such as pneumonia, pulmonary edema, pulmonary haemorrhage, and lung cancer. The typical diagnostic exam is chest X-ray, where white areas corresponding to non-air filled areas and dark areas corresponding to the air-filled lungs are visible, Figure 4-4 [115] [116]. Figure 4-4 - Chest X-ray showing a large area of consolidation in the left lung [116].
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 49 Pulmonary Edema Normal lung function is important in maintaining ventilation and perfusion functions, supplying oxygen to the body, and then removing body-produced carbon dioxide. It is therefore necessary to ensure a balance between the filtered fluid originating from the pulmonary circulation and the unfiltered fluid taken up by the lymphatic system. If the fluid is filtered into the lungs faster than it can be removed from the lungs, there is an accumulation of fluid, named as pulmonary edema, Figure 4-5. The accumulation of fluid can be extremely hazardous due to impairments in lung gas exchange that is compromised in fluid-filled alveoli. This leads to breathing problems and the need for mechanical ventilation [116] [117]. Figure 4-5 - Frontal chest radiograph showing increased pressure edema due to heart failure [116]. Pleural Effusion Pleural effusion is indicative of a pathology that consists of the accumulation of fluid in the pleural space, showing an imbalance between the rate of production and the removal of pleural fluid. To ensure adequate treatment, the cause must be identified where heart failure, pneumonia, and malignant neoplasm are the most common causes. The typical diagnoses consist of an analysis of the patient´s medical history and a physical examination, followed by an X-ray of the chest. Chest X-rays are commonly used to diagnose pleural effusion. The amount of fluid is shown, and a white opacity appears on the image caused by the fluid, Figure 4-6. Examination characteristics may be similar to an exam showing lung consolidation. However, in pleural effusions, the white areas move because they refer to a fluid in a relatively open space [115] [118] [119].
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 50 Figure 4-6 - Chest X-ray showing a left-side pleural effusion [119]. 4.3 METHODS In this work, various experiments were performed to classify chest diseases. The computer used in this work allowed faster processing of all tests and approaches. Table 4-2 presents the computer specifications. Table 4-2 - Computer Specifications. Operative System Ubuntu 14.04 LTS (64 bit) CPU Intel Xeon E5-1650 RAM 64Gb Secondary Memory • 2 Disks of 2TB • 1 Disk of 512Gb • GPU – NVIDIA P6000 • Cuda Parallel-Processing Colors 3840 • GPU 24 GB GDDR5X • FP32 Performance 12 TFLOPS The tested neural networks were trained using the CheXpert dataset to detect five different chest disorders. Since the images are not the same size, all images were resized to 320 x320 pixels. The frontal and lateral X-ray views were processed separately, i.e. each network inputs are only from a specific view.
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 51 Two different chest classification experiments were studied. In Experiment 1, the network has 20 outputs, assuming each Disease-Value pair, e.g. Atelectasis-Blank , as a binary label. In Experiment 2, the network has 5 outputs corresponding to the chest diseases. In the first tests, only the frontal view was considered, since it contains more information than the lateral view. In the frontal view, both lungs are visible and there are more classes than lateral view. Figure 4-7 presents a schematic representation of the hot-coding outputs for the two experiments. Figure 4-7 - Representation of the hot encoding outputs for the two experiments, where 0 stands for absence and 1 for presence. The first approach outputs 20 classes (left) and the second approach outputs 5 classes (right).
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 52 4.3.1 EXPERIMENT 1 Data Analysis The use of the Disease-Value pair as a label resulted in 20 labels: 1. Atelectasis - blank 2. Atelectasis - Negative 3. Atelectasis - Positive 4. Atelectasis - Uncertain 5. Cardiomegaly - blank 6. Cardiomegaly - Negative 7. Cardiomegaly - Positive 8. Cardiomegaly - Uncertain 9. Consolidation - blank 10. Consolidation - Negative 11. Consolidation - Positive 12. Consolidation - Uncertain 13. Edema - blank 14. Edema - Negative 15. Edema - Positive 16. Edema - Uncertain 17. Pleural Effusion - blank 18. Pleural Effusion - Negative 19. Pleural Effusion - Positive 20. Pleural Effusion - Uncertain Figures Figure 4-8 and Figure 4-9 illustrates the distribution of cases for each class in terms of training and validation data for frontal and lateral views. Figure 4-8 – Distribution of cases for frontal and lateral views with the training data. Figure 4-9 - Distribution of cases for frontal and lateral views with the validation data.
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 59 To mitigate the problem of the unbalanced data, it was used an asymmetric loss function. The same Scikit Learn method used in Experiment 1 was used (equation 18). Table 4-6 Table 4-7 presents the weights obtained for each class. Table 4-6 - Weights using frontal data. Binary Mapping Atelectasis Cardiomegaly Consolidation Edema Pleural Effusion Mixed 0,8188 2,0861 3,7575 0,7933 0,5641 U-zeros 1,2965 1,6477 2,9679 0,7757 0,5011 U-ones 0,9231 1,8278 1,4721 0,8944 0,6360 Table 4-7 - Weights using lateral data. Binary Mapping Atelectasis Cardiomegaly Consolidation Edema Pleural Effusion Mixed 0,7441 1,5503 3,1136 1,4997 0,4943 U-zeros 1,1450 1,1580 2,3256 1,6282 0,4507 U-ones 0,8700 1,3118 1,2696 1,7534 0,5779 4.3.3 CHEXPERT CHALLENGE The best performed model was submitted to the CheXpert Challenge. In order to participate in the challenge, an executable code must be submitted to CodaLab, which is executed with a non-public readable test set. In this way, the proposed model is officially evaluated, and a score is given. CodaLab has two main concepts: bundles and worksheets. On the one hand, bundles are files/directories that represent the code, data and results of an experimental pipeline. They can be created when the user does upload of the bundles or when the user creates run bundles , executing shell commands. The run bundles require an indication of a set of dependencies and an arbitrary shell command, executed in a Docker container. On the other hand, worksheets allow the user to organize and present an experimental pipeline. They can be used as a lab notebook, a tutorial or executable paper. They contain references to bundles and are written in a custom markdown language [126] [127]. The submission is made in different steps:
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 60 Step 1 - Creation of a CodaLab Worksheet: Creation and naming of the used Worksheet. Figure 4-14 - Creation of the CodaLab Worksheet. Step 2 - Copy validation data: Copy a dummy validation set (images and the corresponding CSV label file) to the worksheet in order to evaluate the model and verify if it works. Figure 4-15 - Commands for copying the validation data and the corresponding bundles. Step 3 - Upload the code: Upload the folder containing the predict program. Figure 4-16 - Upload the source code and the corresponding bundle. Step 4 - Run the trained model on the validation set: Execute the program that generates the predictions to ensure that the code generates predictions on the dummy validation set. Sufficient memory must be requested with the –request-memory command. Figure 4-17 - Command for executing the code and the respective bundle. Step 5 - Submission: The final step is submitting the code with a description that identifies the submission to the leaderboard and add the chexpert-submit flag to mark the bundle as ready to submit. Lastly, an email will be sent to jirvin[email protected] containing a link to the predictions- {MODEL NAME} bundle, with the MODEL NAME in the subject or body. Figure 4-18 - Final prediction bundle.
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 61 CheXpert provides a high- and low-resolution dataset. This study used the low-resolution dataset, which has a smaller image size. The test images on CodaLab, however, have a high resolution, so that an adjustment of the input size was required. Therefore, the high-resolution images had to be converted to a lower resolution and CodaLab provides the code. The code uses the OpenCV package to resize the images, but this package is not installed. The CodaLab performs the evaluation using Python 2.7, which did not permit the installation of the OpenCV package, even if it was attempted to use the oldest versions of the package that are documented as compatible with Python 2.7. To fix this, the code was changed and used the Scikit-image instead of the OpenCV package. At this time, no AUC score of the submitted model was received. 4.4 RESULTS Both experiments used an SGD optimizer and a call-back to trigger an early stop when three consecutive epochs achieved the same loss result. Table 3-8 presents the parameters used in the various tests. Table 4-8 - Parameters used in the tests. Parameter Value Batch size 22 Learning rate 1x10-3 Learning rate decay 1x10-6 Momentum 0.9 Number of epochs 120
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 62 4.4.1 EXPERIMENT 1 The results of testing various loss functions are shown in Table 4-9. The Focal Tversky loss was tested using two different parameters sets. Table 4-9 - Loss and accuracy values obtained by the various loss functions. Loss Function Loss Accuracy Categorical Cross-entropy 8,0575 0,2458 Cohen´s Kappa 1,0867 0,0266 F1-score loss 0,9003 0,1283 Tversky Loss 0,8945 0,1587 Focal Tversky = 0.7000 = 0.3000 = 0.7500 0,7650 0,1370 Focal Tversky = 0.7000 = 0.3000 = 2.7500 0,3871 0,1469 Jaccard Index 2,0941 0,1398 The best accuracy values were obtained with the Categorical Cross-entropy loss function and achieved an accuracy of over 24.58%. However, all the metrics obtained were unsatisfactory, so this approach was rejected, and a new experiment was performed, Experiment 2. 4.4.2 EXPERIMENT 2 All tests used the Categorical Cross-entropy loss function. The results obtained by training the network with frontal data and Mixed approach are given in Table 4-10, where ACC stands for accuracy and Diff stands for the subtraction of the mean of the AUC scores obtained in this study by the mean of the AUC scores published in the CheXpert paper. Table 4-10 - Results using frontal images and the Mixed approach. Binary Mapping Model Loss AUC ACC Diff Mixed Model 1 0,8805 0,8573 0,7745 0,2180 Model 2 1,2395 0,9093 0,6879 0,1860 Model 3 1,0813 0,9640 0,6949 0,1750 Model 4 1,0818 0,9164 0,7308 0,2000 When analysing the AUC score, Model 3 performed best followed by Model 4. For this reason, these two models were tested considering the U-zeros and the U-ones approaches, Table 4-11.
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 63 Table 4-11 - Results using frontal images and the U-zeros / U-ones approach. Binary Mapping Model Loss AUC ACC Diff U-zeros Model 3 0,8467 0,9590 0,7546 0,2110 Model 4 0,9643 0,9112 0,7474 0,2050 U-ones Model 3 1,4102 0,9371 0,6521 0,1940 Model 4 1,6568 0,8946 0,6332 0,1820 It can be seen from Table 4-11 that a better AUC value was obtained for Model 3 using the U-zeros approach. The results of training with the Leaky ReLu, using =0.3, and with frontal data are shown in Table 4-12. The Mixed approach was considered as it performed best in the previous tests. Table 4-12 - Results obtained using Leaky ReLU activation function and frontal data. Binary Mapping Model Loss AUC ACC Diff Mixed Model 3 1,1248 0,9558 0,6908 0,2170 Model 4 1,0821 0,9561 0,6960 0,1810 The results obtained when testing the different binary mapping approaches using Model 3 and Model 4 with lateral images are shown in Table 4-13. Since the best overall performance in frontal images was achieved with ReLU function, it was also used for the lateral images. Table 4-13 - Results obtained using ReLU function and lateral images. Binary Mapping Model Loss AUC ACC Diff Mixed Model 3 0,7808 0,9684 0,7645 0,0656 Model 4 0,9033 0,8737 0,7738 0,1100 U-zeros Model 3 0,6080 0,9378 0,8157 0,1290 Model 4 1,8714 0,7434 0,4125 0,2470 U-ones Model 3 1,0657 0,9202 0,7229 0,0656 Model 4 1,4285 0,7607 0,6963 0,0766 Table 4-14 presents these and the CheXpert paper AUC results for each class, when predicted using the validation data while considering the lateral and frontal views. For our results Model 3 was used.
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 64 Table 4-14 – Predicted results with validation data. Classes AUC CheXpert AUC Diff Atelectasis 0.5761 0.8580 0.2819 Cardiomegaly 0.7393 0.8540 0.1147 Consolidation 0.7636 0.9390 0.1754 Edema 0.7860 0.9410 0.1550 Pleural Effusion 0.8495 0.9360 0.08651 Average: 0.7429 Average: 0.9056 0.1627 4.5 DISCUSSION Experiment 1 In Experiment 1, all results were unsatisfactory, mainly due to the extreme unbalance of the classes. The best performance was achieved with Categorical Cross-entropy as the loss function which reached a high loss value of 8.0575 and an accuracy of 0.2458. Thus, this approach was rejected, and a new experiment was performed, Experiment 2. Experiment 2 Depthwise Separable Convolutions, used in Model 2, are efficient compared to the standard convolution layers, used in Model 1. These layers apply a single filter for each input channel and then creates a linear combination of the output to generate new features to the next layer and achieved a better AUC. In addition, the computational cost decreased as expected theoretically, since the number of learning parameters dropped from 97,225,076 to 97,167,909. Figure 4-19 illustrates the obtained results. Figure 4-19 - Best AUC obtained during the training with frontal data.
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 65 It can be seen from Figure 4-20, that in Model 3, using the Leaky ReLU function instead of the ReLU function had almost no effect on the results. Since with ReLU function significant neurons were inactivated if the entry was negative, this supports that the non-shared information blocked by ReLU function was irrelevant to the learning performance of Model 3. However, Model 4 performed better with Leaky ReLU, supporting that the blocked information was relevant. When using the Leaky ReLU, this information was passed to the next layers and the learning capacity of the network improved. However, the Leaky ReLU has a higher computational cost than the ReLU function. Figure 4-20 - AUC percentage obtained during the training with frontal data. Model 3 performed better when compared with Model 4, as can be seen from Figure 4-21. Figure 4-21 - Best AUC obtained during the training with frontal data. Compared to the various binary mapping approaches, the U-one was the worst in both models and the Mixed was the best. The different approaches regard different instances as Positive or Negative , which has different effects on the number of samples considered to the different classes. However, all binary mapping approaches lead to unbalanced data, Figure 4-22.
CASE STUDY 2: CHEST X-RAY CLASSIFICATION 66 Figure 4-22 –Number of cases of each class for the different binary mapping approaches. U-ones achieved the worst AUC scores, indicating that a bigger dataset does not always performs better than a smaller one. Assuming the Uncertain instances as Positive can result in providing false positive information to the network, and consequently decrease model performance. In medical context, it may be more dangerous to use U-zeros since this will deliver false negative information to the network. Considering a sick person as healthy is more dangerous than the opposite. For the lateral view images, just as for the frontal view ones, Model 3 and the Mixed approach provided the best results. The lateral view images achieved a better AUC than the frontal view, which was not expected since there were fewer samples. Also, the lateral view of X-rays did not allow as good visualization as the frontal view once they show a smaller area of the chest and the lungs are overlapping. Table 4-15 – Average of the best overall results for training and validation. *The same average CheXpert AUC value was used for train and validation because the corresponding values were not specified. Phase Average AUC Average CheXpert AUC Diff Train 0.9662 0.9056 +0.0610 Test 0.7429 -0.1627 Comparing our training results with CheXpert paper yielded nearly the same results, but the validation results are quite divergent (Table 4-15). On October 16, 2019, the final position in the leader board of CheXpert Challenge achieved an AUC of 72.70% and our best results achieved 74.29%. The results of the CheXpert paper were used as benchmark. It was not the goal of this work to make an absolute comparation of our results with their results, but to compare how different DL techniques perform in classifying chest X-rays.
CONCLUSIONS 68 5 CONCLUSIONS
REFERENCES 75 [35] N. Ketkar, “Convolutional Neural Networks,” in Deep Learning with Python , Berkeley, CA, Apress, 2017, pp. 63-78. [36] B. Xu, N. Wang, T. Chen and M. Li, “Empirical evaluation of rectified activations in convolutional network,” arXiv preprint arXiv:1505.00853, 2015. [37] J. Cohen, “A coefficient of agreement for nominal scales,” Educational and Psychological Measure, vol. 20, pp. 37-46, 1960. [38] J. de la Torre, D. Puig and A. Valls, “Weighted kappa loss function for multi-class classification of ordinal data in deep learning,” Pattern Recognition Letters, pp. 3-4, 2017. [39] T. Lin, P. Goyal, R. Girshick, H. Kaiming and P. Dollar, “Focal Loss for Dense Object Detection,” IEEE International Conference on Computer Vision (ICCV), pp. 2999-3007, 2017. [40] K. Babalola, B. Patenaude, P. Aljabar, J. Schnabel, D. Kennedy, W. Crum, S. Smith, T. Cootes, M. Jenkinson and D. Rueckert, “Comparison and evaluation of segmentation techniques for subcortical structures in brain MRI,” Med Image Comput Comput Assist Interv, vol. 11, pp. 409- 416, 2008. [41] C. Sudre, W. Li, T. Vercauteren, S. Ourselin and M. J. Cardoso, “Generalised Dice overlap as a deep learning loss function for highly unbalanced segmentations,” in Third International Workshop, DLMIA 2017, and 7th International Workshop, ML-CDS 2017 , Canada, 2017. [42] H. Huang, H. Xu, X. Wang and W. Silamu, “Maximum F1-Score Discriminative Training Criterion for Automatic Mispronunciation Detection,” IEEE/ACM Transactions on Audio, Speech, and Language Processing, vol. 23, pp. 787-797, 2015. [43] J. Havil, Gamma: Exploring Euler's Constant, New Jersey: Princeton University Press, 2009, p. 120. [44] Y. Yuan, M. Chao and Y.-C. Lo, “Automatic Skin Lesion Segmentation Using Deep Fully Convolutional Networks with Jaccard Distance,” IEEE Transactions on Medical Imaging, vol. 36, pp. 1876-1885, 2017. [45] N. Neverova, C. Wolf, G. Taylor and F. Nebout, “Multi-scale Deep Learning for Gesture Detection and Localization,” in Computer Vision - ECCV 2014 Workshops , 2015. [46] R. Shi, K. Ngan and S. Li, “Jaccard index compensation for object segmentation evaluation,” in IEEE International Conference on Image Processing , Paris, 2014. [47] J. Hanley and B. McNeil, “The meaning and use of the area under a receiver operating characteristic (ROC) curve,” Radiology, vol. 143, pp. 29-36, 1982. [48] P. Zhao, S. Hoi, R. Jin and T. Yang, “Online AUC Maximization,” in Proceedings of the 28th International Conference on Machine Learning ICML 2011 , Bellevue, WA, 2011. [49] C. Parikh and H. Philbrook, “Chapter 2 - Statistical Considerations in Analysis and Interpretation of Biomarker Studies,” in Biomarkers of Kidney Disease , C. Edelstein, Ed., Academic Press, 2011, pp. 25-37. [50] S. Jimenez, C. Becerra and A. Gelbukh, “SOFTCARDINALITY-CORE: Improving Text Overlap with Distributional Measures for Semantic Textual Similarity,” in Second Joint Conference on Lexical and Computational Semantics , Georgia, 2013. [51] V. Cross, “Tversky's Parameterized Similarity Ratio Model: A Basis for Semantic Relatedness,” in Annual Meeting of the North American Fuzzy Information Processing Society , 2006. [52] N. Abraham and N. Khan, “A Novel Focal Tversky loss function with improved Attention U-Net for lesion segmentation,” in IEEE International Symposium on Biomedical Imaging (ISBI) , 2019. [53] A. Gibson and J. Patterson, Deep Learning: A Practitioner's Approach, O´reilly, 2017.
REFERENCES 76 [54] S. Ren, K. He, R. Girshick and J. Sun, “Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks,” IEEE Trans Pattern Anal Mach Intell, vol. 39, pp. 1137-1149, Jun 2017. [55] J. Long, E. Shelhamer and T. Darrell, “Fully Convolutional Networks for Semantic Segmentation,” IEEE Trans Pattern Anal Mach Intell, vol. 39, pp. 640-651, Apr 2017. [56] K. Simonyan and A. Zisserman, “Very Deep Convolutional Networks for Large-Scale Image Recognition,” ICLR, vol. 6, 10 Apr 2015. [57] H. Hu, R. Peng, C.-K. Tang and Y.-W. Tai, “Network trimming: A data-driven neuron pruning approach towards efficient deep architectures,” arXiv preprint arXiv:1607.03250, 2016. [58] S. Bittel, M. Twichmann, V. Kaiser and M. Thoma, “Pixel-wise Segmentation of Street with Neural Networks,” 2015. [59] O. Ronneberger, P. Fischer and T. Brox, “U-Net: Convolutional Networks for Biomedical Image Segmentation,” Medical Image Computing and Computer-Assisted Intervention – MICCAI, p. 234– 24, 2015. [60] C.-F. Wang, “A Basic Introduction to Separable Convolutions,” 14 Aug 2018. [Online]. Available: https://towardsdatascience.com/a-basic-introduction-to-separable-convolutions-b99ec3102728. [Accessed 2 Jul 2019]. [61] “Convolutional Layers - SeparableConv2D,” [Online]. Available: https://keras.io/layers/convolutional/. [Accessed 2 Jul 2019]. [62] A. Işın, C. Direkoğlu and M. Şah, “Review of MRI-based brain tumor image segmentation using deep learning methods,” Procedia Computer Science, vol. 102, pp. 317-324, 2016. [63] B. De Haan, P. Clas, H. Juenger, M. Wilke and H. Karnath, “Fast semi-automated lesion demarcation in stroke,” NeuroImage: Clinical, vol. 9, pp. 69-74, 2015. [64] O. Berkhemer, A. Lugt, C. Majoie, H. Marquering, W. Niessen, E. Santos and Zwam Wim, “Development and validation of intracranial thrombus segmentation on CT angiography in patients with acute ischemic stroke,” PLoS ONE, vol. 9, Jul 2014. [65] B. Hewawithana, G. Randike and Y. Roshan, “Comparison of Standard Image Segmentation Methods for Segmentation of Brain Tumors from 2D MR Images,” in Industrial and Information Systems (ICIIS) , 2009. [66] J. Cho, K. Lee, E. Shin, G. Choy and S. Do, “How much data is needed to train a medical image deep learning system to achieve necessary high accuracy?,” in ICLR , 2016. [67] A. Krizhevsky, I. Sutskever and G. Hinton, “Imagenet classification with deep convolutional neural networks,” in Advances in neural information processing systems , 2012, pp. 1097-1105. [68] D. Ciresan, A. Giusti, L. M. Gambardella and J. Schmidhuber, “Deep neural networks segment neuronal membranes in electron microscopy images,” in Advances in neural information processing systems , 2012, pp. 2843-2851. [69] Y. LeCun, B. Boser, J. Denker, D. Henderson, R. E. Howard, W. Hubbard and L. D. Jackel, “Backpropagation applied to handwritten zip code recognition,” Neural computation, vol. 1, pp. 541-551, 1989. [70] A. Krizhevsky, I. Sutskever and G. E. Hinton, “Imagenet classification with deep convolutional neural networks,” in Advances in neural information processing systems , 2012, pp. 1097-1105. [71] UNI Freiburg, “Our U-net wins two Challenges at ISBI 2015,” Apr 2015. [Online]. Available: https://lmb.informatik.uni-freiburg.de/people/ronneber/isbi2015/. [Accessed 31 Jan 2019].
REFERENCES 77 [72] G. Litjens, T. Kooi, B. E. Bejnordi, A. A. A. Setio, F. Ciompi, M. Ghafoorian, J. A. Van Der Laak, B. Van Ginneken and C. Sánchez, “A survey on deep learning in medical image analysis,” Medical image analysis, vol. 42, pp. 66-88, 2017. [73] R. Bonita, S. Mendis, T. Truelsen, J. Bogousslavsky, J. Toole and F. Yatsu, “The global stroke initiative,” Lancet Neurol, vol. 7, pp. 391-3, Jul 2004. [74] J. Tiller, “Post-stroke sepression,” Psychopharmacology, vol. 106, pp. S130-S133, 1992. [75] L. Aggarwal and N. Sharma, “Automated medical image segmentation techniques,” Journal of Medical Physics, vol. 35, 2010. [76] S. Dixon, “Diagnostic Imaging Dataset Statistical Release,” NHS England Media, England, 2019. [77] J. Bernhardt, G. Kwakkel and P. Langhorne, “Stroke rehabilitation,” The Lancet, vol. 377, pp. 1693-1702, 2011. [78] D. Pham, J. Prince and C. Xu, “Current Methods in Medical Image Segmentation,” Annual Review of Biomedical Engineering, vol. 2, 2000. [79] J. v. Swieten, J. V. D. Hout, B. V. Ketel, A. Hijdra, J. Wokke and J. V. Gijn, “Periventricular lesions in the white matter on magnetic resonance imaging in the elderly: a morphometric correlation with arteriolosclerosis and dilated perivascular spaces,” Brain, vol. 114, pp. 761-774, 1991. [80] F. De Leeuw, J. De Groot, E. Achten, M. Oudkerk, L. Ramos, R. Heijboer, A. Hofman, J. Jolles, J. Van Gijn and M. Breteler, “Prevalence of cerebral white matter lesions in elderly people: a population based magnetic resonance imaging study. The Rotterdam Scan Study,” Journal of Neurology, Neurosurgery & Psychiatry, vol. 70, pp. 9-14, 2001. [81] D. Stéphanie and H. Markus, “The clinical importance of white matter hyperintensities on brain magnetic resonance imaging: systematic review and meta-analysis,” Bmj, vol. 341, p. c3666, 2010. [82] A.-H. Cho, H.-R. Kim, W. Kim and D. W. Yang, “White matter hyperintensity in ischemic stroke patients: it may regress over time,” Journal of stroke, vol. 17, p. 60, 2015. [83] Institut Guttmann, “Hospital Especializado en Neurorrehabilitación,” 2016. [Online]. Available: https://www.guttmann.com/es/hospital-especializado-neurorrehabilitacion. [Accessed 10 Oct 2018]. [84] Grupo de Bioingeniería y Telemedicina, “Líneas de Investigación,” 2016. [Online]. Available: http://www.gbt.tfo.upm.es. [Accessed 10 Oct 2018]. [85] D. W. Shattuck, M. Mirza, V. Adisetiyo, C. Hojatkashani, G. Salamon, K. L. Narr, R. A. Poldrack, R. M. Bilder and A. W. Toga, “Construction of a 3D probabilistic atlas of human cortical structures,” Neuroimage, vol. 39, pp. 1064-1080, 2008. [86] S. M. Smith, M. Jenkinson, M. Woolrich, C. Beckmann, T. Behrens, H. Johansen-berg, P. Bannister, M. Luca, I. Drobnjak, D. Flitney, R. Niazy, J. Saunders, J. Vickers, Y. Zhang and N. Stefano, “Advances in functional and structural MR image analysis and implementation as FSL,” NeuroImage, vol. 23, pp. 208-219, 2004. [87] C. T. Larsen, J. E. Iglesias and K. Van Leemput, “N3 bias field correction explained as a Bayesian modeling method,” in Bayesian and graphical models for biomedical imaging , Springer, 2014, pp. 1-12. [88] N. Tustison, B. Avants, P. Cook, Y. Zheng, A. Egan, P. Yushkevich and J. Gee, “N4ITK: improved N3 bias correction,” IEEE transactions on medical imaging, vol. 29, pp. 1310-320, 2010.
REFERENCES 78 [89] L. Nyúl, J. Udupa and X. Zhang, “New Variants of a Method of MRI Scale Standardization,” IEEE Transactions on medical imaging, vol. 19, pp. 143-150, 2 Feb 2000. [90] C. Murie, C. Barette, L. Lafanechère and R. Nadon, “Control-Plate Regression (CPR) Normalization for High-Throughput Screens with Many Active Features,” Journal of Biomolecular Screening, vol. 19, pp. 661-671, 2013. [91] OpenCV, “Introduction to SURF (Speeded-Up Robust Features),” [Online]. Available: https://docs.opencv.org/3.0- beta/doc/py_tutorials/py_feature2d/py_surf_intro/py_surf_intro.html. [Accessed 1 Fev 2019]. [92] H. Bay, L. Gool and T. Tuytelaars, “SURF: Speeded Up Robust Features,” in European Conference on Computer Vision , 2006. [93] UW Health: University of Wisconsin Hospitals and Clinics, “Brain Lobes and Effects of Stroke,” 2016. [Online]. Available: https://www.uwhealth.org/healthfacts/stroke/5593.pdf. [Accessed 13 Jan 2019]. [94] Johns Hopkins Medicine, “Health Library.Effects of Stroke,” [Online]. Available: https://www.hopkinsmedicine.org/healthlibrary/conditions/nervous_system_disorders/effects_ of_stroke_brain_attack_85,P00777. [Accessed 13 Jan 2019]. [95] The Internet Stroke Center, “Anatomy of the Brain,” [Online]. Available: http://www.strokecenter.org/professionals/brain-anatomy/anatomy-of-the-brain/. [Accessed 13 Jan 2019]. [96] S. Hershey and e. al., “CNN architectures for large-scale audio classification,” in 2017 ieee international conference on acoustics, speech and signal processing (icassp) , 2017. [97] H. Gouk, E. Frank, B. Pfahringer and M. Cree, “Regularisation of neural networks by enforcing lipschitz continuity,” arXiv preprint arXiv:1804.04368, 2018. [98] N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever and R. Salakhutdinov, “Dropout: a simple way to prevent neural networks from overfitting,” The journal of machine learning research, vol. 15, pp. 1929-1958, 2014. [99] J. Y. Yam and T. W. Chow, “A weight initialization method for improving training speed in feedforward neural network,” Neurocomputing, vol. 30, pp. 219-232, 2000. [100] Towards Data Science, “Weight Initialization in Neural Networks: A Journey From the Basics to Kaiming,” 3 April 2019. [Online]. Available: https://towardsdatascience.com/weight-initialization- in-neural-networks-a-journey-from-the-basics-to-kaiming-954fb9b47c79. [Accessed 12 September 2019]. [101] Keras Documentation, “Initializers,” [Online]. Available: https://keras.io/initializers/. [Accessed 12 September 2019]. [102] W. Quian, P. Clark, M. Kallergi, R. Clark and B. Zheng, “Computer Assisted Diagnosis for Digital Mammography,” IEEE Engineering in Medicine and Biology Magazine, vol. 14, pp. 561-569, 1995. [103] ImageNet, “Large Scale Visual Recognition Challenge (ILSVRC),” [Online]. Available: http://www.image-net.org/challenges/LSVRC/. [Accessed 18 April 2019]. [104] World Health Organization, “Chronic respiratory diseases: Asthma,” [Online]. Available: https://www.who.int/respiratory/asthma/en/. [Accessed 16 abril 2019]. [105] World Health Organization, “Chronic respiratory diseases: Chronic obstructive pulmonary disease (COPD),” [Online]. Available: https://www.who.int/respiratory/copd/en/. [Accessed 16 abril 2019].
REFERENCES 79 [106] B. Ginneken, B. Romeny and M. Viergever, “Computer-aided diagnosis in chest radiography: a survey,” IEEE Transactions on Medical Imaging, vol. 20, pp. 1228 - 1241, December 2001. [107] Y. Li, L. Yan, S. Cai, P. Wang, H. Zhuang and H. Yu, “The prevalence and under-diagnosis of vertebral fractures on chest radiograph,” MC Musculoskeletal Disorders, vol. 19, p. 235, July 2018. [108] J. Irvin, P. Rajpurkar, M. Ko, Y. Yu, S. Ciurea-Ilcus, C. Chute, H. Marklund, B. Haghgoo, R. Ball, K. Shpanskaya, J. Seekins, D. Mong, S. Halabi, J. Sandberg, R. Jones, D. Larson, C. Langlotz, B. Patel, M. Lungren and A. Ng, “CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison,” Association for the Advancement of Artificial Intelligence, 21 Jan 2019. [109] N. Clinger, T. Hunter and B. Hillman, “Radiology reporting: attitudes of referring physicians,” in RSNA 1988 annual meeting , 1988. [110] European Society of Radiology (ESR), “Good practice for radiological reporting. Guidelines from the European Society of Radiology (ESR),” Insights Imaging, 2011. [111] M. Duggan and B. Kavanagh, “Pulmonary Atelectasis: A Pathogenic Perioperative Entity,” Anesthesiology, vol. 102, p. 838 –54, 2005. [112] D. Peroni and A. Boner, “Atelectasis: mechanisms, diagnosis and management,” in Paediatric Respiratory Reviews , vol. 1, 2000, pp. 209-306. [113] W. Frishman, J. Nadelmann, W. Ooi, S. Greenberg, M. Heiman, S. Kahn, H. Guzik, E. Lazar and M. Aronson, “Cardiomegaly on chest x-ray: Prognostic implications from a ten-year cohort study of elderly subjects: A report from the Bronx Longitudinal Aging Study,” American Heart Journal, vol. 124, p. 1026–1030, 1992. [114] C. Becker, J. Nettleton, H. Meyers, W. Sweeney and M. Nice, “Digital Computer Determination of a Medical Diagnostic Index Directly From Chest X-Ray Images,” IEEE Transactions on Bio-Medical Engineering, vol. 11, p. 67–72, 1964. [115] N. Moyer and J. Marcin, “Lung Consolidation: What It Is and How It's Treated,” 22 January 2018. [Online]. Available: https://www.healthline.com/health/lung-consolidation. [Accessed 17 June 2019]. [116] M. Matthay and J. Murray, “62 - Pulmonary Edema,” in Murray and Nadel's Textbook of Respiratory Medicine (Sixth Edition) , W.B. Saunders, 2016, pp. 1096-1117e-.5. [117] B. Massie, “58 - Heart Failure: Pathophysiology and Diagnosis,” in Goldman's Cecil Medicine (Twenty Fourth Edition) , vol. 1, W. B. Saunders, 2012, pp. 295-303. [118] V. Karkhanis and J. Joshi, “Pleural effusion: diagnosis, treatment, and management,” Dove Press journal, pp. 31-39, 22 June 2012. [119] E. McGrath and P. Anderson, “Diagnosis of Pleural Effusion: A Systematic Approach,” American Journal od Critical Care, vol. 20, pp. 119-121, March 2011. [120] V. Vanhoucke, “Learning visual representations at scale,” in ICLR , 2014. [121] F. Chollet, “Xception: Deep Learning With Depthwise Separable Convolutions,” in The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) , 2017. [122] A. G. Howard, M. Zhu, B. Chen, D. Kalenichenko, W. Wang, T. Weyand, M. Andreetto and H. Adam, “Mobilenets: Efficient convolutional neural networks for mobile vision applications,” arXiv preprint arXiv:1704.04861, 2017.
REFERENCES 80 [123] A. Nain, “Beating everything with Depthwise Convolution,” 6 May 2018. [Online]. Available: https://www.kaggle.com/aakashnain/beating-everything-with-depthwise-convolution. [Accessed 2 Jul 2019]. [124] C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens and Z. Wojna, “Rethinking the Inception Architecture for Computer Vision,” The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818-2826, 2016. [125] F. Schroff, D. Kalenichenko and J. Philbin, “FaceNet: A Unified Embedding for Face Recognition and Clustering,” in The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) , 2015. [126] P. Liang, “CodaLab Worksheets,” CodaLab, 14 Mar 2019. [Online]. Available: https://github.com/codalab/codalab-worksheets/wiki. [Accessed 2 Jun 2019]. [127] CodaLab, “CheXpert Submission Tutorial,” CodaLab, 14 Mar 2019. [Online]. Available: https://worksheets.codalab.org/worksheets/0x693b0063ee504702b21f94ffb2d99c6d/. [Accessed 5 Jun 2019].