Full text
Universidade do Minho Escola de Engenharia João Pedro Aarão Videiros Freitas Automatic Multi-View Pose Estimation in Focused Cardiac Ultrasound outubro de 2022
Universidade do Minho Escola de Engenharia João Pedro Aarão Videiros Freitas Automatic Multi-View Pose Estimation in Focused Cardiac Ultrasound Dissertação de Mestrado Mestrado Integrado em Engenharia Biomédica Trabalho efetuado sob a orientação de: Professor Doutor Jaime Francisco Cruz Fonseca Doutor Sandro Filipe Monteiro Queirós outubro de 2022
DIREITOS DE AUTOR E CONDIÇÕES DE UTILIZAÇÃO DO TRABALHO POR TERCEIROS Este é um trabalho académico que pode ser utilizado por terceiros desde que respeitadas as regras e boas práticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licença abaixo indicada. Caso o utilizador necessite de permissão para poder fazer um uso do trabalho em condições não previstas no licenciamento indicado, deverá contactar o autor, através do RepositóriUM da Universidade do Minho. Licença concedida aos utilizadores deste trabalho https://creativecommons.org/licenses/by-nc/4.0/ ii
AGRADECIMENTOS Ao meu orientador, Professor Doutor Jaime Fonseca, agradeço pela oportunidade e orientação prestada ao longo de todo este trabalho. Ao meu coorientador, Doutor Sandro Queirós, estou-lhe grato por todo o apoio e orientação, paciência e disponibilidade, ajuda e aconselhamento prestados ao longo deste trabalho, que, sem dúvida, contribuíram para o meu crescimento pessoal e profissional. A todos os professores com quem me cruzei ao longo destes 5 anos, agradeço por todos os conhecimentos e competências transmitidos durante este percurso académico. A todos os meus amigos e colegas de curso, estou-lhes grato pelos momentos, pelas histórias, pelo companharismo e apoio ao longo de toda esta etapa da minha vida. À minha família, em especial aos meus pais e irmão, estou-lhes grato por todo o apoio e carinho inestimáveis. Agradeço-lhes por todo o amor incondicional e por todos os ensinamentos transmitidos, os quais fazem de mim a pessoa que sou hoje. The work present in this project was performed in the Life and Health Sciences Research Institute (ICVS, School of Medicine) and in Centro ALGORITMI (School of Engineering), University of Minho. Financial support was provided by National funds, through the Foundation for Science and Technology (FCT) - project PTDC/EMD-EMD/1140/2020. 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. iv
RESUMO Determinação Automática da Pose de Imagens de Ecocardiografia Point-of-care A ecocardiografia point-of-care (do inglês focused cardiac ultrasound , FoCUS) permite a avaliação das estruturas cardiovasculares e da sua função, por meio da imagem ultrassonográfica, na modalidade point-of-care . Em situações de emergência e cuidados intensivos, o FoCUS é fundamental para acelerar a avaliação e o diagnóstico da função cardíaca, vital em situações críticas. No entanto, quando comparado com o exame de ecocardiografia convencional, o FoCUS difere no equipamento utilizado (qualidade inferior), no alcance do exame (conjunto limitado de vistas) e no operador (geralmente menos experiente), aspetos que fazem do FoCUS um exame essencialmente qualitativo. Com o objetivo de explorar o potencial do FoCUS na avaliação quantitativa da função cardíaca em ambiente tridimensional, esta tese focou no desenvolvimento de um algoritmo que estime automaticamente a relação espacial entre as cinco vistas cardíacas padrão de um exame de FoCUS. A pose relativa entre estas permitiria representar todas no mesmo espaço tridimensional, mitigando assim a principal barreira para a aplicação de métodos de análise 3D a este tipo de exames. No entanto, uma limitação inerente ao desenvolvimento deste tipo de algoritmos encontra-se relacionada com a falta de datasets cardíacos que contemplem imagem e respetiva pose 3D. Para ultrapassar esta limitação, uma pipeline para a geração de um dataset de FoCUS realista, com a imagem e a sua respetiva pose, foi desenvolvida com a utilização de um simulador de ultrassom e um método baseado em redes generativas adversárias para translação de imagem para imagem. Com o recurso ao dataset gerado, uma framework para estimação da pose foi desenvolvida, sendo constituída por três módulos. O primeiro propõe o uso de redes neuronais convolucionais para a regressão de mapas de calor, os quais representam as áreas mais prováveis de interseção entre as imagens de entrada. No segundo módulo, linhas representativas destas interseções são extraídas com recurso a um algoritmo de procura em grelha. Por fim, estas linhas são usadas para criar um sistema de equações não-lineares, cuja solução traduz a pose relativa 3D entre as vistas de interesse. Após provar a viabilidade da pipeline proposta para a geração de imagens realistas de FoCUS, incluindo a presença de ruído speckle e artefactos de sombra, um conjunto de testes foi realizado para validar a framework proposta. No geral, o método de regressão de mapas de calor provou ser viável e preciso, superando as baselines em todas as métricas de avaliação. De igual forma, o método de posicionamento de vistas em 3D demonstrou a sua viabilidade para a estimação da pose. Em suma, estes resultados demonstram o potencial da framework desenvolvida em contexto clínico. Palavras chave: Ultrassonografia cardíaca, Deep learning , Geração sintética de imagem, Determinação automática da pose, Análise de imagens médicas v
ABSTRACT Automatic Multi-View Pose Estimation in Focused Cardiac Ultrasound Focused cardiac ultrasound (FoCUS) allows the assessment of cardiovascular structures and their function using ultrasound imaging, in a point-of-care modality. In emergency and intensive care departments, FoCUS is seen as a key tool to accelerate evaluation and diagnosis of patients’ cardiac function, vital in critical situations. However, compared to a conventional echocardiography exam, FoCUS differs in the equipment used (inferior quality), in the examination scope (limited set of views) and in the operators (usually less experienced), which make FoCUS a primarily qualitative exam. Aiming to ultimately explore FoCUS’ potential to assess cardiac function quantitatively and three dimensionally, the focus of this thesis was to develop an algorithm that automatically estimates the spatial relationship between five standard FoCUS cardiac views. The relative pose between views would allow to represent all in the same three-dimensional (3D) coordinate system, thus mitigating the major barrier towards the application of 3D cardiac image analysis methods to FoCUS exams. However, a first drawback in the development of said algorithm is the lack of datasets that contemplate both FoCUS images and their 3D pose. To first tackle this limitation, an automatic pipeline for the generation of realistically looking (synthetic) FoCUS datasets, with both image and pose data, was developed using an ultrasound simulator and an image-to-image translation method. Leveraging of the created dataset, a novel framework for pose estimation contemplating three stages was implemented. In the first stage, a convolutional neural network based on an encoderdecoder architecture is proposed to regress line-based heatmaps representing the most likely areas of intersection between input images. In the second stage, the lines that best fit the regressed heatmaps are extracted through a multi-resolution grid search algorithm. In the final stage, the previously identified lines are used to create a system of non-linear equations, whose solution traduces the relative 3D pose between all input views. After proving the feasibility of the proposed pipeline for the generation of images with realistic appearances, including US-specific features like speckle noise and shadowing artifacts, a set of experiments were performed to validate the proposed framework. Overall, the developed heatmap regression method proved to be feasible and accurate, outperforming the implemented baselines in all evaluation metrics. Similarly, the 3D view positioning method showed its feasibility for pose estimation. Altogether, the results for the developed framework are promising, suggesting its usefulness in a future clinical context. Keywords: Cardiac ultrasound, Deep learning, Synthetic image generation, Automatic pose estimation, Medical image analysis vi
TABLE OF CONTENTS Agradecimentos iii Resumo v Abstract vi List of Acronyms ix List of Figures xi List of Tables xiv 1Introduction 1 1.1 The heart: anatomy and physiology 1 1.2 Cardiovascular imaging 3 1.3 Echocardiography 5 1.3.1 Fundamentals 5 1.3.2 2D and 3D Imaging 9 1.3.3 Cardiac function quantification 10 1.4 Focused cardiac ultrasound 11 1.4.1 FoCUS views 13 1.5 Motivation 15 1.6 Aims and contributions 16 1.7 Outline 16 2State-of-the-art 18 2.1 Spatial descriptions and transformations 18 2.1.1 Position, orientation and frame 18 2.1.2 Frame-to-frame mappings 20 2.2 Deep learning 21 2.2.1 Supervised and unsupervised learning 22 2.2.2 Artificial Neural Networks 22 2.2.3 Convolutional neural networks 25 2.2.4 UNet 27 2.3 Heatmap regression 28 2.3.1 Keypoints/landmark detection methods 29 2.3.2 Line regression 31 2.4 Synthetic image generation 32 2.4.1 Ultrasound simulation 33 vii
Table of Contents viii 2.4.2 Generative adversarial networks 34 2.4.3 GAN-based image-to-image translation 35 3Automatic generation of synthetic FoCUS images 38 3.1 Methods 38 3.1.1 Anatomical meshes’ generation 38 3.1.2 US simulation 40 3.1.3 Image-to-image translation 46 3.2 Results and discussion 47 3.3 Conclusion 52 4Pose estimation algorithm 53 4.1 Methods 53 4.1.1 Heatmap regression 54 4.1.2 Line extraction 59 4.1.3 3D view positioning 61 4.2 Results and discussion 63 4.2.1 Dataset 63 4.2.2 Evaluation metrics 64 4.2.3 Network performance 65 4.2.4 Pose estimation performance 76 4.3 Conclusion 78 5Conclusion and future developments 79 Bibliography 81
1 INTRODUCTION This chapter introduces the thematic of this thesis (anatomy and function of the heart, the principles of cardiac ultrasound and the basic ideas of focused cardiac ultrasound) and afterwards presents its motivation, aims and contributions. 1.1 The heart: anatomy and physiology Hollowed and cone-shaped, the heart is a muscular organ responsible for pumping blood across the countless vessels of the entire body [1]. A healthy heart can contract about 108,000 times each day, or nearly 3 billion times in an average human lifetime [2]. The size and weight of the heart are dependent on relevant variables such as gender, age and physical activity. However, in adulthood, the size of the heart usually resembles a closed fist and its weight can fluctuate between 250 and 350 g. This vital organ is situated in a region called the mediastinum, placed between the lungs, in the thoracic cavity (Figure 1A). The heart’s base is, in fact, the upper part and is situated at the level of the third costal arch. The apex is the lower left tip of the heart, and is located near the intersection of the fourth and fifth ribs [1,2]. The heart is composed of two different types of chambers (Figure 1B): the atria (upper chambers) and the ventricles (lower chambers). There are four chambers in total, two of each kind. The atria Figure 1: (A) Location of the heart. (B) Heart’s internal anatomy. Adapted from [1,2]. 1
1.1. The heart: anatomy and physiology 2 work as collecting chambers before contracting and pumping blood into the lower adjacent chambers. On the other hand, the ventricles serve as the main contractile structures of the heart, directing the blood flow to the rest of the body. Separating the atria and the ventricles are muscular tissues known as interatrial and interventricular septa, respectively [1,2]. This arrangement is essential to fullfilled the main goals of the heart: (a) to pump blood through the vessels to the entire body, ensuring the transport of all nutrients that cells need; (b) to regulate the blood flow; (c) to separate the oxygenated blood from the deoxygenated one [1,3]. Surrounding and protecting the heart, the pericardium is a two-layered enveloping tissue that, simultaneously, restricts the position of the heart, but also ensures sufficient motion, allowing faster and stronger contractions [1]. Between the layers is pericardial fluid (an oily fluid), which decreases the friction associated to the heart’s movement [2]. With respect to the muscular wall of the heart, it is composed by three heterogeneous layers: the epicardium (inner layer of the pericardium), the myocardium and the endocardium. The myocardium, middle layer, is a cardiac muscle tissue that is the main component of the heart’s wall. This thick layer is responsible for the contractile force, which is associated with the pumping process. Therefore, this layer is thicker around the ventricles in relation to the atria. The inner layer, the endocardium, is a delicate layer that involves the heart’s chambers and valves [1,2]. The heart is an important part of the cardiovascular system, which branches into two distinct pathways: the pulmonary and the systemic circulation. The pulmonary circulation is responsible for carrying the blood to and from the cells of the lungs, while the systemic circuit provides transport through all tissues of the body [2,4]. Blood flow is unidirectional, meaning that blood must pass throught the heart twice in a single cardiac cycle [3]. Thus, starting from the right atrium (RA), it collects blood from the vena cavae (superior and inferior) before directing it to the inferior adjacent chamber, which is the right ventricle (RV). The contractile function of the ventricle ensures that the blood is expelled through the pulmonary artery into the cells of the lungs. In the capillaries, owing to the fact that the blood has a lower concentration of oxygen and a higher concentration of carbon dioxide, an exchange of these gases takes place (oxygenation of the blood). The oxygenated flow returns to the heart, through the pulmonary veins to the left atrium (LA), before circulating into the left ventricle (LV). There, the ejection force exerted by the thick walls of the ventricle pushes the blood into the aorta, which carries the oxygenated blood to all cells [1,3,4]. Between each atrium and the adjoining ventricle, there is a structure, term atrioventricular valve, which controls the flow between both chambers. On the left side, it is called the bicuspid or mitral valve (MV); on the right side, the tricuspid valve (TV). The pulmonary and aortic valve (AV), also known as semilunar valves, separate the right and left ventricles from their respective outgoing arteries. Normally, a healthy heart can contract 60 to 100 beats per minute when relaxed, resulting in an average time of 0.6 to 1 s between each cardiac cycle [2].
1.2. Cardiovascular imaging 3 The secret of the heart’s lifelong pumping activity lies in an intrinsic, repetitive electrical stimulation activity that emanates from self-excitable muscle tissue called autorhythmic fibers. These fibers enable the generation and transmission of electrical stimuli that are responsible for the contraction behaviour of the heart chambers, known as conduction system [1,3,5]. The cardiac cycle is divided into three distinct phases (Figure 2) related to the contraction (systole) and relaxation (diastole) of atria and ventricles. During atrial systole, blood flows through the atrioventricular valves in the direction of the ventricles. The semilunar valves remain closed, preventing blood from flowing into the arteries. Meanwhile, the ventricles contract (ventricular systole) and exert pressure that forces the two semilunar valves to open. The atrioventricular valves close to prevent reversal of flow direction. Simultaneous with ventricular systole, the atria are now in a resting state called atrial diastole. In the latest phase, both the ventricles and the atria are in diastole. Since both atrioventricular valves are now open, blood enters the heart and fills all chambers [1–3]. The duration of atrial and ventricular systole is usually 0.1 and 0.3 s, respectively. The relaxation phase lasts, normally, 0.4 s [1]. Figure 2: Cardiac cycle stages. Adapted from [6]. 1.2 Cardiovascular imaging Constant advances and innovations in the field of cardiovascular imaging have contributed to the success of these applications in the diagnosis of various cardiovascular pathologies. These improvements contribute to earlier detection of these diseases, which may translate into faster and more accurate treatment. There are a plethora of different modalities and approaches that can help the physicians. The choice depends on relevant factors such as the nature of the disease, the medical field, and other variables that are correlated with the benefits of each modality. Imaging modalities of greater importance in cardiology include magnetic resonance imaging, computed tomography,
1.2. Cardiovascular imaging 4 nuclear imaging (positron emission tomography and single photon emission computed tomography) and ultrasound imaging [7–9]. Magnetic resonance imaging (MRI), because of its higher spatial resolution, is the reference technique for the study and evaluation of the volume of the cardiac chambers and the viability of the myocardium, as well as for the analysis and characterization of cardiac tissue [9,10]. It is a noninvasive and non-radioactive technique that, given its physical properties, allows better discrimination of soft and hard tissues. MRI is based on the ability of protons in the atomic structure of the hydrogen atom, present in water molecules, to absorb and align in the presence of a magnetic field. When this constant field is turned off, the atoms lose the capacity to rotate together and return to their initial state, with the time taken being influenced by the nature of the tissue involved. This information is received by the scanner and converted into an image [7,10]. However, this modality offers relatively low temporal resolution, requires long scan times, is an expensive imaging study, and is not suitable for individuals with heart implants or who suffer from claustrophobia [11]. Computed tomography (CT) is a radiation-based modality that can produce images showing crosssectional planes of the patient’s body. To accomplish this, the X-ray beam is directed at the body tissues. Different tissues have different attenuation coefficients, so the beam is attenuated more or less depending on the type of structure. The transmitted beams (projections) are received by a series of detectors that convert the intensity of the beams into a signal, in grey scale. With the help of reconstruction algorithms, the two-dimensional (2D) projections can be converted to an image, where hypodense regions represent structures that are transparent to the X-rays (air), while hyperdense regions represent the opposite (bone) [9–11]. This rapid and noninvasive imaging modality is used, primarily, in the evaluation and assessment of cardiovascular anatomy and function, because of its good spatial and moderate temporal resolution. The use of radiation and, in some situations, contrast agents, such as iodine atoms, limit the repeated use of this modality [9,11]. Nuclear imaging is another useful imaging modality used, essentially, for physiological and metabolic studies, especially for the evaluation of perfusion in myocardial tissue [7]. This method is based on the emission of radioactive tracers that bind specifically to certain biological molecules, allowing the tracking of their metabolic behaviour. Due to the nature of the radioactive tracers (they decay over time), each decay releases radiation that is detected. The images produced represent the distribution of the radiation beams. This modality is mainly composed of two different approaches: positron emission tomography (PET) and single photon emission computed tomography (SPECT) [7,9,10]. Both techniques use radiopharmaceuticals to create projections at different angles. These projections can be linked together to create images in a three-dimensional space. The major difference between these approaches is the type of radioactive particles used, which affects the release of radiation during the decays. In SPECT, the radionuclides used emit gamma rays and these rays are picked up by a gamma camera, whereas in PET, the positrons (particles with opposite charge of the
1.3. Echocardiography 5 electron but same mass) are transferred during the decay, react with the electrons in the body and produce energy photons in opposite directions, which are picked up by the PET scanners [7,10,12]. Non-invasive, faster, and widely available, ultrasound (US) imaging is the most versatile imaging modality for the diagnosis of a large group of cardiac diseases. Its exceptional temporal resolution makes it the leading technique in critical care and emergency situations [13]. It is based on the acoustic properties of tissues. High-frequency sound waves are generated by a special material ( e.g. , a piezoelectric crystal) placed on a transducer. When these waves interact with different tissues, they can exhibit different phenomena ( e.g. , reflection, refraction and attenuation). If this interaction leads to sound waves echoing back to the transducer, the delay since the emission allows to infer on the distance to the structure, permitting the creation of a real-time image of the anatomy. Echocardiography (echo) is extremely useful in assessing cardiac function and evaluating the anatomy of the heart. It is also very effective in analysing the mechanical properties of the cardiovascular flow (Doppler echocardiography) [7,9,10]. Dependence on the physician, low image quality, and the presence of artifacts are the well-known disadvantages of this technique [14]. However, this imaging modality is the most important approach in the field of cardiology worldwide [7]. The present work focuses on this modality, which will therefore be presented in more detail in the next sections. 1.3 Echo c ardiog raphy 1.3.1 Fundamentals Mechanical (in terms of the need for a material to propagate) and longitudinal (as particles move in the same direction as the generated disturbance), sound is a particular type of wave produced by the vibration of a physical source [15,16]. As sound propagates, particles begin to oscillate in the material medium in which this occurs, producing two distinct stages: rarefaction and compression (Figure 3), which are correlated with lower and higher pressure zones, respectively. These pressure oscillations propagate through the material and are repeated again and again during this process. One compression and one rarefaction define a complete cycle [7,17]. The number of complete cycles per second represents the frequency of the sound wave, and is measured in hertz (Hz). US waves present a frequency value higher than 20 000 Hz, which is above the range of the human hearing spectrum. This intrinsic property of the wave is inversely correlated with its period, i.e. it represents the duration of a complete oscillation. Period and frequency are the most important temporal properties of the sound wave. However, it is also relevant to understand the spatial behaviour. The wavelength (𝜆) represents the distance (in meters) between two particles in the same phase of vibration, and the amplitude is related to the capacity to compress and dilute the particles of the medium (Figure 3), being measured in decibels (dB) [7,15,17]. The speed of sound is directly and indirectly proportional to the density and stiffness of the material, respectively, and is given by the
1.3. Echocardiography 6 Figure 3: Illustration of sound waves in compression and rarefaction stages. Adapted from [18]. product of the frequency and the wavelength. If the material has a higher density, a greater force is required to overcome the inertia. However, higher density materials have a lower stiffness value, which means that less activity is required to pass wave energy between particles that are close to each other. This makes the displacement faster, resulting in higher velocities. Therefore, in the propagation of US waves, stiffness is the main intrinsic factor [7,17]. In an echocardiography examination, the frequency of the ultrasound is usually between 2 and 7.5 MHz [10]. This value is crucial as it affects, on the one hand, the quality and resolution of the image, and on the other hand, the depth of penetration on the tissue. Higher frequencies, which are associated with lower wavelengths, allow images of higher quality and resolution, but reduce the potential penetration in the tissue. The need to image deeper structures implies the use of lower frequencies, which is associated with a decrease in image quality [7,10,16,17,19]. The choice of frequency is, therefore, dependent on the clinical application [19]. There are many different ways to produce these high frequency sound waves [16]. In most cases, however, US waves are generated by a specific type of crystal that has the ability to convert oscillations of electrical voltage into mechanical changes ( i.e . sound) and also the reversed process. This property is called the piezoelectric effect. It is thus essential that any type of US device, the so-called transducer, have a structure capable of making these transformations, made of piezoelectric crystals. When an alternating voltage is applied, the transducer generates and transmits US waves through its vibrations. In addiction, this device can also receive these waves and convert this information into electrical signals that allow the creation of the echocardiographic image [7,15–17].
1.3. Echocardiography 7 Figure 4: (A) Transmitted beam. (B) Specular reflection. (C) Scattered reflection. Adapted from [20]. When US waves propagate through the imaged region of interest, they interact with the encountered tissues, with the type of interaction depending on the acoustic properties of the tissues [17]. When the beam propagates in a homogeneous medium, the original direction is not affected, but it can be absorbed along the way (Figure 4A) [16]. If the medium is heterogeneous, the US wave may be reflected when it hits an interface between two tissues with different densities. The nature of the reflection depends on the size of the structure it hits. If the object is larger than the wavelength of the US beam, a specular echo is produced (Figure 4B). In opposition, smaller structures can cause diffraction of the beam in many directions (scattered echo), resulting in a decrease of the signal that returns to the transducer (Figure 4C) [7,16,17]. In an US examination, the time interval between the emission and reception of echoes, and their intensity, give valuable information as to the depth and nature of the surface encountered. For example, a longer time interval means that the reflection of the beam occurred in a deeper structure [17]. The beam produced by the transducer has a tubular shape close to the device, representing the near field of view. However, as the distance increases, there is a divergence of the beam, resulting in a degradation of the image quality, as the beam becomes more refracted (Figure 5A). Since the Figure 5: (A) Near and far field of view. (B) Linear, curvilinear and phased array probes (from left to right). Adapted from [21,22].
1.3. Echocardiography 8 surface area of the transducer affects the size of the field (larger surface area, higher field length) and also the frequency of the US (larger surface area, lower frequency) [7,17], in echocardiography, the ultrasound transducer, called the probe, should combine a relative small footprint (so that it can be positioned between the ribs) with the ability to generate high-frequency waves. For these reasons, contrarily to other clinical US applications in which linear or curvilinear probes are widely employed, phased array probes are the most commonly used in echocardiography (Figure 5B) [23]. After the reflected wave returns to the transducer, it is translated and processed to provide information that can be interpreted and analysed [17]. In most echocardiography examinations, brightness mode (B-mode) (Figure 6) is employed. It provides a 2D display, where the value of each image pixel represents the intensity of the reflected echo. To achieve this, it is necessary to sweep the US waves along the area under examination, creating scan lines. The combination of the specific information coming from each scan line allows the creation of a cross-sectional image. This mode is extremely useful for assessing the anatomy and function of the heart and seeing the movement of the various structures in real-time [7,15–17,19]. When sweeping across the orthogonal direction also, it is possible to create three-dimensional (3D) visualizations of the different structures. 3D echocardiography is a newer and very useful ultrasound-based method that allows a better assessment of the anatomy and function of the heart (more detail in the next section) [7,10,19,25]. Motion mode (M-mode) (Figure 6) is another useful mode in US imaging that is more related with the tracking of moving structures, such as valves. In this mode, the transducer is at a static position (only one scan line), and the movement of the structure produces different reflected echoes. Each pixel records the intensity of the echo in function of time (temporal variations) [7,16,17,19]. In its turn, the Doppler echo mode is used to assess and measure the main characteristics of the blood flow, being based on the physical principle that reflected echoes present a shift in frequency value, which is related with Figure 6: Representation of the aortic valve with different imaging modes. Adapted from [24].
1.3. Echocardiography 9 the speed and direction of movement. This particular US mode can be appropriate to, for example, identify situations of valve regurgitation or stenosis [16]. 1.3.2 2D and 3D Imaging In echocardiography, a 2D image is produced by focusing an US beam in a vertical direction, waiting for the echoes that came along the beam direction, holding the projections, and emitting a new beam into the neighbouring region. Each pixel of the generated image provides two different pieces of information. The value of the pixel represents the intensity of the reflected echo, while the position indicates the temporal distance between the focused US wave and the reflected wave [7,15–17,19]. This temporal difference is associated to the resolution of the image. The lateral and axial resolutions are related to the minimum distance between adjacent structures that produce two separate reflected echoes, and to the ability to distinguish tissues that lie in front of and behind each other, respectively [15]. 2D echocardiography (Figure 7) is a widely available and noninvasive technique commonly used to study and evaluate cardiac anatomy and function, making it the fundamental method to quickly assess cardiac diseases [7]. Until a few years ago, 3D echocardiography (Figure 7) was very time-consuming and dependent on elaborate reconstruction algorithms to produce temporally-coherent three-dimensional representations of the heart. Nowadays, improvements in transducer technology have allowed real-time acquisition and an increase in processing capabilities, making this approach useful and applicable in daily examination. The third dimension eliminates the errors or mistakes associated with the integrated analysis of multiple independent 2D views, which increases the accuracy in assessing ventricular and atrial volumes [7,25,27]. 3D echocardiography methods have also proven useful in identifying pathologies in valvular structures and they are also used in the analysis of the coronary circulation [28]. The main limitations of this approach is the need for special training for the correct acquisition and interpretation of 3D echocardiographic volumes, the limited number of acoustic windows, and the Figure 7: 2D and 3D echocardiography. Adapted from [26].
1.3. Echocardiography 10 dependence on technical properties. Table 1summarizes the major advantages and disadvantages of 3D echocardiography over its 2D counterpart [26,27]. Table 1: Advantages and disadvantages of 3D echocardiography Advantages Disadvantages Representation of the cardiac anatomy through different perspectives Need of special training to obtain a precise acquisition The visualization is not dependent of the probe position The number of acoustic windows is a limiting factor Allow a reliable evaluation of the cardiac chambers’ volume and is not limited by shape approximations Some technical characteristics ( e.g. , spatial resolution and image quality) may influence the evaluation of disease severeness In general, 3D echocardiography has greatly improved the impact in clinical practice of noninvasive imaging on the diagnosis and management of heart disease. It allows easier, highly accurate, and reproducible visualization of the complex heart anatomy, and improved the quantification of cardiac function, overcoming the inherent limitations of 2D echocardiography. However, even with these advantages, it is only useful as an adjunct to 2D echocardiography and not as a replacement [25–28]. 1.3.3 Cardiac function quantification A methodical and accurate evaluation of the cardiac function is crucial, as it allows an early assessment of the severity of a given pathology, paving the way for a more effective and rapid treatment. Because of the simpler and reproducible evaluations that echocardiography allows, and also due to the improvements in this noninvasive modality ( e.g. , 3D echocardiography), this is now one of the primary methods for assessing and quantifying cardiac function. [29–31]. In terms of relevance, despite the inherent value that each chamber has to the overall performance of the cardiac system, the LV has an intrinsic relationship to heart failure, making the correct assessment and quantification of this important chamber a priority [32]. Proper quantification of left ventricular function allows the evaluation of its performance in the pumping action. Because of the importance and relationship between LV mass and volume and a variety of cardiovascular diseases, the correct evaluation of these values in two specific phases of the cardiac cycle, end-diastole (ED) and end-systole (ES), allows accurate diagnosis and appropriate treatment. From the end-diastolic and end-systolic volumes (EDV and ESV, respectively), other important volumetric variables can be derived, such as stroke volume (SV), cardiac output (CO) and left ventricular ejection fraction (LVEF) [19,29,31,33]. While SV indicates the difference between the volume at the two cardiac moments (equation 1), CO allows to evaluate the volume of oxygenated blood delivered to the cells, which is dependent on heart rate (equation 2). The value of SV is directly
1.7. Outline 17 the motivation, aims and contributions of this thesis were described. The following chapters are dedicated to the further development of the introduced topics. The second chapter presents some background concepts and state-of-the-art on the topics of this dissertation. First, the concepts of spatial descriptions and transformations relevant to understanding the relationships between objects in a 3D environment are introduced. Second, the concept of deep learning and its basic principles are explained. Then, an overview of the studies found on the literature about keypoint/landmark and/or line regression/detection using deep learning is presented. Finally, some key concepts around the creation of a (realistic) synthetic dataset are introduced. In the third chapter, a generation pipeline for the conception of a complete FoCUS dataset is proposed. Given the unavailability of 3D pose information in publicly available US/FoCUS datasets, the generation of synthetic cardiac ultrasound images using a US simulator is considered a viable approach and is, therefore, investigated. Notwithstanding, given the poor realism of the synthetically generated images, the off-the-shelf application of a GAN-based image-to-image translation method called GLA-Net is also investigated to improve image appearance. The fourth chapter presents the proposed framework to achieve the main objective of this thesis. An automatic heatmap regression method combined with a grid search post-processing method applied to the regressed heatmaps enables the extraction of the intersection lines between cardiac views. Finally, the estimation of the relative 3D pose of all views is possible by solving a system of non-linear equations created using the intersection points of triplets of views, estimated from the respective intersection lines. Upon providing an overview of the dataset and metrics used, this chapter ends with the validation of the proposed method. Finally, the fifth chapter summarizes the main conclusions of the present thesis, and discusses possible future developments.
2 STATE-OF-THE-ART This chapter aims to introduce concepts that are relevant to the present thesis. First, being essential for understanding spatial relationships in a 3D environment, the concepts of descriptions and transformations in space are introduced. Then, the core principles of deep learning, neural networks and their main building blocks are described. Since this thesis targets image analysis, convolutional neural networks are then introduced. An overview of keypoint/landmark detection and line regression methods found in the literature then follows. Finally, in the context of the generation of synthetic datasets, US simulators and generative adversarial networks (GANs) are briefly presented. 2.1 Spatial descriptions and transformations 2.1.1 Position, orientation and frame To spatially describe the pose of an object in a given environment, one requires two different descriptors: its position and its orientation. When these two are combined, they define a unique entity known as a frame [42,43]. To represent a point, a frame or a transformation in space, a matrix representation is normally used. After establishing a reference coordinate system, any point or object position can be translated into a vector representation, which is defined by a 3 ×1 matrix (equation 5) [44]. 𝐴𝑃=⎡ ⎢ ⎢ ⎢ ⎣ 𝑎𝑥 𝑏𝑦 𝑐𝑧 ⎤ ⎥ ⎥ ⎥ ⎦ (5) In this example, {A} represents the reference coordinate system, while 𝑎𝑥,𝑏𝑦and 𝑐𝑧indicate the numerical distance along each axis of the system. 𝐴𝑃is expressed as a vector (Figure 12B), but it can also describe a position (Figure 12A). Nonetheless, point representation is not sufficient to define an object spatially. It is also important to determine the orientation of the object. To do this, it is necessary to link the object to a coordinate 18
2.1. Spatial descriptions and transformations 19 Figure 12: (A) Representation of a point in space. (B) Representation of a vector in space. Adapted from [44]. system that allows it to be described in relation to the reference one. This requires the representation of three unit vectors 𝐴𝑋𝐵,𝐴𝑌𝐵and 𝐴𝑍𝐵, one from each axis, referenced to {A}, indicating the orientation. These should be concatenated in a 3 ×3 matrix representation called the rotation matrix, shown in equation 6. The dot multiplication gives the cosine value of the angle between unit vectors [42,43]. 𝐴𝑅𝐵=[𝐴𝑋𝐵𝐴𝑌𝐵𝐴𝑍𝐵]=⎡ ⎢ ⎢ ⎢ ⎣ 𝑋𝐵⋅𝑋𝐴𝑌𝐵⋅𝑋𝐴𝑍𝐵⋅𝑋𝐴 𝑋𝐵⋅𝑌𝐴𝑌𝐵⋅𝑌𝐴𝑍𝐵⋅𝑌𝐴 𝑋𝐵⋅𝑍𝐴𝑌𝐵⋅𝑍𝐴𝑍𝐵⋅𝑍𝐴 ⎤ ⎥ ⎥ ⎥ ⎦ (6) These pairwise positional and orientational information characterise a frame. More precisely, a frame is described by a rotation matrix plus a position vector, which define a specific coordinate system in relation to another (Figure 13) [42–44]. Figure 13: Location of a frame B in relation to a reference frame A. Adapted from [43].
2.1. Spatial descriptions and transformations 20 2.1.2 Frame-to-frame mappings In order to spatially describe changes between different frames, it is important to understand which operation enables the conversion of one frame of reference to another. In this sense, frame- to-frame mappings can involve three different operators: translations, rotations and transformations [42–44]. When two different frames, {A} and {B}, have the same orientation, the difference between them is due to a translation operator. In translation, a given point in space is moved by a vector direction, associated with only one coordinate system. However, it may be relevant to understand this operation through distinct frames (Figure 14A), as described in equation 7 [42,43]. 𝐴𝑃𝐵𝑂𝑅𝐺 denotes the translation that differentiate {B} from {A}. Due to the fact that the vectors are relative to frames with the same orientation, 𝐴𝑃will be obtained by a vector addiction. 𝐴𝑃=𝐵𝑃+𝐴𝑃𝐵𝑂𝑅𝐺 (7) In some situations, different frames present the same spatial position, but one is rotated relative to the other, so the orientation is different, which corresponds to the rotation matrix between these Figure 14: (A) Translation operator. (B) Rotation operator. (C) Transformation operator. Adapted from [43].
2.2. Deep learning 21 frames [43]. Therefore, to represent a particular point relative to {A}, it is necessary to multiply the rotation matrix 𝐴𝑅𝐵by the description vector 𝐵𝑃(equation 8), representing the same point with respect to a frame {B} (Figure 14B). 𝐴𝑃=𝐴𝑅𝐵×𝐵𝑃(8) Normally, different frames differ in both position and orientation, which means that the translation and rotation operators are applied. When this is the case, it is called a transformation operator [43], as described by equation 9. 𝐴𝑇𝐵describe the rotation and translation applied to 𝐵𝑃to compute 𝐴𝑃(Figure 14C). 𝐴𝑃=𝐴𝑇𝐵×𝐵𝑃≡⎡ ⎢ ⎣𝐴𝑃 1⎤ ⎥ ⎦=⎡ ⎢ ⎣𝐴𝑅𝐵𝐴𝑃𝐵𝑂𝑅𝐺 0 1 ⎤ ⎥ ⎦×⎡ ⎢ ⎣𝐵𝑃 1⎤ ⎥ ⎦(9) Considering this kind of mapping from one frame to another in matrix form and in spatial context, 𝐴𝑇𝐵is, usually, a 4 ×4 matrix composed as follows: • 3 ×3 matrix with the rotation information, 𝐴𝑅𝐵; • 3 ×1 matrix with the translation information, 𝐴𝑃𝐵𝑂𝑅𝐺; • 1 ×4 matrix in the last row with the values [0 0 0 1]; This sense of spatial description and transformation will be essential for establishing relationships between FoCUS views in a three-dimensional space, which will be addressed later in this work. 2.2 Deep learning Machine learning (ML) is a subfield of artificial intelligence that deals with systems that have the ability to learn and recognise patterns through large amounts of data without being programmed to do so [45–47]. To achieve this, ML algorithms implement mathematical models that establish various relationships in the input data, allowing more accurate predictions [47]. Nowadays, and due to the close relationship between ML and prediction-making methods, the number of fields and products that integrate this type of algorithms continue to increase. Object recognition and detection, clinical analysis and email filtering are a few examples of domains wherein these algorithms are relevant [46,47]. An extremely important subset of ML is deep learning (DL). Its importance stems from the ability to deal with and solve problems of higher complexity thanks to the capabilities of artificial neural networks [47]. A DL algorithm attempts to extract features and patterns from the data without knowing
2.2. Deep learning 22 what the most relevant features are, unlike ML, where the identification of the features that more strongly influence the performance of the model is necessary. This inherent feature of DL enables the solution of complex problems from start to finish. However, due to the higher number of training parameters in DL algorithms, there is an inherent need for a larger amount of training data, and the resulting models are usually harder to interpret [46–48]. 2.2.1 Supervised and unsupervised learning Supervised and unsupervised learning are two distinct and widely used categories of ML/DL algorithms. The term ’supervised’ stems from the fact that the data used for the training step has been previous labelled, in order to obtain a more accurate prediction. This labelled data contains information about the input and also the supposed output, allowing the algorithm to generate a function that learns by comparing the predicted values with the correct ones. The error associated with this comparison affects the model, which is adjusted to minimise it. Supervised methods are very useful to make predictions, especially in solving classification and regression problems. On the other hand, unsupervised learning methods use input data without information about the output. The lack of an output during the training phase forces the algorithm to find out what the correct output is. To this end, and similar to supervised learning, these type of algorithms try to understand the structure of the data and create logical patterns among it. In general, unsupervised methods are suitable for solving analysis problems like cluster analysis (aggregation of identical examples), density estimation (data distribution) and dimensionality reduction (projection of higher-dimensional data onto lower ones) [46–48]. 2.2.2 Artificial Neural Networks Artificial neural networks (ANNs) attempt to replicate the architecture and function of the human brain in a simpler and more accessible way. This architecture is based on the connections between individual components called artificial neurons (Figure 15A). Each of these connections is associated with a weighting value, which is the ”trainable” parameter of the network. The activation function is an intrinsic state of each neuron that is normally passed on to subsequent neurons along with the sum of the weights of the preceding neurons [49–51]. To solve a variety of complex problems and allow the algorithm to gather and learn information about difficult patterns in the data, nonlinearities are introduced by the activation function in the neurons, which prevent the detection of linear separations only [49,50]. ANNs consist of 3 different types of layers: the input layer, one or more hidden layers, and the output layer (Figure 15B). The first is associated with the network’s access to the input data, while
2.2. Deep learning 23 Figure 15: (A) Representation of a single artificial neuron. (B) 4-layer ANN. Adapted from [50]. the hidden layers process and identify features in the data so that relevant results can be obtained and displayed in the output layer. To check the predictive ability of the algorithm, i.e . the error associated with the difference between the predicted and the reference outputs in supervised methods, there is a metric known as the loss function. This metric should be minimised during the training phase to allow for a stable and accurate prediction. The main objective of this loss optimisation is to reach the global minimum, updating the weights with the appropriate values (Figure 16). This optimisation is usually achieved by a gradient descent algorithm, which consists in computing the gradients associated with the loss metric and iteratively adjusting the weight values in the direction of the computed gradients. To control the Figure 16: Illustration of gradient descent applied to the loss function, J, of an ANN with two weights. Adapted from [52].
2.2. Deep learning 24 Figure 17: Distinct learning rates on gradient descent algorithm. Adapted from [50]. speed at which the network converges to the local minimum, there is a hyper-parameter ( i.e. a non-learnable parameter that is set a priori ) called learning rate. A lower learning rate forces the network to take smaller steps and increases converge time (Figure 17A). With a higher learning rate, the speed of convergence increases (Figure 17B), but too high may preclude effective convergence to the minimum (Figure 17C) [50,51]. Gradient descent can be splited into three different sub-branches that are associated with the size of the data used to calculate the gradient: batch gradient descent, stochastic gradient descent (SGD) and mini-batch gradient descent. In batch gradient descent, the entire data set is used to calculate the gradient value and the updating process takes place once per training iteration (also called epoch). Since the algorithm must pass through the entire training set, it makes the calculation of the gradient very precise but also very expensive, both in terms of computational cost and time. On the opposite side, SGD computes the gradient and updates the weights for each sample in the training set, making the computation faster but extremely inaccurate, increasing the difficulty of reaching a convergent state. The mini-batch gradient descent uses relatively small batches of data (such as 16, 32 or 64 samples), and updates the parameters after processing each batch (meaning multiple gradient computation and weight updates per epoch) [53]. This method overcomes the limitations of SGD and batch gradient descent in terms of variance in the updating process, which allows for convergence of the model and increases efficiency [50,51,53]. Independently of the sub-branch used, different gradient descent optimizers have been proposed and used over the years, such as Momentum, Adagrad, Adadelta, RMSProp or Adam [53]. Backpropagation is an efficient method to compute gradients. Basically, in each layer of the network, the gradient is calculated and these values are passed on to the preceding layers (Figure 18). This process allows the evaluation of the influence of each weight in the loss function [50]. All these fundamental concepts allow for the continuous improvement of the network during training, making it capable of solving complex tasks in a much more accurate and efficient way than other conventional methodologies.
2.2. Deep learning 25 Figure 18: Backpropagation through a single neuron. Adapted from [50]. 2.2.3 Convolutional neural networks A subfield of ANNs, the convolutional neural network (CNN) is often used in problems involving data that have a pattern in the form of a grid ( e.g. , images). The goal of CNNs is to recognise and learn a spatial hierarchy between features of the input data and then map these spatial relationships in a defined output [55,56]. CNNs (Figure 19) consist of four different types of layers: convolutional, activation, pooling and fully connected (FC) layers [56]. The convolutional layers are the main blocks in a CNN, and apply a convolutional operation to the input data. This consists of a multiplication process performed by filters (also called kernels) that operate as neurons of that particular layer. In general, the size of the filters is relatively small compared to the size of the input. These filters contain the trainable parameters, Figure 19: CNN architecture to detect digits. Adapted from [54].
2.2. Deep learning 26 i.e. the values that are updated and adjusted during the training phase and used to calculate the feature maps. The latter are the result of the convolution process of a filter along all dimensions of the input data, where each unit of the feature map is associated with the projection of the kernel (also called receptive field) in the previous layer. In this way, CNNs can detect spatial relationships across the entire image as specific features are detected by learnt and adjustable kernels. When the input of the convolutional layer consists of several channels, it is necessary that the filter has a depth equal to the number of channels. Therefore, a feature map is calculated for each channel (Figure 20). After that, all feature maps are aggregated through addition, together with a bias value. The result of this procedure is a flattened map along the depth dimension for each filter [54–56]. In some situations, the filter is not capable to suit all pixels of the input because, for example, the stride value (represents the step size of the filter in the convolution) is not one. Therefore, it is necessary to change the input size. This process is called padding. In certain cases, the input size can be increased by adding zeros, known as zero-padding (Figure 21A), or decreased by omitting the areas that the kernel cannot compute, which is termed valid padding [54,56]. After the convolution step, the resulting feature map is applied to a non-linear activation layer that processes a nonlinearity function. There are many types of activation functions, being noteworthy the sigmoid, tanh, ReLU and LeakyReLU functions [56]. Sometimes the generated feature maps are relatively larger, which involves higher computational costs, especially in terms of the storage space required. To reduce this cost, pooling layers are applied to shrink the feature maps to a lower dimension by replacing a certain value in the output with a statistical parameter that depends on its neighbours. The most common pooling operations are Figure 20: Convolution operation on a 3-channel image with a 3x3x3 filter. Adapted from [54].
2.4. Synthetic image generation 33 2.4.1 Ultrasound simulation Ultrasound simulators are systems that provide the ability to produce controlled and standardised ultrasound images, which make them useful, among other things, for research projects that focus on this imaging modality in the DL field and do not possess a usable and complete data set. Among the available US simulators, Field II is probably the best known and widely used. Field II is a system centred on the concept of spatial impulse responses [73,74]. These responses are reliant on the relative position of both transmitter and receiver, providing information about the generated ultrasonic wave in a certain spatial position. The assumption of a homogeneous medium makes it possible to ensure linear propagation. If different elements are in the alignment of the beam, it is possible to obtain multiple responses or an aggregation of them, allowing the usage of single or multiple array transducers. In addition, Field II allows the definition of complex beam aperture shapes, while also dealing with US attenuation (which depends on the distance relative to the aperture) [75,76]. With Field II, it is possible to create B-mode and colour flow images using scatterers. Each scatterer shows a specific response to the ultrasound beam, and the combined response of all scatterers provides information about the simulated tissue, more precisely about the density and the perturbation of the speed of sound. The correct adjustment of the number, spatial position and amplitude of the scatterers is crucial for obtaining a correct image [77]. The evolutionary step required to move from an imaging algorithm such as Field II to a more advanced and clinically applicable system is not easy due to the multitude of components that need to be integrated, e.g. data processing, visual software and tracking sensors. Aiming to tackle this, the PLUS Toolkit is a freely available framework that combines a plethora of methods for the ultrasound imaging modality. It allows synthetic generation of images, accurate spatio-temporal calibration and real-time tracking and streaming of US data (either generated or acquired with an US machine) [78,79]. The ultrasound simulation module incorporates the physical principles of attenuation, absorption, speckling and reflection applied to surface meshes that attempt to replicate tissue or other mock structures. However, it is not possible to simulate refraction, sound velocity perturbations and beamwidth. Another limitation is the use of transducers with curved or linear geometry only [79]. Image and pose are the main types of data you get with PLUS. Image is dealt with the ITK and VTK libraries (software for visualising and processing images), with orientation values added to understand the spatial relationship between the reference axes of the image and the main axes of the transducer. On the other hand, pose refers to the spatial definition of a generated image, tracking device or other objects with respect to a 3D reference coordinate system, so that the spatial transformations between them can be derived. As mentioned in the first section of this chapter, the transformations are defined by a 4 x 4 matrix containing information about spatial position and orientation. In addition, in the case of images, a scaling component is included to account for the image’s pixel size.
2.4. Synthetic image generation 34 Since data is usually acquired by multiple devices simultaneously, the synchronization/calibration module is essential to ensure the accuracy of the captured/generated information [78]. The ability to incorporate imaging and tracking devices simultaneously makes PLUS a very suitable approach for creating the FoCUS dataset used in this thesis (further details in Chapter 3). 2.4.2 Generative adversarial networks Proposed by Goodfellow et al. [81], generative adversarial networks (GANs) are based on an adversarial approach between a pair of distinct neural network-based models: the generator and the discriminator (Figure 25), normally implemented by a series of convolutional and FC layers. The goal of the generator model is to produce realistic data from random noise (synthetic domain), while the discriminator is responsible for detecting whether a given sample is real or not. Therefore, both models are constantly competing with each other. The generator tries to maximize the error of the discriminator by pushing it to make false predictions, while at the same time the discriminator attempts to reduce the number of mistakes, which increases the error of the generator, leading to an improvement in the quality of the generation process. The optimal point is reached when the generator’s distribution is identical to the distribution of the real data, which confuses the discriminator and makes it predict a probability value of 0.5 for each input. As for training, both models are trained simultaneously, but at this stage the generator only sees examples from the synthetic domain, thus learning by interacting with the discriminator’s errors. On the other hand, the discriminator is the only one having access to both real and synthetic domains. Figure 25: General structure of a GAN architecture. Adapted from [80].
2.4. Synthetic image generation 35 Since both models are implemented using ANNs, their training procedure is possible through backpropagation [80]. In the DL field, GANs are state-of-the-art approaches to tackle image processing problems such as style transfer, image synthesis and image-to-image translation [82]. In the present thesis, and given the interest in creating realistic images from synthetic ones, one is interested in the latter, which will be further explained below. 2.4.3 GAN-based image-to-image translation Instead of starting from a noise source, image-to-image translation consists of converting an input image from a source domain to a target one, without changing the content information. Image-to-image translation methods can be divided into two distinct approaches: paired and unpaired. Paired image-to-image translation refers to methods that require the presence of a pair of images from distinct domains. It is thus almost a ”supervised” approach, since for a given input image the corresponding output image is known. However, for a large number of problems, this pairwise information is not available or is hard to get. These algorithms are also highly dependent on the paired examples used in the training process. Unpaired image-to-image methods tackle this limitation by allowing the two domains to be linked without ”supervision”. In other words, these algorithms attempt to convert an image from a source domain to a target domain based on information of both domains separately (without paired data), in a more ”unsupervised” way [83]. Due to the advantages related with unpaired methods, many variants of this approach have been proposed recently. Because of their relevance to this work, two of these methods stand out from the rest: the Cycle-consistency Generative Adversarial Network (CycleGAN) and the Global and Local Alignment Network (GLA-Net). The CycleGAN, an algorithm presented by Zhu et al. [84], consists of a GAN-based approach for the unpaired translation of an image between two distinct domains, X and Y, using neural network-based models. Instead of one mapping function, this method contains two that represent the translation between X and Y and vice versa. So, it has two generators (G and F) and two associated discriminators (𝐷𝑌and 𝐷𝑋). 𝐷𝑌tries to predict whether the image generated by G belongs to the domain Y or not, and the inverse is done with 𝐷𝑋relative to the image generated by F in the domain X (Figure 26A). The main novelty of the CycleGAN is the introduction of a cycle-consistency loss, which is based on the intuition that if a translation process from one domain to another is correctly understood, the reverse process, i.e . arriving at the starting point, should also be possible, ensuring that the generated mappings are consistent. Therefore, this loss is divided into forward and backward cycle-consistency. Both are related to the idea that the translation cycle should allow the return to the original image. The difference between them is that, in forward cycle consistency these images come from the domain X (Figure 26B), whereas in backward cycle-consistency they come from the domain Y (Figure 26C).
2.4. Synthetic image generation 36 Figure 26: (A) Two mapping functions G:X ⟶Y and F:Y ⟶X, and the associated discriminators 𝐷𝑌and 𝐷𝑋. (B) Forward cycle-consistency loss. (C) Backward cycle-consistency loss. Adapted from [84]. Despite the effectiveness of this approach in dealing with unpaired translation problems, it suffers from a drop in performance when domain translation requires a significant number of changes. Moreover, despite the use of the cycle-consistency loss, no specific emphasis is given to retaining the relevant content of the source domain. To address these problem, in 2021, Yang et al. [85] proposed an innovative DL-based approach called GLA-Net (Figure 27). Their architecture contains two extremely important components: a global alignment module and a local alignment module. The global alignment module is responsible for applying the style transfer, which consists of generating a new synthetic image from a combination of the source and target domains. This is made possible by an MPL-Mixer encoder, which is responsible for extracting style features from source and target images. The global alignment module and its respective loss aim to force these style features to be identical. To support the global alignment module, the local alignment module is responsible for focusing the generator on specific image regions during translation. This module contains a self-attention network that generates an attention map that highlights the source image’s regions with relevant content. This map is used to Figure 27: Overview of the GLA-Net architecture. Adapted from [85].
2.4. Synthetic image generation 37 weight both source and output images in the calculation of the local alignment loss, thus avoiding the degradation of the relevant parts of the image. The GLA-Net generator consists of a content encoder and a content decoder, which are applied in that order to create the output image.
3 AUTOMATIC GENERATION OF SYNTHETIC FOCUS IMAGES This chapter describes the methods proposed to generate a synthetic FoCUS dataset, which must contemplate both images and their relative 3D pose. The proposed pipeline is then evaluated, with its results discussed and put in perspective with regard to the requirements of potential use cases. 3.1 Metho d s Based on the methods described in Chapter 2, a pipeline for the automatic generation of a synthetic FoCUS dataset is proposed, contemplating three major blocks (Figure 28). The first block aims to produce meaningful representations of human anatomy. From a previously available CT examination, a reference heart model and neighbouring organs were extracted by applying a variety of image segmentation techniques. In order to portray different patients and, therefore, variable cardiac shapes, different heart meshes from a publicly available dataset were then employed (Figure 28A). The second block of this framework aims to produce representative synthetic images, with their respective 3D poses, of the previously created anatomy using a US simulator. By varying the position of the probe, the image depth, the pixel size and the beam aperture angle, a plethora of US cardiac images can be generated (Figure 28B). The third and final block of this pipeline aims to increase the realism of the generated images by applying an off-the-shelf image-to-image translation method called GLA-Net (Figure 28C). All steps involved in the implementation of this framework were carried out on a workstation with a Nvidia RTX 3080 GPU, with 10GB of VRAM, and an Intel Core i9-11900 CPU. 3.1.1 Anatomical meshes’ generation The first task within this topic was to generate synthetic representations of the human anatomy. Using the clinically oriented software 3D Slicer (The Slicer Community, USA), relevant in the medical imaging field, reference meshes of a heart and nearby structures (namely lungs, liver, ribs and skin) 38
3.1. Methods 39 Figure 28: Pipeline for the generation of a synthetic FoCUS dataset. This pipeline is divided into 3 blocks: (A) the anatomical meshes’ generation block, in which representative and variable surfaces of cardiac structures and adjacent organs are created; (B) the US simulation block, in which a variety of synthetic US images are generated; and (C) the image-to-image translation block, whose goal is to increase the realism of the synthetically generated images. were obtained by applying various image segmentation techniques (like thresholding, smoothing operations and connected component analysis) to a (previously available) CT exam of a normal subject. These were stored as Standard Triangle Language (stl) models, where the surface is represented by multiple triangular faces and their respective 3D connections. MeshLab (ISTI - CNR, Italy), an open-source software for editing surfaces in stl format, was then used to post-process the extracted models. Specifically, all meshes had their faces corrected (to point outwards) and their size reduced by applying a downsampling operation (to 10% of the original number of points). Subsequently, all generated models were placed spatially relative to the centre of the heart (which was defined as the origin) to simplify later steps in the pipeline. To ensure data variability, the original cardiac mesh was replaced by others resembling different patients. To accomplish this, it was necessary to search for available realistic models of the heart (in which not only the outer surface of the heart but also the four chambers are well defined). In [86], 24 high-resolution four-chamber models of the heart were presented, fulfilling these desired characteristics. These models are available in tetrahedral format ( i.e . a volumetric model), with each
3.1. Methods 40 tetrahedron being associated with a given cardiac structure (chamber, valve or vessel). However, since surface meshes are required for the simulation, it was necessary to convert these volumetric models into surface ones (while conserving the anatomical information of each mesh point). To do this, each tetrahedron was converted into its respective four triangles and the resulting duplicated triangles (which account for the inner portion of the volumetric mesh) were removed. Finally, the obtained surface model was divided into outer surface (outer wall of the heart) and inner surfaces (endocardial wall delimiting the blood pool of each one of the 4 heart chambers) by analyzing the connectivity of the model’s triangles. These steps concluded the creation of the required meshes for simulation (Figure 29), having in total 24 different sets of heart geometries. Figure 29: Example probe positioning in 3D Slicer and respective slice obtained (in binary representation) for A4C, A2C, PSLA, PSSA and SX views (from left to right). 3.1.2 US simulation Given the features and limitations of the two US simulators described in Chapter 2, the PLUS Toolkit US simulator was chosen thanks to its ability to generate an US image upon defining a matrix representing its pose relative to a defined reference (in this case, a tracker representing an external origin point). The simulation environment is, thus, a 3-element system consisting of the tracker, the acquisition probe and the image itself (Figure 30). Note that knowing the spatial positioning of these elements in relation to each other is critical to obtain the correct 3D pose for a specific view of the heart. As explained earlier, two frames that differ in both spatial position and orientation can be related by a transformation matrix. In this particular study, the transformation matrix that describes the spatial relationship between the image and the tracker (𝑇𝑇𝐼) is one of the intended outputs of the simulation (in addition to the generated image), which will be crucial for later developments. This matrix can be obtained from the transformation matrices describing the relationship between image and probe (𝑃𝑇𝐼) and probe and tracker (𝑇𝑇𝑃) by the following equation: 𝑇𝑇𝐼=𝑇𝑇𝑃×𝑃𝑇𝐼(10)
3.1. Methods 41 Figure 30: Simple representation of the 3-element system composed of tracker, probe and image. 𝑃𝑇𝐼,𝑇𝑇𝑃and 𝑇𝑇𝐼represent the transformation matrices that relate the coordinate systems of image and probe, probe and tracker, and image and tracker, respectively. Simulation details To perform the simulation in PLUS, it is necessary to create a configuration file in Extensive Markup Language (XML) format defining: • File paths of the meshes to be used in the simulation. In this implementation, the meshes used for adjacent organs are the same in all simulations, while the heart meshes change to represent a different ”patient”; • The acoustic properties, such as speed of sound, density and attenuation coefficient, which can be set separately for each one of the surface models ( i.e. , tissues). The values used for the different meshes are based on [87,88] and are summarized in Table 2; • Some configurations of the US acquisition like beam opening angle, acquisition depth and probe’s shape and frequency; • The pixel size of the generated synthetic US images. From simulation parameters like beam opening angle, depth and pixel size, 𝑃𝑇𝐼can be determined. In short, the beam’s aperture angle and the depth allow us to determine the dimensions of the image in both axes. From this, and from the knowledge that the US probe is centred in the image, a translation along the image’s x-axes of half the image width (𝑡𝑥) is made from the image origin (upper left point). In addition, another (manually specified) translation is made along the image’s y-axis (𝑡𝑦) to place the probe slightly further away from the image (representing the physical distance between
3.1. Methods 42 Table 2: Sound speed, density and attenuation values used for the different tissues Tissue type Speed (m/s) Density (kg/m3)Attenuation coefficient - 1MHz (dB/cm) Liver 1595 1060 0.50 Cardiac muscle 1576 1.060 0.52 Fat 1478 950 0.48 Blood 1584 1060 0.20 Air 330 1.2 - the probe’s origin and the image). Both displacement values are defined in physical units (in millimetres), taking advantage of the defined image’s pixel size ( ps ). The pixel size is also very important to define a scaling component that relates the pixel coordinates with their position in physical units. Another important aspect is that the orientation of the probe’s axes differ from those of the image. Specifically, the y-axis of the image is actually the x-axis of the probe, while the x-axis of the image is the inverse of the y-axis of the probe. Altogether, 𝑃𝑇𝐼is given by: 𝑃𝑇𝐼=⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ 0 𝑝𝑠 0 𝑡𝑦×𝑝𝑠 −𝑝𝑠 0 0 𝑡𝑥×𝑝𝑠 0 0 𝑝𝑠 0 0 0 0 1 ⎤ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ (11) Optimal probe positioning Apart from the configuration file, the positioning of the probe model (represented by 𝑇𝑇𝑃) is also extremely important to achieve an optimal representation of a given cardiac view. Since manually positioning the probe for each cardiac view in the 3D Slicer environment is tedious, time-consuming and difficult, especially if one considers the large number of cardiac geometries available and to be configured, it was essential to develop a method that could automatically determine these spatial matrices. This custom script was implemented in MATLAB (MathWords Inc., USA). Briefly, for a given cardiac geometry, a 3D pose (a point and 3 direction vectors which respectively describe position and orientation) is defined for each cardiac view (Figure 31). Despite the similarity in the methodological steps to achieve the optimal pose for each cardiac view, the assumptions used to determine the optimal transformation matrix depend on the type of view we are interested in, as each has unique characteristics. For simplification and better understanding of the steps shown in the next figures, please consider the following: dark blue dots represent anatomically relevant structures (or their centroid) for the respective cardiac view, while the green, red and orange arrows represent the probe’s axes (Z, Y and X axes, respectively). Of note, for each cardiac geometry, the centroid of each chamber and valve was
3.2. Results and discussion 49 versions of the original acquisitions, while also presenting accessory information outside the US frustrum (not removable through simple image processing techniques). Aiming to obtain better-looking images, we chose to train GLA-Net with each dataset separately. In all these tests, both source and target domains consisted of A4C images only, as this was the only common view among all available datasets. Table 3 summarizes the best FID score obtained for each test, and the respective epoch in which it was obtained, while Figure 39 presents some example images at the selected epoch. Looking at the results when the target domain consists only of frames from CAMUS or our in-house dataset, we can see that the resulting images are very ’synthetic’ and different from the expected US images, presenting even lower realism than those from our first experiment. Finally, if only EchoNet- Dynamic frames are used in the target domain, the results show images that are quite realistic, Figure 39: Representative resulting images of the proposed image-to-image translation module applied to synthetic A4C images (A), when employing different target domain compositions: (B) EchoNet-Dynamic + CAMUS + in-house; (C) EchoNet-Dynamic; (D) CAMUS; and (E) in-house frames.
3.2. Results and discussion 50 Table 3: Best FID score and respective epoch for each experiment with GLA-Net Target domain # epoch Best FID 1) EchoNet-Dynamic + CAMUS + in-house frames 320 169.55 2) EchoNet-Dynamic frames only 350 141.02 3) CAMUS frames only 260 207.97 4) In-house dataset frames 400 295.24 while faithfully preserving the anatomy visible on the input image (a simulated one) and showing a noticeable contrast between tissue and blood. Altogether, although GLA-Net offers the possibility of producing realistic FoCUS images from simulated ones, it seems to be extremely dependent on the image properties of both source and target domains. In addition, one also tested the use of a pre-trained self-attention network module, instead of allowing its fine-tuning as proposed. Using EchoNet-Dynamic as target domain, Table 4 compares the FID scores (and the respective epoch) obtained under each one of these scenarios. Table 4: Best FID score and respective epoch achieved when using a fine-tuned or pre-trained self-attention module Self-attention network # epoch Best FID Fine-tuned 350 141.02 Pre-trained 370 174.26 Overall, the use of a pre-trained self-attention network module led to a higher FID value (on the same target domain), which suggests an inferior performance in terms of image-to-image translation. To support this conclusion, Figure 40 shows some example images for each scenario. When pretrained, the algorithm does not seem to be able to pay more attention to the regions of interest ( i.e . the cardiac structures) in the image, focusing only on replicating the characteristic US noise, which can lead to losses of anatomical information in the obtained image (Figure 40C). Due to the lack of real US images from the A2C, PSLA, PSSA and SX views, one also studied the ability of the algorithm to learn a specific mapping without images from that particular view. Therefore, two tests were envisioned keeping the target domain composed of EchoNet-Dynamic frames: one with synthetic A2C images (Figure 41; FID score of 145.58 in epoch 400) in the source domain and the other with PSLA images instead (Figure 42; FID score of 124.73 in epoch 400). Evaluating the examples shown in these two figures, we can see that both cases present the features of a true US image in terms of characteristic texture. However, in terms of preserving the anatomical structures of the source image, better results were achieved for the A2C experiment. One possible explanation for this is the higher similarity between A4C and A2C views (namely the presence and similar orientation
3.2. Results and discussion 51 Figure 40: Representative resulting images of the proposed image-to-image translation module applied to synthetic A4C images (A), when employing (B) a fine-tuned or (C) a pre-trained self-attention network module on GLA-Net. of the left side of the heart), when compared to the PSLA view. In short, these results suggest that the method used is not very practical if the source and target domains do not present structurally similar images ( i.e. , the same or similar cardiac views). Looking specifically to the results achieved with the A2C images, although the target domain does not consist of A2C frames (which would theoretically allow us to further improve the realism of the translated images), the obtained images present both anatomical and structural features of a realistic A2C image. The only problem with this particular test is that in some cases the model can be ”tricked” into replicating the anatomy it sees in the target domain images, resulting in the presence of the right-sided chambers that are not present in the synthetic A2C image (see 2nd and Figure 41: Representative resulting images of the proposed image-to-image translation module applied to synthetic A2C images when employing a target domain composed of EchoNet-Dynamic frames only.
3.3. Conclusion 52 Figure 42: Representative resulting images of the proposed image-to-image translation module applied to synthetic PSLA images when employing a target domain composed of EchoNet-Dynamic frames only. 5th columns of Figure 41). However, the possibility to generate an almost infinite number of realist A2C frames associated with spatial information outweigh this small limitation. The same cannot be concluded for the other views, as their absence from the public datasets and their substantial difference with respect to the available views preclude the generation of realistic examples of these views, and ultimately the creation at this stage of a realistic 5-view FoCUS dataset. 3.3 Conclusion Overall, one demonstrated the potential of the proposed pipeline for the automatic generation of realistically looking FoCUS images. Its main limitation lies on the need for images of the relevant view for the target domain. Given the unfeasibility of acquiring images of the remaining views in clinical practice within the present thesis’ timeframe, in Chapter 4, two approaches will be employed: use the synthetic images of all 5 views, generated using the first two modules of the proposed pipeline, to validate the pose estimation algorithm in a 5-view setting; and use the realistic A4C and A2C views generated by the full pipeline to experiment with a setting closer to the clinical practice.
4 POSE ESTIMATION ALGORITHM This chapter describes a novel framework to automatically estimate the spatial relationship between standard views of a FoCUS exam. In order to investigate the accuracy and robustness of the proposed framework, different network architectures are investigated and evaluated using the two datasets (5-view simulated dataset and 2-view realistic one) created in Chapter 3. 4.1 Metho d s The main goal of this thesis is to implement a framework that automatically estimates the spatial relationship between the five standard cardiac views acquired during a FoCUS exam, in order to mitigate the major issues related with the lack of 3D analysis in this type of examination. To accomplish this objective, and based on the methods studied in the state-of-the-art, one proposes a framework composed of three fundamental blocks, as illustrated in Figure 43. The first block aims to regress a line-based heatmap representing the most likely area of intersection between two specific cardiac US images (as perceived on one of them) using a DL-based encoder-decoder architecture (Figure 43A). The second block aims to extract the optimal line from the previously regressed heatmap. A grid search algorithm is used, applying a three-stage coarse-to-fine pyramidal search in both position and orientation (Figure 43B). The third and final module is a 3D view positioning block. In short, by solving a system of non-linear equations created by the intersection points between all possible combinations of 3 views (henceforth named, triplets of views), the relative 3D pose of all input images can be estimated (Figure 43C). All steps involved in the training and testing of this framework were carried out on a workstation with a Nvidia RTX 3080 GPU, with 10GB of VRAM, and an Intel Core i9-11900 CPU. 53
4.1. Methods 54 Figure 43: Overview of the proposed pose estimation framework. This framework is divided into 3 blocks: (A) the heatmap regression block, in which a representative line-based heatmap of the intersection between FoCUS views is regressed using a DL-based encoder-decoder model; (B) a line extraction block, whose aim is to extract the optimal line(s) from the previously regressed heatmap(s); and (C) the 3D view positioning block, with the aim of estimating the relative pose between input cardiac images from their intersection points. 4.1.1 Heatmap regression The aim of the first block is to regress a heatmap representing the intersection line(s) between the input cardiac US images, which would allow a subsequent estimation of their spatial relationship. To solve this problem, an encoder-decoder CNN model is proposed, whose input is the relevant cardiac US images (for example, two images from distinct views) and whose output is the line-based heatmap(s) representing the intersection line between the input images projected onto one (or both) of them. Henceforth, several network architectures will be presented and compared, differing on the number of inputs considered (2 or more), the type of encoder and decoder ( i.e . their contraction and expansion paths), and the output directionality ( i.e . whether regressing the heatmap of the intersection line projected onto one of the input images, or both). Note that, all network architectures considered are based on an encoder-decoder implementation, such as UNet [59]. The advantage of this type of architecture is that the output presents the same resolution as the input image, which allows the immediate extraction of the optimal line from the regressed heatmaps without the need to first interpolate to the input images’ size, which often introduces artifacts and leads to larger errors. Regarding the network’s input, we will investigate the performance difference when considering 2 (minimum), 3 or 5 (maximum) input images, with the goal of studying whether the simultaneous prediction of several views helps the algorithm regress the intersection lines between these views.
4.1. Methods 55 We would like to point out that when using all 5 input images, a single model is sufficient to account for all possible combinations of views, whereas if we use, for example, only 2 inputs, at least 5 different models are required (if the output considers two heatmaps, representing the intersection line projected on both input images). The latter implementation is bound to require more computational time, even if each model alone is probably smaller and less computationally intensive. Regardless of the number of inputs used, the input images are always scaled to the size of 224x224 pixels to reduce the memory required to process them without losing much information. The pixel values are centred and standardised with a mean value of 0 and a standard deviation of one, which improves the convergence stability of the network by reducing the occurrence of exploding gradients. Regarding the encoding path, we have considered two types of implementation: a shared encoder model (Figure 44A) and a multiple (or independent) encoder model (Figure 44B). In short, for a shared encoder model, the weights of the encoder path are shared across all input images. This means that the network learns one single set of convolutional filters for all input images, which theoretically facilitates the learning of a robust feature extractor for US images, independently of the imaged view. On the other hand, a multiple encoder model, as the name suggests, provides a separate contraction path for each input. This allows the encoder to focus on learning view-specific Figure 44: Simplified representations of (A) shared and (B) multiple encoder architectures.
4.1. Methods 56 convolutional filters and better understand the information imaged in each input. In both cases, the feature maps outputted by the encoder(s) are then concatenated before being fed to the decoder. Concerning the decoding path, once more two approaches were studied: a single-decoder architecture and a multiple-decoder architecture. In a single-decoder architecture, the decoder is trained to produce all intended heatmaps as output, whereas in a multiple-decoder, the outputs are separated so that the decoder can focus on specific outputs rather than all of them. Within this last approach, and in relation to the outputs of each decoder, two types of configurations are possible: one decoder per view (Figure 45A) or one decoder per pair of views (Figure 45B). In a per-view configuration, the generated output of each decoder is associated with a specific view ( i.e . heatmaps representing the intersection points between a particular input and all other inputs projected into that particular one). In a per-pair configuration, the output is associated with a pair of views ( i.e . heatmaps representing the intersection between a pair of views, projected into one or both of them). The main difference between these two configurations is in the way the generated feature maps are concatenated before entering the decoding path. In the per-view configuration, all feature maps are concatenated be- Figure 45: Simplified representations of a multiple decoder architecture in (A) per-view and (B) per-pair configurations.
4.1. Methods 57 cause information about all views is needed, whereas in the per-pair configuration, the feature maps for each pair of views are concatenated individually and then fed into the respective decoder. Regardless of the implemented model, both contraction and expansion paths consist of 5 levels, each containing two sequences of convolution (with kernel 3×3), batch normalization (BN) and ReLU. As in UNet, the feature maps of the respective contracting and expanding stages are linked and concatenated using skip connections. The number of kernels applied at each convolution is doubled at each level of the network, with the initial value being 32 kernels. At the end of each contraction level, a 2×2 max-pooling layer is applied to halve the resolution of the feature maps. At the end of each expansion path level, a 2×2 upsampling with nearest-neighbour interpolation is applied to double the feature map resolution. Additionally, two distinct approaches regarding the output’s directionality were implemented: bidirectional and unidirectional. With a bidirectional approach, two-sided heatmaps are regressed, one of which refers to the intersection between two inputs projected on one of the input images, and the second projected on the other. With a unidirectional approach, only one of the heatmaps is regressed instead. Note that when using a unidirectional output, the number of models that must be trained to account for the intended combinations of views increases, resulting in a more computationally intensive method. In terms of network’s output, it corresponds to N 𝑜heatmaps of size 224x224, which are Gaussian maps representing the confidence of the network in the location of the intersections between a pair of input images. N 𝑜depends on both the number of inputs, N 𝑖, and the output’s directionality. Table 5 shows the variation of N 𝑜with respect to these two network properties. Table 5: Influence of output’s directionality and number of inputs in the network’s number of output heatmaps Output’s directionality # Inputs (N𝑖) # Outputs (N𝑜) Bidirectional (N𝑜= N𝑖(N𝑖- 1)) 2 2 3 6 5 20 Unidirectional (N𝑜= N𝑖- 1) 2 1 3 2 5 4 Implementation details All proposed networks were implemented using the Keras framework [92], with Tensorflow backend [93]. A mini-batch gradient descent (with a batch size of 4 or 8, depending on the maximum allowed per architecture type) with the Adam optimiser was used, minimizing the mean square error (MSE) between regressed and ground truth heatmaps. The initial learning rate was set to 1 x 10−3 and
4.1. Methods 58 decreased during training following a cosine decay function [94]. The number of training epochs was set to 100 in all implemented models. The total number of parameters varies according to the type of architecture, as summarized in Table 6. Table 6: Number of network parameters per architecture Encoder Decoder # Inputs # Parameters Shared Single 2 9,817,952 3 11,781,088 5 15,707,552 Multiple (per-view) 3 25,907,680 5 59,664,800 Multiple (per-pair) 3 20,018,656 5 55,721,120 Multiple Single 2 14,535,552 3 21,216,288 5 34,577,952 Multiple (per-view) 3 35,342,880 5 78,535,200 Multiple (per-pair) 3 29,453,856 5 74,591,520 The ground truth heatmaps (Figure 46B, C and D) used during training were generated by applying equation 12, where 𝐷(𝑥,𝑦)is the perpendicular distance between a given pixel and the intersection line, and 𝜎is the standard deviation of the Gaussian heatmap, which in this case is equal to 5 mm (converted to pixels after resizing the input). A, B and C are the line coefficients. 𝑔𝜎(𝑥,𝑦)=𝑒𝑥𝑝(−𝐷(𝑥,𝑦)2 2𝜎2), where 𝐷(𝑥,𝑦)= |𝐴𝑥+𝐵𝑦+𝐶| √𝐴2+𝐵2(12) Note, however, that the intersection line between inputs is not known a priori, as no manuallygenerated label is included in the dataset. Nevertheless, since the created dataset (Chapter 3) contains the 3D pose of each image, a self-supervised strategy (summarized in the flowchart present in Figure 46A) may be employed, with the intersection line between any pair of images being automatically computed without relying on expert knowledge or time-consuming and tedious manual labour. To do so, from the 3D pose matrix stored in each NIFTI file, one determines each image’s plane (defined by a point in the plane, given by the translation component, and the plane’s normal vector, given by the Z-axis of the orientation component). Unless the pair of planes are parallel or coincident (as may occur for images from the same cardiac view), the intersection between them is a 3D line. This line can then be projected onto each one of the two input images.
4.2. Results and discussion 65 Figure 49: (A) Midpoint distance and (B) modified perpendicular line segment Hausdorff distance. p2,𝑙1 and p2,𝑙2 represent, respectively, the midpoint of 𝑙1and 𝑙2.Δ1= max(d𝑙1,1, d𝑙1,2), Δ2= max(d𝑙2,1, d𝑙2,2), Δ3= min(d⟂,𝑙1,1, d⟂,𝑙1,2), Δ4= min(d⟂,𝑙2,1, d⟂,𝑙2,2). Adapted from [96]. We would like to point out that these two metrics evaluate the alignment and the position of the predicted line in a separate form. Therefore, a third metric was considered that takes both aspects into account. The modified perpendicular line segment Hausdorff distance, 𝑑mod, [96] accounts for both angular and positional differences between lines (Figure 49B) by evaluating the perpendicular distances between the predicted line segments’ boundaries and the ground truth ones (and viceversa), as given by equation 16. 𝑑⟂,𝑙𝑖,𝑗represents the perpendicular distance (in mm, as once again one must consider the image’s pixel spacing) between point 𝑗and line 𝑖. 𝑑mod =1 2(𝑤1𝑠⟂,1+𝑤2𝑠⟂,2)(16) 𝑠⟂,1 =min(max(𝑑⟂,𝑙1,1,𝑑⟂,𝑙1,2),max(𝑑⟂,𝑙2,1,𝑑⟂,𝑙2,2)) (17) 𝑠⟂,2 =min(min(𝑑⟂,𝑙1,1,𝑑⟂,𝑙1,2),min(𝑑⟂,𝑙2,1,𝑑⟂,𝑙2,2)) (18) 𝑤𝑖=𝑠⟂,𝑖 (𝑠⟂,1+𝑠⟂,2),with 𝑖={1,2} (19) 4.2.3 Network performance The dataset was divided into two groups: the training/validation set, with images from 20 heart models (∼80%), which is used to train the network and tune its hyperparameters; and the test set, with the remaining 4 heart models (∼20%), which is used for the final unbiased evaluation of the method. During training, 5-fold cross-validation was used, with the result representing the average of the evaluation metrics for the 5 validation folds. All splits were performed across models to avoid having samples of the same cardiac model in more than one group ( i.e . images from each heart model are in either the training, validation or test set only). Since, to our knowledge, there are no comparable studies in the literature, it was necessary to define comparative baselines to evaluate the proposed networks. Two different baselines were im-
4.2. Results and discussion 66 plemented. First, for each of the 24 heart models, we extract all possible combinations of images for a given pair of views (for example, each A4C image to each A2C image). Then, we average the values of 𝑑𝜃,𝑑mid and 𝑑mod calculated between all intersection lines projected onto both images of the pair. This traduces the variability induced in the synthetic image generation, and provides an estimate of the expected error if one would compare two lines obtained by the intersection of two pairs of random images of said pair. Second, we determine the average value of 𝑑𝜃,𝑑mid and 𝑑mod between the perfect and all projected intersection lines for each pair of views. This perfect line is defined as the intersection line obtained when considering the images captured if the optimal probe’s pose is used for the pair of views under consideration (which corresponds to the average pose of all simulated images of said views; see Section 3.1.2). The goal of this baseline is to verify if the network’s prediction corresponds to a memorisation of the average line, rather than actually learning how to predict the correct one. Note that, in both baselines, the mean values for all three metrics correspond to an average of all 24 models used. To simplify further explanations, baseline-var refers to the first baseline presented, while the second is referred to as baseline-mid. Since several different architectures have been proposed for the heatmap regression algorithm, the next experiments trace the results obtained with different implementations, with the aim of identifying the best setup and the reasons behind it. All networks were trained under the same conditions, in terms of input size, heatmap sigma value, optimiser, loss, training strategy and output size. Using the 5-view simulated dataset, Figures 50,51 and 52 show the distribution of 𝑑𝜃,𝑑mid and 𝑑mod obtained by one of the simplest implemented networks (bidirectional shared-encoder singledecoder architecture, with 2 inputs), compared to the two implemented baselines, for each pair of views. Since the errors do not follow a normal distribution (as tested by the D’Agostino-Pearson normality test), the non-parametric Mann-Whitney test with a significance level of 0.05 was applied to check the statistical difference between the proposed model and each one of the baselines. Analysing Figure 50, it can be seen that the proposed method presents a lower average d𝜃compared to the two baselines for all view pairs except the PSLA-PSSA pair. One possible explanation for this exception is that changes in the probe’s pose when acquiring/simulating PSSA views results in images that have similar anatomy (a short-axis view of the heart, with the LV wall appearing as a circular or elliptical annulus) but associated with different intersections (which hampers the network’s task), although restricted to a smaller variability (hence the lower baseline errors). On the other hand, both Figures 51 and 52 show that the implemented shared-encoder single-decoder network outperforms the two baselines in all pairs of views, with a lower average dmid and dmod. Comparing the results of the individual pairs, it can be seen that the lower errors in both positioning and alignment of the intersection lines occur for the A4C-A2C, A2C-SX and PSLA-PSSA pairs. This is due to the fact that the two views under consideration in each one of these pairs are almost perpendicular to each other, which facilitates the prediction of the network. In contrast, the higher errors are associated with the A4C-SX pair, where both views contain identical anatomical information (they allow the visual-
4.2. Results and discussion 67 Figure 50: Comparison of the angular distance error (𝑑𝜃) between the implemented 2-input bidirectional shared-encoder single-decoder network and the two baselines. Figure 51: Comparison of the midpoint distance error (𝑑mid) between the implemented 2-input bidirectional shared-encoder single-decoder network and the two baselines.
4.2. Results and discussion 68 Figure 52: Comparison of the Hausdorff distance error (𝑑mod) between the implemented 2-input bidirectional shared-encoder single-decoder network and the two baselines. isation of all cardiac chambers), and whose image planes are almost parallel or even congruent. This complicates the task of the network considerably, as changes in the probe’s pose lead to completely different intersection lines without the resulting images differing significantly. To evaluate the performance of the network in a more realistic situation, the accuracy of the proposed architecture was also tested using the 2-view realistic dataset, with the results summarized in Table 9. As expected, higher errors were obtained for the realistic images, which may be explained by the presence of noise and shadowing artefacts (features of a real US image) that hinder the network’s task. Nevertheless, compared to the two baselines (var - d𝜃= 4.03, dmid = 13.86, dmod = 9.98; mid - d𝜃= 2.96, dmid = 9.93, dmod = 7.18), the proposed heatmap regression network still presents a good performance. Table 9: Performance of the proposed shared-encoder single-decoder network in a 5-fold cross validation when predicting the intersection between A4C and A2C images A4C-A2C d𝜃(º) dmid (mm) dmod (mm) 5-view simulated dataset 2.24 3.17 3.62 2-view realistic dataset 2.87 3.87 4.56 Briefly, these results prove that one of the simplest architectural variants of the proposed network already performed better than random or average guessing, predicting the intersection between images from a pair of views without any kind of 3D spatial information, for both simulated and realistic
4.2. Results and discussion 69 Figure 53: Line detection examples, using the realist A4C-A2C dataset, from the validation set. The red lines represent the line extracted from the proposed model’s output, and the blue lines the ground truth. From (A)-(C), an example of a good, average and poor line prediction are presented, respectively. datasets. Figures 53 and 54 illustrate some example results obtained using the realistic 2-view dataset and the simulated 5-view one, respectively, on samples from the validation set (in red) together with the respective ground truth line (in blue). Figure 54: Line detection examples of each pair for 2 representative samples from the validation set. The red lines represent the line extracted from the proposed model’s output, and the blue lines the ground truth. From (A)-(J), examples of the A4C-A2C, A4C-PSLA, A4C-PSSA, A4C-SX, A2C-PSLA, A2C-PSSA, A2C-SX, PSLA-PSSA, PSLA-SX and PSSA-SX pair are presented.
4.2. Results and discussion 70 Using once more the simulated dataset, our next experiment focused on evaluating the different options considered for the outputs’ directionality using the same 2-input shared-encoder single-decoder architecture. Within the unidirectional approach, we also explored a distinct strategy which we named multi-unidirectional, which consisted in training the model while receiving a multitude of views as the second input to the network, instead of keeping both inputs fixed ( i.e . the inputs always refer to the same pair of cardiac views). Here, the idea is for the network to learn to predict the intersection of a given view (first input) against any other view (second input), while keeping the model simple (2 inputs) and reducing the number of total models to be trained (only one per view). Table 10 summarises the average performance of the proposed shared-encoder single-decoder architecture upon 5-fold cross validation. Table 10: Performance of the proposed shared-encoder single-decoder network in a 5-fold cross validation depending on the type of output’s directionality A4C A2C PSLA PSSA # Inputs A2C PSLA PSSA SX PSLA PSSA SX PSSA SX SX Average 𝑑𝜃(∘) Bidirectional 2 2.24 5.90 5.47 19.14 4.38 4.81 3.48 3.48 5.67 4.50 5.91 Unidirectional 2 2.24 5.85 5.45 18.76 4.42 4.76 3.46 3.58 5.72 4.50 5.88 Multi-Unidirectional 2* 2.36 5.93 5.13 19.59 4.29 4.80 3.45 3.90 5.78 4.53 5.98 𝑑mid (mm) Bidirectional 2 3.17 8.41 5.73 23.80 5.76 5.27 5.15 4.24 6.53 7.77 7.58 Unidirectional 2 3.28 8.62 5.85 23.82 5.81 5.34 5.32 4.53 6.69 7.81 7.71 Multi-Unidirectional 2* 3.02 8.20 5.43 23.76 5.50 4.82 5.02 4.17 6.62 7.66 7.42 𝑑mod (mm) Bidirectional 2 3.62 7.85 6.88 20.77 5.85 6.31 5.22 4.82 6.79 5.88 7.34 Unidirectional 2 3.68 7.88 6.86 20.73 5.91 6.31 5.27 4.49 6.92 5.92 7.40 Multi-Unidirectional 2* 3.69 7.69 6.46 21.09 5.68 6.16 5.13 4.55 6.84 5.91 7.32 * second input varies during the training phase. The best result per metric, per view pair and averaged, is highlighted in bold. Globally, the results are very similar, with the best result for each metric being achieved by different strategies, despite the slightly better result seen for the multi-unidirectional strategy. Nevertheless, it is important to highlight that besides the fact that unidirectional and bidirectional approaches are simpler, as the network always sees the same input type, the multi-unidirectional one probably leads to a more generic feature extractor and decoder, which may ultimately help the network. However, given the similarity of the results, the remaining experiments will focus on the bidirectional strategy, since it allows to extract two-sided heatmaps, reducing the total number of models to be trained and the associated inference time.
4.2. Results and discussion 71 To evaluate the influence of both the number of inputs and the type of encoding path, our next experiment aims to implement all models that consider all possible combinations of these two network parameters (while keeping the single decoding path). Table 11 shows the results obtained for each of the proposed networks for the 3 metrics implemented. Note that when using a 3-input strategy, it is not possible to combine all views in triplets without overlapping information. Therefore, only an example triplet of views (A4C,A2C and PSLA) was used to compare the accuracy of the implemented networks. Table 11: Performance of the proposed bidirectional single-decoder networks in a 5-fold cross validation regarding the number of inputs and type of encoder Views Encoder # Inputs A4C-A2C A4C-PSLA A2C-PSLA Average 𝑑𝜃(∘) Shared 22.24 5.90 4.38 4.17 32.32 6.16 4.33 4.27 52.35 6.23 4.49 4.36 Multiple 22.30 6.01 4.21 4.17 32.24 6.13 4.28 4.22 52.37 6.25 4.42 4.35 𝑑mid (mm) Shared 23.17 8.41 5.76 5.78 33.35 8.40 5.87 5.87 53.76 9.31 6.10 6.39 Multiple 23.10 8.38 5.46 5.64 33.02 8.24 5.43 5.57 53.10 8.59 5.46 5.72 𝑑mod (mm) Shared 23.62 7.85 5.85 5.77 33.78 8.05 5.84 5.89 54.00 8.56 6.13 6.23 Multiple 23.66 7.84 5.57 5.69 33.56 7.89 5.62 5.69 53.73 8.08 5.71 5.84 The best result per metric, per view pair and averaged, is highlighted in bold. Through the analysis of Table 11, one can see that, for all evaluation metrics, when comparing shared and multiple encoding strategies for the same number of inputs, the lower average errors are always obtained by the multiple encoder architecture. This can be explained by the fact that in a multiple encoder architecture (as explained earlier), each one of the encoders is focused on a single input. Therefore, its weights are fine-tuned during the training phase to produce feature maps that summarise more relevant information about the respective input image. In contrast, in the shared architecture, these weights are shared, resulting in a view-independent feature extractor and, most probably, more generic feature maps, which seems to make the network’s task more difficult. If we
4.2. Results and discussion 72 focus on the number of inputs, better results are obtained with a 2- or 3-input architecture, suggesting that the smaller the number of inputs and outputs to generate, the easier the task becomes. However, it should be noted that, first, as mentioned earlier, the 3-input approach does not allow to relate all view triplets without generating repeated heatmaps across these triplets. Second, the 2-input bidirectional approach requires 10 different models to be implemented to account for all pairs of views, whereas one single model is needed when considering 5 inputs. The latter therefore represents a significantly lower computational time, while presenting a small decrease in performance. Third, since a single-decoder architecture was employed in this experiment, the 5-input implementation might be significantly constrained by the fact that a single decoder has to generate a total of 20 different heatmaps relating 5 distinct views. The next experiment focused on testing the impact of the three decoding strategies described in Section 4.1.1, as we hypothesise that the single-decoder used is indeed the limiting factor when a larger number of inputs is used. This is evidenced by the results summarised in Table 12 (all tested networks consider a multiple-encoder implementation). Table 12: Performance of the proposed 5-input bidirectional multiple-encoder networks in a 5-fold cross validation regarding the type of decoder A4C A2C PSLA PSSA Decoder A2C PSLA PSSA SX PSLA PSSA SX PSSA SX SX Average 𝑑𝜃(∘) Single 2.37 6.25 5.12 23.51 4.42 5.08 3.48 3.68 5.97 4.55 6.44 Multiple (Per-pair) 2.23 6.00 4.89 18.09 4.15 5.05 3.23 3.82 5.34 4.54 5.73 Multiple (Per-view) 2.27 5.90 5.02 18.64 4.13 5.09 3.39 3.66 5.59 4.59 5.83 𝑑mid (mm) Single 3.10 8.59 5.48 28.28 5.46 4.96 4.92 4.18 6.48 7.78 7.92 Multiple (Per-pair) 2.89 8.28 6.93 22.61 5.21 5.15 4.72 4.19 6.09 7.80 7.39 Multiple (Per-view) 2.95 8.14 6.82 23.48 5.21 5.07 4.81 4.08 6.17 7.78 7.45 𝑑mod (mm) Single 3.73 8.08 6.49 26.11 5.71 6.45 5.11 4.39 6.99 5.97 7.90 Multiple (Per-pair) 3.49 7.73 6.29 19.63 5.44 6.47 4.79 4.48 6.36 5.93 7.06 Multiple (Per-view) 3.56 7.68 6.41 20.46 5.39 6.46 4.96 4.32 6.57 5.99 7.18 The best result per metric, per view pair and averaged, is highlighted in bold. Overall, the multiple-decoder implementations result in lower average values for 𝑑𝜃,𝑑mid and 𝑑mod when compared to a single-decoder model, as the outputs of the network are split between the individual decoding paths, helping it to focus only on expanding the received feature maps to match the corresponding desired outputs, rather than all of them. Between the two multiple-decoder strategies implemented, the per-pair configuration outperforms the per-view configuration on all evaluation metrics. This result may be explained by the fact that: (1) the number of outputs of each decoder is higher in a per-view configuration; and (2) in a per-view configuration, each decoder outputs the heatmaps that identify the intersection line between a given input and all other inputs (rather than
4.2. Results and discussion 73 focusing on a single pair), which forces the decoder into focusing its attention on a larger number of input features maps ( i.e . the concatenation of the feature maps of all views) and larger number of outputs, resulting in a less optimal line prediction. Interestingly, if one compares the average 𝑑𝜃,𝑑mid and 𝑑mod for the 3 view pairs considered in Table 11, it is possible to conclude that a 5- view multiple-encoder multiple-decoder (per-pair) configuration outperforms any model with a lower number of inputs (independently of the encoding type). Besides the network architecture, one also evaluated the influence of using input images with different resolutions, as different values of pixel spacing (either higher vs. lower or equal vs. distinct across inputs) may difficult the network’s prediction as the same structures are represented with different relative sizes. For this reason, and to ensure that the pixel spacing of the inputs have a fixed value before entering the network, two different pre-processing methods were implemented: ”All” - the same pixel spacing for all input images; ”View” - a fixed pixel spacing for each input. In both cases, the defined pixel spacing values correspond to the 50th percentile of the pixel spacing’s distribution in the entire dataset (for the first method) or in a specific view (for the second method). The network architecture used in this particular experiment was a 2-input bidirectional shared-encoder singledecoder model. This model was chosen because we believe a simpler architecture might more easily highlight the influence of the input image’s pixel spacing, given the larger room for improvement. The results are shown in Table 13, with the baseline being the original implementation (where the input images are simply resized to 224x224 pixels, named ’None’ in the ’Fix spacing’ column). Table 13: Performance of the proposed 2-input bidirectional shared-encoder single-decoder architecture in a 5-fold cross validation regarding the type of pre-processing applied to the image’s resolution A4C A2C PSLA PSSA Fix spacing A2C PSLA PSSA SX PSLA PSSA SX PSSA SX SX Average 𝑑𝜃(∘) None 2.24 5.90 5.47 19.14 4.38 4.81 3.48 3.48 5.67 4.50 5.91 All 2.35 5.88 5.37 19.48 4.37 5.00 3.58 3.24 5.19 4.34 5.88 View 2.23 5.78 5.31 19.01 4.43 5.06 3.51 3.55 5.55 4.51 5.89 𝑑mid (mm) None 3.17 8.41 5.73 23.80 5.76 5.27 5.15 4.24 6.53 7.77 7.58 All 3.12 8.48 7.13 23.04 5.82 5.41 5.18 4.15 6.19 7.67 7.62 View 3.20 8.43 7.03 23.95 5.94 5.46 5.26 4.18 6.53 7.70 7.77 The best result per metric, per view pair and averaged, is highlighted in bold. The evaluation of the average errors obtained suggests that the fluctuating resolution of the input (’None’ in Table 13) has no major negative influence on the line prediction, as it gives similar results to the ”All” pre-processing and even better than the ”View” pre-processing. However, it is important to point out that, in this study, the images used to evaluate the implemented models did not show extreme variations in resolution (between 0.2 and 0.4 mm; see section 4.1.1), which could be a
4.2. Results and discussion 74 possible explanation for the obtained results. For this reason, and to ensure a higher robustness in situations where the inputs may have higher variability in image resolution, one considers setting the pixel spacing equal to all input images as the correct approach. Note that, in this experiment, 𝑑mod was not used to compare the predicted lines as this metric depends on the distances between the extremities of the two line segments (at the image border), which are directly influenced by the pixel spacing (higher pixel spacing, higher 𝑑mod). When implementing any kind of DL-based method, the use of a dataset that has a large variability is always extremely important, as the network learns from a higher number of distinct images during training, which in turn enhances the network’s ability to generalise for unseen data. In this work, the anatomical variability of the dataset is consequence of applying random variations to the probe’s pose during the dataset generation (see chapter 3). However, it only relates to 24 different models. To test whether increasing the variability of the data helps the network to produce better results, the next experiment considered the augmentation of the training dataset by adding the 5000 simulated images from the 1000 SSM-derived models in [95]. Table 14 compares the results with and without the inclusion of the new images to the training data. Table 14: Performance of the proposed 2-input bidirectional shared-encoder single-decoder architecture in a 5-fold cross validation depending on the training dataset used A4C A2C PSLA PSSA # Patients A2C PSLA PSSA SX PSLA PSSA SX PSSA SX SX Average d𝜃(∘)20 2.24 5.90 5.47 19.14 4.38 4.81 3.48 3.48 5.67 4.50 5.91 20* 2.22 5.57 5.12 18.36 4.19 4.76 3.31 3.64 5.27 4.35 5.68 dmid (mm) 20 3.17 8.41 5.73 23.80 5.76 5.27 5.15 4.24 6.53 7.77 7.58 20* 3.09 7.74 5.28 23.06 5.51 5.02 5.04 4.12 6.05 7.39 7.23 dmod (mm) 20 3.62 7.85 6.88 20.77 5.85 6.31 5.22 4.82 6.79 5.88 7.34 20* 3.56 7.38 6.39 19.99 5.57 6.22 5.01 4.35 6.26 5.69 7.04 * augmenting the training dataset with images from 1000 SSM-derived models. The best result per metric, per view pair and averaged, is highlighted in bold. As expected, and despite being representative of generated models that present similarities with the original ones (and thus with lower potential added value in terms of anatomy variability), the addition of images representing ”new” patients increases the network’s ability to predict more optimal intersection lines (proved by the lower averages for all metrics). Altogether, the above experiments were concerned with searching for the best performing model (not only in terms of the proposed architecture, but also in terms of pre-processing and training dataset), whose result is summarized in Table 15.
BIBLIOGRAPHY [1] G. J. Tortora, Principles of anatomy and physiology . John Wiley & Sons, 12 ed., May 2008. [2] J. Gordon Betts, J. Wise, K. A. Young, P. Desaix, E. W. Johnson, J. E. Johnson, O. Korol, D. Kruse, B. Poe, and M. D. Womble, Anatomy and physiology . OpenStax/Oregon State University, 2020. [3] B. M. Koeppen and B. A. Stanton, Berne & Levy Physiology . Philadelphia, PA: Elsevier - Health Sciences Division, 7 ed., Mar. 2017. [4] R. E. Klabunde, Cardiovascular Physiology Concepts . Philadelphia, PA: Lippincott Williams and Wilkins, July 2004. [5] A. L. Goldberger, Z. D. Goldberger, and A. Shvilkin, Goldberger’s clinical electrocardiography-A simplified approach . New Delhi, India: Elsevier, Oct. 2017. [6] B. G. Buckley, By:, and G. Buckley, “Cardiac cycle - definition, phases and quiz.” https: //biologydictionary.net/cardiac-cycle/, Jan 2021. [7] M. Dondi, D. Paez, P. Raggi, L. J. Shaw, and M. Vannan, Integrated Non-Invasive Cardiovascular Imaging: A Guide for the Practitioner . Non-serial Publications, Vienna, Austria: IAEA, July 2021. [8] R. Rehman, V. S. Yelamanchili, and A. N. Makaryus, Cardiac imaging . StatPearls Publishing, Jan 2022. [9] V. Panis and E. Donal, “Imaging techniques for cardiac function,” vol. 11, p. 10549, Multidisciplinary Digital Publishing Institute, 2021. [10] J. L. Zamorano, J. Bax, J. Knuuti, P. Lancellotti, and L. Badano, The ESC textbook of cardiovascular imaging . Oxford University Press, Mar. 2015. [11] M. Atalay, “Cardiothoracic imaging a report by cardiac magnetic resonance imaging and computed tomography—state of the art. 2019.” [12] “Nuclear medicine.” https://www.nibib.nih.gov/science-education/science-topics/ nuclear-medicine, Dez 2021. [13] M. Tubaro, P. Vranckx, S. Price, and C. Vrints, eds., The ESC textbook of intensive and acute cardiovascular care . The European Society of Cardiology Series, London, England: Oxford University Press, 2 ed., Dec. 2014. 81
82 [14] “Ultrasound-pros and cons.” https://www.euroespa.com/science-education/ specialized-sections/espa-pain-committee/us-regional-anaesthesia/ultrasound-pros-and-cons/, Nov 2021. [15] A. A. Mohamed, A. A. Arifi, and A. Omran, “The basics of echocardiography,” Journal of the Saudi Heart Association , vol. 22, no. 2, pp. 71–76, 2010. [16] S. Kaddoura, Echo Made Easy . Made Easy, London, England: Churchill Livingstone, 2 ed., Jan. 2009. [17] N. M. Tole et al. , Basic physics of ultrasonographic imaging . World Health Organization, 2005. [18] https://kids.britannica.com/students/assembly/view/53868, Dez 2021. [19] R. Rasalingam, M. Makan, and J. E. Perez, The Washington Manual of Echocardiography . A Lippincott manual, Philadelphia, PA: Lippincott Williams and Wilkins, Aug. 2012. [20] A. Wronkowicz, K. Dragan, and K. Lis, “Assessment of uncertainty in damage evaluation by ultrasonic testing of composite structures,” Composite structures , vol. 203, pp. 71–84, 2018. [21] A. E. Kobryn and F. Hirata, “Statistical-mechanical theory of ultrasonic absorption in molecular liquids,” The Journal of chemical physics , vol. 126, no. 4, p. 044504, 2007. [22] M. K. Karmakar and W. H. Kwok, “Ultrasound-guided regional anesthesia,” in A Practice of Anesthesia for Infants and Children , pp. 988–1022, Elsevier, 2019. [23] M. K. Herbst, J. Velasquez, and M. C. O’Rourke, “Cardiac ultrasound,” StatPearls Publishing, 2020. [24] C. M. Otto, R. G. Schwaegler, R. V. Freeman, and J. Linefsky, Echocardiography Review Guide E-Book: Companion to the Textbook of Clinical Echocardiography . Elsevier Health Sciences, 2019. [25] L. P. Badano, F. Boccalini, D. Muraru, L. Dal Bianco, D. Peluso, R. Bellu, G. Zoppellaro, and S. Iliceto, “Current clinical applications of transthoracic three-dimensional echocardiography,” Journal of cardiovascular ultrasound , vol. 20, no. 1, pp. 1–22, 2012. [26] R. M. Lang, V. Mor-Avi, L. Sugeng, P. S. Nieman, and D. J. Sahn, “Three-dimensional echocardiography: the benefits of the additional dimension,” Journal of the American College of Cardiology , vol. 48, no. 10, pp. 2053–2069, 2006. [27] V. Ruddox, M. Mathisen, M. Bækkevar, E. Aune, T. Edvardsen, and J. E. Otterstad, “Is 3d echocardiography superior to 2d echocardiography in general practice?: a systematic review of
83 studies published between 2007 and 2012,” International journal of cardiology , vol. 168, no. 2, pp. 1306–1315, 2013. [28] P. Mayer, “At the heart of the matter: An overview of adult echocardiography for the non–cardiac sonographer,” Journal of Diagnostic Medical Sonography , vol. 31, no. 4, pp. 221–232, 2015. [29] R. M. Lang, L. P. Badano, V. Mor-Avi, J. Afilalo, A. Armstrong, L. Ernande, F. A. Flachskampf, E. Foster, S. A. Goldstein, T. Kuznetsova, et al. , “Recommendations for cardiac chamber quantification by echocardiography in adults: an update from the american society of echocardiography and the european association of cardiovascular imaging,” European Heart Journal- Cardiovascular Imaging , vol. 16, no. 3, pp. 233–271, 2015. [30] Terminology and D. C. C. of The Japan Society of Ultrasonics in Medicine, “Standard measurement of cardiac function indexes,” Journal of Medical Ultrasonics , vol. 33, pp. 123–127, 2006. [31] M. Mathur, H. Al Maluli, and P. Patil, “Assessment of cardiac function by echocardiography,” Current treatment options in cardiovascular medicine , vol. 17, no. 8, pp. 1–13, 2015. [32] E.-L. Antohi and O. Chioncel, “Understanding cardiac systolic performance beyond left ventricular ejection fraction,” pp. 75–84, 2020. [33] A. F. Frangi, W. J. Niessen, and M. A. Viergever, “Three-dimensional modeling for functional analysis of cardiac images, a review,” IEEE transactions on medical imaging , vol. 20, no. 1, pp. 2–5, 2001. [34] H. Soliman-Aboumarie, O.-A. Breithardt, L. Gargani, P. Trambaiolo, and A. N. Neskovic, “How-to: Focus cardiac ultrasound in acute settings,” European Heart Journal-Cardiovascular Imaging , 2021. [35] K. T. Spencer and F. A. Flachskampf, “Focused cardiac ultrasonography,” JACC: Cardiovascular Imaging , vol. 12, no. 7 Part 1, pp. 1243–1253, 2019. [36] A. N. Neskovic, T. Edvardsen, M. Galderisi, M. Garbi, G. Gullace, R. Jurcut, H. Dalen, A. Hagendorff, P. Lancellotti, E. A. of Cardiovascular Imaging Document Reviewers:, et al. , “Focus cardiac ultrasound: the european association of cardiovascular imaging viewpoint,” European Heart Journal–Cardiovascular Imaging , vol. 15, no. 9, pp. 956–960, 2014. [37] P. Andrus and A. Dean, Focused cardiac ultrasound , vol. 8. Elsevier, 2013. [38] S. Kant, “Introduction to focused cardiac ultrasound: The parasternal long axis view.” https://www.renalfellow.org/2019/06/07/ introduction-to-focused-cardiac-ultrasound-the-parasternal-long-axis-view/, Jan 2022.
84 [39] A. S. Nagre, “Focus-assessed transthoracic echocardiography: implications in perioperative and intensive care,” Annals of cardiac anaesthesia , vol. 22, no. 3, p. 302, 2019. [40] M. H. Jafari, H. Girgis, N. Van Woudenberg, Z. Liao, R. Rohling, K. Gin, P. Abolmaesumi, and T. Tsang, “Automatic biplane left ventricular ejection fraction estimation with mobile point-of-care ultrasound using multi-task learning and adversarial training,” International journal of computer assisted radiology and surgery , vol. 14, no. 6, pp. 1027–1037, 2019. [41] D. Wei, K. Ma, and Y. Zheng, “Training automatic view planner for cardiac mr imaging via self-supervision by spatial relationship between views,” in International Conference on Medical Image Computing and Computer-Assisted Intervention , pp. 526–536, Springer, 2021. [42] B. Siciliano, L. Sciavicco, L. Villani, and G. Oriolo, Robotics . Advanced Textbooks in Control and Signal Processing, London, England: Springer, Oct. 2010. [43] J. J. Craig, Introduction to robotics . Upper Saddle River, NJ: Pearson, 3 ed., July 2004. [44] S. B. Niku, Introduction to robotics: analysis, control, applications . John Wiley & Sons, 2020. [45] M. B. Gotway, P. M. Panse, J. F. Gruden, and B. M. Elicker, “Thoracic radiology: noninvasive diagnostic imaging,” in Murray and Nadel’s Textbook of Respiratory Medicine , pp. 299–331, Elsevier, 2016. [46] P. P. Shinde and S. Shah, “A review of machine learning and deep learning applications,” in 2018 Fourth international conference on computing communication control and automation (ICCUBEA) , pp. 1–6, IEEE, 2018. [47] P. Ongsulee, “Artificial intelligence, machine learning and deep learning,” in 2017 15th International Conference on ICT and Knowledge Engineering (ICT&KE) , pp. 1–6, IEEE, 2017. [48] Y. LeCun, Y. Bengio, and G. Hinton, “Deep learning,” nature , vol. 521, no. 7553, pp. 436–444, 2015. [49] L. V. Fausett, Fundamentals of neural networks: architectures, algorithms and applications . Pearson Education India, 2006. [50] “Imperial college machine learning - neural networks.” https://www.doc.ic.ac.uk/~nuric/ teaching/imperial-college-machine-learning-neural-networks.html, Jan 2021. [51] M. A. Nielsen, Neural networks and deep learning , vol. 25. Determination press San Francisco, CA, 2015. [52] A. Ng, “Coursera: Machine learning,” Sep 2021.
85 [53] S. Ruder, “An overview of gradient descent optimization algorithms,” arXiv:1609.04747 , 2016. [54] S. Saha, “A comprehensive guide to convolutional neural networks - the eli5 way.” https://towardsdatascience.com/ a-comprehensive-guide-to-convolutional-neural-networks-the-eli5-way-3bd2b1164a53, Dec 2018. [55] R. Yamashita, M. Nishio, R. K. G. Do, and K. Togashi, “Convolutional neural networks: an overview and application in radiology,” Insights into imaging , vol. 9, no. 4, pp. 611–629, 2018. [56] A. Ghosh, A. Sufian, F. Sultana, A. Chakrabarti, and D. De, “Fundamental concepts of convolutional neural network,” in Recent Trends and Advances in Artificial Intelligence and Internet of Things , pp. 519–567, Springer, 2020. [57] “Chapter 5: Introduction to convolutional neural networks.” https://www.tomasbeuzen.com/ deep-learning-with-pytorch/chapters/chapter5_cnns-pt1.html. [58] A. E. Guissous, “Skin lesion classification using deep neural network,” arXiv:1911.07817 , 2019. [59] O. Ronneberger, P. Fischer, and T. Brox, “U-net: Convolutional networks for biomedical image segmentation,” in International Conference on Medical image computing and computer-assisted intervention , pp. 234–241, Springer, 2015. [60] S. Zhao, Y. Guo, Q. Sheng, and Y. Shyr, “Advanced heat map and clustering analysis using heatmap3,” BioMed research international , vol. 2014, 2014. [61] B. M. ter Haar Romeny, “The gaussian kernel,” Front-End Vision and Multi-Scale Image Analysis: Multi-Scale Computer Vision Theory and Applications, written in Mathematics , pp. 37–51, 2003. [62] J. Chen, “Normal distribution.” https://www.investopedia.com/terms/n/normaldistribution. asp, Dec 2021. [63] A. Nibali, Z. He, S. Morgan, and L. Prendergast, “Numerical coordinate regression with convolutional neural networks,” arXiv:1801.07372 , 2018. [64] C. Payer, D. Štern, H. Bischof, and M. Urschler, “Regressing heatmaps for multiple landmark localization using cnns,” in International Conference on Medical Image Computing and Computer-Assisted Intervention , pp. 230–238, Springer, 2016. [65] M. Sofka, F. Milletari, J. Jia, and A. Rothberg, “Fully convolutional regression network for accurate detection of measurement points,” in Deep learning in medical image analysis and multimodal learning for clinical decision support , pp. 258–266, Springer, 2017.
86 [66] A. Gilbert, M. Holden, L. Eikvil, S. A. Aase, E. Samset, and K. McLeod, “Automated left ventricle dimension measurement in 2d cardiac ultrasound via an anatomically meaningful cnn approach,” in Smart Ultrasound Imaging and Perinatal, Preterm and Paediatric Image Analysis , pp. 29–37, Springer, 2019. [67] B. S. Andreassen, F. Veronesi, O. Gerard, A. H. S. Solberg, and E. Samset, “Mitral annulus segmentation using deep learning in 3-d transesophageal echocardiography,” IEEE journal of biomedical and health informatics , vol. 24, no. 4, pp. 994–1003, 2019. [68] M. H. Jafari, C. Luong, M. Tsang, A. N. Gu, N. Van Woudenberg, R. Rohling, T. Tsang, and P. Abolmaesumi, “U-land: Uncertainty-driven video landmark detection,” arXiv preprint arXiv:2102.01586 , 2021. [69] K. Blansit, T. Retson, E. Masutani, N. Bahrami, and A. Hsiao, “Deep learning–based prescription of cardiac mri planes,” Radiology: Artificial Intelligence , vol. 1, no. 6, p. e180069, 2019. [70] Z. Chen, M. Rigolli, D. M. Vigneault, S. Kligerman, L. Hahn, A. Narezkina, A. Craine, K. Lowe, and F. Contijoch, “Automated cardiac volume assessment and cardiac long-and short-axis imaging plane prediction from electrocardiogram-gated computed tomography volumes enabled by deep learning,” European Heart Journal-Digital Health , 2021. [71] M. M. Rahman and D. N. Davis, “Addressing the class imbalance problem in medical datasets,” International Journal of Machine Learning and Computing , vol. 3, no. 2, p. 224, 2013. [72] I. Spasic and G. Nenadic, “Clinical text data in machine learning: systematic review,” JMIR medical informatics , vol. 8, no. 3, p. e17984, 2020. [73] G. E. Tupholme, “Generation of acoustic pulses by baffled plane pistons,” Mathematika , vol. 16, no. 2, pp. 209–224, 1969. [74] P. R. Stepanishen, “The time-dependent force and radiation impedance on a piston in a rigid infinite planar baffle,” The Journal of the Acoustical Society of America , vol. 49, no. 3B, pp. 841– 849, 1971. [75] J. A. Jensen, “Users’ guide for the field ii program,” Technical University of Denmark , vol. 2800, p. 28, 2001. [76] J. A. Jensen, “Simulation of advanced ultrasound systems using field ii,” in 2004 2nd IEEE International Symposium on Biomedical Imaging: Nano to Macro (IEEE Cat No. 04EX821) , pp. 636–639, IEEE, 2004. [77] J. A. Jensen and P. Munk, “Computer phantoms for simulating ultrasound b-mode and cfm images,” in Acoustical imaging , pp. 75–80, Springer, 1997.
87 [78] A. Lasso, T. Heffter, A. Rankin, C. Pinter, T. Ungi, and G. Fichtinger, “Plus: open-source toolkit for ultrasound-guided intervention systems,” IEEE transactions on biomedical engineering , vol. 61, no. 10, pp. 2527–2537, 2014. [79] “Plus applications user manual.” http://perk-software.cs.queensu.ca/plus/doc/nightly/user/ DeviceUsSimulator.html, Mar 2018. [80] A. Creswell, T. White, V. Dumoulin, K. Arulkumaran, B. Sengupta, and A. A. Bharath, “Generative adversarial networks: An overview,” IEEE Signal Processing Magazine , vol. 35, no. 1, pp. 53–65, 2018. [81] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio, “Generative adversarial nets,” Advances in neural information processing systems , vol. 27, 2014. [82] S. Guan and M. Loew, “A novel measure to evaluate generative adversarial networks based on direct analysis of generated images,” Neural Computing and Applications , pp. 1–16, 2021. [83] Y. Pang, J. Lin, T. Qin, and Z. Chen, “Image-to-image translation: Methods and applications,” arXiv preprint arXiv:2101.08629 , 2021. [84] J.-Y. Zhu, T. Park, P. Isola, and A. A. Efros, “Unpaired image-to-image translation using cycleconsistent adversarial networks,” in Proceedings of the IEEE international conference on computer vision , pp. 2223–2232, 2017. [85] G. Yang, H. Tang, H. Shi, M. Ding, N. Sebe, R. Timofte, L. Van Gool, and E. Ricci, “Global and local alignment networks for unpaired image-to-image translation,” arXiv preprint arXiv:2111.10346 , 2021. [86] M. Strocchi, C. M. Augustin, M. A. Gsell, E. Karabelas, A. Neic, K. Gillette, O. Razeghi, A. J. Prassl, E. J. Vigmond, J. M. Behar, et al. , “A publicly available virtual cohort of four-chamber heart meshes for cardiac electro-mechanics simulations,” PloS one , vol. 15, no. 6, p. e0235145, 2020. [87] T. D. Mast, “Empirical relationships between acoustic parameters in human soft tissues,” Acoustics Research Letters Online , vol. 1, no. 2, pp. 37–42, 2000. [88] M. O. Culjat, D. Goldenberg, P. Tewari, and R. S. Singh, “A review of tissue substitutes for ultrasound imaging,” Ultrasound in medicine & biology , vol. 36, no. 6, pp. 861–873, 2010. [89] S. Leclerc, E. Smistad, J. Pedrosa, A. Østvik, F. Cervenansky, F. Espinosa, T. Espeland, E. A. R. Berg, P.-M. Jodoin, T. Grenier, et al. , “Deep learning for segmentation using an open large-
88 scale dataset in 2d echocardiography,” IEEE transactions on medical imaging , vol. 38, no. 9, pp. 2198–2210, 2019. [90] D. Ouyang, B. He, A. Ghorbani, N. Yuan, J. Ebinger, C. P. Langlotz, P. A. Heidenreich, R. A. Harrington, D. H. Liang, E. A. Ashley, et al. , “Video-based ai for beat-to-beat assessment of cardiac function,” Nature , vol. 580, no. 7802, pp. 252–256, 2020. [91] M. Heusel, H. Ramsauer, T. Unterthiner, B. Nessler, and S. Hochreiter, “Gans trained by a two time-scale update rule converge to a local nash equilibrium,” Advances in neural information processing systems , vol. 30, 2017. [92] F. Chollet et al. , “Keras.” https://github.com/fchollet/keras, 2015. [93] M. Abadi, A. Agarwal, P. Barham, E. Brevdo, Z. Chen, C. Citro, G. S. Corrado, A. Davis, J. Dean, M. Devin, S. Ghemawat, I. Goodfellow, A. Harp, G. Irving, M. Isard, Y. Jia, R. Jozefowicz, L. Kaiser, M. Kudlur, J. Levenberg, D. Mané, R. Monga, S. Moore, D. Murray, C. Olah, M. Schuster, J. Shlens, B. Steiner, I. Sutskever, K. Talwar, P. Tucker, V. Vanhoucke, V. Vasudevan, F. Viégas, O. Vinyals, P. Warden, M. Wattenberg, M. Wicke, Y. Yu, and X. Zheng, “TensorFlow: Large-scale machine learning on heterogeneous systems,” 2015. Software available from tensorflow.org. [94] I. Loshchilov and F. Hutter, “Sgdr: Stochastic gradient descent with warm restarts,” arXiv:1608.03983 , 2016. [95] C. Rodero, M. Strocchi, M. Marciniak, S. Longobardi, J. Whitaker, M. O’Neill, K. Gillette, C. Augustin, G. Plank, E. Vigmond, P. Lamata, and S. Niederer, “Virtual cohort of 1000 synthetic heart meshes from adult human healthy population,” PLOS Computational Biology , Mar 2021. [96] S. Wirtz and D. Paulus, “Evaluation of established line segment distance functions,” Pattern Recognition and Image Analysis , vol. 26, no. 2, pp. 354–359, 2016.