Disclosure of Invention
The invention aims to provide an automatic generation method of an inverse radiotherapy plan for a radiotherapy device, which comprises the following steps:
s1, acquiring target contour data, target area three-dimensional contour data and contour data of a target endangered area;
s2, setting total ray dose of a target area, setting conditions of a target point and n collimators Rn, rn-1 and Rn-2 in sequence from large to small in aperture; wherein i is less than n;
s3, sequentially arranging a conformal target point, a supplementary target point and an edge supplementary target point according to the target point setting condition, the three-dimensional contour data of the target area and a large-aperture collimator priority algorithm;
s4, generating a dose field comprising a conformal target point, a supplementary target point and an edge supplementary target point according to the motion arc of the treatment head;
s5, setting a first arc segment in which the treatment head ray passes through the target normal region and exceeds a preset value and a second arc segment in which the treatment head ray intersects with the outline of the endanger region in a motion arc, and updating a dose field;
and S6, distributing the radiation dose of each conformal target point, the supplementary target point and the edge supplementary target point according to the total radiation dose and the weight of the target area.
Further, the target contour data, the target three-dimensional contour data and the contour data of the target endangered area are three-dimensional coordinates of the target contour, the target and the target endangered area obtained by projection of images of the target, the target and the target endangered area obtained by the imaging equipment in a stereo coordinate system;
further, the target setting conditions include: presetting the overlapping rate of the target points and the target area and the overlapping rate of the target points;
further, the preset overlap rate values of the target point and the target area comprise preset overlap rate values of the conformal target point, the supplementary target point, the edge supplementary target point and the target area; the preset value of the overlapping rate between the target points comprises a preset value of the overlapping rate between the conformal target points, a preset value of the overlapping rate between the conformal target points and the supplementary target points, a preset value of the overlapping rate between the conformal target points and the edge supplementary target points, and a preset value of the overlapping rate between the supplementary target points and the edge supplementary target points.
Further, the method for arranging the conformal target points according to the target point setting condition, the target area three-dimensional contour data and the collimator large-aperture priority algorithm comprises the following steps:
s21, arranging the conformal target point of the collimator Rn in the target area according to the preset overlapping rate value of the conformal target point and the target area and the preset overlapping rate value of the conformal target point;
s22, arranging the conformal target points of the collimator Rn-1 in the residual area of the target area according to the preset overlapping rate value of the conformal target points and the target area and the preset overlapping rate value of the conformal target points;
and S23, repeating the methods from S21 to S22, and arranging the conformal target points of the collimators Rn-2 and Rn-i until the arrangement of the conformal target points is completed.
Furthermore, the preset value of the overlapping ratio between the conformal target points of the collimators Rn, rn-1, rn-2 and.
Further, the method for arranging the supplementary target points according to the target point setting condition, the target area three-dimensional contour data and the large-aperture collimator priority algorithm comprises the following steps:
s31, determining three-dimensional coordinates of the central position of a gap between the conformal target points of the collimators Rn and Rn-i according to the three-dimensional coordinates of the central points of the conformal target points of the collimators Rn and Rn-1.. Rn-i;
s32, arranging the supplementary target point of the collimator Rn at the center position of a gap between the conformal target points of the collimators Rn and Rn-1.. Rn-i according to the preset overlapping rate value of the conformal target point and the supplementary target point and the preset overlapping rate value of the supplementary target point and the target area;
s33, arranging the supplementary target points of the collimator Rn-1 at the center positions of gaps among the remaining conformal target points according to the preset overlapping rate values of the conformal target points and the supplementary target points and the preset overlapping rate values of the supplementary target points and the target areas;
and S34, repeating the methods from S32 to S33, and arranging supplementary target points of the collimators Rn-2 and Rn-i until the arrangement of the supplementary target points is completed.
Further, the method for arranging the edge supplement target points according to the target point setting condition, the three-dimensional profile data of the target area and the large-aperture collimator priority algorithm comprises the following steps:
s41, determining contour data of a target area edge gap area according to three-dimensional coordinates of a central point of a conformal target point of the collimators Rn and Rn-1.. Rn-i, the aperture of the collimators Rn and Rn-1.. Rn-i and three-dimensional contour data of the target area;
s42, arranging the edge supplementary target point of the collimator Rn at the center of the edge gap area of the target area according to the preset value of the overlapping rate of the edge supplementary target point and the conformal target point and the preset value of the overlapping rate of the edge supplementary target point and the target area;
s43, arranging the edge complement target points of the collimator Rn-1 at the center positions of gaps among the remaining conformal target points according to the preset overlap ratio values of the edge complement target points and the conformal target points and the preset overlap ratio values of the edge complement target points and the target areas;
and S44, repeating the methods from S42 to S43, and arranging the edge supplement target points of the collimators Rn-2 and Rn-i until the edge supplement target points are arranged.
Further, the method further comprises:
obtaining the overlapping rate of the conformal target points of the collimators Rn, rn-1, rn-2 and.. Rn-i and the target area according to the three-dimensional coordinates, the aperture and the three-dimensional contour data of the target area of the conformal target points of the collimators Rn, rn-1 and Rn-2 and.. Rn-i;
the overlapping rate of the edge complement target points of the collimators Rn, rn-1, rn-2 and the target area is obtained according to the three-dimensional coordinates of the center points of the edge complement target points of the collimators Rn, rn-1 and Rn-2 and the three-dimensional contour data of the target area;
and the overlapping rate of the conformal target points of the collimators Rn, rn-1, rn-2 and.. Rn-i and the supplementary target points of the collimators Rn, rn-1, rn-2 and.. Rn-i is obtained according to the three-dimensional coordinates and the aperture of the central points of the conformal target points of the collimators Rn, rn-1, rn-2 and.. Rn-i and the three-dimensional coordinates and the aperture of the central points of the supplementary target points of the collimators Rn, rn-1, rn-2 and.. Rn-i.
The invention also discloses a reverse radiotherapy plan automatic generation system for radiotherapy equipment, which comprises:
the image acquisition module is used for acquiring images of the target, the target area and the target endangered area;
the image processing module is used for obtaining target contour data, target three-dimensional contour data and contour data of a target endangered area;
the target point arrangement module is used for configuring target point setting conditions and n collimators Rn, rn-1, rn-2 and. Arranging a conformal target point, a supplementary target point and an edge supplementary target point according to the target setting condition, the three-dimensional profile data of the target area and the priority algorithm of the large-aperture collimator;
the target point dose field generation module is used for generating a dose field comprising a conformal target point, a supplementary target point and an edge supplementary target point according to the motion arc of the treatment head;
the calculating module is used for calculating the overlapping rate of the target point and the target area and the overlapping rate between the target points; obtaining a first arc segment in which the ray of the treatment head passes through the target normal region and exceeds a preset value in the movement arc of the treatment head and a second arc segment in which the ray of the treatment head intersects with the outline of the endanger region; and
and the dose configuration module is used for configuring the radiation dose of each conformal target point, the supplementary target point and the edge supplementary target point according to the total radiation dose and the weight of the target area.
Further, the image processing module is used for obtaining three-dimensional coordinates of the target contour, the target area and the target endangered area through projection of the images of the target, the target area and the target endangered area obtained by the imaging device in a three-dimensional coordinate system.
Further, the target placement module is configured to:
arranging a conformal target point of the collimator Rn in the target area according to the target point setting condition;
arranging conformal target points of the collimator Rn-1 in the rest area of the target area according to target point setting conditions;
and by analogy, arranging the conformal target points of the collimators Rn-2 and Rn-i until the arrangement of the conformal target points is finished.
Further, the target placement module is further configured to:
determining the three-dimensional coordinates of the central positions of gaps among the conformal target points of the collimators Rn, rn-1, rn-2 and.
Arranging supplementary target points of the collimator Rn at the central position of gaps among the conformal target points of the collimators Rn, rn-1, rn-2 and.
Arranging supplementary target points of the collimator Rn-1 at the central position of gaps among the residual conformal target points according to the target point setting conditions;
and by analogy, arranging supplementary target points of the collimators Rn-2 and Rn-i until the supplementary target points are arranged.
Further, the target placement module is further configured to:
determining contour data of a target area edge gap area according to three-dimensional coordinates of the center point of the conformal target point of the collimators Rn, rn-1, rn-2 and Rn-i, the aperture and the three-dimensional contour data of the target area;
arranging edge supplementary target points of the collimator Rn at the center position of the edge gap area of the target area according to target point setting conditions;
arranging edge supplementary target points of the collimator Rn-1 at the center of the gaps among the residual conformal target points according to the target point setting conditions;
in the same way, arranging supplementary target points of the collimators Rn-2 and Rn-i until the arrangement of the edge supplementary target points is finished.
Further, the target setting conditions include: presetting the overlapping rate of the target points and the target area and the overlapping rate between the target points; the preset value of the overlapping rate of the target point and the target area comprises preset values of the overlapping rate of a conformal target point, a supplementary target point, an edge supplementary target point and the target area; the preset value of the overlapping rate between the target points comprises a preset value of the overlapping rate between the conformal target points, a preset value of the overlapping rate between the conformal target points and the supplementary target points, a preset value of the overlapping rate between the conformal target points and the edge supplementary target points, and a preset value of the overlapping rate between the supplementary target points and the edge supplementary target points.
The invention also discloses an automatic generation device of the reverse radiotherapy plan for the radiotherapy equipment, which comprises the following components:
a processor and a memory for storing instructions for execution by the processor;
the apparatus is for:
obtaining images of the target, the target area and the target endangered area;
acquiring target contour data, target three-dimensional contour data and contour data of a target endangered area;
configuring target setting conditions and n collimators Rn, rn-1 and Rn-2 and n. Arranging a conformal target point, a supplementary target point and an edge supplementary target point according to the target point setting condition, the three-dimensional contour data of the target area and a large-aperture collimator priority algorithm;
generating a dose field including a conformal target point, a complementary target point and an edge complementary target point according to the motion arc of the treatment head;
calculating the overlapping rate of the target points and the target area and the overlapping rate of the target points; obtaining a first arc segment in which the ray of the treatment head passes through the target normal region and exceeds a preset value in the movement arc of the treatment head and a second arc segment in which the ray of the treatment head intersects with the outline of the endanger region; and
and configuring the radiation dose of each conformal target point, the supplementary target point and the edge supplementary target point according to the total radiation dose and the weight of the target area.
The invention has the beneficial effects that: the method comprises the steps of obtaining target contour data, target three-dimensional contour data and contour data of a target endangered area, setting total dose of target rays, target setting conditions and n collimators sequenced from large to small according to apertures, sequentially arranging conformal targets, supplementary targets and edge supplementary targets according to the target setting conditions, the target three-dimensional contour data and a large-aperture collimator priority algorithm, generating a dose field comprising the conformal targets, the supplementary targets and the edge supplementary targets according to a movement arc of a treatment head, setting dose constraints for a first arc section of the treatment head rays which penetrate through a target normal area and exceed a preset value and a second arc section of intersection of the treatment head rays and the contour of the endangered area, setting radiation constraints which can reduce radiation dose or set treatment head non-emission beams, updating the dose field after setting is completed, distributing the radiation doses of each conformal target, the supplementary targets and the edge supplementary targets according to the total dose of the target rays and the weight, automatically generating a radiation treatment plan, improving the efficiency of the radiation treatment plan, avoiding the influence of different physics or doses on the radiation plan due to capability level and experience difference, and ensuring that a radiation engineer can meet the actual requirements of the radiation plan.
Detailed Description
The technical scheme of the invention is further described in more detail by combining the attached drawings and the detailed description. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments herein without making creative efforts shall fall within the scope of protection of the present invention, and furthermore, the words "comprising", "having", and "including" and other similar forms are intended to be synonymous and open-ended, wherein one or several items following any one of these words are not intended to be exhaustive or to be limited to only the listed item or items. And the singular forms "a", "an" and "the" include plural referents unless the context clearly dictates otherwise.
Example 1
As shown in fig. 1 to 5, the method for automatically generating an inverse radiotherapy plan for a radiotherapy apparatus disclosed in the present invention is a cobalt-60 radiotherapy machine, the radiotherapy apparatus includes a treatment head, the treatment head generates radiation (e.g. gamma rays), the radiation focuses on the isocenter of each target point to perform direct irradiation, the treatment head generates a motion trajectory through coplanar rotation and non-coplanar motion, the treatment head includes collimators with multiple apertures, and each collimator with a different aperture corresponds to a different target point, and the method for automatically generating an inverse radiotherapy plan for a radiotherapy apparatus specifically includes the following steps:
s1, obtaining images of a target, a target area and a target endangered region through a Computed Tomography (CT) imaging device, and obtaining three-dimensional coordinate data parameters of a target contour, the target area and the target endangered region through projection of the images of the target, the target area and the target endangered region in a three-dimensional coordinate system in a TPS (treatment planning software);
s2, setting total ray dose of a target area, setting conditions of the target area and n collimators Rn, rn-1, rn-2 and. The preset value of the overlapping rate between the target points comprises a preset value of the overlapping rate between the conformal target points, a preset value of the overlapping rate between the conformal target points and the supplementary target points, a preset value of the overlapping rate between the conformal target points and the edge supplementary target points, and a preset value of the overlapping rate between the supplementary target points and the edge supplementary target points; the overlapping rate of the target spot and the target area is limited within a preset range by setting a preset value of the overlapping rate of the target spot and the target area, so that the damage of the area outside the target area caused by the excessive range of the target spot exceeding the target area is avoided; the preset value of the overlapping rate between the target points is set so that each target point can form an ideal ray dose field under the condition that the target points are as few as possible; in this embodiment, the radiotherapy plan requires setting target points of different sizes in the target area, so the specifications of collimators with different apertures to be used are input into the TPS in advance, the collimators with different apertures correspond to the target points of different sizes, and the collimators are respectively named by Rn, rn-1, rn-2,. Rn-i according to the sorting of the apertures from large to small;
s3, sequentially arranging a conformal target point, a supplementary target point and an edge supplementary target point according to the target point setting condition, the target area three-dimensional contour data and the large-aperture collimator priority algorithm, wherein the method for arranging the conformal target point specifically comprises the following steps:
s21, arranging the conformal target point of the collimator Rn in the target area according to the preset overlapping rate value of the conformal target point and the target area and the preset overlapping rate value of the conformal target point;
s22, arranging the conformal target points of the collimator Rn-1 in the residual area of the target area according to the preset overlapping rate value of the conformal target points and the target area and the preset overlapping rate value of the conformal target points;
and S23, repeating the methods from S21 to S22, and arranging the conformal target points of the collimators Rn-2 and R.n-i until the arrangement of the conformal target points is completed.
The preset value of the overlapping rate between the conformal target points of the collimators Rn, rn-1, rn-2 and.
The method for arranging the supplementary target specifically comprises the following steps:
s31, determining three-dimensional coordinates of the central position of a gap between the conformal target points of the collimators Rn and Rn-i according to the three-dimensional coordinates of the central points of the conformal target points of the collimators Rn and Rn-1.. Rn-i;
s32, arranging the supplementary target point of the collimator Rn at the center position of a gap between the conformal target points of the collimators Rn and Rn-1.. Rn-i according to the preset overlapping rate value of the conformal target point and the supplementary target point and the preset overlapping rate value of the supplementary target point and the target area;
s33, arranging supplementary target points of the collimator Rn-1 at the center positions of gaps among the remaining conformal target points according to the preset overlapping rate values of the conformal target points and the supplementary target points and the preset overlapping rate values of the supplementary target points and the target areas;
and S34, repeating the methods from S32 to S33, and arranging supplementary target points of the collimators Rn-2 and Rn-i until the arrangement of the supplementary target points is completed.
The method for arranging the edge supplement target points specifically comprises the following steps:
s41, determining contour data of a target area edge gap area according to three-dimensional coordinates of a central point of a conformal target point of the collimators Rn and Rn-1.. Rn-i, the aperture of the collimators Rn and Rn-1.. Rn-i and three-dimensional contour data of the target area;
s42, arranging the edge supplementary target point of the collimator Rn at the center of the edge gap area of the target area according to the preset value of the overlapping rate of the edge supplementary target point and the conformal target point and the preset value of the overlapping rate of the edge supplementary target point and the target area;
s43, arranging the edge supplementary target points of the collimator Rn-1 at the center positions of gaps among the remaining conformal target points according to the preset overlapping rate values of the edge supplementary target points and the conformal target points and the preset overlapping rate values of the edge supplementary target points and the target areas;
and S44, repeating the methods from S42 to S43, and arranging the edge supplement target points of the collimators Rn-2 and Rn-i until the edge supplement target points are arranged.
S4, generating a motion arc of the treatment head in the TPS, wherein the irradiation center of the treatment head is superposed with the isocenter of each conformal target point, each supplementary target point and each edge supplementary target point, and an initial dose field is formed according to the motion arc of the treatment head;
s5, according to the target contour data, the three-dimensional contour data of the target area, the contour data of the target endangered area and the movement arc of the treatment head, obtaining a first arc section of the treatment head ray passing through the target normal area and exceeding a preset value and a second arc section constraint of the intersection of the treatment head ray and the contour of the endangered area, setting to reduce the radiation dose or setting to prevent the treatment head from emitting the ray beam, and updating the dose field after setting is completed;
and S6, distributing the radiation dose of each conformal target point, the supplementary target point and the edge supplementary target point according to the total radiation dose and the weight of the target area.
Example 2
The invention also discloses an automatic generation system of the reverse radiotherapy plan for the radiotherapy equipment, which comprises an image acquisition module, an image processing module, a target point arrangement module, a target point dose field generation module, a calculation module and a dose configuration module.
The image acquisition module is used for a Computed Tomography (CT) imaging device to obtain images of the target, the target area and the target endangered region;
the image processing module is used for obtaining target contour data, target three-dimensional contour data and contour data of a target endangered region, and specifically, the image processing module is used for obtaining three-dimensional coordinates of the target contour, the target and the target endangered region through projection of images of the target, the target and the target endangered region obtained by the imaging device in a stereo coordinate system.
The target point arrangement module is used for configuring target point setting conditions and n collimators Rn, rn-1, rn-2 and n-i which are sequenced from large apertures to small apertures, wherein the target point setting conditions comprise: presetting the overlapping rate of the target points and the target area and the overlapping rate of the target points; the preset value of the overlapping rate of the target point and the target area comprises preset values of the overlapping rate of a conformal target point, a supplementary target point, an edge supplementary target point and the target area; the preset value of the overlapping rate between the target points comprises a preset value of the overlapping rate between the conformal target points, a preset value of the overlapping rate between the conformal target points and the supplementary target points, a preset value of the overlapping rate between the conformal target points and the edge supplementary target points, and a preset value of the overlapping rate between the supplementary target points and the edge supplementary target points. The target point arrangement module is also used for arranging a conformal target point, a supplementary target point and an edge supplementary target point according to the target point setting condition, the three-dimensional contour data of the target area and the priority algorithm of the large-aperture collimator; specifically, a conformal target point of the collimator Rn is arranged in the target area according to the target point setting condition; arranging conformal target points of the collimator Rn-1 in the rest area of the target area according to target point setting conditions; and by analogy, arranging the conformal target points of the collimators Rn-2 and Rn-i until the arrangement of the conformal target points is finished. Determining the three-dimensional coordinates of the central positions of gaps among the conformal target points of the collimators Rn, rn-1, rn-2 and. Arranging supplementary target points of the collimator Rn at the central position of gaps among the conformal target points of the collimators Rn, rn-1, rn-2 and. Arranging supplementary target points of the collimator Rn-1 at the central positions of gaps among the rest conformal target points according to target point setting conditions; and by analogy, arranging supplementary target points of the collimators Rn-2 and Rn-i until the supplementary target points are arranged. Determining contour data of a target area edge gap area according to three-dimensional coordinates, aperture and target area three-dimensional contour data of the center point of the conformal target point of the collimators Rn, rn-1 and Rn-2; arranging edge supplementary target points of the collimator Rn at the center position of the edge gap area of the target area according to the target point setting condition; arranging edge supplementary target points of the collimator Rn-1 at the center of the gaps among the residual conformal target points according to the target point setting conditions; and in the same way, arranging supplementary target points of the collimators Rn-2 and Rn-i until the arrangement of the edge supplementary target points is completed.
The target point dose field generation module is used for generating a dose field comprising a conformal target point, a supplementary target point and an edge supplementary target point according to the motion arc of the treatment head;
the calculating module is used for calculating the overlapping rate of the target point and the target area and the overlapping rate of the target points; obtaining a first arc segment in which the ray of the treatment head passes through the target normal region and exceeds a preset value in the movement arc of the treatment head and a second arc segment in which the ray of the treatment head intersects with the outline of the endanger region; and
the dose configuration module is used for configuring the radiation dose of each conformal target point, the supplementary target point and the edge supplementary target point according to the total radiation dose and the weight of the target area.
Example 3
The invention also discloses an automatic generation device of the inverse radiotherapy plan for the radiotherapy equipment, which comprises a processor and a memory, wherein the memory is used for storing the instructions executed by the processor, and the processor is used for obtaining the images of the target, the target area and the target endangered area; acquiring target contour data, target three-dimensional contour data and contour data of a target endangered area; configuring target point setting conditions and n collimators Rn, rn-1, rn-2 and Rn-i which are sequenced from large to small in aperture, wherein the target point setting conditions comprise preset values of overlapping rates of target points and target areas and preset values of overlapping rates of the target points; arranging a conformal target point, a supplementary target point and an edge supplementary target point according to the target setting condition, the three-dimensional profile data of the target area and the priority algorithm of the large-aperture collimator; generating a dose field including a conformal target point, a complementary target point and an edge complementary target point according to the motion arc of the treatment head; calculating the overlapping rate of the target points and the target area and the overlapping rate of the target points; obtaining a first arc segment in which the rays of the treatment head pass through the target normal area and exceed a preset value in the movement arc of the treatment head and a second arc segment in which the rays of the treatment head intersect with the outline of the endanger area; and configuring the radiation dose of each conformal target point, the supplementary target point and the edge supplementary target point according to the total radiation dose and the weight of the target area.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments or portions thereof without departing from the spirit and scope of the invention.