A multi-leaf grating dynamic segmentation method and device with controllable number of sub-fields
By using mixed integer linear programming and random perturbation algorithms in multi-leaf grating dynamic segmentation to optimize leaf position and dose distribution, the problems of excessive number of subfields and low efficiency in the existing technology are solved, and a controllable number of subfields is achieved. Dynamic segmentation of multi-leaf gratings improves illumination efficiency and segmentation efficiency.
Patent Information
- Application Number
- CN202210329956.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-03-31
AI Technical Summary
Existing multi-leaf collimators have the problem of too many subfields or low subfield segmentation efficiency when converted to Arc, resulting in low irradiation efficiency and uncontrollable dose.
A multi-leaf grating dynamic segmentation method with a controllable number of sub-fields is adopted. By obtaining the flux intensity distribution map of the radiation field, mixed integer linear programming and random perturbation algorithms are used to optimize the blade position and dose distribution to ensure that the segmentation results comply with the speed constraints and reduce Machine hop count improves segmentation efficiency.
It achieves dynamic segmentation of multi-leaf gratings with a controllable number of subfields, reduces the number of machine hops, improves segmentation efficiency and illumination efficiency, and ensures the implementability and optimized output of segmentation results.
Smart Images

Figure CN114768115B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of radiotherapy, and in particular relates to a multi-leaf grating dynamic segmentation method and equipment with controllable sub-field number. Background Art
[0002] When performing radiotherapy on tumors, in order to protect healthy tissues from damage, a multi-leaf collimator (MLC) is generally used to adjust the irradiation range and intensity of the beam, thereby achieving radiotherapy with adjustable beam intensity, namely intensity modulated radiotherapy (IMRT).
[0003] MLC was first used in classical conformal radiotherapy to replace the blocks in conventional radiotherapy to form the desired irradiation field shape. MLC consists of two sets of closely arranged blades. Each blade is made of tungsten alloy, in the shape of a long strip, and driven by a small motor. Compared with field blocks, MLC conformal has significant advantages: it shortens the treatment time and the time interval between simulation positioning and treatment, greatly improving the efficiency of radiotherapy; it has a stronger ability to attenuate radiation than blocks; it is easy and safe to operate, without moving bulky blocks; it is reusable; it does not produce harmful gases or dust; it can flexibly respond to changes in the target area and correct errors.
[0004] There are two types of static sub-field segmentation technologies (Step & Shoot, SS) for MLC blades. One is the maximum value segmentation. The continuity between the sub-fields obtained by this method is relatively poor. The blade movement after turning the Arc cannot meet the speed requirement because the radiation dose loss after turning the Arc is large due to excessive overspeed. The other is the blade sliding window scanning dynamic segmentation method (sliding window, SW). Although the continuity has been improved, the speed constraint cannot be considered and the Arc cannot be turned. In addition, the number of sub-fields obtained is relatively large. In the case of turning the Arc, the rotation angle allocated to each sub-field is too small, which is inefficient and wasteful. Arc refers to an arc field.
[0005] In summary, the existing Step&Shoot segmentation method performs segmentation in a static state without speed constraints, so the segmentation method may overspeed when rotating the Arc, and the irradiation position dose may be uncontrollable; while the Sliding segmentation method may have too many sub-fields, and the irradiation angle allocated to each sub-field after rotating the Arc is small, resulting in low irradiation efficiency. Summary of the invention
[0006] In order to solve the above technical problems, the present invention proposes a multi-leaf grating dynamic segmentation method and device with controllable number of sub-fields.
[0007] In order to achieve the above object, the technical solution of the present invention is as follows:
[0008] In one aspect, the present invention discloses a multi-leaf grating dynamic segmentation method with controllable number of sub-fields, comprising the following steps:
[0009] S1: Obtain the flux intensity distribution diagram of each field and determine the number of sub-fields and MU size of each field;
[0010] S2: Input all constraints of the blade;
[0011] S3: Solve for blade positions using mixed integer linear programming;
[0012] S4: The obtained blade position is saved and converted into a VMAT plan;
[0013] S5: Randomly perturb the leaf position of each sub-field in turn, calculate the result each time and keep the good perturbation;
[0014] S6: Save the final leaf position and calculate the dose result.
[0015] Based on the above technical solution, the following improvements can be made:
[0016] As a preferred solution, the following contents are also included between S1 and S2: the opening and closing conditions of the blades in each row of each sub-field are combined into a matrix, the number of rows in the matrix is the total number of sub-fields k, and the number of columns is the number of columns n of the flux intensity distribution diagram.
[0017] As a preferred solution, in S2, the constraints of the blades include:
[0018] L i,j +R i,j +H i,j =1;
[0019] L i,j ≤L i,(j-1) ;
[0020] R i,j ≤R i,(j-1) ;
[0021]
[0022]
[0023] Sum(H i,j *MU)≤I i,j ;
[0024] Optimization objective function: min∑ i ∑ j -(H i,j*MU);
[0025] Where: L i,j and R i,j Respectively represent the opening and closing of the left and right leaves at point (i, j), L i,j ,R i,j ∈{0.1}, 1 means occlusion, 0 means exposure;
[0026] H ij It represents the final opening and closing situation at the point (i, j) after the left and right leaves block it. i,j ∈{0.1};
[0027] maxStep represents the maximum movement distance of the leaf within the illumination time of the sub-field;
[0028] I i,j Represents the intensity value at point (i, j).
[0029] As a preferred solution, in S2, a field is selected to divide a radiation field into two fields, and the two fields are not restricted by the speed constraint of the blades.
[0030] As a preferred solution, S5 specifically includes the following steps:
[0031] S5.1: Treat each pair of open leaves in turn;
[0032] S5.2: Perform random perturbations on the left and right blades in turn;
[0033] S5.3: Perform MC dose calculation on the disturbed result to obtain dose distribution, and then calculate the objective function value;
[0034] S5.4: Determine whether the objective function value decreases;
[0035] If it decreases, the position information of the blades is retained and the next row of blades is disturbed;
[0036] If it does not decrease, start disturbing the next pair of blades;
[0037] S5.5: Repeat S5.1-5.4 until the open leaves of all sub-fields are disturbed and the final leaf position is saved.
[0038] On the other hand, the present invention also discloses a multi-leaf grating dynamic segmentation device with controllable number of sub-fields, comprising:
[0039] An acquisition module is used to obtain the flux intensity distribution diagram of each field and determine the number of sub-fields and the size of MU of each field;
[0040] Constraint condition input module, the constraint condition input module is used to input all constraint conditions of the blade;
[0041] A solution module, the solution module is used to solve the blade position using mixed integer linear programming;
[0042] VMAT conversion module, the VMAT conversion module is used to save the blade position obtained by the solution module and convert it into a VMAT plan;
[0043] The optimization processing module is used to randomly perturb the position of each sub-field leaf in turn, calculate each result and retain the good perturbation;
[0044] The saving module is used to save the final leaf position obtained by the optimization processing module and calculate the dose result.
[0045] Based on the above technical solution, the following improvements can be made:
[0046] As a preferred solution, it also includes: a matrix generation module, which is used to form a matrix of the opening and closing conditions of the leaves in each row of each sub-field. The number of rows in the matrix is the total number of sub-fields k, and the number of columns is the number of columns n of the flux intensity distribution diagram.
[0047] As a preferred solution, in the constraint condition input module, the constraint conditions of the blade include:
[0048] L i,j +R i,j +H i,j =1;
[0049] L i,j ≤L i,(j-1) ;
[0050] R i,j ≤R i,(j-1) ;
[0051]
[0052]
[0053] Sum(H i,j *MU)≤I i,j ;
[0054] Optimization objective function: min∑ i ∑ j -(H i,j *MU);
[0055] Where: L i,j and R i,j Respectively represent the opening and closing of the left and right leaves at point (i, j), L i,j, R i,j ∈{0.1}, 1 means occlusion, 0 means exposure;
[0056] H ij It represents the final opening and closing situation at the point (i, j) after the left and right leaves block it. i,j ∈{0.1};
[0057] maxStep represents the maximum movement distance of the leaf within the illumination time of the sub-field;
[0058] I i,j Represents the intensity value at point (i, j).
[0059] As a preferred solution, in the constraint condition input module, a field is selected to divide a radiation field into two fields, and the two fields are not restricted by the blade speed constraint.
[0060] As a preferred solution, the optimization processing module disturbs the blades through the following steps:
[0061] A: Treat each pair of open leaves in turn;
[0062] B: Randomly perturb the left and right leaves forward and backward in sequence;
[0063] C: Perform MC dose calculation on the disturbed result to obtain the dose distribution, and then calculate the objective function value;
[0064] D: Determine whether the objective function value decreases;
[0065] If it decreases, the position information of the blades is retained and the next row of blades is disturbed;
[0066] If it does not decrease, start disturbing the next pair of blades;
[0067] E: Repeat AD until the open leaves of all sub-fields are disturbed and the final leaf position is saved.
[0068] The invention discloses a multi-leaf grating dynamic segmentation method and device with controllable number of sub-fields, which has the following beneficial effects:
[0069] First, the present invention realizes dynamic segmentation of a multi-leaf grating with controllable number of sub-fields, reduces the number of MUs, adds speed constraints to ensure the feasibility of dynamic segmentation, and ensures that the segmentation result is the optimal output result that meets the speed constraints.
[0070] Second, the number of sub-fields is set artificially so that the number of MUs in the field can also be controlled, thereby reducing the number of machine jumps MU.
[0071] Third, the division is selected artificially, with the front half of the sub-field as one division and the back half of the sub-field as another division. The speed constraint is disconnected in the middle to improve the feasibility of the division, improve the efficiency of the division, and obtain the optimal result before converting to Arc. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0073] Figure 1 The present invention provides a flowchart of a multi-leaf grating dynamic segmentation method according to an embodiment of the present invention.
[0074] Figure 2 This is a radiation field flux intensity diagram of the nasopharyngeal carcinoma target area provided by an embodiment of the present invention.
[0075] Figure 3 A leaf position diagram of a sub-field under dynamic segmentation of a multi-leaf grating under a radiation field provided by an embodiment of the present invention.
[0076] Figure 4 A position diagram of leaves of all sub-fields under dynamic segmentation of a multi-leaf grating under a field provided by an embodiment of the present invention.
[0077] Figure 5 The embodiment of the present invention provides a difference map between a flux intensity map and an optimized intensity map after dynamic segmentation of leaves in the nasopharyngeal carcinoma target area.
[0078] Figure 6 This is a flow chart of S5 provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0079] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0080] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0081] Using ordinal numbers “first,” “second,” “third,” etc. to describe common objects merely indicates that different instances of similar objects are involved and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0082] In addition, the expression of “comprising” an element is an “open” expression, which simply means that a corresponding component exists, and should not be interpreted as excluding additional components.
[0083] In order to achieve the purpose of the present invention, a method and device for dynamic segmentation of a multi-leaf grating with controllable number of sub-fields is provided, in some embodiments, Figure 1 As shown, the multi-leaf grating dynamic segmentation method includes the following steps:
[0084] S1: Obtain the flux intensity distribution diagram of each field and determine the number of sub-fields and MU size of each field;
[0085] S2: Input all constraints of the blade;
[0086] S3: Solve for blade positions using mixed integer linear programming;
[0087] S4: The obtained blade position is saved and converted into a VMAT plan;
[0088] S5: Randomly perturb the leaf position of each sub-field in turn, calculate the result each time and keep the good perturbation;
[0089] S6: Save the final leaf position and calculate the dose result.
[0090] MU is the number of machine hops (MonitorUnits, MU).
[0091] VMAT stands for Volumetric Modulated Arc Therapy (VMAT).
[0092] In some embodiments, in S1, the flux intensity distribution diagram of each field after optimization can be obtained through the optimization step of the radiotherapy system TPS. The intensity value of the flux in the isocenter plane can be represented as a curved surface. The isocenter plane can be divided into m×n grids. The intensity value of any point on the field plane is I(x, y). Figure 2 This is the radiation field flux intensity diagram of the nasopharyngeal carcinoma target area, as shown in Figure 2 As shown, the size in the height direction represents the intensity value.
[0093] The number of sub-fields in each field can be manually set to k.
[0094] Further, based on the above embodiment, the following contents are also included between S1 and S2: the opening and closing conditions of the blades in each row of each sub-field are organized into a matrix, the number of rows of the matrix is the total number of sub-fields k, and the number of columns is the number of columns n of the flux intensity distribution diagram.
[0095] The above embodiment has the following beneficial effects: when using the optimization engine for solving, some constraints on the blades need to be written in. In order to facilitate the input of constraint parameters for solving, the opening and closing conditions of the blades in a row of each sub-field are extracted to form a new matrix. The number of rows in the new matrix is the total number of sub-fields k, and the number of columns is the number of columns in the intensity map n; the formed new matrix represents the positions of the blades in the same row in each sub-field in turn.
[0096] Further, based on the above embodiment, in S2, the constraint conditions of the blade include:
[0097] L i,j +R i,j +H i,j =1; (1)
[0098] L i,j ≤L i,(j-1) ; (2)
[0099] R i,j ≤R i,(j-1) ; (3)
[0100]
[0101]
[0102] Sum(H i,j *MU)≤I i,j ; (6)
[0103] Optimization objective function: min∑ i ∑ j -(H i,j *MU);
[0104] Where: L i,j and R i,j Respectively represent the opening and closing of the left and right leaves at point (i, j), L i,j , R i,j ∈{0.1}, 1 means occlusion, 0 means exposure;
[0105] H ij It represents the final opening and closing situation at the point (i, j) after the left and right leaves block it. i,j ∈{0.1};
[0106] maxStep represents the maximum movement distance of the leaf within the illumination time of the sub-field;
[0107] I i,j Represents the intensity value at point (i, j).
[0108] It is worth noting that in S2, the field is selected to divide one field into two fields, and the two fields are not restricted by the blade speed constraint.
[0109] The above embodiment has the following beneficial effects: for the new matrix constructed as above, it is first constrained by the inherent equation of the blade in formula (1) and the inherent inequalities of the blade in formulas (2) and (3), then constrained by the speed of the blade in formulas (4) and (5), and finally constrained by formula (6).
[0110] The present invention adds speed constraints when segmenting the multi-leaf raster, so that the planning effect will not be affected by the blade overspeed after the Arc is turned, and ensures that the current segmentation is the optimal solution in mathematical calculation under the constraint conditions.
[0111] The constraint of formula (1) indicates that the occlusion relationship at point (i, j) is the state of a point when any value of L, R, or H is 1.
[0112] The inequality constraints in equations (2) and (3) indicate the continuity of the left and right leaves. The continuity of the left and right leaves cannot be broken.
[0113] The speed constraints in equations (4) and (5) indicate that there is a maximum limit on the movement of the blades in the same row between two adjacent sub-fields.
[0114] In terms of speed constraints, the field is artificially selected by disconnecting at the middle position, that is, the speed constraint is not added between the first half of the sub-field and the second half of the sub-field for solving.
[0115] The constraint of formula (6) indicates that the irradiation dose at a certain point is summed at all sub-field openings, that is, the dose received by point (i, j) cannot exceed the intensity value of the point after optimization.
[0116] The MU value can be obtained by taking a maximum value in the optimized flux and dividing it by the number of sub-fields. After substituting it into the MU solution to obtain the optimized sub-field leaf position, the MU value of each field is optimized and solved through the leaf position.
[0117] After all constraints are listed, the solution that satisfies all constraints and makes the dose closest to the optimized intensity value is solved, which is the objective function of the entire optimization process. The final result is solved using mixed integer linear programming, as described in S3.
[0118] In a specific embodiment, 10 sub-fields are taken as an example to obtain the optimal result of dynamic segmentation of a multi-leaf grating under the speed constraint. Figure 3 This is a leaf position diagram of a sub-field under dynamic segmentation of a multi-leaf grating under a radiation field. Figure 4 This is a map of the leaf positions of all sub-fields under dynamic segmentation of a multi-leaf grating in one radiation field. Figure 5The difference map between the flux intensity map and the optimized intensity map is obtained after dynamic segmentation of the leaves in the nasopharyngeal carcinoma target area.
[0119] Further, based on the above embodiment, in S4: after the obtained blade position is saved and converted into a VMAT plan, a greedy algorithm is added to perturb the blade position to solve a more optimal blade position, such as Figure 6 As shown, S5 specifically includes the following steps:
[0120] S5.1: Treat each pair of open leaves in turn;
[0121] S5.2: Perform random perturbations on the left and right blades in turn, with the size of the random perturbation being one unit of moving distance;
[0122] S5.3: Perform MC dose calculation on the disturbed result to obtain dose distribution, and then calculate the objective function value;
[0123] S5.4: Determine whether the objective function value decreases;
[0124] If it decreases, the position information of the blades is retained and the next row of blades is disturbed;
[0125] If it does not decrease, start disturbing the next pair of blades;
[0126] S5.5: Repeat S5.1-5.4 until the open leaves of all sub-fields are disturbed and the final leaf position is saved.
[0127] MC is the Monte Carlo method (MC).
[0128] In addition, the embodiment of the present invention further discloses a multi-leaf grating dynamic segmentation device with controllable number of sub-fields, including:
[0129] An acquisition module is used to obtain the flux intensity distribution diagram of each field and determine the number of sub-fields and the size of MU of each field;
[0130] Constraint condition input module, the constraint condition input module is used to input all constraint conditions of the blade;
[0131] A solution module, the solution module is used to solve the blade position using mixed integer linear programming;
[0132] VMAT conversion module, the VMAT conversion module is used to save the blade position obtained by the solution module and convert it into a VMAT plan;
[0133] The optimization processing module is used to randomly perturb the position of each sub-field leaf in turn, calculate each result and retain the good perturbation;
[0134] The saving module is used to save the final leaf position obtained by the optimization processing module and calculate the dose result.
[0135] Furthermore, based on the above embodiment, it also includes: a matrix generation module, which is used to form a matrix of the opening and closing conditions of the leaves in each row of each sub-field, the number of rows of the matrix is the total number of sub-fields k, and the number of columns is the number of columns n of the flux intensity distribution diagram.
[0136] Further, based on the above embodiment, in the constraint condition input module, the constraint conditions of the blade include:
[0137] L i,j +R i,j +H i,j =1; (1)
[0138] L i,j ≤L i,(j-1) ; (2)
[0139] R i,j ≤R i,(j-1) ; (3)
[0140]
[0141]
[0142] Sum(H i,j *MU)≤I i,j ; (6)
[0143] Optimization objective function: min∑ i ∑ j -(H i,j *MU);
[0144] Where: L i,j and R i,j Respectively represent the opening and closing of the left and right leaves at point (i, j), L i,j , R i,j ∈{0.1}, 1 means occlusion, 0 means exposure;
[0145] H ij It represents the final opening and closing situation at the point (i, j) after the left and right leaves block it. i,j ∈{0.1};
[0146] maxStep represents the maximum movement distance of the leaf within the illumination time of the sub-field;
[0147] I i,j Represents the intensity value at point (i, j).
[0148] The expressions of formulas (1)-(6) are similar to those described above and will not be repeated here.
[0149] Further, based on the above embodiment, in the constraint condition input module, a field is selected to divide a radiation field into two fields, and the two fields are not restricted by the blade speed constraint.
[0150] Further, based on the above embodiment, the optimization processing module disturbs the blades through the following steps:
[0151] A: Treat each pair of open leaves in turn;
[0152] B: The left and right leaves are randomly perturbed forward and backward in sequence, and the size of the random perturbation is one unit of moving distance;
[0153] C: Perform MC dose calculation on the disturbed result to obtain the dose distribution, and then calculate the objective function value;
[0154] D: Determine whether the objective function value decreases;
[0155] If it decreases, the position information of the blades is retained and the next row of blades is disturbed;
[0156] If it does not decrease, start disturbing the next pair of blades;
[0157] E: Repeat AD until the open leaves of all sub-fields are disturbed and the final leaf position is saved.
[0158] The present invention adopts a method of solving a mathematical model of mixed integer linear programming, divides a field into a user-defined number of sub-fields, and represents the point opening and closing states under the left and right blades in the form of variables (0, 1). Because the speed constraint is the movement relationship of the same blades of the front and rear sub-fields, when establishing the optimization model, the position information of the multi-leaf grating blades in a certain row is taken as a research object, and the left and right blades of the row of all sub-fields are taken out as an overall variable, and the speed constraint of the blades and the continuity constraint of the blades themselves are added, and the result of the closest optimization intensity map is achieved under the constraint of not exceeding the optimization intensity value.
[0159] In summary, the multi-leaf grating dynamic segmentation method and device with controllable number of sub-fields of the present invention has the following beneficial effects:
[0160] First, the present invention realizes dynamic segmentation of a multi-leaf grating with controllable number of sub-fields, reduces the number of MUs, adds speed constraints to ensure the feasibility of dynamic segmentation, and ensures that the segmentation result is the optimal output result that meets the speed constraints.
[0161] Second, the number of sub-fields is set artificially so that the number of MUs in the field can also be controlled, thereby reducing the number of machine jumps MU and preventing MU from being too large.
[0162] Third, the division is selected artificially, with the front half of the sub-field as one division and the back half of the sub-field as another division. The speed constraint is disconnected in the middle to improve the feasibility of the division, improve the efficiency of the division, and obtain the optimal result before converting to Arc.
[0163] It should be understood that the various techniques described herein can be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or portions of the method and apparatus of the present invention, can take the form of program codes (i.e., instructions) embedded in a tangible medium, such as a floppy disk, a CD-ROM, a hard disk drive, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0164] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable ordinary technicians in the field to understand the content of the present invention and implement it. They cannot be used to limit the protection scope of the present invention. All equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-leaf grating dynamic segmentation method with controllable number of sub-fields. It is characterized in that The following steps are involved: S1: Obtain the flux intensity distribution diagram of each field and determine the number of sub-fields and MU size of each field; S2: Input all constraints of the blade; S3: Solve for blade positions using mixed integer linear programming; S4: The obtained blade position is saved and converted into a VMAT plan; S5: Randomly perturb the leaf position of each sub-field in turn, calculate the result each time and keep the good perturbation; S6: Save the final leaf position and calculate the dose result; In S2, the constraints of the blade include: L i,j +R i,j +H i,j =1; L i,j ≤L i,(j -1); R i,j ≤R i,(j -1); Sum(H i,j *MU)≤I i,j ; Optimization objective function: min∑ i ∑ j -(H i,j *MU); Where: L i,j and R i,j Respectively represent the opening and closing of the left and right leaves at point (i, j), L i,j ,R i,j ∈{0.1}, 1 means occlusion, 0 means exposure; H ij It represents the final opening and closing situation at the point (i, j) after the left and right leaves block it. i,j ∈{0.1}; maxStep represents the maximum movement distance of the leaf within the illumination time of the sub-field; I i,j Represents the intensity value at point (i, j); S5 specifically includes the following steps: S5.1: Treat each pair of open leaves in turn; S5.2: Perform random perturbations on the left and right blades in turn; S5.3: Perform MC dose calculation on the disturbed result to obtain dose distribution, and then calculate the objective function value; S5.4: Determine whether the objective function value decreases; If it decreases, the position information of the blades is retained and the next row of blades is disturbed; If it does not decrease, start disturbing the next pair of blades; S5.5: Repeat S5.1-5.4 until the open leaves of all sub-fields are disturbed and the final leaf position is saved.
2. The multi-leaf grating dynamic segmentation method according to claim 1, It is characterized in that The following contents are also included between S1 and S2: the opening and closing conditions of the leaves in each row of each sub-field are formed into a matrix, the number of rows of the matrix is the total number of sub-fields k, and the number of columns is the number of columns n of the flux intensity distribution diagram.
3. The multi-leaf grating dynamic segmentation method according to claim 1, It is characterized in that, In S2, a field is selected to divide a field into two fields, and the two fields are not restricted by the speed constraint of the blades.
4. A multi-leaf grating dynamic segmentation device with controllable number of sub-fields, It is characterized in that include: An acquisition module, the acquisition module is used to obtain a flux intensity distribution diagram of each field, and determine the number of sub-fields and the size of MU of each field; A constraint condition input module, wherein the constraint condition input module is used to input all constraint conditions of the blade; A solution module, the solution module is used to solve the blade position using mixed integer linear programming; A VMAT conversion module, the VMAT conversion module is used to save the blade position obtained by the solution module and convert it into a VMAT plan; An optimization processing module, which is used to randomly perturb the position of each sub-field leaf in turn, calculate each result and retain the good perturbation; A saving module, the saving module is used to save the final leaf position obtained by the optimization processing module and calculate the dose result; In the constraint input module, the constraint of the blade include: L i,j +R i,j +H i,j =1; L i,j ≤L i,(j-1) ; R i,j ≤R i,(j-1) ; Sum(H i,j *MU)≤I i,j ; Optimization objective function: min∑ i ∑ j -(H i,j *MU); Where: L i,j and R i,j Respectively represent the opening and closing of the left and right leaves at point (i, j), L i,j ,R i,j ∈{0.1}, 1 means occlusion, 0 means exposure; H ij It represents the final opening and closing situation at the point (i, j) after the left and right leaves block it. i,j ∈{0.1}; maxStep represents the maximum movement distance of the leaf within the illumination time of the sub-field; I i,j Represents the intensity value at point (i, j); The optimization processing module disturbs the blades through the following steps: A: Treat each pair of open leaves in turn; B: Randomly perturb the left and right leaves forward and backward in sequence; C: Perform MC dose calculation on the disturbed result to obtain the dose distribution, and then calculate the objective function value; D: Determine whether the objective function value decreases; If it decreases, the position information of the blades is retained and the next row of blades is disturbed; If it does not decrease, start disturbing the next pair of blades; E: Repeat AD until the open leaves of all sub-fields are disturbed and the final leaf position is saved.
5. The multi-leaf grating dynamic segmentation device according to claim 4, It is characterized in that Also includes: A matrix generation module is used to form a matrix with the opening and closing conditions of the leaves in each row of each sub-field. The number of rows in the matrix is the total number of sub-fields k, and the number of columns is the number of columns n of the flux intensity distribution diagram.
6. The multi-leaf grating dynamic segmentation device according to claim 4, It is characterized in that In the constraint condition input module, a field is selected to divide a radiation field into two fields, and the two fields are not restricted by the speed constraint of the blade.
