Viriato Leal Neto1; José Wilson Vieira2; Fernando Roberto de Andrade Lima3
ABSTRACT
OBJECTIVE: This article presents a way to obtain estimates of dose in patients submitted to radiotherapy with basis on the analysis of regions of interest on nuclear medicine images. MATERIALS AND METHODS: A software called DoRadIo (Dosimetria das Radiações Ionizantes [Ionizing Radiation Dosimetry]) was developed to receive information about source organs and target organs, generating graphical and numerical results. The nuclear medicine images utilized in the present study were obtained from catalogs provided by medical physicists. The simulations were performed with computational exposure models consisting of voxel phantoms coupled with the Monte Carlo EGSnrc code. The software was developed with the Microsoft Visual Studio 2010 Service Pack and the project template Windows Presentation Foundation for C# programming language. RESULTS: With the mentioned tools, the authors obtained the file for optimization of Monte Carlo simulations using the EGSnrc; organization and compaction of dosimetry results with all radioactive sources; selection of regions of interest; evaluation of grayscale intensity in regions of interest; the file of weighted sources; and, finally, all the charts and numerical results. CONCLUSION: The user interface may be adapted for use in clinical nuclear medicine as a computer-aided tool to estimate the administered activity.
Keywords: Nuclear medicine; Biokinetic distribution; Dosimetric evaluations; Administered activity.
RESUMO
OBJETIVO: Este artigo apresenta uma forma de se obterem estimativas de dose em pacientes submetidos a tratamentos radioterápicos a partir da análise das regiões de interesse em imagens de medicina nuclear. MATERIAIS E MÉTODOS: Foi desenvolvido o software denominado DoRadIo (Dosimetria das Radiações Ionizantes), que recebe as informações sobre os órgãos fontes e o órgão alvo e retorna resultados gráficos e numéricos. As imagens de medicina nuclear utilizadas foram obtidas de catálogos disponibilizados por físicos médicos. Nas simulações utilizaram-se modelos computacionais de exposição constituídos por fantomas de voxels acoplados ao código Monte Carlo EGSnrc. O software foi desenvolvido no Microsoft Visual Studio 2010 com o modelo de projeto Windows Presentation Foundation e a linguagem de programação C#. RESULTADOS: Da aplicação das ferramentas foram obtidos: o arquivo para otimização das simulações Monte Carlo utilizando o EGSnrc, a organização e compactação dos resultados dosimétricos com todas as fontes, a seleção das regiões de interesse, a contagem da intensidade dos tons de cinza nas regiões de interesse, o arquivo das fontes ponderadas e, finalmente, todos os resultados gráficos e numéricos. CONCLUSÃO: A interface de usuários pode ser adaptada para uso em clínicas de medicina nuclear como ferramenta computacional auxiliar na estimativa da atividade administrada.
Palavras-chave: Medicina nuclear; Distribuição biocinética; Avaliações dosimétricas; Atividade administrada.
INTRODUCTION For diagnosis and therapy of various diseases, nuclear medicine uses radiopharmaceutical substances that have a radionuclide in their composition. The radiopharmaceutical physicochemical characteristics determine its biokinetics, i.e., its fixation in the target organ, metabolization and elimination, while the physical characteristics of the radio-nuclide determine the application of the compound in the diagnosis or therapy. Images from patients submitted to treatment with radioactive substances may be used to assess the distribution of the activity to be administered. The definition of amount of administered activity is generally under the responsibility of the nuclear physician who relies on pre-dose scanning of the whole body images of the patient (anteroposterior and posteroanterior views). Based on the presence of hot-spots on the images, the physician estimates the activity to be administered in the treatment. Several tasks must be accomplished to estimate the dose distribution in organs and tissues. Such tasks range from the phantom selection, its coupling with the Monte Carlo (MC) code and additional algorithms to simulate specific sources, to organization and presentation of tables and charts showing the absorbed dose accumulated in target organs selected as a function of different energy values of the photon. The present study discusses the development of the software called DoRadIo (Dosimetria das Radiações Ionizantes - stands for Dosimetry of Ionizing Radiations) aimed at integrating the above mentioned tasks into a single computer-aided tool. Menus clearly demonstrate such tasks for data obtention and organization into tables and charts for further analysis. The current version of the software is intended for the use by dosimetry investigators. With the dosimetry data available at the current version, it is possible to interpolate results since the source is a monoenergetic gamma emitter. In such a case, the user should save the table of the absorbed dose per accumulated activity for the problem situation of interest. The user should only to choose the source organ, the target and select the data on the table with results related to the energy of interest. The interpolation must be made with another software. Also, it is possible to obtain results when the photons are emitted from several source organs. The techniques that allow further dosimetry evaluations characterize the implemented innovations. The DoRadIo software is an integral part of Sistema de Informações Dosimétricas (SID) (stands for Dosimetric Information System)(1) developed and maintained by the Grupo de Pesquisa em Dosimetria Numérica (GDN/CNPq), whose website is http://dosimetrianumerica.org/. MATERIALS AND METHODS The software was built within the Microsoft Visual Studio 2010 with the project model WPF Application(2). Various tools were brought in from other GDN softwares, such as MonteCarlo(3) and Digital Image Processing (DIP)(4). As the MC simulations were restricted to gamma emitters, one resorted to EGSnrc (Electron Gamma Shower National Research Council)(5) code. The exposure computational model (ECM) MSTA (Mash STAnding)(6) provided by the Department of Nuclear Energy of Universidade Federal de Pernambuco (DEN-UFPE), Recife, PE, Brazil, (www.caldose.org) was inserted in the user interface system. The ECM MSTA consists of a voxel phantom representing a male adult body coupled with EGSnrc. The MSTA user code comprises 13 source simulators for external dosimetry and one for internal dosimetry, this particular one with 27 text files with data on sources recommended for medical practice. The MSTA compilation was performed at the EGSnrc user interface (UI), and the code ran by the Windows command prompt. All necessary softwares were installed in the computers (Intel Core i7 X990® 3,47 GHz processors, 24 GB RAM memory with the 64 bits Windows 7 Ultimate operational system) at Laboratório de Dosimetria Numérica (LDN) of the Instituto Federal de Educação, Ciência e Tecnologia de Pernambuco (IFPE). The methods incorporated into the menus Files (Arquivos) and Digital Images Processing (Processamento de Imagens Digitais) of the DoRadIo software are presented below, with details on the functionalities of each menu. The Files (Arquivos) menu The Files (Arquivos) menu was developed to perform computer-aided tasks related to text files reading and writing, as well as files compression and decompression. The menu items are shown on Figure 1. a) Item Create ECM_DI.bat (Criar o MCE_DI.bat) This menu item is used to create the text file that optimizes the MC simulation. The produced file comprises data that allow the execution of all internal sources available for ECM MSTA. Each line in the file is an instruction to run via Windows Command Prompt, a ECM with a given file containing the data on the shock sections of the materials that make up the phantom used in the, and another file containing additional data. b) Item Create DataFiles_DI.txt (Criar o ArquivoDados_DI.txt) The simulation generates several text files with specific dosimetry results. The menu item Criar o ArquivoDados_DI.txt, shown on Figure 1, was developed to read such files and write them into a single file called DataFiles_DI.txt (ArquivosDados_DI.txt). The reading and writing mechanisms of the text file in this activity as well as in other activities implemented at DoRadIo are in the classes FileStream, StreamWriter and StreamReader of namespace System.IO, contained in the NET Framework(2) class library. c) Item Compress/Decompress txt Files (Compactar/Descompactar Arquivos txt) As the Data Files_DI.txt (ArquivoDados_DI.txt) is relatively large to be added as a resource to the DoRadIo executable, a tool was created with compression and decompression methods native at namespace System.IO. The main classes used in the implementation of such activities are MemoryStream and DeflateStream, i.e., the data flow is stored in memory during execution. The difference between compressing and decompressing of the text file in this mechanism is informed by one of the two items listed under CompressionMode: compression or decompression. The Digital Images Processing menu (Processamento de Imagens Digitais) Digital Images Processing (Processamento de Imagens Digitais) is the second menu shown in the interface on Figure 1. It comprises two menu items, as follows: one to select and save a given region of interest (ROI) on an image, and another one to count the pixel intensity on the saved images. Such counts per ROI are used to weight dosimetry results when more than one source is used in the simulation. The ratio between the count on a given ROI and the total count on the image is used as a factor by which the dosimetry values for each involved source should be multiplied. Each simulation is always monoenergetic, and the photons emerge from a single source organ. At the beginning of each history simulation, the photon released position and its initial direction of travelling are uniform probability density functions within the parallelepiped containing the source organ, as in the MIRD (Medical Internal Radiation Dose) formulation(7). One of the advantages of performing the monoenergetic simulation and weighting the results is decreasing statistical errors, as all simulations are performed with the same number of histories and the weighting is based on dosimetry results obtained with the plain sources. The pixels' intensity on the hot spots of an 8-bit nuclear medicine image reflects the activity distribution. Thus, by cumulatively counting the intensity on a given ROI, one obtains a number corresponding to the quantity of photons originated from that ROI. As the procedure is repeated, for all ROIs on the image, one obtains quantities which, divided by their sum, become factors that weight the quantities of photons originated from each ROI. The results of the absorbed dose per accumulated activity that are entry data in the DoRadIo software were obtained as if such factors were equal to 1, i.e., each source organ was separately simulated. When there is more than one source organ involved in the simulation, the dosimetry results from the separate simulations of those organs are weighted by those factors. a) Region of interest image acquisition A ROI image is obtained by a logical operation AND involving a mask of defined dimensions over all the image pixels. Each output pixel results from the convolution of pixels defined on the region of the image with the same dimensions of the mask by weights attributed to the operation AND (1 or true). Such an operation was implemented at DoRadIo by reading, at each point (x,y), the pixel intensity of the nuclear medicine image (a) and the corresponding intensity on a mask (b). The mask has the same dimensions as the image, with 0 pixel intensity at all locations except for the desired ROI, which is selected using the mouse. The value returned by the operation is a AND b, i.e., the resulting image contains the mask background and the pixels located in the ROI on the nuclear medicine image(8). b) The menu item Pixel Intensity Count on an Image (Conta Intensidade dos Pixels em uma Imagem) The menu item Pixel Intensity Count on an Image (Conta Intensidade dos Pixels em uma Imagem) has a built-in tool that calculates the sum of the pixels' intensities on an image. For this purpose, a C# function was developed, which receives an image with a single ROI and background filled by 0s (zeros). On a 256-bit vector of integer variables, the frequencies (y) of each gray shade on the image (x) are cumulatively counted. For frequencies different from 0, the function performs the convolution of the gray shade by the frequency. The result is given as the sum of the pixels' intensities of the ROI contained on the entry image. The present study results are presented below. A sequence that presents the main functionalities of the developed software was selected for the case of a hypothetical user interested not only in the dosimetry results, but also in how to prepare the data entry into the ECMs available at DEN-UFPE. RESULTS Most probably, the DoRadIo software functionalities which will raise greater interest from internal dosimetry investigators will be those items related to the obtention of graphical and numerical results. Such users may be interested in analyzing the distribution of the dose originated from a single source organ (plain source) or from a set of organs (weighted sources). The results using plain sources can be obtained with a single click. However, in the case of weighted sources, more actions will be required from the user. In order to demonstrate the potentialities of the application, the steps that must be taken by the user are presented and discussed below, from the preparation of the entry files for ECM MSTA execution to the graphical and numerical results analysis. Preparation of the entry files and Monte Carlo simulation Among the available material on the ECM MSTA material (available at: www.caldose.org), there are 27 text files with data on the source organs most commonly used in the medical practice. Such standard files are prepared to execute a hypothetical 15-energy spectrum: 10, 15, 20, 30, 50, 60, 70, 80, 100, 200, 500, 1000, 1500, 2000, 4000 keV. Such energy interval comprises the photon emitting sources used in medicine. In the case user deals with an intermediate energy, he may interpolate the dosimetry results available in the application. Some adjustments were made in the files with the standard sources. The number of histories was established at 108, independently of the energy and of the source organ; and the names of the exit files were customized. When clicking on the item Create the ECM_DI.bat (Criar o MCE_DI.bat) of the Files (Arquivos) menu, the user can create a text file, the ECM_DI.bat, with data to execute the 27 plain sources. The simulation was triggered and took approximately 30 continuous days on a PC at LDN-IFPE. In this case each source were separately simulated, 27 user inputs would be necessary. Once the process was completed, 405 files (15 energies × 27 sources) with specific dosimetry results were obtained. Data organization and compression As the Create DataFiles_DI.txt (Criar ArquivosDados_ DI.txt) item of the Files (Arquivos) menu is triggered, the software reads the 405 files with specific dosimetry results obtained as described in the previous item, and organizes them into a single file called DataFiles_DI.txt (Arquivos Dados_DI.txt). Such file is used to obtain dosimetry results at a considered target: one source (Plain Sources) or N sources (Weighted Sources). The file DataFiles_DI.txt (ArquivosDados_DI.txt) is relatively large (27,066 kB) to be added as a resource of the DoRadIo. By the Compress/Decompress txt Files (Compactar/Descompactar Arquivos txt) item of the Files (Arquivos) menu, the file was compressed to 8,721 kB, reducing the storage space by 67.8%. The compressed file was added as a resource and it is read and decompressed during execution by the software interfaces to present specific results. Obtaining factors for a Weighted Source Nuclear medicine images may be used to estimate the weight of source organs in a simulation. In the presented example, one used the image of an adult female patient (Figure 2) obtained from a catalogue constructed as a reference(9). The ROIs were defined on the image based on the pixels intensities. On Figure 2, it is possible to observe three ROIs: a more intense one in the neck region (thyroid), another in one the bowel loop region (small bowel) and a third one in the hip region (bladder).The computer-aided tools developed by GDN are free and are available at http://dosimetrianumerica.org/. Additionally, such tools are under continuous improvement. REFERENCES 1. Leal Neto V. SID: um sistema computacional para obtenção e gerenciamento de informações sobre dosimetria das radiações ionizantes. [Tese de doutorado]. Recife: Universidade Federal de Pernambuco; 2013. 2. Sharp J. Visual C# 2010 step by step. 1ª ed. Washington: Microsoft Press; 2010. 3. Vieira JW, Leal Neto V, Lima Filho JM, et al. Transformation of the normal distribution for Monte Carlo modeling of regions of adult trabecular bones for use in computational models of exposure. 13th International Congress of International Radiation Protection Association; 2012 May 13-18; Glasgow, Scotland. 4. Vieira JW, Lima FRA. A software to digital image processing to be used in the voxel phantom development. Cell Mol Biol (Noisy-legrand). 2009;55:16-22. 5. Kawrakow I, Rogers DWO, Mainegra-Hing E, et al. The EGSnrc Code System: Monte Carlo simulation of electron and photon transport. Report No. PIRS-701. Ottawa, Canada: National Research Council Canada; 2011. 6. Cassola VF. Desenvolvimento de fantomas humanos computacionais usando malhas poligonais em função da postura, massa e altura. [Tese de doutorado]. Recife: Universidade Federal de Pernambuco; 2011. 7. Zaidi H, Sgouros G. Therapeutic applications of Monte Carlo calculations in nuclear medicine. 1ª ed. Bristol: IOP Publishing; 2003. 8. Gonzalez RC, Woods RE. Digital image processing. 3ª ed. New Jersey: Prentice Hall; 2008. 9. Lopes Filho FJ. Avaliações dosimétricas em pacientes submetidos à radioiodoterapia com base em fantomas de voxels e em imagens de medicina nuclear. [Tese de doutorado]. Recife: Universidade Federal de Pernambuco; 2007. 10. Santoro A, Oguri V, Mahon JR, et al. Estimativas e erros em experimentos de física. 2ª ed. Rio de Janeiro: UERJ; 2008. 1. PhD, Teacher and Researcher at Instituto Federal de Educação, Ciência e Tecnologia de Pernambuco (IFPE), Recife, PE, Brazil 2. PhD, Researcher, Member of the Department of Nuclear Energy Post-graduation Program - Universidade Federal de Pernambuco (UFPE), Teacher at Escola Politécnica de Pernambuco - Universidade de Pernambuco (UPE), Recife, PE, Brazil 3. PhD, Researcher, Member of the Department of Nuclear Energy Post-graduation Program - Universidade Federal de Pernambuco (UFPE), Researcher at Centro Regional de Ciências Nucleares (CRCN), Recife, PE, Brazil. Mailing Address: Dr. Viriato Leal Neto Instituto Federal de Educação, Ciência e Tecnologia de Pernambuco Avenida Professor Luís Freire, 500, Cidade Universitária Recife, PE, Brazil, 50740-540 E-mail: viriatoleal@yahoo.com.br Received March 13, 2013. Accepted after revision October 28, 2013. Study developed at Department of Nuclear Energy - Universidade Federal de Pernambuco (UFPE), Recife, PE, Brazil.Reduction in complexity of internal dosimetry evaluations utilizing nuclear medicine images. Organization of users' tasks in steps from the preparation of MC simulations to the analysis of dosimetry results. Possibility of adjustments for the use at nuclear medicine clinics as an auxiliary tool for estimating managed activity based on simulated dosimetry results.