A method and system for calculating radiotherapy positioning deviation based on deep learning
By using a method based on deep learning, the positioning offset in radiotherapy is automatically calculated, which solves the problem of time-consuming, laborious and large errors in manual detection in the existing technology, achieves fast and accurate offset detection, and improves treatment accuracy and accuracy. efficiency.
Patent Information
- Application Number
- CN202011235669.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-11-06
AI Technical Summary
In existing radiotherapy, the detection of positioning deviation relies on manual outline and visual inspection, which is time-consuming and labor-intensive and prone to human error, resulting in inaccurate treatment.
Using a method based on deep learning, by collecting and labeling DR images, CT images and DRR images, training part classification models and image registration models, it can automatically calculate the patient's positioning deviation in the three-dimensional spatial coordinate system and reduce human intervention.
It achieves fast and accurate automatic calculation of positioning offset, reduces the workload of technicians, and improves treatment accuracy and the overall treatment efficiency of the hospital.
Smart Images

Figure CN112348857B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of medical technology, and specifically relates to a method and system for calculating radiotherapy positioning deviation based on deep learning. Background Art
[0002] At present, tumor radiotherapy is generally carried out in sessions, and each treatment uses corresponding thermoplastic film, negative pressure bag and other devices in conjunction with laser light to repeatedly fix the patient according to the position fixation during positioning CT scanning and the resetting during simulation. However, due to various reasons, the patient's position will still have a certain deviation, which is mostly between a few millimeters and one centimeter, or even up to several centimeters.
[0003] A radiotherapy accelerator equipped with MV-EPID (Mega-Voltage Electronic Portal Imaging Device) can take DR (Digital Radiography) images at two orthogonal angles before the patient's fractionated treatment. These are usually 0 and 90 degrees or 0 and 270 degrees. 0 degrees refers to the direction in which the head of the machine is upward, 90 degrees refers to the direction in which the head of the machine is rotated 90 degrees clockwise, and 270 degrees refers to the direction in which the head of the machine is rotated 90 degrees counterclockwise. The images are compared with the DRR (Digital Reconstructed Radiography) images at the two corresponding angles to obtain the positioning deviation. The deviation is corrected before treatment begins. When making comparisons, the method of outlining or visual inspection is usually used, which requires technicians to perform the comparison manually. This is time-consuming and labor-intensive, and is prone to human errors. Figure 1 This is the operating interface of a company's IVS (Image Viewing System) software. Summary of the invention
[0004] In order to solve the above technical problems, the present invention proposes a method and system for calculating radiotherapy positioning offset based on deep learning.
[0005] In order to achieve the above object, the technical solution of the present invention is as follows:
[0006] In one aspect, the present invention discloses a method for calculating radiotherapy setup offset based on deep learning, comprising the following steps:
[0007] (1) Collect supporting DR images, CT images and / or DRR images for clinical use. CT images can generate corresponding DRR images;
[0008] (2) labeling the part categories of the matching images, and using the labeled data to train the image part classification network to obtain a part classification model;
[0009] (3) further annotating the images of the preset parts obtained in step (2), wherein a professional physicist aligns the images, and then uses the aligned images to train a registration network to obtain an image registration model;
[0010] (4) Using the model trained in step (2) and step (3), the DR image and DRR image obtained clinically are analyzed and processed to obtain the patient's positioning deviation distance in the direction of the three-dimensional coordinate system of space. Step (4) specifically includes the following steps:
[0011] (4.1) Analyzing the image data of DR images and DRR images;
[0012] (4.2) The collected DR images and DRR images are combined into three-channel images according to two-channel 0-degree DR images and one-channel 0-degree DRR images, and input into the part classification model to determine whether the patient is in the preset part. If yes, proceed to the next step;
[0013] (4.3) The 0-degree DR image and DRR image are preprocessed and input into the image registration convolutional neural network to calculate the offset x of the left and right direction of LAT and the offset z0 of the head and feet direction of LNG;
[0014] (4.4) The 90 / 270 degree DR image and DRR image are preprocessed and input into the image registration convolutional neural network to calculate the offset y of the VRT front-back direction and the offset z1 of the LNG head-foot direction;
[0015] (4.5) Take the offset of LNG head and foot direction as z = (z0 + z1) / 2;
[0016] (4.6) According to the pixel size, the offset values in three directions are converted.
[0017] On the basis of the above technical solution, the following improvements can be made:
[0018] As a preferred solution, step (1) also includes the following: arranging and cleaning the collected data images.
[0019] As a preferred solution, the specific contents of organizing and cleaning the data images collected in step (1) include one or more of the following: checking whether the data images are compatible, whether they are clinical patient images, removing images that do not meet the requirements, and classifying the images that meet the requirements according to whether they have CT.
[0020] As a preferred solution, the input of step (2) is several groups of medical image data, each group contains at least two pairs of DR images and DRR images at 0 degrees and 90 / 270 degrees. Step (2) specifically includes the following steps:
[0021] (2.1) Perform data labeling, that is, review each set of data and classify each set of data according to different categories;
[0022] (2.2) The labeled medical images are divided into training set and test set according to the ratio;
[0023] (2.3) Preprocess the training set and test set images;
[0024] (2.4) The preprocessed training set data, together with the labels, are fed into the image part classification algorithm to train the weights of the model;
[0025] (2.5) Use the preprocessed test set data to test the classification accuracy of the trained model; if the iterative stopping condition is not met or the specified number of training times is not reached, continue the training in step (2.4); if the stopping condition is met, stop the iterative training and save the trained part classification model weights.
[0026] As a preferred solution, the input of step (3) is several groups of medical image data, each group contains at least two pairs of DR images and DRR images at 0 degrees and 90 / 270 degrees. Step (3) specifically includes the following steps:
[0027] (3.1) Align the DR images and DRR images at 0 degrees and 90 degrees / 270 degrees;
[0028] (3.2) The registered medical images are divided into training set and test set according to the ratio;
[0029] (3.3) Preprocess the training set and test set images, randomly shift the registered images, generate and record the shift values as the true value labels;
[0030] (3.4) The preprocessed training data set, together with the true offset label, is fed into the registration algorithm to train the weights of the model;
[0031] (3.5) Use the preprocessed test set data to test the error between the registration offset value of the trained model and the true value; if the iterative stopping condition is not met or the specified number of training times is not reached, continue the training in step (3.4); if the stopping condition is met, stop the iterative training and save the weights of the trained registration model.
[0032] As a preferred solution, the CT image is converted into a DRR image through the following steps:
[0033] (d1) Determine the position of the radiation source according to the planned center point and the source axis distance, and determine the range of the involved CT voxels according to the planned center point, pixel size, and image matrix size;
[0034] (d2) Setting a suitable decay rate;
[0035] (d3) A number of virtual rays are emitted from the ray source toward the imaging area, passing through the involved CT voxels, calculating the path length through each voxel, and calculating the pixel grayscale obtained by transmission based on the attenuation rate.
[0036] As a preferred embodiment, in step (d2),
[0037] If you want to obtain a DRR image of the bone, then set a suitable attenuation rate threshold, and set the attenuation rate of the tissue that is less than the threshold to 0;
[0038] If DRR images of soft tissues are to be obtained, the attenuation rate of tissues greater than the threshold is set to 0;
[0039] If a DRR image of a specific tissue is to be obtained, the tissue is segmented out and the attenuation rates of other tissues are set to 0.
[0040] As a preferred solution, the DR images, CT images and DRR images are files in DICOM format.
[0041] In another aspect, the present invention further discloses a computing system, comprising:
[0042] one or more processors;
[0043] Memory;
[0044] And one or more programs, wherein the one or more programs are stored in a memory and configured to be executed by one or more processors, and the one or more programs include instructions for any of the above-mentioned deep learning-based radiotherapy positioning offset calculation methods.
[0045] The present invention proposes a method and system for automatically calculating the radiotherapy positioning offset based on deep learning. The correct offset can be obtained without drawing contour lines on the DRR and DR or observing with the naked eye. The calculation time required is less than 1 second on a modern graphics processing unit (GPU), which greatly reduces the workload of positioning technicians, improves the treatment effect of tumor patients, and improves the overall treatment efficiency of the hospital. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0047] Figure 1Schematic diagram of the IVS software operation interface provided by the prior art.
[0048] Figure 2 A schematic block diagram of the process of step (4) provided in an embodiment of the present invention.
[0049] Figure 3 A schematic block diagram of the process of the image registration convolutional neural network provided in an embodiment of the present invention.
[0050] Figure 4 A schematic block diagram of the process of step (2) provided in an embodiment of the present invention.
[0051] Figure 5 A schematic block diagram of the process of step (3) provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0053] 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.
[0054] In order to achieve the purpose of the present invention, in some embodiments of a method and system for calculating a radiotherapy setup offset based on deep learning, a method for calculating a radiotherapy setup offset based on deep learning, taking head tumor treatment as an example, comprises the following steps:
[0055] (1) Collect supporting DR images, CT images and / or DRR images for clinical use, of which DR images are necessary, and one or both of DRR images and CT images are required. CT images can generate corresponding DRR images. The formats of DR images, CT images and DRR images can be, but are not limited to, DICOM;
[0056] (2) labeling the part categories of the supporting images. The part categories can be, but are not limited to, set to five categories: "head, neck, chest, abdomen, and pelvis", and using the labeled data to train the image part classification network to obtain a part classification model;
[0057] (3) further annotating the head image obtained in step (2), aligning the image, and then using the aligned image to train the registration network to obtain an image registration model;
[0058] (4) Using the model trained in step (2) and step (3), the DR image and DRR image obtained clinically are analyzed and processed to obtain the patient's position deviation distance in the direction of the three-dimensional coordinate system of space. Step (4) specifically includes the following steps: Figure 2 As shown:
[0059] (4.1) Analyzing the image data of DR images and DRR images;
[0060] (4.2) The collected DR images and DRR images are combined into three-channel images according to two-channel 0-degree DR images and one-channel 0-degree DRR images, and input into the part classification model to determine whether the patient is head, if yes, proceed to the next step;
[0061] (4.3) The 0-degree DR image and DRR image are preprocessed and input into the image registration convolutional neural network to calculate the offset x of the left and right direction of LAT and the offset z0 of the head and feet direction of LNG. The image registration convolutional neural network is as follows: Figure 3 As shown;
[0062] (4.4) The 90 / 270 degree DR image and DRR image are preprocessed and input into the image registration convolutional neural network to calculate the offset y of the VRT front-back direction and the offset z1 of the LNG head-foot direction. The image registration convolutional neural network is as follows: Figure 3 As shown;
[0063] (4.5) Take the offset of LNG head and foot direction as z = (z0 + z1) / 2;
[0064] (4.6) According to the pixel size, the offset values in mm in three directions are converted.
[0065] The input of step (4) is the DR image collected clinically and the appropriate DRR image generated by CT, and the output is the positioning deviation distance of the patient in the direction of the three-dimensional coordinate system of space. Step (4) uses the model trained by steps (2) and (3) to design a specific process for the CT, DR, and DRR images obtained clinically, automatically classify and align the image parts, and obtain the correct offset.
[0066] The part classification network in step (2) is ResNet-18. ResNet is a classic deep learning model with excellent properties due to its shortcut connection. ResNet-18 is a ResNet model with 18 layers of convolutional neural network.
[0067] The ResNet-18 structure is shown in Table 1:
[0068] Table 1 ResNet-18 network structure
[0069]
[0070] The above step (1) is data collection, steps (2) and (3) are data annotation and model training, and step (4) is model application. Since the original medical image data is in DICOM format, in the present invention, model training is performed using the deep learning frameworks TensorFlow and PyTorch.
[0071] Among them: LAT, LNG, VRT: are the abbreviations of lateral, longitudinal, and vertical, which refer to the left-right direction, head-foot direction, and front-back direction of the patient in the supine position;
[0072] DICOM: Digital Imaging and Communication in Medicine, is an international standard for medical images and related information (ISO 12052), which defines a medical image format that can be used for data exchange with quality that meets clinical needs.
[0073] In order to further optimize the implementation effect of the present invention, in some other embodiments, the remaining characteristic technologies are the same, except that step (1) also includes the following: arranging and cleaning the collected data images. In the present invention, data cleaning and data labeling are performed using an IVS system developed by a certain company.
[0074] Furthermore, the specific contents of organizing and cleaning the data images collected in step (1) include one or more of the following: checking whether the data images are compatible, whether they are clinical patient images, removing images that do not meet the requirements, and classifying the images that meet the requirements according to whether they have CT.
[0075] In order to further optimize the implementation effect of the present invention, in some other embodiments, the other feature technologies are the same, except that the input of step (2) is a plurality of groups of medical image data, each group includes at least two pairs of DR images and DRR images at 0 degrees and 90 / 270 degrees, in the DICOM format, and the output is a trained part classification model, using the ResNet18 convolutional neural network model;
[0076] Step (2) specifically includes the following steps:
[0077] (2.1) Data labeling, that is, reviewing each set of data and classifying each set of data into five categories: head (H), neck (N), chest (T), abdomen (A), and pelvis (P);
[0078] (2.2) The labeled medical images are divided into training set and test set according to the ratio;
[0079] (2.3) Preprocessing the training set and test set images, where the preprocessing includes converting them from DICOM format to PNG format so that they can be trained using a deep learning training framework, and transforming them to a size that is compatible with the network input. Here, the network input uses a three-channel image format, where the first two channels are the same 0-degree DR images, and the last channel is a 0-degree DRR image;
[0080] (2.4) The preprocessed training set data, together with the labels, are fed into the image part classification algorithm to train the weights of the model;
[0081] (2.5) Use the preprocessed test set data to test the classification accuracy of the trained model; if the iterative stopping condition is not met (such as a high improvement in accuracy) or the specified number of training times is not reached, continue the training in step (2.4); if the stopping condition is met, stop the iterative training and save the trained part classification model weights.
[0082] In order to further optimize the implementation effect of the present invention, in some other embodiments, the other feature technologies are the same, except that the input of step (3) is a plurality of groups of medical image data, each group contains at least two pairs of DR images and DRR images at 0 degrees and 90 / 270 degrees, in the DICOM format, and the output is a trained registration model, which can be used to predict the three-direction offsets that a group of clinically obtained images should undergo;
[0083] Step (3) specifically includes the following steps:
[0084] (3.1) Experienced clinical personnel manually register each set of images, i.e. align the 0-degree and 90-degree / 270-degree DR images and DRR images to achieve a level that allows for precise radiotherapy;
[0085] (3.2) The registered medical images are divided into training set and test set according to the ratio;
[0086] (3.3) Preprocess the training and test set images, including converting them from DICOM format to PNG format so that they can be trained using the deep learning training framework, randomly offsetting the registered images, generating and recording the offset values as the true value labels, normalizing them to the appropriate pixel size, and cropping images that fit the network input size;
[0087] (3.4) The preprocessed training data set, together with the true offset label, is fed into the registration algorithm to train the weights of the model;
[0088] (3.5) Use the preprocessed test set data to test the error between the registration offset value of the trained model and the true value; if the iterative stopping condition is not met (such as the error can be further reduced) or the specified number of training times is not reached, continue the training in step (3.4); if the stopping condition is met, stop the iterative training and save the weights of the trained registration model.
[0089] In order to further optimize the implementation effect of the present invention, based on the above embodiment, if the DRR input in step (4) does not meet the requirements, and at the same time the data contains CT images, a suitable DRR can be generated according to the DRR generation algorithm. For example, if the input DRR is a soft tissue DRR (i.e., soft DRR), and a bone DRR (bone DRR) is required, to achieve this goal, the following algorithm steps can be used for implementation:
[0090] (d1) Determine the position of the radiation source according to the planned center point and the source axis distance, and determine the range of the involved CT voxels according to the planned center point, pixel size, and image matrix size;
[0091] (d2) Setting a suitable decay rate;
[0092] (d3) A number of virtual rays are emitted from the ray source toward the imaging area, passing through the involved CT voxels, calculating the path length through each voxel, and calculating the pixel grayscale obtained by transmission based on the attenuation rate.
[0093] In order to further optimize the implementation effect of the present invention, based on the above embodiment, in step (d2),
[0094] If you want to obtain a DRR image of the bone, then set a suitable attenuation rate threshold, and set the attenuation rate of the tissue that is less than the threshold to 0;
[0095] If DRR images of soft tissues are to be obtained, the attenuation rate of tissues greater than the threshold is set to 0;
[0096] If a DRR image of a specific tissue is to be obtained, the tissue is segmented out and the attenuation rates of other tissues are set to 0.
[0097] In another aspect, the present invention further discloses a computing system, comprising:
[0098] one or more processors;
[0099] Memory;
[0100] And one or more programs, wherein the one or more programs are stored in a memory and configured to be executed by one or more processors, and the one or more programs include instructions for the deep learning-based radiotherapy positioning offset calculation method disclosed in any of the above embodiments.
[0101] It should be understood that the various techniques described herein can be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or portions of the method and apparatus of the present invention, can take the form of program codes (i.e., instructions) embedded in a tangible medium, such as a floppy disk, a CD-ROM, a hard disk drive, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0102] The input data of the present invention are the DRR images reconstructed by the patient's positioning CT and the DR images taken before the fractionated treatment. Generally speaking, the DR image is a square image of a fixed size. The DRR image is related to the parameters of the CT, and the pixel sizes thereof vary greatly, so the sizes of the image matrices also vary greatly. The steps for automatically calculating the offset are as follows:
[0103] (a) The 0-degree DRR image and the DR image are transformed to a size that is compatible with the network input, and the two-channel DR image and the one-channel DRR image are combined to form a three-channel image, which is sent to the image part classification network. After model prediction, the part of the current DRR and DR image pair is determined. If it is the head, proceed to step (b);
[0104] (b) Normalize the pixels of the 0-degree DRR image and DR image to a suitable size, and take only the appropriate part in the middle and send it to the image registration network. After model prediction, the offset x in the LAT direction and an offset z0 in the LNG direction are obtained;
[0105] (c) Normalize the pixels of the 90-degree or 270-degree DRR image and DR image to a suitable size, and take only the appropriate part in the middle and send it to the image registration network. After model prediction, the offset y in the VRT direction and another offset z1 in the LNG direction are obtained;
[0106] (d) Take the offset in the LNG direction as (z0+z1) / 2, and calculate the actual offset in millimeters in the three directions according to the pixel size.
[0107] With the development of deep learning, machine learning, and artificial intelligence technologies, algorithms can be designed to learn models and automatically calculate positioning deviations without manual comparison. This can eliminate human errors, improve the accuracy of radiotherapy, shorten the overall time of radiotherapy, and enable hospitals to treat more cancer patients.
[0108] By collecting CT, DR, and DRR image data of radiotherapy, cleaning and annotating the data, designing a deep learning model, training it, and using the learned model to infer the images collected during treatment, you can get the automatic calculation results of the positioning offset. However, since DR images are MV-level ray imaging on an accelerator, and CT imaging is kV-level ray imaging, and DRR is a calculated simulated image, the modal differences are large, and this implementation has not been seen in the products of major radiotherapy companies so far. Therefore, the automatic calculation method for positioning offset of head tumor radiotherapy based on deep learning in this application is of pioneering significance and can fill the gap in this field.
[0109] The present invention can perform automatic registration in patients with head tumors, and the error between the calculated offset and the offset obtained by manual registration of the outline line is very small, which can achieve the level of precise radiotherapy.
[0110] The present invention provides a method and system for automatically calculating the radiotherapy positioning offset based on deep learning. The correct offset can be obtained without drawing contour lines on the DRR and DR or observing with the naked eye. The calculation time required is less than 1 second on a modern graphics processing unit (GPU), which greatly reduces the workload of positioning technicians, improves the treatment effect of tumor patients, and improves the overall treatment efficiency of the hospital.
[0111] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable ordinary technicians in the field to understand the content of the present invention and implement it. They cannot be used to limit the protection scope of the present invention. All equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for calculating radiotherapy positioning deviation based on deep learning, characterized in that: The following steps are involved: (1) Collect supporting DR images, CT images and / or DRR images for clinical use. CT images can generate corresponding DRR images; (2) labeling the part categories of the matching images, and using the labeled data to train the image part classification network to obtain a part classification model; (3) further annotating the images of the preset parts obtained in step (2), aligning the images, and then using the aligned images to train the registration network to obtain an image registration model; (4) using the model trained in step (2) and step (3), analyzing and processing the DR images and DRR images obtained clinically to obtain the patient's positioning deviation distance in the direction of the three-dimensional coordinate system of space, wherein step (4) specifically includes the following steps: (4.1) Analyzing the image data of DR images and DRR images; (4.2) The collected DR images and DRR images are combined into three-channel images according to two-channel 0-degree DR images and one-channel 0-degree DRR images, and input into the part classification model to determine whether the patient is in the preset part. If yes, proceed to the next step; (4.3) The 0-degree DR image and DRR image are preprocessed and input into the image registration convolutional neural network to calculate the offset x of the left and right direction of LAT and the offset z0 of the head and feet direction of LNG; (4.4) The 90 / 270 degree DR image and DRR image are preprocessed and input into the image registration convolutional neural network to calculate the offset y of the VRT front-back direction and the offset z1 of the LNG head-foot direction; (4.5) Take the offset of LNG head and foot direction as z = (z0 + z1) / 2; (4.6) According to the pixel size, the offset values in three directions are converted.
2. The method for calculating the radiotherapy setup offset according to claim 1, characterized in that: The step (1) also Includes the following: Organize and clean the collected data images.
3. The method for calculating the radiotherapy setup offset according to claim 2, characterized in that: The specific contents of organizing and cleaning the data images collected in step (1) include one or more of the following: checking whether the data images are compatible and whether they are clinical patient images, removing images that do not meet the requirements, and classifying the images that meet the requirements according to whether they have CT.
4. The method for calculating the radiotherapy setup offset according to claim 1, characterized in that: The input of step (2) is several groups of medical image data, each group includes at least two pairs of DR images and DRR images at 0 degrees and 90 / 270 degrees. Step (2) specifically includes the following steps: (2.1) Perform data labeling, that is, review each set of data and classify each set of data according to different categories; (2.2) The labeled medical images are divided into training set and test set according to the ratio; (2.3) Preprocess the training set and test set images; (2.4) The preprocessed training set data, together with the labels, are fed into the image part classification algorithm to train the weights of the model; (2.5) Use the preprocessed test set data to test the classification accuracy of the trained model; if the iterative stopping condition is not met or the specified number of training times is not reached, continue the training in step (2.4); if the stopping condition is met, stop the iterative training and save the trained part classification model weights.
5. The method for calculating the radiotherapy setup offset according to claim 1, characterized in that: The input of step (3) is several groups of medical image data, each group includes at least two pairs of DR images and DRR images at 0 degrees and 90 / 270 degrees. Step (3) specifically includes the following steps: (3.1) Align the DR images and DRR images at 0 degrees and 90 degrees / 270 degrees; (3.2) The registered medical images are divided into training set and test set according to the ratio; (3.3) Preprocess the training set and test set images, randomly shift the registered images, generate and record the shift values as the true value labels; (3.4) The preprocessed training data set, together with the true offset label, is fed into the registration algorithm to train the weights of the model; (3.5) Use the preprocessed test set data to test the error between the registration offset value of the trained model and the true value; if the iterative stopping condition is not met or the specified number of training times is not reached, continue the training in step (3.4); if the stopping condition is met, stop the iterative training and save the weights of the trained registration model.
6. The method for calculating the radiotherapy setup offset according to any one of claims 1 to 5, characterized in that: Generate DRR images from CT images through the following steps: (d1) Determine the position of the radiation source according to the planned center point and source axis distance, and determine the range of CT voxels involved according to the planned center point, pixel size, and image matrix size; (d2) Setting a suitable decay rate; (d3) A number of virtual rays are emitted from the ray source toward the imaging area, passing through the involved CT voxels, calculating the path length through each voxel, and calculating the pixel grayscale obtained by transmission based on the attenuation rate.
7. The method for calculating the radiotherapy setup offset according to claim 6, characterized in that: In the step (d2), If you want to obtain a DRR image of the bone, then set a suitable attenuation rate threshold, and set the attenuation rate of the tissue that is less than the threshold to 0; If DRR images of soft tissues are to be obtained, the attenuation rate of tissues greater than the threshold is set to 0; If a DRR image of a specific tissue is to be obtained, the tissue is segmented out and the attenuation rates of other tissues are set to 0.
8. The method for calculating the radiotherapy setup offset according to any one of claims 1 to 5, characterized in that: DR images, CT images, and DRR images are files in DICOM format.
9. A computing system, characterized in that: include: one or more processors; Memory; And one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for the deep learning-based radiotherapy positioning offset calculation method described in any of claims 1-8.
