Proton physical dose calculation model using neural network fitting

Through the neural network model combined with Transformer encoder and SDNN, proton beam dose calculation is performed directly on CT images, which solves the problems of low efficiency and accuracy in the existing technology and achieves efficient and accurate proton beam dose calculation, which is suitable for different scenarios. .

CN118537307APending Publication Date: 2024-08-23CANCER INST & HOSPITAL CHINESE ACADEMY OF MEDICAL SCI
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410613686.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing proton physical dose calculation method has low efficiency and accuracy, the coarse dose calculation is wrong, and the dose distribution of the beam spot under the range shifter cannot be calculated.

Method used

The neural network model is combined with the Transformer encoder and SDNN model to calculate the proton beam dose directly on the CT image. One-dimensional features are generated through Monte Carlo simulation and convolution operations. The deconvolution operation is converted into a two-dimensional matrix and combined with the beam spot. Energy parameters are used for dose calculation, forming a training database and optimizing model weights.

Benefits of technology

It improves calculation efficiency and accuracy, reduces calculation steps and time consumption, adapts to different types of CT images, has strong adaptability and generalization capabilities, and can effectively calculate proton beam spot dose distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537307A
    Figure CN118537307A
Patent Text Reader

Abstract

The invention discloses a proton physical dose calculation model using neural network fitting, and belongs to the technical field of neural networks. The method comprises the following steps: S100, acquiring a CT image, and storing the CT image in a matrix form; s200, generating a random virtual radiotherapy plan with only one scanning point; s300, the CT image is sampled; s400, for the virtual radiotherapy plan with the range shifter, preprocessing the CT image; s500, in a Monte Carlo platform, the sampling CT is initialized and matched with simulation beam spot parameters, dose calculation is carried out, and the sampling CT and the proton dose corresponding to the virtual plan are obtained; s600, repeating the steps S100 to S500 to form a training database; s700, using the beam spot dose neural network model for proton beam dose calculation to obtain a proton beam spot dose, and inputting one-dimensional features and beam spot energy parameters; and S800, training the model and putting the model into use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of neural network, and in particular to a proton physical dose calculation model using neural network fitting. Background Art

[0002] The Transformer encoder and SDNN model combine the learning ability of neural networks and the accuracy of Monte Carlo simulation, and can efficiently calculate proton physical doses with high accuracy. The SDNN model can adapt to different proton beam parameters and CT image features during training, and uses neural network methods for dose calculation. It can improve computing efficiency through parallel computing and GPU acceleration, thereby accelerating the treatment planning and optimization process.

[0003] The existing technology still has the problems of low efficiency and precision. The calculation of the rough dose requires computing resources, and the inaccuracy of the rough dose itself will lead to errors in neural network calculations. For example, in the calculation of proton radiotherapy dose, the range of the rough dose and the precise dose will be offset, which makes it difficult for the neural network to enhance similar rough doses. In addition, the dose calculation model in the current research has no application logic and cannot calculate the dose distribution of the beam spot under the range shifter. Summary of the invention

[0004] The purpose of the present invention is to provide a proton physical dose calculation model using neural network fitting to solve the problems raised in the above background technology.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] A proton physical dose calculation model using neural network fitting, the model uses a neural network to calculate the dose on CT images, the method is as follows:

[0007] S100, acquiring a CT image, and saving the CT image in a matrix form;

[0008] S200, generating a random virtual radiotherapy plan with only one scanning point;

[0009] S300, sampling CT images according to a randomly generated virtual radiotherapy plan;

[0010] S400, for a virtual radiotherapy plan with a range shifter, preprocessing the CT image before sampling the CT image;

[0011] S500, in the Monte Carlo platform, the sampling CT is initialized and the simulated beam spot parameters are matched, and then the dose is calculated, and finally the sampling CT and proton dose corresponding to the virtual plan are obtained;

[0012] S600, repeating S100-S500 until a training database is formed, and saving the generated sampled CT, dose matrix and energy;

[0013] The S700 and SDNN models are used for proton beam dose calculation, using an encoder-Transformer-decoder architecture, where the encoder generates one-dimensional features through convolution operations, and the decoder converts the features into a two-dimensional matrix through deconvolution operations, and finally obtains the proton beam spot dose. The input of the Transformer encoder includes one-dimensional features and beam spot energy parameters;

[0014] S800, train the model and put it into use.

[0015] According to step S100, the CT image is saved in a matrix format, wherein the matrix point value is the HU value of the CT; at the same time, another set of coordinate matrices needs to be generated, wherein the other set of coordinate matrices includes the three-dimensional physical coordinates in the treatment coordinate system assigned to each point in the CT matrix according to the DICOM file of the CT.

[0016] According to step S200, a random virtual radiotherapy plan with only one scanning point is generated, and the isocenter, beam spot scanning position, treatment bed angle, range shifter model, distance of the range shifter from the isocenter and beam spot energy are randomly set; wherein the beam spot scanning position does not exceed the limit of the scanning area, and the beam spot energy is limited to A to B MeV, where A and B are positive integers.

[0017] According to step S300, in the subsequent Monte Carlo dose calculation, the beam source model is modeled at a specific position, and sampling needs to start from the source model modeling position during the sampling process; the sampling adopts a 256×16×16 size sampling matrix, and the pixel spacing is 3mm×3mm×3mm; the first layer of the sampling matrix should be at the source modeling position at the isocenter of the radiotherapy plan, and the direction vector of the sampling matrix at 256 pixels should be parallel to the beam emission direction. The specific coordinate transformation process is as follows:

[0018] S1. Initialize the coordinates of CT sampling to ensure the rationality and consistency of the coordinates;

[0019] S2, rotate the CT sampling coordinates around the X-axis. The user sets the parameter emission_angle_x. The rotation angle is determined by emission_angle_x to simulate the effect of the emission angle of the beam spot on the X-axis.

[0020] S3, adjust the emission position of the beam spot, determined according to emission_angle_x, to ensure that the position of the beam spot is correct during emission;

[0021] S4. The coordinates obtained in the previous step are further rotated around the Y axis. The user sets the parameter emission_angle_y. The rotation angle is determined by emission_angle_y to simulate the influence of the emission angle of the beam spot on the Y axis.

[0022] S5. Adjust the emission position of the beam spot again, determined according to emission_angle_x;

[0023] S6, rotate the coordinates around the X-axis. The user sets the parameter gantry_angle. The rotation angle is determined by gantry_angle to simulate the effect of the rotation of the gantry during CT scanning.

[0024] S7, continue to rotate the coordinates around the Y axis, the user sets the parameter couch_angle, the rotation angle is determined by couch_angle, simulating the effect of the rotation of the bed during CT scanning;

[0025] S8, adjusting the coordinates obtained by the previous processing again, adding the position information of the emission source, to ensure that the final coordinates are relative to the scanning center;

[0026] In the process of sampling CT, a pre-judgment needs to be made that the 256×4×4 matrix at the center of the sampling CT should contain human tissue, and the maximum HU value should be greater than 1. If this is not satisfied, the virtual plan will be invalidated and no sampling will be performed.

[0027] According to step S400, for a virtual radiotherapy plan with a range shifter, the CT image will be preprocessed before being sampled, and the thickness of the range shifter when HU is 1 will be calculated based on the equivalent water thickness represented by the range shifter model; and the range shifter will be back-sampled to the CT according to the specific data of the gantry angle, treatment bed angle and airgap in the virtual radiotherapy plan by back-sampling.

[0028] According to step S500, after the sampling CT is acquired, the modeling position of the first layer source model of the sampling CT is overlapped with the modeling position of the source model in the Monte Carlo platform, and the beam direction is adjusted so that the sampling CT is parallel to the direction vector of 256 pixels, wherein the Monte Carlo platform is TOPAS or MCsquare, etc.; according to the energy in the virtual plan corresponding to the sampling CT, the average energy, energy spread, beam size and beam divergence angle parameters of the corresponding simulated beam are matched in the source model library of the Monte Carlo platform; the sampling CT is initialized in the Monte Carlo platform, and the dose calculation is performed, wherein the calculation of 10 5 The particle and dose calculation deposition grid will clone the coordinate system of the sampling CT; after the calculation is completed, the sampling CT and proton dose corresponding to the virtual plan are obtained.

[0029] According to step S700, the model for calculating the proton beam dose in the sampled CT is SDNN, and the basic architecture is "encoder-Transformer-decoder"; the encoder is a single-layer convolutional network, and the encoder convolves the CT matrix layer by layer, wherein the convolution kernel size of the encoder is 16×16, and the step size of the encoder is 16×16, to generate a one-dimensional matrix; the decoder is a single-layer deconvolutional network, and the decoder splits the features encoded by the Transformer according to a certain step size, and the length of the step size is selected to be consistent with the length generated by the encoder, and performs a deconvolution operation, and the convolution kernel size of the decoder is 16×16, and the step size of the decoder is 16×16;

[0030] The characteristic of Transformer and its derivative models is that they use Transformer encoder, which is characterized by a multi-head attention mechanism that can establish the position-space-time correlation between input data.

[0031] Finally, 256 two-dimensional matrices of size 16×16 are generated and concatenated to obtain the proton beam spot dose calculated by the model; in addition to the one-dimensional features generated by the encoder, the input of the Transformer encoder also includes the energy parameters of the beam spot.

[0032] According to step S800, the steps of training and using the model are as follows:

[0033] S801, forming an array of energy, the size of the array is consistent with the sampled CT, splicing the array with the sampled CT to form a two-channel array, performing a convolution operation on the two-channel array, the size of the convolution kernel is 1×1, and the step size is 1×1; reducing the dimension of the paired CT and energy arrays; fusing the CT information with the energy information, and the fusion matrix will be used as the input of the model SDNN;

[0034] S802. Another input of SDNN is a one-dimensional energy matrix, the size of which is consistent with the one-dimensional matrix generated by the encoder, and all the values ​​of the one-dimensional energy matrix are energy; after SDNN inputs the three-dimensional fusion matrix and the one-dimensional energy matrix, SDNN will output the beam dose matrix calculated by the model; the beam dose matrix and the actual beam dose are subjected to the loss function calculation, and the loss function is MSE; the gradient is calculated according to the loss function, and the optimizer ADAM is used to update the optimization model weight according to the calculated gradient; after several rounds of training, the loss function converges, indicating that the model training is completed and the model weight is saved.

[0035] Compared with the prior art, the beneficial effects achieved by the present invention are:

[0036] Traditional proton physical dose calculation methods are usually limited by computational efficiency and accuracy. However, the present invention uses the Transformer encoder and SDNN model, which can combine the learning ability of neural networks and the accuracy of Monte Carlo simulation, thereby improving computational efficiency and accuracy.

[0037] The present invention removes the rough dose calculation link, reduces unnecessary steps and time consumption in the calculation process, and thus improves the calculation efficiency. The existing neural network dose calculation technology uses a neural network to improve the accuracy of rough dose calculation. Since the neural network directly calculates the dose on the CT image, the present invention saves the extra time and resources required for rough dose calculation, making the entire calculation process more concise and efficient.

[0038] The SDNN model used in the present invention adopts an encoder-Transformer-decoder architecture, can adapt to different types of CT images, has strong adaptability and generalization ability, and can be widely used in different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0040] Figure 1 It is a schematic diagram of the steps of a proton physical dose calculation model using neural network fitting in the present invention;

[0041] Figure 2 It is a schematic diagram of a model training process of a proton physical dose calculation model using neural network fitting in the present invention;

[0042] Figure 3 The present invention is a schematic diagram of a model use flow of a proton physical dose calculation model using neural network fitting. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] See also Figure 1-Figure 3 , the present invention provides a technical solution:

[0045] According to one embodiment of the present invention, Figure 1A schematic diagram of the steps of a proton physical dose calculation model using a neural network fitting is shown. A proton physical dose calculation model using a neural network fitting, the model uses a neural network to calculate the dose on a CT image, the method is as follows:

[0046] S100, acquiring a CT image, and saving the CT image in a matrix form;

[0047] S200, generating a random virtual radiotherapy plan with only one scanning point;

[0048] S300, sampling CT images according to a randomly generated virtual radiotherapy plan;

[0049] S400, for a virtual radiotherapy plan with a range shifter, preprocessing the CT image before sampling the CT image;

[0050] S500, in the Monte Carlo platform, the sampling CT is initialized and the simulated beam spot parameters are matched, and then the dose is calculated, and finally the sampling CT and proton dose corresponding to the virtual plan are obtained;

[0051] S600, repeating S100-S500 until a training database is formed, and saving the generated sampled CT, dose matrix and energy;

[0052] The S700 and SDNN models are used for proton beam dose calculation, using an encoder-Transformer-decoder architecture, where the encoder generates one-dimensional features through convolution operations, and the decoder converts the features into a two-dimensional matrix through deconvolution operations, and finally obtains the proton beam spot dose. The input of the Transformer encoder includes one-dimensional features and beam spot energy parameters;

[0053] S800, train the model and put it into use.

[0054] According to step S100, the CT image is saved in a matrix format, wherein the matrix point value is the HU value of the CT; at the same time, another set of coordinate matrices needs to be generated, wherein the other set of coordinate matrices includes the three-dimensional physical coordinates in the treatment coordinate system assigned to each point in the CT matrix according to the DICOM file of the CT.

[0055] According to step S200, a random virtual radiotherapy plan with only one scanning point is generated, and the isocenter, beam spot scanning position, treatment bed angle, range shifter model, distance of the range shifter from the isocenter and beam spot energy are randomly set; wherein the beam spot scanning position does not exceed the limit of the scanning area, and the beam spot energy is limited to A to B MeV.

[0056] According to step S300, in the subsequent Monte Carlo dose calculation, the beam source model is modeled at a specific position, and sampling needs to start from the source model modeling position during the sampling process, such as 430mm; the sampling adopts a 256×16×16 size sampling matrix, and the pixel spacing is 3mm×3mm×3mm; the first layer of the sampling matrix should be at the source modeling position at the isocenter of the radiotherapy plan, and the direction vector of the sampling matrix at 256 pixels should be parallel to the beam emission direction. The specific coordinate transformation process is as follows:

[0057] S1. Initialize the coordinates of CT sampling to ensure the rationality and consistency of the coordinates;

[0058] S2, rotate the CT sampling coordinates around the X-axis. The user sets the parameter emission_angle_x. The rotation angle is determined by emission_angle_x to simulate the effect of the emission angle of the beam spot on the X-axis.

[0059] S3, adjust the emission position of the beam spot, determined according to emission_angle_x, to ensure that the position of the beam spot is correct during emission;

[0060] S4. The coordinates obtained in the previous step are further rotated around the Y axis. The user sets the parameter emission_angle_y. The rotation angle is determined by emission_angle_y to simulate the influence of the emission angle of the beam spot on the Y axis.

[0061] S5. Adjust the emission position of the beam spot again, determined according to emission_angle_x;

[0062] S6, rotate the coordinates around the X-axis. The user sets the parameter gantry_angle. The rotation angle is determined by gantry_angle to simulate the effect of the rotation of the gantry during CT scanning.

[0063] S7, continue to rotate the coordinates around the Y axis, the user sets the parameter couch_angle, the rotation angle is determined by couch_angle, simulating the effect of the rotation of the bed during CT scanning;

[0064] S8, adjusting the coordinates obtained by the previous processing again, adding the position information of the emission source, to ensure that the final coordinates are relative to the scanning center;

[0065] In the process of sampling CT, a pre-judgment needs to be made that the 256×4×4 matrix at the center of the sampling CT should contain human tissue, and the maximum HU value should be greater than 1. If this is not satisfied, the virtual plan will be invalidated and no sampling will be performed.

[0066] According to step S400, for a virtual radiotherapy plan with a range shifter, the CT image will be preprocessed before being sampled, and the thickness of the range shifter when HU is 1 will be calculated based on the equivalent water thickness represented by the range shifter model; and the range shifter will be back-sampled to the CT according to the specific data of the gantry angle, treatment bed angle and airgap in the virtual radiotherapy plan by back-sampling.

[0067] According to step S500, after the sampling CT is acquired, the modeling position of the first layer source model of the sampling CT is overlapped with the modeling position of the source model in the Monte Carlo platform, and the beam direction is adjusted so that the sampling CT is parallel to the direction vector of 256 pixels, wherein the Monte Carlo platform is TOPAS or MCsquare, etc.; according to the energy in the virtual plan corresponding to the sampling CT, the average energy, energy spread, beam size and beam divergence angle parameters of the corresponding simulated beam are matched in the source model library of the Monte Carlo platform; the sampling CT is initialized in the Monte Carlo platform, and the dose calculation is performed, wherein the calculation of 10 5 The particle and dose calculation deposition grid will clone the coordinate system of the sampling CT; after the calculation is completed, the sampling CT and proton dose corresponding to the virtual plan are obtained.

[0068] According to step S700, the model for calculating the proton beam dose in the sampled CT is SDNN, and the basic architecture is "encoder-Transformer-decoder"; the encoder is a single-layer convolutional network, and the encoder convolves the CT matrix layer by layer, wherein the convolution kernel size of the encoder is 16×16, and the step size of the encoder is 16×16, to generate a one-dimensional matrix; the decoder is a single-layer deconvolutional network, and the decoder splits the features encoded by the Transformer according to a certain step size, and the length of the step size is selected to be consistent with the length generated by the encoder, and performs a deconvolution operation, and the convolution kernel size of the decoder is 16×16, and the step size of the decoder is 16×16;

[0069] Finally, 256 two-dimensional matrices of size 16×16 are generated and concatenated to obtain the proton beam spot dose calculated by the model; in addition to the one-dimensional features generated by the encoder, the input of the Transformer encoder also includes the energy parameters of the beam spot.

[0070] According to another embodiment of the present invention, according to step S800, the steps of training and putting the model into use are as follows:

[0071] S801, forming an array of energy, the size of which is consistent with the sampled CT, concatenating the array with the sampled CT to form a two-channel array, performing a convolution operation on the two-channel array, with a convolution kernel size of 1×1 and a step size of 1×1; reducing the dimension of the paired CT and energy arrays; fusing the CT information with the energy information, and the fusion matrix will be used as the input of the model SDNN; as Figure 2 A schematic diagram of the model training process of a proton physical dose calculation model using neural network fitting is shown.

[0072] S802, another input of SDNN is a one-dimensional energy matrix, the size of which is consistent with the one-dimensional matrix generated by the encoder, and all the values ​​of the one-dimensional energy matrix are energy; after SDNN inputs the three-dimensional fusion matrix and the one-dimensional energy matrix, SDNN will output the beam dose matrix calculated by the model; the beam dose matrix and the actual beam dose are subjected to the loss function calculation, and the loss function is MSE; the gradient is calculated according to the loss function, and the optimizer ADAM is used to update the optimization model weight according to the calculated gradient; after several rounds of training, the loss function converges, indicating that the model training is completed, and the model weight is saved. Figure 3 A schematic diagram of the model usage process of a proton physical dose calculation model using neural network fitting is shown.

[0073] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0074] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A proton physical dose calculation model using neural network fitting, characterized in that: The model uses a neural network to calculate the dose on CT images as follows: S100, acquiring a CT image, and saving the CT image in a matrix form; S200, generating a random virtual radiotherapy plan with only one scanning point; S300, sampling CT images according to a randomly generated virtual radiotherapy plan; S400, for a virtual radiotherapy plan with a range shifter, preprocessing the CT image before sampling the CT image; S500, in the Monte Carlo platform, the sampling CT is initialized and the simulated beam spot parameters are matched, and then the dose is calculated, and finally the sampling CT and proton dose corresponding to the virtual plan are obtained; S600, repeating S100-S500 until a training database is formed, and saving the generated sampled CT, dose matrix and energy; The S700 and SDNN models are used for proton beam dose calculation, using an encoder-Transformer-decoder architecture, where the encoder generates one-dimensional features through convolution operations, and the decoder converts the features into a two-dimensional matrix through deconvolution operations, and finally obtains the proton beam spot dose. The input of the Transformer encoder includes one-dimensional features and beam spot energy parameters; S800, train the model and put it into use.

2. The proton physical dose calculation model using neural network fitting according to claim 1, characterized in that: According to step S100, the CT image is saved in a matrix format, wherein the matrix point value is the HU value of the CT; at the same time, another set of coordinate matrices needs to be generated, wherein the other set of coordinate matrices includes the three-dimensional physical coordinates in the treatment coordinate system assigned to each point in the CT matrix according to the DICOM file of the CT.

3. The proton physical dose calculation model using neural network fitting according to claim 1, characterized in that: According to step S200, a random virtual radiotherapy plan with only one scanning point is generated, and the isocenter, beam spot scanning position, treatment bed angle, range shifter model, distance of the range shifter from the isocenter and beam spot energy are randomly set; wherein the beam spot scanning position does not exceed the limit of the scanning area, and the beam spot energy is limited to A to B MeV, where A and B are positive integers.

4. The proton physical dose calculation model using neural network fitting according to claim 1, characterized in that: According to step S300, in the subsequent Monte Carlo dose calculation, the beam source model is modeled at a specific position, and sampling needs to start from the source model modeling position during the sampling process; the first layer of the sampling matrix should be at the source model modeling position at the isocenter of the radiotherapy plan, and the direction vector of the sampling matrix at 256 pixels should be parallel to the beam emission direction. The specific coordinate transformation process is as follows: S1. Initialize the coordinates of CT sampling to ensure the rationality and consistency of the coordinates; S2, rotate the CT sampling coordinates around the X-axis. The user sets the parameter emission_angle_x. The rotation angle is determined by emission_angle_x to simulate the effect of the emission angle of the beam spot on the X-axis. S3, adjust the emission position of the beam spot, determined according to emission_angle_x, to ensure that the position of the beam spot is correct during emission; S4. The coordinates obtained in the previous step are further rotated around the Y axis. The user sets the parameter emission_angle_y. The rotation angle is determined by emission_angle_y to simulate the influence of the emission angle of the beam spot on the Y axis. S5. Adjust the emission position of the beam spot again, determined according to emission_angle_x; S6, rotate the coordinates around the X-axis. The user sets the parameter gantry_angle. The rotation angle is determined by gantry_angle to simulate the effect of the rotation of the gantry during CT scanning. S7, continue to rotate the coordinates around the Y axis, the user sets the parameter couch_angle, the rotation angle is determined by couch_angle, simulating the effect of the rotation of the bed during CT scanning; S8, adjusting the coordinates obtained by the previous processing again, adding the position information of the emission source, to ensure that the final coordinates are relative to the scanning center; In the process of sampling CT, a pre-judgment needs to be made that the matrix at the center of the sampling CT should contain human tissue and the maximum HU value should be greater than 1. If this is not satisfied, the virtual plan will be invalidated and no sampling will be performed.

5. The proton physical dose calculation model using neural network fitting according to claim 1, characterized in that: According to step S400, for a virtual radiotherapy plan with a range shifter, the CT image will be preprocessed before being sampled, and the thickness of the range shifter when HU is 1 will be calculated based on the equivalent water thickness represented by the range shifter model; and the range shifter will be back-sampled to the CT according to the specific data of the gantry angle, the treatment bed angle and the air gap in the virtual radiotherapy plan by means of back-sampling.

6. The proton physical dose calculation model using neural network fitting according to claim 1, characterized in that: According to step S500, after the sampling CT is acquired, the first layer of the sampling CT is overlapped with the source model modeling position in the Monte Carlo platform, and the beam direction is adjusted so that the sampling CT is parallel to the direction vector of 256 pixels; according to the energy in the virtual plan corresponding to the sampling CT, the average energy, energy spread, beam size and beam divergence angle parameters of the corresponding simulated beam are matched in the Monte Carlo platform source model library; the sampling CT is initialized in the Monte Carlo platform, and the dose calculation is performed, wherein the calculation of 10 5 The particle,dose calculation deposition grid will clone the coordinate system of the sampling CT; After the calculation is completed, the sampling CT and proton dose corresponding to the virtual plan are obtained.

7. The proton physical dose calculation model using neural network fitting according to claim 1, characterized in that: According to step S700, the model for calculating the proton beam dose in the sampled CT is SDNN, and the basic architecture is "encoder-Transformer-decoder"; the encoder is a single-layer convolutional network, and the encoder convolves the CT matrix layer by layer to generate a one-dimensional matrix; the decoder is a single-layer deconvolutional network, and the decoder splits the features encoded by the Transformer according to a certain step length, and the length of the step length is selected to be consistent with the length generated by the encoder, and performs a deconvolution operation; Finally, a two-dimensional matrix is ​​generated and spliced ​​to obtain the proton beam spot dose calculated by the model; The input of the Transformer encoder includes not only the one-dimensional features generated by the encoder, but also the energy parameters of the beam spot.

8. The proton physical dose calculation model using neural network fitting according to claim 1, characterized in that: According to step S800, the steps of training and using the model are as follows: S801, forming an array of energy, the size of the array being consistent with the sampled CT, concatenating the array with the sampled CT to form a two-channel array, and performing a convolution operation on the two-channel array; reducing the dimension of the paired CT and energy arrays; The CT information is fused with the energy information, and the fusion matrix will be used as the input of the model SDNN; S802, another input of the SDNN is a one-dimensional energy matrix, the size of the one-dimensional energy matrix is ​​consistent with the one-dimensional matrix generated by the encoder, and all values ​​of the one-dimensional energy matrix are energy; After SDNN inputs the three-dimensional fusion matrix and the one-dimensional energy matrix, SDNN will output the beam dose matrix calculated by the model; the beam dose matrix and the actual beam dose are calculated using the loss function, and the loss function is MSE; the gradient is calculated according to the loss function, and the optimizer ADAM is used to update the optimization model weight according to the calculated gradient; after several rounds of training, the loss function converges, indicating that the model training is completed, and the model weight is saved; S803. After the model training is completed, the model is used to execute step S801 to generate a fusion matrix, which will be used as the input of the model SDNN. Another input of the SDNN is a one-dimensional energy matrix. After the SDNN inputs the three-dimensional fusion matrix and the one-dimensional energy matrix, the SDNN will output the beam dose matrix calculated by the model.

Citation Information

Cited By

  • Method for converting CT image into Monte Carlo program cosRMC input file

    CN119920407A