Radiotherapy plan optimization method and device based on dose influence matrix compression
By obtaining the dose influence matrix in a radiotherapy scenario and compressing it to generate a compressed dose influence matrix, the problems of high computational load and high memory consumption in complex scenarios are solved, and efficient radiotherapy planning optimization is achieved.
Patent Information
- Application Number
- CN202610961432.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-30
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to simultaneously optimize both spatial angle and collimator angle in complex radiotherapy scenarios, resulting in high computational demands, high memory consumption, and an inability to effectively optimize radiotherapy plans.
By obtaining the dose influence matrix of the radiotherapy scenario, determining the size of the sampling cube based on the spatial distribution characteristics of voxels, performing compression processing to generate a compressed dose influence matrix, and executing an optimization algorithm based on this matrix to adjust the weights of the irradiation control points to meet the preset dose constraints.
While maintaining dosage accuracy, the computational load and memory usage are significantly reduced, solving the problem of insufficient computing resources in complex scenarios, avoiding suboptimal planning, and improving the quality and optimization efficiency of radiotherapy planning.
Smart Images

Figure CN123148562A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of radiotherapy technology, and in particular to a method and apparatus for optimizing radiotherapy plans based on dose influence matrix compression. Background Technology
[0002] Radiotherapy planning optimization is a core component of radiotherapy, aiming to maximize the protection of surrounding normal tissues while meeting target dose requirements by optimizing parameters such as radiation angle, intensity, and shape. With advancements in radiotherapy technology, next-generation non-coplanar irradiation techniques (such as solid-angle irradiation combining treatment bed rotation and collimator rotation) can achieve higher conformal dose distribution, significantly improving treatment efficacy. However, such complex irradiation scenarios involve multiple degrees of freedom, including spatial angles, collimator angles, and the positions of multi-leaf collimator blades. This results in an exponential increase in the number of irradiation control points involved in planning optimization, leading to an extremely large dose influence matrix. Traditional photon radiotherapy planning optimization methods struggle to directly perform optimization calculations for such complex scenarios, often facing problems such as insufficient computational memory or extremely low optimization efficiency.
[0003] Faced with the challenge of planning optimization in complex scenarios, existing solutions mainly employ analytical methods to pre-set initial optimization conditions. This involves pre-setting the collimator rotation angle and effective irradiation direction based on the geometric projection of the target area in space, thereby narrowing the optimization parameter space. However, this method has significant limitations: First, analytical algorithms only pre-set optimization conditions based on geometric factors, without directly considering clinical dosimetric constraints, which can easily lead to deviations from the optimal solution and suboptimal plans. Second, existing analytical methods only address collimator rotation scenarios, failing to consider the need for coordinated optimization of spatial angles and collimator angles in non-coplanar irradiation techniques. Third, due to the large number of irradiation control points, directly performing full-scenario optimization would face unbearable computational and memory consumption, thus limiting the clinical application of complex radiotherapy techniques.
[0004] Therefore, there is an urgent need for a radiotherapy planning optimization method that can simultaneously take into account both the spatial angle and the collimator angle, and can be preset based on dosimetry. Summary of the Invention
[0005] This invention provides a radiotherapy planning optimization method and apparatus based on dose influence matrix compression, which solves the problems in the prior art when facing complex scenarios (such as non-coplanar irradiation techniques), where suboptimal plans are generated due to reliance on geometrically preset initial optimization conditions, and the inability to simultaneously optimize spatial angles and collimator angles. While maintaining optimization accuracy, it reduces the computational load and memory consumption of planning optimization, allowing direct radiotherapy planning optimization in complex scenarios, and avoiding the suboptimal planning problems caused by preset initial optimization conditions.
[0006] On one hand, the present invention provides a radiotherapy planning optimization method based on dose influence matrix compression, comprising: obtaining a dose influence matrix of a radiotherapy scenario; determining the size of a sampling cube based on the spatial distribution characteristics of voxels in the dose influence matrix; compressing the dose influence matrix according to the size of the sampling cube to generate a compressed dose influence matrix; and executing an optimization algorithm based on the compressed dose influence matrix to obtain an optimization result that satisfies preset dose constraints by adjusting the weights of each irradiation control point.
[0007] Further, the spatial distribution characteristics of the voxels include the type of region of interest to which the voxels belong; correspondingly, determining the sampling cube size based on the spatial distribution characteristics of the voxels in the dose influence matrix includes: setting the sampling cube size to a first preset value when the voxel belongs to the target area; setting the sampling cube size to a second preset value when the voxel belongs to an organ at risk; and setting the sampling cube size to a third preset value when the voxel belongs to normal tissue; wherein the second preset value is greater than the first preset value, and the third preset value is greater than the second preset value.
[0008] Further, the step of compressing the dose influence matrix according to the size of the sampling cube to generate a compressed dose influence matrix includes: traversing the voxel space corresponding to the dose influence matrix with the size of the sampling cube as the step size; counting the indices of all voxels falling within the same sampling cube; extracting the row vectors corresponding to the voxel indices in the dose influence matrix for each voxel indices falling within the same sampling cube, and performing a mean operation on the row vectors; and using the mean operation result of each row vector as a compressed element to recombine and generate the compressed dose influence matrix.
[0009] Furthermore, the step of executing the optimization algorithm based on the compression-dose influence matrix, and obtaining the optimization result that satisfies the preset dose constraint by adjusting the weights of each irradiation control point, includes: constructing a penalty function with voxel dose deviation as the variable; calculating the gradient of the penalty function relative to the weights of each irradiation control point; and iteratively updating the weights based on the gradient using the gradient descent method until the penalty function converges or reaches the preset iteration number, thereby obtaining the optimization result.
[0010] Further, obtaining the optimization result includes: acquiring the current optimization weight in the optimization result; calculating the target dose distribution corresponding to the current optimization weight based on the uncompressed dose influence matrix, and comparing the target dose distribution with the estimated dose distribution calculated based on the compressed dose influence matrix; if there is a deviation region in the comparison result, adding a compression auxiliary structure based on the voxel index in the deviation region; and re-executing the optimization algorithm based on the compressed dose influence matrix after adding the compression auxiliary structure until an optimization result that satisfies the preset dose constraint condition is obtained.
[0011] Furthermore, the step of adding a compression auxiliary structure based on the voxel index in the deviation region includes: identifying voxels within a preset distance range outside the target region contour; constructing the identified voxels into a ring-shaped auxiliary structure; and setting the size of the sampling cube within the ring-shaped auxiliary structure to a fourth preset value.
[0012] Furthermore, the radiotherapy scenario includes a non-coplanar irradiation scenario; correspondingly, obtaining the dose influence matrix of the radiotherapy scenario includes: obtaining the solid angle direction defined by the vertices of a regular polyhedron, and the irradiation control point determined based on multiple collimator angles under each solid angle direction; generating the dose influence matrix of the entire scenario based on the solid angle direction and the irradiation control point.
[0013] Furthermore, the fourth preset value is 1 or 4.
[0014] Furthermore, the regular polyhedron includes a regular icosahedron, the regular icosahedron has 12 vertices, and the solid angle direction includes the beam direction corresponding to each of the 12 vertices.
[0015] Secondly, the present invention also provides a radiotherapy planning optimization device based on dose influence matrix compression, comprising: a dose influence matrix acquisition module for acquiring a dose influence matrix of a radiotherapy scenario; a sampling cube size determination module for determining the size of a sampling cube based on the spatial distribution characteristics of voxels in the dose influence matrix; a dose influence matrix compression module for compressing the dose influence matrix according to the sampling cube size to generate a compressed-dose influence matrix; and a radiotherapy planning optimization module for executing an optimization algorithm based on the compressed-dose influence matrix, and obtaining an optimization result that satisfies preset dose constraints by adjusting the weights of each irradiation control point.
[0016] Thirdly, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the radiotherapy planning optimization method based on dose influence matrix compression as described above.
[0017] Fourthly, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the radiotherapy planning optimization method based on dose influence matrix compression as described above.
[0018] Fifthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the radiotherapy planning optimization method based on dose influence matrix compression as described above.
[0019] This invention provides a radiotherapy planning optimization method based on dose influence matrix compression. It obtains the dose influence matrix of the radiotherapy scenario and determines the sampling cube size based on the spatial distribution characteristics of voxels within the matrix. The dose influence matrix is then compressed according to the sampling cube size to generate a compressed-dose influence matrix. An optimization algorithm is then executed based on this compressed-dose influence matrix, adjusting the weights of each irradiation control point to obtain an optimized result that satisfies preset dose constraints. This method significantly reduces computational load and memory consumption while maintaining dose accuracy through dose influence matrix compression, solving the problem of insufficient computational resources in complex non-coplanar irradiation scenarios that prevent direct planning optimization. Furthermore, this method abandons geometrically based preset initial conditions and instead performs global optimization directly based on dosimetry, effectively avoiding suboptimal planning problems. In addition, this method is compatible with multi-dimensional complex parameter configurations, including spatial angles and collimator angles, achieving a dual improvement in radiotherapy planning quality and optimization efficiency. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0021] Figure 1 This is a flowchart illustrating the radiotherapy planning optimization method based on dose influence matrix compression provided in this embodiment of the invention.
[0022] Figure 2 This is a compressed schematic diagram of the dose effect matrix provided in the embodiments of the present invention.
[0023] Figure 3 This is a schematic diagram illustrating the addition of the compression-aiding structure provided in an embodiment of the present invention.
[0024] Figure 4 This is a schematic diagram illustrating the compression effect of the compressed dose influence matrix provided in this embodiment of the invention compared to the existing matrix on the dose influence matrix.
[0025] Figure 5 This is a schematic diagram of the radiotherapy planning optimization results based on the compression-dose influence matrix provided in an embodiment of the present invention.
[0026] Figure 6 This is a schematic diagram illustrating the impact of the compression-assisted structure provided in this embodiment of the invention on the optimization results.
[0027] Figure 7 This is a schematic diagram comparing the radiotherapy planning optimization method based on dose influence matrix compression provided by this invention with the traditional geometric analytical method.
[0028] Figure 8 This is a schematic diagram of the radiotherapy planning optimization device based on dose influence matrix compression provided in an embodiment of the present invention.
[0029] Figure 9 This is a schematic diagram of the physical structure of the electronic device provided in the embodiment of the present invention. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0031] Figure 1 The diagram shows a flowchart of the radiotherapy planning optimization method based on dose influence matrix compression provided in an embodiment of the present invention.
[0032] like Figure 1 As shown, the method includes: S110, obtaining the dose influence matrix of the radiotherapy scenario; S120, determining the size of the sampling cube based on the spatial distribution characteristics of voxels in the dose influence matrix; S130, compressing the dose influence matrix according to the size of the sampling cube to generate a compressed-dose influence matrix; S10, executing an optimization algorithm based on the compressed-dose influence matrix, and obtaining an optimization result that satisfies the preset dose constraint conditions by adjusting the weights of each irradiation control point.
[0033] The following will provide a detailed description of steps S110-S10 and related steps.
[0034] S110, obtain the dose influence matrix for the radiotherapy scenario.
[0035] In this step, the radiotherapy scenario is a complex irradiation configuration scenario that includes spatial angle, collimator angle, and multi-leaf collimator parameters, such as a new generation of non-coplanar irradiation scenario that combines gantry rotation, treatment bed rotation, and collimator rotation.
[0036] Voxels are the smallest volumetric units of target areas or normal tissues in three-dimensional radiotherapy planning, and are distributed in a grid-like spatial pattern. The smallest unit for dividing the illumination field flux, each The index corresponding to a specific spatial angle, collimator angle, and flux position is denoted as i; the dose influence matrix Under unit weight, by each For all voxels A matrix consisting of dose contributions, where column indices correspond Number, row index Corresponding voxel number.
[0037] Obtain the dose effect matrix First, irradiation control points are set according to clinical needs. For example, the vertex of a regular icosahedron is selected as the solid angle irradiation direction. 18 collimator angles are set in 10-degree increments under each solid angle. The square irradiation field is divided into 400 equal parts of 20×20. Then, each dose is calculated using a dosage algorithm. The dose contribution of all voxels is used to form a complete dose effect matrix. .
[0038] S120, determine the size of the sampling cube based on the spatial distribution characteristics of voxels in the dose influence matrix.
[0039] In this step, the sampling cube size refers to the size of the cube unit used for grouping when traversing voxels, expressed in units of voxels. For example, a sampling cube size of 8 represents a cuboid composed of 2×2×2 voxels.
[0040] When determining the size of the sampling cube, it is necessary to consider the type of region of interest to which the voxel belongs. Specifically, the sampling cube size corresponding to normal tissue (low-dose gradient region; low-dose area) is larger; while the sampling cube size corresponding to tumor target area and normal tissue adjacent to the target area (high-dose gradient region; high-dose area) is smaller; the sampling cube size of organs at risk is adaptively set according to their anatomical volume and proximity to the target area.
[0041] This is because normal tissues occupy the vast majority of voxels, resulting in low and gradual doses. Using large-size sampling can significantly reduce computational load and memory usage with almost no loss of dose information, while also filtering out local noise.
[0042] The tumor target area is the core of treatment, with high internal dose and large gradient. To prevent excessive smoothing from masking dose cold spots or hot spots, minimum size sampling must be used to preserve the fine structure of the dose to the maximum extent, ensuring that the optimization algorithm can accurately control the beam weight and achieve high conformal coverage.
[0043] Organs at risk adjacent to the target area are located in regions with steep dose drops, and small-size sampling is also required to ensure that the optimization algorithm can respond smoothly and suppress excess dose spillover at the interface, thus ensuring safety.
[0044] For example, in a specific embodiment, if the voxel belongs to the tumor target area, the sampling cube size is set to 1 (4 for large tumor target areas); if it belongs to normal tissue (i.e., the area after deducting the target area from the body outline), it is set to 64~125 (preferably 125); if it belongs to an organ at risk (such as the eye, chest and abdominal organs), it is set to 1~64 according to the size of the organ and the distance from the target area (for example, 1 is commonly used for the eye, and 8, 27 or 64 are commonly used for the chest and abdomen).
[0045] Based on the above, a corresponding sampling cube size can be assigned to each voxel in the dose influence matrix.
[0046] S130, The dose influence matrix is compressed according to the size of the sampling cube to generate a compressed dose influence matrix.
[0047] In this step, the compression-dose effect matrix (Zip- (This is based on the dose effect matrix) The sample compression generates a matrix that uses less memory.
[0048] When compressing the dose-effect matrix, the spatial distribution region of all voxels in the dose-effect matrix is traversed using the sampling cube size determined in step S120 as the step size. For each traversal, the indices of all voxels falling within the same sampling cube are counted. The arithmetic mean of the voxel doses within the same sampling cube under a Bixel is calculated and used as the element of the compressed matrix, thereby generating the compressed-dose-effect matrix. The compressed-dose-effect matrix remains a one-dimensional matrix for the corresponding voxels, and the matrix dimension remains unchanged.
[0049] For example, index voxels 1-16 of an organ at risk, after being compressed using a 2×2×1 sampling cube, are combined into a compressed-dose effect matrix element of 6 voxels. Through this compression method, the compressed-dose effect matrix (Zip- The memory footprint is significantly lower than that of the original dense matrix and the traditional sparse matrix, while maintaining the accuracy of the dose distribution, providing efficient data input for subsequent optimization.
[0050] S140, Based on the compression-dose influence matrix, an optimization algorithm is executed to obtain an optimization result that satisfies the preset dose constraint by adjusting the weights of each irradiation control point.
[0051] In this step, the weight (ω) of the illumination control point is each The flux weight is optimized to adjust ω so that the dose distribution meets the clinically preset dose constraints.
[0052] Based on the compression-dose effect matrix (Zip-) generated in step S130 The iterative optimization algorithm (preferably gradient descent) is executed. In each iteration, the compression-dose effect matrix (Zip-) is calculated under the current weights. The algorithm calculates the dose distribution under the given conditions and compares it with the clinically preset target dose. The optimization algorithm calculates the gradient of ω based on the direction of the dose deviation (e.g., increasing ω for under-dose in the target area, decreasing ω for over-dose in organs at risk) and updates the weights ω of each irradiation control point until the dose distribution converges or reaches the preset number of iterations, thus obtaining ω that satisfies the preset dose constraints.
[0053] The optimization results include ω, the irradiation control point determined through iterative optimization algorithm, and the zig-dose effect matrix. The dose distribution data generated by the calculation may also include key evaluation indicators extracted based on the aforementioned three-dimensional dose distribution data.
[0054] The weight parameters of each irradiation control point in the optimization results define each The final flux intensity (i.e., the combination of various spatial angles, collimator angles, and flux positions) is the core parameter driving the radiotherapy equipment to perform irradiation. Three-dimensional dose distribution data visually demonstrates the deposition of irradiated dose in the target area and normal tissues. Key evaluation indicators such as conformity index, homogeneity index, and maximum dose or volumetric dose limit to organs at risk are used to confirm whether the radiotherapy plan meets the preset dose constraints.
[0055] In this embodiment, the dose influence matrix of the radiotherapy scenario is obtained, and the size of the sampling cube is determined based on the spatial distribution characteristics of voxels in the dose influence matrix. Then, the dose influence matrix is compressed according to the size of the sampling cube to generate a compressed-dose influence matrix. An optimization algorithm is then executed based on this compressed-dose influence matrix, and by adjusting the weights of each irradiation control point, an optimization result that satisfies the preset dose constraints is obtained. This method significantly reduces computational load and memory consumption while maintaining dose accuracy through dose influence matrix compression, solving the problem of insufficient computational resources in complex non-coplanar irradiation scenarios that prevent direct planning optimization. Furthermore, this method abandons geometrically based preset initial conditions and instead performs global optimization directly based on dosimetry, effectively avoiding suboptimal planning problems. In addition, this method is compatible with multi-dimensional complex parameter configurations, including spatial angles and collimator angles, achieving a dual improvement in radiotherapy planning quality and optimization efficiency.
[0056] Based on the above embodiments, the following will further describe in detail the process of obtaining the dose influence matrix in step S110.
[0057] The radiotherapy scenario includes non-coplanar irradiation scenarios; accordingly, the dose influence matrix of the radiotherapy scenario is obtained, including: obtaining the solid angle direction defined by the vertices of the regular polyhedron, and the irradiation control point determined based on multiple collimator angles under each solid angle direction; and generating the dose influence matrix of the entire scenario based on the solid angle direction and the irradiation control point.
[0058] It is easy to understand that the radiotherapy scenario in this embodiment specifically refers to a new generation of non-coplanar irradiation technology that combines gantry rotation, treatment bed rotation, and collimator rotation.
[0059] In non-coplanar illumination scenarios, the solid angle direction is no longer limited to the traditional coplanar arc distribution, but is defined by the geometric vertices of a regular polyhedron. Preferably, the 12 vertices of a regular icosahedron can be used to determine the non-coplanar illumination direction that is uniformly distributed in space, so as to achieve three-dimensional encirclement of the target area. If it is necessary to further increase the density of the solid angle, the center of each face of the regular icosahedron can be used as a new illumination direction.
[0060] The illumination control point is defined in each solid angle direction in conjunction with the collimator's rotation state. For example, the collimator angle is varied by increments of 10 degrees, thus creating 18 different illumination poses for a single solid angle. To further increase the density of the collimator angles, the angle increment can be further reduced from 10 degrees.
[0061] After determining the solid angle direction and irradiation control points, the dose influence matrix for the entire scene can be generated. Specifically, for the full-open square-field flux of the leaf at each irradiation control point, it is divided into 400 small flux units (i.e., ...) using a 20×20 grid. Subsequently, matrix multiplication is used to calculate each unit weight. The dose contribution of (index i) to all voxels (index j) is used to obtain the dose effect matrix.
[0062] Because this embodiment introduces dose effect matrix compression, it overcomes the limitation of traditional analytical methods that are forced to reduce computational power. The bottleneck of quantity is overcome, thus enabling the complete retention of all solid angles, collimator angles, and flux positions without prior geometric screening. Data is used to construct a large-scale dose influence matrix covering the entire scenario. This provides complete data input for subsequent dosimetry-based global optimization.
[0063] Based on the above embodiments, the process of determining the size of the sampling cube in step S120 will be described in detail below.
[0064] The spatial distribution characteristics of voxels include the type of region of interest to which the voxel belongs; correspondingly, the sampling cube size is determined based on the spatial distribution characteristics of voxels in the dose influence matrix, including: setting the sampling cube size to a first preset value when the voxel belongs to the target area; setting the sampling cube size to a second preset value when the voxel belongs to an organ at risk; and setting the sampling cube size to a third preset value when the voxel belongs to normal tissue; wherein the second preset value is greater than the first preset value, and the third preset value is greater than the second preset value.
[0065] It is easy to understand that this embodiment differentiates the sampling cube size based on the type of region of interest to which the voxel belongs, in order to achieve a high compression ratio while maintaining clinical dosage accuracy. The spatial distribution characteristics of the voxels include the anatomical functional region category to which the voxels belong.
[0066] Specifically, when the voxel is located in the tumor target area, this region is the key area for radiotherapy to kill tumor cells, and the requirements for dose uniformity and conformity are extremely high, with drastic changes in the dose gradient. To prevent the masking of dose cold spots or hot spots due to excessive smoothing, the sampling cube size corresponding to the target area needs to be set to the minimum first preset value, usually 1, and 4 for large-volume target areas, in order to preserve the fine structure of the dose to the maximum extent.
[0067] When a voxel belongs to an organ of risk, considering that such organs (such as the eyeball and spinal cord) are close to the target area or located in a steep dose drop zone, they need to be protected with high precision. Therefore, the sampling cube size corresponding to the organ of risk is set to a second preset value, which is greater than the first preset value. It is usually between 1 and 64 depending on the size of the organ and its distance from the target area. For example, 1 is used for the eye, and 8, 27 or 64 are used for the chest and abdomen. This ensures the monitoring sensitivity of critical structures while appropriately reducing the computational load.
[0068] When the voxel represents normal tissue, i.e., the area remaining after delineating the body area and organs at risk, this region occupies the largest proportion in three-dimensional space and has a relatively gentle dose distribution, mostly located at the edge of the irradiation field or in the penumbra. To fundamentally address the dose influence matrix across the entire scene... To address the issue of size explosion, the sampling cube size corresponding to normal tissue needs to be set to the maximum third preset value, typically between 64 and 125, with 125 being the preferred value.
[0069] This embodiment, by setting the size of the sampling cubes in different regions in a layered manner, can significantly compress the normal tissue, which accounts for the largest proportion, while ensuring the dosage accuracy of the target area and organs at risk. This significantly reduces the computational load and memory usage of subsequent optimization algorithms.
[0070] Based on the above embodiments, the following will further describe in detail the process of generating the compression-dose influence matrix in step S130.
[0071] The dose-effect matrix is compressed based on the sampling cube size to generate a compressed dose-effect matrix. This process includes: traversing the voxel space corresponding to the dose-effect matrix with the sampling cube size as the step size; counting the indices of all voxels falling within the same sampling cube; each row in the dose-effect matrix records the unit weight dose value of the voxel corresponding to that voxel index in all Bixel indices. For each voxel index falling within the same sampling cube, the row vector corresponding to the voxel index in the dose-effect matrix is extracted, and the mean of the row vectors is calculated; the mean of each row vector is used as the compressed element and recombined to generate the compressed dose-effect matrix.
[0072] Figure 2 This diagram illustrates a compressed representation of the dose effect matrix provided in an embodiment of the present invention. Figure 2 The example shown is a sketch of an organ at risk.
[0073] like Figure 2 As shown, the dose effect matrix is compressed to generate a compressed dose effect matrix (Zip-). When performing this step, the original dose-effect matrix is first calculated for the selected region of interest (e.g., organ at risk). This matrix records the values of each unit weight. Dose contribution data for index voxels 1 to 16. This is used to obtain the dose influence matrix. Subsequently, based on the anatomical features of the endangered organ and its proximity to the target area, the corresponding sampling cube size was determined to be 4, which means that the three-dimensional space will be divided with a step size of 2×2×1.
[0074] Subsequently, using a determined sampling cube size as the step size, the voxel space corresponding to the organs at risk in the dose-effect matrix is traversed; during the traversal, the indices of all voxels falling within the same sampling cube are automatically counted, for example, in Figure 2 In the example, voxels with indices 1 and 5 are grouped into the same sampling cube because they are spatially adjacent.
[0075] Next, for each voxel group within the sampling cube, the original dose-effect matrix was used. Extract the row vectors corresponding to these voxel indices, i.e., the voxel groups in all... The dose contribution data under unit weight is used, and the arithmetic mean is calculated on these row vectors. The calculated mean vector is used as the representative data of the group of voxels.
[0076] Finally, all vector elements processed by the mean operation are recombined according to their spatial correspondence to form a compressed-dose effect matrix (Zip-) with significantly reduced dimensionality. ).exist Figure 2 In the example, the dose-effect matrix that originally corresponded to 16 voxels was compressed and reconstructed into a matrix consisting of 6 elements, thereby significantly reducing the data size while preserving key dose features.
[0077] Based on the above embodiments, the following will further describe in detail the execution process of the optimization algorithm in step S140.
[0078] The optimization algorithm based on the compression-dose influence matrix is used to obtain the optimization result that satisfies the preset dose constraints by adjusting the weights of each irradiation control point. This includes: constructing a penalty function with voxel dose deviation as the variable; calculating the gradient of the weights of the irradiation control points corresponding to the penalty function; and iteratively updating the weights based on the gradient using the gradient descent method until the penalty function converges or reaches the preset number of iterations to obtain the optimization result.
[0079] It is easy to understand that, based on the compression-dose effect matrix (Zip- In the process of executing the optimization algorithm to obtain the optimization result, a penalty function based on voxel dose deviation is first constructed according to clinical guidelines and doctor's prescriptions. The radiation physicist then sets optimization weights for each voxel j based on the clinical guidelines and doctor's prescriptions. With optimized target dose value And define the direction function based on the voxel properties. .
[0080] When the voxel belongs to the organ at risk or target area D90~D0 When the value is 1, no penalty is applied if the actual dose is lower than the optimized target dose value; otherwise, a penalty is applied to force the dose to fall back. When the voxel belongs to the tumor target region D100~D90, The value is -1. If the actual dose is higher than the optimized target dose value, no penalty will be imposed. If it is lower than the optimized target dose value, a penalty will be imposed to force the dose to be increased.
[0081] Subsequently, based on the formula Calculate the dose value of voxel j in region of interest s under the current weight ω, and obtain the total penalty function by summation. This is the sum of the penalty functions for all voxel doses to be optimized. Wherein, The function is based on voxel indexes ,exist Extracting dose point values from a one-dimensional dose matrix set can generally be done using an index-based extraction method, such as... In function.
[0082] After obtaining the total penalty function value, the algorithm calculates the gradient of the weight ω of each irradiation control point based on F(ω). This gradient indicates the gradient that, in order to reduce the total penalty value (i.e., make the dose distribution more consistent with clinical expectations), each... The direction and magnitude of ω should be adjusted. Based on the calculated gradient, the weight ω is iteratively updated using the gradient descent method.
[0083] In each iteration, the gradient information is used to fine-tune each step. The dose distribution and penalty function value are then recalculated. This iterative process continues until the total penalty function F(ω) converges to a preset minimum value (indicating that the dose distribution is highly consistent with the clinical objective), or the number of iterations reaches a preset upper limit (e.g., 50 rounds), thereby outputting a set of optimized weights that meet the preset dose constraints.
[0084] Based on the above embodiments, further, after obtaining the optimization result, the process includes: obtaining the current optimization weight in the optimization result; calculating the target dose distribution corresponding to the current optimization weight based on the uncompressed dose influence matrix, and comparing the target dose distribution with the estimated dose distribution calculated based on the compressed dose influence matrix; if there is a deviation region in the comparison result, adding a compression auxiliary structure based on the voxel index in the deviation region; and re-executing the optimization algorithm based on the compressed dose influence matrix after adding the compression auxiliary structure until an optimization result that satisfies the preset dose constraint condition is obtained.
[0085] What's easy to understand is that after obtaining the optimization result through several rounds of ω optimization, the current optimization weight ω is automatically extracted from the optimization result; based on the uncompressed dose influence matrix... Calculate the theoretical target dose distribution corresponding to the current optimization weights. ω, while utilizing the current compression-dose effect matrix (Zip- Predicted dose distribution Zip- ω; for ω and Zip- ω performs voxel-by-voxel deviation analysis. When the dose deviation between the two exceeds a preset threshold (e.g., ±2%), the corresponding region is identified as the deviation region. Based on the spatial index coordinates of each voxel in the deviation region, a compression auxiliary structure is added at the corresponding position.
[0086] Figure 3 A schematic diagram illustrating the addition of the compression-aiding structure provided in an embodiment of the present invention is shown. Figure 3 As shown, if the deviation area is located within normal tissue adjacent to the target area (PTV), a ring-shaped compression auxiliary structure with a sampling cube size of 1 is constructed within a region extending 3mm outward from the PTV. This allows for precise control of dose drop in the region; if the deviation area is a large low-dose area, a cubic auxiliary structure with a sampling cube size of 4 can be manually set for dose compensation.
[0087] After adding the compression auxiliary structure, incorporate it into the new compression-dose influence matrix, restart the optimization algorithm for iterative calculation, and repeat the process of obtaining the current optimization weight-dose comparison-adding auxiliary structure until the optimization result meets all preset dose constraints (such as normal tissue dose ≤ 107% of the prescription dose, target area coverage ≥ 95%) or reaches the maximum number of optimization rounds (such as 50 rounds).
[0088] Throughout the process, this embodiment supports flexible configuration of the sampling cube size of the compression auxiliary structure (such as 1, 2, 3 or 4) according to clinical needs. It can be automatically matched through preset rules (such as region of interest category), or physicians can manually specify the sampling parameters of specific regions according to anatomical structural features, thereby achieving precise correction of dose distribution.
[0089] In some embodiments, a compressed-dose effect matrix (Zip-) was performed in proton therapy planning optimization. Feasibility test, Figure 4 The diagram illustrates the compression effect of the compressed dose-effect matrix provided in the embodiments of the present invention on the dose-effect matrix compared with existing matrices (dense and sparse matrices). Figure 4 The horizontal axis represents the number of beams, and the vertical axis represents memory consumption. Figure 5 This diagram illustrates the results of radiotherapy planning optimization based on the compression-dose influence matrix provided by an embodiment of the present invention.
[0090] according to Figure 4 and Figure 5 It can be seen that the uncompressed dose-effect matrix (i.e., the dense matrix) The size can reach 1364GB (extremely complex optimization scenario: 72 rack angle, 33 energy, large target area); using sparse matrix compression, it can only be compressed to 120GB, which is still extremely difficult to optimize; while using compression-dose effect matrix (Zip- ), which can be used to generate a dose effect matrix The size has been compressed to 20GB, allowing for smooth optimization.
[0091] also, Figure 6 The diagram illustrates the effect of the compression assist structure provided in the embodiments of the present invention on the optimization results, wherein (a.1) shows the optimization effect of adding the target ring compression assist structure, and (a.2) shows the optimization effect of not adding the target ring compression assist structure.
[0092] according to Figure 6 It can be seen that the compression-assisted structure has an improving effect on the quality of the compression-dose effect matrix, and the addition of the target ring compression-assisted structure significantly reduces the maximum dose in normal tissues.
[0093] In some other embodiments, Figure 7 The diagram illustrates a comparison between the radiotherapy planning optimization method based on dose influence matrix compression provided by this invention and the traditional geometric analytical method.
[0094] like Figure 7 As shown in Figure (a), the process of the traditional geometric analytical method begins with PTV delineation, followed by projection and analysis to obtain the collimator angle set and spatial angle set, and finally the dose influence matrix is calculated. Computation and optimization. The dashed lines and question marks in Figure (a) indicate that there may be a disconnect between geometric analysis and dose optimization in traditional methods. Furthermore, the choice of angle is often limited by fixed analytical rules, lacks direct dosimetric feedback, and is prone to suboptimal solutions.
[0095] Figure (b) shows the flowchart of the radiotherapy planning optimization method based on dose influence matrix compression provided by the present invention. It eliminates the complex pre-defined analysis steps and directly extracts data from the dose influence matrix. Calculate the transition to the compression-dose effect matrix Zip- Generate, then based on Zip- Optimization is performed. Because the compressed dose influence matrix technology effectively overcomes the bottlenecks of memory usage and computational load, it enables efficient and accurate optimization of radiotherapy plans in complex scenarios involving full spatial angles and collimator angles without relying on geometric presets that may introduce deviations.
[0096] Compared with traditional geometric analytical methods, the radiotherapy planning optimization method based on dose influence matrix compression provided by this invention significantly reduces the computational load and memory consumption of planning optimization while maintaining optimization accuracy. It allows for direct radiotherapy planning optimization in complex scenarios (collimator rotation and spatial angle irradiation), avoiding suboptimal planning problems caused by preset initial optimization conditions.
[0097] Corresponding to the radiotherapy planning optimization method based on dose influence matrix compression described in the above embodiments, the present invention also proposes a radiotherapy planning optimization device based on dose influence matrix compression.
[0098] Specifically, Figure 8 A schematic diagram of the radiotherapy planning optimization device based on dose influence matrix compression provided in an embodiment of the present invention is shown.
[0099] like Figure 8 As shown, the device includes: a dose influence matrix acquisition module 810, used to acquire the dose influence matrix of a radiotherapy scenario; a sampling cube size determination module 820, used to determine the size of the sampling cube based on the spatial distribution characteristics of voxels in the dose influence matrix; a dose influence matrix compression module 830, used to compress the dose influence matrix according to the sampling cube size to generate a compressed-dose influence matrix; and a radiotherapy plan optimization module 840, used to execute an optimization algorithm based on the compressed-dose influence matrix, and obtain an optimization result that meets preset dose constraints by adjusting the weights of each irradiation control point.
[0100] In this embodiment, the dose influence matrix of the radiotherapy scenario is obtained by the dose influence matrix acquisition module 810. The sampling cube size determination module 820 determines the size of the sampling cube based on the spatial distribution characteristics of voxels in the dose influence matrix. Then, the dose influence matrix compression module 830 compresses the dose influence matrix according to the sampling cube size to generate a compressed dose influence matrix. The radiotherapy planning optimization module 840 then executes an optimization algorithm based on the compressed dose influence matrix, adjusting the weights of each irradiation control point to obtain an optimization result that meets the preset dose constraints. This device significantly reduces the computational load and memory usage while maintaining dose accuracy through dose influence matrix compression, solving the problem of insufficient computing resources in complex non-coplanar irradiation scenarios that prevent direct planning optimization. Furthermore, this method abandons the preset initial conditions based on geometry and instead performs global optimization directly based on dosimetry, effectively avoiding suboptimal planning problems. In addition, this method can also accommodate multi-dimensional complex parameter configurations, including spatial angles and collimator angles, achieving a dual improvement in radiotherapy planning quality and optimization efficiency.
[0101] Figure 9 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 9 As shown, the electronic device may include a processor 910, a communications interface 920, a memory 930, and a communication bus 940. The processor 910, communications interface 920, and memory 930 communicate with each other via the communication bus 940. The processor 910 can call logical instructions in the memory 930 to execute a radiotherapy planning optimization method based on dose influence matrix compression. This method includes: obtaining a dose influence matrix of the radiotherapy scenario; determining the size of a sampling cube based on the spatial distribution characteristics of voxels in the dose influence matrix; compressing the dose influence matrix according to the sampling cube size to generate a compressed-dose influence matrix; and executing an optimization algorithm based on the compressed-dose influence matrix to obtain an optimization result that satisfies preset dose constraints by adjusting the weights of each irradiation control point.
[0102] Furthermore, the logical instructions in the aforementioned memory 930 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0103] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the radiotherapy planning optimization method based on dose influence matrix compression provided by the above methods. The method includes: obtaining a dose influence matrix of a radiotherapy scenario; determining the size of a sampling cube based on the spatial distribution characteristics of voxels in the dose influence matrix; compressing the dose influence matrix according to the size of the sampling cube to generate a compressed dose influence matrix; and executing an optimization algorithm based on the compressed dose influence matrix to obtain an optimization result that satisfies preset dose constraints by adjusting the weights of each irradiation control point.
[0104] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a radiotherapy planning optimization method based on dose influence matrix compression provided by the above methods. The method includes: obtaining a dose influence matrix of a radiotherapy scenario; determining the size of a sampling cube based on the spatial distribution characteristics of voxels in the dose influence matrix; compressing the dose influence matrix according to the size of the sampling cube to generate a compressed-dose influence matrix; and executing an optimization algorithm based on the compressed-dose influence matrix to obtain an optimization result that satisfies preset dose constraints by adjusting the weights of each irradiation control point.
[0105] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0106] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A radiotherapy planning optimization method based on dose influence matrix compression, characterized in that, include: Obtain the dose-effect matrix for a radiotherapy scenario; The size of the sampling cube is determined based on the spatial distribution characteristics of voxels in the dose influence matrix; The dose influence matrix is compressed according to the size of the sampling cube to generate a compressed dose influence matrix; An optimization algorithm is executed based on the compression-dose influence matrix. By adjusting the weights of each irradiation control point, an optimization result that satisfies the preset dose constraints is obtained.
2. The radiotherapy planning optimization method based on dose influence matrix compression according to claim 1, characterized in that, The spatial distribution characteristics of the voxels include the type of region of interest to which the voxels belong; Accordingly, determining the sampling cube size based on the spatial distribution characteristics of voxels in the dose influence matrix includes: If the voxel belongs to the target area, the size of the sampling cube is set to a first preset value; If the voxel belongs to an organ at risk, the size of the sampling cube is set to a second preset value; If the voxel is normal tissue, the size of the sampling cube is set to a third preset value; Wherein, the second preset value is greater than the first preset value, and the third preset value is greater than the second preset value.
3. The radiotherapy planning optimization method based on dose influence matrix compression according to claim 1, characterized in that, The step of compressing the dose influence matrix according to the size of the sampling cube to generate a compressed dose influence matrix includes: Using the size of the sampling cube as a step size, traverse the voxel space corresponding to the dose influence matrix; Count the indices of all voxels that fall within the same sampling cube; For voxel indices falling within the same sampling cube, extract the row vectors corresponding to the voxel indices in the dose influence matrix, and perform mean calculation on the row vectors; The mean of each row vector is used as the compressed element, and the compressed-dose influence matrix is recombined to generate the compressed matrix.
4. The radiotherapy planning optimization method based on dose influence matrix compression according to claim 1, characterized in that, The optimization algorithm based on the compression-dose influence matrix, by adjusting the weights of each irradiation control point, obtains an optimization result that satisfies the preset dose constraints, including: Construct a penalty function with voxel dose bias as the variable; Calculate the gradient of the penalty function with respect to the weights of each irradiation control point; Based on the gradient, the weights are iteratively updated using gradient descent until the penalty function converges or reaches a preset number of iterations, thus obtaining the optimization result.
5. The radiotherapy planning optimization method based on dose influence matrix compression according to claim 4, characterized in that, The process of obtaining the optimization result then includes: Obtain the current optimization weight from the optimization results; The target dose distribution corresponding to the current optimization weight is calculated based on the uncompressed dose influence matrix, and the target dose distribution is compared with the estimated dose distribution calculated based on the compressed dose influence matrix. If there are deviation areas in the comparison results, a compression auxiliary structure is added based on the voxel index in the deviation area. Based on the compression-dose influence matrix after adding the compression auxiliary structure, the optimization algorithm is re-executed until an optimization result that satisfies the preset dose constraint is obtained.
6. The radiotherapy planning optimization method based on dose influence matrix compression according to claim 5, characterized in that, The step of adding a compression aid structure based on the voxel index in the deviation region includes: Identify voxels within a preset distance range outside the target area outline; The identified voxels are constructed into a ring-shaped auxiliary structure, and the size of the sampling cube within the ring-shaped auxiliary structure is set to a fourth preset value.
7. The radiotherapy planning optimization method based on dose influence matrix compression according to claim 1, characterized in that, The radiotherapy scenarios include non-coplanar irradiation scenarios; Accordingly, obtaining the dose influence matrix of the radiotherapy scenario includes: Obtain the solid angle direction defined by the vertices of the regular polyhedron, and the illumination control point determined based on multiple collimator angles under each solid angle direction; A dose influence matrix for the entire scene is generated based on the solid angle direction and the irradiation control point.
8. The radiotherapy planning optimization method based on dose influence matrix compression according to claim 6, characterized in that, The fourth preset value is 1 or 4.
9. The radiotherapy planning optimization method based on dose influence matrix compression according to claim 7, characterized in that, The regular polyhedron includes a regular icosahedron, which has 12 vertices, and the solid angle direction includes the beam direction corresponding to each of the 12 vertices.
10. A radiotherapy planning optimization device based on dose influence matrix compression, characterized in that, include: The dose influence matrix acquisition module is used to acquire the dose influence matrix for radiotherapy scenarios. The sampling cube size determination module is used to determine the sampling cube size based on the spatial distribution characteristics of voxels in the dose influence matrix. The dose influence matrix compression module is used to compress the dose influence matrix according to the size of the sampling cube to generate a compressed dose influence matrix; the radiotherapy planning optimization module is used to execute an optimization algorithm based on the compressed dose influence matrix, and obtain an optimization result that meets the preset dose constraints by adjusting the weight of each irradiation control point.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the radiotherapy planning optimization method based on dose influence matrix compression as described in any one of claims 1 to 9.
12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the radiotherapy planning optimization method based on dose influence matrix compression as described in any one of claims 1 to 9.
13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the radiotherapy planning optimization method based on dose influence matrix compression as described in any one of claims 1 to 9.
