Method and apparatus for determining differences in radiotherapy plan execution based on accelerator hardware parameters
By predicting blade position errors and actual energy flux distribution based on accelerator hardware parameters, this method solves the problem in existing technologies that cannot accurately predict execution differences before radiotherapy planning, enabling accurate prediction and verification during the planning stage and improving the accuracy of radiotherapy plan execution.
Patent Information
- Application Number
- CN202611664016.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies cannot accurately predict the performance differences of accelerators before the radiotherapy plan is executed, which means that verification methods can only be carried out after the fact, and it is impossible to accurately predict the performance differences during the planning stage.
Based on accelerator hardware parameters, the blade position error of the multi-leaf collimator at each control point is predicted. The actual energy flux distribution is determined according to the ideal coordinates and hardware physical state parameters. The difference between the actual energy flux distribution and the planned energy flux distribution is used to determine the execution difference of the radiotherapy plan.
This enables accurate prediction of accelerator performance differences during the radiotherapy planning stage, avoiding delays in post-operative verification and improving the accuracy and efficiency of radiotherapy planning.
Smart Images

Figure CN123148573A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of medical technology, and more specifically, to a method and apparatus for determining radiotherapy plan execution differences based on accelerator hardware parameters. Background Technology
[0002] In radiotherapy, the radiotherapy planning system divides the target area into multiple control points and uses the movement of multi-leaf collimator (MLC) blades to adjust the shape of the radiation beam, combined with real-time changes in the monitor unit (MU) to achieve dose distribution. During the planning phase, the treatment planning system calculates the planned dose based on the assumption that the MLC blades can accurately reach the designated locations.
[0003] In related technologies, verification methods for confirming the accuracy of a plan before execution include phantom-based physical measurement quality assurance and log file-based dose reconstruction. Phantom-based physical measurement quality assurance requires placing the phantom under the accelerator for actual irradiation, measuring the dose distribution using the detector array, and then comparing it with the planned dose. Log file-based dose reconstruction requires extracting the machine-recorded blade position data after the accelerator actually executes the plan, importing it into the dose engine, and recalculating the dose distribution. However, these verification methods are all post-hoc verification approaches; verification results can only be obtained after the accelerator actually emits beams or executes the plan, making it impossible to accurately predict accelerator execution discrepancies during the planning stage.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This application provides a method and apparatus for determining radiotherapy plan execution differences based on accelerator hardware parameters, so as to at least solve the technical problem that the prior art cannot accurately predict the execution differences of the accelerator before the radiotherapy plan is executed.
[0006] According to one aspect of the embodiments of this application, a method for determining radiotherapy plan execution differences based on accelerator hardware parameters is provided, comprising: determining the ideal coordinates of each leaf of a multi-leaf collimator at each control point and the segmented machine jump value corresponding to each control point based on the radiotherapy plan, wherein the segmented machine jump value corresponding to each control point is used to characterize the dose weight of the irradiation under the opening shape of the control point; predicting the leaf position error of each leaf at each control point based on the ideal coordinates of each leaf at each control point and the hardware physical state parameters of the accelerator; determining the actual energy flux distribution of each control point after being disturbed by the leaf position error based on the ideal coordinates of each leaf and the leaf position error; and determining the execution difference of the accelerator on the radiotherapy plan based on the difference information between the actual energy flux distribution and the planned energy flux distribution.
[0007] For example, determining the actual energy flux distribution of each control point after being disturbed by the blade position error, based on the ideal coordinates and blade position error of each blade, includes: determining the effective illumination area change rate of each blade pair at each control point based on the ideal coordinates and blade position error of each blade pair, wherein the effective illumination area change rate is used to characterize the degree of change in the opening area of each blade pair at each control point caused by the blade position error; and determining the actual energy flux distribution of each control point after being disturbed by the blade position error based on the effective illumination area change rate of each blade pair at each control point and the segmented machine jump value corresponding to each control point.
[0008] For example, predicting the blade position error of each blade at each control point based on the ideal coordinates of each blade at each control point and the hardware physical state parameters of the accelerator includes: obtaining the hardware physical state parameters of the accelerator, wherein the hardware physical state parameters include at least the mechanical motion delay time of the accelerator and the gravitational sag of the accelerator at at least one frame angle; determining a dynamic error amount based on the hardware physical state parameters of the accelerator, the instantaneous motion velocity of the blade, and the instantaneous acceleration of the blade, wherein the dynamic error amount is used to correct the ideal coordinates; determining the predicted coordinates of the blade at each control point based on the dynamic error amount and the ideal coordinates of each blade at each control point; and determining the blade position error of the blade at that control point based on the predicted coordinates and ideal coordinates of each blade at each control point.
[0009] For example, after generating the actual energy flux distribution of each control point after being disturbed by the blade position error, the method further includes: generating an actual energy flux map of each irradiation field based on the actual energy flux distribution of each control point; reconstructing the actual in vivo dose distribution of the target object based on the actual energy flux map and the medical image of the target object, wherein the actual in vivo dose distribution is the actual irradiation dose of each voxel in the target object after considering the hardware error of the accelerator, and the target object is the target of the radiotherapy plan; determining the dose deviation between the actual in vivo dose distribution and the planned dose distribution, wherein the planned dose distribution is the planned irradiation dose of the target object determined based on the radiotherapy plan; and, if the dose deviation exceeds a preset threshold, performing a back projection along the ray geometry path toward the head of the accelerator, and determining candidate control points and candidate blade pairs related to the dose deviation based on the back projection results.
[0010] For example, after determining the candidate control points and candidate blade pairs related to the dose deviation based on the back projection results, the method further includes: obtaining the contribution weight of each candidate blade pair corresponding to the candidate control point, wherein the contribution weight is used to characterize the contribution of the mechanical motion error of each candidate blade pair under the candidate control point to the dose deviation; determining the deviation contribution index of each candidate blade pair corresponding to the candidate control point based on the contribution weight of each candidate blade pair corresponding to the candidate control point, wherein the deviation contribution index is used to characterize the degree of contribution of the mechanical motion error of each candidate blade pair to the dose deviation corresponding to each voxel of the target object; and determining the target control point and target blade pair causing the dose deviation from the candidate control points and candidate blade pairs based on the deviation contribution index.
[0011] For example, a reverse projection is performed along the ray geometry path toward the head of the accelerator, and candidate control points and candidate blade pairs related to dose deviation are determined based on the reverse projection results. This includes: starting from the abnormal voxel where the dose deviation exceeds the threshold, tracing back along the incident direction of the ray geometry path corresponding to the abnormal voxel in the radiotherapy plan to the head of the accelerator, determining the multi-leaf collimator opening region of each control point traversed by the ray geometry path; and using the control points and blade pairs corresponding to the multi-leaf collimator opening regions as candidate control points and candidate blade pairs.
[0012] For example, obtaining the contribution weight of each candidate blade pair corresponding to a candidate control point includes: calculating the product of the error magnitude of each candidate blade pair corresponding to the candidate control point and the segmented machine jump value of the candidate control point to obtain the contribution weight of the candidate blade pair.
[0013] For example, based on the effective illumination area change rate of each blade pair at each control point and the segmented machine jump value corresponding to each control point, the actual energy flux distribution of each control point after being disturbed by the blade position error is generated, including: obtaining the effective illumination area change rate matrix at each control point, wherein the effective illumination area change rate matrix at each control point is composed of the effective illumination area change rates of all blade pairs at that control point; performing an Adama product operation on the effective illumination area change rate matrix at each control point and the segmented machine jump value of that control point to obtain the actual energy flux distribution of that control point after being disturbed by the blade position error.
[0014] For example, based on the ideal coordinates of each blade and the blade position error, the effective irradiation area variation rate of each blade pair at each control point is determined, including: obtaining the radiometric blade gap constant and the primary collimator boundary mask of the accelerator, wherein the radiometric blade gap constant is a constant corresponding to the accelerator used to correct for radiation leakage between blades, and the primary collimator boundary mask is used to define the irradiation field boundary; based on the ideal coordinates of each blade pair at each control point, combined with the radiometric blade gap constant and the primary collimator boundary mask of the accelerator, the ideal effective irradiation area of each blade pair at each control point is determined, wherein the ideal coordinates of each blade pair are determined by the ideal coordinates of each blade in the pair. The ideal effective illumination area is defined as the opening area formed by each blade pair under the ideal coordinates of each blade. Based on the predicted coordinates of each blade pair at each control point, combined with the accelerator's radiometric blade gap constant and the primary collimator boundary mask, the predicted effective illumination area of each blade pair at each control point is determined. The predicted coordinates of each blade pair are composed of the predicted coordinates of each blade in the pair, and the predicted effective illumination area is the opening area formed by each blade pair under the predicted coordinates of each blade. The relative difference between the predicted effective illumination area and the ideal effective illumination area of each blade pair at each control point is calculated to obtain the rate of change of the effective illumination area of the blade pair at each control point.
[0015] For example, based on the rate of change of the effective irradiated area of each blade at each control point and the piecewise machine jump value of each control point, the actual energy flux distribution of each control point after being disturbed by the blade position error is generated, including: constructing a neural network with an attention mechanism; obtaining the multi-leaf collimator blade sequence matrix of each control point, wherein the multi-leaf collimator blade sequence matrix consists of the ideal coordinates and blade position errors of all blades at each control point; using the multi-leaf collimator blade sequence matrix and the piecewise machine jump value of each control point as input to the neural network, and the neural network outputs the actual energy flux distribution of each control point after being disturbed by the blade position error by learning the mapping relationship between the rate of change of the effective irradiated area of each blade at each control point and the piecewise machine jump value of each control point.
[0016] According to another aspect of the embodiments of this application, a radiotherapy plan execution difference determination device based on accelerator hardware parameters is also provided, comprising: a first determination unit, configured to determine the ideal coordinates of each leaf of a multi-leaf collimator at each control point and the segmented machine jump value corresponding to each control point based on the radiotherapy plan, wherein the segmented machine jump value corresponding to each control point is used to characterize the dose weight of the irradiation under the opening shape of the control point; a first processing unit, configured to predict the leaf position error of each leaf at each control point based on the ideal coordinates of each leaf at each control point and the hardware physical state parameters of the accelerator; a second determination unit, configured to determine the actual energy flux distribution of each control point after being disturbed by the leaf position error based on the ideal coordinates of each leaf and the leaf position error; and a second processing unit, configured to determine the execution difference of the radiotherapy plan by the accelerator based on the difference information between the actual energy flux distribution and the planned energy flux distribution.
[0017] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, which stores a computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located executes the above-described method for determining radiotherapy plan execution differences based on accelerator hardware parameters.
[0018] According to another aspect of the embodiments of this application, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to perform the above-described method for determining radiotherapy plan execution differences based on accelerator hardware parameters.
[0019] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program or instructions, which, when executed by a processor, implement the above-described method for determining radiotherapy plan execution differences based on accelerator hardware parameters.
[0020] In this embodiment, the ideal coordinates of each blade at each control point and the corresponding segmented machine jump value for each control point are first determined based on the radiotherapy plan, serving as the foundation for subsequent calculations. By introducing the accelerator's hardware physical state parameters and combining them with the ideal coordinates of each blade at each control point, the blade position error of each blade at each control point can be predicted during the planning stage, eliminating the need to wait for the accelerator to actually execute the plan before obtaining the blade position error. Subsequently, based on the ideal coordinates of each blade and the predicted blade position error, the actual energy flux distribution at each control point after being disturbed by the blade position error can be determined during the planning stage. This actual energy flux distribution is calculated during the planning stage and does not rely on measured data after the accelerator actually exits the beam. Finally, the actual energy flux distribution is compared with the planned energy flux distribution, and the difference between the two is used to determine the accelerator's execution difference of the radiotherapy plan, allowing the determination of the execution difference to be completed during the planning stage. In the above process, the prediction of blade position error, the determination of actual energy flux distribution, and the determination of execution differences are all performed in the planning and design stage. Therefore, the execution differences of the accelerator can be accurately predicted before the radiotherapy plan is executed, thus solving the technical problem that the existing technology cannot accurately predict the execution differences of the accelerator before the radiotherapy plan is executed. Attached Figure Description
[0021] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0022] Figure 1 This is a schematic diagram of an optional method for determining radiotherapy plan execution differences based on accelerator hardware parameters according to an embodiment of this application;
[0023] Figure 2 This is a flowchart of an optional method for determining radiotherapy plan execution differences based on accelerator hardware parameters according to an embodiment of this application;
[0024] Figure 3 This is a schematic diagram of an optional radiotherapy planning execution difference determination device based on accelerator hardware parameters, according to an embodiment of this application. Detailed Implementation
[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] It should be noted that the information collected in this application (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of this data all comply with relevant laws, regulations, and standards, necessary confidentiality measures have been taken, and they do not violate public order and good morals. Corresponding access points are provided for users to choose to authorize or refuse. For example, interfaces are set up between this system and relevant users or organizations, providing users with corresponding access points to choose to agree to or refuse automated decision-making results; if the user chooses to refuse, the process proceeds to the expert decision-making stage.
[0028] According to the embodiments of this application, a radiotherapy planning system (hereinafter referred to as "the system") can be used as the execution subject of the radiotherapy planning execution difference determination method based on accelerator hardware parameters in the embodiments of this application. The system can be a software system or an embedded system combining software and hardware. Of course, the execution subject of the method in the embodiments of this application can also be other forms of execution subject, such as devices, equipment, etc. It should be known by those skilled in the art that this application does not particularly limit the specific form of the execution subject.
[0029] According to an embodiment of this application, a method embodiment for determining radiotherapy plan execution differences based on accelerator hardware parameters is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0030] Figure 1 This is a schematic diagram of a radiotherapy plan execution difference determination method based on accelerator hardware parameters according to an embodiment of this application, as shown below. Figure 1 As shown, the method for determining radiotherapy planning execution differences based on accelerator hardware parameters includes the following steps:
[0031] Step S101: Based on the radiotherapy plan, determine the ideal coordinates of each leaf of the multi-leaf collimator at each control point and the segmented machine jump value corresponding to each control point, wherein the segmented machine jump value corresponding to each control point is used to characterize the dose weight of the irradiation under the opening shape of the control point.
[0032] For example, a control point can represent a set of machine state parameters at a given point in time. The radiotherapy plan uses a series of control points to describe the continuous changes in machine parameters throughout the radiotherapy process. The ideal coordinates of each leaf of the multi-leaf collimator at each control point can represent the position data that the radiotherapy planning system expects the multi-leaf collimator leaf to reach at that control point. This position data can be recorded in the treatment plan file as leaf coordinate values. The segmented machine hop value can represent the cumulative increment of machine hops from the previous control point to this control point. This increment of machine hops can be used to characterize the dose weighting of the irradiation under the aperture shape at that control point.
[0033] Optionally, the radiotherapy planning system calculates the difference in machine jump counts between adjacent control points based on the cumulative machine jump counts corresponding to each control point recorded in the radiotherapy plan, thereby obtaining the segmented machine jump values for each control point. By determining the ideal blade coordinates and segmented machine jump values at each control point, the radiotherapy planning system can obtain the basic data for subsequent blade position error prediction and flux distribution calculation, which helps to pre-analyze the execution differences of the radiotherapy plan during the planning stage.
[0034] In some embodiments, the radiotherapy planning system can obtain the multi-leaf collimator blade position data and segmented machine jump values corresponding to each control point by parsing a radiotherapy planning file. This radiotherapy planning file can adopt the radiotherapy planning (RT Plan) format defined in the Medical Digital Imaging and Communications (DICOM) standard, or other standard or proprietary formats capable of recording radiotherapy planning parameters. For example, the radiotherapy planning system can parse a DICOM RT Plan format radiotherapy planning file and read the multi-leaf collimator blade position data corresponding to each control point from the control point sequence of the file. This control point sequence can be arranged in chronological order, with each control point recording the coordinate values of all blades of the multi-leaf collimator at an irradiation time. The radiotherapy planning system reads the position coordinates of each blade sequentially according to the index order of the control points to obtain the ideal coordinates of each blade at each control point. Simultaneously, the radiotherapy planning system can read the cumulative machine jump value corresponding to each control point from the control point sequence and calculate the difference between the cumulative machine jump values of adjacent control points as the segmented machine jump value corresponding to each control point. By parsing the DICOM RT Plan file to obtain the above data, the radiotherapy planning system can directly extract information using the standardized data format of the radiotherapy planning file without the need for additional data conversion or format processing.
[0035] In other embodiments, the radiotherapy planning system can read the multi-leaf collimator blade position data and segmented machine jump values corresponding to each control point from its internal database via an application programming interface (API). After completing the radiotherapy plan design, the system can store the plan data in its internal database, which may contain the ideal blade coordinates for each control point and the corresponding segmented machine jump values. The system can directly obtain this data for subsequent execution difference prediction by calling its internal data reading interface. Obtaining this data through the internal database allows the system to quickly acquire the required plan attribute data after plan design, reducing the time overhead associated with data parsing.
[0036] Step S102: Based on the ideal coordinates of each blade at each control point and the hardware physical state parameters of the accelerator, predict the blade position error of each blade at each control point.
[0037] For example, the hardware physical state parameters of the accelerator can represent the physical characteristic parameters of the mechanical components inside the accelerator head. These physical characteristic parameters can include the mechanical motion delay time and the amount of gravity sag of the accelerator at at least one frame angle. The mechanical motion delay time can be used to represent the time lag between the issuance of a control signal and the actual start of movement of the multi-leaf collimator blades, which can originate from motor response delay and mechanical transmission inertia. The amount of gravity sag can be used to represent the offset of the multi-leaf collimator blades relative to their ideal positions under gravity, which can change with the accelerator frame angle. The blade position error can represent the difference between the predicted actual coordinates and the ideal coordinates of each blade at each control point, which can be determined by kinematic analysis of the accelerator's hardware physical state parameters, the instantaneous velocity of the blades, and the instantaneous acceleration of the blades.
[0038] Optionally, the radiotherapy planning system can predict blade position errors by incorporating the hardware physical state parameters of the accelerator. This allows the system to obtain the possible blade position errors for each blade at each control point during the planning and design phase. This is beneficial because subsequent dose distribution calculations can reflect the impact of the accelerator hardware state on dose delivery, without having to obtain the blade position errors only after actual irradiation.
[0039] In some embodiments, the radiotherapy planning system can read hardware physical state parameters from the accelerator's system configuration file. After each quality assurance test, the accelerator updates the system configuration file with the obtained mechanical motion delay time and gravity sag. This system configuration file can be stored in a storage medium accessible to the accelerator control system or the radiotherapy planning system. By reading this system configuration file, the radiotherapy planning system can obtain the updated mechanical motion delay time and gravity sag since the most recent quality assurance test. Based on the gantry angle at the current control point, the radiotherapy planning system queries the gravity sag parameter for the gravity sag value corresponding to that gantry angle. Based on the read mechanical motion delay time and gravity sag, combined with the blade's instantaneous velocity and instantaneous acceleration, the radiotherapy planning system performs kinematic analysis on each blade at each control point, and can calculate the blade position error of each blade at each control point. By reading the updated hardware physical state parameters from the system configuration file after the quality assurance test, the hardware physical state parameters can reflect the latest physical state of the accelerator, while directly utilizing the existing stored data in the system configuration file for error prediction.
[0040] In other embodiments, the radiotherapy planning system can obtain the accelerator's hardware physical state parameters based on the results of quality assurance tests performed on the accelerator. The accelerator can periodically perform quality assurance tests, which may include mechanical motion delay time tests and gravity sag tests. The radiotherapy planning system reads the most recent mechanical motion delay time test results and gravity sag test results from the quality assurance test reports as the hardware physical state parameters used for the current prediction. The radiotherapy planning system can also obtain the accelerator blade guideway wear parameters, which can be data retrieved from the accelerator maintenance records. The radiotherapy planning system substitutes the aforementioned hardware physical state parameters, blade instantaneous velocity, and blade instantaneous acceleration into the kinematic equations to calculate the blade position error for each blade at each control point. Predicting blade position errors by obtaining hardware physical state parameters based on quality assurance test results helps ensure that the hardware parameters used for error prediction reflect the accelerator's latest physical state, reducing prediction bias caused by changes in hardware state.
[0041] Step S103: Based on the ideal coordinates and blade position error of each blade, determine the actual energy flux distribution of each control point after being disturbed by the blade position error.
[0042] For example, the actual energy flux distribution can represent the spatial distribution of flux at each control point after being affected by the positional error of the multi-leaf collimator blades during the actual operation of the accelerator. The radiotherapy planning system corrects the ideal coordinates by introducing the blade positional error at each control point, and determines the actual energy flux distribution based on the corrected coordinates, thus enabling the obtained actual energy flux distribution to be correlated with the accelerator hardware status.
[0043] In some embodiments, the radiotherapy planning system can determine the effective radiation area change rate for each leaf pair at each control point based on the ideal coordinates and leaf position error of each leaf. The effective radiation area change rate can characterize the degree of change in the aperture area of each leaf pair at each control point due to leaf position error. Based on the effective radiation area change rate for each leaf pair at each control point and the corresponding segmented machine jump value, the radiotherapy planning system can determine the actual energy flux distribution at that control point after perturbation by leaf position error. By coupling the effective radiation area change rate with the segmented machine jump value, the radiotherapy planning system determines the actual energy flux distribution, reflecting the combined influence of geometric error and dose weighting in the actual energy flux distribution.
[0044] In other embodiments, the radiotherapy planning system can determine the predicted actual coordinates of each leaf at each control point based on the ideal coordinates and leaf position error of each leaf. The system treats the predicted actual coordinates of all leaves at each control point as a control point state set and determines the multi-leaf collimator leaf sequence matrix corresponding to that control point based on this set. Each element of this matrix represents a combination of the predicted actual coordinates or ideal coordinates of a leaf at that control point and the leaf position error. Based on this multi-leaf collimator leaf sequence matrix and the segmented machine jump value corresponding to the control point, the system uses a pre-trained mapping model to determine the actual energy flux distribution at that control point after perturbation by leaf position errors. Determining the actual energy flux distribution based on the leaf sequence matrix and mapping model is beneficial for efficient processing of flux distribution in situations with a large number of control points.
[0045] Step S104: Based on the difference between the actual energy flux distribution and the planned energy flux distribution, determine the difference in the accelerator's execution of the radiotherapy plan.
[0046] For example, the planned dose distribution can represent the theoretical dose distribution determined by the radiotherapy planning system based on the radiotherapy plan, without considering accelerator hardware errors. The variance information can represent the deviation between the actual dose distribution and the planned dose distribution at each control point. The execution variance can represent the deviation of the actual dose distribution from the planned dose distribution when the accelerator executes the radiotherapy plan, due to factors such as multi-leaf collimator blade position errors. By acquiring the variance information between the actual and planned dose distributions and determining the accelerator's execution variance based on this variance information, the radiotherapy planning system can quantify and evaluate the execution deviation of the radiotherapy plan during the planning phase.
[0047] In some embodiments, the radiotherapy planning system can calculate the difference between the actual and planned dose distributions at each control point, obtaining the difference information corresponding to each control point. Based on this difference information, the system determines the accelerator's execution difference at each control point. The system then arranges the execution differences at each control point in chronological order, obtaining a sequence of execution differences during the radiotherapy plan's execution. Determining the execution difference by calculating the difference information point-by-point facilitates independent evaluation of the execution difference at each time point during the radiotherapy plan's execution.
[0048] In other embodiments, the radiotherapy planning system can compare the actual dose distribution with the planned dose distribution to obtain the spatial distribution of dose deviation across the entire irradiation field as difference information. The radiotherapy planning system determines the accelerator's execution difference of the radiotherapy plan based on the area or number of regions in this spatial distribution where the deviation exceeds a preset deviation threshold. Determining the execution difference based on the spatial distribution of dose deviation across the entire irradiation field facilitates an overall assessment of the degree of execution deviation in the radiotherapy plan.
[0049] In some optional embodiments, the actual energy flux distribution of each control point after being disturbed by the leaf position error is determined based on the ideal coordinates and leaf position error of each leaf. This includes: the radiotherapy planning system can determine the rate of change of the effective irradiated area of each leaf at each control point based on the ideal coordinates and leaf position error of each leaf, wherein the rate of change of the effective irradiated area is used to characterize the degree of change of the opening area of each leaf at each control point caused by the leaf position error; and the actual energy flux distribution of each control point after being disturbed by the leaf position error is determined based on the rate of change of the effective irradiated area of each leaf at each control point and the segmented machine jump value corresponding to each control point.
[0050] For example, a radiotherapy planning system can determine the change in the aperture area of each leaf pair at each control point based on the ideal coordinates and leaf position error of each leaf at each control point. A leaf pair can represent a combination of two opposing multi-leaf collimator blades, with the two blades in each pair forming an aperture during relative movement. Based on the leaf position error of the two blades in each leaf pair, the radiotherapy planning system can determine the change in the aperture area of the leaf pair relative to the ideal aperture area caused by the leaf position error, and define this change as the effective radiation area change rate of the leaf pair at that control point. The radiotherapy planning system correlates the effective radiation area change rate of each leaf pair at each control point with the segmented machine jump value corresponding to that control point to determine the actual energy flux distribution at that control point after perturbation by the leaf position error. By correlating the degree of aperture area change caused by the position error of each leaf pair with the dose weight of that control point, it is beneficial to ensure that the determined actual energy flux distribution reflects the differential impact of the leaf position error under different dose weight conditions.
[0051] In some embodiments, the radiotherapy planning system can determine the ideal aperture area of each leaf pair at each control point based on the ideal coordinates of the two leaves in each leaf pair. The system can correct the ideal coordinates based on the leaf position error of the two leaves in each leaf pair to obtain the predicted actual coordinates of each leaf pair at each control point, and determine the predicted aperture area of each leaf pair at each control point based on these predicted actual coordinates. The system can calculate the area difference between the predicted aperture area and the ideal aperture area of each leaf pair at each control point, and divide this area difference by the ideal aperture area to obtain the effective radiation area change rate of the leaf pair at that control point. The system multiplies the effective radiation area change rate of each leaf pair at each control point by the segmented machine jump value corresponding to that control point to obtain the flux perturbation component of each leaf pair at that control point. The system then superimposes the flux perturbation components of each leaf pair to obtain the actual energy flux distribution at the control point after perturbation by leaf position error. By multiplying the effective illumination area change rate by the segmented machine jump value as the flux perturbation component, the influence of the position error of each blade pair on the actual energy flux distribution can be quantified.
[0052] In other embodiments, the radiotherapy planning system generates an ideal opening area vector and a predicted opening area vector for each control point based on the ideal and predicted opening areas of each blade pair. The system calculates the relative difference vector between the predicted and ideal opening area vectors to obtain the effective radiation area change rate vector for that control point. The system then performs element-wise multiplication of this effective radiation area change rate vector with the piecewise machine jump value corresponding to that control point to obtain the actual energy flux distribution vector for that control point. This element-wise multiplication in vector form improves the computational efficiency of the actual energy flux distribution even with a large number of control points and blade pairs.
[0053] In some optional embodiments, predicting the blade position error of each blade at each control point based on the ideal coordinates of each blade at each control point and the hardware physical state parameters of the accelerator includes: the radiotherapy planning system acquiring the hardware physical state parameters of the accelerator, wherein the hardware physical state parameters include at least the mechanical motion delay time of the accelerator and the gravitational sag of the accelerator at at least one gantry angle; determining a dynamic error amount based on the hardware physical state parameters of the accelerator, the instantaneous motion velocity of the blade, and the instantaneous acceleration of the blade, wherein the dynamic error amount is used to correct the ideal coordinates; determining the predicted coordinates of the blade at each control point based on the dynamic error amount and the ideal coordinates of each blade at each control point; and determining the blade position error of the blade at that control point based on the predicted coordinates and ideal coordinates of each blade at each control point.
[0054] For example, the mechanical motion delay time can represent the time lag between the issuance of the control signal and the actual start of movement of the multi-leaf collimator blades, which can originate from motor response delay and mechanical transmission inertia. Gravity sag can represent the offset of the multi-leaf collimator blades relative to their ideal position under gravity, which can change with variations in the accelerator frame angle. The dynamic error can represent the blade position offset at each control point caused by the combined effects of the accelerator's hardware physical state parameters, the blade's instantaneous velocity, and its instantaneous acceleration; this dynamic error is used to correct the ideal coordinates. The predicted coordinates can represent the blade position coordinates obtained by superimposing the dynamic error onto the ideal coordinates, taking into account the influence of the accelerator's hardware physical state. The blade position error can represent the difference between the predicted coordinates and the ideal coordinates. After the radiotherapy planning system acquires the hardware physical state parameters of the accelerator, it determines the dynamic error based on these parameters, the instantaneous velocity of the blade, and the instantaneous acceleration of the blade. The dynamic error is then superimposed on the ideal coordinates to obtain the predicted coordinates. The blade position error is then determined based on the predicted coordinates and the ideal coordinates. This allows the determined blade position error to reflect the influence of the accelerator hardware physical state on the blade position.
[0055] In some embodiments, the radiotherapy planning system can calculate the instantaneous velocity of the blades based on the time interval between adjacent control points and the difference in ideal blade coordinates between adjacent control points. The radiotherapy planning system can also calculate the instantaneous acceleration of the blades based on the difference in instantaneous velocity between adjacent control points and the time interval between adjacent control points. The radiotherapy planning system substitutes the accelerator's mechanical motion delay time, gravity sag, blade instantaneous velocity, and blade instantaneous acceleration into the kinematic equations to calculate the dynamic error of each blade at each control point.
[0056] Optionally, the kinematic equation can be expressed as a displacement calculation formula that includes the blade's instantaneous velocity, blade's instantaneous acceleration, mechanical motion delay time, and gravitational sag. For example, this formula can be expressed as: Dynamic error = Velocity-related term + Gravity sag + Acceleration-related term, where the velocity-related term is determined by the mechanical motion delay time and the blade's instantaneous velocity, and the acceleration-related term is determined by the blade's instantaneous acceleration.
[0057] The radiotherapy planning system superimposes this dynamic error onto the ideal coordinates of the leaf at the control point to obtain the predicted coordinates of the leaf at that control point. The system then calculates the difference between the predicted and ideal coordinates of the leaf at the control point, defining this difference as the leaf position error at that control point. Determining the dynamic error based on kinematic equations provides a clear physical kinematic basis for its calculation.
[0058] In other embodiments, the radiotherapy planning system can determine a velocity lag component based on the accelerator's mechanical motion delay time and the blade's instantaneous velocity. This velocity lag component can represent the blade position lag caused by the mechanical motion delay time. The radiotherapy planning system determines a gravity deformation component and an inertial deformation component based on the accelerator's gravitational sag at the target gantry angle and the blade's instantaneous acceleration. The gravity deformation component can represent the blade position offset caused by the gravitational sag, and the inertial deformation component can represent the blade position offset caused by the blade's instantaneous acceleration. The radiotherapy planning system superimposes the velocity lag component, gravity deformation component, and inertial deformation component to obtain a dynamic error. The radiotherapy planning system superimposes this dynamic error onto the ideal coordinates of the blade at the control point to obtain the predicted coordinates of the blade at the control point. The radiotherapy planning system calculates the difference between the predicted coordinates and the ideal coordinates and determines this difference as the blade position error at the control point. By decomposing the dynamic error into velocity lag, gravity deformation, and inertial deformation components and superimposing them, the contribution of different physical factors to the blade position error can be quantified separately.
[0059] In other embodiments, blade position errors can also be obtained through other means without requiring prediction based on hardware physical state parameters. The radiotherapy planning system can obtain log files after the accelerator actually executes the radiotherapy plan, read the actual position coordinates of each blade corresponding to each control point from the log files, and determine the blade position error based on these actual coordinates and the ideal coordinates. This method is suitable for scenarios requiring post-execution deviation tracking of the executed radiotherapy plan and can complement pre-execution prediction methods.
[0060] In some optional embodiments, after generating the actual energy flux distribution of each control point after perturbation by blade position errors, the method further includes: the radiotherapy planning system generating an actual energy flux map for each irradiation field based on the actual energy flux distribution of each control point; reconstructing the actual in vivo dose distribution of the target object based on the actual energy flux map and medical images of the target object, wherein the actual in vivo dose distribution is the actual irradiation dose of each voxel in the target object after considering the hardware error of the accelerator, and the target object is the object targeted by the radiotherapy plan; determining the dose deviation between the actual in vivo dose distribution and the planned dose distribution, wherein the planned dose distribution is the planned irradiation dose of the target object determined based on the radiotherapy plan; and, if the dose deviation exceeds a preset threshold, performing a back projection along the ray geometry path toward the head of the accelerator, and determining candidate control points and candidate blade pairs related to the dose deviation based on the back projection results.
[0061] For example, the irradiation field can represent the projection area of the beam exiting the accelerator onto the isocenter plane. The actual dose distribution within the body can represent the actual dose received by each voxel within the target body after considering accelerator hardware errors; a voxel can represent a volume unit in three-dimensional space. The planned dose distribution can represent the planned dose received by the target body based on the radiotherapy plan. The dose deviation can represent the dose difference between the actual dose distribution and the planned dose distribution at each voxel. The preset threshold can represent a pre-defined dose deviation limit, which can be used to determine whether the dose deviation exceeds an acceptable range. The ray geometry path can represent the geometric trajectory of the ray in space after it is emitted from the accelerator head. Candidate control points can represent one or more control points related to the dose deviation that require further analysis. Candidate blade pairs can represent one or more blade pairs corresponding to candidate control points that require further analysis.
[0062] Optionally, the radiotherapy planning system generates an actual energy flux map for each irradiation field based on the actual energy flux distribution at each control point. It then reconstructs the actual dose distribution within the target body based on the actual energy flux map and the target body's medical images. Finally, it determines the dose deviation between the actual dose distribution and the planned dose distribution, quantifying the impact of accelerator hardware errors on dose delivery at the voxel level in three-dimensional space. When the dose deviation exceeds a preset threshold, the radiotherapy planning system performs a back projection along the ray geometry path towards the accelerator head. Based on the back projection results, it identifies candidate control points and candidate blade pairs related to the dose deviation. This allows the system to associate the region where the dose deviation exceeds the threshold with the control points and blade pairs that may have caused the deviation, thus narrowing the scope of subsequent source tracing analysis.
[0063] In some embodiments, the radiotherapy planning system can map the actual energy flux distribution of each control point according to the geometric range of the irradiation field corresponding to that control point, generating an actual energy flux map for each irradiation field. The radiotherapy planning system inputs the actual energy flux map of each irradiation field into the dose calculation engine and performs dose calculation in conjunction with the medical images of the target object to obtain the actual dose distribution in vivo for the target object. The radiotherapy planning system compares the actual dose distribution in vivo with the planned dose distribution at each voxel, calculates the dose difference at each voxel, and obtains the dose deviation distribution. The radiotherapy planning system identifies abnormal voxels whose dose deviation exceeds a preset threshold from the dose deviation distribution. Starting from the abnormal voxel, the radiotherapy planning system traces backward along the incident direction of the ray geometric path corresponding to the abnormal voxel to the accelerator head, determines the multi-leaf collimator opening region corresponding to each control point traversed by the ray geometric path, and uses the control points and leaf pairs corresponding to the multi-leaf collimator opening regions as candidate control points and candidate leaf pairs. By determining candidate control points and candidate leaf pairs based on reverse tracing of abnormal voxels, the candidate range can be narrowed down to control points and leaf pairs related to the dose deviation of the abnormal voxel.
[0064] In other embodiments, the radiotherapy planning system determines the spatial distribution of dose deviation across the entire irradiation field based on the dose deviation between the actual dose distribution in vivo and the planned dose distribution. The system identifies at least one anomalous region within this spatial distribution where the dose deviation exceeds a preset threshold; this anomalous region may contain multiple consecutive anomalous voxels. Starting from each anomalous voxel, the system traces backward along the incident direction of the corresponding ray geometry path back to the accelerator head, determining the control points and blade pairs traversed by each ray geometry path. The system performs an intersection operation on the backward tracing results to determine the control points and blade pairs traversed by multiple ray geometry paths as candidate control points and candidate blade pairs. By using the intersection operation of the backward tracing results of multiple ray geometry paths, the determined candidate control points and candidate blade pairs can have higher correlation.
[0065] Optionally, the dose calculation engine can employ an analytical anisotropic algorithm or a collapsed conic convolution algorithm. In other embodiments, the dose calculation engine can also employ Monte Carlo particle transport simulation technology, directly inputting the geometric model of a multi-leaf collimator with blade position errors into the Monte Carlo system to trace the physical interaction process between photons and particles, thereby obtaining a reconstructed three-dimensional dose distribution.
[0066] Optionally, the radiotherapy planning system can use preset dose comparison criteria to perform a three-dimensional dose distribution comparison analysis between the reconstructed actual dose distribution and the planned dose distribution to determine the spatial deviation between the actual and planned dose distributions. The dose comparison criteria include distance tolerance and dose tolerance. For example, a 3mm / 3% standard can be used as an exemplary set of tolerance parameters. In other embodiments, other tolerance standards (such as a 2mm / 2% standard) can also be used for the above comparison analysis, depending on clinical needs and dose validation standards.
[0067] In some optional embodiments, after determining the candidate control points and candidate leaf pairs related to the dose deviation based on the back projection results, the method further includes: the radiotherapy planning system can obtain the contribution weight of each candidate leaf pair corresponding to the candidate control point, wherein the contribution weight is used to characterize the contribution of the mechanical motion error of each candidate leaf pair under the candidate control point to the dose deviation; based on the contribution weight of each candidate leaf pair corresponding to the candidate control point, determine the deviation contribution index of each candidate leaf pair corresponding to the candidate control point, wherein the deviation contribution index is used to characterize the degree of contribution of the mechanical motion error of each candidate leaf pair to the dose deviation corresponding to each voxel of the target object; based on the deviation contribution index, determine the target control point and target leaf pair causing the dose deviation from the candidate control points and candidate leaf pairs.
[0068] For example, the contribution weight can be determined based on the error magnitude of the candidate leaflet pair and the piecewise machine jump value of the candidate control point. The deviation contribution index can be determined based on the contribution weight of each candidate leaflet pair corresponding to the candidate control point. The target control point can represent the control point that causes the dose deviation among multiple candidate control points. The target leaflet pair can represent the leaflet pair that causes the dose deviation among multiple candidate leaflet pairs. The radiotherapy planning system obtains the contribution weight of each candidate leaflet pair corresponding to the candidate control point, determines the deviation contribution index of each candidate leaflet pair corresponding to the candidate control point based on the contribution weight, and then determines the target control point and target leaflet pair from the candidate control points and candidate leaflet pairs based on the deviation contribution index. This is beneficial for screening out the specific control points and specific leaflet pairs that truly cause the dose deviation from multiple candidate control points and candidate leaflet pairs.
[0069] In some embodiments, the radiotherapy planning system acquires the error magnitude of each candidate leaflet pair corresponding to a candidate control point and the segmented machine jump value of that candidate control point. The system uses the product of the error magnitude of each candidate leaflet pair and the segmented machine jump value of the candidate control point as the contribution weight of that candidate leaflet pair. This contribution weight represents the quantified contribution of the candidate leaflet pair to the dose deviation due to mechanical motion error. The system correlates the contribution weight of each candidate leaflet pair corresponding to the candidate control point with the dose deviation of each voxel of the target object, determining the deviation contribution index of each candidate leaflet pair at each voxel. Based on the deviation contribution index of each candidate leaflet pair at all voxels, the system calculates the comprehensive deviation contribution index of the candidate leaflet pair and identifies the control point and leaflet pair corresponding to the candidate leaflet pair with the highest comprehensive deviation contribution index as the target control point and target leaflet pair. By determining the deviation contribution index through the correlation mapping between contribution weights and voxel dose deviations, the system can pinpoint the source of deviation from the voxel-level dose deviation to the control point and leaflet pair level.
[0070] In other embodiments, the radiotherapy planning system acquires the error magnitude of each candidate leaf pair corresponding to a candidate control point and the segmented machine jump value of that candidate control point. The system normalizes the product of the error magnitude and the segmented machine jump value of each candidate leaf pair corresponding to a candidate control point to obtain the contribution weight of that candidate leaf pair. Based on the contribution weight of each candidate leaf pair corresponding to a candidate control point, the system sets the deviation contribution index of candidate leaf pairs with contribution weights exceeding a preset contribution threshold as a first value, and sets the deviation contribution index of candidate leaf pairs with contribution weights not exceeding the preset contribution threshold as a second value. The system identifies the candidate leaf pairs with a deviation contribution index of the first value as target leaf pairs and identifies the control point to which the target leaf pair belongs as the target control point. Determining the target leaf pair from the candidate leaf pairs through normalization and threshold comparison helps reduce positioning errors caused by uneven distribution of contribution weight values.
[0071] Optionally, after determining the target control point and target leaf pair causing the dose deviation based on the deviation contribution index, the radiotherapy planning system can also generate a visual source heat map based on the located target control point and target leaf pair. This visual source heat map can display the correspondence between the dose deviation exceeding the threshold area and the target control point and target leaf pair on the human-computer interface of the radiotherapy planning system.
[0072] The radiotherapy planning system can also feed back optimization instructions to the internal planning optimizer. These instructions can include mandating that the plan optimizer widen the aperture spacing of the target blade pair at the target control point or reduce the segmented machine hop value at the target control point during subsequent optimization. Optimization instructions can also include adding a penalty factor to the optimization cost function of the plan optimizer. This penalty factor is set for the locked target control point or target blade pair, constraining the aperture spacing and machine hop value of that target control point or target blade pair during subsequent optimization. By feeding back optimization instructions to the plan optimizer, the radiotherapy planning system can make targeted adjustments to the identified target control points and target blade pairs during the planning optimization process, which helps reduce the recurrence of dose deviations.
[0073] Optionally, the radiotherapy planning system can predict the leaf position error of each leaf at each control point based on the accelerator's hardware physical state parameters during the planning stage. By determining the effective irradiated area change rate for each leaf pair at each control point and coupling this effective irradiated area change rate with the segmented machine jump value of that control point, it is beneficial to ensure that the actual energy fluence distribution simultaneously reflects the combined effects of geometric errors and dose weights. Furthermore, when the dose deviation exceeds a preset threshold, back projection is performed along the ray geometry path, and the target control point and target leaf pair causing the dose deviation are located based on the deviation contribution index. This allows for the identification of the specific control point and leaf pair causing the deviation during quality assurance when it occurs, without blindly modifying planning parameters and retrying. The above process is based on a physical model calculated using kinematic equations and area change rates, rather than relying on implicit fitting of machine learning models, which helps to ensure that the prediction results have a clear radiophysical basis.
[0074] Optionally, by multiplying the effective irradiated area change rate of the blade pair by the segmented machine jump value, the impact of the blade position error on the flux distribution can be significantly amplified when the error occurs at a control point with a high dose weight and a small opening; while when the error occurs at a control point with a low dose weight or a large opening, the impact of the error on the flux distribution is relatively small. This is beneficial for identifying the physical error characteristics generated by the combination of small opening area and high dose weight in the high modulation scheme in the flux distribution.
[0075] Figure 2 This is a flowchart of a method for determining radiotherapy plan execution differences based on accelerator hardware parameters, according to an embodiment of this application. Figure 2As shown, firstly, based on the radiotherapy plan, the ideal coordinates and corresponding segmented machine jump values of each leaf of the multi-leaf collimator at each control point are determined. Then, based on the ideal coordinates of each leaf at each control point and the accelerator's hardware physical state parameters, the leaf position error of each leaf at each control point is predicted. Next, the actual energy flux distribution at each control point after being disturbed by the leaf position error is determined. This determination process may include internal sub-steps of determining the predicted coordinates of the leaf at each control point and determining the rate of change of the effective irradiated area of each leaf pair at each control point. After determining the actual energy flux distribution, an actual energy flux map of each irradiation field is generated. Based on the actual energy flux map and the target object's medical image, the actual dose distribution in vivo of the target object is reconstructed. Then, the dose deviation between the actual dose distribution in vivo and the planned dose distribution is determined. If the dose deviation exceeds a preset threshold, candidate control points and candidate leaf pairs are determined by back-projection along the ray geometry path. The deviation contribution index is determined based on the contribution weight of each candidate leaf pair corresponding to each candidate control point. Based on the deviation contribution index, the target control point and target leaf pair causing the dose deviation are located from the candidate control points and candidate leaf pairs. Optionally, the radiotherapy planning system can also generate a visual heatmap for tracing the source and provide optimization instructions to the planning optimizer.
[0076] In some optional embodiments, a back projection is performed along the ray geometry path toward the head of the accelerator, and candidate control points and candidate blade pairs related to dose deviation are determined based on the back projection results. This includes: the radiotherapy planning system can start from the abnormal voxel where the dose deviation exceeds the threshold, trace back along the incident direction of the ray geometry path corresponding to the abnormal voxel in the radiotherapy plan to the head of the accelerator, and determine the multi-leaf collimator opening region of each control point traversed by the ray geometry path; the control points and blade pairs corresponding to the multi-leaf collimator opening regions are used as candidate control points and candidate blade pairs.
[0077] For example, the ray geometry path can represent the geometric trajectory of a ray in space after it is emitted from the accelerator head. The multi-leaf collimator opening region can represent the spatial region formed by pairs of multi-leaf collimators at a given control point, allowing the ray to pass through. Starting from an anomalous voxel with a dose deviation exceeding a threshold, the radiotherapy planning system traces backward along the incident direction of the ray geometry path corresponding to that anomalous voxel in the radiotherapy plan back to the accelerator head. This allows the system to determine the multi-leaf collimator opening region corresponding to each control point traversed by the ray geometry path, and to use the control points and blade pairs corresponding to these opening regions as candidate control points and candidate blade pairs. By tracing backward from the anomalous voxel along the ray geometry path back to the accelerator head, the dose deviation location in three-dimensional space can be associated with control points and blade pairs on the two-dimensional irradiation plane, which helps to narrow the tracing scope from all control points and blade pairs to a candidate subset related to the dose deviation.
[0078] In some embodiments, the radiotherapy planning system can acquire the coordinate position of the anomalous voxel in three-dimensional space. Based on the incident direction of the ray geometry path corresponding to the anomalous voxel in the radiotherapy plan, the system traces the anomalous voxel point-by-point from its coordinate position along the opposite direction of the ray geometry path to the accelerator head. During this reverse tracing, the system records the multi-leaf collimator opening region corresponding to each control point traversed by the ray geometry path. The system uses each recorded control point and the blade pair below that control point that participates in forming the multi-leaf collimator opening region as candidate control points and candidate blade pairs. By determining the multi-leaf collimator opening region of each control point traversed by the ray geometry path through point-by-point tracing, the determination process of candidate control points and candidate blade pairs can have a complete spatial geometric correspondence.
[0079] In other embodiments, the radiotherapy planning system acquires the coordinate position of the anomalous voxel in three-dimensional space and the geometric extent of the corresponding irradiation field. Based on the coordinate position of the anomalous voxel and the geometric extent of the irradiation field, the radiotherapy planning system determines the projected position of the anomalous voxel on the irradiation field plane. Based on the projected position and the multi-leaf collimator blade position data corresponding to each control point, the radiotherapy planning system determines whether the projected position is located within the multi-leaf collimator opening region at each control point. The radiotherapy planning system uses the control points and blade pairs within the multi-leaf collimator opening region containing the projected position as candidate control points and candidate blade pairs. By determining the candidate control points and candidate blade pairs through the positional relationship between the projected position and the multi-leaf collimator opening region, candidate control points and candidate blade pairs associated with the anomalous voxel can be quickly identified.
[0080] In some optional embodiments, obtaining the contribution weight of each candidate blade pair corresponding to the candidate control point includes: the radiotherapy planning system can calculate the product of the error magnitude of each candidate blade pair corresponding to the candidate control point and the segmented machine jump value of the candidate control point to obtain the contribution weight of the candidate blade pair.
[0081] For example, the error magnitude can represent the absolute or relative value of the leaf position error of a candidate leaf pair at a candidate control point. The contribution weight of a candidate leaf pair can represent the contribution of the mechanical motion error of each candidate leaf pair corresponding to the candidate control point to the dose deviation. The radiotherapy planning system multiplies the error magnitude of each candidate leaf pair corresponding to the candidate control point with the segmented machine jump value of that candidate control point to obtain the contribution weight of that candidate leaf pair. Since the segmented machine jump value can be used to characterize the dose weight delivered under the opening shape of that candidate control point, multiplying the error magnitude by the segmented machine jump value as the contribution weight allows the contribution weight to simultaneously reflect the magnitude of the geometric position error of the candidate leaf pair and the dose weight at that candidate control point. This is beneficial for subsequently selecting leaf pairs that contribute more to the dose deviation from multiple candidate leaf pairs based on the contribution weight.
[0082] In some embodiments, the radiotherapy planning system obtains the leaf position error of each leaf in each candidate leaf pair corresponding to the candidate control point. The radiotherapy planning system determines the error magnitude of the candidate leaf pair based on the leaf position error of each leaf. For example, the error magnitude can be the average of the absolute values of the leaf position errors of the two leaves in each leaf pair. The radiotherapy planning system obtains the segmented machine jump value corresponding to the candidate control point from the radiotherapy plan. The radiotherapy planning system multiplies the error magnitude of the candidate leaf pair by the segmented machine jump value corresponding to the candidate control point to obtain the contribution weight of the candidate leaf pair. Determining the contribution weight by multiplying the error magnitude by the segmented machine jump value allows the contribution weight to reflect the combined influence of the geometric position error and dose weight of the candidate leaf pair.
[0083] In other embodiments, the radiotherapy planning system obtains the leaf position error of each leaf in each candidate leaf pair corresponding to the candidate control point, and normalizes the leaf position error to obtain a normalized error amplitude. Normalization can be performed by dividing the error amplitude of the candidate leaf pair by the maximum error amplitude of all candidate leaf pairs, or by dividing the error amplitude of the candidate leaf pair by the leaf opening width corresponding to the candidate control point. The radiotherapy planning system normalizes the segmented machine jump values corresponding to the candidate control point to obtain normalized segmented machine jump values. The radiotherapy planning system multiplies the normalized error amplitude by the normalized segmented machine jump values to obtain the contribution weight of the candidate leaf pair. By normalizing the error amplitude and segmented machine jump values of the candidate leaf pair separately before calculating the product, the contribution weight can be ensured to fall within a preset value range, which is beneficial for comparing the contribution weights of multiple candidate leaf pairs in subsequent steps.
[0084] In some optional embodiments, the actual energy flux distribution of each control point after being disturbed by leaf position error is generated based on the effective radiation area change rate of each leaf pair at each control point and the segmented machine jump value corresponding to each control point. This includes: the radiotherapy planning system can obtain the effective radiation area change rate matrix at each control point, wherein the effective radiation area change rate matrix at each control point is composed of the effective radiation area change rates of all leaf pairs at that control point; and perform an Adama product operation on the effective radiation area change rate matrix at each control point and the segmented machine jump value of that control point to obtain the actual energy flux distribution of that control point after being disturbed by leaf position error.
[0085] For example, the effective radiation area change rate matrix can represent a dataset at each control point consisting of the effective radiation area change rates of all leaf pairs arranged in leaf pair index order. The Adama product operation can represent the element-wise multiplication of corresponding positions between two matrices of the same dimension. The radiotherapy planning system obtains the effective radiation area change rate matrix at each control point and performs an Adama product operation on this matrix and the piecewise machine jump value of that control point to obtain the actual energy flux distribution at that control point after perturbation by leaf position errors. Through the Adama product operation, the effective radiation area change rate of each leaf pair can be multiplied one-to-one with the piecewise machine jump value of that control point along the leaf pair dimension, so that the actual energy flux distribution at the corresponding position of each leaf pair reflects the term-wise coupling relationship between the area change rate and the dose weight.
[0086] Optionally, by multiplying the effective irradiated area change rate of each blade pair by the segmented machine jump value of the control point, when a larger blade position error occurs at a control point with a higher segmented machine jump value, the flux disturbance component of that blade pair is relatively large and can be marked as a strong disturbance source; when the blade position error occurs at a control point with a lower segmented machine jump value, the flux disturbance component of that blade pair is relatively small and can be treated as a weak disturbance. This method can reflect the differentiated impact of position errors of different blade pairs under different dose weighting conditions in the actual energy flux distribution.
[0087] In some embodiments, the radiotherapy planning system can obtain an effective radiation area change rate matrix for each control point. Each element of this matrix corresponds to a leaf pair at that control point, and the value of the element represents the effective radiation area change rate of that leaf pair at that control point. The radiotherapy planning system obtains the segmented machine jump value corresponding to the control point. The system multiplies each element of the effective radiation area change rate matrix by the segmented machine jump value to obtain the flux perturbation component corresponding to each leaf pair at that control point. The system arranges the flux perturbation components corresponding to all leaf pairs in leaf pair index order, forming the actual energy flux distribution at the control point after perturbation by leaf position error. By multiplying each element of the effective radiation area change rate matrix by the segmented machine jump value, the flux perturbation component of each leaf pair can independently reflect the coupling result of the area change rate and dose weight of that leaf pair.
[0088] In other embodiments, the radiotherapy planning system can arrange the effective radiation area change rate of all leaf pairs at each control point according to the leaf pair index order, forming a row vector of effective radiation area change rate for that control point. The radiotherapy planning system performs a scalar-vector multiplication operation on this row vector of effective radiation area change rate and the piecewise machine jump value corresponding to that control point, that is, multiplying the piecewise machine jump value by each element in the row vector to obtain the actual energy flux distribution row vector for that control point. In practical applications, the actual energy flux distribution row vectors of multiple control points can be arranged according to the time order of the control points to form the actual energy flux distribution matrix of the entire radiotherapy plan. Through the scalar-vector multiplication operation, element-wise coupling of area change rate and dose weight can be achieved in the leaf pair dimension.
[0089] In some optional embodiments, the effective irradiation area variation rate of each leaf pair at each control point is determined based on the ideal coordinates of each leaf and the leaf position error. This includes: the radiotherapy planning system can obtain the radiographic leaf gap constant and the primary collimator boundary mask of the accelerator, wherein the radiographic leaf gap constant is a constant corresponding to the accelerator used to correct for radiation leakage between leaves, and the primary collimator boundary mask is used to define the irradiation field boundary; based on the ideal coordinates of each leaf pair at each control point, combined with the radiographic leaf gap constant and the primary collimator boundary mask of the accelerator, the ideal effective irradiation area of each leaf pair at each control point is determined, wherein the ideal coordinates of each leaf pair are determined by the ratio of the ideal coordinates of each leaf pair to the ideal coordinates of each leaf pair. The ideal coordinates of each blade are used to construct the effective irradiated area, which is the opening area formed by the blade pairs under the ideal coordinates of each blade. Based on the predicted coordinates of each blade pair at each control point, combined with the radiometric blade gap constant of the accelerator and the primary collimator boundary mask, the predicted effective irradiated area of each blade pair at each control point is determined. The predicted coordinates of each blade pair are composed of the predicted coordinates of each blade in the pair, and the predicted effective irradiated area is the opening area formed by the blade pairs under the predicted coordinates of each blade. The relative difference between the predicted effective irradiated area and the ideal effective irradiated area of each blade pair at each control point is calculated to obtain the rate of change of the effective irradiated area of the blade pair at each control point.
[0090] For example, the radiographic blade gap constant can be used to represent a constant corresponding to the accelerator used to correct for radiation leakage between blades. This constant reflects the radiation leakage characteristics between multi-leaf collimator blades caused by machining accuracy and assembly tolerances. The primary collimator boundary mask can be used to define the radiation field boundary, reflecting the extent to which the primary collimator limits the beam boundary. The ideal effective irradiation area can be used to represent the opening area formed by each pair of blades under the ideal coordinates of each blade. The predicted effective irradiation area can be used to represent the opening area formed by each pair of blades under the predicted coordinates of each blade. The radiotherapy planning system obtains the radiographic blade gap constant and the primary collimator boundary mask of the accelerator, and determines the ideal effective irradiation area based on the ideal coordinates of each pair of blades at each control point, combined with the radiographic blade gap constant and the primary collimator boundary mask. It also determines the predicted effective irradiation area based on the predicted coordinates of each pair of blades at each control point, combined with the radiographic blade gap constant and the primary collimator boundary mask. Finally, it calculates the effective irradiation area change rate by calculating the relative difference between the predicted effective irradiation area and the ideal effective irradiation area. By introducing the radiometric blade gap constant and the primary collimator boundary mask, the calculation of the effective irradiated area can simultaneously consider the inter-blade radiation leakage correction and the irradiated field boundary limitation, which is beneficial to improving the accuracy of the calculation of the effective irradiated area change rate.
[0091] In some embodiments, the radiotherapy planning system calculates the ideal aperture width between two blades at each control point based on the ideal coordinates of the two blades in each blade alignment. The system then calculates the predicted actual aperture width between the two blades based on the predicted coordinates of the two blades in the blade alignment. The system adds the ideal aperture width to the radiographic blade gap constant to obtain a corrected ideal aperture width, which can be used to compensate for radiation leakage in the aperture width. Based on the corrected ideal aperture width, the system determines the ideal effective irradiation area by combining the irradiation field boundary range defined by the primary collimator boundary mask. Similarly, the system adds the predicted actual aperture width to the radiographic blade gap constant to obtain a corrected predicted actual aperture width, and then uses this to determine the predicted effective irradiation area by combining it with the primary collimator boundary mask. Finally, the system calculates the difference between the predicted effective irradiation area and the ideal effective irradiation area, and divides this difference by the ideal effective irradiation area to obtain the rate of change of the effective irradiation area of the blade alignment at that control point. By calculating the ideal effective illumination area and the predicted effective illumination area separately and then calculating the relative difference, the rate of change of effective illumination area can reflect the degree of influence of leaf position error on the opening area.
[0092] In other embodiments, the radiotherapy planning system calculates the ideal geometric projection area of the leaf pair on the irradiation plane using geometric projection based on the ideal coordinates of the two leaves in each leaf pair at each control point, the radiographic leaf gap constant, and the primary collimator boundary mask. The area of this ideal geometric projection area is determined as the ideal effective irradiation area. The radiotherapy planning system also calculates the predicted actual geometric projection area of the leaf pair on the irradiation plane using geometric projection based on the predicted coordinates of the two leaves in the leaf pair, the radiographic leaf gap constant, and the primary collimator boundary mask. The area of this predicted actual geometric projection area is determined as the predicted effective irradiation area. The radiotherapy planning system calculates the difference between the predicted effective irradiation area and the ideal effective irradiation area, and divides this difference by the ideal effective irradiation area to obtain the rate of change of the effective irradiation area of the leaf pair at that control point. Determining the effective irradiation area using geometric projection allows for the acquisition of the effective irradiation area of each leaf pair while considering the radiographic leaf gap constant and the primary collimator boundary mask.
[0093] In some optional embodiments, the actual energy flux distribution of each control point after perturbation by leaf position errors is generated based on the rate of change of effective irradiated area of each leaf pair at each control point and the segmented machine jump value of each control point. This includes: the radiotherapy planning system can construct a neural network containing an attention mechanism; obtaining the multi-leaf collimator leaf sequence matrix of each control point, wherein the multi-leaf collimator leaf sequence matrix consists of the ideal coordinates and leaf position errors of all leaves at each control point; using the multi-leaf collimator leaf sequence matrix and the segmented machine jump value of each control point as input to the neural network, and the neural network outputs the actual energy flux distribution of each control point after perturbation by leaf position errors by learning the mapping relationship between the rate of change of effective irradiated area of each leaf pair at each control point and the segmented machine jump value of each control point.
[0094] For example, a neural network can represent a machine learning model incorporating an attention mechanism, which can be used to assign different attention weights to features at different locations during the neural network's processing of input data. The multi-leaf collimator blade sequence matrix can represent a dataset consisting of the ideal coordinates and blade position errors of all blades at each control point. The radiotherapy planning system constructs a neural network incorporating an attention mechanism, obtains the multi-leaf collimator blade sequence matrix for each control point, and uses this multi-leaf collimator blade sequence matrix and the segmented machine jump values for each control point as input to the neural network. The neural network learns the mapping relationship between the effective radiation area change rate of each blade pair at each control point and the segmented machine jump values for each control point, outputting the actual energy flux distribution at each control point after perturbation by blade position errors. By using a neural network incorporating an attention mechanism to process the multi-leaf collimator blade sequence matrix and segmented machine jump values, the attention mechanism can be used to automatically learn the correlation between different blade pairs, which is beneficial for capturing local and global features in the blade sequence when the neural network outputs the actual energy flux distribution.
[0095] In some embodiments, the radiotherapy planning system can construct a three-dimensional convolutional neural network (3D Convolutional Neural Network) incorporating an attention mechanism. This 3D Convolutional Neural Network may include 3D convolutional layers, attention layers, and fully connected layers. The 3D convolutional layers can be used to extract spatial features from the multi-leaf collimator blade sequence matrix. The attention layers can be used to assign weights to the features output by the 3D convolutional layers. The fully connected layers can be used to map the features output by the attention layers to the actual energy flux distribution. The radiotherapy planning system inputs the multi-leaf collimator blade sequence matrix and the piecewise machine jump value for each control point into the 3D Convolutional Neural Network. This 3D Convolutional Neural Network can learn the mapping relationship between the effective irradiation area change rate of each blade at each control point and the piecewise machine jump value, and output the actual energy flux distribution at the control point after perturbation by blade position errors. By processing the multi-leaf collimator blade sequence matrix through a 3D Convolutional Neural Network, features of the blade sequence in both spatial and temporal dimensions can be extracted simultaneously using the 3D convolutional kernel.
[0096] In other embodiments, the radiotherapy planning system can construct an attention-based Transformer neural network, which may include a multi-head self-attention module and a feedforward network module. The radiotherapy planning system vectorizes the multi-leaf collimator blade sequence matrix at each control point to obtain a blade sequence feature vector corresponding to that control point. The system concatenates this blade sequence feature vector with the segmented machine jump values of the control point to obtain a combined feature vector. This combined feature vector is then input into the Transformer neural network. The Transformer neural network uses the multi-head self-attention module to weight and aggregate different elements in the combined feature vector, and performs a nonlinear transformation through the feedforward network module, ultimately outputting the actual energy flux distribution at the control point after perturbation by blade position errors. By processing the multi-leaf collimator blade sequence matrix using an attention-based Transformer neural network, the dependencies between different blade pairs in the blade sequence can be modeled using the multi-head self-attention mechanism.
[0097] See Figure 3 According to one aspect of the embodiments of this application, a radiotherapy plan execution difference determination device based on accelerator hardware parameters is provided, including: a first determination unit, a first processing unit, a second determination unit, and a second processing unit.
[0098] The system comprises: a first determining unit for determining the ideal coordinates of each leaf of the multi-leaf collimator at each control point and the segmented machine jump value corresponding to each control point based on the radiotherapy plan; the segmented machine jump value corresponding to each control point is used to characterize the dose weight of the irradiation under the opening shape of that control point; a first processing unit for predicting the leaf position error of each leaf at each control point based on the ideal coordinates of each leaf at each control point and the hardware physical state parameters of the accelerator; a second determining unit for determining the actual energy flux distribution of each control point after being disturbed by the leaf position error based on the ideal coordinates of each leaf and the leaf position error; and a second processing unit for determining the execution difference of the accelerator on the radiotherapy plan based on the difference information between the actual energy flux distribution and the planned energy flux distribution.
[0099] Optionally, the second determining unit includes: a first determining subunit, used to determine the effective illumination area change rate of each blade pair at each control point based on the ideal coordinates of each blade and the blade position error, wherein the effective illumination area change rate is used to characterize the degree of change in the opening area of each blade pair at each control point due to the blade position error; and a second determining subunit, used to determine the actual energy flux distribution of each control point after being disturbed by the blade position error, based on the effective illumination area change rate of each blade pair at each control point and the segmented machine jump value corresponding to each control point.
[0100] Optionally, the first processing unit includes: a parameter acquisition subunit for acquiring hardware physical state parameters of the accelerator, wherein the hardware physical state parameters include at least the mechanical motion delay time of the accelerator and the gravitational sag of the accelerator at at least one rack angle; an error determination subunit for determining a dynamic error amount based on the hardware physical state parameters of the accelerator, the instantaneous velocity of the blade, and the instantaneous acceleration of the blade, wherein the dynamic error amount is used to correct the ideal coordinates; a coordinate determination subunit for determining the predicted coordinates of the blade at each control point based on the dynamic error amount and the ideal coordinates of each blade at each control point; and a position error determination subunit for determining the blade position error of the blade at each control point based on the predicted coordinates and ideal coordinates of each blade at each control point.
[0101] Optionally, the radiotherapy plan execution difference determination device based on accelerator hardware parameters further includes: a fluence map generation unit, used to generate an actual energy fluence map for each irradiation field based on the actual energy fluence distribution of each control point after generating the actual energy fluence distribution of each control point affected by blade position error; a dose reconstruction unit, used to reconstruct the actual dose distribution in vivo of the target object based on the actual energy fluence map and the medical image of the target object, wherein the actual dose distribution in vivo is the actual irradiated dose of each voxel in the target object after considering the hardware error of the accelerator, and the target object is the target of the radiotherapy plan; a deviation determination unit, used to determine the dose deviation between the actual dose distribution in vivo and the planned dose distribution, wherein the planned dose distribution is the planned irradiated dose of the target object determined based on the radiotherapy plan; and a candidate determination unit, used to perform back projection along the ray geometry path towards the head of the accelerator when the dose deviation exceeds a preset threshold, and determine candidate control points and candidate blade pairs related to the dose deviation based on the back projection results.
[0102] Optionally, the radiotherapy planning execution difference determination device based on accelerator hardware parameters further includes: a weight acquisition unit, used to acquire the contribution weight of each candidate leaf pair corresponding to the candidate control point after determining the candidate control point and candidate leaf pair related to the dose deviation based on the back projection results, wherein the contribution weight is used to characterize the contribution of the mechanical motion error of each candidate leaf pair under the candidate control point to the dose deviation; an index determination unit, used to determine the deviation contribution index of each candidate leaf pair corresponding to the candidate control point based on the contribution weight of each candidate leaf pair corresponding to the candidate control point, wherein the deviation contribution index is used to characterize the degree of contribution of the mechanical motion error of each candidate leaf pair to the dose deviation corresponding to each voxel of the target object; and a target determination unit, used to determine the target control point and target leaf pair causing the dose deviation from the candidate control point and candidate leaf pair based on the deviation contribution index.
[0103] Optionally, the candidate determination unit includes: a reverse tracing subunit, used to trace back from the abnormal voxel with dose deviation exceeding the threshold along the incident direction of the ray geometry path corresponding to the abnormal voxel in the radiotherapy plan to the head of the accelerator, and determine the multi-leaf collimator opening region of each control point traversed by the ray geometry path; and a candidate determination subunit, used to take the control point and leaf pair corresponding to the multi-leaf collimator opening region as candidate control point and candidate leaf pair.
[0104] Optionally, the weight acquisition unit includes a calculation subunit, used to calculate the product of the error magnitude of each candidate blade pair corresponding to the candidate control point and the segmented machine jump value of the candidate control point, so as to obtain the contribution weight of the candidate blade pair.
[0105] Optionally, the second determining subunit includes: a matrix acquisition module, used to acquire the effective illumination area change rate matrix under each control point, wherein the effective illumination area change rate matrix under each control point is composed of the effective illumination area change rates of all blade pairs under that control point; and a calculation module, used to perform an Adama product operation on the effective illumination area change rate matrix under each control point and the piecewise machine jump value of that control point to obtain the actual energy flux distribution of that control point after being disturbed by the blade position error.
[0106] Optionally, the first determining subunit includes: a constant acquisition module, used to acquire the radiometric blade gap constant and the primary collimator boundary mask of the accelerator, wherein the radiometric blade gap constant is a constant corresponding to the accelerator used to correct for radiation leakage between blades, and the primary collimator boundary mask is used to define the irradiation field boundary; and an ideal area determination module, used to determine the ideal effective irradiation area of each blade pair at each control point based on the ideal coordinates of each blade pair at each control point, combined with the radiometric blade gap constant and the primary collimator boundary mask of the accelerator, wherein the ideal coordinates of each blade pair are composed of the ideal coordinates of each blade in the blade pair, and the ideal effective irradiation area is the ideal area of each blade. The module determines the opening area formed by each blade pair under the coordinate system. The predicted area determination module is used to determine the predicted effective illumination area of each blade pair at each control point based on the predicted coordinates of each blade pair at each control point, combined with the accelerator's radiometric blade gap constant and the primary collimator boundary mask. The predicted coordinates of each blade pair are composed of the predicted coordinates of each blade in the pair, and the predicted effective illumination area is the opening area formed by each blade pair under the predicted coordinates of each blade. The rate of change determination module calculates the relative difference between the predicted effective illumination area and the ideal effective illumination area of each blade pair at each control point, obtaining the rate of change of the effective illumination area of the blade pair at each control point.
[0107] Optionally, the second determining subunit includes: a network construction module for constructing a neural network incorporating an attention mechanism; a matrix acquisition module for acquiring the multi-leaf collimator blade sequence matrix for each control point, wherein the multi-leaf collimator blade sequence matrix consists of the ideal coordinates and blade position errors of all blades at each control point; and a processing module for using the multi-leaf collimator blade sequence matrix and the piecewise machine jump values of each control point as inputs to the neural network, and for the neural network to learn the mapping relationship between the effective illumination area change rate of each blade at each control point and the piecewise machine jump values of each control point, and output the actual energy flux distribution of each control point after being disturbed by the blade position error.
[0108] According to one aspect of the present application, a computer-readable storage medium is provided, which stores a computer program, wherein when the computer program is executed, the device on which the computer-readable storage medium is located executes the above-described method for determining radiotherapy plan execution differences based on accelerator hardware parameters.
[0109] According to one aspect of the embodiments of this application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to perform the above-described method for determining radiotherapy plan execution differences based on accelerator hardware parameters.
[0110] According to one aspect of the embodiments of this application, a computer program product is provided, including a computer program or instructions that, when executed by a processor, implement the above-described method for determining radiotherapy plan execution differences based on accelerator hardware parameters.
[0111] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0112] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0113] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.
[0114] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0115] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0116] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0117] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for determining radiotherapy plan execution differences based on accelerator hardware parameters, characterized in that, include: Based on the radiotherapy plan, the ideal coordinates of each leaf of the multi-leaf collimator at each control point and the segmented machine jump value corresponding to each control point are determined, wherein the segmented machine jump value corresponding to each control point is used to characterize the dose weight of the irradiation under the opening shape of the control point. Based on the ideal coordinates of each blade at each control point and the hardware physical state parameters of the accelerator, predict the blade position error of each blade at each control point; Based on the ideal coordinates of each blade and the blade position error, the actual energy flux distribution of each control point after being disturbed by the blade position error is determined; Based on the difference between the actual energy flux distribution and the planned energy flux distribution, the execution difference of the accelerator on the radiotherapy plan is determined.
2. The method according to claim 1, characterized in that, Based on the ideal coordinates of each blade and the blade position error, the actual energy flux distribution of each control point after being disturbed by the blade position error is determined, including: Based on the ideal coordinates of each blade and the blade position error, the effective illumination area change rate of each blade at each control point is determined, wherein the effective illumination area change rate is used to characterize the degree of change in the opening area of each blade at each control point due to the blade position error. Based on the rate of change of the effective irradiated area of each blade at each control point and the segmented machine jump value corresponding to each control point, the actual energy flux distribution of each control point after being disturbed by the blade position error is determined.
3. The method according to claim 1, characterized in that, Based on the ideal coordinates of each blade at each control point and the hardware physical state parameters of the accelerator, predict the blade position error of each blade at each control point, including: Obtain the hardware physical state parameters of the accelerator, wherein the hardware physical state parameters include at least the mechanical motion delay time of the accelerator and the gravitational sag of the accelerator at at least one rack angle; The dynamic error is determined based on the hardware physical state parameters of the accelerator, the instantaneous velocity of the blades, and the instantaneous acceleration of the blades, wherein the dynamic error is used to correct the ideal coordinates; Based on the dynamic error and the ideal coordinates of each blade at each control point, determine the predicted coordinates of the blade at each control point. The blade position error at each control point is determined based on the predicted and ideal coordinates of each blade at each control point.
4. The method according to claim 1, characterized in that, After generating the actual energy flux distribution at each control point after being disturbed by the blade position error, the method further includes: Generate an actual energy flux map for each irradiation field based on the actual energy flux distribution of each control point; Based on the actual energy flux map and the medical images of the target object, the actual dose distribution in the body of the target object is reconstructed, wherein the actual dose distribution in the body is the actual radiation dose of each voxel in the body of the target object after considering the hardware error of the accelerator, and the target object is the target of the radiotherapy plan; Determine the dose deviation between the actual dose distribution in vivo and the planned dose distribution, wherein the planned dose distribution is the planned radiation dose of the target subject determined based on the radiotherapy plan; If the dose deviation exceeds a preset threshold, a reverse projection is performed along the ray geometry path toward the head of the accelerator, and candidate control points and candidate blade pairs related to the dose deviation are determined based on the reverse projection results.
5. The method according to claim 4, characterized in that, After determining the candidate control points and candidate blade pairs related to the dose deviation based on the back projection results, the method further includes: Obtain the contribution weight of each candidate blade pair corresponding to the candidate control point, wherein the contribution weight is used to characterize the contribution of the mechanical motion error of each candidate blade pair under the candidate control point to the dose deviation. Based on the contribution weight of each candidate blade pair corresponding to the candidate control point, the deviation contribution index of each candidate blade pair corresponding to the candidate control point is determined, wherein the deviation contribution index is used to characterize the degree of contribution of the mechanical motion error of each candidate blade pair to the dose deviation corresponding to each voxel of the target object. Based on the deviation contribution index, the target control point and target leaf pair that cause the dose deviation are determined from the candidate control point and the candidate leaf pair.
6. The method according to claim 4, characterized in that, A back projection is performed along the ray geometry path toward the head of the accelerator, and candidate control points and candidate blade pairs related to the dose deviation are determined based on the back projection results, including: Starting from the abnormal voxel whose dose deviation exceeds the threshold, the radiation direction of the abnormal voxel is traced backward along the incident direction of the ray geometry path corresponding to the ray in the radiotherapy plan to the head of the accelerator, and the multi-leaf collimator opening region of each control point through which the ray geometry path passes is determined. The control points and blade pairs corresponding to the opening region of the multi-leaf collimator are used as the candidate control points and the candidate blade pairs.
7. The method according to claim 5, characterized in that, Obtain the contribution weight of each candidate blade pair corresponding to the candidate control point, including: The contribution weight of a candidate blade pair is obtained by multiplying the error magnitude of each candidate blade pair corresponding to the candidate control point with the piecewise machine jump value of the candidate control point.
8. The method according to claim 2, characterized in that, Based on the rate of change of effective irradiated area for each blade at each control point and the segmented machine jump value corresponding to each control point, the actual energy flux distribution at each control point after being disturbed by blade position error is generated, including: Obtain the effective illumination area change rate matrix for each control point, wherein the effective illumination area change rate matrix for each control point is composed of the effective illumination area change rates of all leaf pairs at that control point; The effective illumination area change rate matrix at each control point is multiplied by the segmented machine jump value of that control point using the Adama product to obtain the actual energy flux distribution at that control point after being disturbed by the blade position error.
9. The method according to claim 2, characterized in that, Based on the ideal coordinates and positional error of each blade, determine the rate of change of effective illuminated area for each blade at each control point, including: Obtain the radiometric blade gap constant and the primary collimator boundary mask of the accelerator, wherein the radiometric blade gap constant is a constant corresponding to the accelerator used to correct radiation leakage between blades, and the primary collimator boundary mask is used to define the irradiation field boundary; Based on the ideal coordinates of each blade pair at each control point, and in combination with the radiometric blade gap constant of the accelerator and the primary collimator boundary mask, the ideal effective illumination area of each blade pair at each control point is determined. The ideal coordinates of each blade pair are composed of the ideal coordinates of each blade in the pair, and the ideal effective illumination area is the opening area formed by each blade pair at the ideal coordinates of each blade. Based on the predicted coordinates of each blade pair at each control point, and combined with the radiometric blade gap constant of the accelerator and the primary collimator boundary mask, the predicted effective illumination area of each blade pair at each control point is determined. The predicted coordinates of each blade pair are composed of the predicted coordinates of each blade in the pair, and the predicted effective illumination area is the opening area formed by each blade pair at the predicted coordinates of each blade. Calculate the relative difference between the predicted effective illumination area and the ideal effective illumination area for each blade at each control point to obtain the rate of change of the effective illumination area for that blade at each control point.
10. The method according to claim 2, characterized in that, Based on the rate of change of effective irradiated area for each blade at each control point and the segmented machine jump value for each control point, the actual energy flux distribution at each control point after perturbation by blade position error is generated, including: Construct a neural network that includes an attention mechanism; Obtain the multi-leaf collimator blade sequence matrix for each control point, wherein the multi-leaf collimator blade sequence matrix is composed of the ideal coordinates and blade position errors of all blades at each control point; The multi-leaf collimator blade sequence matrix and the segmented machine jump values of each control point are used as inputs to the neural network. The neural network learns the mapping relationship between the effective illumination area change rate of each blade at each control point and the segmented machine jump values of each control point, and outputs the actual energy flux distribution of each control point after being disturbed by the blade position error.
11. A device for determining radiotherapy plan execution differences based on accelerator hardware parameters, characterized in that, include: The first determining unit is used to determine the ideal coordinates of each leaf of the multi-leaf collimator at each control point and the segmented machine jump value corresponding to each control point based on the radiotherapy plan, wherein the segmented machine jump value corresponding to each control point is used to characterize the dose weight of the irradiation under the opening shape of the control point. The first processing unit is used to predict the blade position error of each blade at each control point based on the ideal coordinates of each blade at each control point and the hardware physical state parameters of the accelerator. The second determining unit is used to determine the actual energy flux distribution of each control point after being disturbed by the blade position error, based on the ideal coordinates of each blade and the blade position error. The second processing unit is used to determine the execution difference of the radiotherapy plan by the accelerator based on the difference information between the actual energy flux distribution and the planned energy flux distribution.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed, the device in which the computer-readable storage medium is located performs the radiotherapy plan execution difference determination method based on accelerator hardware parameters as described in any one of claims 1 to 10.
13. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to perform the method for determining radiotherapy plan execution differences based on accelerator hardware parameters as described in any one of claims 1 to 10.
14. A computer program product, characterized in that, Includes a computer program or instructions that, when executed by a processor, implement the method for determining radiotherapy plan execution differences based on accelerator hardware parameters as described in any one of claims 1 to 10.
