OpenMC automatic modeling method for CT image
By converting CT image data in DICOM format into a voxel model available for OpenMC, the problem of direct calculation of DICOM images in the Monte Carlo program is solved, accurate simulation of neutron dose distribution in BNCT treatment is achieved, and the accuracy of treatment planning is improved. accuracy.
Patent Information
- Application Number
- CN202410807079.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-20
AI Technical Summary
In the BNCT treatment planning system, CT images in DICOM format cannot be directly used in the calculation of the Monte Carlo program, resulting in inaccurate dose distribution simulation and affecting the treatment effect.
By importing CT image data in DICOM format into the VTK toolkit, extract HU values, establish a three-dimensional matrix data set, divide material intervals, define material density, write OpenMC models, establish voxel elements, perform neutron dose calculations, and generate dose clouds.
A model based on CT images that can be used for Monte Carlo calculations is implemented, which improves the calculation accuracy of neutron dose distribution, obtains a dose cloud diagram similar to the original CT image contour, and supports the accurate configuration of BNCT treatment plans.
Smart Images

Figure CN118674870A
Abstract
Description
Technical Field
[0001] The present invention relates to a modeling method based on CT images, and in particular to an OpenMC automatic modeling method oriented to CT images. Background Art
[0002] Boron Neutron Capture Therapy (BNCT) is a binary therapy that kills cancer cells by reacting neutrons with 10B to produce α and 7Li heavy ions. Since boron-containing drugs have the characteristics of targeting in biological tissues, they will selectively accumulate in tumor tissues after entering the human body, react after thermal neutron irradiation, and produce α particles and 7Li particles. These particles have high RBE (relative biological effect), high LET (linear energy transfer density), and short range, and can destroy tumor tissues more specifically with little damage to normal tissues. Compared with traditional photoelectron radiotherapy, boron neutron capture therapy is a binary targeted therapy that directly kills tumor cells at the cellular level.
[0003] In order to achieve the goal of accurately dosing the patient's tumor area, the treatment planning system (TPS) uses a professional algorithm program to simulate the distribution of human tissue absorbed dose, estimate the dose distribution of the target area and surrounding tissues, and optimize the neutron accelerator beam, boron drug dose and patient positioning. Therefore, in the BNCT treatment process, TPS is a very critical link to success. At present, the main contents of the BNCT treatment plan require the following aspects: 1. Acquisition of patient medical images, which can read the patient's CT or MRI image data; 2. Reconstruction of human body geometry in three dimensions based on image data; 3. Setting beam-related parameters according to the needs of the geometry; 4. Calculation of dose distribution using professional algorithms; 5. Determine the treatment plan based on the dose result distribution. According to the above required content, TPS can be divided into three parts for research: 1. Construction of a three-dimensional human body model, including geometry and materials; 2. Particle transport calculation, involving nuclear reactions between neutrons and 10B and other tissue materials; 3. Visualization of images and dose results.
[0004] Whether it is the initial use of reactors as neutron sources for BNCT devices, or the neutron sources based on proton accelerators in recent years, it is necessary to perform transport calculations on the behavior of neutrons to determine the final irradiation dose. For the calculation of neutron transport, the Monte Carlo method based on random sampling is more suitable. Among the many Monte Carlo programs, mature programs have high copyright requirements and are subject to great limitations in development. Although OpenMC is relatively young in terms of its release time, its completely open source nature has extremely strong plasticity and developability, and it is very important for the self-development of planning systems.
[0005] Digital Imaging and Communications in Medicine (DICOM) is a standard that meets the needs of various medical information systems in clinical practice for storing and transmitting medical digital images. In the BNCT planning system, not only is the DICOM format required as the image basis for positioning and target delineation, but CT images in DICOM format are also required to reconstruct a human body model. In dose calculation, a human body model is established based on CT images, and a dose distribution that is closer to the actual situation can be simulated and calculated. However, images in DICOM format cannot be directly used for Monte Carlo program calculations.
[0006] In BNCT planning systems, it is crucial to use a model that approximates human tissue and shape and to perform dose calculation based on the Monte Carlo simulation method. Therefore, it is necessary to develop a method to model CT images in a Monte Carlo program. Summary of the invention
[0007] The present invention provides an OpenMC automatic modeling method for CT images to solve the dose calculation problem after modeling based on CT images in an OpenMC Monte Carlo program.
[0008] To achieve the above object, the present invention provides the following technical solutions: An OpenMC automated modeling method for CT images, the method comprising the following steps: Step 1, import the CT image data in DICOM format into the VTK visualization toolkit for processing, and extract the CT data based on HU value; Step 2: The VTK visualization toolkit establishes a one-to-one correspondence between the collected HU values and the pixel positions of the corresponding CT data according to the HU values of normal human tissues, forming a three-dimensional matrix data set; Step 3, re-merge and classify the three-dimensional matrix data set in step 2 to form reorganized material data, divide multiple intervals according to the HU value, define a material and a corresponding material density for each interval, and merge multiple intervals into a set of multiple materials and numbers, where the number is the number of the interval; Step 4, compile the model material according to the creation and compilation method of the material module in OpenMC for the collection of multiple materials and numbers in step 3, and form a calculable running document set by the Monte Carlo program; Step 5, according to the pixel size and scanning interval of the CT image data, a geometric surface element of corresponding size is established in OpenMc; Step 6, using the grid element function in OpenMC, write the model material established in step 4 into the geometric surface element in step 5, thereby establishing a grid element; Step 7, using the universe function in OpenMC, compile the grid element created in step 6 into the universe to obtain a voxel element with material properties; Step 8, after determining the size and position of the voxel element by using the grid function in OpenMC, the voxel element compiled in step 7 is written into OpenMC according to the position data corresponding to the three-dimensional matrix contained in the three-dimensional matrix data set in step 3, and the output forms a CT image voxel model; Step 9, using the neutron source term data, neutron dose calculation is performed based on the constructed CT image voxel model, and then the neutron flux in the entire model is counted to obtain an output file, which is a set of three-dimensional matrix data.
[0009] Beneficial effects of the present invention: CT image data in DICOM format can be extracted according to HU values and converted into a three-dimensional matrix consisting of HU values and corresponding position information. After merging and classifying the material information, it is reorganized into new material data and numbered to establish voxel elements in OpenMC. Through the Lattice function, the numbered voxel elements can be established into a voxel model based on CT data. Using OpenMC to calculate the neutron dose of this model, a dose cloud map that is similar to the original CT image contour can be obtained, thereby achieving the purpose of establishing a CT model that can be used for Monte Carlo calculations. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A flow chart of converting DICOM format CT data into a voxel model in OpenMC according to an embodiment of the present invention is shown; Figure 2 Shown is a voxel model generated by the Monte Carlo program OpenMC (left) compared to the original CT impact data (right). DETAILED DESCRIPTION
[0011] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms, and the present disclosure should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0012] Reference below Figure 1 The OpenMC automated modeling method for CT images according to an embodiment of the present invention is described. Figure 1 As shown, the method comprises the following steps: Step 1: Import the CT image data in DICOM (Digital Imaging and Communications in Medicine) format into the VTK visualization toolkit for processing and extract HU-based CT data. The HU-based CT data is CT data that contains HU value information. The HU value is to reflect the concept of the difference in the degree of X-ray absorption caused by different tissues. The Hounsfield Unit (HU) is defined to express the value of the CT image, which is commonly referred to as the CT value. The degree of X-ray absorption varies in different tissues, which comes from the attenuation coefficient of X-rays. After passing through an object, the X-ray is an exponential attenuation process, which can be expressed by the formula: , Among them, μ represents the linear attenuation coefficient of X-rays in tissues, x is the distance that X-rays travel in homogeneous media, I0 represents the intensity of X-rays at initial incidence, and I represents the intensity of X-rays after attenuation by the material. This formula represents the attenuation law of X-rays with constant energy after passing through homogeneous media. The attenuation coefficient μ can be expressed as: , It can also be called the absorption coefficient, with the unit of m-1 (SI). As a characteristic parameter of a substance, it is a constant, which is determined by the material properties of the substance itself, such as tissue density, composition of constituent elements and energy. Therefore, substances composed of different materials usually have different attenuation coefficient values.
[0013] In actual medical applications, tissue attenuation coefficient is not used directly to reflect tissue density, but CT value is used. The attenuation coefficient and CT value of each substance have the following relationship: , Among them, μ w is the attenuation coefficient of water, CT xis the HU value corresponding to the material with attenuation coefficient μx. In the definition of this relationship, the HU value of water is always defined as 0. This is because the density of human tissue is closest to that of water, so the absorption capacity of water for X-rays is used as an intermediate reference, that is, if the tissue density is higher and the effective atomic number is higher, the attenuation coefficient is higher and greater than water, then the HU value will also be greater than 0, which is a positive value; if the tissue density is lower and the effective atomic number is lower, the attenuation coefficient is also lower and less than water, then the HU value will also be less than 0, which is a negative value. Take the tissue with the highest material density in the human body, compact bone, as the upper limit of HU, with a value of +1000; take the air with the lowest density as the lower limit of HU, with a value of -1000. Therefore, HU has a total of 2000 units, and the CT values of various tissues of the human body are distributed between -1000HU and +1000HU. Different grayscales can be used to correspond to HU to distinguish and identify human tissues of different densities. VTK (Visualization Toolkit) is an open source cross-platform computer graphics application library for data processing and image display.
[0014] In one example, 512 A 512-size, 20-slice DICOM-formatted human head CT image is used as source data information and imported into the VTK toolkit.
[0015] Step 2: The VTK visualization toolkit establishes a one-to-one correspondence between the collected HU values and the pixel positions of the corresponding CT data based on the HU values of normal human tissues, forming a three-dimensional matrix data set. The three-dimensional matrix data set contains the HU values and the pixel positions of the corresponding CT data. Its size can be based on the size of the CT image data, for example, 512 512 20. Among them, the HU value is mapped to the corresponding pixel position to form matrix data.
[0016] Step 3, re-merge and classify the three-dimensional matrix data set in step 2 to form reorganized material data: divide multiple intervals according to the HU value, define a material and the corresponding material density for each interval, so that multiple intervals are merged into a set of multiple materials and numbers, and the number is the number of the interval. The entire interval can be divided into multiple intervals according to the HU value, each interval is a new material, and the number of intervals can be determined according to different situations. The more divisions, the finer the types, and the greater the amount of calculation, the fewer the types, the smaller the amount of calculation, and the rougher. In the source data, the HU values are discrete and numerous. The entire interval can be divided into multiple intervals according to the HU value, each interval is a new material, and the number of intervals can be determined according to different situations. The more divisions, the finer the types, and the greater the amount of calculation, the fewer the types, the smaller the amount of calculation but also the rougher. For each re-divided HU interval, define it as a new material, such as material 1 (M1). In an example, there are 35 materials and numbers. Executing step 3 can greatly reduce the amount of data in the input file and the amount of calculation during simulation.
[0017] Step 4, compile the model material according to the creation and compilation method of the material module in OpenMC for the collection of multiple materials and numbers in step 3, and form a calculable running document set by the Monte Carlo program.
[0018] Step 5: Create geometric surface elements of corresponding sizes in OpenMC according to the pixel size and scanning interval of the CT image data. For example, in one example, the pixel size of the CT image data is 512mm. 512mm, the scanning interval is 1mm, so in order to establish the corresponding voxel element, it is necessary to establish a 1mm×1mm×1mm geometric surface element in OpenMC.
[0019] Step 6, using the Cell function in OpenMC, write the model material established in step 4 into the geometric surface element in step 5 to establish a cell.
[0020] Step 7, using the Universe function in OpenMC, compile the cell created in step 6 into the universe to obtain a voxel element with material properties.
[0021] Step 8, using the lattice function in OpenMC, after determining the size and position of the voxel, write the voxel compiled in step 7 into OpenMC according to the position data corresponding to the three-dimensional matrix contained in the three-dimensional matrix set in step 3, and output to form a CT image voxel model. Figure 2 Shown is a voxel model generated by the Monte Carlo program OpenMC (left) compared to the original CT impact data (right).
[0022] Step 9, using the neutron source term data, neutron dose calculation is performed based on the built CT image voxel model, and then the neutron flux in the entire model is counted to obtain an output file, which is a set of three-dimensional matrix data. In the Monte Carlo program, a counting grid needs to be designed for neutron dose calculation. The counting grid is to count the estimated values of physical quantities in the simulation process during the calculation process. The designed counting grid corresponds to the voxel elements of the CT image voxel model in step 8, which is the model established by the three-dimensional matrix data in the CT image. The neutron source term is the neutron source set during the simulation calculation of BNCT, and the neutron source provides neutrons for BNCT. Neutron dose calculation refers to the calculation of the neutron dose of the model during the BNCT simulation calculation, and the neutron flux is the flux of neutrons in the model. The purpose of counting the neutron flux is to expect that the neutron distribution of the entire model can be obtained using the OpenMC program to verify the correctness of the automated modeling method. The above-mentioned output file can be named tally.out, and the calculation results, such as neutron flux and other data information, can be obtained through this output file.
[0023] In one embodiment, the neutron dose calculation uses a particle physics model of a novel Monte Carlo program OpenMC to perform particle transport calculations to obtain neutron dose distribution.
[0024] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0025] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is primarily selected for readability and instructional purposes, rather than for the purpose of explaining or limiting the subject matter of the present invention.
Claims
1. An OpenMC automated modeling method for CT images. It is characterized in that The following steps are involved: Step 1, import the CT image data in DICOM format into the VTK visualization toolkit for processing, and extract the CT data based on HU value; Step 2: The VTK visualization toolkit establishes a one-to-one correspondence between the collected HU values and the pixel positions of the corresponding CT data according to the HU values of normal human tissues, forming a three-dimensional matrix data set; Step 3, re-merge and classify the three-dimensional matrix data set in step 2 to form reorganized material data, divide multiple intervals according to the HU value, define a material and a corresponding material density for each interval, and merge multiple intervals into a set of multiple materials and numbers, where the number is the number of the interval; Step 4, compile the model material according to the creation and compilation method of the material module in OpenMC for the collection of multiple materials and numbers in step 3, and form a calculable running document set by the Monte Carlo program; Step 5, according to the pixel size and scanning interval of the CT image data, a geometric surface element of corresponding size is established in OpenMc; Step 6, using the grid element function in OpenMC, write the model material established in step 4 into the geometric surface element in step 5, thereby establishing a grid element; Step 7, using the universe function in OpenMC, compile the grid element created in step 6 into the universe to obtain a voxel element with material properties; Step 8, after determining the size and position of the voxel element by using the grid function in OpenMC, the voxel element compiled in step 7 is written into OpenMC according to the position data corresponding to the three-dimensional matrix contained in the three-dimensional matrix data set in step 3, and the output forms a CT image voxel model; Step 9, using the neutron source term data, neutron dose calculation is performed based on the constructed CT image voxel model, and then the neutron flux in the entire model is counted to obtain an output file, which is a set of three-dimensional matrix data.
2. The OpenMC automated modeling method for CT images according to claim 1, It is characterized in that In step 5, the pixel size of the CT image data is , the scanning interval is 1mm, and a 1mm×1mm×1mm geometric surface element is established in OpenMC.
3. The OpenMC automated modeling method for CT images according to claim 1, It is characterized in that In step 9, the counting grid designed in the Monte Carlo program is used for neutron dose calculation, and the designed counting grid corresponds one-to-one to the voxel elements of the CT image voxel model.
4. The OpenMC automated modeling method for CT images according to claim 1, It is characterized in that In step 9, the output file format is .out, and the neutron flux can be obtained through the output file.
Citation Information
Cited By
Method for converting CT image into Monte Carlo program cosRMC input file
CN119920407A
A method for converting CT images into cosRMC input files
CN119920407B
