Position optimization method for implanting mold, electronic equipment and storage medium
By acquiring scanned images and current position information of the implantation mold, and performing position calibration and adjustment, the problem of low implantation accuracy and efficiency of 3D-printed parauterine implantation molds is solved, achieving higher treatment accuracy and efficiency.
Patent Information
- Application Number
- CN202410927702.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-08
AI Technical Summary
Existing 3D-printed parauterine implantation molds have low implantation accuracy and efficiency in patients, resulting in poor treatment outcomes and potential trauma.
By acquiring scanned images and current position information of the implantation mold, contour data and channel distribution data are determined, and dose data is evaluated. If the preset standards are not met, position calibration is performed, including adjustments such as translation, fixed-point rotation, and axial rotation, until the standards are met.
It improves the insertion accuracy and efficiency of the implantation mold, reduces trauma to patients, and ensures that the needle applicator accurately reaches the treatment site.
Smart Images

Figure CN118903703A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of post-installation implantation, and in particular to a method for optimizing the position of an implantation mold, an electronic device and a storage medium. Background Art
[0002] The three-dimensional afterloading treatment technology of intracavitary combined paracervical implantation is one of the means of radiotherapy for local cervical cancer. With the development of 3D printing technology, the paracervical implantation molds of this technology are increasingly personalized using 3D printing technology, which has improved the implantation accuracy of the needle applicator in the patient's body to a certain extent. However, since the anatomical structure and position of various organs in the body of patients with 3D printed paracervical implantation molds may be different during the production and use of 3D printed paracervical implantation molds, the 3D printed paracervical implantation molds have problems of low implantation accuracy and low efficiency, which may cause trauma to patients and reduce the treatment effect. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to provide a method for optimizing the position of an implantation mold, an electronic device, and a storage medium, which can improve the implantation accuracy of the mold and improve the utilization efficiency of the implantation mold.
[0004] To achieve the above-mentioned purpose, one aspect of an embodiment of the present application provides a method for optimizing the position of an implantation mold, the method comprising:
[0005] Obtaining a scanned image of an object with a three-dimensional printed implant mold and current position information of the three-dimensional printed implant mold;
[0006] Determine contour data and a channel distribution data set of the three-dimensional printed implant mold according to the scanned image; wherein the contour data includes contours of each organ and a tumor target area contour;
[0007] Determine current dose data according to the pore distribution data set and the contour data, and evaluate the pore distribution data set and the current dose data according to a preset standard; wherein the current dose data includes three-dimensional afterloading dose distribution data and dose volume parameter data of each organ;
[0008] If the current dose data and the channel distribution data set both meet the preset standard, the current position information is used as the target position information; otherwise, the current position information is calibrated according to the preset dose parameters and the contour data to obtain the target position information.
[0009] In some embodiments, determining the current dose data according to the pore distribution data set and the contour data specifically includes:
[0010] Acquire insertion depth data and dosage data of the needle applicator, and determine a spatial combination relationship according to the insertion depth data and the pore distribution data set;
[0011] Determine three-dimensional afterloading dose distribution data according to the spatial combination relationship and the dose data, and determine organ dose volume parameter data according to the three-dimensional afterloading dose distribution data and the contour data;
[0012] Current dose data is determined according to the three-dimensional afterloading dose distribution data and the organ dose volume parameter data.
[0013] In some embodiments, the performing position calibration on the current position information according to the preset dose parameter and the contour data to obtain the target position information specifically includes:
[0014] Determine the target spatial position information of the channel distribution data set according to the preset dose parameters and the contour data; wherein the preset dose parameters include a preset dose value for the tumor target area and a preset dose value for each organ;
[0015] A reverse calculation operation is performed based on the target spatial position information to obtain position calibration data of the three-dimensional printed implant mold, and the current position information is adjusted based on the position calibration data to obtain target position information.
[0016] In some embodiments, determining the target spatial position information of the channel distribution data set according to the preset dose parameter and the contour data specifically includes:
[0017] Performing a position adjustment operation on the channel distribution data set according to the contour data to obtain a first coordinate set; wherein the position adjustment operation includes translation, fixed-point rotation, and axial rotation, and the first coordinate set includes a plurality of position-adjusted channel coordinate sets;
[0018] A first dose difference set is determined according to the first coordinate set and the preset dose value, the first dose difference set is sorted, a target dose difference is determined, and the first coordinate set corresponding to the target dose difference is used as target space coordinate information.
[0019] In some embodiments, performing a position adjustment operation on the pore distribution data set according to the contour data to obtain a first coordinate set specifically includes:
[0020] Determine a region center point according to the contour data, perform a fixed-point rotation operation on the channel distribution data set according to the region center point, and calculate according to a first preset formula and the channel distribution data set after the fixed-point rotation to obtain a first sub-coordinate set;
[0021] Performing a translation operation on the channel distribution data set according to a preset spacing and the contour data to obtain a first channel distribution data set, and performing calculation according to a second preset formula and the first channel distribution data set to obtain a second sub-coordinate set;
[0022] Performing an axial rotation operation on the channel distribution data set according to a preset rotation angle range and the contour data to obtain a second channel distribution data set, and performing calculation according to the second preset formula and the second channel distribution data set to obtain a third sub-coordinate set;
[0023] A first coordinate set is determined according to the first sub-coordinate set, the second sub-coordinate set, and the third sub-coordinate set.
[0024] In some embodiments, performing a translation operation on the pore distribution data set according to the preset spacing and the contour data to obtain a first pore distribution data set specifically includes:
[0025] Performing a translation operation on the pore distribution data set in a first direction according to the preset spacing to obtain a translated pore distribution data set, and comparing the contour data with the translated pore distribution data set;
[0026] If the translated channel distribution data sets all satisfy the contour data, the translated channel distribution data sets are used as the first channel distribution data set, and the step of performing a translation operation on the channel distribution data sets in a first direction according to the preset spacing is returned to be executed until there is channel distribution data after the translation that does not satisfy the contour data;
[0027] If the translated channel distribution data does not satisfy the contour data, the first direction is updated and the number of updates is recorded, and the step of translating the channel distribution data set in the first direction according to the preset spacing is returned to execute until the number of updates is greater than a preset threshold.
[0028] In some embodiments, performing an axial rotation operation on the channel distribution data according to the preset rotation angle range and the profile data to obtain the second channel distribution data specifically includes:
[0029] Performing an axial rotation operation on the pore distribution data set to obtain the pore distribution data set after axial rotation, determining a current rotation angle according to the pore distribution data set after axial rotation, comparing the current rotation angle according to the preset rotation angle range, and comparing the profile data with the pore distribution data set after axial rotation;
[0030] If the current rotation angle is less than the preset rotation angle range, and the channel distribution dataset after axial rotation satisfies the contour data, the channel distribution dataset after axial rotation is used as the second channel distribution dataset, and the step of performing the axial rotation operation on the channel distribution dataset to obtain the channel distribution dataset after axial rotation is returned to execute until the current rotation angle is greater than or equal to the preset rotation angle range, or the channel distribution dataset after axial rotation does not satisfy the contour data.
[0031] In some embodiments, determining the first dose difference value set according to the first coordinate set and the preset dose value specifically includes:
[0032] Traversing the first coordinate set to obtain a plurality of channel coordinate data, and determining a corresponding channel distribution data set according to the plurality of channel coordinate data;
[0033] Determine a plurality of current dose parameter sets according to the first coordinate set and the dose data, and perform difference calculations between a preset dose value and the plurality of current dose parameter sets to obtain a plurality of dose difference value sets;
[0034] A sum calculation is performed on each of the dose difference value sets to obtain a plurality of first dose difference values, and a first dose difference value set is determined according to the plurality of first dose difference values.
[0035] To achieve the above objective, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0036] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0037] Implementation of the embodiments of the present application includes the following beneficial effects: the embodiments provide a method for optimizing the position of an implant mold, an electronic device, and a storage medium. The scheme obtains a scanned image of an object with a three-dimensional printed implant mold and current position information of the three-dimensional printed implant mold; then, contour data and channel distribution data of the three-dimensional printed implant mold are determined according to the scanned image, current dose data is determined according to the channel distribution data and the contour data, and the channel distribution data and the current dose data are evaluated according to preset standards; if both the channel distribution data and the current dose data meet the preset standards, the current position information is used as the target position information, otherwise, the current position information is calibrated according to the preset dose parameters and the contour data to obtain the target position information; by judging whether the channel distribution data and dose data when the object has the implant mold meet the preset standards, and when the preset standards are not met, the position data of the implant mold is adjusted according to the contour data and preset dose parameters when the object has the implant mold, repeated adjustments are reduced, and the implantation accuracy of the implant mold and the use efficiency of the implant mold are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the steps of a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0039] Figure 2 It is a schematic diagram of the use of the three-dimensional printing implantation mold provided in the embodiment of the present application;
[0040] Figure 3 It is a schematic flow chart of the steps of determining current dosage data in a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0041] Figure 4 It is a schematic flow chart of the steps of determining target position information in a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0042] Figure 5 It is a schematic flow chart of the steps of determining target space coordinate information in a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0043] Figure 6 It is a schematic flow chart of the steps of determining a first coordinate set in a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0044] Figure 7 It is a schematic diagram of fixed-point rotation in a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0045] Figure 8 It is a schematic flow chart of the steps of translation in a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0046] Fig. 9 It is a schematic diagram of translation in a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0047] Fig.10 It is a schematic flow chart of the steps of axial rotation in a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0048] Fig.11 It is a schematic diagram of axial rotation in a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0049] Fig.12 It is a schematic flow chart of the steps of determining a first dose difference set in a method for optimizing the position of an implantation mold provided in an embodiment of the present application;
[0050] Fig.13 It is a schematic diagram of the steps of a specific embodiment provided in the embodiment of the present application;
[0051] Fig.14 It is a schematic diagram of an implantation mold channel after adjustment in a specific embodiment provided in the embodiment of the present application;
[0052] Fig.15 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application.
[0053] Among them, 1 is the tip of the needle-shaped applicator; 2 is the central axis of the channel; 3 is the needle-shaped applicator; 4 is the three-dimensional printed implant mold; and 5 is the insertion port of the channel. DETAILED DESCRIPTION
[0054] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0055] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0056] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0057] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present invention.
[0058] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0059] The three-dimensional afterloading treatment technology of intracavitary combined paracervical implantation is one of the means of radiotherapy for locally advanced cervical cancer. With the development of 3D printing technology, the paracervical implantation molds in this method are increasingly personalized using 3D printing technology; during treatment, the personalized implantation mold is placed in the patient's vagina, and the needle applicator is inserted into the tumor area along the preset channel in the implantation mold at a preset depth for radiotherapy; the production and use of personalized molds require scanning of the patient, and virtual mold design and afterloading treatment plan production are performed based on the scanned image data. Since the scanned image data used for production and application are scanned at different times, the anatomical structure, morphology and position of various organs in the patient's body may be different, resulting in poor position accuracy of the mold in the application stage, and a large error in the position of the mold in the patient's body during the mold design stage, which makes it difficult for the needle applicator to reach the predetermined treatment position, resulting in poor treatment effect and even causing patient trauma.
[0060] In view of this, an optimization method, electronic device and storage medium of a three-dimensional printed implant mold are provided in an embodiment of the present application. The scheme determines the tumor target area contour and the contours of each important organ of the object, as well as the spatial distribution of preset channels in the implant mold according to the scanned images of the object and the three-dimensional printed implant mold and the current position information of the three-dimensional printed mold according to the scanned images; then, the current dose distribution is determined according to the spatial distribution of the channels, the tumor target area contour and the contours of each important organ, and it is judged whether the dose distribution and channel distribution meet the clinical requirements. If not, the current mold position is calibrated according to the dose distribution constraints of each organ and the distribution principle of the channels to achieve the optimal spatial position of the mold, improve the position accuracy of the mold application, and then improve the treatment effect and reduce trauma to the patient.
[0061] Figure 1 is an optional flow chart of a method for optimizing the position of an implantation mold provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S104.
[0062] Step S101, obtaining a scanned image of an object with a three-dimensional printed implant mold and current position information of the three-dimensional printed implant mold;
[0063] Step S102, determining contour data and a channel distribution data set of a three-dimensional printed implant mold according to the scanned image; wherein the contour data includes the contours of each organ and the contour of the tumor target area;
[0064] Step S103, determining current dose data according to the pore distribution data set and the contour data, and evaluating the pore distribution data set and the current dose data according to a preset standard; wherein the current dose data includes three-dimensional afterloading dose distribution data and dose volume parameter data of each organ;
[0065] Step S104, if the current dose data and the channel distribution data set both meet the preset standards, the current position information is used as the target position information; otherwise, the current position information is calibrated according to the preset dose parameters and contour data to obtain the target position information.
[0066] In steps S101 to S104 shown in the embodiment of the present application, first, the three-dimensional printed implant mold is placed in the patient's vagina, and then a CT scan is performed on the patient to obtain the scanned CT image, and the contours of the patient's important organs, such as the bladder and rectum, are identified and outlined based on the scanned CT image, and the contours of the tumor target area are identified and outlined on the CT image. At the same time, the current position information of the three-dimensional printed implant mold is determined based on the CT image; then, the CT scan image is browsed layer by layer to determine the distribution of multiple channels preset in the three-dimensional printed implant mold; then, based on the insertion depth and dose data of the needle applicator, it is determined whether the penetration path of the preset channel is safe, whether the end of the channel reaches the preset position, and whether the dosimetric parameters of each organ and tumor target area meet the clinical requirements. If the channel distribution and the dosimetric parameters of each organ and tumor target area meet the requirements, it means that the three-dimensional printed implant mold is in the best position, and the needle applicator can be inserted into the channel in the implant mold so that the tip of the applicator accurately reaches the predetermined treatment position for treatment, such as Figure 2 As shown; if the hole distribution and the dosimetric parameters of each organ or tumor target area do not meet the requirements, the optimal spatial position of each hole of the implant mold is determined according to the preset dose parameters and the contours of each organ and tumor target area, and the calibration value of the mold is calculated according to the optimal spatial position of each hole, and then the current position of the implant mold is adjusted to make the implant mold reach the optimal position for subsequent treatment.
[0067] In step S101 of some embodiments, images may be obtained by performing CT scan on the patient for analysis, or three-dimensional structural data in the patient's body may be obtained by other means for analysis, such as MRI images, PET images, etc., but not limited thereto.
[0068] See also Figure 3In some embodiments, step S103 may include but is not limited to steps S301 to S303:
[0069] Step S301, obtaining the insertion depth data and dosage data of the needle applicator, and determining the spatial combination relationship according to the insertion depth data and the pore distribution data set;
[0070] Step S302, determining three-dimensional afterloading dose distribution data according to the spatial combination relationship and the dose data, and determining organ dose volume parameter data according to the three-dimensional afterloading dose distribution data and the contour data;
[0071] Step S303, determining current dose data according to the three-dimensional afterloading dose distribution data and the organ dose volume parameter data.
[0072] In step S301 of some embodiments, the 3D printed implant mold assists the front end of the needle applicator to penetrate into the patient's body and reach the preset position for radiotherapy of the tumor target area. When there is a large error between the position of the 3D printed implant mold during use and the position during design and production, the needle applicator may not reach the predetermined treatment position when penetrating through the preset channel of the mold for treatment, and may even deviate from or penetrate important parauterine organs such as the rectum and bladder, increasing the risk of treatment and reducing the efficacy of afterload treatment. Therefore, according to the current spatial combination relationship of the mold constructed by the preset channel of the implant mold based on the insertion depth of the needle applicator and the preset channel of the implant mold, it can be determined whether the needle applicator can accurately reach the preset treatment position through the channel.
[0073] In step S302 of some embodiments, based on the spatial combination relationship constructed in step S301 and combined with the dose data applied by the needle applicator, it can be determined whether the dose parameters applied by the needle applicator to each organ and the tumor target area during treatment meet clinical requirements, thereby achieving radiotherapy of the tumor while minimizing damage to each organ;
[0074] In step S303 of some embodiments, the dose data at the current position of the implant mold is obtained by combining the current spatial combination relationship of the implant mold obtained in step S301 and step S302 respectively and the metrological parameters when the implant mold at the current position is used for treatment, so as to determine whether the current position of the implant mold meets the requirements for the preparation and implementation of the afterloading radiotherapy plan.
[0075] See also Figure 4 In some embodiments, step S104 may include but is not limited to steps S401 to S402:
[0076] Step S401, determining the target spatial position information of the channel distribution data set according to the preset dose parameters and the contour data; wherein the preset dose parameters include the preset dose value of the tumor target area and the preset dose value of each organ;
[0077] Step S402, performing a reverse calculation operation based on the target spatial position information to obtain position calibration data of the three-dimensional printing implantation mold, and adjusting the current position information based on the position calibration data to obtain the target position information.
[0078] In step S401 of some embodiments, by evaluating the dose data at the current position of the implant mold, when it is determined that the implant mold at the current position does not meet the clinical requirements, it is necessary to calibrate the position of the current implant mold so that the implant mold after the position calibration meets the clinical requirements; specifically, based on the preset dose parameters and the contour data of the organs and tumor target areas in the patient's body, the optimal position information of the needle applicator that meets the preset dose parameter conditions and the constraints of the position restrictions of the organs and tumor target areas in the patient's body is calculated. Since the needle applicator reaches the optimal position information through the preset channel of the implant mold, the optimal position information of the needle applicator is equivalent to the target position information of the channel of the implant mold.
[0079] In step S402 of some embodiments, after obtaining the target position information of the implantation mold channel, reverse calculation is performed based on the target position information to calculate the optimal position information of the implantation mold under the target position information, and the position calibration data of the implantation mold is calculated based on the optimal position information of the implantation mold and the current position information of the implantation mold. The current implantation mold is adjusted based on the obtained position calibration data to place the implantation mold in the optimal position, thereby improving the mold position accuracy during treatment and improving the treatment efficiency.
[0080] See also Figure 5 In some embodiments, step S401 may include but is not limited to steps S501 to S502:
[0081] Step S501, performing a position adjustment operation on the channel distribution data set according to the contour data to obtain a first coordinate set; wherein the position adjustment operation includes translation, fixed-point rotation, and axial rotation, and the first coordinate set includes a plurality of position-adjusted channel coordinate sets;
[0082] Step S502, determining a first dose difference set according to the first coordinate set and preset dose parameters, sorting the first dose difference set, determining a target dose difference, and using the first coordinate set corresponding to the target dose difference as target space coordinate information.
[0083] In step S501 of some embodiments, if it is determined that the implant mold in the current position does not meet the clinical requirements, the position information of the current implant mold needs to be adjusted, including establishing a coordinate system based on the central axis of the implant mold, translating and axially rotating the current implant mold based on the coordinate system, and establishing another coordinate set based on the vertices of the implant mold, and performing fixed-point rotation around the vertices of the implant mold based on the coordinate system; after each adjustment, determining the position information of each channel in the adjusted implant mold, and evaluating based on the position information of each channel of the adjusted implant mold to determine whether the adjusted implant mold has reached the optimal position.
[0084] In step S502 of some embodiments, after each adjustment to the implantation mold, the position information of each channel of the implantation mold after adjustment is obtained, the dose parameters of the implantation mold after adjustment are determined in combination with the dose data of the needle applicator, the obtained dose parameters are compared with the preset dose parameters, and the position information with the smallest difference with the preset dose parameters in multiple adjustments is selected as the optimal position information.
[0085] See also Figure 6 In some embodiments, step S501 may include but is not limited to steps S601 to S604:
[0086] Step S601, determining the center point of the region according to the contour data, performing a fixed-point rotation operation on the channel distribution data set according to the center point of the region, and calculating according to a first preset formula and the channel distribution data set after the fixed-point rotation to obtain a first sub-coordinate set;
[0087] Step S602, performing a translation operation on the channel distribution data set according to the preset spacing and the contour data to obtain a first channel distribution data set, and performing calculations on the first channel distribution data set according to a second preset formula to obtain a second sub-coordinate set;
[0088] Step S603, performing an axial rotation operation on the channel distribution data set according to a preset rotation angle range and the profile data to obtain a second channel distribution data set, and performing calculation according to a second preset formula and the second channel distribution data set to obtain a third sub-coordinate set;
[0089] Step S604: determine the first coordinate set according to the first sub-coordinate set, the second sub-coordinate set and the third sub-coordinate set.
[0090] In step S601 of some embodiments, the current implantation mold is adjusted for fixed-point rotation so that the needle applicator can penetrate into the patient's body through the preset hole of the implantation mold and perform radiotherapy on the tumor target area as much as possible; by selecting a number of points in the tumor target area, coordinates are calculated based on the selected points to obtain the geometric center point of the tumor target area, and then a coordinate system is established with the top of the implantation mold as the coordinate origin. In the coordinate system, a fixed-point rotation is performed around the top of the implantation mold within a certain angle range, such as Figure 7 As shown, until the geometric center point of the tumor target area is located on the extension line of the central axis of the implantation mold, the preset channel of the implantation mold falls into the contour range of the tumor target area as much as possible; based on the first preset formula, the central axis straight line expression of each channel in the implantation mold before the fixed-point rotation can be calculated, and the coordinates of the channel after the fixed-point rotation can be determined from it. The first preset formula is:
[0091] y′(cosα-ksinα)=x′(sinα-kcosα)+b
[0092] Among them, x′ and y′ are the new coordinates of any point on the central axis of the channel after fixed-point rotation, and α is the angle of fixed-point rotation.
[0093] In step S602 of some embodiments, the current implantation mold is further adjusted in translation so that when the needle applicator passes through the hole of the implantation mold for treatment, the dosimetric parameters of the tumor target area and each organ meet the preset requirements, a new coordinate system is established according to the central axis of the implantation mold, and the current implantation mold is translated in four directions of up, down, left and right according to the established coordinate system, and after each translation adjustment, it is judged whether the current translation adjustment meets the conditions for subsequent screening according to the spatial combination relationship of each hole in the implantation mold after the translation adjustment and the contour of the tumor target area, and the hole coordinate set corresponding to multiple translation adjustments is calculated according to the hole combination relationship of the implantation mold corresponding to the translation adjustment that meets the conditions and the second preset formula, and the second preset formula is:
[0094] F(x′,y′)=F((x+Δx)cosθ-(y+Δy)sinθ,(x+Δx)sinθ-(y+Δy)cosθ)
[0095] Among them, x, y are the coordinates of a point in the current insertion mold channel, x′, y′ are the coordinates of a point in the insertion mold channel after translation and axial rotation, Δx, Δy are the translation amounts of translation adjustment, and θ is the rotation angle of axial rotation.
[0096] In step S603 of some embodiments, the current implantation mold is also axially rotated and adjusted. In the second coordinate system constructed in step S602, the implantation mold is axially rotated within a certain angle range around the center axis of the implantation mold. At the same time, after each axial rotation, it is determined whether the current axial rotation adjustment meets the requirements, and the channel combination relationship of the implantation mold corresponding to the axial rotation adjustment that meets the requirements is combined with the second preset formula in step S602 to calculate the corresponding channel coordinate set for each axial adjustment.
[0097] In step S604 of some embodiments, the channel coordinates corresponding to various adjustment operations on the current implant mold in steps S601 to S603 are integrated to obtain a total coordinate set, and dosimetric parameters are calculated based on the obtained coordinate set to determine the optimal channel coordinates, thereby determining the calibration value of the current implant mold.
[0098] See also Figure 8 In some embodiments, step S602 may include but is not limited to steps S801 to S803:
[0099] Step S801, performing a translation operation on the pore distribution data set in a first direction according to a preset spacing to obtain a translated pore distribution data set, and comparing the translated pore distribution data set with the contour data;
[0100] Step S802, if the translated channel distribution data sets all satisfy the contour data, the translated channel distribution data sets are used as the first channel distribution data sets, and the process returns to the step of performing a translation operation on the channel distribution data sets in a first direction according to a preset spacing, until there is channel distribution data after the translation that does not satisfy the contour data;
[0101] Step S803, if the translated channel distribution data does not satisfy the contour data, update the first direction and record the number of updates, and return to execute the step of translating the channel distribution data set in the first direction according to the preset spacing until the number of updates is greater than the preset threshold.
[0102] In step S801 of some embodiments, a coordinate system is established based on the central axis of the current implant mold, including four directions: up, down, left, and right. The translation adjustment of the current implant mold needs to consider these four directions. An arbitrary direction is selected to translate the current implant mold at a certain equal interval, and the coordinate set of each channel in the implant mold after the translation operation is calculated according to the first preset formula, and then the coordinate set is compared with the tumor target area contour to determine whether to retain the current translation operation.
[0103] In step S802 of some embodiments, if the coordinates of each channel of the implantation mold fall within the contour range of the tumor target area after the translation operation, the coordinate set obtained by the current translation adjustment is retained, and the implantation mold is continued to be translated at a certain equal interval along the current direction, such as Fig. 9 As shown, Z is the left and Y is the right, and after each translation, the translated channel coordinate set is judged until the coordinates of a certain channel in the translated channel coordinate set fall outside the contour range of the tumor target area.
[0104] In step S803 of some embodiments, in step S802, when the coordinates of a certain channel in the translated channel coordinate set fall outside the contour range of the tumor target area, the channel coordinate set obtained by this translation operation is discarded, and the direction of the translation operation is changed, and the operation in step S802 is repeated until the translation operation is performed in all four directions of the coordinate system.
[0105] See also Fig.10 In some embodiments, step S603 may include but is not limited to steps S1001 to S1003:
[0106] Step S1001, performing an axial rotation operation on the pore distribution data set to obtain the pore distribution data set after axial rotation;
[0107] Step S1002, determining the current rotation angle according to the pore distribution data set after axial rotation, comparing the current rotation angle with the preset rotation angle range, and comparing the profile data with the pore distribution data set after axial rotation;
[0108] Step S1003, if the current rotation angle is less than the preset rotation angle range, and the channel distribution data set after axial rotation satisfies the contour data, the channel distribution data set after axial rotation is used as the second channel distribution data set, and the step of performing an axial rotation operation on the channel distribution data set to obtain the channel distribution data set after axial rotation is returned until the current rotation angle is greater than or equal to the preset rotation angle range, or the channel distribution data set after axial rotation does not satisfy the contour data.
[0109] In step S1001 of some embodiments, in a coordinate system established with the central axis of the current implantation mold, a rotation within a certain angle range is performed around the central axis of the implantation mold, such as Fig.11 As shown, after each rotation, the coordinates of each channel of the implantation mold are determined to determine whether to retain the current axial rotation angle, where Z is the left, Y is the right, X is the bottom, and S is the top.
[0110] In step S1002 of some embodiments, the coordinates of each channel of the implant mold after each rotation are compared with the contour of the tumor target area. If the coordinates of each channel of the implant mold after rotation fall within the contour of the tumor target area, the rotation angle of this axial rotation is retained, and the axial rotation operation is repeated until the rotation angle of the axial rotation exceeds the limit of the rotation angle range, or the coordinates of one of the channels of the implant mold after the current rotation fall outside the contour of the tumor target area, the axial rotation is stopped, and the coordinates of each channel of the implant mold after the current axial rotation are discarded.
[0111] See also Fig.12 In some embodiments, step S502 may include but is not limited to steps S1201 to S1203:
[0112] Step S1201, determining a plurality of current dose parameter sets according to the first coordinate set and the dose data, performing difference calculations between preset dose parameters and the plurality of current dose parameter sets to obtain a plurality of dose difference sets;
[0113] Step S1202: performing a sum calculation on each dose difference value set to obtain a plurality of first dose difference values, and determining a first dose difference value set according to the plurality of first dose difference values.
[0114] In step S1201 of some embodiments, the coordinates of multiple groups of channels corresponding to the translation, fixed-point rotation and axial rotation of the implant mold are obtained, and based on these coordinates, it is evaluated whether the implant mold obtained under different adjustment operations meets the clinical standards for application, and the optimal spatial position is determined therefrom; based on the coordinate information of each channel of the implant mold after adjustment, the dose distribution data of the tumor target area and the dose distribution data of each organ under different adjustments are determined in combination with the needle applicator, and then the difference calculation is performed based on the calculated dose distribution data of the tumor target area and the dose distribution data of each organ and the preset dose parameters, respectively, to obtain the dose difference of the tumor target area and the dose difference of each organ.
[0115] In step S1202 of some embodiments, the dose difference of the tumor target area and the dose difference of each organ corresponding to the implant mold under different adjustments are obtained, and then the dose distribution data of the tumor target area and the dose distribution data of each organ are summed to obtain the dose difference sum corresponding to the implant mold under different adjustments; then, the dose difference sum is compared in size, the smallest dose difference sum is selected, and the spatial position of each channel of the corresponding implant mold is taken as the optimal position, and the adjustment value corresponding to the implant mold is determined according to the position, including the translation direction and distance, the angle of fixed-point rotation and the angle of axial rotation, and the current implant mold is adjusted according to the obtained adjustment data to obtain the implant mold in the optimal position; the needle applicator is moved along the channel set in the implant mold at the optimal position to the treatment position, and treatment is performed according to the formulated afterloading radiotherapy plan.
[0116] Below, in conjunction with specific application examples, the scheme of the embodiment of the present application is described in detail and explained:
[0117] like Fig.13 As shown, the 3D printed implant mold is placed in the patient's cavity, and a CT scan is performed on the patient's pelvic area to obtain image data. Then, the patient's important organs and tumor target areas are automatically identified and outlined on the image data, and the contour data of each important organ and tumor target area are obtained. At the same time, all channels set in the implant mold and the corresponding channel coordinate data are automatically identified, and the spatial combination relationship between the channels is established according to the insertion depth of the needle applicator and all the channels of the implant mold. Then, the three-dimensional after-loading dose distribution and the dose volume parameters of each important organ are further determined according to the dose data applied by the needle applicator; then, the current implant mold is judged based on the image data. Whether the penetration path of the channel is safe, whether the end position of the needle applicator reaches the predetermined position after penetrating along the channel, whether the calculated three-dimensional afterloading dose distribution and the dose-volume parameters of each important organ meet the clinical requirements, if not, according to the dose constraints of each organ and the principle that the channels of the implant mold avoid each important organ and are evenly distributed in the tumor target area, the implant mold is adjusted by translation, fixed-point rotation and axial rotation, and the three-dimensional afterloading dose distribution and dose-volume parameters of each important organ under different adjustments of the implant mold are calculated based on mathematical algorithms, and the difference between the three-dimensional afterloading dose distribution and the clinically expected dosimetric parameters is calculated, and the position of each channel in the implant mold with the smallest difference is taken as the optimal position, such as Fig.14 As shown, based on the obtained optimal position, the translation direction and value of the implant mold, the fixed-point rotation angle and the axial rotation value are calculated, the current implant mold is adjusted, and then the needle applicator is inserted along the adjusted implant mold channel so that the tip of the applicator reaches the predetermined treatment position, and the treatment is implemented according to the prepared afterloading radiotherapy plan.
[0118] Implementation of the embodiments of the present application includes the following beneficial effects: the embodiments provide a method for optimizing the position of an implant mold, an electronic device, and a storage medium. The scheme obtains a scanned image of an object with a three-dimensional printed implant mold and the current position information of the three-dimensional printed implant mold; then, contour data and channel distribution data of the three-dimensional printed implant mold are determined according to the scanned image, current dose data is determined according to the channel distribution data and the contour data, and the channel distribution data and the current dose data are evaluated according to preset standards; if both the channel distribution data and the current dose data meet the preset standards, the current position information is used as the target position information, otherwise, the current position information is calibrated according to the preset dose parameters and the contour data to obtain the target position information; the current mold is adjusted according to the difference between the dosimetric parameters of the corresponding tumor target area and each organ determined by the current implant mold and the clinical dosimetric parameters, so as to determine the optimal position of the implant mold, and then determine the adjustment value of the implant mold for adjustment, thereby reducing repeated adjustments to the implant mold, improving the implantation accuracy of the implant mold, and improving the use efficiency of the implant mold.
[0119] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned method for optimizing the position of the implant mold when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0120] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0121] See also Fig.15 , Fig.15 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0122] The processor 1501 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0123] The memory 1502 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1502 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1502, and the processor 1501 calls and executes the location optimization method of the implant mold in the embodiment of this application;
[0124] Input / output interface 1503, used to implement information input and output;
[0125] Communication interface 1504, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0126] A bus 1505 that transmits information between the various components of the device (e.g., the processor 1501, the memory 1502, the input / output interface 1503, and the communication interface 1504);
[0127] The processor 1501 , the memory 1502 , the input / output interface 1503 and the communication interface 1504 are connected to each other in communication within the device via the bus 1505 .
[0128] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned method for optimizing the position of the implant mold is implemented.
[0129] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0130] Among them, the memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. The memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a remote memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0131] It can be seen that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0132] In addition, the embodiment of the present application also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer-readable storage medium. The processor of the computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device performs the above method. Similarly, the contents in the above method embodiment are all applicable to the storage medium embodiment, and the functions specifically implemented by the storage medium embodiment are the same as those in the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method embodiment.
[0133] An embodiment of the present application further provides a computer-readable storage medium, which stores a program executable by a processor. The program executable by the processor is used to implement the above method when executed by the processor.
[0134] It is understood that all or some steps and systems in the disclosed method above can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0135] The position optimization method, electronic device and storage medium of the implant mold provided in the embodiments of the present application obtain a scanned image of an object with a three-dimensional printed implant mold and the current position information of the three-dimensional printed implant mold; then, determine the contour data and the channel distribution data of the three-dimensional printed implant mold according to the scanned image, determine the current dose data according to the channel distribution data and the contour data, and evaluate the channel distribution data and the current dose data according to preset standards; if the channel distribution data and the current dose data both meet the preset standards, use the current position information as the target position information, otherwise, calibrate the current position information according to the preset dose parameters and the contour data to obtain the target position information; calculate the optimal position of the implant mold according to the difference between the dosimetric parameters of the tumor target area and each important organ corresponding to the current implant mold and the preset clinical dosimetric parameters, thereby obtaining the corresponding adjustment parameters, and then adjust the current implant mold, reduce repeated adjustments of the implant mold, and improve implant accuracy and use efficiency.
[0136] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A method for optimizing the position of an implantation mold, characterized in that: The method comprises: Obtaining a scanned image of an object with a three-dimensional printed implant mold and current position information of the three-dimensional printed implant mold; Determine contour data and a channel distribution data set of the three-dimensional printed implant mold according to the scanned image; wherein the contour data includes contours of each organ and a tumor target area contour; Determine current dose data according to the pore distribution data set and the contour data, and evaluate the pore distribution data set and the current dose data according to a preset standard; wherein the current dose data includes three-dimensional afterloading dose distribution data and dose volume parameter data of each organ; If the current dose data and the channel distribution data set both meet the preset standard, the current position information is used as the target position information; otherwise, the current position information is calibrated according to the preset dose parameters and the contour data to obtain the target position information.
2. The method according to claim 1, characterized in that: The determining of current dose data according to the pore distribution data set and the contour data specifically includes: Acquire insertion depth data and dosage data of the needle applicator, and determine a spatial combination relationship according to the insertion depth data and the pore distribution data set; Determine three-dimensional afterloading dose distribution data according to the spatial combination relationship and the dose data, and determine organ dose volume parameter data according to the three-dimensional afterloading dose distribution data and the contour data; Current dose data is determined according to the three-dimensional afterloading dose distribution data and the organ dose volume parameter data.
3. The method according to claim 1, characterized in that The performing position calibration on the current position information according to the preset dose parameter and the contour data to obtain the target position information specifically includes: Determine the target spatial position information of the channel distribution data set according to the preset dose parameters and the contour data; wherein the preset dose parameters include a preset dose value for the tumor target area and a preset dose value for each organ; A reverse calculation operation is performed based on the target spatial position information to obtain position calibration data of the three-dimensional printed implant mold, and the current position information is adjusted based on the position calibration data to obtain target position information.
4. The method according to claim 3, characterized in that: The step of determining the target spatial position information of the channel distribution data set according to the preset dose parameter and the contour data specifically includes: Performing a position adjustment operation on the channel distribution data set according to the contour data to obtain a first coordinate set; wherein the position adjustment operation includes translation, fixed-point rotation, and axial rotation, and the first coordinate set includes a plurality of position-adjusted channel coordinate sets; A first dose difference set is determined according to the first coordinate set and the preset dose parameter, the first dose difference set is sorted, a target dose difference is determined, and the first coordinate set corresponding to the target dose difference is used as target space coordinate information.
5. The method according to claim 4, characterized in that The step of performing a position adjustment operation on the pore distribution data set according to the contour data to obtain a first coordinate set specifically includes: Determine a region center point according to the contour data, perform a fixed-point rotation operation on the channel distribution data set according to the region center point, and calculate according to a first preset formula and the channel distribution data set after the fixed-point rotation to obtain a first sub-coordinate set; Performing a translation operation on the channel distribution data set according to a preset spacing and the contour data to obtain a first channel distribution data set, and performing calculation according to a second preset formula and the first channel distribution data set to obtain a second sub-coordinate set; Performing an axial rotation operation on the channel distribution data set according to a preset rotation angle range and the contour data to obtain a second channel distribution data set, and performing calculation according to the second preset formula and the second channel distribution data set to obtain a third sub-coordinate set; A first coordinate set is determined according to the first sub-coordinate set, the second sub-coordinate set, and the third sub-coordinate set.
6. The method according to claim 5, characterized in that The performing a translation operation on the channel distribution data set according to the preset spacing and the contour data to obtain a first channel distribution data set specifically includes: Performing a translation operation on the pore distribution data set in a first direction according to the preset spacing to obtain a translated pore distribution data set, and comparing the contour data with the translated pore distribution data set; If the translated channel distribution data sets all satisfy the contour data, the translated channel distribution data sets are used as the first channel distribution data set, and the step of performing a translation operation on the channel distribution data sets in a first direction according to the preset spacing is returned to be executed until there is channel distribution data after the translation that does not satisfy the contour data; If the translated channel distribution data does not satisfy the contour data, the first direction is updated and the number of updates is recorded, and the step of translating the channel distribution data set in the first direction according to the preset spacing is returned to execute until the number of updates is greater than a preset threshold.
7. The method according to claim 5, characterized in that The step of performing an axial rotation operation on the channel distribution data according to the preset rotation angle range and the profile data to obtain the second channel distribution data specifically includes: Performing an axial rotation operation on the pore distribution data set to obtain the pore distribution data set after axial rotation, determining a current rotation angle according to the pore distribution data set after axial rotation, comparing the current rotation angle according to the preset rotation angle range, and comparing the profile data with the pore distribution data set after axial rotation; If the current rotation angle is less than the preset rotation angle range, and the channel distribution dataset after axial rotation satisfies the contour data, the channel distribution dataset after axial rotation is used as the second channel distribution dataset, and the step of returning to the axial rotation operation on the channel distribution dataset to obtain the channel distribution dataset after axial rotation is executed until the current rotation angle is greater than or equal to the preset rotation angle range, or the channel distribution dataset after axial rotation does not satisfy the contour data.
8. The method according to claim 4, characterized in that The determining of the first dose difference set according to the first coordinate set and the preset dose parameter specifically includes: Determine a plurality of current dose parameter sets according to the first coordinate set and the dose data, and perform difference calculations between preset dose parameters and the plurality of current dose parameter sets to obtain a plurality of dose difference sets; A sum calculation is performed on each of the dose difference value sets to obtain a plurality of first dose difference values, and a first dose difference value set is determined according to the plurality of first dose difference values.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to perform the method according to any one of claims 1 to 7 when executed by the processor.
