Dose calculation method, system and medium

By determining the unit vector and its target vector represented by an integer multiple in the dose grid, ray tracing is performed, which solves the problem of inaccurate calculation of ray direction, achieves more efficient dose calculation, and is suitable for grids with larger dimensions.

CN117454055BActive Publication Date: 2024-09-20CHANGZHOU UNITED IMAGING MEDICAL TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311437285.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2024-09-20
Estimated Expiration
2043-10-31

AI Technical Summary

Technical Problem

The existing technology cannot accurately calculate the grid path division points and division lengths of rays, resulting in inaccurate calculation of ray directions.

Method used

By determining the unit vector in the dose grid and its target vector represented by an integer multiple, indicating the ray direction, and performing ray tracing within the dose grid, the intersection point of the ray and the grid is obtained to calculate the dose result.

Benefits of technology

It achieves accurate calculation of ray directions, avoids numerical calculation deviations, improves parallel computing efficiency, and extends to periodic vector calculations of any length. The calculation speed is faster and suitable for grids with larger dimensions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117454055B
    Figure CN117454055B
Patent Text Reader

Abstract

The present invention discloses a dose calculation method, system and medium. The dose calculation method includes: determining a dose grid and unit vectors in different directions in the dose grid; determining a target vector represented by an integer multiple of the unit vector, the target vector is used to indicate the direction of the ray; and tracing the ray in the dose grid according to the direction of the ray to obtain a dose calculation result. The target segmentation length corresponding to the segmentation of the dose grid by rays in different directions is obtained, and the dose calculation result of the ray is determined based on the target segmentation length, so as to avoid the deviation of numerical calculation, accurately calculate the length of each line segment, avoid the extension line of the ray caused by numerical calculation not intersecting with the vertex of the grid, and realize better parallel calculation. The vector calculation has periodicity, and the ray tracing result within the minimum length range of the vector can be determined to be extended to any length by using the periodicity, so that the calculation speed is faster and the calculation time for larger grid dimensions is constant.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ray tracing technology, and in particular to a dose calculation method, system and medium. Background Art

[0002] In the dose calculation algorithm based on the barrel-serial convolution algorithm, it is a necessary step to use the ray tracing method to obtain the grid path segmentation points and segmentation lengths in each direction. The current general algorithm is to select equally spaced polar angles and azimuth angles, such as 10° and 20°, and then use numerical calculation methods to determine the intersection of the ray and the grid in the direction corresponding to each angle. In the current algorithm, the grid cannot pass through integer grid points, and it is difficult to use analytical methods to calculate the position of the intersection, and it is impossible to accurately calculate the direction of the ray. Summary of the invention

[0003] The technical problem to be solved by the present invention is to overcome the defect in the prior art that the grid path segmentation points and segmentation lengths of rays cannot be accurately calculated, and to provide a dose calculation method, system and medium.

[0004] The present invention solves the above technical problems through the following technical solutions:

[0005] In a first aspect, a dose calculation method is provided, comprising:

[0006] determining a dose grid and unit vectors in different directions in the dose grid;

[0007] determining a target vector represented by an integer multiple of the unit vector, the target vector being used to indicate a direction of the ray;

[0008] Ray tracing is performed within the dose grid according to the direction of the ray to obtain a dose calculation result.

[0009] Optionally, a target segmentation length corresponding to segmentation of the dose grid by rays in different directions is obtained, and the dose calculation result is determined based on the target segmentation length.

[0010] Optionally, the obtaining of target segmentation lengths corresponding to segmentation of the dose grid by rays in different directions includes:

[0011] Obtaining a first grid point where the ray intersects the dose grid;

[0012] The length between the emission starting point of the ray and the first grid point is determined as the target segmentation length.

[0013] Optionally, the dose calculation method is implemented based on one or more of a barrel-serial convolution algorithm, a fast Fourier algorithm, and a multi-lattice algorithm.

[0014] Optionally, the number of directions of the unit vector is two, and determining the target vector represented by the unit vector comprises:

[0015] The target vector is determined using the following formula: ; where n and m are both integers, , is a unit vector, is the target vector.

[0016] Optionally, the number of directions of the unit vector is three, and determining the target vector represented by the unit vector comprises:

[0017] The target vector is determined using the following formula: ; where a, b, and c are all integers, , , is a unit vector, is the target vector.

[0018] Optionally, the unit vector is determined according to the side length of the dose grid.

[0019] Optionally, the dosage grid is in the shape of a square, a rectangle or a parallelogram.

[0020] In a second aspect, a dose calculation system is provided, comprising: a determination module, configured to determine a dose grid and unit vectors in different directions in the dose grid;

[0021] A calculation module, used for determining a target vector represented by an integer multiple of the unit vector, wherein the target vector is used for indicating a direction of the ray;

[0022] The tracing module is used to perform ray tracing in the dose grid according to the direction of the ray to obtain a dose calculation result.

[0023] In a third aspect, a computer storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the dose calculation method as described in the first aspect is implemented.

[0024] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present invention.

[0025] The positive and progressive effects of the present invention are: obtaining the target segmentation length corresponding to the dose grid segmented by rays in different directions, determining the dose calculation result of the ray based on the target segmentation length, avoiding the deviation of numerical calculation, and accurately calculating the length of each line segment, avoiding the extension line of the ray caused by numerical calculation not intersecting with the vertices of the grid, achieving better parallel calculation, and vector calculation has periodicity. The ray tracing result within the minimum length range of the vector can be determined and expanded to any length using the periodicity, with faster calculation speed and constant calculation time for larger grid dimensions. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A flow chart of a dosage calculation method provided by an embodiment of the present invention;

[0027] Figure 2 A first application effect diagram of a dose calculation method provided by an embodiment of the present invention;

[0028] Figure 3 A second application effect diagram of a dose calculation method provided by an embodiment of the present invention;

[0029] Figure 4 A schematic diagram of the structure of a dose calculation system provided by an embodiment of the present invention;

[0030] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0032] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the text does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0033] As shown in this document, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural, unless the context clearly indicates an exception. Generally speaking, the terms "include" and "comprise" only indicate that the steps and elements that have been clearly identified are included, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0034] The definitions of inclusion in this document, such as the terms "having", "may have", "include" or "may include" used herein, indicate the existence of the corresponding functions, operations, elements, etc. herein, and do not limit the existence of one or more other functions, operations, elements, etc. In addition, it should be understood that the terms "including" or "having" used herein indicate the existence of the features, numbers, steps, operations, elements, components, or a combination thereof described in the specification, without excluding the existence or addition of one or more other features, numbers, steps, operations, elements, components, or a combination thereof.

[0035] like Figure 1 As shown, a dose calculation method provided by an embodiment of the present invention includes the following steps:

[0036] S11. Determine the dose grid and unit vectors in different directions in the dose grid.

[0037] In one embodiment, the unit vector is determined based on the side length of the dose grid.

[0038] Determine a dose grid, obtain unit vectors in different directions in the dose grid, the dose grid includes unit vectors in multiple directions, and the number of directions of the unit vectors in different directions includes at least two. For example, a two-dimensional dose grid includes unit vectors in four directions (respectively , , , ) or unit vectors in two directions (x, y, etc.), and the three-dimensional dose grid includes unit vectors in six directions ( , , , , , ) or unit vectors including three directions (x, y, z respectively), etc. The unit vector can be determined based on the side length of the dose grid, that is, the unit vector can be obtained by dividing the side length of the dose grid by the unit length (for example, an integer or a fraction, etc.). The side length of the dose grid (and the corresponding unit vector) can be determined as needed, and there is no limitation here. Determining the unit vector based on the side length of the dose grid can improve the accuracy of the unit vector determination, reduce the deviation of the numerical calculation, and improve the accuracy of the unit vector calculation. The angle between the directions of each unit vector can be any angle, for example, 180°, 90°, 60°, 30°, etc. As a non-limiting example, Figure 2 , Figure 3 shows the unit vectors of the dose grid Perpendicular to each other.

[0039] S12. Determine a target vector represented by an integer multiple of a unit vector.

[0040] The target vector is used to indicate the direction of the ray.

[0041] The unit vector is operated, and the integer multiple operation result of the unit vector is determined as the target vector. For example, taking a two-dimensional dose grid as an example, ; where n and m are both integers, , is a unit vector, is the target vector. The direction indicated by the target vector is the direction of the ray. The extended line of the direction intersects with at least one grid point of the dose grid. The target vector can be represented by an integer multiple of the unit vector to avoid the situation where the extended line of the ray does not intersect with the vertex of the grid caused by numerical calculation. The vertex of the grid is the intersection of two adjacent edges of the grid. Taking a square grid as an example, Figure 2 , Figure 3 As shown, the vertex of the mesh is the intersection of two edge lengths.

[0042] S13. Perform ray tracing within the dose grid according to the direction of the ray to obtain a dose calculation result.

[0043] Among them, ray tracing can also be called light tracing, and its calculation result can be the comprehensive effect of several rays with different directions at various points in space. Based on this calculation result, the dose value formed by several rays at various points, that is, the radiation value, can be calculated. For example, the dose value at each point can be calculated based on the radiation intensity and ray direction of each ray, wherein the ray direction of each ray can be determined by ray tracing, and the radiation intensity can be obtained by theoretical calculation or measurement, etc. However, it is not limited to this. As a non-limiting example, even if the radiation intensity is not determined, the relative dose distribution at each point in the space can be determined only based on the ray tracing calculation result (for example, the dose value of a certain point in the space is set to 1, and the relative dose at each point in the entire space is calculated based on this), and the relative dose calculation result is obtained. Therefore, ray tracing can be used to predict (for example, before the formal ray delivery) or verify (for example, during the ray delivery process) the dose distribution when the ray is delivered. Ray delivery can include any application for delivering rays, such as radiotherapy, radiation processing, radiation flaw detection, radiation testing, etc.

[0044] In one embodiment, the target segmentation length corresponding to the segmentation of the dose grid by rays in different directions may be obtained, and the dose calculation result may be determined based on the target segmentation length.

[0045] like Figure 2 As shown, taking a two-dimensional dose grid as an example, ray L1 divides the dose grid. , calculate the target segmentation length after ray L1 segments the dose grid, that is, the length of line segment AB; ray L2 segments the dose grid, , calculate the target segmentation length after L2 segments the dose grid, that is, the length of line segment AC. The target segmentation lengths of a sufficient number of rays in different directions can be obtained to cover the entire dose grid space, and the dose calculation results are determined based on the target segmentation lengths, that is, the dose values ​​obtained by the combined effect of several rays in different directions at each point. The more ray tracing directions there are, the more accurate the dose calculation results are. The selected ray directions can be represented by integer multiples of unit vectors, there is no deviation in numerical calculation, and the length of each segment can be accurately calculated.

[0046] By utilizing the periodicity of the dose grid and using integer multiples of the unit vectors of the dose grid to determine the ray tracing direction, the accuracy of the calculation can be improved, the extension lines of the rays caused by numerical calculations can be avoided from not intersecting the vertices of the grid, better parallel calculations can be achieved, and unequally spaced ray tracing angles can be used to achieve faster analysis and more accurate ray tracing calculation results.

[0047] In one embodiment, obtaining target segmentation lengths corresponding to segmentation of a dose grid by rays in different directions includes:

[0048] The first grid point where the ray intersects the dose grid is obtained; the length between the emission starting point of the ray and the first grid point is determined as the target segmentation length.

[0049] like Figure 2 As shown, taking a two-dimensional dose grid as an example, ray L1 divides the dose grid. As ray L1 extends, there are multiple intersections between ray L1 and the dose grid. The first grid point where ray L1 intersects with the dose grid is obtained, and the length between the emission starting point of ray L1 and the first grid point is determined as the target segmentation length, that is, the length of line segment AB. The integer multiple unit vectors used are periodic. The ray tracing results within the minimum length range are calculated, and the periodicity can be used to expand to any length, which is faster and has a constant calculation time for more grid dimensions.

[0050] In one embodiment, the dose calculation method using the ray tracing algorithm described in the present application may be implemented based on one or more of a barrel convolution algorithm, a fast Fourier algorithm, and a multi-lattice algorithm.

[0051] Implementing dose calculation methods based on multiple algorithms can improve the speed of calculation and achieve faster analysis and more accurate ray tracing calculation results.

[0052] In one embodiment, the grid of the dosage grid is a square, a rectangle or a parallelogram. However, it is not limited thereto, and the grid may also be a triangle, a hexagon, etc.

[0053] The dose calculation method provided in the embodiment of the present invention is applicable not only to square dose grids, but also to non-square dose grids, and not only to two-dimensional and three-dimensional situations, but also to extended higher-dimensional situations.

[0054] In one embodiment, the number of directions of the unit vector is two, and determining the target vector represented by the unit vector includes: determining the target vector using the following formula: ; where n and m are both integers, , is a unit vector, is the target vector.

[0055] When the dose grid is a two-dimensional dose grid, the target vector can be determined by using the integer multiple calculation result of the unit vector, and the target vector is determined by the following formula: , each pair of integers (n, m) can represent or determine a direction. By choosing a reasonable set of , which can cover the entire grid space. The greater the number of ray tracing directions, the more accurate the dose calculation results are usually.

[0056] Taking a two-dimensional dose grid as an example, if we want to generate a set of reasonable , you can use a method similar to the following:

[0057] 1. Select a set of reasonable equally spaced light directions, a total of N directions, each direction is denoted as Di,i =1...N;

[0058] 2. For each direction Di, find the closest "integer grid point direction" that satisfies the following conditions:

[0059] a. This approximate direction can be expressed as V[i] = n + m To represent or describe, where n and m are both integers;

[0060] b. The absolute values ​​of n and m may be less than a threshold Z;

[0061] c. Ensure that the angle order of V[i+1] and V[i] is consistent with D[i+1] and D[i];

[0062] d. If no new V[i] can be found under the constraint of a given threshold Z, discard this direction (or increase the threshold Z);

[0063] 3. All the directions V[i] selected above constitute a set of unequally spaced light directions, the number of which is ≤N.

[0064] In one embodiment, the number of directions of the unit vector may be three, and determining the target vector represented by the unit vector includes: determining the target vector using the following formula: ; where a, b, and c are all integers, , , is a unit vector, is the target vector.

[0065] When the dose grid is a three-dimensional dose grid, the target vector is determined by using the integer multiple calculation result of the unit vector. The target vector is determined by the following formula: , each pair of integers (a, b, c) determines a direction, by choosing a set of reasonable , which can cover the entire grid space. The more ray tracing directions there are, the more accurate the dose calculation results will be.

[0066] Combine the following Figure 3 , the dose calculation method is further explained:

[0067] Taking the two-dimensional dose grid as an example, eight directions can be selected as target vectors ,in Determine according to the following formula , The selection method can be as follows: , if 12 directions are selected as the target vector ,in Determine according to the following formula , The selection method can be as follows: , trace the rays in different directions, and obtain the dose calculation result, that is, the dose value obtained by the combined action of several rays in different directions at each point, that is, the radiation value. By selecting a set of reasonable integers, the entire grid space can be covered. The more the number of ray tracing directions, the more accurate the dose calculation result. The dose calculation result is determined based on the target segmentation length, that is, the dose value obtained by the combined action of several rays in different directions at each point. The more the number of ray tracing directions, the more accurate the dose calculation result. And the selected ray direction is an integer multiple of the unit vector, there is no deviation in the numerical calculation, and the length of each segment can be accurately calculated.

[0068] The embodiment of the present invention also provides a dose calculation system, such as Figure 4 As shown, the dose calculation system includes:

[0069] A determination module 41, used to determine a dose grid and unit vectors in different directions in the dose grid;

[0070] A calculation module 42, used to determine a target vector represented by an integer multiple of the unit vector, wherein the target vector is used to indicate a direction of the ray;

[0071] The tracking module 43 is used to perform ray tracing in the dose grid according to the direction of the ray to obtain a dose calculation result.

[0072] In one embodiment, the tracking module is further used to obtain the target segmentation length corresponding to the segmentation of the dose grid by rays in different directions, and determine the dose calculation result based on the target segmentation length.

[0073] In one embodiment, the tracking module is further used to obtain a first grid point where the ray intersects the dose grid;

[0074] The length between the emission starting point of the ray and the first grid point is determined as the target segmentation length.

[0075] Optionally, the dose calculation method is implemented based on one or more of a barrel-serial convolution algorithm, a fast Fourier algorithm, and a multi-lattice algorithm.

[0076] In one embodiment, the number of directions of the unit vector is two, and the determination module is further used to determine the target vector using the following formula: ; where n and m are both integers, , is a unit vector, is the target vector.

[0077] In one embodiment, the number of directions of the unit vector is three, and the determination module is further used to determine the target vector using the following formula: ; where a, b, and c are all integers, , , is a unit vector, is the target vector.

[0078] Optionally, the unit vector is determined according to the side length of the dose grid.

[0079] Optionally, the dosage grid is in the shape of a square, a rectangle or a parallelogram.

[0080] As for the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.

[0081] The embodiment of the present invention also provides an electronic device such as Figure 5 As shown, it includes a memory, a processor, and a computer program stored in the memory and used to run on the processor. When the processor executes the computer program, the dose calculation method described in any of the above embodiments is implemented. Figure 5 The electronic device 50 shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention. Figure 5 As shown, the electronic device 50 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 50 may include, but are not limited to: at least one processor 51, at least one memory 52, and a bus 53 connecting different system components (including the memory 52 and the processor 51).

[0082] The bus 53 includes a data bus, an address bus, and a control bus.

[0083] The memory 52 may include a volatile memory, such as a random access memory (RAM) 521 and / or a cache memory 522 , and may further include a read-only memory (ROM) 523 .

[0084] The memory 52 may also include a program tool 525 (or utility) having a set (at least one) of program modules 524, such program modules 524 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0085] The processor 51 executes various functional applications and data processing by running the computer program stored in the memory 52, such as the dose calculation method described in any of the above embodiments.

[0086] The electronic device 50 may also communicate with one or more external devices 54. Such communication may be performed via an input / output (I / O) interface 55. Furthermore, the electronic device 50 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 56. Figure 5 As shown, the network adapter 56 communicates with other modules of the electronic device 50 via the bus 53. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 50, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0087] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0088] An embodiment of the present invention further provides a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, the dose calculation method provided by any of the above embodiments is implemented.

[0089] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0090] In a possible implementation manner, the embodiment of the present invention may also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute a method for implementing any of the above embodiments.

[0091] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0092] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims

1. A dose calculation method, characterized in that: include: determining a dose grid and unit vectors in different directions in the dose grid; The unit vector is determined according to the side length of the dose grid; determining a target vector represented by an integer multiple of the unit vector, the target vector being used to indicate a direction of the ray; The target segmentation length corresponding to the dose grid segmented by rays in different directions is obtained, and the dose calculation result is determined based on the target segmentation length; the target segmentation length is determined as the length between the grid points where the rays intersect the dose grid.

2. The dose calculation method according to claim 1, characterized in that: The target segmentation length corresponding to segmenting the dose grid by acquiring rays in different directions includes: Obtaining a first grid point where the ray intersects with the dose grid; The length between the emission starting point of the ray and the first grid point is determined as the target segmentation length.

3. The dose calculation method according to claim 1, characterized in that: The dose calculation method is implemented based on one or more of a barrel-serial convolution algorithm, a fast Fourier algorithm, and a multi-lattice algorithm.

4. The dose calculation method according to claim 3, characterized in that: The number of directions of the unit vector is two, and determining the target vector represented by the unit vector comprises: The target vector is determined using the following formula: ; where n and m are both integers, , is a unit vector, is the target vector.

5. The dose calculation method according to claim 3, characterized in that: The number of directions of the unit vector is three, and determining the target vector represented by the unit vector comprises: The target vector is determined using the following formula: ; where a, b, and c are all integers, , , is a unit vector, is the target vector.

6. The dose calculation method according to claim 1, characterized in that: The dosage grid is in the shape of a square, a rectangle or a parallelogram.

7. A dose calculation system, characterized in that: include: A determination module, used to determine a dose grid and unit vectors in different directions in the dose grid; The unit vector is determined according to the side length of the dose grid; A calculation module, used for determining a target vector represented by an integer multiple of the unit vector, wherein the target vector is used for indicating a direction of the ray; A tracking module is used to obtain the target segmentation length corresponding to the segmentation of the dose grid by rays in different directions, and determine the dose calculation result based on the target segmentation length; the target segmentation length is determined as the length between the grid points where the rays intersect the dose grid.

8. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the dose calculation method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Fast obtaining method of dose distribution of photon beam in target body

    CN103425875A

  • Device for determining irradiation distribution of radiotherapy and radiotherapy system

    CN108771795A

  • Rapid VSP ray tracing calculation method for high and steep mountain structure

    CN113495292A

  • Sector angle equivalent total dose evaluation method for micro-nano satellite

    CN115169189A

  • Method for reconstructing a reconstruction dataset containing two-dimensional virtual X-ray images

    DE102011087337A1