Full text
Thesis submitted in partial fulfillment of the Bachelor's in Engineering Physics at Polytechnic University of Catalonia On the Characterization of Hepatocellular Carcinoma based on 18F-FDG Kinetics in Early Dynamic PET/CT Research project leaded by the Catalan Institute of Oncology (ICO) June 28, 2022 Author: Director: Àlex Chicano Corrales Dr. Reynés Llompart, Gabriel Supervisor: Co-Director Prof. Vilaplana Besler, Verónica Dr. Sabaté Llobera, Aida
i Akcnowledgements Voldria agrair el suport rebut per part de la meva supervisora, la professora Verónica Vilaplana, i de la meva codirectora, la doctora Aida Sabaté, durant la realització d'aquest projecte. També a en Daniel López, un professor a qui recordaré per tenir sempre la seva mà estesa per fer recerca i per introduir-me en el món de la cooperació. A la Karima i l'Axel. Jo tampoc tinc ni idea de com hem arribat fins aquí, la veritat, però me n'alegro moltíssim! A tot el personal de Medicina Nuclear de l'Hospital de Bellvitge, per acollirme tan bé i fer-me veure el què és formar part de la família. Al meu barri, Bellvitge, per cuidar-me durant tota una vida i ensenyar-me que a vegades és veritat que el millor és a casa nostra. Al Biel, per tenir la paciència, empatia i les galetes que necessitava per treballar en aquest projecte. Gràcies per ensenyar-me que la radiofísica pot ser molt xula quan no se t'amunteguen les reunions i mil feines. Als meus amics, familiars i en especial als meus pares i la meva germana, per haver-me donat els ànims i força necessària per fer-ho possible. Això és gràcies a vosaltres.
ii About this project This project is framed within the field of Nuclear Medicine and involves disciplines such as PET/CT imaging techniques, image and data processing and statistical analysis. The following report summarizes my internship at the Nuclear Medicine Department of Hospital de Bellvitge in which I worked with Dr. Gabriel Reynés Llompart and Dr. Aida Sabaté Llobera on the study of 18F-FDG Early Dynamic PET/CT as a tool to characterize Hepatocellular Carcinoma lesions. Abstract Hepatocellular carcinoma (HCC) is the most frequent type of primary hepatic malignant tumor in adults and the third most common cause of cancer-related death worldwide. Its recommended diagnostic techniques are multiphasic contrast-enhanced both CT and MRI, which provide acceptable accuracy in the detection of lesions larger than 2cm of nodule diameter. Nevertheless, characterizing such an incident and malignant tumor is still a challenge that needs to be addressed (1) (2). Previous studies have proposed the use of 18F-FDG –a radiotracer that can help estimate the metabolic rate in tissues– in Early Dynamic PET/CT to further characterize HCC lesions. It is suggested that its kinetics and blood flow parameters can be related to the histological parameters of the HCC, which would help determine the aggressivity of the lesion. In this project, we have created a robust workflow that processes PET/CT images and computes blood flow parameters of several ROIs. This has assessed the characterization of the lesion by comparison of its parameters with the ones obtained for background liver –liver in which lesions have been excluded–. To visually compare the different behaviors in the liver we have also generated voxelwise-parameter images in which both the lesion extent and its different behavior compared to background liver were clearly distinguishable. Although analysis for 24 patients did not lead to statistical findings clearly related with the histology of resected HCC, parameter images proved to be a successful tool to discriminate the lesion's extent and different behavior inside the ROI of HCC. This workflow proved itself as a powerful tool with which more HCC patients can be analyzed to obtain correlations between these parameters and the histology of the lesion.
iii Table of Contents 1. Introduction .................................................................................................................... 1 1.1. Hepatocellular Carcinoma .................................................................................................. 1 1.2. Role of 18F-FDG PET/CT in HCC characterization ...................................................... 1 1.3. Hypothesis of the Project ................................................................................................... 2 1.4. Objective and Aims ............................................................................................................... 2 1.5. About this report ................................................................................................ 2 2. Background .................................................................................................................... 4 2.1. HCC and its Characterization ............................................................................................ 4 2.2. Physiological Analysis with PET ....................................................................................... 6 2.3. Uptake and Perfusion Quantification in HCC ............................................................. 10 3. Methodology .................................................................................................................. 17 3.1. Subject Group ...................................................................................................................... 17 3.2. Acquisition Protocols ......................................................................................................... 17 3.3. Data Processing ................................................................................................................... 18 3.4. Data Treatment .................................................................................................................. 23 3.5. Computed Parameters by ROIs ...................................................................................... 26 3.6. Computed Parameters voxel-wise ................................................................................ 28 4. Results and Discussions ........................................................................................... 29 4.1. Masking and Image Processing ...................................................................................... 29 4.2. Physiological interpretation of the TACs obtained ................................................... 29 4.3. Parameter Images .............................................................................................................. 32 4.4. Statistical Analysis and Hypothesis Testing ............................................................... 34 5. Conclusions .................................................................................................................. 38 5.1. Achievements ..................................................................................................................... 38 5.2. Limitations ........................................................................................................................... 38 5.3. Final Thoughts .................................................................................................................... 39 Bibliography ........................................................................................................................ 40 Tables ..................................................................................................................................... 42 Scripts Description ........................................................................................................... 45 1. functions.py ............................................................................................................................. 45 2. RTStruct_to_nii.py ............................................................................................................... 46 3. Get_SUV_for_ROIs.py .......................................................................................................... 47 4. Get_parameters.py ................................................................................................................ 47 5. Pars_images_general.py ..................................................................................................... 48 Useful terminology ............................................................................................................ 49
Introduction 1 1. Introduction 1.1. Hepatocellular Carcinoma Hepatocellular carcinoma –also abbreviated as HCC– is a hepatic malignant tumor that usually appears in a previously damaged liver as a consequence of a long-term hepatic disease. In most cases it is associated with alcohol intake but also with viral infections such as hepatitis B or C. It is the most frequent type of primary hepatic malignant tumor in adults and the second most common cause of cancer-related death worldwide (3) (4). Its most recommended non-invasive diagnostic techniques are multiphasic contrast-enhanced both CT and MRI (1). Although the diagnosis of HCCs of nodule diameter > 2 cm has acceptable accuracy, there are some limitations in the diagnosis of smaller lesions. According to experts in Oncology, research on its diagnosis and the development of new prognostic indicators should be prioritized (3) (5). 1.2. Role of 18F-FDG PET/CT in HCC characterization While contrast enhanced imaging techniques such as CECT and CEMRI prove to be successful in the diagnosis of HCC, characterizing such an incident and malignant tumor is still a challenge that needs to be addressed (1) (2). The emergence of molecular-targeted therapies makes early characterization a priority. But in order to avoid sampling risks, other noninvasive techniques are needed to estimate histological properties such as angioinvasion or differentiation degree –a prediction of how likely the tumor is to spread and invade neighboring tissues–. The general availability of 18F-FDG and its applications in blood flow and glucose consumption studies make it a suitable candidate for such challenge. Early dynamic studies –i.e., PET/CT dynamic images of the initial minutes after injection– using 18F-FDG might assess the nature of irrigation
Introduction 2 in HCC and provide an estimation of angioinvasion. 18F-FDG uptake might also help estimate the differentiation degree or recurrence rate (6). 1.3. Hypothesis of the Project Our hypothesis is summarized in the following statement: HCC presents different 18F-FDG uptake in the early dynamic study with 18F- FDG PET/CT, related to different histological characteristics of the tumor. These uptake patterns can assess the characterization of the lesion using this imaging technique and predict its aggressiveness. 1.4. Objective and Aims Our main objective is to determine whether different parameters extracted from the curves of 18F-FDG uptake in HCC can be correlated with their histological parameters. Specifically, our aims are the following: 1) To create a robust workflow that based on the segmentations of each ROI over CT scans from PET/CT series, extracts the curves of 18F-FDG uptake and computes certain blood flow parameters. 2) To correlate these curves and the resulting parameters with the histology of the tumor. 3) To obtain different image representations of flow parameters that complement 18F-FDG-PET/CT images to help identify the lesion extension and to obtain a behavior map of the liver. 1.5. About this report This report is aimed at introducing the reader to the context of HCC – regarding its physiology, diagnosis techniques and the state of the art in its characterization– before getting a detailed description of the steps followed and decisions taken in order to achieving our objectives.
Introduction 3 Except for those images in which ownership and terms of use are stated, we have generated all the figures included in this report and own their rights. All CT or PET/CT images are axial planes of the abdomen, i.e. planes that divide the abdomen perpendicularly to the head-to-feet direction.
Background 4 2. Background 2.1. HCC and its Characterization This section is aimed at introducing the reader to physiological context the liver, the diagnosis and management of HCC and particularities in the physiology of this lesion that are key in its characterization. 2.1.1. The Liver and its Vasculature The liver (5) (7) is the largest internal organ in the human body, weighting around 1,5 kg. Its main functions involve the synthesis of bile and plasma proteins, degradation of endocrine secretions and ingested toxins, metabolization of nutrients and storage of vitamins and iron, among others. A blood volume of around 400 mL flows through the liver at a rate of 1,2 L/min. This is supplied by two vessels that make up the so-called dual input blood supply: • The portal vein –or PV– supplies around 75% of the blood flow in the liver. This vessel drains blood from the spleen, intestines, stomach, pancreas and biliary vesicle transporting poorly oxygenated blood with nutrients, endocrine secretions and toxins to the liver. • The remaining 25% of its blood flow is supplied by a short blood vessel named hepatic artery —or HA—, which branches from the abdominal aorta and provides highly oxygenated blood to the liver.
Background 5 Figure 1: Axial planes of CT images in which the main vessels in the liver can be distinguished. Source: Stanford University - School of Medicine, radiology dept., under fair use guidelines. 2.1.2. Diagnosis and Management of HCC Diagnostic work-up in HCC includes the evaluation of risk factors for chronic liver disease such as alcohol or drugs abuse, obesity, diabetes, arterial hypertension and general laboratory analysis, like complete blood count or liver panel tests. Clinical guidelines (1) in diagnosis of HCC suggests non-invasive contrastenhanced imaging techniques such as CT or MRI for its diagnosis. Histological analysis via biopsy is also accepted now due to the manageability of potential risks derived from it, such as bleeding or needle seeding — invasion of the tissue tracked by the needle during biopsy—. For patients presenting liver cirrhosis —cicatrization of the hepatic tissue— the diagnosis can be confirmed simply by clear hypervascularity findings in the arterial phase while tumor biopsy is required in the diagnose of noncirrhotic liver. In both cases, extrahepatic spread should also be evaluated. Management of early and intermediate HCC consists of liver resection or transplantation and local ablative methods. As examples of palliative treatments that are also recommended there is radioembolization and chemoembolization, which consist of the local injection of radioactive or chemotherapy drugs in a mixture of oil and particles that block off the artery for prolonged effects. These techniques are aimed at prolonging overall survival.
Background 12 2.3.2. Kinetic Models of 18F-FDG Perfusion Dynamic PET opens the door to in vivo molecular imaging that systemically leads to regional measures of concentrations of radiotracer. Due to the specificity of radiopharmaceutical ligands these concentrations can also quantify processes taking place within the different so-called compartments. A compartment (16) is defined as a state of a system that can vary over time but not in space. In the case of 18F-FDG metabolization in the liver, the concentrations of the three compartments considered are: • Concentration of free-state 18F-FDG in plasma, that we denote as 𝐶, ( 𝑡 ) . • Concentration of free-state 18F-FDG in hepatic tissue, 𝐶- ( 𝑡 ). • Concentration of metabolized 18F-FDG-6P in hepatic tissue, 𝐶. ( 𝑡 ). The resulting diagram is the following: The main assumptions in compartmental models are the following: • Compartments are well-mixed: There is no spatial gradient of concentrations in the volume considered –a voxel, for instance–. • The variation of concentration in a given compartment is fully described by a single ordinary differential equation which also involves the concentrations in each contiguous compartment and a coefficient that weights the contribution of each transition. These coefficients are usually assumed constant and they refer to a rate at which a process or transition takes place.
Background 13 The equations derived from the previous model are: 𝑑𝐶- ( 𝑡 ) 𝑑𝑡 =− ( 𝐾/ #+𝐾. ) 5𝐶- ( 𝑡 ) +𝐾. #5𝐶. ( 𝑡 ) +𝐾/5𝐶, ( 𝑡 ) 𝑑𝐶. ( 𝑡 ) 𝑑𝑡 =−𝐾. #5𝐶. ( 𝑡 ) +𝐾.5𝐶- ( 𝑡 ) The objective of compartmental analysis is to isolate the contribution of each compartment to the signal acquired in PET imaging and this way estimate voxel-by-voxel the rates at which each process takes place. The signal obtained is proportional to the total concentration of radiotracer in any given form, which corresponds to the sum of concentrations in each compartment. Considering a blood volume fraction 𝜐0 , which in normal liver is around 25 mL/100g, we obtain the following estimation: 𝐶$/123 ( 𝑡 ) =𝜐05𝐶, ( 𝑡 ) + ( 1−𝜐0 )8 𝐶- ( 𝑡 ) +𝐶. ( 𝑡 )9 Just like any other biological system, this model requires an input that provides it with substrates to initiate all the following processes. In this case, concentration of 18F-FDG in plasma 𝐶, ( 𝑡 ) can be modeled as the flow of 18F- FDG from the Hepatic Artery and the Portal Vein. Even though inputs are not strictly compartments –because they are not well-mixed, for example– they can be represented in a similar way. In this case we obtain the following diagram:
Background 14 𝐹45 and 𝐹67 represent the blood flow provided by each vessel. 2.3.3. First-pass Model In early-dynamic PET, another model named first-pass (17) can be applied for regional blood flow estimation. This model is based in Saperstein hypothesis, which states that during an initial perfusion of the radiotracer through an organ there is a time at which it has not yet left the ROI and reached the drainage vessels. That is, during first-pass, the bolus of radiotracer accumulates in the tissue for a given time 𝒕 before being drained. This delay can be related to the vascular density in the ROI. Based on Fick's law, which states that blood flow perfusing an organ can be calculated by measuring the amount of tracer as input, output and taken up by the organ, for first-pass (when 𝐶89+ ( 𝑡 ) 5=50 for 𝑡5<5𝒕 ) we obtain: 𝑌6:) ( 𝑡 ) = ? F5𝐶/% ( 𝑡 ) 𝑑𝑡 + "− ? F5𝐶89+ ( 𝑡 ) 𝑑𝑡 ; += = ? F5𝐶/% ( 𝑡 ) 𝑑𝑡 + " Considering a highly-vascularized tissue, in which blood spreads quickly, the TAC –for time-activity curve– will reach its peak at time 𝒕𝒎 which is assumed 𝒕𝒎 < 𝒕 . By differentiating Fick's law and evaluating it at 𝒕𝒎 we obtain:
Background 15 𝑌6:) ( 𝑡. ) 𝑑𝑡 =0=F5𝐶/% ( 𝑡. ) −F5𝐶=>; ( 𝑡. ) Provided that 𝐶89+ ( 𝑡. ) = 0, this can only be achieved given that 𝐶/% ( 𝑡. ) = 0,5 which means that the signal will reach its maximum at the same time as the input function to the ROI ceases. Since flow is steady at this time 𝑡. , we can compute it more rigorously: 𝐹= 𝑌6:) ( 𝑡. ) ∫ 5𝐶/% ( 𝑡 ) 𝑑𝑡 +# " Note that in case that input is dual, just like it happens in the liver with the HA and PV, given that arterial flow is provided earlier and assuming that venous input is provided considerably later, which minimizes overlaying effects, we can compute: 𝐹45 =SUV?@ABC F 𝑡.,45 G ∫ 5𝐶45 ( 𝑡 ) 𝑑𝑡 +#,%& " 2.3.4. Hepatic Perfusion Index A different approach to quantify the contribution of each blood input in the liver is by computing the hepatic perfusion index (18), which involves analyzing the maximum slope of the PET signal in arterial and portal phases: Considering that during the first-pass of bolus, perfusion becomes mainly arterial and then portal or mixed, by measuring the maximum slopes during these two phases, denoted as 𝑔455 and 𝑔67 , we compute: 𝐻𝑃𝐼= 𝑔45 𝑔45 +𝑔67 This computation is only possible providing that the sampling rate during the initial phases of perfusion provides enough data to compute the slopes.
Background 16 2.3.5. Recirculation Effects With a recirculation time of about 45s, the effects of the radiotracer bolus detected in its second pass through the liver are severely experienced sometimes even before the portal flow has entirely perfused the liver. Due to the delay of PV flow with respect to HA and the effects of recirculation, the no-wash-out hypothesis does not generally hold for portal flow. This makes computation of perfusion parameters, such as MTT —mean transit time— or AUC —area under curve— more complicated. In an effort to avoid these effects, it is proposed (9) that the TAC —time activity curve— can be fitted as a first-pass curve taking into consideration only the values at which recirculation effects are not noticeable. These are, in general, the values up until just a few points after the curve's maximum. A candidate function for this purpose is the gamma-variate (19), a function that has been successfully used for fitting measures of tracer dilution and which can be physiologically interpreted from its deterministic derivation based in a chain of mixing chambers. It is defined as follows: 𝑦 ( 𝑡 ) =𝑦!"# & 𝑡 𝑡!"# ' $𝑒% & '()( * *!"# +
Methodology 17 3. Methodology 3.1. Subject Group The group sample analyzed in this project was gathered for project code PR191/17, a research study entitled 2-[18F]FDG PET/CT as a Predictor of Microvascular Invasion and High Histological Grade in Patients with Hepatocellular Carcinoma (20) and conducted by members linked to Bellvitge Hospital, in L'Hospitalet de Llobregat. Patients included in this original study were diagnosed with an HCC according to the criteria of the established guidelines and evaluated by the multidisciplinary team for liver tumors of Bellvitge Hospital, who considered them as candidates for surgical treatment. They then followed the standard workup for surgical patients with the additional performance of a PET/CT with FDG. The gross inspection of the surgery specimens included serial sections of less than 1 cm thick in order to properly identify the number of nodules, their sizes and their location, trying to correlate these findings with the radiological ones. The presence of satellite nodules, MVI –microvascular invasion– and a margin invasion as well as the differentiation grade (G1–G4, according to Edmondson and Steiner) were assessed by microscopy. The subsample analyzed in this project consists of 38 participants (34 men, 4 women, mean age 61 ± 11 Y) each one with a single confirmed primary HCC (mean diameter 3.37 ± 1.51 cm) of stages BCLC 0 and A. Histopathological data of confirmed lesions was acquired by means of resection. 3.2. Acquisition Protocols The PET/CT studies were performed in a Discovery IQ 5-ring (GE Healthcare, Waukesha, WI). Imaging protocol included two different acquisitions: • An 18F-FDG early dynamic PET/CT acquisition: Patients were asked to fast for 8h before intravenous injection of a mean dose of around 6mCi of 18F-FDG, dependent on their weight. A
Methodology 18 13-time-frames dynamic PET acquisition was performed centered on the liver and initiated at intravenous injection. These frames were acquired in the following way: o A total of 4 frames were acquired every 15s after injection, providing images at 15s, 30s, 45s and 60s. o Following that, a total of 9 frames were acquired every 60s, providing images at 120s, 180s, 240s, 300s, 360s, 420s, 480s, 540s and 600s. Due to the low quality of this CT image, another higher quality image is needed for segmentation purposes. • An arterial phase CT scan of the upper abdomen: This image was used to localize the extent of the lesion which was anatomically identifiable in order to segment different ROIs over it. Images were exported as DICOM files –a standard for management of medical imaging– with the following geometrical specifications: Slices (x, y, z) Voxel size [mm] CT image (1 frame) (512, 512, 102) (1.171875, 1.171875, 3.26) or (0.783203, 0.783203, 3.26) PET images (13 frames) (128, 128, 79) (5.46785, 5.46785, 3.7) 3.3. Data Processing The objective in the data processing was to obtain the uptake values for each ROI considered and for each time frame. This process consisted on two different steps, Image Segmentation and Image Processing: 3.3.1. Image Segmentation Uptake analysis was assessed by a total of 4 three-dimensional masks, one for each ROI, which were generated over an arterial phase CT –since it is only in this CT scan where HCC can be visually identified– and were later transferred to the CT image of PET/CT series.
Methodology 19 Although the initial objective was using a free software like Slicer3D, due to the need of fast deformable registration capabilities the chosen software was MIM SurePlan™ LiverY90 v.7.1.3. Even though there are some methods of automated segmentation of the liver, this is still a challenge due to the occurrence of motion artifacts –such as patient's breathing– and the similarity in grayscale intensities of tissues adjacent to the liver. Since none of these automated segmentation methods were widely accessible this process had to be done manually: We used "2D brush" tool to create contours slice by slice over the arterial phase CT. A practical capability that MIM offers is the "CoPilot", which suggests a new contour on the next slice to be brushed based on similarities between slices. This improves productivity considerably since the new contour does not have to be manually segmented entirely from scratch. Figure 4: Screenshot of contouring capabilities on MIM 7.1.3. Source: Extracted from tutorial https://www.youtube.com/watch?v=GpnOajZaZb4. The 4 different ROIs segmented were: • HCC, outlined based on visual homogeneity of the tissue density. • Background healthy liver (i.e., liver from which HCC has been subtracted), excluding portal vein and biliary vesicle.
Methodology 20 • Abdominal aorta, for arterial input estimation. • Spleen, for portal input estimation. Correct segmentation was supervised by an expert Nuclear Physician with over 7 years of experience in liver imaging. Now that ROIs had been correctly segmented over an arterial phase CT, they had to be transferred to the CT image of PET/CT series for masking PET images. We used MIM's "Contours Transfer" workflow, which deforms contours between two CT scans and transfers its ROIs automatically with only some rounding mistakes that could be fixed with 2D Brush tool. After transferring these contours to the CT image of PET/CT series –which is coregistered with PET by default due to its acquisition protocol–, the only problems left to be solved for ROIs to successfully mask PET images were the difference in voxel size and slices number between CT and PET. This challenge was addressed in the next step in image processing. Masks were exported as a single RTStruct file, a format used in radiotherapy for contour exportation purposes. These are the segmented ROIs overlayed with the CT scan coregistered with PET. Figure 5: CT of patient HCC_8 of the group sample with ROIs HCC, background liver, aorta and spleen.
Methodology 21 3.3.2. Image Processing Image processing was coded in Python 3.8 programming language and performed on Spyder IDE with Anaconda as virtual environment manager. A detailed description of the scripts used can be found in the annex of this document. The steps followed are the following: 1. RTStruct to Nifti conversion: Masks that were exported by MIM as RTStruct were converted into separate Nifti files, an image format typically used in neuroimaging that is easily accessed with NiBabel library in Python. 2. Loading PET and CT and scaling in HU units: CT and PET DICOM files were loaded as a stack of slices —i.e., individual images corresponding to every single slice provided with a header of serialized metadata—. Then PET stack of slices was split by time frames, yielding 13 stacks. Finally, CT image was transformed into HU grayscale. 3. SUV computation for PET images: PET image was rescaled in SUV units, obtaining the injected dose, radionuclide’s half-life, patient's weight and acquisition time from its metadata. 4. ROIs images resizing and binarization: ROIs images loaded from Nifti files have CT image slices number and voxel dimensions (102 axial slices of 512x512 matrix and different voxel sizes, depending on the acquisition protocol). Resizing ROIs images to PET slices number (79 axial slices of 128x128 matrix) and voxel dimensions is entailed for masking PET images. This process is assessed with SciPy.ndimage and Skimage libraries. The original approach of segmenting HCC and liver ROIs separately led to the loss of part of the pixels within the contours of HCC due to rounding errors. A way to avoid that is by summing HCC and healthy liver ROIs, rescaling it and finally subtracting the rescaled ROI of the HCC, for example.
Methodology 28 After that, parameters init_ 𝑘 , init_ 𝑡% and their additional relative forms were extracted from exponential fitting of Liver and HCC: 𝑦-1-* ( 𝑡 ) =𝐴 1+𝑒()2( ( *)*$ ) And finally, parameters tail_ 𝐴 , tail_ 𝑘 , tail_ 𝑁 and their additional relative forms were also extracted from exponential fittings of Liver and HCC: 𝑦*"-5 ( 𝑡 ) =𝐴,𝑒()2( ( *)*$ ) +𝑁 3.6. Computed Parameters voxel-wise To qualitative analyze the different local behaviors in the liver, the parameters AUC, F, cF, TTP, MTT, PI, tail_k, tail_N, init_A, init_k and init_t0 were computed with the same procedure previously described but this time based on the TAC of each voxel in the Liver and HCC ROIs. For each one of these parameters, a 0-valued-3D array of the size of CT image was created. Then, voxel by voxel, these images store the computed values in the corresponding coordinates. This way, CT and parameter images were naturally coregistered to assess overlaying. Finally, due to the noisy nature of PET images, these images are smoothed with a Gaussian filter with the objective of getting the local averages of the intensities in the image. The command used for this purpose is gaussian_filter( ) from library scipy.ndimage. Experimentally, it was decided that sigma = 0.7 was a suitable value as smoothing factor.
Results and Discussions 29 4. Results and Discussions On this chapter we analyze the results obtained in each step of the process. 4.1. Masking and Image Processing Masks were successfully generated with MIM software for all analyzed patients: Contours transferring capabilities of this software were key in the feasibility of HCC masking since it was only on the arterial CT scans that HCC could be segmented. During the realization of this project, our license for MIM expired and after several attempts to use other softwares for this same purpose, none of them successfully transferred contours between CTs. Eventually, our license was reactivated and we could finish extracting the ROIs from the last patients in the group sample. This highlights the great dependency of this workflow on a software with these capabilities. Regarding image processing, this workflow also proved to be robust since it accepted different voxels sizes and different number of slices of CT and even PET images. After resampling and resizing, all ROIs were correctly coregistered with PET images and no numerical errors or misalignments could be appreciated, concluding that Image Processing was a success. 4.2. Physiological interpretation of the TACs obtained TACs obtained were found to have a clear behavior that can be explained in terms of 18F-FDG kinetics: Once the intravenous injection bolus of 18F-FDG enters the bloodstream, it is pumped towards the abdominal aorta. This explains why the first peak is detected in the aorta with the highest intensity, since this bolus is still very concentrated due to the short time elapsed since injection:
Results and Discussions 30 Figure 10: Average TACs for Aorta and Spleen with standard deviations for all patients of the group sample. After this, the bolus arrives at the organs of the abdomen and reaches the Spleen via the porta vein. It is now when Spleen achieves its highest value, which is lower than the one for Aorta due to the dilution of the bolus. Due to the low sampling rate during the initial moments –every 15 s– and the rapid changes in the SUV computed in abdominal aorta and spleen, we notice a considerable deviation before converging to a common tendency after the first 2 min. Since none of these vessels have tissues that trap 18F-FDG notoriously, both TACs have the same tendency in which their SUV decreases and stabilizes at a value ruled by the homogeneous dilution of 18F-FDG in the bloodstream. The hepatic artery and later the portal vein irrigate the liver, which initiates the perfusion of 18F-FDG into its cells. Due to metabolic trapping, SUV in the liver increases rapidly and, after reaching its maximum, it decreases slower than in vessels:
Results and Discussions 31 Figure 11: Average TACs for Liver and HCC with standard deviations for all patients of the group sample. One thing to notice is the greater variability of these TACs compared to ones of vessels. There might be different factors involved in this –such as different doses used or anomalies in the dilution after injection– but this is especially remarkable for HCC. This might also be due to necrosed areas in the ROI, different localizations of the lesion in the liver or simply different HCC uptake behaviors. Another thing to notice is the tendency of HCC to have an earlier irrigation compared to Background Liver. This is a fact that could be fairly related to angiogenesis since new arterial vascularization could lead to an earlier irrigation of the ROI. This can also be appreciated by observing the initial frames of PET images. Notice how HCC presents an early uptake compared to backgound liver before it becomes indistinguishable:
Results and Discussions 32 Figure 12: Masked PET/CT of pixel sizes 128x128 at 15s (A), 30s (B), 45s (C) and 60s (D) for patient HCC_8. 4.3. Parameter Images Images of parameters computed voxel-by-voxel were also generated successfully: Figure 13: CT with overlayed ROIs (top), CT with F-parameter (left) and CT with TTP parameter (right). Images correspond to patient HCC_8 of the group sample. In these images, F-Parameter, which is proportional to the concentration of radiotracer at aorta’s peak time, shows a higher intensity in the tumor region A C D HCC B
Results and Discussions 33 while Time To Peak, the delay between voxel’s and aorta’s peak times, shows darker areas for early-irrigated tissue. We can notice how the regions with similar values of these two parameters do not necessarily have the exact same shape or extension as the segmented ROI. This might be due to the similar behavior between HCC and its neighboring tissues or other causes, like noise naturally present in PET images or the use of a Gaussian filter. Table 4 in annex shows whether each HCC could be identified in the colormap of each parameter image. For this group sample, the parameters images obtained yielded the following scores: Parameters TTP PI AUC MTT F cF tail_k tail_N init_A init_k init_t0 Scores: 56% 50% 60% 41% 53% 69% 34% 34% 47% 22% 75% We could conclude that the following types of parameters show clearly different behaviors in the liver and HCC: • Time-related parameters, such as TTP and init_t0. This is probably due to the early uptake of radiopharmaceutical in the lesion. • Parameters related to the area under TAC, such as AUC and cF. This might be related to both the earlier uptake in the lesion but also a considerable higher metabolic trapping. • Parameters related to peaks' intensities, such as PI and init_A, which are very similar to SUVmax in nature. Maximum uptake value could also be related to a higher metabolic rate. However, these images only offer a qualitative analysis of whether these parameters characterizes different behaviors or not. The challenge of relating these parameters with the histology of resected tumors has to be addressed numerically by ROIs.
Results and Discussions 34 4.4. Statistical Analysis and Hypothesis Testing Although the statistical analysis performed was mainly exploratory, some tendencies were found for our group sample of 24 patients with clinical data: Given that we computed around 35 different parameters and that our clinical data also accounted for more than 14 histological parameters, we decided to correlate only those for which parameter images showed clear differences – in this case AUC and init_t0– with two of the most important histological parameters in the characterization of HCC –microvascular invasion and tumoral differentiation–. To visually identify any differences we first plotted all TACs colored depending on their histological subgroups: • According to the different levels of tumoral differentiation, we divided the group sample in G2 and G3+G4, since it is clinically reasonable and only two patients corresponded to G4. The obtained mean TACs had very similar peak times and decay rates but those curves corresponding to G3+G4 tended to present higher SUV with respect to those from group G2: Figure 14: TACs of n=24 patients with histological data in which they are divided into G2 and G3+G4 according to their differentiation grade.
Results and Discussions 35 In case that this tendency was followed by a large sample we could conclude that there exists a tendency for lesions with higher differentiation grades to have a higher uptake, which is coherent in terms of metabolic rates. • For microvascular invasion we obtain the same similarities with respect to peak times and decay rates but this time the differences in SUV amplitude are slightly more noticeable: Figure 15: TACs of n=24 patients with histological data in which they are divided into positive or negative presence of microvascular invasion. In this case we can observe how microvascular invasion does not necessarily lead to an earlier peak time since no differences in terms of TTP can be distinguished between these two cases. Nevertheless, we observe that the metabolic rate is found to be lower in lesions with microvascular invasion. This might be due to a quicker wash in-wash out process in the lesion, for example.
Results and Discussions 36 Finally, we also represented our chosen parameters init_t0 and AUC as boxplots and computed Wilcoxon p-test, a non-parametric and non-specific distribution test that compares the mean range of two samples and determines their differences: • For init_t0, in the case of microvascular invasion both boxplots clearly overlay, their medians are really close and their Wilcoxon pvalue is really high, which means that both samples are really similar. In the case of differentiation grades, both boxplots and their respective medians are slightly more separated According to Wilcoxon p-test, the difference between the two group samples related to the tumoral differentiation grades is also considerable: Figure 16: Boxplots of parameter init_t0 according to Differentiation and Microvascular Invasion grades. • For AUC, in the case of microvascular invasion, even though its boxplots have wider interquartile ranges and overlay, their medians are separated and their Wilcoxon p-value is really low. These results show a pretty acceptable correlation between AUC and microvascular invasion. Nevertheless, the results obtained for differentiation grades are not that acceptable in terms of medians separation, overlaying nor Wilcoxon p-value:
Results and Discussions 37 Figure 17: Boxplots of parameter AUC according to Differentiation and Microvascular Invasion grades.
Tables 44 • Table 4. Qualitative evaluation for each parameter image in successfully showing a different behavior for HCC compared to background liver: Scores: 18 16 19 13 18 22 11 11 15 7 24 Patient TTP PI AUC MTT F cF tail_k tail_N init_A init_k init_t0 Score DIN_6 1 0 1 1 1 1 1 0 0 1 1 0.73 DIN_10 0 1 1 0 1 1 0 1 0 1 1 0.64 DIN_13 0 0 0 0 1 1 1 0 1 0 0 0.36 DIN_15 0 0 1 0 1 1 0 0 1 0 1 0.45 DIN_17 1 1 0 0 0 0 1 0 0 0 0 0.27 HCC_1 1 1 1 0 0 0 0 0 1 0 1 0.45 HCC_6 0 0 0 0 1 1 1 0 0 0 1 0.36 HCC_7 1 1 1 0 0 0 0 1 1 0 1 0.55 HCC_8 1 1 1 1 1 1 0 1 1 0 1 0.82 HCC_12 1 1 0 0 1 1 0 0 0 0 1 0.45 HCC_13 0 0 0 0 0 0 0 0 1 0 1 0.18 HCC_14 1 1 1 1 1 1 1 1 0 0 1 0.82 HCC_15 0 0 0 0 1 1 0 0 1 1 1 0.45 HCC_18 0 1 1 0 1 1 1 1 1 1 1 0.82 HCC_24 1 1 1 0 1 1 1 0 1 0 1 0.73 HCC_26 0 0 0 0 0 1 0 1 0 0 0 0.18 HCC_27 1 1 1 1 1 1 1 0 0 0 0 0.64 HCC_29 0 0 0 0 0 0 0 0 0 0 0 0.00 HCC_30 1 1 1 1 1 1 0 0 0 0 1 0.64 HCC_31 0 0 0 1 0 1 0 1 0 0 0 0.27 HCC_32 0 1 1 0 0 0 0 1 1 0 0 0.36 HCC_33 1 0 1 0 1 1 1 0 0 0 1 0.55 HCC_34 0 0 0 0 0 0 1 0 1 0 1 0.27 HCC_37 1 0 1 1 0 1 0 0 0 0 1 0.45 HCC_38 0 0 0 0 0 0 0 0 0 0 0 0.00 HCC_42 0 0 0 0 0 0 0 1 1 0 1 0.27 HCC_43 1 1 1 1 1 1 0 1 1 0 1 0.82 HCC_45 1 1 1 1 1 1 0 0 0 0 1 0.64 HCC_46 1 0 1 1 0 0 0 0 0 0 1 0.36 HCC_49 1 1 1 1 1 1 0 0 1 1 1 0.82
Scripts Description 45 HCC_50 1 0 1 1 0 1 0 0 1 1 1 0.64 DIN_PAC_2 1 1 0 1 1 1 1 1 0 1 1 0.82 Scripts Description 1. functions.py This script contains many definitions that will be used in posterior scripts: • load_dicom(path) This method loads a .nii file and returns its slices variable, which contains its image and serialized metadata. • get_pixels_hu(slices) This method loads variable slices and returns its image as a numpy.array of type float64. • split_frames(image, slices) This method loads PET image and its metadata, it splits this PET image into images of different time frames and returns it together with a vector of time values. • compute_suv(dicom_headers, PET) This method loads PET image and its serialized metadata (weight, injected dose and time since injection) to transform the PET signal into SUV. • process_HCC_liver_rois(path_roi_HCC,path_roi_liver, scaling_factor) This method loads the .nii files corresponding to Liver and HCC ROIs and a computed scaling_factor –which takes into consideration the different voxels sizes and slices numbers between PET and CT images– and calls the corresponding methods that resize these ROIs.
Scripts Description 46 The particularity in this method is that it first adds ROI liver and HCC together, processes this ROI and HCC ROI separately and finally subtracts the processed HCC ROI from this new ROI to obtain Liver ROI. This approach avoids numerical errors due to rounding in the scaling process. • process_roi(path_roi, scaling_factor) This method loads the .nii files of a given ROI and its scaling_factor to resize the ROI. • TF_zoom(image, scaling_factor) This method zooms image in the {x, y} dimensions with a given scaling factor, adding zero-padding in case that image is zoomed out. • resize_volume(image, desired_shape) This method resizes image in the desired_shape. • get_SUV(roi_resampled, PETimage_split_SUV): This method computes the TAC corresponding to the SUVmean at a given ROI by masking PETimage_split_SUV at each time step with the given ROI and averaging the SUV values within the ROI. 2. RTStruct_to_nii.py This script converts RTStruct files of masks coregistered with DICOM CT from PET dynamic series and converts them to ".nii". INPUT: • Requires “CT_{patient name}” DICOM directory, which should be a CT of size 512x512x102 acquired together with dynamic PET. • Requires "MASKS_{patient name}.dcm”, the RTStruct that comprises all masks performed over "CT_{patient name}.dcm". OUTPUT: • Generates individual masks “mask_Aorta.nii”, “mask_Liver.nii”, “mask_Spleen.nii”, “mask_HCC.nii” and a residual “image.nii” which will not be needed.
Scripts Description 47 3. Get_SUV_for_ROIs.py This script loads PET images in SUV and split by time frames, CT images and ROIs for each patient and computes the TAC of each ROI. INPUT: • Requires “CT_{patient name}” DICOM directory. • Requires “DIN_ADQ_AC_128_{patient name}” DICOM directory, coregistered with dynamic CT. • Requires "mask_{ROI}.nii”, the file corresponding to each ROI coregistered with CT. OUTPUT: • Generates individual TACs stored as “Scatters_mean_{patient_name}.csv” and “Scatters_mean.csv” with the TACs of all patients. 4. Get_parameters.py This script reads data from "Scatters_mean_{patient_name}.csv" for each patient and computes several perfusion parameters by performing the necessary fittings. INPUT: • Requires each “Scatters_mean_{patient name}.csv”. OUTPUT: • Individual fittings can be extracted as “Fitting_values_{patient name}.csv” and “Fittings.csv”. • Parameters for each individual patient and also for the whole set are extracted as “Perfusion_parameters_{patient_name}.csv” and “Perfusion_parameters.csv”. • Plot of fittings that can be saved as “fitting_{patient name}.png”.
Scripts Description 48 5. Pars_images_general.py This script generates several parameter images that are stored as .nii files with headers of CT image to assess coregistration. INPUT: • Requires “CT_{patient name}” DICOM directory. • Requires “DIN_ADQ_AC_128_{patient_name}” DICOM directory, coregistered with dynamic CT. • Requires "mask_{ROI}.nii”, the file corresponding to each ROI coregistered with CT. OUTPUT: • Parameter images "{parameter}_{patient_name}.nii".
Useful terminology 49 Useful terminology • Histology: The study of the microscopic structure of tissues. • Perfusion: The passage of blood, a blood substitute, or other fluid through the blood vessels or other natural channels in an organ or tissue. • Uptake: Absorption of a substance by a living organism or bodily organ. • Dynamic study: A sequential or time-lapse image of a particular structure that aims to capture perfusion of a tissue or passage of a tracer through a given organ. • Portal vein (PV) and hepatic artery (HA): These are the two main vascular conducts irrigating the liver. • Multiphasic study (arterial, portal, delayed phases): Imaging study for which acquisition has been performed sequentially during the passage of a tracer or contrast agent through different regions. Arterial, portal and delayed phases refer to the region or stage reached by the tracer after injection. • Time Activity Curve (TAC): Uptake data points as a function of time derived from PET masking for each time frame.