Full text
University of Minho School of Engineering Alícia Soares Oliveira Federated Learning-based Artifact Correction in Brain MRI scans in HPC environments October, 2024 Federated Learning-based Artifact Correction in Brain MRI scans in HPC environments Alícia Oliveira UMinho |2024
ii
University of Minho School of Engineering Alícia Soares Oliveira Federated Learning-based Artifact Correction in Brain MRI scans in HPC environments Master Dissertation Master in Biomedical Engineering Specialization in Medical Informatics Work developed under the supervision of: Professor António Luís Pinto de Sousa Doctor Cláudia Vanessa Martins Brito Beatriz Pedrosa Cepa (Research Center Supervisor) October, 2024
COPYRIGHT AND TERMS OF USE OF THIS WORK BY A THIRD PARTY This is academic work that can be used by third parties as long as internationally accepted rules and good practices regarding copyright and related rights are respected. Accordingly, this work may be used under the license provided below. If the user needs permission to make use of the work under conditions not provided for in the indicated licensing, they should contact the author through the RepositoriUM of University of Minho. License granted to the users of this work Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en ii
Acknowledgements This work is financed by National Funds through the Portuguese funding agency, FCT - Fundação para a Ciência e a Tecnologia, within project LA/P/0063/2020 (DOI 10.54499/LA/P/0063/2020). Completing this dissertation would not have been possible without the support, guidance, and encouragement of many people, to whom I am profoundly grateful. Above all, I sincerely thank my supervisor, Professor António Luís Pinto de Sousa, who has been present at every moment of this journey. His broad and strong competence, constructive criticism, and continuous motivation about this work have been fundamental and crucial to the success of this research. His ability to question my thinking impelled me to pursue excellence in every aspect of this work. So I’m grateful to him. I am equally indebted to my co-supervisors, Cláudia Brito and Beatriz Cepa, whose competencies, thoroughness regarding details, and astuteness have formed the axis on which my dissertation was based. The patience, the constant availability to provide feedback, and the constructive suggestions improved this work and added so much to my personal and professional growth. I would also like to express my gratitude to the HASLab team. Their spirit of collaboration and dynamic research environment served as examples and motivation throughout my stay in the lab. The discussions, insights, and assistance of all my colleagues have been priceless, providing me with a ripe environment to grow as a researcher and person. I am immensely grateful to my parents for their unmatched support. Their unconditional love, patience, and trust in my abilities have been the solid foundation from which I have journeyed thus far. They have supported me in every conceivable way, strengthening and encouraging me to persevere, even when things seem particularly difficult. None of this would have been possible without their constant emotional and moral support. 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. , (Place) (Date) (Alícia Soares Oliveira) iv Braga 22 de outubro de 2024 Assinado por: Alícia Soares Oliveira Num. de Identificação: 14921445
Resumo Correção de Artefactos baseada na Aprendizagem Federada em exames de RM do cérebro em ambientes de Computação de Alto Desempenho A Ressonância Magnética (RM) tornou-se uma ferramenta imprescindível no diagnóstico médico, oferecendo uma visão profunda das complexidades do corpo humano. No entanto, a presença de artefactos, provenientes de várias fontes, como falhas de hardware , ou fenómenos fisiológicos, coloca desafios à qualidade da imagem. As anomalias relacionadas com o movimento, aliasing , suscetibilidade magnética e ruído destacam-se entre estes artefactos, exigindo esforços de correção específicos, e a integração de modelos de Aprendizagem Profunda apresenta uma via promissora para lidar com estes artefactos, visando não só uma melhor qualidade da imagem, mas também melhores resultados de diagnóstico. O processamento de imagens médicas depara-se com uma mudança de paradigma com o aparecimento da Computação de Alto Desempenho. O seu poder computacional revela-se fundamental no tratamento de conjuntos de dados extensos, especialmente no contexto do crescente volume e complexidade dos dados médicos. A integração de Aprendizagem Federada surge como uma abordagem complementar, que permite o treino de modelos de Aprendizagem Profunda diretamente nos dispositivos onde os dados são gerados, sem a necessidade de os transferir para um servidor central. Tal permite preservar a privacidade dos dados dos pacientes e aproveitar a capacidade de processamento distribuído. Este projeto apresenta o MOANA um sistema que explora a interação entre os algoritmos de Aprendizagem Profunda, a paralelização da Computação de Alto Desempenho e a incorporação de Aprendizagem Federada para formular um modelo para a correção de artefactos, que permita corrigir um maior volume de dados em menor tempo, mantendo o desempenho do modelo. Adicionalmente, foram aplicadas técnicas de pré-processamento de imagens, e a generalização do modelo foi validada em diversos conjuntos de dados. Os resultados demonstram que o MOANA conseguiu corrigir eficazmente os artefactos, com uma Métrica do Índice de Similaridade Estrutural (SSIM) de 0,9867 e uma Informação Mútua Normalizada (NMI) de 0,8260 para imagens T2w. Este projeto representa um avanço significativo no processamento de imagens médicas, contribuindo para o refinamento da precisão diagnóstica em exames de RM. Palavras-chave: Ressonância Magnética, Artefactos, Aprendizagem Profunda, Computação de Alto Desempenho, Aprendizagem Federada, Algoritmos de Aprendizagem Profunda v
Abstract Federated Learning-based Artifact Correction in Brain MRI scans in HPC environments Magnetic Resonance Imaging (MRI) has become an unavoidable tool in modern medical diagnostics, offering profound insights into the human body’s intricacies. However, the presence of artifacts stemming from various sources, such as hardware glitches, physiological phenomena, or spatial constraints, poses challenges to diagnostic image quality. Anomalies related to movement, aliasing, magnetic susceptibility, and noise stand out among these artifacts, demanding focused correction efforts, and the integration of Deep Learning (DL) models presents a promising avenue for addressing these artifacts, aiming not only for enhanced image quality but also improved diagnostic outcomes. Medical image processing, burdened by vast and complex datasets, encounters a paradigm shift with the appearance of High-Performance Computing (HPC). The computational power of HPC proves instrumental in handling extensive datasets, especially in the context of the growing volume and complexity of medical data. The integration of Federated Learning (FL) has emerged as a complementary approach, allowing DL models to be trained directly on the devices where the data is generated without the need to transfer it to a central server. In doing so, it is possible to preserve the privacy of patient data and take advantage of distributed processing capacity. This project introduces the MOANA , a system that explores the interaction between DL algorithms, the parallelization capabilities of HPC, and the incorporation of FL to develop a model for artifact correction, enabling more data to be processed in less time without compromising model performance. In addition, advanced image preprocessing techniques to enhance input data representation were applied, and the model’s generalization was validated on diverse datasets, ensuring its applicability across various clinical contexts. The results demonstrate that MOANA significantly reduces the number of training epochs required for effective artifact correction, with the model achieving a Structural Similarity Index Measure (SSIM) of 0.9867 and a Normalized Mutual Information (NMI) of 0.8260 for T2w images. This research represents a significant advancement in medical image processing, poised to contribute to the refinement of diagnostic accuracy in MRI examinations. Keywords: Magnetic Resonance Imaging, Artifacts, Deep Learning, High-Performance Computing, Federated Learning, Deep Learning Algorithms vi
Contents List of Figures ix List of Tables xi Acronyms xiii 1 Introduction 1 1.1 Objectives and Motivation ............................. 2 1.2 Contributions ................................... 4 1.3 Structure ..................................... 4 2 Concepts 6 2.1 The Brain ..................................... 6 2.2 Magnetic Resonance Imaging ........................... 8 2.2.1 MRI Advantages and Limitations ...................... 10 2.3 Artifacts ...................................... 10 2.3.1 Motion ................................... 11 2.3.2 Aliasing .................................. 12 2.3.3 Magnetic Susceptibility ........................... 13 2.3.4 Noise ................................... 14 2.4 Artifacts Correction ................................ 15 2.5 Deep Learning ................................... 15 2.5.1 Algorithms ................................. 16 2.5.2 Training Process .............................. 18 2.6 Image Quality Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.7 High-Performance Computing ........................... 24 2.8 FederatedLearning ................................ 25 2.8.1 Federated Learning Algorithm: FedAvg . . . . . . . . . . . . . . . . . . . 26 2.8.2 Federated Learning Algorithm: FedOpt ................... 27 vii
DRN-DCMB Deep Residual Network with Densely Connected Multi-Resolution Blocks (pp. 30, 36, 37) DWT Discrete Wavelet Transform (p. 14) DXO Data Exchange Object (p. 47) ELU Exponential Linear Unit (pp. 19, 20) EPI Echo Planar Imaging (p. 35) FedAVG Federated Averaging (pp. xi, 4, 6, 26–28, 46, 59–65, 68, 69) FedOPT Federated Optimization (pp. 4, 6, 26–28, 46, 59–61) FedPROX Federated Optimization in Heterogeneous Networks (pp. x–xii, 4, 6, 26–28, 46, 59– 61, 63–69) FFT Fast Fourier Transform (p. 38) FL Federated Learning (pp. vi, x–xii, 2–4, 6, 25–28, 40, 45–47, 59–70) FLAIR Fluid Attenuated Inversion Recovery (pp. ix, x, 9, 30, 31, 36, 37, 43, 49, 50, 52–54, 56, 57,61, 63–68) FLASH Fast Low Angle SHot (p. 37) FOV Field of View (pp. 12,13) FSE Fast Spin Echo (p. 37) GAN Generative Adversarial Network (pp. ix, 3, 16,17, 29, 31, 36, 37) GPU Graphics Processing Unit (pp. 24, 25, 31, 45, 46, 50, 60–62) GT Ground Truth (pp. 22, 30, 33, 40, 41) HCP Human Connectome Project (pp. 36, 37) HN Hypernetwork (pp. 34,37) HPC High-Performance Computing (pp. vi, 2–4, 6, 24, 25, 31, 39, 60, 68–70) HPO Hyperparameter Optimization (p. 24) HR 7-Tesla Multi-Modal Ultra-High Resolution Structural 7-Tesla (pp. 36, 37) HR3DNet High-Resolution 3D Net (pp. 32, 36, 37) HR3DNetGAN High-Resolution 3D Net using GANs (pp. 32, 36, 37) IFFT Inverse Fast Fourier Transform (p. 38) ILP Instruction Level Parallelism (p. 24) Inception-ResNet Inception Residual Neural Network (pp. 31, 32, 36, 37) IQM Image Quality Metrics (p. 4) IXI Information eXtraction from Images (pp. 36, 37) xiv
Leaky ReLU Leaky Rectifier Linear Unit (p. 19) LoC Lines of code (p. 44) MAE Mean Absolute Error (pp. 20, 21) MC2-Net Multi-Contrast2Brain Network (pp. viii, 31, 36, 37) MC-Net Multi-Contrast Brain Network (pp. 32, 37) MedGAN Medical Image Translation using GANs (pp. 29, 30, 36, 37) ML Machine Learning (pp. 15, 26, 45, 46, 48) mpMRI multi-parametric Magnetic Resonance Imaging (p. 49) MPRAGE Magnetization Prepared RApid Gradient Echo (pp. 31, 32, 37) MR Magnetic Resonance (p. 8) MR-ART Movement-Related Artefacts (p. 36) MRI Magnetic Resonance Imaging (pp. vi, vii, ix, xi, 1–4, 6, 8–16, 29–36, 38, 39, 42–44, 52, 53, 59, 69, 70) MSE Mean Square Error (pp. 20, 21, 45) Multilayer CNN Multilayer Convolutional Neural Network (pp. 29, 36, 37) Multiscale FCN Multiscale Fully Convolutional Network (pp. 30, 36, 37) NF Number of Filters (pp. 51–57,61, 65) NIfTI Neuroimaging Informatics Technology Initiative (pp. 1, 49) NMI Normalized Mutual Information (pp. xi, xii, 3, 23, 31, 32, 37, 38, 43, 50–57,61–66, 68) No New-Net Modification of The Original U-Net (pp. 36, 37) NRMSE Normalized Root Mean Square Error (pp. xi, xii, 3, 24, 40, 50–57,61–66) NVFlare NVIDIA Federated Learning Application Runtime Environment (pp. ix, 4, 39, 46, 47) PE Phase-encoding (pp. 33, 35) Pix2Pix Pixel to Pixel (pp. 36, 37) PSNR Peak Signal-to-Noise Ratio (pp. 23, 24, 30, 32, 33, 35, 40) RCAN Residual Channel Attention Network (pp. 31, 36) ReLU Rectifier Linear Unit (pp. 16,19,37, 38) ResNet Residual Neural Network (p. 31) RF Radio Frequency (pp. 8–11,15) RMSE Root Mean Square Error (p. 24) SCNN Shrinkage Convolutional Neural Network (p. 35) SDK Software Development Kit (p. 46) xv
xvi ACRONYMS SE Spin Echo (pp. 30, 37) SNR Signal to Noise Ratio (p. 12) SSIM Structural Similarity Index Measure (pp. xi, xii, 3, 22–24, 29–33, 35, 38, 40, 44, 50– 57,61–68) SVM Support Vector Machine (p. 20) T1CE Contrast-enhanced T1-weighted (pp. ix, x, 9, 43, 50, 56–58, 61, 63, 64, 66, 67) T1w T1-weighted (pp. ix, x, 9, 30–32, 34–37, 43, 49, 50, 52–54,61–67) T2w T2-weighted (pp. ix, x, 9, 30–34, 36, 37, 43, 49, 50, 52, 54, 55, 57,61–63, 65–67) TE Echo Time (p. 9) TR Repetition Time (p. 9) TS-RCAN Thin Slab Residual Channel Attention Network (pp. 31,37) TSE Turbo Spin Echo (p. 37) U-Net U-Net (pp. 30, 32–34, 36, 37) VAE Variational Autoencoder (pp. 29, 36, 37)
1 Introduction Magnetic Resonance Imaging (MRI) has evolved into a keystone of modern medical diagnostics, providing unparalleled insights into the inner workings of the human body [1]. However, this versatile imaging modality is not without its imperfections, such as artifacts, which in MRI scans can arise from many sources, including hardware and software-related glitches, inherent physiological phenomena, or spatial constraints. These artifacts can exert a substantial toll on the diagnostic quality of the images, with some possessing the capability to mimic non-existent pathologies [2]. Motion-related abnormalities, in particular, appear as a pervasive adversary in the domain of clinical MRI applications. Their disruptive influence on image quality is indisputable, with a prevalence ranging from 10% to 42% in brain examinations [3]. Additionally, anomalies related to aliasing [4], magnetic susceptibility [5], and noise [6] also require focused correction efforts. Consequently, addressing and mitigating artifacts are vital milestones in the diagnostic journey. The integration of Deep Learning (DL) models has revealed itself as a promising frontier for expediting and optimizing the correction of artifacts, offering the promise of enhancing image quality and ultimately improving diagnostic outcomes. The landscape of medical image processing presents a challenge for diagnosis, mainly due to the sheer volume of data generated. Hundreds of image slices are obtained from various imaging modalities and dimensions for each patient, contributing to an extensive dataset. These slices are usually stored individually in accordance with the Digital Imaging and Communications in Medicine (DICOM) format [7] or grouped into volumetric datasets in the Neuroimaging Informatics Technology Initiative (NIfTI) format [8]. A remarkable feature of medical images is their substantial size compared to conventional images, intensifying the complexity of storage and analysis. The inherent intricacy of medical images increases this complexity due to the multifaceted parameters and the profusion of anatomical differences [9]. Although real datasets present a high percentage of artifacts, publicly available ones are curated, lacking these and making their usage difficult for improving current correction models. Mimicking motion movements or any other artifact is paramount when dealing with longitudinal cases. For instance, if one wants to correct a patient’s newly acquired MRI scan, a previous MRI scan without artifacts must be available to work as ground truth [10]. Nonetheless, as these images are not publicly available, one must be able to emulate such artifacts, which raises the need to create a simulation model to reproduce 1
CHAPTER 1. INTRODUCTION artifacts. As the limits of traditional methodologies for analyzing medical images become more restrictive, in the face of the growth of medical data (e.g., limited computational resources) [9], the emergence of High-Performance Computing (HPC) signals a paradigm change in the approach to the challenges. HPC, with its enormous computing power, has the potential to respond to the demands of processing colossal datasets. The core of HPC applications lies in the simultaneous execution of multiple processes, which makes HPC clusters the ideal choice for dealing with medical data [11]. In the field of healthcare, HPC reveals its multifaceted potential, fueling research on several fronts, from developing brain-controlled noninvasive robotic arms to accelerating drug discovery [12]. In addition, HPC has capabilities in developing simulations, effectively reducing the time needed to perform complex tasks [13]. As medical data becomes more complex and voluminous, traditional centralized data analysis methods face significant challenges, including data privacy concerns, limited computational resources, and inefficiencies in data transfer [14]. The incorporation of Federated Learning (FL) has emerged as a complementary approach, enabling DL models to be trained directly on the devices where the data is generated, eliminating the need to transfer data to a central server [15]. This preserves patient data privacy while leveraging distributed processing capacity [16]. In summary, the integration of DL algorithms, the parallelization capabilities of HPC, and the incorporation of FL represent a significant advance in medical image processing, particularly for correcting artifacts in MRI exams [17]. Leveraging HPC for its computational power and parallel processing, combined with the decentralized approach of FL for collaborative model training without data sharing, enhances privacy and security. This innovative method effectively handles large datasets by developing specialized models for artifact correction, aiming to improve the quality of MRI and, consequently, the accuracy of medical diagnoses. 1.1 Objectives and Motivation Current artifact correction approaches rely heavily on centralized methods and curated datasets that often fail to capture real-world complexity, especially when dealing with data affected by artifacts. This creates a significant gap in developing robust and generalizable models for artifact correction. Furthermore, the rapid growth of medical data and concerns about patient data privacy make traditional centralized processing methods insufficient for modern healthcare applications. This dissertation addresses several critical questions regarding the correction of artifacts in brain MRI scans using DL, HPC, and FL. As such, it aims to answer the following research questions: i) How can different DL architectures be effectively utilized to correct various types of artifacts in MRI images? ii) What role does HPC play in enhancing the computational efficiency of DL models for artifact correction? iii) How can FL be deployed to enable collaborative model training across multiple devices while safeguarding patient data privacy? iv) Furthermore, how do the combined approaches of DL, HPC, and FL impact the 2
1.1. OBJECTIVES AND MOTIVATION overall effectiveness of artifact correction in brain MRI scans? Addressing these questions is essential for advancing methodologies in artifact correction and improving diagnostic accuracy. With this, the main aim of this research project is to use DL algorithms to correct artifacts in brain MRI images and distribute the training and inference in an HPC environment. Additionally, by incorporating FL, the project enables collaborative model training across multiple devices without transferring patient data, thereby enhancing privacy and security. To this end, exploring advanced algorithms and techniques for correcting artifacts is crucial, implementing parallelization strategies in HPC environments and integrating FL to leverage distributed data sources. To achieve this, the research will encompass the following key objectives: •Advance Artifact Correction Techniques: Explore and refine various Convolutional Neural Network (CNN), Generative Adversarial Network (GAN), and Autoencoder (AE) architectures to identify the most effective models for correcting different types of artifacts in MRI. Focus on developing hybrid models that leverage the strengths of these architectures for superior artifact correction. •Enhance Data Representation: Develop and apply innovative image preprocessing techniques to improve the quality and representation of input data. Aim to optimize the input for DL algorithms and expand the training dataset to boost model performance and generalization. •Integrate Algorithms for Privacy and Collaboration: Deploy FL to facilitate decentralized training of models across multiple institutions or devices, enhancing privacy and security while leveraging diverse datasets. This aims to improve model performance through collaborative learning without centralizing sensitive patient data. •Optimize Computational and Parallelization Strategies: Investigate and apply advanced optimization techniques and parallelization strategies within HPC environments to accelerate training and inference processes. Utilize HPC resources and frameworks to enhance computational efficiency and reduce training time. •Evaluate and Validate Model Performance: Conduct comprehensive evaluations using advanced metrics such as Structural Similarity Index Measure (SSIM), Normalized Root Mean Square Error (NRMSE), and Normalized Mutual Information (NMI) to assess the effectiveness of the proposed models. Validate the model’s generalization capability on diverse and independent datasets to ensure robust performance across different clinical scenarios. •Implement Continuous Integration and Monitoring: Develop and deploy an integration framework incorporating the artifact correction model into existing medical diagnostic systems. Utilize MLflow [18] to track and visualize model performance and evolution through each checkpoint, ensuring that model improvements and updates are systematically monitored. This approach will facilitate the practical deployment of the model in clinical settings, enhance diagnostic workflows, and provide real-time insights into model performance and effectiveness. 3
CHAPTER 1. INTRODUCTION 1.2 Contributions This dissertation laid the foundation for a paper titled “ MOANA : A Novel Federated Learning and HPC Approach for Enhanced MRI Artifact Correction”, which is under submission. Further, a preprint of the first version that proposes MOANA-base is also available in bioRxiv [19], and Qeios [20]. The latter offers a platform for peer review, and the current reviews are being addressed. The MOANA system was developed, and its implementation has been made publicly accessible as an open-source project on GitHub at https://github.com/aliciasoliveiraa/MOANA. This repository offers comprehensive resources, including the complete codebase, configuration files, and detailed documentation, enabling researchers to replicate the experiments conducted in this dissertation and extend the framework for future research and applications in medical image processing and FL. 1.3 Structure This dissertation is structured in seven chapters. Chapter 2 introduces the fundamental concepts relevant to this work. It begins with an analysis of the brain and its structure (Section 2.1), followed by a description of MRI and its operating principles (Section 2.2). The advantages and limitations of MRI are discussed in detail (Subsection 2.2.1), followed by an exploration of artifacts (Section 2.3), including motion (Subsection 2.3.1), aliasing (Subsection 2.3.2), magnetic susceptibility (Subsection 2.3.3), and noise (Subsection 2.3.4). The chapter then covers methods for correcting these artifacts (Section 2.4), introduces DL (Section 2.5), and describes its algorithms (Subsection 2.5.1), training processes (Subsection 2.5.2), and Image Quality Metrics (IQM) used for evaluation (Section 2.6). Finally, it discusses HPC and its relevance to this project (Section 2.7) and includes a section on FL (Section 2.8), detailing key algorithms such as Federated Averaging (FedAVG) [21] (Subsection 2.8.1), Federated Optimization (FedOPT) [22] (Subsection 2.8.2), and Federated Optimization in Heterogeneous Networks (FedPROX) [23] (Subsection 2.8.3). Chapter 3 reviews the literature on existing DL architectures, highlighting each model and its purpose, the results obtained, and the limitations associated with each study (Section 3.1). This chapter also summarizes the most relevant topics associated with each approach (Section 3.2) and, finally, details the works chosen to progress this dissertation (Section 3.3). Chapter 4 presents the MOANA-base and MOANA systems, detailing its design goals (Section 4.1), workflow (Section 4.2), and implementation (Section 4.3). The workflow section covers critical aspects such as data preprocessing (Subsection 4.2.2), the simulation model (Subsection 4.2.3) for various artifacts, including motion, aliasing, magnetic susceptibility, and noise, and the correction model (Subsection 4.2.4). The implementation section discusses the frameworks utilized, including TensorFlow (Subsection 4.3.1) and its Keras library (Subsection 4.3.1.1), NVIDIA Federated Learning Application Runtime 4
1.3. STRUCTURE Environment (NVFlare) (Subsection 4.3.2), and MLflow for tracking and visualizing model performance (Subsection 4.3.3). Chapter 5 details the preliminary results obtained during the research. It begins with a description of the dataset used (Section 5.1), followed by the experimental setup, outlining the configurations and parameters applied during the experiments (Section 5.2). The results and their analysis (Section 5.3) are then presented, categorized by the severity levels of the artifacts: low severity (Subsection 5.3.1), high severity (Subsection 5.3.2), and results from real images (Subsection 5.3.3). Chapter 6 provides a detailed analysis and discussion of the results and findings. It begins with an overview of the MOANA system (Section 6.1), followed by a detailed description of the experimental setup (Section 6.2). The results are then presented and analyzed in detail (Section 6.3), and a discussion (Section 6.4) is held based on a quantitative and qualitative evaluation of these results. Finally, Chapter 7 provides the conclusions about the models developed and their possible limitations, indicating what could be improved in future work. 5
2 Concepts This chapter is composed of eight sections and presents the crucial concepts that support the integral work of this dissertation. Firstly, Section 2.1 provides a detailed explanation of the structure and composition of the brain, setting the foundation for understanding its role in medical imaging and diagnostics. Secondly, Section 2.2 introduces MRI and explains its underlying technology and significance in the context of imaging techniques. This section offers an in-depth look into how MRI works and its applications in medical diagnostics. Section 2.3 addresses various artifacts that can affect MRI, including motion, aliasing, magnetic susceptibility, and noise. Each of these artifacts is examined in detail to understand their origins, impacts, and implications for image quality. Section 2.4 discusses methods and techniques for correcting these artifacts, exploring various strategies and technological advances aimed at improving image quality by mitigating the effects of these artifacts. Section 2.5 delves into DL algorithms used to address and correct MRI artifacts, providing a detailed exploration of different DL algorithms, their mechanisms, and the training processes involved in developing these models. Section 2.6 focuses on the metrics and methodologies used to evaluate the quality of MRI, which is crucial for understanding how image quality is assessed and quantified and how these metrics inform improvements in imaging techniques. Section 2.7 presents an overview of HPC and its role in this research, describing how HPC resources and techniques are utilized to handle complex computations and large datasets, enhancing the efficiency and effectiveness of the research project. Finally, Section 2.8 introduces theFL paradigm and its relevance to the research. This section covers various FL approaches, including FedAVG (Subsection 2.8.1), FedOPT (Subsection 2.8.2), and FedPROX (Subsection 2.8.3), and discusses their potential applications in the context of MRI and DL. 2.1 The Brain The human brain (Figure 2.1) is the central organ of the nervous system and is responsible for controlling thought, memory, emotions, and all the processes that regulate the human body. In the composition of the brain, there are two types of neural tissue: gray matter and white matter. Gray matter has a gray appearance due to the dense concentration of neuronal cell bodies, which play a fundamental role in 6
2.1. THE BRAIN processing information and forming memories. On the other hand, white matter allows for the efficient transmission of signals and the coordination of various brain functions, and it has a pale appearance resulting from myelinated axons. These axons act as the brain’s communication handles, connecting different regions of the gray matter [24, 25]. Figure 2.1: Anatomy of the human brain (extracted from [24]). Anatomically, the brain can be dissected into three main regions: the cerebrum, the brainstem, and the cerebellum. The cerebrum, comprising the cerebral cortex, is the primary center of high-level cognitive functions. It is mostly composed of gray matter and is a hub of neural activity. The brainstem is a vital structure that connects the brain to the spinal cord, controlling basic life-sustaining functions. In the brainstem, gray matter is interspersed with white matter pathways that transmit signals between the brain and the rest of the body. Finally, the cerebellum is located at the back of the brain and is essential for coordinating movements, maintaining balance, and fine-tuning motor skills. In addition, the cerebellum contains a substantial amount of gray matter, densely packed with neurons that process sensory information and regulate motor control [24, 25]. Furthermore, the surface of the brain is characterized by a division into lobes, each associated with various cognitive and sensory functions. The frontal lobe, located at the front of the brain, governs reasoning, planning, and decision-making. The parietal lobe processes sensory information, including touch and spatial awareness. The temporal lobe is responsible for auditory perception and memory. Finally, the occipital lobe, located at the back of the brain, manages visual processing [24, 25]. 7
CHAPTER 2. CONCEPTS ferromagnetic materials are concerned, they cause more significant artifacts than paramagnetic materials such as titanium. Adjusting the patient’s positioning can help reduce these effects, especially when it comes to locating long, thin objects such as needles. Therefore, it is important to address these artifacts using DL to improve the accuracy of imaging and enhance diagnostic outcomes in clinical settings [53, 56]. 2.3.4 Noise Noise artifacts (Figure 2.5 (C)) in MRI refer to undesired disturbances that can distort the quality of the images [57]. Noise levels are affected by various factors, including the patient’s body shape, the duration of the scan, and the configuration of the coil [58]. In particular, the non-physiological noise artifacts often result from technical issues, such as equipment malfunctions or electrical interference [57]. To eliminate these noise artifacts, several conventional methods are employed. One common approach involves the use of digital filters, such as low-pass, high-pass, band-pass, and notch filters [57]. Low-pass filters are utilized to eliminate high-frequency (11-45Hz) noise, while high-pass filters target the removal of low-frequency (1-2.2Hz) components like baseline wander. Notch filters, set within specific frequency ranges (typically around 50-60 Hz), effectively reduce power line interference. Band-pass filters can also be employed to isolate specific frequency ranges (between 0.1 and 100Hz), thereby reducing electronic noise components [57, 59]. Another technique used for noise reduction is the Discrete Wavelet Transform (DWT) [60]. This method is particularly effective for analyzing non-stationary signals like those found in MRI [57]. By decomposing the signal into approximation and detail coefficients using a selected wavelet function, it is possible to isolate and remove noise. After decomposing the signal, a thresholding method is applied to the wavelet coefficients, allowing for the reconstruction of a cleaner signal [57, 60]. Figure 2.5: Artifacts in brain MRI images: (A) Aliasing (extracted from [61]), (B) Magnetic Susceptibility (extracted from [62]), and (C) Noise (extracted from [58]). 14
2.4. ARTIFACTS CORRECTION 2.4 Artifacts Correction Since previous approaches to prevent artifacts are not foolproof, methods to correct these artifacts are a possible solution to improve medical imaging and, therefore, enhance medical diagnosis [63]. Artifact correction can be performed using two types of approaches: prospective methods and retrospective methods. The main difference between these methods is how the correction is accomplished. Prospective methods entail real-time correction during the MRI examination by modifying the data acquisition as it occurs [64]. These methods aim to prevent artifacts from entering the scan by adjusting parameters like gradient fields, or RF pulses during the imaging procedure [64]. While effective, the real-time nature of prospective methods requires complex hardware integration and advanced imaging techniques, making them less adaptable to various MRI systems and subject conditions. Additionally, they may be limited when the artifacts are unpredictable or evolve rapidly during the scanning process [65]. Conversely, retrospective methods involve post-acquisition data enhancement after the MRI data acquisition is completed [64]. These methods are more versatile, as they involve computational enhancement to correct artifacts without the need for specialized hardware modifications during the scan [66]. In this sense, DL shows potential in correcting artifacts in MRI scans using retrospective approaches, as DL models can be trained to identify patterns associated with common artifacts and adjust the image data accordingly. By leveraging large datasets, these models can learn to differentiate between true anatomical structures and distortions caused by artifacts, producing clearer images for medical diagnosis [2]. 2.5 Deep Learning Artificial Intelligence (AI) is a constantly evolving field in the technology domain, forming a binomial with Machine Learning (ML) that redefines the intersection between machines and human cognition. While AI consists of the ability of machines to mimic cognitive functions, ML is a specific field within AI that focuses on the ability of machines to learn and improve their performance based on data [67]. Deep Learning (DL) is a sub-field of ML inserted in the broader context of AI, in which computers learn from experience and interpret the world through a hierarchical structure of concepts, whereby the machine does not depend on a human operator to explicitly provide all the knowledge. Instead, the computer can learn and build complex concepts from simpler ones. Accordingly, DL models aim to structure algorithms in layers to create an Artificial Neural Network (ANN) with the capacity to learn autonomously and perform continuous data analysis. For this purpose, data is introduced as an input which, in turn, is sent through layers, and mathematical operations are performed to standardize the data and produce an output [68]. 15
CHAPTER 2. CONCEPTS 2.5.1 Algorithms DL algorithms have proven to have strong potential for correcting artifacts, as they do not require monitoring systems or changes to the sequence, and they do not need extra scanning time. Thus, the neural network model is trained, usually in the image domain, with a dataset that incorporates corrupted images as input and clean images as labels [44]. DL architectures used for artifact correction can be based on the image or k-space domains. On the one hand, correction based on the image domain takes images with artifacts as input and produces corrected images as output, so the correction is applied after the acquisition of the MRI. On the other hand, correction based on the k-space domain considers “the additional information content of raw kspace data” [10], so it exploits spatial frequency information to correct distortions before reconstruction, resulting in better quality images [10]. In addition, DL architectures can be discriminative (designated supervised), generative (referred to as unsupervised), and a combination of both (hybrid learning), which is semi-supervised [69]. In MRI, for correcting motion artifacts, the most commonly used supervised architecture is the Convolutional Neural Network (CNN) [70], and the most referenced unsupervised methods are the Generative Adversarial Network (GAN) [71] and the Autoencoder (AE) [72]. The CNN [70] (Figure 2.6) is a DL architecture that automatically identifies relevant data in the input, eliminating the need for manual feature extraction. A CNN consists of several layers of convolution, pooling, and fully connected layers, in which each layer adjusts its parameters to generate meaningful outputs and reduce the complexity of the model [69]. The convolution layer is responsible for applying convolution operations, using filters or kernels to extract relevant features from the image, such as edges, textures, and shapes. On the other hand, the pooling layers reduce the dimensionality of the data and preserve important features through operations such as max pooling [73]. The Rectifier Linear Unit (ReLU) [74] activation function, applied element-wise, sets negative values to zero and leaves positive values unaltered, introducing nonlinearities and allowing the network to learn complex patterns [75]. Finally, the fully connected layers perform the task of classification or regression based on the features extracted by the previous layers. During the training process, the kernel weights are optimized using backpropagation and adjusted to minimize the difference between the model’s predictions and the real training data [73]. The GAN [71] (Figure 2.7), in turn, is a neural network architecture used in generative modeling, whose main objective is to generate entirely new samples that resemble the original data without any human intervention. The structure of a GAN consists of two distinct neural networks: the generator and the discriminator. The first corresponds to a mapping of the latent space [76] and is responsible for creating new data that resembles the original data in the training set, while the latter evaluates the probability of a sample being drawn from real data rather than data generated by the generator. Thus, the real images are not accessible to the generator, so it learns exclusively through interaction with the discriminator, who, in turn, has access to the real images and the generated images. The networks that constitute the generator and the discriminator are multilayer networks and can incorporate convolutional 16
2.5. DEEP LEARNING Figure 2.6: CNN [70] architecture and the training process (extracted from [73]). layers and fully connected layers [76]. During training, the discriminator is trained to classify images from real data as 1 and those extracted from the generator as 0 [76]. Therefore, these two networks compete continuously, with the generator constantly improving the quality of the data generated while the discriminator distinguishes between real and fictitious data [69]. When the generator’s images are perfectly similar to the real images, the discriminator is confused and predicts 0.5 for all inputs [76]. Figure 2.7: GAN [71] architecture (extracted from [77]). Finally, the AE [72] (Figure 2.8) is used to learn data representations and is commonly applied to highdimensional datasets. It comprises three main components: the encoder, the code, and the decoder. The encoder is used to compress the original input, producing an intermediate representation – the code – which is then used by the decoder to reconstruct the original input [69]. During the initial phase, referred to as input, the data is passed to the first coding layer. As the subsequent layers of the encoder progress, there is a progressive reduction in the number of neurons. The last coded layer ( Latent Layer ) is reached with the minimum number of neurons, reflecting the fundamental characteristics of the dataset, termed bottleneck features, which represent the most relevant information contained in the original data. Once the coding phase has been completed, the decoding stage begins, and in this process, the coded characteristics are gradually expanded, with each layer in the decoding stage increasing the number of neurons in order to progressively reconstruct the original information. The final process occurs in the output layer 17
CHAPTER 2. CONCEPTS (ˆ 𝑁), which has the same number of neurons as the input layer (𝑁), resulting in the final representation of the data [78]. The AE plays a fundamental role in tasks such as dimensionality reduction, extraction of relevant features, efficient coding, generative modeling, noise removal, and anomaly detection [69]. Figure 2.8: Autoencoder (AE) [72] architecture (extracted from [79]). 2.5.2 Training Process In the domain of DL, the configuration of the training parameters is a determining factor in molding the performance and effectiveness of neural networks. These parameters influence the learning trajectory, coordinating how the model assimilates the complexities inherent in the dataset. This way, each parameter encompasses a unique aspect of this learning process, contributing to the model’s ability to generalize and provide accurate predictions when faced with new and unseen data [80]. The training process may be affected by overfitting and underfitting [81]. The main hyperparameters to consider when training a DL model are explored in the following sections, such as activation and loss functions, learning rate, optimizers, batch size, number of epochs, and dropout rate [78]. On the other hand, the internal parameters, such as weights, are dynamically adjusted during training to better adjust to the specific data [80]. 2.5.2.1 Underfitting and Overfitting The process of training DL models is often affected by underfitting, which occurs when a model fails to capture the underlying patterns in the data [81], representing the inefficiency of the algorithm to correctly train the data and significantly increase performance on training and test data. Underfitting is 18
2.5. DEEP LEARNING characterized by an overly simple model that is unable to adequately represent the complexities of the data, resulting in inaccurate predictions, essentially on new examples [82]. Overfitting is a disparity between performance on training data and unseen data, occurring when a model is trained with a large amount of data, learning from noise and inaccurate inputs. This results in unprecise predictions on the test data, causing high variance and leading to incorrect categorization due to excessive detail and noise [81, 82]. 2.5.2.2 Activation Function The activation function allows to “convert an input signal of a node to an output signal” [78], through the expression 𝑌=Activation(𝑊𝑅𝑁+𝑆)(2.1) where “𝑌is the output, 𝑊𝑅is the transpose of the weight vector 𝑊of the neuron, 𝑁is the input vector to the neuron and𝑆is the bias of the neuron” [78]. Thus, the activation function must be monotone (strictly increasing or decreasing) and differentiable over the entire input interval. It should be noted that the activation function in the input layers usually differs from the activation function in the output layers since the former is implemented for nonlinearity, and the latter presents the normalized probabilities associated with each class [78]. The most widely used activation function in medical image processing is ReLU [74], which consists of an identity function 𝑇(𝑈)=𝑈when 𝑈is positive and is equal to 0 in all other cases, i.e., 𝑅𝑊𝑋𝑌 (𝑈)=max(0,𝑈)(2.2) The ReLU function mitigates the problem of the gradients disappearing and exploding since the derivative for positive values is 1, facilitating the propagation of gradients [78]. On the other hand, the ReLU function defines the value as zero for any negative input, so the gradient for negative values is zero, resulting in null activation and, consequently, making it difficult to train using backpropagation. Thus, Leaky Rectifier Linear Unit (Leaky ReLU) [83], defined as 𝑋𝑊𝑍𝑎𝑏𝑅𝑊𝑋𝑌 (𝑈)=⎧ ⎪ ⎪⎨⎪ ⎪ ⎩ 𝑍𝑈 if 𝑈<0 𝑈if 𝑈≥0 (2.3) is used to keep the activation positive for positive values, but for negative values, it provides a small slope, defined by a constant 𝑍, usually equal to 0.01 [78]. Other activation functions used are Softmax [84], Sigmoid and Tanh [84], Linear (or Identity )[84] and Exponential Linear Unit (ELU) [84]. Softmax converts the raw output scores into normalized probabilities for each class [78, 85]. Sigmoid and Tanh are appropriate in the output layer for binary classification tasks, and are commonly used for classification problems [78, 85]. Linear activation is applied in the last layer to predict continuous results, expressed as a weighted sum of the elements of the input and 19
CHAPTER 2. CONCEPTS weight vectors, and is used when there are regression problems [78, 85]. Finally, the ELU combines linear and exponential behavior for positive and negative inputs, avoiding saturation for negative inputs and overcoming the problem of the exploding gradient, maintaining a non-contractive gradient to avoid training stagnation [78]. 2.5.2.3 Loss Function The loss function determines the discrepancy between the model’s predicted values and the actual values in the training data [86], and the goal of the neural network is to select the appropriate parameters that minimize the loss function [78]. This function assesses how well the algorithm models the data and can be categorized into classification (for discrete values) and regression (for continuous values) [86]. The most common loss functions used to train neural networks are Cross-Entropy [87], Log-Loss [88], Exponential Loss [89], Hinge Loss [89], Kullback Leibler Divergence Loss [90], Mean Square Error (MSE) (or L2 regularization) [91], Mean Absolute Error (MAE) (or L1 regularization) [92], and Huber Loss [93]. The Cross-Entropy [87], used in binary and multiclass classification, quantifies the disparity between the averages of the number of bits associated with the distribution of information, providing a perspective on how divergent the probability distributions are, and allows models with greater generalization capacity as well as a more efficient training process [86]. The Log-Loss [88], also known as the binary cross entropy, is equivalent to multiplying the cross entropy by a constant factor, 1/𝑐𝑜𝑒(2), and is a convex function that exhibits linear growth for negative values, which makes it less sensitive to outliers or extreme values in the data [86]. The Exponential Loss [89] is a convex function whose growth for negative values is exponential, so it is more susceptible to unusual values [94]. It is a function with high computational efficiency, which is optimized by the Adaboost [95] algorithm [86]. The Hinge Loss [89] adjusts the hyperplane in the context of the Support Vector Machine (SVM) [96] algorithm during classification tasks, aiming to find a balance by penalizing more significantly the instances that are further away or on the wrong side of the hyperplane, to improve the generalization capacity of the SVM model in relation to the training data [86, 94]. The Kullback Leibler Divergence Loss [90], also known as relative entropy, compares two data distribution functions through the difference in information between two probability distributions in order to obtain information in generative models and to boost reinforcement learning [90]. The MSE [91], also referred to as L2 regularization, is calculated as the average of the squared differences between the predictions and the actual expected values, and is particularly sensitive to outliers. In situations where it is necessary to predict a value for each target, the most appropriate prediction would be the average of the targets [86]. The MAE [92], also termed L1 regularization, is a metric that quantifies the average magnitude of the errors in a set of predictions, disregarding the positive or negative direction of the discrepancies by calculating the absolute differences between the predicted values and the actual values [97]. Therefore, it 20
2.5. DEEP LEARNING is a metric that is less sensitive to outliers than the MSE and assesses the accuracy of regression models, where the lower its value, the better the model’s predictive capacity [86, 97]. The Huber Loss [93] combines MAE and MSE, considering a differentiation parameter called delta that determines how the loss function responds to different situations. Thus, when the values are large, that is, significantly far from the minimum, the loss function behaves like the MAE. On the other hand, when the values are close to the minimum, the loss function resembles the MSE. Therefore, the delta parameter regulates the transition between the two metrics, becoming a relevant factor in the sensitivity of the loss function to outliers [86]. 2.5.2.4 Learning Rate The Learning Rate, commonly represented by 𝑓, is a model hyperparameter that influences the velocity with which an algorithm adjusts or learns the estimated values of a given parameter. This determines the frequency with which the neural network updates the weights throughout the training process, in accordance with the loss gradient [98]. 2.5.2.5 Optimizers Optimizers in DL are algorithms that adjust model parameters to minimize a loss function, as well as improve training accuracy and rate, and are essential for neural networks to learn by iteratively updating weights [99]. The most common algorithms used are Gradient Descent [100] and Adaptive Moment Estimation (ADAM) [101], and are designed to find the best model parameters, directly influencing training performance and efficiency [78]. Therefore, in Deep Neural Network (DNN), the loss function depends on the weights to be optimized, and the goal of the optimization is to minimize the convex function, for which the gradient is calculated in relation to the weight vector. This way, the Gradient Descent [100] uses calculations to iteratively update the values of the weights towards a local minimum [99]. Variations of the gradient are the Batch Gradient Descent [102], which updates the weights considering the entire dataset, the Stochastic Gradient Descent [102], which revises the weights stochastically in each training sample and, finally, the Mini-Batch Gradient Descent [102], which combines both in smaller batches of data [78]. The ADAM [101] optimizer is an extension of the Stochastic Gradient Descent algorithm which adjusts the weights of a neural network during training, adapting the learning rate for each weight individually [99]. Compared to Stochastic Gradient Descent [102], which maintains a fixed rate, ADAM dynamically calculates rates based on past gradients and considering the second moment of the gradients, but calculating the variance non-centered [78]. By incorporating both the mean and variance of the gradients, ADAM adapts the learning rate effectively, accelerating convergence and improving the performance of the neural network during training [99]. 21
CHAPTER 2. CONCEPTS 2.5.2.6 Batch Size The Batch Size is a hyperparameter that represents the number of samples processed in each pass through the network, directly influencing the accuracy and computational efficiency of the training. In general, the larger the batch size, the faster the model is trained, but the risk of overfitting is also greater [78]. On the other hand, smaller batches provide better accuracy but can be more time-consuming and computationally intensive. In addition, the batch size conditions the convergence of the model, affecting the optimization process and the learning rate, with smaller batches being more sensitive to fluctuations in the data, while larger batches are more robust but may converge more slowly [103]. 2.5.2.7 Number of Epochs The Number of Epochs represents the number of cycles through the entire training dataset, and this process is often divided into smaller batches for better efficiency. Accordingly, this hyperparameter affects the model’s ability to learn patterns and computational efficiency, where a few epochs can result in underfitting, while many epochs can lead to overfitting [103]. Therefore, adjusting the ideal number of epochs involves changing and monitoring the model’s performance by optimizing the weights [78]. 2.5.2.8 Dropout Rate The Dropout Rate is a regularization technique widely used in deep neural networks to address the issue of overfitting. During training, dropout randomly deactivates some nodes in a given layer through an action controlled by a parameter, which results in a network with reduced weights. Thus, by randomly deactivating nodes during training, dropout creates diversity, which helps prevent the model from overfitting the training data, thus improving its ability to generalize to new data [78]. 2.6 Image Quality Metrics The performance of DL correction algorithms is evaluated in terms of the quality of the image obtained as an output, i.e., in quantitative terms. The quantitative evaluation depends on the analysis of image quality by comparison with the Ground Truth (GT) reference image or through non-reference metrics (independent of the GT reference image). Since there are different types of motion artifacts, there is no universal metric for evaluating image quality, so it is assessed using a variety of metrics [10]. One of the most common evaluation metrics is the Structural Similarity Index Measure (SSIM) [104], defined as 22
2.6. IMAGE QUALITY METRICS 𝑔𝑔𝐼𝑖(𝑈,𝑏)= (2𝜇𝑈𝜇𝑏+𝑆1)·(2𝑘𝑈𝑏 +𝑆2) (𝜇2 𝑈+𝜇2 𝑏+𝑆1)·(𝑘2 𝑈+𝑘2 𝑏+𝑆2)(2.4) where “𝜇𝑈is the average value of 𝑈,𝜇𝑏is the average value of 𝑏,𝑘2 𝑈is the variance of 𝑈,𝑘2 𝑏is the variance of 𝑏,𝑘𝑈𝑏 is the covariance of 𝑈and 𝑏,𝑆1=(0.01𝑋)2and 𝑆2=(0.03𝑋)2are two variable to balance division with weak denominator, 𝑋is the dynamic range of pixel values” [28]. Thus, SSIM measures the structural similarity between two images by analyzing the loss of structural information. NMI [105] measures the agreement between the cluster labels assigned by two different clustering algorithms or methods by considering both the homogeneity within clusters and the separation between them [105]. NMI is expressed as 𝑙𝑖𝐼(𝑚,𝐿)= 𝐼(𝑚;𝐿) %𝑛(𝑚)·𝑛(𝐿) (2.5) where 𝑚and 𝐿are the sets of clustering labels from two different clustering methods, 𝐼(𝑚;𝐿)is the mutual information between the clusterings, which measures the amount of information gained about one clustering from knowing the other, 𝑛(𝑚)and 𝑛(𝐿)are the entropies of the individual clusterings, which measure the uncertainty or disorder within each clustering [105]. The mutual information 𝐼(𝑚;𝐿)is calculated using the formula for mutual information between two discrete random variables: 𝐼(𝑚;𝐿)=& 𝑍∈𝑚& 𝑜∈𝐿 𝑝(𝑍,𝑜)log '𝑝(𝑍,𝑜) 𝑝(𝑍)·𝑝(𝑜)((2.6) where 𝑝(𝑍,𝑜)is the joint probability that a data point belongs to cluster 𝑍in clustering 𝑚and cluster 𝑜 in clustering 𝐿,𝑝(𝑍)and 𝑝(𝑜)are the marginal probabilities of observing clusters 𝑍and 𝑜in clusterings 𝑚and 𝐿, respectively. And the entropy 𝑛(𝑁)of a clustering 𝑁is calculated as: 𝑛(𝑁)=−& 𝑈∈𝑁 𝑝(𝑈)log(𝑝(𝑈)) (2.7) where 𝑝(𝑈)is the probability of a data point belonging to cluster 𝑈in clustering 𝑁. In practice, these probabilities are estimated from the data and clustering results. Another important measure is the Peak Signal-to-Noise Ratio (PSNR) [106], defined by 𝑝𝑔𝑙𝑅 =10 ·log10 )𝑖𝑚𝑁2 𝐼 𝑖𝑔𝐸 *(2.8) where “𝑖𝑚𝑁2 𝐼is the maximum pixel value of the image and 𝑖𝑔𝐸 is the mean square error between the actual output image and the predicted output image” [28]. and PSNR compares the original signal and the signal with noise (difference between the original image and the processed image), contrasting the errors in the pixels using the maximum signal intensity [10]. This way, the corrected image will have 23
CHAPTER 3. STATE OF THE ART Patricia M. Johnson and Maria Drangova [123] advanced a method for motion correction by predicting artifact-free images from motion-corrupted data. The model was trained with a Conditional GAN (CGAN) [124] and resulted in the reduction of motion artifacts by improving (on average) the SSIM in 0.10 and the PSNR [106] in 2.65, and also the image quality for all the testing images. Nevertheless, the correction model presents some irregularities and some degradation of details in the gray matter, as well as “an oversmoothed appearance in the white matter for many of the predicted images” [123], which suggests that the CGAN cannot produce real images with clear appearance. The second limitation of the proposed neural network arises during training – if a training set used to teach the network lacks representative examples of certain features, the network may fail to learn to recognize them correctly. Karim Armanious et al. [63] implemented a retrospective method for correcting rigid and non-rigid motion artifacts, using a MedGAN [122], previously designed by the same authors for correcting rigid artifacts. Therefore, the proposed architecture is based on the CGAN [124], complemented by additional non-adversarial losses, such as percentual loss, to limit blurring and loss of detail in the image, as well as a generator architecture that can identify the structures and textures of the GT images in detail. As a result, MedGAN has demonstrated a high level of correction power, accompanied by an increase in image sharpness, which can be verified by the SSIM values of 0.8369, 0.8321, and 0.6763 when correcting the movement of the head, abdomen, and pelvic region, respectively. However, the network has limitations, such as the loss of image details, that could be important for medical diagnosis. K. Sommer et al. [3] proposed a retrospective method to correct motion artifacts in axial T2w Spin Echo (SE) MRI brain images using a Multiscale Fully Convolutional Network (Multiscale FCN) [125]. Thereby, the training dataset was obtained by simulating motion artifacts, and the test dataset stemmed from real patient motion. The results showed remarkable improvement in the image quality and did not compromise the image details and morphological information. On average, the motion correction increased the SSIM from 0.863 to 0.924. Furthermore, the model demonstrated the capacity to detect brain pathologies that were not recognized in the training dataset, which confirms that Multiscale FCN only corrects motion artifacts without altering the image data. Even though the results obtained were high, the model was focused on correcting ghosting artifacts, compromising the signal intensity present in anatomical structures. Another limitation identified was the presence of blurring after the image filtering process, especially in images with a significant level of motion artifacts. Junchi Liu et al. [126] developed a Deep Residual Network with Densely Connected Multi-Resolution Blocks (DRN-DCMB) model to reduce motion artifacts in two-dimensional T1w SE brain MRI, while preserving image details. The DRN-DCMB consists of a multi-resolution structure connected to dense connections, with each block holding the results of the previous blocks to minimize the learning of redundant features. As a result, the network performed well, with an average SSIM value of 0.965, when compared to U-Net [127] (0.957) and Denoising Convolutional Neural Network (DnCNN) [128] (0.949). DRN-DCMB demonstrated the ability to reduce motion artifacts and improve clinical image quality. However, the learning model reveals some limitations, such as the lack of corrupted images with real movement and the corresponding images without movement to be used in training the network, as well as the restriction to T1w contrasts, hindering its application on T2w or FLAIR contrasts. 30
3.1. LITERATURE REVIEW Kamlesh Pawar et al. [129] created a DL model for motion correction in T1w MPRAGE brain images, with an encoder based on Inception-ResNet [130] V2 and “the decoder consisted of a series of convolution blocks and oversampling layers (bilinear upscaling)” [129]. Thus, the interconnection between the encoder and decoder was established with skip connections. The images were fed into an HPC server, where motion correction was performed, and then were returned to the server. The results showed a significant reduction in ghosting, blurring, and ringing in the affected regions of the brain, as well as reduced grainy pixels. The model was applied exclusively to the T1w contrast, so not evaluating it for other contrasts may be a limitation. Furthermore, metallic implants are not recognized, so additional information is needed to train the model with these restrictions. To ensure its efficiency, the network should be trained with large datasets containing several diseases. Hao Li and Jianan Liu [131] presented a method for motion artifact reduction, providing a Thin Slab Residual Channel Attention Network (TS-RCAN), developed based on the Residual Channel Attention Network (RCAN) [132], aiming to minimize the computation resources (GPU) and inference time. The network comprised a channel attention layer in each residual block, constituting a residual channel attention block. The algorithm significantly reduces the consumption of GPU resources and decreases the inference time. Ben A. Duffy et al. [133] advanced a retrospective motion correction based on a Fourier domain motion simulation model and the 3D CNN [70] and GAN [71] architectures. The model was trained using simulated data by applying motion simulation to motion-free images and was tested with real motion-affected data; both datasets (training and testing images) presented only T1w contrast. The results demonstrated that the simulation model could efficiently correct real motion artifacts and also improved “the quality of cortical surface reconstructions” [133]. One limitation of the network was the possibility of white matter lesions being mistaken for motion artifacts and, consequently, disappearing in the final stage of correction. Another limitation reveals some inefficiency in correcting some types of artifacts related to hardware and physiology. Jongyeon Lee et al. [134] proposed a method to correct motion artifacts for multi-contrast brain MRI. The network developed was a Multi-Contrast2Brain Network (MC2-Net), which was applied to three contrasts: T1w, T2w, and FLAIR, and consists of image alignment, practiced to align input images, and motion correction, performed in the aligned images. Therefore, the image alignment process was adopted to prevent misalignment in multi-contrast images resulting from patient movement. It consists of the registration network and the Normalized Mutual Information (NMI) [135] maximization algorithm, which results in NMI-aligned images. Hereinafter, the motion correction process was supported by a multiinput/multi-output architecture, based on Residual Neural Network (ResNet) [136] and Cycle Generative Adversarial Network (CycleGAN) [137]. The results reveal that MC2-Net effectively reduces motion artifacts in brain MRI for the test dataset, corroborated by the highest average SSIM value of 0.9905, 0.9821, and 0.9746 for contrasts T1w, T2w, and FLAIR, respectively, as well as the average NMI that presents scores of 0.8397, 0.7945, and 0.7755 for contrasts T1w, T2w, and FLAIR, correspondingly. Thus, the model could adequately diminish the artifacts and distortions, such as lost structural information, in images. However, one limitation of the model was the inefficiency in correcting subtle motion artifacts, which were visible in the T1w image correction. Besides, the findings for T1w in the test dataset showed 31
CHAPTER 3. STATE OF THE ART relatively fewer improvements when compared with the other contrasts. In addition, the application of the NMI maximization externally and without a registration network implies a substantial computation time, compromising obtained results. Lei Zhang et al. [138] provided a method named Multi-Contrast Brain Network (MC-Net), based on DL techniques and designed to mitigate motion artifacts present in MRI of the brain. Using an approach that combines the U-Net [127] architecture with a two-stage multistage loss function, MC-Net was trained using T1w axial images previously contaminated by artificial movements. The result proved to be superior to other methods, as evidenced by metrics such as the PSNR and the SSIM, particularly in T1w images. Thus, in images with moderate motion artifacts, MC-Net increased the SSIM from 0.72 to 0.92 and the PSNR from 22.9 to 27.9. On the other hand, in more severe motion artifacts, the corrupted image had an SSIM of 0.61 and an PSNR of 22.31. Following motion correction, the SSIM and PSNR improved to 0.88 and 27.06, respectively. Despite its effectiveness in suppressing movement artifacts, the performance of MC-Net revealed limitations in contrast images not previously incorporated into the training, that is, in T2w, and correcting with MC-Net significantly decreased the image quality in this contrast. Nevertheless, the remarkable speed of processing, estimated at approximately 40 milliseconds per image, suggests its potential application in clinical environments. Kamlesh Pawar et al. [139] established a new technique to reduce motion artifacts through a DL architecture designated Inception Residual Neural Network (Inception-ResNet) [130] V2, which operates as an encoder, extended with a set of convolution and oversampling layers, in order to create an encoderdecoder network. The data was trained with T1w Magnetization Prepared RApid Gradient Echo (MPRAGE) images obtained from a motion simulator, which uses motion-free images and randomly corrupts them. The network was validated using unseen simulated data and real motion-affected data. The model was able to correctly suppress the movement, as evidenced by the improvement in the value of SSIM in the trained data, from 0.9058 to 0.9338, and in the real data, from 0.8671 to 0.9145. Therefore, the correction method proved to be highly promising; however, it has limitations when the movement artifacts reside in locations where the k-space is low frequency, and some of the movements were not corrected. A possible solution suggested is the use of a combination of the present model and navigators, due to their ability to detect movement. Ben A. Duffy et al. [140] suggested a CNN [70] to correct the motion artifacts in 3D T1w MRI. The training data was obtained by simulating motion artifacts in the ground truth images of Autism Brain Imaging Data Exchange (ABIDE) dataset [141], and the tested data was implemented based on unseen simulated images and with real movement images. The architecture integrates a modified High-Resolution 3D Net (HR3DNet) [142], used for regression, and then independently, an High-Resolution 3D Net using GANs (HR3DNetGAN) [140] that incorporates a discriminator used to differentiate clean and corrected data. The model evaluation considered the two architectures separately and resulted in an average SSIM value of 0.972 and 0.971 for the HR3DNet and HR3DNetGAN models, respectively. These results show that the model proved to be effective in correcting the movement; however, it revealed some incompatibilities, particularly the HR3DNetGAN, which introduced some undesired artifacts. Keisuke Usui et al. [143] analyzed the correction of motion artifacts in CGAN and compared it with 32
3.1. LITERATURE REVIEW Autoencoder (AE) [72] and U-Net [127]. For this purpose, the data was trained with T2w images with simulated motion artifacts in the horizontal and vertical directions. The CGAN is constituted by two CNN [70], a generator and a discriminator, added to a conditional element with opposite purposes. The AE implements coding and decoding processes in stack layers that enable motionless images to be obtained by capturing and passing the main characteristics of the images through the decoder. Lastly, U-Net also uses an encoder and decoder, layered in depth, which, as the network processes the input images, aggregates the more abstract features and recombines them with the more superficial features, ensuring gradual processing. The results revealed that the CGAN model produced the best results in motion correction, with an improvement in the SSIM and PSNR values of 26% (SSIM superior to 0.9) and 7.7% (PSNR superior to 29 dB), respectively. On the other hand, the U-Net (SSIM of 0.860 ± 0.080 and PSNR of 27.76 ± 2.14 dB) model had significantly lower results and also degenerated the pixel value restructuring. In addition, the models were tested on simulated images, which limited the results obtained, and their accuracy could not be verified on real images with movement. Long Cui et al. [144] used a CNN [70] model to remove motion artifacts from T2w images of MRI. The CNN was developed based on U-Net [127], with encoding and decoding layers to filter out motioncorrupted images and partially remove the artifacts. Thus, the corrupted images were initially filtered and, subsequently, the k-space of the filtered image was contrasted with the k-space corrupted by movement in order to detect the undamaged Phase-encoding (PE) lines. To this end, motion artifacts were simulated in k-space from random motion trajectories (to create simulated data) and then transformed into simulated images with motion artifacts. The results proved that images reconstructed using the proposed method had an average PSNR of 36.129, 38.646, 40.426, and 41.510 for simulated images with 35%, 40%, 45%, and 50% of unaffected PE lines, respectively, indicating the method’s effectiveness in detecting and mitigating motion artifacts. In addition, the average SSIM was 0.950, 0.964, 0.975, and 0.979 for the same configurations of unaffected PE lines, reinforcing the improved quality of the reconstructed images. However, the method has limitations, such as the need to adapt the pulse sequences to align with the specific sampling order required. Moreover, using a single type of motion simulation to train the CNN model suggests the need for specific models for different contrasts and pulse sequences in the images obtained. Vijay R. Tripathi et al. [28] presented a method for removing motion artifacts from MRI images by modifying the structure of the CGAN, referred to as Pix2Pix [145]. The network was trained with images of MRI scans containing induced motion artifacts, which were then inserted into the generator network, in this case, an U-Net [127] that generates new images, ideally without noise. Next, the result of the generator network and the respective GT images were compared in the discriminator network, a PatchGAN [145], with the aim of optimizing the weights between the generator and discriminator networks until the difference between the images was approximately zero. The results obtained revealed an average SSIM value of 0.9429 and an accuracy of 96.69%, which highlights the high degree of proximity between the regenerated image and the GT, as well as the generation of accurate images. On the other hand, the authors suggest that the model improves with the dataset size ( i.e. , the more images used, the better the results); however, limited computational resources did not validate such a claim. Regarding contrast, the model was also 33
CHAPTER 3. STATE OF THE ART tested on T1w, but its efficiency is 30% higher when using images with T2w contrast. In addition, images with lighter regions were more difficult to denoise. Nalini M. Singh et al. [146] presented a rigid motion artifact correction model, based on a DNN [147] and considered corrupted k-space data and motion parameters. The aim was to simplify the correction process by optimizing only the movements, without the requirement to simultaneously optimize the image. For this purpose, the network was trained using simulation with known movement patterns and tested to adjust the movements to improve the image reconstruction. This process eliminates the necessity of searching for different images during the optimization process while maintaining accuracy in correcting movements. In addition, the method uses a motion-dependent neural network, designated Hypernetwork (HN) [148], which monitors the quality of the reconstruction, avoiding discrepancies between the estimated image and the measurements obtained, since it automatically rejects the data when the optimization fails. The HN is a specific neural network architecture designed to dynamically generate the weights of a reconstruction subnetwork based on movement parameters. The model produced sharper and more accurate reconstructions, denoting better performance when compared to methods without motion recognition. It also proved to reconstruct the data with quality when applied to real images since it could handle real signals corrupted by movement, even though the training was only performed on simulated data. Aliasing artifacts. Nahas et al. [149] have developed a technique called “dealiasing” to enhance the clarity of Color Flow Imaging (CFI) through the application of DL. This approach is designed to address the issue of aliasing artifacts, which arise when the velocity of blood flow surpasses the point of detection, leading to the misreading of flow patterns. The technique employs two CNNs[70] to identify and isolate pixels affected by aliasing within CFI frames and then follows the process of phase unwrapping to correct these artifacts. The CNN tasked with detecting aliasing utilizes an U-Net [127] architecture, and the training dataset included several image-based features. Pixel values represented each feature at specific locations in the image. The method successfully isolated overlapping pixels, with an intersection over union score near 90%. The procedure of removing overlapping features demonstrated a minimal difference of 2.51% or less when compared to manual techniques. Nevertheless, the method has limitations since the evaluation of the CNN-based framework’s aliasing detection performance relied on manually identified aliased areas in CFI. Lee et al. [150] provided a DL algorithm especially designed to reconstruct MRI images from significantly undersampled “k-space” data and to reduce aliasing artifacts. The method involves training deep networks specifically to recognize and eliminate these distortions from both magnitude and phase images. This is achieved by estimating the artifacts directly from the distorted images obtained from subsampled data and then removing these artifacts to obtain clean images. To handle the widespread distribution of aliasing artifacts, the method uses a multi-scale DNN architecture with a large receptive field. The results demonstrate that this network effectively identifies and removes aliasing artifacts, outperforming existing methods with minimal error rates in both single and multi-coil settings. Additionally, the proposed network is significantly faster, reducing computational time by a large margin. However, the main limitation of this algorithm is its computational complexity. Magnetic Susceptibility artifacts. Duong et al. [151] introduced S-Net, a DL framework aimed at 34
3.2. SUMMARY correcting susceptibility artifacts. S-Net is composed of two principal elements: a CNN [70] that predicts the displacement field from reversed-PE image pairs, and a spatial transform unit that applies this field to unwarp and correct the input images. This network is trained with reversed-PE image pairs using an unsupervised loss function, eliminating the need for ground-truth data. Once trained, S-Net can efficiently output both the displacement field and the corrected images for new pairs of reversed-PE images. Notably, S-Net functions significantly faster than existing methods while preserving similar levels of correction accuracy. Nonetheless, S-Net does present certain limitations. The network’s training can be time-intensive, especially for large-scale datasets, and it requires resizing all input images to the train-phase dimensions. Duong et al. [152] proposed TS-Net, a DL framework tailored for correcting susceptibility artifacts in 3D Echo Planar Imaging (EPI) images obtained with reversed PE directions. TS-Net leverages a deep CNN [70] to predict an extensive three-dimensional displacement field. In its training phase, anatomical T1w images serve for regularization, yet they are not essential during the inference phase. The outcomes suggest that TS-Net maintains an equilibrium between accuracy and processing speed, performing on par with other methodologies. Although its operating speed is slightly less than that of S-Net [151], TS-Net still fulfills the criteria for real-time correction in MRI scanners, boasting an inference time of under a second. This feature facilitates real-time susceptibility artifact correction throughout EPI image acquisition, thereby expediting medical image-processing sequences. Noise artifacts. Kidoh et al. [153] created a Deep Learning-Based Reconstruction (dDLR) to reduce noise in the brain MRI. Their research involved an experimental phase where brain images from five volunteers were distorted with artificial noise and then denoised using different methods: a DnCNN [128], a Shrinkage Convolutional Neural Network (SCNN), and the newly developed dDLR. The results showed that dDLR outperformed both DnCNN and SCNN in terms of PSNR and SSIM, producing higher-quality images. However, it was noted that dDLR was only tested on specific MRI sequences, suggesting the need for a broader evaluation of various sequences to validate its effectiveness across different scenarios. Yan et al. [154] presented an unsupervised learning approach for denoising MRI. The method utilizes content encoders and random noise encoders to distinguish between content information and noise artifacts in low-quality MRI. The process involves using Kullback-Leibler divergence loss to regulate the noise distribution. Furthermore, it incorporates adversarial loss to enhance the authenticity of the cleaned images, with cycle consistency and perceptual losses maintaining coherence in content from noisy inputs to cleaned outputs. Empirical findings showcase the efficacy of this method, revealing substantial enhancements in visual fidelity. Nevertheless, it is important to highlight that the model’s extensive parameter count necessitates a robust training environment. 3.2 Summary As mentioned in Section 2.3.1, motion artifacts are recognized as the primary cause for repeating MRI sequences [45]. This not only extends the overall imaging time required per patient but also increases the 35
CHAPTER 3. STATE OF THE ART risk of patient discomfort and potential inefficiencies in the imaging process. Therefore, motion artifacts present themselves as a great challenge for medical professionals in the diagnostic process. Thus, there have been several proposals that aim to diminish their impact on healthcare. Table 3.1 provides a concise summary of the main approaches in the scope of the detection, correction, and processing of motion artifacts in MRI. It includes information on the main acquisition techniques, architectures, and frameworks used by various authors, as well as the datasets utilized in their models. The main architectures mentioned in Table 3.1 (CNN [70], GAN [71], and AE [72]) were previously discussed in Section 2.5. The remaining architectures are derivations of those three: Multilayer Convolutional Neural Network (Multilayer CNN) [155], Multiscale Fully Convolutional Network (Multiscale FCN) [125], Inception Residual Neural Network (Inception-ResNet) [130], Variational Autoencoder (VAE) [121], Medical Image Translation using GANs (MedGAN) [122], Deep Residual Network with Densely Connected Multi-Resolution Blocks (DRN-DCMB) [126], Denoising Convolutional Neural Network (DnCNN) [128], U-Net [127], Residual Channel Attention Network (RCAN) [132], Conditional GAN (CGAN) [124], High- Resolution 3D Net (HR3DNet) [142], High-Resolution 3D Net using GANs (HR3DNetGAN) [140], Multi- Contrast2Brain Network (MC2-Net) [138], Modification of The Original U-Net (No New-Net) [156] and Pixel to Pixel (Pix2Pix) [145]. All these architectures were explained in more detail in Section 3.1. In the domain of DL model development, the selection of frameworks is determined by the specific requirements of each model in order to improve the efficiency of the process. According to Table 3.1, the main frameworks used are TensorFlow [157], integrated with the Keras [158] library, PyTorch [159], MATLAB [160] and Microsoft Cognitive Toolkit (CNTK) [161]. The datasets used are mostly publicly available, such as the Autism Brain Imaging Data Exchange (ABIDE) dataset [141], the Alzheimer’s Disease Neuroimaging Initiative (ADNI) dataset [162], the Human Connectome Project (HCP) dataset [163], the Brain Tumor Segmentation Challenge 2020 (BraTS 2020) dataset [164], the Movement-Related Artefacts (MR-ART) dataset [27], the Information eXtraction from Images (IXI) dataset [165], and the Multi-Modal Ultra-High Resolution Structural 7-Tesla (HR 7-Tesla) dataset [166]. The models analyzed for the correction of motion artifacts in MRI present significant advances, demonstrating effectiveness in correcting undesired movements and improving image quality. However, some limitations remain, such as the restricted applicability to specific MRI techniques in some cases, the introduction of unexpected artifacts, the loss of important details in the images, and the difficulty in subtly correcting complex movements. In addition, some models reveal restrictions in generalizing to different image contrasts (T1w, T2w, FLAIR), as well as challenges in dealing with real-world situations, such as the presence of white lesions that can be mistaken for motion artifacts. The efficiency of some models may also depend on the amount and diversity of training data, with some models being more effective when trained with more comprehensive sets. The constraints identified in the models analyzed not only outline the existing challenges but also provide a basis for the development and improvement of this work, which focuses on overcoming these limitations. 36
3.3. SELECTED APPROACHES Table 3.1: Summary of the main approaches. Approach Author Year Body Area Goal Technique Architecture Framework Dataset [26] Küstner et al. 2018 ▲,◆✦ T1w FSE Multilayer CNN TensorFlow (Keras) ✕ [120] Küstner et al. 2019 ▲,◆,■❖T1w, T2w FSE VAE, MedGAN ✕ ✕ [123] M. Johnson et al. 2019 ◆ ❖ T2w* FLASH CGAN TensorFlow (Keras) HR 7-Tesla [63] K. Armanious et al. 2019 ▲,◆,■❖ T1w SE MedGAN ✕ ✕ [3] K. Sommer et al. 2020 ◆ ❖ T2w TSE Multiscale FCN CNTK ✕ [126] J. Liu et al. 2020 ◆ ❖ T1w DRN-DCMB, DnCNN, U-Net TensorFlow (Keras) ✕ [129] K. Pawar et al. 2020 ◆ ❖ T1w MPRAGE Inception-ResNet V2, CNN TensorFlow (Keras) IXI [131] H. Li and J. Liu 2021 ◆ ❖ T1w MPRAGE TS-RCAN Pytorch HCP [133] B. Duffy et al. 2021 ◆ ❖ T1w No New-Net, HR3DNet, U-Net GAN TensorFlow (NiftyNet) ABIDE I, ADNI [134] J. Lee et al. 2021 ◆ ❖ T1w, T2w, FLAIR MC2-Net TensorFlow (Keras) BraTS 2020 [138] L. Zhang et al. 2022 ◆ ❖ T1w, T2w MC-Net TensorFlow (Keras) ✕ [139] K. Pawar et al. 2022 ◆ ❖ T1w MPRAGE Inception-ResNet V2 TensorFlow (Keras) ✕ [140] B. Duffy et al. 2022 ◆ ❖ T1w HR3DNet, HR3DNetGAN TensorFlow (NiftyNet) ABIDE [143] K. Usui et al. 2023 ◆ ❖ T2w CGAN ✕ ✕ [144] L. Cui et al. 2023 ◆ ✦ T2w CNN TensorFlow (Keras) IXI [28] V. Tripathi et al. 2023 ❏ ✧ T2w Pix2Pix MATLAB 2021a ✕ [146] N. Singh et al. 2023 ◆ ❖ FSE T2w FLAIR HN TensorFlow (Keras) ✕ Abbreviations: ❖Correction of motion artifacts, ✦Detection of motion artifacts, ✧Removing motion artifacts. ▲Abdomen, ◆Head (Brain), ■Pelvic Region, ❏Various Body Regions. ✕Not identified in the article. 3.3 Selected Approaches This Section provides details on the approaches selected to pursue this work, from those discussed previously in Section 3.1, considering the structure and the parameters and hyperparameters adopted for training the model. 3.3.1 Multi-Contrast2Brain Network (MC2-Net) The MC2-Net [134] model consists of two parts: image alignment and motion correction. Image alignment consists of the registration network process and NMI [135] maximization, and receives as input misaligned images with three contrasts (T1w, T2w and FLAIR), which are introduced in the registration network. This network operates with six 2D convolution layers and three fully connected layers, both combined with batch normalization and ReLU [74] activation and also a constraining layer to optimize 37
CHAPTER 3. STATE OF THE ART registration. The aligned images are then fine-tuned using the NMI maximization process and enter the motion correction network, which consists of an encoder comprising nine 2D convolution layers combined with instance normalization and ReLU activation. The outputs of these layers are concatenated and fed into the transformer, which includes nine blocks with skip connections, and each block incorporates two 2D convolution layers with ReLU. Finally, the images are passed to the decoder, which contains nine transposed 2D convolution layers with ReLU, obtaining the final output with the images corrected for the three contrasts. Thus, the encoder converts each aligned image into the feature domain, generating a unique feature vector for each contrast image. These feature vectors are concatenated to share information between all the contrast images, and the subsequent transformer effectively performs motion correction using the concatenated vectors. Lastly, the decoder converts the transformed features back into the corresponding contrast image output. The loss functions for network training include SSIM [104] for data consistency and the pre-trained VGG-16 [167] for perceptual details. In addition, the VGG perceptual loss is incorporated for detailed reconstruction using the third convolutional block of the third layer of VGG-16. The optimizer selected is ADAM [101], with a learning rate of 0.001, and the implementation is in TensorFlow 2.0 with the Keras library, with the registration network being trained over 1000 epochs and the motion correction layer with 500 epochs. 3.3.2 Motion Simulation Model Simulating movement is a process that can be achieved using simulation models [133, 168, 169], which mimics motion in the images. However, most of these models are not publicly available, and even fewer focus specifically on simulating artifacts in MRI images. One such model, based on a Fourier domain motion simulation model [133], involves introducing random rotations and translations in the original image, which creates a corrupted version that reflects the effects of movement. To this end, parameters such as the standard deviation of the rotations and translations, the required percentage of corruption, and the selection of the frequency coding dimensions are configured. Therefore, the simulation process begins when the original image is transformed into the frequency domain, using the signal processing technique known as Fast Fourier Transform (FFT) [38] technique. In the frequency domain, image data is represented in terms of its frequency components, making it easier to introduce motion effects. A random movement trajectory is then generated, which involves applying rotations and translations that simulate the motion artifacts. These transformations distort the frequency components, effectively corrupting the image. Finally, to visualize the corrupted image, the Inverse Fast Fourier Transform (IFFT) is applied, converting the data back from the frequency domain into the spatial domain, where the motion artifacts are now visible in the form of blurring or other distortions [38]. 38
4 MOANA This chapter is organized to cover the project’s objectives, workflow processes, and implementation specifics. Section 4.1 outlines the design goals, providing insight into the project’s overarching aims. Section 4.2 details the workflow, starting with an overview of the process that a corruption-free image undergoes (Subsection 4.2.1). Following this, Subsection 4.2.2 focuses on data preprocessing, where raw data is prepared for analysis to ensure uniformity and consistency across the dataset. Subsection 4.2.3 describes the simulation model, including the methodologies for introducing various corruptions into images. Section 4.3 details the implementation specifics, beginning with the use of TensorFlow as the primary framework for model development and deployment (Subsection 4.3.1). The implementation section continues with Subsection 4.3.2, which covers NVFlare, explaining its application in the project. Lastly, Subsection 4.3.3 introduces MLflow, detailing its use in model tracking. 4.1 Design Goals Based on the necessity to recreate and correct artifacts, a retrospective method, named MOANA- base , was developed to improve the quality and usability of medical images affected by various artifacts. The MOANA is a complex version of the baseline solution ( MOANA-base ) that integrates parallel and decentralized environments in the MOANA-base model, which will be explained in Section 6.1. The key design goals that guide the project’s development and implementation are: •Artifact Simulation: MOANA offers a simulation model to generate realistic motion, aliasing, magnetic susceptibility, and noise artifacts in MRI images. •Artifact Correction: For effective artifact correction, MOANA leverages DL-based algorithms and offers effective trained models, which ensure the restoration of images to their corruption-free states. •Parallel Processing: MOANA implements parallelization strategies within HPC environments to accelerate training and inference, enhancing computational efficiency. 39
CHAPTER 4. MOANA 4.3.1.1 Keras Library In DL models, TensorFlow [157] uses a high-level API, designated Keras [158], which “provides an accessible and highly productive interface for solving ML problems, with a focus on modern DL”[181]. The Keras library simplifies the DL process, from data processing to model implementation, and, integrated with TensorFlow, provides access to scalability and multi-platform resources. Thus, it is possible to run models in GPU cluster environments and export models for execution in browsers or adjust models via API [181]. Keras includes layers and models. The first are represented by the class tf.keras.layers.Layer , which encapsulates the weights and operations, defined in the method tf.keras.layers.Layer.call , and can have trainable or untrainable weights, being recursively composable. The models group layers and can be trained with data, with the tf.keras.Model class comprising integrated methods for training and evaluation [181]. 4.3.2 NVIDIA FLARE FL [173] has emerged as a groundbreaking approach for developing robust and generalizable ML models by enabling worldwide partnerships while protecting confidential information. With advancements in this field, multiple tools have been developed to maximize its impact in various sectors. Notably, NVFlare, developed by NVIDIA [182], is a standout open-source Software Development Kit (SDK) that is flexible and robust, aiming to simplify the development of FL systems [174]. NVFlare is designed to aid data scientists and researchers in transitioning their ML processes to a FL approach. In contrast to conventional techniques that depend on centralizing data, this SDK facilitates the exchange of model weights while maintaining data decentralization and privacy. Notably, NVFlare plays a crucial role in industries such as healthcare, where safeguarding data privacy is of utmost importance [174, 175]. A standard FL workflow with NVFlare begins with an initial global model. Each FL Client trains this model on their local data and then transmits the model updates to a central FL Server . The FL Server aggregates these updates to enhance the global model, which is subsequently distributed for further training. This iterative process persists until the model achieves the desired performance level [173, 183]. NVFlare streamlines this procedure through its Controller programming interface, including a range of built-in FL algorithms such as FedAVG [21], FedOPT [22], and FedPROX [23]. The SDK also includes predefined workflows like the scatter and gather method ( ScatterAndGather Controller ) and cyclic weight transfer, making it easier to implement diverse FL scenarios[184]. In this setup, as illustrated in Figure 4.5, each FL Client acts as a Worker , soliciting and performing tasks like model training as directed by the Controller . Subsequently, upon task completion, the FL Client 46
4.3. IMPLEMENTATION transmits the outcomes back to the Controller . Throughout these communications, optional filters can be employed to handle the task’s data or outcomes [175]. FL CLIENT EXECUTE TASK CONTROLLER Assign Task Filter Task Data Filter Task Data Submit Task Result Filter Task Result Filter Task Result WORKER FL SERVER Figure 4.5: NVFlare workflow, adapted from [173]. The high-level architecture of NVFlare emphasizes crucial components and interactions to establish a transparent and effective framework. It presents a comprehensive operational environment, incorporating secure credential provisioning and job management via the NVFlare Console. Through its modular design, users can tailor their FL tasks by defining essential elements like controllers and executors to suit their specific requirements. Additionally, the NVFlare Console facilitates job management by offering various administrative commands for initiating and halting clients, submitting and overseeing tasks, and executing other managerial functions [174,175]. Regarding system principles, NVFlare functions based on a client-server model where Controller s oversee and organize tasks, and Workers execute them [185]. This fundamental dynamic enables the collaborative computing features of NVFlare. The communication between the server and clients is enabled through Shareable objects, which depict the exchanged data, like model weights [186]. These Shareable s are realized as Python dictionaries and are enhanced by Data Exchange Object (DXO), which standardizes the shared data, serving as the message content with the Shareable as the container [174,187]. FLComponents are fundamental elements of NVFlare, encompassing executors, controllers, filters, and aggregators. These components are equipped with inherent features for logging, event management, and error handling, guaranteeing seamless functionality and incorporation into the system [188]. Executors , which are specialized FLComponents , execute tasks and produce Shareable s from input data. NVFlare accommodates both single and multi-process executors to cater to diverse computational needs. The FLContext functionality plays a vital role in easing data exchange among components, granting access to infrastructure services, and promoting efficient data sharing [175, 189]. NVFlare’s event mechanism enables dynamic communication between components through notifications. This system allows components to send and respond to events, facilitating important processes such as model updates or aggregation completions and ensuring efficient operation of the FL system [174, 175]. 47
CHAPTER 4. MOANA 4.3.3 MLflow MLflow [18] aims to simplify the ML process while offering users the flexibility they need [190]. The platform follows an ”open interface” approach, offering adaptable interfaces for important ML components such as training steps, deployment tools, and models. This strategy allows users to seamlessly incorporate their own code and workflows without being tied to particular tools or libraries [191, 192]. Models in MLflow can be represented simply as Python functions, along with the necessary library dependencies. This setup allows for easy deployment using any development tool that can execute Python functions [191, 192]. MLflow’s architecture includes three main components, which users can utilize independently or together: MLflow Tracking , MLflow Projects , and MLflow Models . The MLflow Tracking functionality provides an API that facilitates the recording and retrieval of experiment runs. It captures crucial information such as code versions, parameters, input data, metrics, and output files, making it easier to manage and replicate experiments. This component enables the display of metric data in time-series graphs to analyze model performance across different runs, comparing metrics from various experiments, and identifying patterns or irregularities. In MLflow Projects , each project defines its runtime environment by specifying necessary software libraries, executable code, and parameters for automated execution. This capability is valuable for creating consistent and reproducible workflows, whether for simple experiments or complex tasks like hyperparameter optimization. Lastly, MLflow Models offers a versatile format for packaging ML models, encompassing both the code and data required for deployment. This format is compatible with various deployment tools, streamlining batch processing and real-time inference [190, 191]. 48
5 Preliminary Results This chapter briefly evaluates the baseline solution, the MOANA-base model. It is organized into several sections that outline the primary dataset, experimental setup, and the analysis of results obtained from the study. Firstly, Section 5.1 introduces the dataset used in the experiments, detailing its characteristics and sources. Section 5.2 describes the experimental setup, including the hardware and software configurations, as well as the specific conditions and methodologies under which the experiments were conducted. At last, Section 5.3 presents the results and analysis of the results. This section is subdivided based on the severity levels of the simulated corruptions and the testing of real images. 5.1 Dataset BraTS 2021 [33–35] dataset was the chosen dataset to train the model. It consists of “multiparametric Magnetic Resonance Imaging (mpMRI) scans […] available as NIfTI files (.nii.gz)”, which “describe a) native T1w and b) post-contrast T1w, c) T2w, and d) T2w FLAIR volumes” [193]. For the preparation of slices, the brain area selected was greater than 30% (specifically 19,666 out of 65,536 pixels) after carefully analyzing several images. This threshold was considered appropriate as it represents a significant portion of the brain, ensuring that sufficient anatomical and pathological information is captured across the various imaging modalities. 5.2 Experimental Setup The effectiveness of MOANA-base artifact correction was evaluated in terms of different levels of severity with different datasets. The key insights are as follows: • MOANA-base enhances state-of-the-art results and reduces the training time by 63% when compared to the baseline model MC2-Net. • MOANA-base allows the efficient addition of a fourth contrast for correction. 49
CHAPTER 5. PRELIMINARY RESULTS • MOANA-base provides different levels of severity regarding the simulation model, being able to attain results up to 0.9969 in SSIM for the highest severity ( i.e. , heavily corrupted images). Testbed Setup. The tests were performed in two nodes, one with an NVIDIA GeForce RTX 2080 Ti (Node 1) and a second one with an NVIDIA GeForce RTX 3090 (Node 2). All tests were conducted on a GPU. The optimal filters and epochs were determined by analyzing the model’s performance with varied hyperparameters. Namely, the tests were performed with 8, 16, 32, and 64 filters. Moreover, the model was trained with different numbers of epochs to understand its evolution (100, 250, 500, 750, 1000, 1200). This evaluation was carefully performed to guarantee that the model did not overfit the data (which did occur when running for 1200 epochs). Workloads and metrics. Based on BraTS 2021 [33–35] dataset, and in a brain area superior to 30%, four different subsets were created for preliminary results: A1, A2, B1, and C1. Dataset A1 contains 48 subjects and 786 slices (262 slices from each contrast) selected from three contrasts (T1w, T2w, and FLAIR). Of these, 193 slices were used for training, 34 for validation, and 35 for testing. Dataset A2 includes 48 subjects and 1048 slices (262 slices from each contrast) chosen from four contrasts (T1w, T1CE, T2w, and FLAIR). The distribution of slices for training, validation, and testing follows the one of dataset A1. Dataset A1 was simulated with artifact severity levels 1 (Subsection 5.3.1) and 2 (Subsection 5.3.2), while dataset A2 was simulated with level 2 (Subsection 5.3.2). Dataset B1 consists of 3600 slices from 248 subjects, where each contrast has 900 slices for a total of four contrasts (T1w, T1CE, T2w, and FLAIR). The slices were split into three sets: 630 for training, 135 for validation, and 135 for testing. Dataset B1 was simulated with artifact severity levels 1 (Subsection 5.3.1) and 2 (Subsection 5.3.2). The last subset of BraTS 2021 [33–35]), dataset C1, consists of 140 slices (35 slices for each contrast) from 4 subjects. These slices contained real movement and were used to conduct real tests with artifacts ( i.e., for model inference), evaluating the model’s capability to correct real artifacts. Table 5.1 summarizes the datasets. Node 1 was used to train the model with datasets A1 and A2, and Node 2 was used with dataset B1. The model’s performance is validated by resorting to SSIM, NMI, and NRMSE metrics. Table 5.1: Datasets used in the evaluation. The number of slices used for each phase (i.e., train, validation, and test) is provided per contrast. Datasets Subjects Slices Contrasts Train Validation Test A1 48 786 3 193 34 35 A2 48 1048 4 193 34 35 B1 248 3600 4 630 135 135 C1 4 140 4 – – 35 50
5.3. RESULTS AND ANALYSIS OF RESULTS 5.3 Results and Analysis of Results The following section is split by the simulation model’s severity and the real images test. 5.3.1 Low Severity - Level 1 During the initial testing phase, the MOANA-base network was trained using three contrasts with the dataset A1 and the simulation model’s severity level 1 (Subsection 5.3.1). The network’s performance was evaluated by altering the Number of Filters (NF), and applying or not the Batch Validation (BV) technique. The BV process systematically validates model performance in groups to ensure robustness across different datasets, and the NF was optimized to obtain a better extraction of features from the input images. All the tests were conducted with 500 epochs. The results, summarized in Table 5.2, highlight significant variations in model performance based on different parameter configurations. It was verified that when BV was not implemented, and the NF was fixed at 16, the model’s SSIM values varied from 0.9473 to 0.9608 in different contrasts. Similarly, the NMI scores ranged from 0.7616 to 0.7704, and the corresponding NRMSE values from 0.1687 to 0.1938. Table 5.2: Comparison of different model parameters and MOANA-base model results for SSIM, NMI, and NRMSE metrics, in dataset A1 and the simulation model’s severity level 1. Parameters Results Training Time BV NF Contrast SSIM NMI NRMSE (HH:MM:SS) No 16 T1w 0.9591 0.7616 0.1730 21:58:53T2w 0.9608 0.7704 0.1687 FLAIR 0.9473 0.7638 0.1938 Yes 16 T1w 0.9682 0.7786 0.1527 22:06:22T2w 0.9705 0.7811 0.1492 FLAIR 0.9593 0.7701 0.1639 No 32 T1w 0.9655 0.7756 0.1457 21:58:03T2w 0.9654 0.7685 0.1480 FLAIR 0.9590 0.7818 0.1688 Yes 32 T1w 0.9745 0.7811 0.1497 22:07:03T2w 0.9792 0.7821 0.1408 FLAIR 0.9803 0.8030 0.1580 However, there was a significant improvement in the model’s performance in all contrasts when it was introduced BV. This is shown by higher SSIM values ranging from 0.9593 to 0.9705, indicating better structural similarity between predicted and ground truth images. Additionally, NMI values increased from 0.7786 to 0.7811, indicating enhanced capture of mutual information. NRMSE values decreased to a range of 0.1492 to 0.1639, signifying reduced error in model predictions. 51
CHAPTER 5. PRELIMINARY RESULTS Furthermore, increasing the NF from 16 to 32 without BV increased SSIM values in all the contrasts. A substantial boost in model performance is observed when combining an NF of 32 with BV, especially in SSIM values in different contrasts, particularly in FLAIR, which increased from 0.9590 to 0.9803. This suggests that a higher NF enables the model to extract more features and representations from the input images. At the same time, NMI values experienced a significant increase, from 0.7818 to 0.8030 in FLAIR contrast, and the NRMSE values decreased from 0.1688 to 0.1580. When using the BV technique with MOANA-base , the training time may increase slightly because the validation process is performed for each batch. However, the increase in training time is not significant (0.6% in the case of dataset A1), and it requires about 22 hours to complete 500 epochs. The plot presented in Figure 5.1 illustrates the loss trajectory for the experiments conducted using three different contrast settings applied to dataset A1. The model under evaluation was trained at a severity level of 1 across 500 epochs. This visualization, generated via MLflow [18], provides insight into the model’s performance over time, highlighting how the loss values evolved as the training progressed. By analyzing this plot, one can assess the model’s convergence behavior and the effectiveness of the selected contrast configurations in reducing the loss, ultimately contributing to the model’s learning process. Figure 5.1: Loss plot for the results performed with three contrasts in dataset A1 and the simulation model’s severity level 1 during 500 epochs. Note that MOANA-base was compared directly with MC2-Net only since this model has been previously compared with other state-of-the-art models, outperforming them [127, 136, 194]. Table 5.3 presents a comparison between MC2-Net, which includes the registration and the artifact correction networks, and MOANA-base models, in three different MRI contrasts: T1w, T2w, and FLAIR. All the tests were realized with 500 epochs. When compared to MC2-Net, MOANA-base outperforms in T2w and FLAIR contrasts, with an increase 52
5.3. RESULTS AND ANALYSIS OF RESULTS Table 5.3: Comparison of the best SSIM and NMI metrics results in MC2-Net and MOANA-base models for three MRI contrasts. Model Contrast Metrics Training Time SSIM NMI (Hours) MC2-Net T1w 0.9891 0.8344 37+59*T2w 0.9787 0.7860 FLAIR 0.9726 0.7698 MOANA-base T1w 0.9745 0.7811 22T2w 0.9792 0.7821 FLAIR 0.9803 0.8030 * Training time for registration and motion correction networks of SSIM value from 0.9787 to 0.9792 and from 0.9726 to 0.9803, respectively, indicating superior structural similarity and better alignment between predicted and ground truth images in these two contrasts. The training time varied across all experiments, depending on the model architecture and parameter configurations. MC2-Net had a substantially longer training time, averaging around 37 hours for the registration network (1000 epochs) and 59 hours for the correction network (500 epochs) [134]. In contrast, the MOANA-base model had significantly shorter training times, completing 500 epochs in approximately 22 hours. This reduction of 63% in training time with the MOANA-base model highlights its efficiency and computational feasibility for practical deployment in real-world scenarios. By tripling the number of training images, as shown in Table 5.4, indicates that utilizing a larger and more varied dataset leads to enhanced model performance. This broader dataset is likely to improve the model’s generalization ability, resulting in more precise predictions. As a result of the increased dataset size, the model underwent training for a total of 1000 epochs. The results show that using the BV generally improves model performance across all contrasts. For example, in FLAIR images with 16 filters, SSIM increases from 0.9455 (without BV) to 0.9647 with BV, while NRMSE decreases from 0.1983 to 0.1559, indicating more accurate image reconstructions. Increasing the NF from 16 to 32 further enhances the model’s performance, even without BV. For instance, in T1w images without BV, SSIM rises from 0.9551 to 0.9601, and NRMSE decreases from 0.1394 to 0.1346. When BV is applied with 32 filters, the improvements are more pronounced. In T1w images, for example, SSIM increases to 0.9682, and NRMSE decreases to 0.1427. The best results are observed when both BV is applied and 32 filters are used. In this configuration, the highest SSIM value is recorded for FLAIR images (0.9771), and the lowest NRMSE (0.1313) indicates the most accurate artifact correction. The training times across different configurations are quite similar, with all models completing in around 3 days and 12 hours. This suggests that the improvements in performance due to the application of BV technique and increased filters do not significantly affect the computational cost. Therefore, both BV and increasing the NF lead to improved model performance, with the combination of BV and 32 filters yielding the best results across all contrast types. 53
CHAPTER 5. PRELIMINARY RESULTS Table 5.4: Comparison of different model parameters and MOANA-base model results for SSIM, NMI, and NRMSE metrics, in dataset B1 and the simulation model’s severity level 1. Parameters Results Training Time BV NF Contrast SSIM NMI NRMSE (D-HH:MM:SS) No 16 T1w 0.9551 0.7613 0.1394 3-11:59:25 T1CE 0.9617 0.7775 0.1609 T2w 0.9573 0.7721 0.2271 FLAIR 0.9455 0.7499 0.1983 Yes 16 T1w 0.9574 0.7642 0.1365 3-12:24:43 T1CE 0.9624 0.7798 0.1570 T2w 0.9605 0.7743 0.1938 FLAIR 0.9647 0.7975 0.1559 No 32 T1w 0.9601 0.7658 0.1346 3-12:08:32 T1CE 0.9674 0.7825 0.1711 T2w 0.9650 0.7849 0.1765 FLAIR 0.9709 0.7942 0.1628 Yes 32 T1w 0.9682 0.7843 0.1427 3-12:25:53 T1CE 0.9749 0.7914 0.1420 T2w 0.9715 0.7927 0.1421 FLAIR 0.9771 0.7968 0.1313 Figure 5.2 shows examples of the output of the correction model after the input of corrupted images in dataset B1 and the simulation model’s severity level 1. As can be observed, the SSIM values of motioncorrupted images are significantly lower than the SSIM values of motion-corrected ones. The average SSIM of the output images from motion-free input images was calculated to be 0.9998, 0.9996, and 0.9997 for T1w, T2w, and FLAIR contrasts, respectively. Another test was conducted to test the model’s effectiveness in correcting artifacts without adding new details. T1w input images were motioncorrupted, while T2w and FLAIR input images were motion-free. In this scenario, the MC2-Net achieved an SSIM of 0.9905, 0.9821, and 0.9746 for T1w, T2w, and FLAIR contrasts, respectively. Moreover, the MOANA-base model achieved values of SSIM equal to 0.9969, 0.9899, and 0.9908 for the same contrasts. These results demonstrate that the model can efficiently correct motion artifacts and identify motion-free images without modifying their information. 5.3.2 High Severity - Level 2 Table 5.5 compares the different model parameters and their respective performance metrics when training MOANA-base using the A1 dataset with the severity level 2 (Subsection 5.3.2) over 500 epochs. The results showed that when the BV was not applied and NF was set to 16, the model’s SSIM values ranged from 0.9235 to 0.9622, NMI scores ranged between 0.6682 to 0.7693, and NRMSE values ranged from 0.1374 to 0.2501. However, the introduction of BV slightly improved the model’s performance in all 54
5.3. RESULTS AND ANALYSIS OF RESULTS T1w Motion-Corrupted Motion-Corrected Motion-Free T1CE T2w FLAIR SSIM 0.7844 SSIM 0.9479 SSIM 0.8209 SSIM 0.9607 SSIM 0.7738 SSIM 0.9430 SSIM 0.7927 SSIM 0.9542 Figure 5.2: Example images of correction in dataset B1 and the simulation model’s severity level 1. Table 5.5: Comparison of different model parameters and MOANA-base model results for SSIM, NMI, and NRMSE metrics, in dataset A1 and the simulation model’s severity level 2. Parameters Results Training Time BV NF Contrast SSIM NMI NRMSE (HH:MM:SS) No 16 T1w 0.9235 0.6682 0.2501 22:02:45T2w 0.9421 0.7392 0.2216 FLAIR 0.9622 0.7693 0.1374 Yes 16 T1w 0.9268 0.6810 0.2302 22:16:19T2w 0.9449 0.7473 0.2097 FLAIR 0.9639 0.7765 0.1362 No 32 T1w 0.9398 0.7386 0.2435 22:03:08T2w 0.9495 0.7531 0.1910 FLAIR 0.9645 0.7791 0.1309 Yes 32 T1w 0.9451 0.7544 0.2289 22:17:50T2w 0.9573 0.7694 0.1518 FLAIR 0.9662 0.7835 0.1283 contrasts, yielding higher SSIM values (ranging from 0.9268 to 0.9639), increased NMI scores (ranging from 0.6810 to 0.7765), and reduced NRMSE values (up to 9% of reduction). Furthermore, the increase in NF from 16 to 32 further enhanced the model’s performance, particularly when used alongside BV process. For example, in the T2w contrast, when NF was increased from 16 to 32 with BV applied, the SSIM value increased from 0.9449 to 0.9573, indicating an improvement in the structural similarity between predicted and ground truth images. Similarly, the NMI score increased from 55
CHAPTER 6. RESULTS AND DISCUSSION Figure 6.1: Generic schema of FL configuration for two clients-setup. The FL Server first sends the initial model to the FL client, thus coordinating the collaboration of multiple clients. The client trains on its local dataset and then sends the model updates back to the FL server to aggregate into a global model. This process forms a single round of FL, and after several rounds, a global model can be developed, adapted from [196]. 2-client configuration, the model needed 3 rounds (300 epochs in total) and 45 hours to complete training. The 4-client configuration required 5 rounds (500 epochs in total) and 75 hours to train the model completely. Lastly, the 8-client used 8 rounds (800 epochs in total) and 120 hours to complete training. Table 6.1: Comparison of MOANA-base and MOANA training parameters. Model Processor Training Images Clients Rounds Epochs Training Time (Hours) MOANA-base GPU 630 1 1 1000 84 MOANA CPU 1260 (630×2) 2 3 300 (100×3) 45 (15×3) 2520 (630×4) 4 5 500 (100×5) 75 (15×5) 5040 (630×8) 8 8 800 (100×8) 120 (15×8) Table 6.2 presents a comparison of various parameters for FL models, evaluating the FedAVG [21] algorithm alongside the MOANA model. The provided information illustrates the performance metrics across different combinations of client numbers and training rounds, using dataset D1 at severity level 1 of the simulation model. For the configuration involving 2 clients, the SSIM values across the various contrasts ranged from a minimum of 0.9524 for T1w to a maximum of 0.9867 for T2w. This indicates that the model excelled in capturing structural similarity with T2w images, while the performance on T1w images was slightly lower but still quite strong. The NMI values for this scenario varied from 0.7556 for T1w up to 0.8260 for T2w, suggesting good levels of mutual information capture. For NRMSE, the metrics ranged from a low 62
6.3. RESULTS Table 6.2: Comparison of different FL model parameters for FedAVG [21] algorithm and MOANA model results for SSIM, NMI, and NRMSE metrics, in dataset D1 and the simulation model’s severity level 1. Parameters Results Training Time per Round Clients Rounds Contrast SSIM NMI NRMSE (HH:MM:SS) 2 3 T1w 0.9524 0.7556 0.1481 14:55:35 T1CE 0.9698 0.7945 0.1391 T2w 0.9867 0.8260 0.1225 FLAIR 0.9615 0.7755 0.1538 4 5 T1w 0.9477 0.7607 0.1562 14:53:22 T1CE 0.9712 0.7975 0.1362 T2w 0.9619 0.7885 0.1301 FLAIR 0.9641 0.7840 0.1333 8 8 T1w 0.9405 0.7109 0.1615 14:57:52 T1CE 0.9443 0.7413 0.1648 T2w 0.9442 0.7329 0.1813 FLAIR 0.9630 0.7909 0.1351 of 0.1225 for T2w to a high of 0.1538 for FLAIR, highlighting relatively low prediction errors, even though with some variation across the different contrasts. When the number of clients was increased to 4, the SSIM values experienced a decline, ranging from 0.9477 for T1w to a peak of 0.9712 for T1CE. This signifies a very slight decrease in the model’s capability to preserve high structural similarity compared with the 2-client setup. The NMI values for 4 clients varied from 0.7607 for T1w to 0.7975 for T1CE. NRMSE values in this scenario spanned from a low of 0.1301 for T2w to a high of 0.1562 for T1w. With 8 clients, the SSIM values declined slightly, with a minimum of 0.9405 for T1w and a maximum of 0.9630 for FLAIR. The NMI values also showed a decrease, especially in T1w contrast with a value of 0.7109. For NRMSE, the values ranged from a minimum of 0.1351 for FLAIR to a maximum of 0.1813 for T2w. The training time per round was relatively stable with all the clients, approximately 15 hours. The results highlight that a higher number of clients necessitates more rounds for convergence of the global model. Moreover, the best overall performance in terms of SSIM, NMI, and NRMSE was achieved with 2 clients due to the more efficient convergence when the data has less variety. It should be emphasized that the model obtained the best result in T2w contrast, compared to the Preliminary Results (Chapter 5). In table 6.3, a comparison of various parameters for FL models using the FedPROX algorithm and the MOANA model is presented. The data provided highlights the performance metrics across different client numbers and training rounds, with a focus on SSIM, NMI, and NRMSE metrics in dataset D1 at severity level 1 of the simulation model. For the scenario with 2 clients, the SSIM values varied from a low of 0.9414 for T1w to a high of 0.9699 for T1CE, indicating solid structural similarity performance, although slightly lower than that observed with 63
CHAPTER 6. RESULTS AND DISCUSSION Table 6.3: Comparison of different FL model parameters for FedPROX [23] algorithm and MOANA model results for SSIM, NMI, and NRMSE metrics, in dataset D1 and the simulation model’s severity level 1. Parameters Results Training Time per Round Clients Rounds Contrast SSIM NMI NRMSE (HH:MM:SS) 2 3 T1w 0.9414 0.7379 0.1601 15:03:27 T1CE 0.9699 0.7931 0.1425 T2w 0.9543 0.7702 0.1573 FLAIR 0.9645 0.7842 0.1332 4 5 T1w 0.9411 0.7579 0.1728 15:01:52 T1CE 0.9442 0.7602 0.1703 T2w 0.9531 0.7707 0.1447 FLAIR 0.9631 0.7897 0.1357 8 8 T1w 0.9401 0.7471 0.1701 15:04:02 T1CE 0.9444 0.7667 0.1659 T2w 0.9436 0.7625 0.1666 FLAIR 0.9629 0.7882 0.1430 the FedAVG algorithm. The NMI metrics ranged between 0.7379 for T1w and 0.7931 for T1CE, presenting a strong capture of mutual information. The NRMSE values spanned from 0.1332 for FLAIR to 0.1601 for T1w. Increasing the number of clients to 4 resulted in SSIM values that lightly decreased, ranging from 0.9411 for T1w to 0.9631 for FLAIR. The NMI values remained strong, with a minimum of 0.7579 for T1w and a maximum of 0.7897 for FLAIR. The NRMSE showed a broader range, with values between 0.1357 for FLAIR and 0.1728 for T1w. With 8 clients, the SSIM values present the minimum being 0.9401 for T1w and the maximum 0.9629 for FLAIR. The NMI varied from 0.7471 for T1w to 0.7872 for FLAIR. The NRMSE values varied more, ranging from 0.1430 for FLAIR to 0.1728 for T1w. Regarding training time per round, it remained relatively stable, around 15 hours, regardless of the number of clients. The results suggest that while the FedPROX algorithm is robust, the best overall performance was achieved with 2 clients, mirroring the observations made with the FedAVG algorithm, and the MOANA model performed best on the T1CE contrast. However, FedPROX achieves lower results when compared with the FedAVG. 6.3.2 High Severity - Level 2 In this testing phase, the MOANA network was trained on dataset D2 under the conditions defined by the simulation model’s severity level 2 (Subsection 5.3.2). The network’s performance was measured with varying numbers of clients, specifically 2, 4, and 8. As with severity level 1, for each contrast, each client is set up to randomly select 12.5% of images from each set. This results in 630 slices for training (12.5% of 5040), 230 slices for validation (12.5% of 1840), and 270 slices for testing (12.5% of 2160). 64
6.3. RESULTS All tests were conducted over 100 epochs, using the BV technique and the NF of 32. This evaluation was conducted for FedAVG [21] and FedPROX [23]. Table 6.4 presents a detailed comparison of the performance metrics, including SSIM, NMI, and NRMSE, across different clients and rounds, using the FedAVG algorithm alongside the MOANA model on dataset D2 at severity level 2. Table 6.4: Comparison of different FL model parameters for FedAVG [21] algorithm and MOANA model results for SSIM, NMI, and NRMSE metrics, in dataset D2 and the simulation model’s severity level 2. Parameters Results Training Time per Round Clients Rounds Contrast SSIM NMI NRMSE (HH:MM:SS) 2 3 T1w 0.9342 0.7108 0.1820 15:00:04 T1CE 0.9527 0.7411 0.1702 T2w 0.9568 0.7282 0.1793 FLAIR 0.9565 0.7430 0.1544 4 5 T1w 0.9365 0.7221 0.1712 15:01:12 T1CE 0.9507 0.7381 0.1625 T2w 0.9485 0.7247 0.1871 FLAIR 0.9524 0.7380 0.1576 8 8 T1w 0.9332 0.7280 0.1659 15:02:06 T1CE 0.9433 0.7350 0.1630 T2w 0.9490 0.7429 0.1667 FLAIR 0.9520 0.7490 0.1457 In the setup involving 2 clients, the SSIM values ranged from 0.9342 for T1w to 0.9568 for T2w, showing a moderate structural similarity that is somewhat lower compared to the results at severity level 1. The NMI values varied from 0.7108 for T1w to 0.7430 for FLAIR, indicating a solid level of mutual information capture but slightly reduced compared to previous results. The NRMSE metrics spanned from 0.1544 for FLAIR to 0.1820 for T1w, reflecting a slightly higher prediction error across the contrasts. When the number of clients increased to 4, the SSIM values remained fairly stable, ranging from 0.9365 for T1w to 0.9524 for FLAIR. The NMI values ranged from 0.7221 for T1w to 0.7380 for FLAIR, indicating consistent information retention, while the NRMSE values varied from 0.1576 for FLAIR to 0.1871 for T2w. For a configuration including 8 clients, the SSIM values showed minimal changes from earlier setups, with figures moving from 0.9332 for T1w to 0.9520 for FLAIR. The NMI noted a minimum value of 0.7280 for T1w and reached up to 0.7490 for FLAIR. As for NRMSE values, there was a slight improvement observed compared with the previous configurations, with the lowest recorded at 0.1457 for FLAIR and the highest at 0.1667 for T2w. The training time per round remained consistent at approximately 15 hours across all client configurations. The results indicate that the model’s performance was generally stable across different numbers of clients, with a slight tendency for better results in the 2-client configuration. However, the increased 65
CHAPTER 6. RESULTS AND DISCUSSION severity level led to a general decrease in performance across all metrics compared to level 1, particularly affecting the SSIM and NMI values. Despite the increased difficulty, the MOANA model showed robust performance, especially in the T2w contrast. Table 6.5 summarizes the performance of the MOANA model using the FedPROX algorithm for dataset D2 under severity level 2 of the simulation model. Table 6.5: Comparison of different FL model parameters for FedPROX [23] algorithm and MOANA model results for SSIM, NMI, and NRMSE metrics, in dataset D2 and the simulation model’s severity level 2. Parameters Results Training Time per Round Clients Rounds Contrast SSIM NMI NRMSE (HH:MM:SS) 2 3 T1w 0.9347 0.7211 0.1823 14:55:24 T1CE 0.9500 0.7357 0.1522 T2w 0.9489 0.7309 0.1799 FLAIR 0.9540 0.7423 0.1494 4 5 T1w 0.9330 0.7274 0.1758 14:59:12 T1CE 0.9497 0.7389 0.1616 T2w 0.9451 0.7370 0.1598 FLAIR 0.9542 0.7393 0.1339 8 8 T1w 0.9484 0.7497 0.1419 15:00:29 T1CE 0.9591 0.7584 0.1478 T2w 0.9582 0.7602 0.1442 FLAIR 0.9601 0.7712 0.1308 For the configuration with 2 clients, the SSIM values ranged from 0.9347 for T1w to 0.9540 for FLAIR, reflecting a strong structural similarity across different image contrasts. The NMI values showed slight variation, from 0.7211 for T1w to 0.7423 for FLAIR. On the other hand, the NRMSE values varied from 0.1494 for FLAIR to 0.1823 for T1w, with errors somewhat elevated compared to severity level 1. When the number of clients increased to 4, SSIM values were slightly lower, ranging from 0.9330 for T1w to 0.9542 for FLAIR. This indicates a minor reduction in structural similarity compared to the 2-client setup. The NMI metrics varied between 0.7274 for T1w and 0.7393 for FLAIR, and the NRMSE values for FLAIR were at 0.1339 and went up to 0.1758 for T1w, demonstrating slightly improved prediction accuracy, compared with 2-client configurations. For the 8-client setup, SSIM values ranged from 0.9484 for T1w to 0.9601 for FLAIR, showing significant change from the 4-client configuration. The NMI values also increased, with a low of 0.7497 for T1w and a high of 0.7712 for FLAIR, indicating improved information capture. The NRMSE values showed a further reduction, with a minimum of 0.1308 for FLAIR and a maximum of 0.1478 for T1CE, suggesting a decrease in prediction error overall. Figure 6.2 presents examples of image correction for various artifacts: motion in T1w, noise in T1CE, aliasing in T2w, and magnetic susceptibility in FLAIR, all corrected using the FedPROX algorithm. As can 66
6.4. DISCUSSION be observed, the SSIM values for the images affected by these artifacts are significantly lower than those of the corresponding corrected images. Figure 6.2: Examples of image correction with artifacts: motion (T1w), noise (T1CE), aliasing (T2w) and magnetic susceptibility (FLAIR) with FedPROX algorithm. Training times per round were relatively consistent, averaging around 15 hours for all client configurations. The results indicate that while the model’s performance was generally stable, there was a notable improvement in prediction accuracy with more clients, particularly for the FLAIR contrast. The MOANA model demonstrated robust performance across different client setups, achieving better results with the 8-client configuration, particularly for the FLAIR contrast images. 6.4 Discussion As the number of clients in a FL setup increases, the variety of data from each client also grows, which means that the model needs to learn a wider range of information. Consequently, more training rounds are required to ensure that the model effectively incorporates the diverse data characteristics. For instance, when transitioning from 2 to 4 clients, the required training rounds increase from 3 to 5. Similarly, moving from 2 to 8 clients increases the number of rounds from 3 to 8. This illustrates that even though the amount of training data increases significantly (doubling from 2 to 4 clients and quadrupling from 2 to 8 clients), the increase in training rounds does not follow the same scale. While the number of training rounds increases, this relationship is not proportional to the number of clients, allowing for optimization in the training process when dealing with the growing complexity and volume of data. Therefore, introducing more data from different clients allows the model to converge more 67
CHAPTER 6. RESULTS AND DISCUSSION quickly since it can access a broader spectrum of information in each iteration, optimizing the learning efficiency. When dealing with severity level 1 data in the simulation model, the FedAVG algorithm demonstrated superior performance. This is mainly because severity level 1 data involves a single type of artifact ( i.e. , motion artifacts), albeit across different instances. The consistent nature of these artifacts allows the model to learn and adapt to a uniform pattern with fewer training rounds. Because the types of artifacts are similar, FedAVG can efficiently average the gradients from different clients and converge more quickly. MOANA achieved the highest results in the T2w contrast, with an SSIM of 0.9867 and an NMI of 0.8260. In contrast, the FedPROX algorithm demonstrated better performance for data with severity level 2, which involves a variety of artifacts. Severity level 2 introduces motion, aliasing, magnetic susceptibility, and noise, leading to increased data complexity and variability. This diversity challenges the model to generalize effectively across different artifact types. The FedPROX algorithm allows the model to adapt to varying data distributions across clients. The effectiveness of FL becomes evident when considering the number of epochs required for the model to perform well. In the initial results (Chapter 5), it was observed that training 630 images (for each contrast) using a single node required 1000 epochs. However, when using FL to train the same number of images with two different nodes (2 clients with 630 images for each client), only 100 epochs and 3 rounds were needed. It represents up to 70% reduction in epochs, significantly optimizing the process. So, the FL enables the model to obtain a similar correction grade more quickly, with a greater variety of images (since each client has different subsets of images) and fewer epochs. Furthermore, compared with the preliminary results (Chapter 5), the dataset expanded significantly, with the number of subjects increasing by 5 times, growing from 248 individuals to 1248. This expansion was accompanied by a substantial rise in the total number of image slices, rising by approximately 10 times, from 3600 to 36160 images. This larger dataset provides a more vigorous basis for analysis, allowing for improved generalization and more reliable results. Concluding, MOANA-base achieved the highest scores in the FLAIR contrast, with an SSIM of 0.9803 and an NMI of 0.8030. Meanwhile, MOANA outperformed in the T2w contrast, reaching an SSIM of 0.9867 and an NMI of 0.8260. This clearly shows that the MOANA , which benefits from both FL and HPC environments, exceeded the performance compared to the non-distributed MOANA-base model, particularly regarding artifact correction. It’s important to note that most artifacts, such as motion, aliasing, and noise, are effectively corrected through the FL process. By distributing image subsets across clients, the model becomes more robust in addressing these common issues, resulting in more reliable outcomes. However, it’s worth mentioning that magnetic susceptibility correction doesn’t show the same level of improvement. Despite the enhanced training speed and artifact correction, susceptibility artifacts remain more resistant to correction, which suggests that specific techniques or additional refinements may be necessary to address this challenge more effectively. 68
7 Conclusion and Future Work This dissertation presents a thorough analysis of the application of Deep Learning (DL) algorithms for the correction of artifacts in brain Magnetic Resonance Imaging (MRI) scans using Federated Learning (FL) in High-Performance Computing (HPC) environments. The primary objective of this research was to enhance the methodologies related to artifact correction, assuring data privacy, and achieving improved computational efficiency. To that end, a system named MOANA was developed, integrating simulation and correction models to address different artifacts: motion, aliasing, magnetic susceptibility, and noise. Answering the proposed research questions, this work demonstrated that various DL architectures, particularly Convolutional Neural Networks(CNNs), can be effectively employed to correct artifacts in MRI images. By refining these architectures, the study enhances a highly effective model in correcting motion artifacts, as well as aliasing and noise, thus improving the accuracy of artifact correction methods. Further, HPC environment significantly enhanced the computational efficiency of the DL model. By utilizing parallelization strategies, the training processes were accelerated, enabling the handling of larger datasets within shorter time frames, ultimately leading to improved performance in artifact correction tasks. FL was successfully deployed to facilitate collaborative model training across multiple devices without transferring sensitive patient data. This approach not only promoted security and privacy but also allowed the model to adapt more effectively as the number of clients increased, leading to faster convergence and greater learning efficiency while ensuring compliance with privacy regulations. Therefore, as the numbers of clients increase, the model sees more data varieties and requires more training rounds for successful convergence. However, the relationship between training rounds and the number of clients is not proportional, which allows faster model convergence and enhances the overall learning efficiency and optimization in the training process. This adaptability is reflected in improved algorithm performance within simpler artifact data (less diversity of artifacts) using FedAVG and for more complex multi-artifact data using FedPROX. Results show that FL accelerates the training and further improves the generalization across different data distributions, yielding efficient artifact correction for most cases. With such development, the study noted several challenges faced, especially in correcting magnetic susceptibility artifacts, which are resistant to the techniques at hand. Furthermore, reliance on simulated 69
CHAPTER 7. CONCLUSION AND FUTURE WORK data points toward dependency, which must be overcome to have a more general repository of real, artifact-corrupted MRI scans to fully validate and improve artifact correction models. Thus, future work should focus on establishing more efficient artifact correction techniques, such as magnetic susceptibility correction, by implementing advanced FL algorithms or hybrid models. The availability of different and high-quality datasets should also be increased in future work. Overcoming these challenges will contribute to correcting artifacts in medical imaging and improving medical diagnosis. Concluding, the integration of DL, HPC, and FL significantly enhanced the overall effectiveness of artifact correction in brain MRI scans. The combined methodologies resulted in superior algorithm performance, particularly when dealing with complex and diverse artifact data. This demonstrates that leveraging these approaches can yield more effective solutions for artifact correction in medical imaging. 70
Bibliography [1] J. T. Bushberg and J. M. Boone. The essential physics of medical imaging . Lippincott Williams and Wilkins, 2011. [2] T. Budrys et al. “Artifacts in magnetic resonance imaging: how it can really affect diagnostic image quality and confuse clinical diagnosis?” In: Journal of Vibroengineering 20.2 (2018), pp. 1202– 1213. [3] K. Sommer et al. “Correction of motion artifacts using a multiscale fully convolutional neural network”. In: American Journal of Neuroradiology 41.3 (2020), pp. 416–423. [4] E. Pusey et al. “Aliasing artifacts in MR imaging”. In: Computerized medical imaging and graphics 12.4 (1988), pp. 219–224. [5] S. Balac and G. Caloz. “Magnetic susceptibility artifacts in magnetic resonance imaging: calculation of the magnetic field disturbances”. In: IEEE transactions on magnetics 32.3 (1996), pp. 1645–1648. [6] P. J. Basser and S. Pajevic. “Statistical artifacts in diffusion tensor MRI (DT-MRI) caused by background noise”. In: Magnetic Resonance in Medicine: An Official Journal of the International Society for Magnetic Resonance in Medicine 44.1 (2000), pp. 41–50. [7] About DICOM: Overview . url: https://www.dicomstandard.org/about. [8] Data Format Working Group (DFWG). NIfTI: Neuroimaging Informatics Technology Initiative . url: https://nifti.nimh.nih.gov/. [9] Z. Li et al. “Large-scale retrieval for medical image analytics: A comprehensive review”. In: Medical image analysis 43 (2018), pp. 66–84. [10] V. Spieker et al. “Deep Learning for Retrospective Motion Correction in MRI: A Comprehensive Review”. In: arXiv preprint arXiv:2305.06739 (2023). [11] P. Grun. “Introduction to infiniband for end users”. In: White paper, InfiniBand Trade Association 55 (2010). [12] J. Fagan. Why High-Performance Computing is Important to Healthcare | NetApp Blog . url: https: //www.netapp.com/blog/why-high-performance-computing-is-important-to-healthcare/. 71
BIBLIOGRAPHY [110] High Performance Computing and deep learning in medicine: Enhancing physicians, helping patients | Shaping Europe’s digital future . url: https://digital-strategy.ec.europa.eu/en/news/highperformance-computing-and-deep-learning-medicine-enhancing-physicians-helping-patients. [111] What is High Performance Computing | NetApp . url: https://www.netapp.com/data-storage/ high-performance-computing/what-is-hpc/. [112] Deep Learning on High Performance Computing platforms accelerates Human Brain Mapping | Shaping Europe’s digital future . url: https://digitalstrategy.ec.europa.eu/en/news/deeplearning-high-performance-computing-platforms-accelerates-human-brain-mapping. [113] K. V. Sarma et al. “Federated learning improves site performance in multicenter deep learning without data sharing”. In: Journal of the American Medical Informatics Association 28.6 (2021), pp. 1259–1264. [114] H. Guan et al. “Federated learning for medical image analysis: A survey”. In: Pattern Recognition (2024), p. 110424. [115] C. Zhang et al. “A survey on federated learning”. In: Knowledge-Based Systems 216 (2021), p. 106775. [116] K. Houidi et al. “Federated Learning Models for Real-Time IoT: A Survey”. In: 2024 IEEE 27th International Symposium on Real-Time Distributed Computing (ISORC) . IEEE. 2024, pp. 1–6. [117] A. Nilsson et al. “A performance evaluation of federated learning algorithms”. In: Proceedings of the second workshop on distributed infrastructures for deep learning . 2018, pp. 1–8. [118] S. T. Ahmed et al. “FedOPT: federated learning-based heterogeneous resource recommendation and optimization for edge computing”. In: Soft Computing (2024), pp. 1–12. [119] X. Yuan and P. Li. “On convergence of FedProx: Local dissimilarity invariant bounds, non-smoothness and beyond”. In: Advances in Neural Information Processing Systems 35 (2022), pp. 10752– 10765. [120] T. Küstner et al. “Retrospective correction of motion-affected MR images using deep learning frameworks”. In: Magnetic resonance in medicine 82.4 (2019), pp. 1527–1540. [121] D. P. Kingma and M. Welling. “Auto-encoding variational bayes”. In: arXiv preprint arXiv:1312.6114 (2013). [122] K. Armanious et al. “MedGAN: Medical image translation using GANs”. In: Computerized medical imaging and graphics 79 (2020), p. 101684. [123] P. M. Johnson and M. Drangova. “Conditional generative adversarial network for 3D rigid-body motion correction in MRI”. In: Magnetic resonance in medicine 82.3 (2019), pp. 901–910. [124] M. Mirza and S. Osindero. “Conditional generative adversarial nets”. In: arXiv preprint arXiv:1411.1784 (2014). 78
BIBLIOGRAPHY [125] X. Bian, S. N. Lim, and N. Zhou. “Multiscale fully convolutional network with application to industrial inspection”. In: 2016 IEEE winter conference on applications of computer vision (WACV) . IEEE. 2016, pp. 1–8. [126] J. Liu et al. “Motion artifacts reduction in brain MRI by means of a deep residual network with densely connected multi-resolution blocks (DRN-DCMB)”. In: Magnetic resonance imaging 71 (2020), pp. 69–79. [127] O. Ronneberger, P. Fischer, and T. Brox. “U-net: Convolutional networks for biomedical image segmentation”. In: Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015: 18th International Conference, Munich, Germany, October 5-9, 2015, Proceedings, Part III 18 . Springer. 2015, pp. 234–241. [128] J. Chen and F. Li. “Denoising convolutional neural network with mask for salt and pepper noise”. In: IET Image Processing 13.13 (2019), pp. 2604–2613. [129] K. Pawar et al. “Clinical utility of deep learning motion correction for T1 weighted MPRAGE MR images”. In: European Journal of Radiology 133 (2020), p. 109384. [130] C. Szegedy et al. “Inception-v4, inception-resnet and the impact of residual connections on learning”. In: Proceedings of the AAAI conference on artificial intelligence . Vol. 31. 1. 2017. [131] H. Li and J. Liu. “3D High-quality magnetic resonance image restoration in clinics using deep learning”. In: arXiv preprint arXiv:2111.14259 (2021). [132] Y. Zhang et al. “Image super-resolution using very deep residual channel attention networks”. In: Proceedings of the European conference on computer vision (ECCV) . 2018, pp. 286–301. [133] B. A. Duffy et al. “Retrospective motion artifact correction of structural MRI images using deep learning improves the quality of cortical surface reconstructions”. In: NeuroImage 230 (2021), p. 117756. [134] J. Lee, B. Kim, and H. Park. “MC2-net: motion correction network for multi-contrast brain MRI”. In: Magnetic Resonance in Medicine 86.2 (2021), pp. 1077–1092. [135] Normalized Mutual Information (NMI) for Cluster Analysis - File Exchange - MATLAB Central . url: https : / / www . mathworks . com / matlabcentral / fileexchange / 130784 - normalized - mutual - information-nmi-for-cluster-analysis. [136] K. He et al. “Deep residual learning for image recognition”. In: Proceedings of the IEEE conference on computer vision and pattern recognition . 2016, pp. 770–778. [137] J.-Y. Zhu et al. “Unpaired image-to-image translation using cycle-consistent adversarial networks”. In: Proceedings of the IEEE international conference on computer vision . 2017, pp. 2223–2232. [138] L. Zhang et al. “Motion correction in MRI using deep learning and a novel hybrid loss function”. In: arXiv preprint arXiv:2210.14156 (2022). [139] K. Pawar et al. “Suppressing motion artefacts in MRI using an Inception-ResNet network with motion simulation augmentation”. In: NMR in Biomedicine 35.4 (2022), e4225. 79
BIBLIOGRAPHY [140] B. A. Duffy et al. “Retrospective correction of motion artifact affected structural MRI images using deep learning of simulated motion”. In: Medical Imaging with Deep Learning . 2022. [141] Welcome to the Autism Brain Imaging Data Exchange! Accessed 28 October 2023. 2017. url: https://fcon_1000.projects.nitrc.org/indi/abide/. [142] W. Li et al. “On the compactness, efficiency, and representation of 3D convolutional networks: brain parcellation as a pretext task”. In: Information Processing in Medical Imaging: 25th International Conference, IPMI 2017, Boone, NC, USA, June 25-30, 2017, Proceedings 25 . Springer. 2017, pp. 348–360. [143] K. Usui et al. “Evaluation of motion artefact reduction depending on the artefacts’ directions in head MRI using conditional generative adversarial networks”. In: Scientific Reports 13.1 (2023), p. 8526. [144] L. Cui et al. “Motion artifact reduction for magnetic resonance imaging with deep learning and k-space analysis”. In: PloS one 18.1 (2023), e0278668. [145] P. Isola et al. “Image-to-image translation with conditional adversarial networks”. In: Proceedings of the IEEE conference on computer vision and pattern recognition . 2017, pp. 1125–1134. [146] N. M. Singh et al. “Data Consistent Deep Rigid MRI Motion Correction”. In: arXiv preprint arXiv:2301.10365 (2023). [147] R. M. Cichy and D. Kaiser. “Deep neural networks as scientific models”. In: Trends in cognitive sciences 23.4 (2019), pp. 305–317. [148] J.-W. Wang et al. “Evolving hypernetwork model”. In: The European Physical Journal B 77 (2010), pp. 493–498. [149] H. Nahas et al. “A deep learning approach to resolve aliasing artifacts in ultrasound color flow imaging”. In: IEEE Transactions on Ultrasonics, Ferroelectrics, and Frequency Control 67.12 (2020), pp. 2615–2628. [150] D. Lee, J. Yoo, and J. C. Ye. “Deep artifact learning for compressed sensing and parallel MRI”. In: arXiv preprint arXiv:1703.01120 (2017). [151] S. T. Duong et al. “An unsupervised deep learning technique for susceptibility artifact correction in reversed phase-encoding EPI images”. In: Magnetic Resonance Imaging 71 (2020), pp. 1–10. [152] S. T. Duong et al. “Correcting susceptibility artifacts of MRI sensors in brain scanning: a 3D anatomy-guided deep learning approach”. In: Sensors 21.7 (2021), p. 2314. [153] M. Kidoh et al. “Deep learning based noise reduction for brain MR imaging: tests on phantoms and healthy volunteers”. In: Magnetic resonance in medical sciences 19.3 (2020), pp. 195–206. [154] X. Yan et al. “A self-guided deep learning technique for mri image noise reduction”. In: Journal of Theory and Practice of Engineering Science 4.01 (2024), pp. 109–117. 80
BIBLIOGRAPHY [155] U. P. Singh et al. “Multilayer convolution neural network for the classification of mango leaves infected by anthracnose disease”. In: IEEE access 7 (2019), pp. 43721–43729. [156] F. Isensee et al. “No new-net”. In: Brainlesion: Glioma, Multiple Sclerosis, Stroke and Traumatic Brain Injuries: 4th International Workshop, BrainLes 2018, Held in Conjunction with MICCAI 2018, Granada, Spain, September 16, 2018, Revised Selected Papers, Part II 4 . Springer. 2019, pp. 234– 244. [157] TensorFlow . url: https://www.tensorflow.org/. [158] Keras: Deep Learning for humans . url: https://keras.io/. [159] PyTorch . url: https://pytorch.org/. [160] MATLAB . url: https://www.mathworks.com/products/matlab.html. [161] The Microsoft Cognitive Toolkit - Cognitive Toolkit - CNTK | Microsoft Learn . url: https://learn. microsoft.com/en-us/cognitive-toolkit/. [162] Alzheimer’s Disease Neuroimaging Initiative . Accessed 28 October 2023. 2017. url: https://adni. loni.usc.edu/. [163] Connectome Coordination Facility (CCF. HCP Young adults . Accessed 29 October 2023. 2017. url: https://www.humanconnectome.org/. [164] Center for Biomedical Image Computing and Analytics (CBICA). Multimodal Brain Tumor Segmentation Challenge 2020: Data . Accessed 29 October 2023. 2020. url: https://www.med.upenn. edu/cbica/brats2020/data.html. [165] Biomedical Image Analysis Group,) IXI Dataset . Accessed 29 October 2023. url: https://braindevelopment.org/ixi-dataset/. [166] Dryad | Data – Multi-modal ultra-high resolution structural 7-Tesla MRI data repository . url: https: //datadryad.org/stash/dataset/doi:10.5061/dryad.fb41s. [167] VGG-16 convolutional neural network - MATLAB vgg16 . url: https://www.mathworks.com/help/ deeplearning/ref/vgg16.html. [168] I. Drobnjak et al. “Development of a functional magnetic resonance imaging simulator for modeling realistic rigid-body motion artifacts”. In: Magnetic Resonance in Medicine: An Official Journal of the International Society for Magnetic Resonance in Medicine 56.2 (2006), pp. 364–380. [169] GitHub - Yonsei-MILab/MRI-Motion-Artifact-Simulation-Tool — github.com . url: https://github. com/Yonsei-MILab/MRI-Motion-Artifact-Simulation-Tool. [170] S. C. Bushong and G. Clarke. Magnetic resonance imaging: physical and biological principles . Elsevier Health Sciences, 2003. [171] R. Dzwonczyk et al. “Electrical noise in the intraoperative magnetic resonance imaging setting”. In: Anesthesia & Analgesia 108.1 (2009), pp. 181–186. [172] Magnetic Susceptibility Artifact MRI . url: https://mrimaster.com/magnetic-susceptibility-artifact/. 81
BIBLIOGRAPHY [173] NVIDIA FLARE — NVIDIA FLARE 2.4.0 documentation . url: https://nvflare.readthedocs.io/en/ main/. [174] H. R. Roth et al. “Nvidia flare: Federated learning from simulation to real-world”. In: arXiv preprint arXiv:2210.13291 (2022). [175] H. R. Roth et al. “Empowering federated learning for massive models with nvidia flare”. In: arXiv preprint arXiv:2402.07792 (2024). [176] Deep Learning Frameworks | NVIDIA Developer | NVIDIA Developer . url: https://developer. nvidia.com/deep-learning-frameworks. [177] What is an Application Programming Interface (API)? | IBM . url: https://www.ibm.com/topics/ api. [178] CUDA Toolkit - Free Tools and Training | NVIDIA Developer . url: https://developer.nvidia.com/ cuda-toolkit. [179] Sci-Hub | Deep Learning With TensorFlow: A Review. Journal of Educational and Behavioral Statistics, 45(2), 227–248 | 10.3102/1076998619872761 . url: https://sci-hub.se/10.3102/10769 98619872761. [180] TensorBoard | TensorFlow . url: https://www.tensorflow.org/tensorboard. [181] Keras: The high-level API for TensorFlow . url: https://www.tensorflow.org/guide/keras?hl=en. [182] World Leader in Artificial Intelligence Computing | NVIDIA . url: https://www.nvidia.com/en-us/. [183] From Local to Federated — NVIDIA FLARE 2.4.0 documentation . url: https://nvflare.readthedocs. io/en/main/programming_guide/execution_api_type.html. [184] FL Algorithms — NVIDIA FLARE 2.4.0 documentation . url: https://nvflare.readthedocs.io/en/2 .4/examples/fl_algorithms.html. [185] Workflows and Controllers — NVIDIA FLARE 2.4.0 documentation . url: https://nvflare.readthedocs. io/en/main/programming_guide/workflows_and_controllers.html. [186] Shareable — NVIDIA FLARE 2.4.0 documentation . url: https://nvflare.readthedocs.io/en/main/ programming_guide/shareable.html. [187] Data Exchange Object (DXO) — NVIDIA FLARE 2.4.0 documentation . url: https://nvflare.readthedocs. io/en/main/programming_guide/data_exchange_object.html. [188] FLComponent — NVIDIA FLARE 2.4.0 documentation . url: https://nvflare.readthedocs.io/en/ main/programming_guide/fl_component.html. [189] FLContext — NVIDIA FLARE 2.4.0 documentation . url: https://nvflare.readthedocs.io/en/main/ programming_guide/fl_context.html. [190] N. Hewage and D. Meedeniya. “Machine learning operations: A survey on MLOps tool support”. In: arXiv preprint arXiv:2202.10169 (2022). 82
BIBLIOGRAPHY [191] M. Zaharia et al. “Accelerating the machine learning lifecycle with MLflow.” In: IEEE Data Eng. Bull. 41.4 (2018), pp. 39–45. [192] A. Chen et al. “Developments in mlflow: A system to accelerate the machine learning lifecycle”. In: Proceedings of the fourth international workshop on data management for end-to-end machine learning . 2020, pp. 1–4. [193] BRaTS 2021 Task 1 Dataset . url: https://www.kaggle.com/datasets/dschettler8845/brats-202 1-task1?resource=download. [194] I. Goodfellow et al. “Advances in neural information processing systems”. In: Curran Associates, Inc 27 (2014), pp. 2672–2680. [195] url: https://top500.org/system/180238/. [196] What is Federated Learning? 2.4.0 documentation — nvflare.readthedocs.io . url: https://nvflare. readthedocs.io/en/main/fl_introduction.html. TheNOVAthesistemplate(v7.1.11)[1].(12cc90221730b8ba41bb3b1f8b517acd) Bibliography [1] J.M.Lourenço.TheNOVAthesisL A T E XTemplateUser’sManual.NOVAUniversityLisbon.2021.URL:https://github.com/joaomlourenco/novathesis/raw/main/template.pdf. 83