The invention relates to the field of medical technology, and mainly relates to a segmentation method (sliding window) for an orthogonal double-layer grating device of inverse intensity modulated radiotherapy.
At present, the most common technique in radiotherapy is to use grating blade for intensity modulation. Through the grating blades' movement, the target area can have a very good conformal effect, and can reduce the radiation damage of normal tissue. In general, for the grating blades, the thinner and greater number of the grating blades, the better the conformal degree of the multi-lobed collimator. But for conventional single-layer grating blade, because blades can only move in one direction, the blade thickness direction of the conformal ability is limited, for parallel double-layer multi-layer collimator, although the blade thickness direction compared with the single-layer grating conformal ability improved, however, due to the influence of the thickness of the leaf, it cannot move or form a radiation unit at any position.
In contrast, orthogonal double-layer gratings (as shown in
1) Better conformity of the blade in the thickness direction;
2) High irradiating efficiency for complex fields;
3) It can effectively reduce the leakage of the grating, and can better protect the organs at risk.
Dynamically intensity-modulated segmentation realizes the segmentation of intensity map by simultaneously controlling the velocity and dose rate of each pair of blades. In dynamic segmentation, if the blades can be overlapped, the segmentation algorithms of each pair of blades are calculated independently without interference. Compared with static segmentation, dynamic segmentation has obvious advantages of high irradiation efficiency and steep dose curve in target area. However, dynamic segmentation requires more MU to complete, and the control system is more complex.
The dynamic segmentation of orthogonal double-layer gratings theoretically has high illumination efficiency, and has the advantages of orthogonal double-layer gratings and dynamic segmentation, but its disadvantage is that when doing dynamic segmentation, the segmentation algorithm of each pair of blades is no longer independent. The blade motions in the two directions are coupled with each other and affect the segmentation intensity map at the same time, which greatly increases the difficulty of the algorithm Its implementation has not yet been reported in the papers or published by major radiotherapy companies, in other words, this area of research has not been studied.
Therefore, a dynamic sliding-window subfield segmentation method suitable for orthogonal double-layer grating device needs to be proposed, which can fill the gap in this field and provide reference for the subsequent research.
The Invention Contents
In order to solve the above technical problems, the present invention presents a dynamic intensity-modulated segmentation method (sliding-window) for the orthogonal double-layer grating device.
In order to achieve the above purpose, the technical scheme of the invention is as follows: The dynamic intensity-modulated segmentation method for the orthogonal double-layer grating device includes the following steps:
S1: construct a virtual single-layer grating, the velocity of the virtual single-layer grating is composed of the velocity of the orthogonal double-layer grating, and set the blade thickness and blade logarithm of the virtual single-layer grating;
S2: obtain the optimization intensity map, and then rotate the optimization intensity map according to the installation angle of the virtual single-layer grating obtained in Step S S3: the dynamic intensity modulation calculation is carried out for the rotated optimization intensity map obtained in Step S2, and the calculation results include the time point of the inflection point of velocity and the shapes of each segment, the preliminary calculated intensity map can be obtained by stacking each segment shape, and the comparison with the optimization intensity map can be used to check whether the segment formed by the virtual single-layer grating meets the expectation.
S4: the real segment is obtained by inverse rotation of the segment formed by the virtual single-layer grating;
S5: the orthogonal double-layer grating is used to conformal the anti-rotated segments obtained in step S4;
S6: check whether the blades of the orthogonal double-layer grating are overspeed, if overspeed, limit the overspeed blades and allow the blades to retreat.
On the basis of the above technical solution, the following improvements may also be made:
As a preferred solution, in step S1, the velocity of the virtual single-layer grating device is the velocity synthesis of the orthogonal grating A and grating B, and the magnitude and direction of the velocity are v, θ;
Wherein, v1 is the maximum velocity of the horizontal blade, and v2 is the maximum velocity of the vertical blade, the blade thickness of the virtual single-layer grating is set as a smaller value, and the blade logarithm is set as a larger value, the other attributes are consistent with grating A or grating B.
As a preferred solution, step S2 also includes the following content, when the optimization intensity map is rotated according to the installation angle of the virtual single-layer grating obtained in step S1, the sampling interval of the optimization intensity map in the direction of the blade thickness is directly divided according to the blade thickness, and the sampling interval in the direction of the blade movement is divided according to the interval of customized, with a value of 0.25.
As a preferred solution, step S3 specifically includes the following steps:
S3.1: calculate the minimum increment of flux;
in order to ensure that the blade will not be closed during movement, the minimum distance (Gap) between blade pairs is known, so the minimum increment of unit length needs to be calculated, as shown in Equation (3), when the blade runs unit length at the maximum physical speed, the flux per unit length is the minimum, and the product of min slope and Gap is the minimum intensity value that the blade can reach;
S3.2: calculate the relationship between flux and distance, according to the optimization intensity map after rotation of step S2 and the minimum increment of flux to determine the corresponding curve of intensity flux and position during the movement of left and right blades;
S3.3 set the inflection point of velocity, the inflection point of velocity is calculated according to the relationship curve between flux and distance;
S3.4: determine the position of the left and right blades in segments, taking the inflection point of velocity as the segmentation point, calculate the positions of the left and right blades at each segmentation point;
S3.5: check the blade acceleration, if the maximum acceleration of the blade exceeds the limit, reduce the maximum velocity of the grating and repeat steps S3.1-S3.4;
S3.6: contrast the intensity map, calculate the intensity map under the current segmentation and compare it with the optimization intensity map, when the error is greater than the threshold, adjust the intensity map under the current segmentation and repeat steps S3.1-S3.5.
As a preferred solution, it also includes the optimization of the dynamic intensity-modulated field segmentation method for the orthogonal double-layer grating, specifically the segment weight optimization method:
the segment weight optimization method is to optimize the time point of each segment under the condition of a fixed blade trajectory, and the optimization objective is the two norms of the difference between the segmentation intensity map and the optimization intensity map, as shown in Equation (4);
J
obj
=∥J
opt
−J
cal∥2 (4)
the segmentation intensity map can be regarded as the linear superposition of each segment, as shown in Equation (5);
wherein, Iseg is the intensity map formed by a single segment, ui is the weight of the segment, and the objective function is Jobj.
As a preferred solution, it also includes the optimization of the dynamic intensity-modulated segmentation method for the orthogonal double-layer grating, specifically the blade motion trajectory optimization method;
the blade motion trajectory optimization method of the blade motion trajectory is to optimize the objective function under certain conditions by taking the motion trajectory of each blade as a variable under the condition that the weight of the segment is fixed.
As a preferred solution, the blade motion trajectory optimization method specifically includes the following steps:
S7: calculate the intensity map formed by the superposition of the current blade position; the motion trajectory of each pair of blades of horizontal grating is denoted as:
X={x
ly
(t),xry
the motion trajectory of each pair of blades of the vertical grating is denoted as:
Y={y
dx
(t),yux
wherein, xly
blade movement is subject to the following constraints: jaw constraint, blade physical constraint and velocity constraint, the constraint conditions are shown in Equation (8):
then, the calculated intensity map obtained from the above blade trajectory is:
wherein, i and j are the blade serial numbers of horizontal grating and vertical grating corresponding to the point (x,y);
the segmentation intensity map can be regarded as the linear superposition of each segment, as shown in Equation (5);
wherein, Iseg is the intensity map formed by a single segment, ui is the segment weight; the objective function is Jobj, and the optimization objective function is the two forms of the difference between the segmented intensity map and the optimization intensity map, as shown in Equation (4);
J
obj
=∥J
opt
−J
cal∥2 (12)
S8: begin the outer loop to find the rows and columns that differ most from the segmentation intensity map and the optimization intensity map, the evaluation criterion of difference value is two norms;
S9: find the blade sequence number corresponding to the row and column with the greatest difference, there is a fixed correspondence relationship between grating and intensity map, the blade sequence number can be calculated according to the intensity map number;
S10: start the internal cycle, select a moment at random, calculate the activity range of the four blades on the upper, lower, left and right sides according to the constraint conditions, and the calculation method is shown in Equation (8);
S11: the position of the upper, lower, left and right blades is changed in a cycle, according to step S10, the four blades are given a range of activity, the maximum and minimum values of the range of the four blades are taken in a cycle to perturb the positions of the four blades respectively;
S12: if the objective function has a decline or the internal cycle exceeds the limit, step S13 will be entered; otherwise, step S10-S11 will be repeated;
S13: if the objective function is less than the threshold value or the external cycle exceeds the limit, the optimization will be stopped, otherwise, steps S8-S12 will be repeated.
The preferred mode of implementation of the invention is described in detail in combination with the attached figures below.
To achieve the purpose of the present invention, a dynamic intensity-modulated segmentation method for an orthogonal double-layer grating is proposed. The method is based on an orthogonal double-layer grating for radiotherapy equipment, which is installed under the accelerator head, and comprises:
The plane of the upper grating blade and the lower grating blade is parallel to each other and perpendicular to the direction of the ray emitted by the accelerator head. The motion direction of the upper grating blade and the lower grating blade is orthogonal.
The upper grating blade includes a left blade and a right blade, which is used to search and move to the left and right sides of the target area.
The lower grating blade includes an upper blade and a lower blade, which is used to search and move to the upper and lower sides of the target area.
The controller is used to drive each sub-blade in the left blade and the right blade, upper blade and lower blade to move separately in order to achieve the purpose of conformal with the target area.
Compared with the traditional single-layer grating and the double-layer parallel grating, the orthogonal double-layer grating has higher conformity, and the positioning accuracy are less than 1 mm for both directions.
The invention is described in detail below, in some of the examples of a dynamically intensity-modulated segmentation method for an orthogonal double-layer grating blade, the following steps are included, as shown in
S1: Construct a virtual single-layer grating, the velocity of the virtual single-layer grating is composed of the velocity of the orthogonal double-layer grating blade, and set the blade thickness and blade logarithm of the virtual single-layer grating.
S2: Obtain the optimization intensity map, and then rotate the optimization intensity map according to the installation angle of the virtual single-layer grating obtained in Step S1.
S3: The dynamic intensity modulation calculation is carried out for the rotated optimization intensity map obtained in Step S2, and the calculation results include the time point of the inflection point of velocity and the shapes of each segment. The preliminary calculated intensity map can be obtained by stacking each segment shape, and the comparison with the optimization intensity map can be used to check whether the segment formed by the virtual single-layer grating meets the expectation.
S4: The real segment is obtained by inverse rotation of the segment formed by the virtual single-layer grating.
S5: Orthogonal double-layer grating blade is used to conformal the anti-rotated segments obtained in step S4.
S6: Check whether the blades of the orthogonal double-layer grating are overspeed. If overspeed, limit the overspeed blades and allow the blades to retreat.
Wherein, step S3 is the segmentation step of the dynamic intensity-modulated of the virtual single-layer grating. After the segmentation is completed, step S4 obtains the segment shapes at each inflection point of velocity, and step S4 rotates the segment shapes inversely θ. In step S5, the orthogonal double-layer grating is conformal to the segment after inverse rotation obtained in step S4. Here, the segment formed by the virtual single-layer grating is realized by the orthogonal double-layer grating, and the motion curve of the orthogonal double-layer grating at each velocity inflection point is obtained.
In order to further optimize the implementation effect of the present invention, in some other embodiments, the remaining characteristic techniques are the same. The difference is that, in step S1, the velocity of the virtual single-layer grating is the velocity synthesis of the orthogonal grating A (MLC1) and grating B (MLC2), the magnitude and direction of the velocity are v, θ;
Wherein, v1 is the maximum velocity of the horizontal blade, and v2 is the maximum velocity of the vertical blade. The blade thickness of the virtual single-layer grating is set as a small value (0.25 or other here), and the blade logarithm is set as a large value (256 or other here). The remaining attributes are consistent with grating A or grating B.
Further, the following contents are included in Step S2. After the optimization intensity map is rotated in accordance with the installation angle θ of the virtual single-layer grating obtained in Step S1, the sampling interval of the optimization intensity map in the direction of blade thickness is directly divided according to the blade thickness, while in the direction of blade movement, the sampling interval is divided according to the custom interval, with a value of 0.25. Further, step S3 specifically includes the following steps;
S3.1: Calculate the minimum increment of flux.
In order to ensure that the blade will not be closed during movement, the minimum distance (Gap) between blade pairs is known, so the minimum increment of unit length needs to be calculated. As shown in Equation (3), when the blade runs unit length at the maximum physical speed, the flux per unit length is the minimum, and the product of min slope and Gap is the minimum intensity value that the blade can reach.
S3.2: Calculate the relationship between flux and distance, according to the optimization intensity map after rotation of step S2 and the minimum increment of flux to determine the corresponding curve of intensity flux and position during the movement of left and right blades.
S3.3 Set the inflection point of velocity, the inflection point of velocity is calculated according to the relationship curve between flux and distance.
S3.4: Determine the position of the left and right blades in segments, taking the inflection point of velocity as the segmentation point, calculate the positions of the left and right blades at each segmentation point.
S3.5: Check the blade acceleration, if the maximum acceleration of the blade exceeds the limit, reduce the maximum velocity of the grating and repeat steps S3.1-S3.4.
S3.6: Contrast the intensity map, calculate the intensity map under the current segmentation and compare it with the optimization intensity map. When the error is greater than the threshold, adjust the intensity map under the current segmentation and repeat steps S3.1-S3.5.
In order to further optimize the implementation effect of the present invention, the remaining feature techniques are the same in other implementation methods, but the difference is that it also includes the optimization of the orthogonal double-layer grating dynamic intensity-modulated segmentation method, which is the segment weight optimization method.
Segment weight optimization method is to optimize the time point of each segment under the condition of a fixed blade trajectory, and the optimization objective is the two norms of the difference between the segmentation intensity map and the optimization intensity map, as shown in Equation (4).
J
obj
=∥J
opt
−J
cal∥2 (4)
The segmentation intensity map can be regarded as the linear superposition of each segment, as shown in Equation (5).
Wherein, Iseg is the intensity map formed by a single segment, ui is the weight of the segment, and the objective function is Jobj.
Therefore, the segment weight optimization method is a quadratic programming problem with constraints, which can be solved according to the general solution idea.
In order to further optimize the implementation effect of the present invention, in some other implementation methods, the remaining feature technologies are the same, the difference is that it also includes the optimization of the orthogonal double-layer grating blade dynamic intensity-modulated segmentation method, which is the blade motion trajectory optimization method;
The blade motion trajectory optimization method takes the trajectory of each blade as a variable and optimizes the objective function under certain conditions under the condition that the weight of segment is fixed.
The blade motion is discretized, and the MU step (time point of inflection point of velocity) calculated by the virtual single-layer grating is the time interval. After discretization of the leaf, the trajectory of the blade can be represented by a series of points. According to the preliminary statistics, the number of trajectory points of all blades is about 20,000, that is to say, the optimization variables are about 20,000. The ordinary optimization methods, such as nonlinear optimization, genetic algorithm and particle swarm optimization algorithm, their effects are not significant. Therefore, an optimization algorithm is provided here. The whole optimization process is divided into outer loop and internal loop. The outer loop looks for the row and column with the greatest difference between the segmentation intensity map and the optimization intensity map, and calculates the corresponding blade sequence number. The purpose of this step is to lock the blade sequence number to be optimized and reduce the number of variables to be optimized. If the number of iterations of the outer loop exceeds the limit or the objective function meets the requirements, the whole loop will be quit. The internal loop randomly selects the moment of the blade, calculates the range of motion of the blade according to the constraint conditions, changes between the maximum and minimum value of the range of motion of the blade, and observes whether the objective function becomes smaller. If the objective function drops or the number of iterations of the internal loop is excessive, break out of the internal loop.
Further, the blade motion trajectory optimization method includes the following steps, as shown in
S7: calculate the intensity map formed by the superposition of the current blade position; the motion trajectory of each pair of blades of horizontal grating is denoted as:
X={x
ly
(t),xry
the motion trajectory of each pair of blades of the vertical grating is denoted as:
Y={y
dx
(t),yux
wherein, xly
blade movement is subject to the following constraints: jaw constraint, blade physical constraint and velocity constraint, the constraint conditions are shown in Equation (8):
then, the calculated intensity map obtained from the above blade trajectory is:
wherein, i and j are the blade serial numbers of horizontal grating and vertical grating corresponding to the point (x, y);
the segmentation intensity map can be regarded as the linear superposition of each segment, as shown in Equation (5);
wherein, Iseg is the intensity map formed by a single segment, is the segment weight; the objective function is Jobj, and the optimization objective function is the two forms of the difference between the segmented intensity map and the optimization intensity map, as shown in Equation (4);
J
obj
=∥J
opt
−J
cal∥2 (12)
S8: begin the outer loop to find the rows and columns that differ most from the segmentation intensity map and the optimization intensity map, the evaluation criterion of difference value is two norms;
S9: find the blade sequence number corresponding to the row and column with the greatest difference, there is a fixed correspondence relationship between grating and intensity map, the blade sequence number can be calculated according to the intensity map number;
S10: start the internal cycle, select a moment at random, calculate the activity range of the four blades on the upper, lower, left and right sides according to the constraint conditions, and the calculation method is shown in Equation (8);
S11: the position of the upper, lower, left and right blades is changed in a cycle, according to step S10, the four blades are given a range of activity, the maximum and minimum values of the range of the four blades are taken in a cycle to perturb the positions of the four blades respectively;
S12: if the objective function has a decline or the internal cycle exceeds the limit, step S13 will be entered; otherwise, step S10-S11 will be repeated;
S13: if the objective function is less than the threshold value or the external cycle exceeds the limit, the optimization will be stopped, otherwise, steps S8-S12 will be repeated.
In summary, the present invention provides a dynamic intensity-modulated segmentation method for an orthogonal double-layer grating, and two methods for optimizing this segmentation are provided: blade motion trajectory optimization method and segment weight optimization method. Segment weight optimization method is to optimize the time points of each segment under the condition of fixed blade trajectory. Blade trajectory optimization method is to optimize the objective function under certain constraints by taking the trajectory of each blade as the variable under the condition of fixed blade trajectory weight.
In the existing segmentation technology, whether it is single-layer grating or parallel double-layer grating, will face two problems: the conformity in the blade thickness direction is not enough. A complex field needs many segments to form, so the irradiation efficiency is low. Orthogonal double-layer grating has advantages in both conformity and irradiation efficiency. In addition, double-layer grating can effectively reduce leakage and protect organs at risk (OARs) better. Compared with static segmentation, dynamic segmentation has obvious advantages of high irradiation efficiency and steep dose curve in target area.
The invention starts by constructing a virtual single-layer grating blade, The grating blade installation direction is the velocity synthesis direction of the orthogonal double-layer grating blade. In order to facilitate the sliding-window segmentation of the virtual single-layer, the grating blade installation angle was rotated on the optimized intensity diagram obtained. The rotated map is still a rectangle, while the dimension expands, and the whole intensity map range becomes larger. The invention defines the sampling interval of the map after rotation by itself, which is not completely consistent with the sampling interval of the optimization intensity map. The optimization intensity map before and after rotation is shown in
Then the dynamic intensity-modulation calculation is carried out for the optimal intensity map after rotation. The calculation results include the time point of the velocity inflection point and shape of each segment. By stacking the shape of each segment, a preliminary computed intensity map can be obtained. Comparing with the optimization intensity map, it can be used to check whether the segment formed by the virtual grating meets the expectation. It can be seen from
After the segment formed by the virtual single-layer grating is counter-rotated, the real segment is obtained. The existing orthogonal double-layer grating is used to conformal the counter-rotated segment, so as to obtain the calculation result of the sliding window of the orthogonal double-layer grating. Examples of conformal segment of orthogonal double-layer grating are shown in
Finally, check the blades for overspeed. The previous step has formed a segment shape at a series of time points, where the blade is checked for overspeed. It is worth noting that the problem of blade overspeed has been checked when the virtual single-layer grating forms the sliding-window segment. However, if the velocity-synthesized virtual single-layer grating does not overspeed, the orthogonal double-layer grating does not necessarily overspeed. As shown in
In order to improve the existing sliding window segmentation of orthogonal double-layer grating, the invention proposes two optimization methods:
a) Blade motion trajectory optimization method, the blade position is taken as the variable, and the initial value is the blade position formed by the velocity synthesis algorithm. Constraint conditions were added, and the two-norm of the difference of the segment superposition strength map was taken as the objective for optimization.
b) Segment weight optimization method, the blade position is fixed at each moment, and the time at each moment is optimized (segment weight).
For the blade motion trajectory optimization method, the blade position should be initialized before the blade position optimization. The pseudocode of the variable arrangement rule here is:
For i=1: all times
Arrange all left blades of the horizontal grating blade in sequence
Arrange all right blades of the horizontal grating blade in sequence
Arrange all the lower blades of the vertical grating blade in sequence
Arrange all the upper blades of the vertical grating blade in sequence
end
In this way, all the time of all the blades can be arranged in a row for easy maintenance; Next, define the constraint function, constraint functions include jaw constraint, physical constraint and velocity constraint, the external data required are: jaw parameters, grating velocity, grating minimum spacing, the constraint function is shown in Equation (8). At the same time, the activity range of a blade at a certain time can be calculated according to this constraint function.
Define objective function. The intensity map needs to be calculated based on the existing blade position and time information. Discrete intensity maps formed by discrete blade positions will be transformed by actual positions. Therefore, external data required here are as follows: blade thickness and intensity map sampling interval, MU (time information). Finally, the blade position was optimized according to the steps shown in
Orthogonal double-layer grating has obvious advantages in target conformal and therapy efficiency, the invention provides a dynamic intensity-modulated segmentation method for an orthogonal double-layer grating. The core of the segmentation algorithm is to construct a virtual single-layer grating after combining the velocities of the two layers of grating, and perform the slide-window segmentation of the single-layer grating. Finally, the conformal segments of the two layers of grating are used. This method provides a feasible scheme for sliding window segmentation of orthogonal double-layer grating.
In order to further reduce the segmentation error, the invention provides two optimization methods: blade motion trajectory optimization method and segment weight optimization method. The blade motion trajectory optimization method takes the trajectory of each blade as a variable and optimizes the objective function under certain constraints when the condition that the weight of segment is fixed. Segment weight optimization method is to optimize the time points of each segment when the blade motion trajectory is fixed. Both of the two optimization methods can reduce the error of the segmentation intensity and improve the optimization effect.
For the preferred method of implementation of the invention, it should be noted that, for ordinary technicians in the field, a number of transformations and improvements may be made without deviating from the creative conception of the invention, which are within the protection of the invention.
Number | Date | Country | Kind |
---|---|---|---|
201811579085.8 | Dec 2018 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2019/120600 | 11/25/2019 | WO | 00 |