Radiotherapy plan intensity distribution optimization method and device and radiotherapy equipment

文档序号:1968308 发布日期:2021-12-17 浏览:12次 中文

阅读说明:本技术 一种放疗计划强度分布优化方法、装置及放射治疗设备 (Radiotherapy plan intensity distribution optimization method and device and radiotherapy equipment ) 是由 鞠垚 关睿雪 姚毅 于 2021-05-27 设计创作,主要内容包括:本发明公开一种放疗计划强度分布优化方法、装置及放射治疗设备,放疗计划强度分布优化方法包括以下步骤:通过神经网络,将PB剂量映射到MC剂量上;求解MC剂量相对于PB剂量的梯度,得到基于MC算法的沉积矩阵;将基于MC算法的沉积矩阵带入FMO中,实现放疗计划强度分布优化。本发明将MC算法应用在FMO中可以确保优化过程得到的强度分布是真实可靠的,使用这样的强度分布进行多叶光栅子野分割,得到的子野走位是更加合理的,保证了最终得到的计划剂量分布更接近于临床要求,计划效果有显著提升。(The invention discloses a radiotherapy plan intensity distribution optimization method, a radiotherapy plan intensity distribution optimization device and radiotherapy equipment, wherein the radiotherapy plan intensity distribution optimization method comprises the following steps: mapping the PB dose to the MC dose via a neural network; solving the gradient of the MC dose relative to the PB dose to obtain a deposition matrix based on an MC algorithm; and substituting the deposition matrix based on the MC algorithm into the FMO to realize the optimization of the intensity distribution of the radiotherapy plan. The invention applies the MC algorithm in FMO to ensure that the intensity distribution obtained in the optimization process is real and reliable, the obtained subfield exposure is more reasonable by using the intensity distribution to carry out multi-leaf grating subfield segmentation, the finally obtained planned dose distribution is ensured to be closer to the clinical requirement, and the planning effect is obviously improved.)

1. A radiotherapy plan intensity distribution optimization method is characterized by comprising the following steps:

s1: mapping the PB dose to the MC dose via a neural network;

s2: solving the gradient of the MC dose relative to the PB dose to obtain a deposition matrix based on an MC algorithm;

s3: and substituting the deposition matrix based on the MC algorithm into the FMO to realize the optimization of the intensity distribution of the radiotherapy plan.

2. The radiotherapy plan intensity distribution optimization method of claim 1, wherein S1 specifically comprises the following steps:

s1.1: preparing data, namely selecting CT of N1 patients, adding N2 fields to each patient, respectively calculating PB dose and MC dose of each field to form N1N 2 groups of data, wherein each group of data comprises corresponding CT, PB dose and MC dose;

s1.2: data division, namely dividing N1N 2 groups of data into a training set and a test set in proportion;

s1.3: creating a convolutional neural network;

s1.4: training and establishing a good convolutional neural network by adopting training set data;

s1.5: and testing the test set data on the trained convolutional neural network to obtain a predicted dose, and calculating the gamma passing rate of the predicted dose and the MC dose.

3. The radiotherapy plan intensity distribution optimization method of claim 2, wherein the convolutional neural network comprises: the device comprises an input layer, a fusion layer, a convolution layer, an activation layer, a pooling layer, an upper sampling layer and an output layer.

4. The radiotherapy plan intensity distribution optimization method of claim 3,

wherein A is a deposition matrix based on the MC algorithm;

DPBand DMCThe dosage based on the PB algorithm and the dosage based on the MC algorithm are respectively;

ajmfor each value of the deposition matrix based on the MC algorithm;

the derivative of the MC dose relative to the kth PB dose representing the voxel point (jth);

dDPB,k/dxmrepresents the derivative of the kth PB-dose with respect to the mth intensity value;

Ndoserepresenting the number of doses;

from the above equation, a deposition matrix based on the MC algorithm can be obtained by solving the gradient of the convolutional neural network of the PB dose to MC dose mapping.

5. The radiotherapy plan intensity distribution optimization method of claim 4,

the FMO specifically comprises the following steps:

s3.1: dividing the radiation field into pencil beams;

s3.2: introducing a deposition matrix based on an MC algorithm;

s3.3: setting an initial intensity value as an optimized initial value;

s3.4: solving a derivative of an objective function by using a deposition matrix based on an MC algorithm;

s3.5: solving the optimal step length under the current gradient;

s3.6: updating intensity values, dose and objective function;

s3.7: and repeating the steps S3.4-S3.6 until the iteration is stopped after the stop condition is met.

6. The radiotherapy plan intensity distribution optimization method of any one of claims 1 to 5, further comprising the steps of:

s4: and calculating the dose in the human body and the DVH of each organ according to the radiotherapy plan intensity distribution optimization method, and evaluating the plan effect.

7. Radiotherapy plan intensity distribution optimizing device characterized by, includes:

the neural network mapping module is used for mapping the PB dose to the MC dose through a neural network;

the deposition matrix obtaining module is used for solving the gradient of the MC dose relative to the PB dose to obtain a deposition matrix based on an MC algorithm;

and the intensity distribution optimization module is used for substituting the deposition matrix based on the MC algorithm into the FMO to realize the optimization of the intensity distribution of the radiotherapy plan.

8. Radiotherapy apparatus for performing a radiotherapy plan intensity distribution optimization method according to any one of claims 1 to 6, or comprising: the radiotherapy plan intensity distribution optimizing device of claim 7.

Technical Field

The invention belongs to the technical field of radiotherapy, and particularly relates to a radiotherapy plan intensity distribution optimization method and device and radiotherapy equipment.

Background

The inverse planning intensity modulated radiation therapy technology is a mainstream technology adopted by radiotherapy departments of medical institutions at present, and the optimization method comprises the following steps: two-step process, one-step process (direct sub-field optimization). The two-step process refers to: optimizing intensity distribution and dividing the grating sub-fields. The intensity distribution optimization is a process of solving the optimal ray intensity distribution which can meet the clinical requirements according to the combination of the patient image and the clinical requirements; raster subfield segmentation is the process of converting the optimal intensity distribution into a series of subfields that can be performed by a physical Multi-layer raster (MLC). In the intensity distribution Optimization (FMO), each continuous beam is divided into a number of beamlets (beams), the intensity values of each beamlet are solved using Optimization methods such as gradient descent, taking into account the dose deposition of each beamlet in the medium, respectively. Finally, for a specific point, the dose contributions of each beam to it are superimposed, resulting in the total dose for that point.

An important step in FMO is to calculate the dose deposition of the radiation intensity in human tissue, and the typical software uses Pencil Beam (PB). The dose value of the PB algorithm is the result of a two-dimensional convolution of the pencil-beam kernel, which describes a beam of energy-dispersive patterns incident in an infinitely homogeneous medium, with the intensity distribution. The method for solving the pencil beam kernel is as follows: MC simulation, direct from measurement data, deconvolution from measured broad beam radiation dose distribution, finite pencil beam method. For the case of inhomogeneous media, 3D density correction of the medium, scattering of the rays before reaching the phantom, and electronic contamination are considered. Although the PB algorithm can better handle the situation of irregular radiation fields, the calculation accuracy on the non-uniform tissues of the human body and the irregular contours of the body surface is still insufficient, and particularly for the cavity tissues such as the trachea and the larynx, the dose difference can reach 100 percent, as shown in figure 2. In order to better simulate the dose deposition of rays in inhomogeneous tissues, many studies propose methods such as primary ray fluence correction, kernel function correction and the like, but these methods are inherently data fitting methods and have far lower accuracy than the MC method.

The MC algorithm, also known as a computer stochastic simulation method, is based on the principle of random number generation, by simulating the process of interaction of a considerable number of particles in a medium, the distribution of flux, energy spectrum, dose in the whole medium is obtained. Since MC is a process that realistically simulates the deposition of energy from a large number of particles (up to a hundred million), the results of the simulation are recognized as being the most accurate.

In the FMO of commercial software, the PB algorithm is mostly used in consideration of the operation speed, and since the PB algorithm itself is not highly accurate, the optimized optimal intensity distribution is pseudo-optimal, and thus the dose distribution calculated by the intensity distribution through the final MC algorithm does not necessarily meet the expected clinical requirement, and the result is contrary to the original purpose of the clinical requirement setting. Therefore, the use of the MC algorithm in planning optimization is an important research direction.

Most researchers have generated MC deposition matrices for all beams in advance using tools such as EGS4, and called values directly in intensity distribution optimization. The efficiency of performing MC dose calculation directly on the CPU is low, and in order to increase the operation speed, the application of MC dose calculation on the GPU is gradually increased, and MC dose calculation software libraries based on the GPU, such as gDPM and GPUMCD, are developed. The MC optimization based on the CPU provides a solution, the application on the GPU can effectively improve the calculation speed, but the speed is still too slow for the intensity distribution optimization, and the requirement of commercial software cannot be met. In addition, the two methods require the deposition matrix to be stored in a computer, occupy a large amount of hard disks and memory space, and each patient needs to be calculated once, so that the time cost is high, and the method cannot meet the requirement of medical institutions with a large number of patients every day.

Disclosure of Invention

In order to solve the technical problems, the invention provides a radiotherapy plan intensity distribution optimization method, a radiotherapy plan intensity distribution optimization device and radiotherapy equipment.

In order to achieve the purpose, the technical scheme of the invention is as follows:

on one hand, the invention discloses a radiotherapy plan intensity distribution optimization method, which comprises the following steps:

s1: mapping the PB dose to the MC dose via a neural network;

s2: solving the gradient of the MC dose relative to the PB dose to obtain a deposition matrix based on an MC algorithm;

s3: and substituting the deposition matrix based on the MC algorithm into the FMO to realize the optimization of the intensity distribution of the radiotherapy plan.

On the basis of the technical scheme, the following improvements can be made:

preferably, S1 specifically includes the following steps:

s1.1: preparing data, namely selecting CT of N1 patients, adding N2 fields to each patient, respectively calculating PB dose and MC dose of each field to form N1N 2 groups of data, wherein each group of data comprises corresponding CT, PB dose and MC dose;

s1.2: dividing data, namely dividing N1N 2 groups of data into a training set test set in proportion;

s1.3: creating a convolutional neural network;

s1.4: training and establishing a good convolutional neural network by adopting training set data;

s1.5: and testing the test set data on the trained convolutional neural network to obtain a predicted dose, and calculating the gamma passing rate of the predicted dose and the MC dose.

Preferably, the convolutional neural network comprises: the device comprises an input layer, a fusion layer, a convolution layer, an activation layer, a pooling layer, an upper sampling layer and an output layer.

As a preferred embodiment of the present invention,

wherein A is a deposition matrix based on the MC algorithm;

DPBand DMCThe dosage based on the PB algorithm and the dosage based on the MC algorithm are respectively;

ajmfor each value of the deposition matrix based on the MC algorithm;

the derivative of the MC dose relative to the kth PB dose representing the voxel point (jth);

dDPB,k/dxmrepresents the derivative of the kth PB-dose with respect to the mth intensity value;

Ndoserepresenting the number of doses;

from the above equation, a deposition matrix based on the MC algorithm can be obtained by solving the gradient of the convolutional neural network of the PB dose to MC dose mapping.

As a preferred scheme, FMO specifically comprises the steps of:

s3.1: dividing the radiation field into pencil beams;

s3.2: introducing a deposition matrix based on an MC algorithm;

s3.3: setting an initial intensity value as an optimized initial value;

s3.4: solving a derivative of an objective function by using a deposition matrix based on an MC algorithm;

s3.5: solving the optimal step length under the current gradient;

s3.6: updating intensity values, dose and objective function;

s3.7: and repeating the steps S3.4-S3.6 until the iteration is stopped after the stop condition is met.

Preferably, the method further comprises the following steps:

s4: and calculating the dose in the human body and the DVH of each organ according to the radiotherapy plan intensity distribution optimization method, and evaluating the plan effect.

On the other hand, the invention also discloses a radiotherapy plan intensity distribution optimizing device, which comprises:

the neural network mapping module is used for mapping the PB dose to the MC dose through a neural network;

the deposition matrix obtaining module is used for solving the gradient of the MC dose relative to the PB dose to obtain a deposition matrix based on an MC algorithm;

and the intensity distribution optimization module is used for substituting the deposition matrix based on the MC algorithm into the FMO to realize the optimization of the intensity distribution of the radiotherapy plan.

In another aspect, the present invention also discloses a radiotherapy apparatus for performing any one of the radiotherapy plan intensity distribution optimization methods described above, or, comprising: the radiotherapy plan intensity distribution optimizing device.

The radiotherapy plan intensity distribution optimization method, the radiotherapy plan intensity distribution optimization device and the radiotherapy equipment have the following beneficial effects:

the invention applies the MC algorithm in FMO to ensure that the intensity distribution obtained in the optimization process is real and reliable, the obtained subfield exposure is more reasonable by using the intensity distribution to carry out multi-leaf grating subfield segmentation, the finally obtained planned dose distribution is ensured to be closer to the clinical requirement, and the planning effect is obviously improved.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.

Fig. 1 is a flowchart of a radiotherapy plan intensity distribution optimization method according to an embodiment of the present invention.

FIG. 2 is a graph comparing MC dose to PB dose;

FIG. 2(a) is a MC dose map;

FIG. 2(b) is a PB dose map.

FIG. 3 is a diagram of a layer of data in a training set according to an embodiment of the present invention;

FIG. 3(a) is a CT image;

FIG. 3(b) is a PB dose data plot;

FIG. 3(c) is a chart of MC dose data.

Fig. 4 is a flowchart of an intensity profile optimization method according to an embodiment of the present invention.

Fig. 5 is a flowchart of a method for mapping a PB dose to an MC dose according to an embodiment of the present invention.

Fig. 6 is a schematic structural diagram of a convolutional neural network according to an embodiment of the present invention.

FIG. 7 is a graph comparing neural dose gamma passage rate with PB dose and gamma passage rate predicted by the convolutional neural network provided in the embodiment of the present invention;

FIG. 7(a) is a MC dose map;

FIG. 7(b) is an MC dose distribution plot;

FIG. 7(c) is a GroudTruth diagram;

FIG. 7(d) is a PB dose map;

FIG. 7(e) is a PB dose profile;

FIG. 7(f) is a graph of PB dose gamma passage;

FIG. 7(g) is a neural dose map predicted by a convolutional neural network;

FIG. 7(h) is a neural dose distribution plot predicted by a convolutional neural network;

FIG. 7(i) is a graph of neural dose gamma passage predicted by the convolutional neural network.

Fig. 8 is a diagram of a convolution process of the 3 × 3 convolution kernel and the 4 × 4 matrix (outer 0 is complemented) according to an embodiment of the present invention.

Fig. 9 is a diagram of an inverse pooling upsampling process provided by an embodiment of the present invention.

Fig. 10 is a diagram of an interpolation upsampling process according to an embodiment of the present invention.

Fig. 11 is a diagram of a deconvolution upsampling process provided by an embodiment of the present invention.

Fig. 12 is a comparison graph of optimized DVH based on convolutional neural network and optimized DVH based on MC according to the embodiment of the present invention.

Detailed Description

Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In order to achieve the object of the present invention, in some embodiments of a radiotherapy planning intensity distribution optimization method, a radiotherapy planning intensity distribution optimization device and a radiotherapy apparatus, as shown in fig. 1, the radiotherapy planning intensity distribution optimization method includes the following steps:

s1: mapping the PB dose to the MC dose via a neural network;

s2: solving the gradient of the MC dose relative to the PB dose to obtain a deposition matrix based on an MC algorithm;

s3: and substituting the deposition matrix based on the MC algorithm into the FMO to realize the optimization of the intensity distribution of the radiotherapy plan.

Notably, in S1, the PB and MC doses may be calculated, but are not limited to, by the planning system TPS.

The calculation method of the PB dose can calculate the dose deposition of the main rays and the scattered rays in the tissues according to a formula or a test result, and the calculation method of the MC dose is used for simulating the dose deposition of billions of particles in the tissues.

In order to further optimize the implementation effect of the present invention, in other embodiments, the remaining features are the same, except that S1 specifically includes the following steps:

s1.1: preparing data, namely selecting CT of N1 patients, adding N2 fields to each patient, respectively calculating PB dose and MC dose of each field to form N1N 2 groups of data, wherein each group of data comprises corresponding CT, PB dose and MC dose;

s1.2: dividing data, namely dividing N1N 2 groups of data into a training set test set in proportion;

s1.3: creating a convolutional neural network;

s1.4: training and establishing a good convolutional neural network by adopting training set data;

s1.5: and testing the test set data on the trained convolutional neural network to obtain a predicted dose, and calculating the gamma passing rate of the predicted dose and the MC dose.

Further, the convolutional neural network includes: input layer, fusion layer, convolution layer, activation layer, pooling layer, upsampling layer, output layer, as shown in fig. 6.

In a specific embodiment, the method for mapping the PB dose to the MC dose can be specifically divided into the following steps, as shown in fig. 5;

s1.1: preparing data:

selecting 50 patients, wherein the CT of the patients covers the head and neck, the chest and abdomen, the pelvic cavity and other parts; each patient is added with 72 fields (with the interval of 0.5 degrees), and the isocenter positions of the fields are distributed in different CT layers as far as possible, so that the fields can cover more CT ranges;

respectively calculating the PB dose and the MC dose of each radiation field, wherein the dose network is kept uniform and can adopt a 3mm grid;

overall, there were 3600 sets of CT, PB, MC dose data, as shown in fig. 3;

since the sampling pitch, size of the CT data does not coincide with the dose grid, the CT data needs to be interpolated to a size and spacing that coincides with the dose grid.

S1.2: data division: and (3) pressing 3600 groups of data as 7: 2: the scale of 1 is divided into a training set, a validation set, and a test set.

S1.3: creating a convolutional neural network: the convolutional neural network consists of an input layer, a fusion layer, a convolutional layer, an activation layer, a pooling layer, an upper sampling layer and an output layer.

And performing random cropping (crop) on the CT and PB dose images to improve the generalization capability of a neural network, wherein the size of the processed image is 128 × 128, the CT and PB dose images form a group of input data (128 × 128 × 2) through a fusion layer, then forming a 128 × 128 × 64 tensor through 64 convolution kernel processing, continuing convolution processing to form a 128 × 128 × 64 tensor, forming a 64 × 64 × 64 tensor through maximum pooling processing, and so on until the tensor of 128 × 128 × 64 is obtained after upsampling and convolution processing, and obtaining a 128 × 128 output image after convolution again.

The true output value of the convolutional neural network is the MC dose, and the loss function is defined as the Mean Square Error (MSE) between the MC dose and the predicted dose, which is the Mean of the sum of the squared distances between the target variable and the predicted value:

wherein: n is 128 × 128.

S1.4: training a convolutional neural network;

the network training process is to continuously iterate and solve the convolution kernel, and is a feature extraction process;

the specific steps of training are as follows:

i. randomly selecting data (batch size is 512), and performing online data amplification on an input image, wherein the method comprises translation and 2D rotation, and aims to increase the data volume and improve the generalization capability of a convolutional neural network;

using random gradient descent method to back-propagate to obtain all the weight and offset gradients of the network, using a learning rate of 10-5Updating the weight and the offset, obtaining a new predicted value on the basis, comparing the predicted value with the MC dose to obtain the mean square error, and repeating the process for 200 times to finish an epoch;

repeating steps i), ii) until the mean square error is less than a threshold or a maximum epoch is reached (e.g.: 5000) Stopping iteration, and finishing the training of the convolutional neural network;

the above calculation process is performed on nvidirtx 2080 Ti.

In this embodiment, the data is divided into a training set, a validation set, and a test set. In the training process, generally, during training, a verification set is run once after several epochs are finished to see the effect. Therefore, the problems of the model or the parameters can be found in time, the training is stopped in time, and the model is readjusted or adjusted. In addition, the generalization capability of the model can be verified, and if the effect on the verification set is much worse than on the training set, whether the model is over-fitted or not should be considered.

S1.5: testing the effect;

testing on a trained convolutional neural network, inputting CT and PB dose data of a test set to obtain predicted dose, storing all the predicted dose data in a local area, and calculating gamma passing rates (3mm, 3 percent and 10 percent) of the predicted dose and the MC dose by using dose verification software (such as DVS and LinaTech), wherein the passing rate is more than 95 percent, namely the pass rate is qualified.

gamma passage is a quantitative measure of the Difference between "measure" and "calculate" and is a combination of Distance To Agent (DTA) and Dose Difference (Dose Difference, DD):

r(rm,rc)=|rc-rm|;

δ(rm,rc)=Dc(rc)-Dm(rm);

wherein:

r(rm,rc) Representing for the measurement point rmAnd calculating the point rcThe distance between them;

δ(rm,rc) Represents the dose difference between the two;

ΔdMrepresentative distance threshold (which may be but is not limited to taking 3 mm);

ΔDMa threshold representing a dose (which may be but is not limited to taking 3% of the maximum dose);

when gamma (r)m) When the value is less than or equal to 1, the point is passed, otherwise, the point is not passed.

If only the distance factor (delta (r) is consideredm,rc) 0), then the basis for the passing of the measurement point is: within a distance threshold (e.g., 3mm), there is a calculation point where the dose value equals the measurement point;

if only the dosage factor (r) is consideredm,rc) 0), then the basis for the passing of the measurement point is: at the same location, the difference between the calculated dose and the measured dose is no greater than a dose threshold (e.g., 3% of maximum).

As shown in fig. 7, which shows the gamma-passing rate of PB dose and neural dose (based on neural network dose, i.e. predicted dose of convolutional neural network) in a certain layer, the MC dose is true, it can be seen that the neural dose is closer to the MC dose, and the statistical result shows that the gamma-passing rate of neural dose reaches 99%, while the gamma-passing rate of PB dose is only 62%.

In order to further optimize the implementation effect of the present invention, in other embodiments, the rest of the feature technologies are the same, except that a deposition matrix based on the MC algorithm is obtained, and the principle is as follows:

wherein A is a deposition matrix based on the MC algorithm;

DPBand DMCThe dosage based on the PB algorithm and the dosage based on the MC algorithm are respectively;

ajmfor each value of the deposition matrix based on the MC algorithm;

the derivative of the MC dose relative to the kth PB dose representing the voxel point (jth);

dDPB,k/dxmrepresents the derivative of the kth PB-dose with respect to the mth intensity value;

Ndoserepresenting the number of doses;

from the above equation, a deposition matrix based on the MC algorithm can be obtained by solving the gradient of the convolutional neural network of the PB dose to MC dose mapping.

Notably, the above formula transforms the problem "calculate deposit matrix using MC algorithm" into "solve derivative of MC dose to PB dose", where: derivative dD of PB dose to intensity value xPB,k/dxmThe method is characterized in that the deposition matrix obtained by the original algorithm is a matrix calculated by using a method of superposing main rays and scattered rays in TPS software.

The essence of solving the derivative of the MC dose to the PB dose is the gradient solution of a convolutional neural network mapping the PB dose to the MC dose, and the solution method can refer to a back propagation algorithm.

1) The gradient of each type of network is solved, and the gradient solving of the convolutional layer (with active layer), the pooling layer and the upsampling layer is described below.

i. Gradient of convolutional layer with active layer: as shown in FIG. 8, let input be X, weight and bias for convolutional layers be W and b, respectively, output be Y, and activation function beThen there are:

conv2(W, X) represents a discrete two-dimensional convolution of W and X, which can also be written as:

thus is provided with

Wherein:

k reflects the convolution kernel size (2 × k + 1) ═ kernel size), and when a 3 × 3 convolution kernel is used, k is 1;

activating a functionIf it is a ReLU function, its derivative is:

activating a functionIf it is a Sigmoid function, its derivative is:

the derivative of the convolutional layer (with activation function) can be obtained according to the above formula.

Gradient of pooling layer: taking Max Pooling (Max Pooling), a 2 × 2 convolution kernel as an example, the output of the layer is equal to the maximum of the corresponding input, i.e., y (i, j) ═ Max { x (p, q), p ═ i-1, i, q ═ j-1, j }, then the gradient can be expressed as:

gradient of the upsampled layer: there are three methods for upsampling (Up sampling): interpolation, deconvolution, and anticlotting;

a) as shown in fig. 10, the interpolation method: enlarging an input image to a certain size, calculating a pixel value of each point by using an interpolation method, taking bilinear interpolation as an example, and expressing the pixel value of a certain point of the upsampled image as the following formula, wherein the position of the upsampled image I, J corresponds to I, J of the original image, and outputting the gradient of the input image as interpolation weight w;

b) as shown in fig. 11, deconvolution: convolution can be expressed as the product of two matrixes, deconvolution is the multiplication of the transpose of a convolution kernel matrix and an original matrix, and is a conversion method from small size to large size, and is also convolution in nature, and the gradient calculation method can refer to the convolution method.

c) As shown in fig. 9, anti-pooling: taking the maximum pooling as an example, recording the coordinates of max-pooling in the corresponding kernel, amplifying an element according to the kernel in the anti-pooling process, filling the element according to the previous coordinates, and filling 0 in other positions.

Its gradient calculation is similar to the pooling layer method: the gradient at the maximum passes directly, and the other positions have a gradient of 0.

2) Calculating the gradient reversely in turn: considering a network comprising an input layer A, a hidden layer B, an output layer C, the information transfer direction is A → B → C, C for each point CijRelative to each point A in AstThe gradient of (c) can be passed through B, written as:

considering the whole convolutional neural network, starting from the last output layer, calculating the gradients relative to the previous layer, the previous two layers and the previous three layers in sequence, and continuously recursing forwards until the gradient relative to the input layer is obtained through calculation.

In order to further optimize the implementation effect of the present invention, in other embodiments, the remaining features are the same, except that the FMO specifically includes the following steps:

s3.1: dividing the radiation field into pencil beams;

s3.2: introducing a deposition matrix based on an MC algorithm;

s3.3: setting an initial intensity value as an optimized initial value;

s3.4: solving a derivative of an objective function by using a deposition matrix based on an MC algorithm;

s3.5: solving the optimal step length under the current gradient;

s3.6: updating intensity values, dose and objective function;

s3.7: and repeating the steps S3.4-S3.6 until the iteration is stopped after the stop condition is met.

In a specific embodiment, the intensity profile optimization is the first step of a two-step process of planning optimization, and the step of performing this optimization using a gradient descent method is shown in FIG. 4, and includes:

s3.1: field segmentation into pencil beams (beamlets): dividing the set range of the field tungsten gate into N multiplied by M rectangular networks, wherein N represents the width direction of the grating, M represents the movement direction of the grating, the grid in the N direction is divided according to the width of the grating under normal conditions, so that the next grating sub-field division is conveniently executed, and the M direction is divided according to equal intervals;

s3.2: introducing a deposition matrix A based on an MC algorithm;

s3.3: setting an initial strength value: as an initial value for optimization;

s3.4: solving the derivative of the objective function: the optimization objective function defined here is:

wherein:

is an objective function expressed as a weighting of the dose quadratic error of the target (PTV) and of the Organ At Risk (OAR);

is the dose error value for the critical organ, α is its weighting;

is the dose error value for the critical organ, β is its weighting;

is a variable to be optimized, namely an intensity flux graph of the pencil beams formed by dispersing all the radiation fields;quadratic error for OAR, which is the two-norm of the difference between the calculated dose and the ideal dose for all voxel points in all organs;

NOARthe number of organs at risk;

Nithe number of voxel points of the ith crisis organ;

wjis the weight of the jth voxel point;

δjthe calculated dose is a penalty factor, and is 0 when the calculated dose meets the preset constraint, otherwise, the calculated dose is 1;

the j point dosage value is calculated according to the radiation field intensity flux map, and is the calculated dosage;

pjis the desired dose value;

in the same way, the method for preparing the composite material,is a quadratic error of the target area, where NPTVThe number of voxel points of the target area;

ajmfor the dose contribution of the mth pencil beam to the jth voxel, the resulting matrix is the deposition matrix a based on the MC algorithm.

Thus, the derivative of the objective function is:

s3.5: solving the optimal step length: solving the optimal step length under the current gradient;

s3.6: updating intensity values, dose and objective function;

s3.7: judging whether a stop condition is met: when the argument (intensity value x) or the objective function Jobj(x) Is smaller than the threshold epsilon, the iteration is stopped, otherwise steps S3.4-S3.4 are repeated.

In order to further optimize the implementation effect of the present invention, in other embodiments, the rest of feature technologies are the same, except that the radiotherapy plan intensity distribution optimization method further comprises the following steps:

s4: and calculating the dose in the human body and the DVH of each organ according to the radiotherapy plan intensity distribution optimization method, and evaluating the plan effect.

In a specific embodiment, the gDPM is used directly to compute the deposition matrix (total particle number about 2 × 10) for all pencil beams (beams)9) And substituting the optimized intensity distribution into an optimization process to obtain the optimal intensity distribution, and further obtaining the dose distribution as a benchmark (baseline) for intensity distribution optimization.

The method disclosed by the invention is used for obtaining a deposition matrix based on the MC algorithm, adding the deposition matrix into an optimization flow to obtain optimized intensity distribution, calculating the dose in a human body by using the MC algorithm, and counting the DVH of organs.

The DVH of the two samples are compared, and the planning effect of the invention is verified.

The results of both are shown in fig. 12, in fig. 12: neural dose represents the result based on the neural network (namely the result of the invention), and MC dose represents the result based on random calculation, and the results are almost completely consistent, thereby verifying the feasibility of the invention.

On the other hand, the embodiment of the invention also discloses a radiotherapy plan intensity distribution optimizing device, which comprises:

the neural network mapping module is used for mapping the PB dose to the MC dose through a neural network;

the deposition matrix obtaining module is used for solving the gradient of the MC dose relative to the PB dose to obtain a deposition matrix based on an MC algorithm;

and the intensity distribution optimization module is used for substituting the deposition matrix based on the MC algorithm into the FMO to realize the optimization of the intensity distribution of the radiotherapy plan.

On the other hand, the embodiment of the present invention further discloses a radiotherapy apparatus, configured to perform the radiotherapy plan intensity distribution optimization method disclosed in any of the above embodiments, or, the radiotherapy apparatus includes: the radiotherapy planning intensity distribution optimizing device disclosed in the above embodiment.

The radiotherapy plan intensity distribution optimization method, the radiotherapy plan intensity distribution optimization device and the radiotherapy equipment have the following beneficial effects:

the invention applies the MC algorithm in FMO to ensure that the intensity distribution obtained in the optimization process is real and reliable, the obtained subfield exposure is more reasonable by using the intensity distribution to carry out multi-leaf grating subfield segmentation, the finally obtained planned dose distribution is ensured to be closer to the clinical requirement, and the planning effect is obviously improved.

The above embodiments are merely illustrative of the technical concept and features of the present invention, and the purpose thereof is to enable those skilled in the art to understand the content of the present invention and implement the present invention, and not to limit the scope of the present invention, and all equivalent changes or modifications made according to the spirit of the present invention should be covered in the scope of the present invention.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种放疗科临床用辅助支架

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!