Calculation method and related equipment for primary energy spectrum of medical particle accelerator
Through discrete energy characterization and iterative optimization algorithms, the Gaussian distribution accuracy deviation in the calculation of the primary energy spectrum of the medical particle accelerator is solved, the energy-weight relationship of monoenergetic particles is optimized, and the calculation accuracy of the radiation field distribution of the proton and heavy ion accelerator is improved. Cancer treatment provides more precise support.
Patent Information
- Application Number
- CN202410552066.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-07
AI Technical Summary
The existing primary energy spectrum calculation method for medical particle accelerators relies on Gaussian distribution, has accuracy deviations, and fails to fully consider the impact of components such as ionization chambers on the particle travel path on the energy spectrum distribution, resulting in inaccurate dose deposition calculations.
Discrete monoenergetic energy is used to characterize the primary energy spectrum. Through iterative optimization algorithms and constraint conditions, the integrated depth dose distribution of the proton and heavy ion accelerator in the medium is inferred, the monoenergetic particle energy-weight relationship is optimized, and the calculation accuracy is improved.
It improves the calculation accuracy of the radiation field distribution of the proton and heavy ion accelerator, enhances the accuracy of tumor treatment, is suitable for different application scenarios, and verifies the reliability of the calculation results.
Smart Images

Figure CN118131302B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of proton and heavy ion therapy, and in particular to a calculation method for a primary energy spectrum of a medical particle accelerator and related equipment. Background Art
[0002] Particles such as protons and heavy ions have become an important means of treating malignant tumors. Compared with traditional X-ray radiotherapy, their dose deposition has obvious physical advantages, namely, the Bragg Peak (BP) effect. The depth and width of the BP formed by protons and heavy ions in the medium, in addition to being related to the physical properties of the medium material (such as material composition, density, average ionization energy, etc.), are heavily dependent on the primary energy spectrum information generated by the particle accelerator, that is, the broadening of the average energy and initial energy. Therefore, the accurate simulation of the primary energy spectrum of the particle beam provided by medical particle accelerators such as proton and heavy ion accelerators is the premise and guarantee for the rational use of its BP advantage, and has important clinical significance for the precise treatment of tumors.
[0003] Although the primary energy spectrum is an important physical quantity of the proton and heavy ion accelerator, it is still limited by detection technology and detection means, and it is difficult to measure it directly experimentally. At present, the general method is to measure the integral depth dose (IDD) curve formed in water and infer the energy spectrum based on the curve distribution. According to the principle of energy deposition caused by the interaction between charged particles and matter, the rear end depth of 80% of the maximum dose on the IDD curve corresponds to the range of the particle in the medium (water), and the range is determined by the initial energy of the particle; the depth difference between the rear end and the front end of 80% of the maximum dose (usually called Bragg Peak Width, BPW) and the depth difference between 20% and 80% of the rear end of the maximum dose are determined by the energy broadening of the particle. Therefore, the primary energy spectrum of the proton and heavy ion accelerator is usually described as a Gaussian distribution, the mean of the distribution represents the average energy of the particle, and the standard deviation represents the broadening of the average energy.
[0004] The energy spectrum described as a Gaussian distribution may deviate from the actual energy spectrum in some application scenarios, which limits the accuracy of energy spectrum calculation using Gaussian sources to a certain extent. Summary of the invention
[0005] The purpose of the present invention is to provide a calculation method and related equipment for the primary energy spectrum of a medical particle accelerator, using discrete monoenergetic energy to characterize the primary energy spectrum of a medical particle accelerator; an accurate and rapid inversion method for the primary energy spectrum generated by a proton and heavy ion accelerator; an optimization method for inverting the primary energy spectrum based on the IDD measurement results generated by a proton and heavy ion accelerator in a medium, thereby improving the calculation accuracy of the radiation field distribution of a proton and heavy ion accelerator and providing important support for the precise treatment of tumors.
[0006] The purpose of the present invention is achieved by the following technical solutions:
[0007] In a first aspect, the present application proposes a method for calculating a primary energy spectrum of a medical particle accelerator, the method comprising:
[0008] According to the particle type generated by the accelerator, the IDD of monoenergetic particles is obtained by using the dose algorithm and setting the energy interval;
[0009] Obtain the measured IDD curve. Taking the measured IDD curve as the goal, obtain the weights corresponding to different monoenergetic particles and the relationship between the energy and weight of monoenergetic particles through iterative optimization and constraint conditions.
[0010] According to the relationship between the energy and weight of the monoenergetic particles, a calculation result is obtained by using the dose algorithm;
[0011] The calculation result is compared with the measurement result for verification, and according to the verification result, it is determined whether to perform iterative optimization again.
[0012] Optionally, the energy intervals include equal intervals and variable intervals.
[0013] Preferably, obtaining and measuring an IDD curve comprises:
[0014] The IDD reflection formed in the medium by the primary energy spectrum generated by the accelerator is measured by the detector to obtain the measured IDD curve.
[0015] Preferably, the constraint conditions include: the number of monoenergetic energies, the lowest weight of each energy, the highest weight, the minimum energy interval and / or the maximum energy interval.
[0016] Preferably, the method for setting the constraint condition includes:
[0017] According to the difference between the range of the monoenergetic IDD and the range of the measured IDD, the relationship between the difference size and the weight is set.
[0018] Preferably, the step of obtaining weights corresponding to different monoenergetic particles and the relationship between the energy and weight of the monoenergetic particles through iterative optimization and constraint conditions includes: obtaining the optimal solution under the target and constraint conditions; the target is the IDD measurement result;
[0019] The iterative optimization includes executing the optimization algorithm and optimizing the termination condition;
[0020] The optimization termination condition includes a first termination condition, a second termination condition and / or a third termination condition.
[0021] Preferably, the first termination condition is to stop the optimization and output the result when the number of iterations meets the preset number; the second termination condition is to stop the optimization and output the result when the difference between the IDD calculated value and the corresponding measured value is within the preset difference range; the third termination condition is to stop the optimization and output the result when the value of the convergence speed changing with the increase in the number of iterations is less than the preset change threshold.
[0022] Preferably, the calculation results include: the calculated monoenergetic IDD curve, the total IDD curve formed by weighting the IDD of all monoenergetic particles, the energy-weight relationship of the monoenergetic particles, and the dose size and dose distribution of the particles at any spatial position in the medium obtained based on the monoenergetic particle energy-weight relationship and through a dose algorithm.
[0023] Optionally, comparing and verifying the calculation result with the measurement result, and determining whether to re-perform iterative optimization according to the verification result, includes:
[0024] Comparing the calculated total IDD distribution with the measured results to obtain the first accuracy of the calculated results;
[0025] If the first accuracy is less than a preset accuracy threshold, the constraint conditions and / or iteration termination conditions are modified to continue the optimization.
[0026] Optionally, comparing and verifying the calculation result with the measurement result, and determining whether to re-perform iterative optimization according to the verification result, includes:
[0027] Compare the various parameters of the calculated IDD curve with the corresponding parameters of the measured IDD curve. If the deviation of the parameters is outside the acceptable range, re-perform iterative optimization.
[0028] The parameters include the range formed by protons and heavy ions in the medium, the depth of the corresponding Bragg peak on the IDD curve, the width of the Bragg peak and / or the width of the falling edge of the Bragg peak.
[0029] In a second aspect, the present application provides a device for calculating a primary energy spectrum of a medical particle accelerator, the device comprising:
[0030] The first acquisition module is used to obtain the IDD of monoenergetic particles according to the type of particles generated by the accelerator through a dose algorithm and setting an energy interval;
[0031] The second acquisition module is used to obtain the measured IDD curve. Taking the measured IDD curve as the target, the weights corresponding to different monoenergetic particles and the relationship between the energy and weight of the monoenergetic particles are obtained through iterative optimization and constraint conditions.
[0032] A calculation module, used to obtain a calculation result through a dose algorithm according to the relationship between the energy and weight of the monoenergetic particles;
[0033] The comparison and verification module is used to compare and verify the calculation result with the measurement result, and determine whether to re-perform iterative optimization based on the verification result.
[0034] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any method described in the present application or the functions of the device described in the present application when executing the computer program.
[0035] In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer instructions. When a computer reads the computer instructions, the computer executes the steps of any method described in the present application.
[0036] In a fifth aspect, the present application provides a particle accelerator, comprising the aforementioned device for calculating the primary energy spectrum of the medical particle accelerator.
[0037] In a sixth aspect, the present application provides a particle therapy system, comprising the aforementioned particle accelerator.
[0038] Compared with the prior art, the beneficial effects of the present invention include at least: fully considering the characteristics that the primary energy spectrum generated by the accelerator does not strictly obey the Gaussian distribution, and the influence of the ionization chamber and other components on the particle travel path on the particle energy spectrum distribution. The present invention fully considers the following factors: (1) The primary energy spectrum generated by the proton and heavy ion accelerator does not strictly obey the Gaussian distribution, and this description is only an approximate method; (2) Before the particles generated by the accelerator are drawn out from the accelerator exit window, they will collide with the ionization chamber, collimator and other components on the travel path, generating secondary particles with low energy and short range. These secondary particles usually deposit energy in the plateau area of the BP curve, resulting in an increase in the dose in the plateau area and a change in the peak-to-plateau ratio of the BP curve (the ratio of the dose at the Bragg peak depth to the dose at the plateau depth); (3) The heads of some accelerators are vacuum. In order to improve the calculation efficiency when simulating particle tracking, some dose algorithms usually start to transport the rays from the position of the exit window. There is a difference between the energy spectrum at this position and the actual energy spectrum.
[0039] The present invention changes the continuous energy spectrum into a discrete distribution to make it more in line with the actual situation; it can increase the accuracy of the description of the primary energy spectrum and also have stronger universality; from the perspective of mathematical expression, the integral and the differential can be converted into each other; the present application changes the description method of the primary energy spectrum from the traditional Gaussian distribution to a discrete monoenergetic distribution, optimizes the weight of the monoenergetic distribution, and ensures the preservation of important energy information, and also discards part of the energy that has a small impact on the result, so as to achieve a targeted approach; the present application uses the measurement data as the objective function, and calculates the weights corresponding to different monoenergetic particles through an iterative optimization algorithm; at the same time, different constraints can be set according to actual needs, such as energy intervals, maximum and minimum weights, etc., to obtain corresponding results under different circumstances; the accuracy of the optimization results can be controlled by setting the maximum difference between the optimization results and the measurement results. In addition, the optimization results (energy-weight) will be applied to algorithms such as Monte Carlo (MC) to verify the consistency between the actual calculation results and the measurement results to ensure that the required accuracy requirements can be met. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a schematic diagram of a method for calculating a primary energy spectrum of a medical particle accelerator according to an embodiment of the present invention;
[0041] Figure 2 It is a schematic flow chart of a method for calculating a primary energy spectrum of a medical particle accelerator according to an embodiment of the present invention;
[0042] Figure 3 It is a schematic diagram of a device for calculating the primary energy spectrum of a medical particle accelerator according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided to make the present invention more comprehensive and complete and to fully convey the concepts of example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar structures, and thus their repeated description will be omitted.
[0044] The words expressing positions and directions described in the present invention are all explained with reference to the accompanying drawings as examples, but they can be changed as needed, and all such changes are included in the protection scope of the present invention.
[0045] Reference Figure 1 :A method for calculating the primary energy spectrum of a medical particle accelerator, the method comprising:
[0046] According to the type of particles generated by the accelerator, a monoenergetic particle IDD is obtained by using a dose algorithm and setting an energy interval; the particles may be protons or heavy ions, and the medical particle accelerator may be a proton heavy ion accelerator for providing a proton beam or a heavy ion beam;
[0047] Obtain the measured IDD curve. Taking the measured IDD curve as the goal, obtain the weights corresponding to different monoenergetic particles and the relationship between the energy and weight of monoenergetic particles through iterative optimization and constraint conditions.
[0048] According to the relationship between the energy and weight of the monoenergetic particles, a calculation result is obtained by using the dose algorithm;
[0049] The calculation result is compared with the measurement result for verification, and according to the verification result, it is determined whether to perform iterative optimization again.
[0050] The working principle and effect of the above technical solution are: using discrete monoenergetic energy to characterize the primary energy spectrum of the proton heavy ion accelerator; an accurate and fast inversion method of the primary energy spectrum generated by the proton heavy ion accelerator; an optimization method for inverting the primary energy spectrum based on the IDD measurement results generated by the proton heavy ion accelerator in the medium, specifically:
[0051] The continuous energy distribution is represented by the discrete energy of monoenergetic particles. Based on the particle type (such as protons or heavy ions) generated by the accelerator, the IDD curves of different monoenergetic particles in the medium are calculated using MC or analytical isodose algorithms. The energy interval is preset to simulate and calculate the integrated depth dose (IDD) distribution of different monoenergetic particles in the medium (such as water). Monoenergetic particles represent particles of different energy levels that may be generated by the accelerator. The actual IDD curve data is obtained through experimental measurements. The simulated IDD of different monoenergetic particles is weighted by weight using an iterative optimization algorithm and set constraints (such as upper and lower limits of weights, minimum energy interval, etc.). The IDD is compared and optimized with the experimentally measured IDD; the weights corresponding to different monoenergetic particles are continuously adjusted to make the simulated IDD curve as close as possible to the experimentally measured IDD curve; during the optimization process, the algorithm will gradually determine the relationship between the energy of the monoenergetic particle and its corresponding weight, that is, the energy-weight relationship; reflecting the contribution of particles of different energies generated by the accelerator to the total dose deposition; after obtaining the energy-weight relationship, the dose algorithm is used again to calculate the radiation field distribution of the accelerator at any position in space based on this relationship; by simulating the transport and interaction of particles in the medium, accurate dose distribution calculation results are obtained.
[0052] Finally, the calculated results are compared and verified with the experimental results; if the difference between the two is within an acceptable range, the calculated results are considered reliable and can be used for subsequent clinical applications or accelerator performance evaluation; if the difference is large, it is necessary to re-iterate the optimization and adjust the energy-weight relationship until the calculated results are consistent with the experimental results.
[0053] The core of the whole working principle is to use the measurement data as the target, and to calculate the weights corresponding to different monoenergetic particles through iterative optimization algorithms; at the same time, different constraints can be set according to actual needs, such as energy intervals, maximum and minimum weights, etc., to obtain corresponding results in different situations; the accuracy of the optimization results can be controlled by setting the maximum difference between the optimization results and the measurement results. In addition, the optimization results (energy-weight) will be applied to algorithms such as MC to verify the consistency between the actual calculation results and the measurement results to ensure that the required accuracy requirements are met; the iterative optimization algorithm and dose algorithm are used in combination with experimental measurement data to accurately simulate and calculate the primary energy spectrum generated by the accelerator; by continuously improving the source distribution method and optimization algorithm, the calculation accuracy of the radiation field distribution of the proton and heavy ion accelerator is improved, providing important support for the precise treatment of tumors. This method and process can also be applied to the estimation and inverse calculation of the energy spectra of other heavy charged particles (such as O-16, Ne-20, Fe-56); the discrete energy method can be used to replace the representation of the continuous energy spectra of other particles; the optimization method can also be applied to the calculation of other physical quantities of protons and heavy ions, such as the optimized generation of the extended Bragg peak (SOBP).
[0054] In some embodiments, the energy intervals include equal intervals and / or variable intervals.
[0055] The working principle of the above technical solution is: the interval size between different energies can be adjusted according to the needs, and the calculation can be performed using equally spaced energies, or different energy intervals can be used in different energy ranges, such as: between 100 MeV-200 MeV, a fixed energy interval of 1 MeV can be used to calculate the IDD of a total of 101 energies; an energy interval of 10 MeV can be used between 100 MeV-190 MeV, and an energy interval of 1 MeV can be used between 191 MeV-200 MeV. The calculated medium can be water, water-equivalent materials (the effect of a unit length of material on particles is the same as that of a unit length of water), and human equivalent tissue materials, such as bones, lungs, etc. However, since the measurement results of the detector in the experiment are generally expressed as results in water, the medium here is usually water.
[0056] The effects of the above technical solution are: by using different energy intervals in different energy ranges, the particle energy distribution generated by the accelerator can be simulated more accurately; using smaller energy intervals in areas where the energy changes more dramatically can capture more detailed information, thereby improving the accuracy of the calculation; using larger energy intervals in areas where the energy changes more gently can reduce the amount of calculation and improve calculation efficiency.
[0057] The equal-interval method can simplify the calculation process, because each energy interval is processed in the same way, and there is no need to set different intervals for different energy ranges. This simplification makes the calculation process more standardized and easy to operate. The equal-interval method ensures that the distribution of particle energy is evenly covered throughout the energy range. This means that no specific energy area is overemphasized or ignored, so that the particle energy spectrum generated by the accelerator can be considered comprehensively and balanced; because the results calculated under the equal-interval method are consistent, it is easier to compare and verify with other research or experimental data; in the preliminary screening and optimization stage, the equal-interval method can be used as a fast and effective method to evaluate the impact of particles of different energies on dose distribution; by comparing the calculation results under different equal intervals, it can be preliminarily determined which energy ranges of particles are more important for the treatment effect, providing guidance for subsequent optimization work.
[0058] The energy interval setting can be flexibly adjusted according to specific application requirements. For example, in a scenario where it is necessary to focus on a specific energy range, a more detailed energy division can be performed on the range to obtain more accurate calculation results. Since the detector measurement results in the experiment are usually expressed as results in water, using water as the calculation medium can make the calculation results more comparable to the experimental results. At the same time, by adjusting the energy interval, it can be easier to match and verify with the experimental data, ensuring the accuracy and reliability of the calculation method.
[0059] Although results in water are commonly measured experimentally, the method also supports calculations for other media.
[0060] In summary, this energy interval setting method improves the calculation accuracy and efficiency in the calculation method of the primary energy spectrum of medical particle accelerators, adapts to the needs of different application scenarios, facilitates experimental verification and comparison, and supports multi-material simulation, providing strong support for the precise calculation and dose optimization of proton and heavy ion therapy.
[0061] In some embodiments, obtaining a measured IDD curve includes:
[0062] The IDD reflection formed in the medium by the primary energy spectrum generated by the accelerator is measured by the detector to obtain the measured IDD curve.
[0063] The working principle of the above technical solution is: the purpose of inverse energy spectrum is to obtain the primary energy spectrum distribution of the proton and heavy ion accelerator, that is, by using the energy spectrum of this distribution in the MC type dose algorithm, the result consistent with the measurement can be calculated. Therefore, the measurement data belongs to the reference standard in this method, which is used to verify the accuracy of the energy spectrum inverse. Usually, the energy and other physical properties of the primary energy spectrum generated by the accelerator can be reflected by the IDD formed in the medium (water). The IDD curve can be measured using a detector, and there are currently no standard requirements or regulations for the detector model, detection radius, etc., but the measurement results should have high reliability, accuracy and repeatability.
[0064] The effects of the above technical solution are: by directly measuring the IDD curve formed in the medium by the primary energy spectrum generated by the accelerator through the detector, the actual dose deposition situation can be obtained; it provides an accurate reference standard for the subsequent energy spectrum back-calculation, so that the energy spectrum distribution obtained by back-calculation is closer to the actual situation, and the accuracy of the calculation is improved; the measured IDD curve can be used as a reference standard to verify the accuracy of the back-calculated energy spectrum; by substituting the back-calculated energy spectrum distribution into the dose algorithm for calculation and comparing it with the measured IDD curve, the reliability of the back-calculated energy spectrum can be evaluated; if the calculation result is consistent with the measured data, it means that the back-calculated energy spectrum is reliable and can be used for subsequent clinical applications or accelerator performance evaluation.
[0065] Although there are no strict standard requirements for the detector model, detection radius, etc., this method has wide applicability. No matter what type and configuration of detector is used, as long as its measurement results have high reliability, accuracy and repeatability, it can be used to obtain the measured IDD curve. This makes this method more flexible and convenient in practical applications.
[0066] In summary, the IDD curve formed in the medium by measuring the primary energy spectrum generated by the accelerator using a detector and obtaining a method for measuring the IDD curve based on this improves the accuracy and reliability of the inverse energy spectrum, adapts to the needs of different detector types and configurations, and provides strong support for the precise calculation and dose optimization of proton and heavy ion therapy.
[0067] In some embodiments, the constraints include: the number of monoenergetic energies, the lowest weight of each energy, the highest weight, the minimum energy interval and / or the maximum energy interval.
[0068] In other embodiments, the method for setting the constraint conditions includes: setting the relationship between the range difference and the weight based on the difference between the single-energy IDD range and the measured IDD range; for example, the closer the range of a particle of a certain energy is to the measured range, the higher the initial weight it obtains, and vice versa.
[0069] The working principle of the above technical solution is as follows: in the calculation method of the primary energy spectrum of the medical particle accelerator, since the primary energy spectrum of the proton heavy ion accelerator can be reflected by the IDD formed in water, the target of this method is the actual experimental measurement IDD in water. The setting of the constraint conditions is to ensure that the energy spectrum distribution obtained by inversion is consistent with the physical laws and can match the experimental measurement data; the constraint conditions affect the operation process of the optimization algorithm, and then regulate the weight distribution of different monoenergetic particles in the final energy spectrum; first, the constraint conditions include the number of monoenergetic energies, which limits the number of monoenergetic particles considered in the inversion process; by setting the appropriate number of monoenergetic energies, it is possible to ensure the calculation accuracy while avoiding excessive calculation. Secondly, the minimum weight and maximum weight of each energy limit the contribution range of a single monoenergetic particle in the energy spectrum; it helps to prevent the weight of particles at certain energy levels from being too large or too small, thereby maintaining the rationality of the energy spectrum. In addition, the setting of the minimum energy interval and the maximum energy interval ensures that the interval between adjacent energy levels in the energy spectrum will not be too large or too small. This helps to maintain the smoothness of the energy spectrum and prevent excessive fluctuations in certain energy ranges.
[0070] In addition to the above direct constraints, weights can also be set based on the distance between the monoenergetic IDD range and the measured IDD range. This setting method is based on an assumption that the closer the range of a monoenergetic particle is to the measured range, the greater its contribution to the overall dose distribution should be. Therefore, the initial weights of particles of the corresponding energy can be adjusted based on the difference between the range and the measured range, so that the optimization algorithm is more inclined to select energies whose ranges are close to the measured range during the iteration process.
[0071] During the operation of the optimization algorithm, these constraints work together to guide the algorithm to gradually adjust the weights of different monoenergetic particles until the final energy spectrum distribution satisfies the constraints and is consistent with the experimental measurement data; through the above constraints, it can be ensured that the energy spectrum distribution obtained by inversion has both physical significance and can accurately reflect the primary energy spectrum characteristics generated by the accelerator.
[0072] In summary, the setting and working principle of the constraints are based on the requirements of physical laws and experimental data. By limiting and optimizing the operation process of the algorithm, it is ensured that the energy spectrum distribution obtained by inversion is both reasonable and accurate.
[0073] In some embodiments, the weights corresponding to different monoenergetic particles and the relationship between the energy and weight of the monoenergetic particles are obtained through iterative optimization and constraint conditions; including: obtaining the optimal solution under the target and constraint conditions; the target is the IDD measurement result;
[0074] The iterative optimization includes executing the optimization algorithm and optimizing the termination condition;
[0075] The optimization termination condition includes a first termination condition, a second termination condition and / or a third termination condition.
[0076] In some embodiments, the first termination condition is to stop optimization and output the result when the number of iterations meets the preset number; the second termination condition is to stop optimization and output the result when the difference between the IDD calculated value and the corresponding measured value is within the preset difference range; the third termination condition is to stop optimization and output the result when the value of the convergence speed changing with the increase in the number of iterations is less than the preset change threshold.
[0077] The working principle of the above technical solution is: in order to solve the optimal solution under the set objective function and constraints, an optimization method is needed to solve it. For the optimization problem in this article, the optimization methods that can be selected and used include but are not limited to: Bayesian estimation, maximum likelihood estimation, unconstrained least squares method, etc. In addition, it is necessary to set the conditions for the termination of the optimization, which can be but not limited to one or more of the following: termination by the number of iterations (that is, stop the optimization and output the results after the set number of iterations is met); termination by the minimum relative deviation between the calculated and measured results (that is, stop the optimization and output the results when the difference between the calculated and measured values is within a certain range); termination by the convergence rate (that is, stop the optimization and output the results when the convergence rate changes less than a certain value as the number of iterations increases).
[0078] The effects of the above technical solution are as follows: through iterative optimization, the weights of different monoenergetic particles can be gradually adjusted so that the final weighted dose distribution is more consistent with the experimental measurement data; at the same time, the setting of constraint conditions ensures the rationality of the energy spectrum and avoids the appearance of results that do not conform to physical laws; this method can significantly improve the accuracy of the calculation, so that the energy spectrum distribution obtained by inversion is closer to the actual situation; by setting the optimization termination condition, the optimization process can be terminated in advance on the premise of meeting certain accuracy requirements, avoiding unnecessary iterative calculations, which can not only reduce the calculation time and improve the calculation efficiency, but also help to reduce the calculation cost; the setting of multiple optimization termination conditions can complement each other to ensure that the optimization process can be stably terminated in a variety of situations; it helps to avoid the problem of unstable calculation or unreliable results caused by a single termination condition, thereby enhancing the reliability of the final result.
[0079] In summary, the above technical solution improves the calculation accuracy and efficiency, enhances the reliability of the results, and has strong adaptability through iterative optimization and the application of constraint conditions.
[0080] In some embodiments, the calculation results include: the calculated IDD curve of the monoenergetic particles, the total IDD curve after the monoenergetic particles IDD is weighted according to the weight, and the dose size and dose distribution of the particles at any spatial position in the medium calculated by the dose algorithm using the energy-weight information generated by optimization.
[0081] In some embodiments, comparing and verifying the calculation result with the measurement result, and determining whether it is necessary to re-perform iterative optimization according to the verification result, includes:
[0082] Comparing the calculated total IDD distribution with the measured results to obtain the first accuracy of the calculated results;
[0083] If the first accuracy is less than a preset accuracy threshold, the constraints and / or iteration termination conditions are modified and the optimization is continued. On the premise of meeting the accuracy, the constraints can also be optimized, such as deleting low-weight energy and optimizing again to reduce the computational uncertainty caused by low-weight energy.
[0084] The working principle of the above technical solution is: according to the relationship between the energy and weight of the monoenergetic particle, the IDD of the corresponding monoenergetic particle is weighted to preliminarily obtain the total IDD distribution formed by the discrete energy, and compared with the experimental results to verify the first accuracy of the calculation result; when the first accuracy does not meet the conditions, the constraints or the iteration termination conditions can be modified, and the optimization is performed again until the results that meet the conditions are obtained; on the premise of meeting the accuracy, the constraints can also be optimized, such as deleting low-weighted energy, and optimizing again to reduce the calculation uncertainty caused by low-weighted energy.
[0085] The final monoenergetic particle energy-weight relationship is input into the MC-type dose algorithm, and the dose formed by the energy obtained by inversion in the medium is calculated, and the final comparison and verification are performed with the measurement results. The calculable physical quantities include but are not limited to: IDD curve, dose size at any spatial position in the medium, dose distribution; when calculating, the conditions set should be consistent with the measurement conditions, such as the composition and density of the medium material; the size of the detector, the position in the medium and other physical quantities should be consistent.
[0086] The effect of the above technical solution is: by comparing the calculated total IDD distribution with the measurement results, the first accuracy of the calculated results can be intuitively evaluated, which helps to ensure that the energy spectrum distribution obtained by inversion is consistent with the actual situation and improves the accuracy of verification; when the first accuracy does not meet the preset threshold, it can be re-optimized by modifying the constraints and / or the iteration termination conditions. This flexibility enables the algorithm to be adjusted according to different experimental conditions and requirements to obtain more accurate inversion results; on the premise of meeting the accuracy, by optimizing the constraints, such as deleting low-weighted energy, the calculation uncertainty caused by low-weighted energy can be further reduced; it helps to improve the stability and reliability of the final inverted energy spectrum.
[0087] By calculating the IDD curve of the monoenergetic particles and the weighted total IDD curve, and using the optimized energy-weight information to calculate the dose size and dose distribution of the particles at any spatial position in the medium through a dose algorithm, a comprehensive evaluation of the primary energy spectrum generated by the accelerator can be made.
[0088] In some embodiments, comparing and verifying the calculation result with the measurement result, and determining whether to re-perform iterative optimization according to the verification result, includes:
[0089] Compare the various parameters of the calculated IDD curve with the corresponding parameters of the measured IDD curve. If the deviation of the parameters is outside the acceptable range, re-perform iterative optimization.
[0090] The parameters include the range formed by protons and heavy ions in the medium, the corresponding Bragg peak depth on the IDD curve, the width of the Bragg peak and / or the width of the falling edge of the Bragg peak.
[0091] The working principle and effect of the above technical solution are as follows: in the calculation process of the primary energy spectrum of the medical particle accelerator, it is a crucial step to compare and verify the key parameters of the calculated IDD curve with the corresponding parameters of the measured IDD curve; the purpose of verification is to check the accuracy of the calculation results and determine whether it is necessary to re-iterate optimization to improve the results. The key parameters mainly include the range of protons and heavy ions, the depth of the Bragg peak formed, the width of the Bragg peak, and the width of the falling edge of the Bragg peak; by comparing these parameters obtained by calculation and measurement, the difference between the calculated results and the measured results can be intuitively understood.
[0092] Specifically, the comparative verification process may include: first, extracting the required key parameters from the calculated IDD curve; then, obtaining the corresponding parameters of the measured IDD curve; then, comparing these parameters one by one and calculating the deviations between them; finally, judging whether these deviations are within an acceptable range; if the deviation of the parameters is outside the acceptable range, this means that there is a certain difference between the calculated results and the measured results, which may be due to the inaccurate inversion of the energy spectrum distribution; in this case, the algorithm will trigger the process of re-iterative optimization; by adjusting the constraints, optimization algorithm or iteration termination conditions, etc., the energy spectrum is re-inverted in order to obtain more accurate results.
[0093] Through the above-mentioned comparative verification and re-optimization process, the actual energy spectrum distribution can be gradually approached, thereby improving the accuracy and reliability of the calculation.
[0094] Some embodiments of the present application provide a device for calculating a primary energy spectrum of a medical particle accelerator, the device comprising:
[0095] The first acquisition module is used to obtain the IDD of monoenergetic particles according to the type of particles generated by the accelerator through a dose algorithm and setting an energy interval;
[0096] The second acquisition module is used to obtain the measured IDD curve. Taking the measured IDD curve as the target, the weights corresponding to different monoenergetic particles and the relationship between the energy and weight of the monoenergetic particles are obtained through iterative optimization and constraint conditions.
[0097] A calculation module, used to obtain a calculation result through a dose algorithm according to the relationship between the energy and weight of the monoenergetic particles;
[0098] A comparison and verification module is used to compare and verify the calculation results with the measurement results, and determine whether to re-perform iterative optimization based on the verification results; the medical particle accelerator can be a proton heavy ion accelerator.
[0099] In some embodiments, the energy intervals include equal intervals and / or variable intervals.
[0100] In some embodiments, obtaining a measured IDD curve includes:
[0101] The IDD reflection formed in the medium by the primary energy spectrum generated by the accelerator is measured by the detector to obtain a measured IDD curve.
[0102] In some embodiments, the constraints include: the number of monoenergetic energies, the lowest weight of each energy, the highest weight, the minimum energy interval and / or the maximum energy interval.
[0103] In other embodiments, the method for setting the constraint conditions includes: setting the relationship between the size of the difference and the weight according to the difference between the range of the single-energy IDD and the range of the measured IDD; for example, the closer the range of a particle of a certain energy is to the measured range, the higher the initial weight it obtains, and vice versa.
[0104] In some embodiments, the second acquisition module includes: obtaining an optimal solution under target and constraint conditions; the target is an IDD measurement result;
[0105] The iterative optimization includes executing the optimization algorithm and optimizing the termination condition;
[0106] The optimization termination condition includes a first termination condition, a second termination condition and / or a third termination condition.
[0107] In some embodiments, the first termination condition is to stop optimization and output the result when the number of iterations meets the preset number; the second termination condition is to stop optimization and output the result when the difference between the IDD calculated value and the corresponding measured value is within the preset difference range; the third termination condition is to stop optimization and output the result when the value of the convergence speed changing with the increase in the number of iterations is less than the preset change threshold.
[0108] In some embodiments, the calculation results include: the calculated monoenergetic IDD curve, the total IDD curve formed by weighting the IDDs of all monoenergetic particles, the energy-weight relationship of the monoenergetic particles, and the dose size and dose distribution of the particles at any spatial position in the medium obtained based on this relationship and through a dose algorithm.
[0109] In some embodiments, the comparison and verification module includes:
[0110] A first accuracy acquisition unit, used for comparing the total IDD distribution obtained by calculating the weights with the measurement result to obtain a first accuracy of the calculation result;
[0111] The first optimization unit is used to modify the constraint conditions and / or iteration termination conditions and continue the optimization if the first accuracy is less than a preset accuracy threshold; on the premise of meeting the accuracy, the constraint conditions can also be optimized, such as deleting low-weight energy and optimizing again to reduce the calculation uncertainty caused by the low-weight energy.
[0112] In some embodiments, the comparison and verification module includes:
[0113] A second comparison unit is used to compare various parameters of the IDD curve obtained by calculation with corresponding parameters of the IDD curve obtained by measurement; the parameters include the range formed by protons and heavy ions in the medium, the corresponding Bragg peak depth on the IDD curve, the width of the Bragg peak and / or the width of the falling edge of the Bragg peak;
[0114] The second optimization unit is used to re-perform iterative optimization if the deviation of the parameter is outside the acceptable range.
[0115] The working principle and effect of the above technical solution are the same as those of the method in this embodiment, and will not be elaborated here.
[0116] An embodiment of the present application further provides a particle accelerator, which includes the aforementioned device for calculating the primary energy spectrum of the medical particle accelerator.
[0117] An embodiment of the present application also provides a particle therapy system, which includes the above-mentioned particle accelerator.
[0118] An embodiment of the present application also provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any method described in the embodiments of the present application or the functions of the device described in the embodiments of the present application are implemented.
[0119] The embodiments of the present application also provide a computer-readable storage medium, which is used to store a computer program. When the computer program is executed, the steps of the method in the embodiments of the present application are implemented. The specific implementation method is consistent with the implementation method and the technical effect achieved recorded in the above method embodiments, and some contents will not be repeated here.
[0120] In the present application, a readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. A program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0121] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium may also be any readable medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or for use in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above. The program code for performing the operation of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as C language or similar programming languages. The program code may be executed entirely on a user computing device, partially on an associated device, as an independent software package, partially on a user computing device, partially on a remote computing device, or entirely on a remote computing device or server. Where a remote computing device is involved, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0122] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, substitute and modify the above embodiments within the scope of the invention without departing from the principles and purpose of the present invention. All such changes should fall within the scope of protection of the claims of the present invention.
Claims
1. A method for calculating the primary energy spectrum of a medical particle accelerator, characterized in that: The method comprises: According to the type of particles generated by the accelerator, a monoenergetic particle IDD is obtained by using a dose algorithm and setting an energy interval; the energy interval includes a variable interval; Obtaining a measured IDD curve, taking the measured IDD curve as a target, obtaining weights corresponding to different monoenergetic particles and the relationship between the energy and weight of the monoenergetic particles through iterative optimization and constraint conditions; the constraint conditions include the number of monoenergetic energies, the lowest weight of each energy, the highest weight, the minimum energy interval and / or the maximum energy interval; according to the difference between the monoenergetic IDD range and the measured IDD range, setting the relationship between the range difference and the weight; wherein, the closer the range of a particle of a certain energy is to the measured range, the higher the initial weight obtained, and vice versa; According to the relationship between the energy and weight of the monoenergetic particles, a calculation result is obtained by using the dose algorithm; The calculation result is compared with the measurement result for verification, and according to the verification result, it is determined whether to perform iterative optimization again.
2. The calculation method according to claim 1, characterized in that: The energy intervals also include equal intervals.
3. The calculation method according to claim 1, characterized in that: The obtaining and measuring the IDD curve comprises: The IDD reflection formed in the medium by the primary energy spectrum generated by the accelerator is measured by the detector to obtain the measured IDD curve.
4. The calculation method according to claim 1, characterized in that: The method for setting the constraint condition includes: According to the difference between the range of the monoenergetic IDD and the range of the measured IDD, the relationship between the difference size and the weight is set.
5. The calculation method according to claim 1, characterized in that: The method of obtaining weights corresponding to different monoenergetic particles and the relationship between the energy and weight of monoenergetic particles through iterative optimization and constraint conditions includes: obtaining the optimal solution under the target and constraint conditions; the target is the IDD measurement result; The iterative optimization includes executing the optimization algorithm and optimizing the termination condition; The optimization termination condition includes a first termination condition, a second termination condition and / or a third termination condition.
6. The calculation method according to claim 5, characterized in that: The first termination condition is to stop the optimization and output the result when the number of iterations meets the preset number; the second termination condition is to stop the optimization and output the result when the difference between the IDD calculated value and the corresponding measured value is within the preset difference range; the third termination condition is to stop the optimization and output the result when the value of the convergence speed changing with the increase of the number of iterations is less than the preset change threshold.
7. The calculation method according to claim 1, characterized in that: The calculation results include: the calculated monoenergetic IDD curve, the total IDD curve formed by weighting the IDD of all monoenergetic particles, the energy-weight relationship of the monoenergetic particles, and the dose size and dose distribution of the particles at any spatial position in the medium obtained through a dose algorithm based on the energy-weight relationship of the monoenergetic particles.
8. The calculation method according to claim 7, characterized in that: The step of comparing and verifying the calculation result with the measurement result, and determining whether to re-perform iterative optimization according to the verification result, includes: Comparing the calculated total IDD distribution with the measured results to obtain the first accuracy of the calculated results; If the first accuracy is less than a preset accuracy threshold, the constraint conditions and / or iteration termination conditions are modified to continue the optimization.
9. The calculation method according to claim 7, characterized in that: The step of comparing and verifying the calculation result with the measurement result, and determining whether to re-perform iterative optimization according to the verification result, includes: Compare the various parameters of the calculated IDD curve with the corresponding parameters of the measured IDD curve. If the deviation of the parameters is outside the acceptable range, re-perform iterative optimization. The parameters include the range formed by protons and heavy ions in the medium, the corresponding Bragg peak depth on the IDD curve, the width of the Bragg peak and / or the width of the falling edge of the Bragg peak.
10. A device for calculating the primary energy spectrum of a particle accelerator, characterized in that: The device comprises: A first acquisition module is used to obtain the IDD of monoenergetic particles according to the type of particles generated by the accelerator by using a dose algorithm and setting an energy interval; the energy interval includes a variable interval; The second acquisition module is used to obtain the measured IDD curve, taking the measured IDD curve as the target, and obtaining the weights corresponding to different monoenergetic particles and the relationship between the energy and weight of the monoenergetic particles through iterative optimization and constraint conditions; the constraint conditions include the number of monoenergetic energies, the lowest weight of each energy, the highest weight, the minimum energy interval and / or the maximum energy interval; according to the difference between the monoenergetic IDD range and the measured IDD range, the relationship between the range difference and the weight is set; wherein, the closer the range of a particle of a certain energy is to the measured range, the higher the initial weight obtained, and vice versa; A calculation module, used to obtain a calculation result through a dose algorithm according to the relationship between the energy and weight of the monoenergetic particles; The comparison and verification module is used to compare and verify the calculation result with the measurement result, and determine whether to re-perform iterative optimization based on the verification result.
11. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method according to any one of claims 1 to 9 or the functions of the device according to claim 10 when executing the computer program.
12. A computer-readable storage medium, characterized in that: The storage medium stores computer instructions, and when a computer reads the computer instructions, the computer executes the steps of the method according to any one of claims 1 to 9.
13. A particle accelerator, characterized in that: The particle accelerator comprises the device of claim 10.
14. A particle therapy system, characterized in that: The particle therapy system comprises the particle accelerator of claim 13.
Citation Information
Patent Citations
Method and device for obtaining beam energy spectrum, and dose distribution calculating method
CN105866821A
Obtaining an energy spectrum of a focused ion beam technical field
CN112823820A
